@xopcai/xopc 0.0.248 → 0.0.249
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/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-etpmyV7S.js → activity-store-B759R_qf.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BmKxSM1k.js → agent-avatar-dicebear-BUu7EnwM.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-C1rXNUAG.js +1 -0
- package/dist/gateway/static/root/assets/agents-DK9HjHO0.js +1 -0
- package/dist/gateway/static/root/assets/{api-B0-hLuZ1.js → api-Cg0v7Lpn.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-C9DkCW_d.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-CFggS95Y.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-jOvT-fzU.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BnMSgZvR.js → archive-plugin-BQrilVVv.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CejsQMev.js → attachment-load-BG0BliqV.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-RC8EyoAf.js → automations-page-Bo4RiTkh.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BKjKTlW8.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DGjppLSG.js → binary-plugins-BCnyNU0C.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CWdP4bUc.js → block-editor-Db8DlVvg.js} +50 -50
- package/dist/gateway/static/root/assets/browser-settings-page-Dzq18pO1.js +8 -0
- package/dist/gateway/static/root/assets/{browser-workflow-inputs-BQ1Ilw_o.js → browser-workflow-inputs-C71vfl0b.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflows-page-CJh4NyxT.js → browser-workflows-page-vvmSYKsO.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DW4SBQf4.js +7 -0
- package/dist/gateway/static/root/assets/channels-settings-57OGuewD.js +1 -0
- package/dist/gateway/static/root/assets/{channels-status-swr-Ohhee4vm.js → channels-status-swr-CKyV3jY5.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BOtoKTK3.js → chat-terminal-dock-B1Xd6OFB.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-CT_I3kbR.js +2 -0
- package/dist/gateway/static/root/assets/{cron-expression-DTj1V3Sw.js → cron-expression-D-F9vjtE.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-Yr6OCvGL.js → date-picker-B2OoYvic.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-BiGx9Sbj.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-DbGzggPF.js → desktop-pet-BNMRqipe.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DeYbIV7A.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DgTtk4KC.js → extension-debug-page-COyn05ub.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DtQeiP6f.js → extension-page-oH43chS2.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BMO59994.js +1 -0
- package/dist/gateway/static/root/assets/gateway-config-api-cimpViGk.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-DXuXtU1w.js → gateway-config-swr-BGdHwT4e.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-BHJtnSic.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CzBzglzQ.js → gateway-startup-retry-CuaM3b4c.js} +1 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DNhrZHqx.js +1 -0
- package/dist/gateway/static/root/assets/home-page-BiHwiBnQ.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-TIgsn04n.js → image-generation-api-D7duj7Uj.js} +1 -1
- package/dist/gateway/static/root/assets/index-DGeGmj4k.css +2 -0
- package/dist/gateway/static/root/assets/index-aBs0EfQB.js +72 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-wsWuoa8p.js → keyboard-shortcuts-settings-D8Zw_lYd.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CpyvYyrb.js → local-app-workbench-page-eBFVWmtH.js} +2 -2
- package/dist/gateway/static/root/assets/{local-apps-page-CXrbrGo8.js → local-apps-page-CvPDPRwb.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-BJFLQY8O.js → locale-store-zEL8bkwx.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-ClvcWlL6.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-BdJZFR7U.js → management-settings-D8moh99U.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-split-NK3ACVG2.js → markdown-split-D7V3j0vE.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DTF9v1gg.js → markdown-view-DGRN-8wP.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-F0jcUxyl.js → media-plugins-BLaE5b1Y.js} +1 -1
- package/dist/gateway/static/root/assets/messages-W5P19VTF.js +11 -0
- package/dist/gateway/static/root/assets/mobile-pairing-wizard-DiVDuCxl.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-CEEvR-fV.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-BLqgXNCx.js +8 -0
- package/dist/gateway/static/root/assets/page-tabs-BFMGjA60.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-DNEWZN7H.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-CxGGlWA8.js → product-open-page-Co5u7asH.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-CIiFJ5tk.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-B3UF-Pfm.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CIsNlSBi.js → registry-api-Cg92zSod.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BUtpkJPG.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-YkjhiQfA.js → runtime-tools-settings-panel-C0ByNmlV.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-oFGf3G3s.js → schema-form-Dq_VQpuY.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-UgJmG-V4.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DDCzpdkl.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-CZu6FX4k.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-C7VWs0IT.js → settings-page-S8ekeUZd.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BdVmwXMv.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-t5oz18rh.js → share-preview-page-D2fEidbn.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-BdsqnCYj.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-ghzAQKna.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-AYiPlgZE.js +2 -0
- package/dist/gateway/static/root/assets/{skills-page.utils-DEDTYs2W.js → skills-page.utils-DGzl-ib-.js} +1 -1
- package/dist/gateway/static/root/assets/system-settings-panel-5Xd5mIiR.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-BQAUaCDD.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-O597U8q_.js → theme-store-ZVClZKQ0.js} +1 -1
- package/dist/gateway/static/root/assets/tunnel-api-CdZN1Jin.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-B5eUJ6Zq.js → use-autosave-czRI0NBc.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-W3GTm6nA.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CMKSwz4C.js → voice-api-key-field-8YEvA3cU.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-q7B6fOFB.js → voice-config-api-CopF64lY.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-keLtqYYJ.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DZmvLZjb.js → workflow-run-setup-panel-Dy5WgYMO.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-BbAV3h7n.js +5 -0
- package/dist/gateway/static/root/index.html +10 -26
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -2
- package/dist/src/agent/agent-manager.d.ts +4 -4
- package/dist/src/agent/agent-manager.js +31 -15
- package/dist/src/agent/background-review/coordinator.d.ts +2 -4
- package/dist/src/agent/background-review/coordinator.js +5 -30
- package/dist/src/agent/background-review/prompts.d.ts +4 -2
- package/dist/src/agent/background-review/prompts.js +24 -19
- package/dist/src/agent/background-review/run-background-review.d.ts +6 -7
- package/dist/src/agent/background-review/run-background-review.js +47 -41
- package/dist/src/agent/background-review/settings.d.ts +0 -1
- package/dist/src/agent/background-review/settings.js +6 -7
- package/dist/src/agent/context/audit.d.ts +36 -0
- package/dist/src/agent/context/audit.js +97 -0
- package/dist/src/agent/context/coordinator.d.ts +26 -0
- package/dist/src/agent/context/coordinator.js +72 -0
- package/dist/src/agent/context/execution-context.d.ts +54 -0
- package/dist/src/agent/context/execution-context.js +147 -0
- package/dist/src/agent/context/execution-scope.js +1 -1
- package/dist/src/agent/context/prepend.d.ts +2 -0
- package/dist/src/agent/context/prepend.js +28 -0
- package/dist/src/agent/context/project-context.d.ts +3 -3
- package/dist/src/agent/context/project-context.js +26 -23
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -0
- package/dist/src/agent/embedded/run-turn.js +22 -2
- package/dist/src/agent/embedded/types.d.ts +1 -25
- package/dist/src/agent/external-tools/composio-provider.js +87 -92
- package/dist/src/agent/external-tools/gateway-tools.d.ts +4 -1
- package/dist/src/agent/external-tools/gateway-tools.js +153 -41
- package/dist/src/agent/external-tools/index.js +1 -1
- package/dist/src/agent/external-tools/search-error.d.ts +12 -0
- package/dist/src/agent/external-tools/search-error.js +29 -0
- package/dist/src/agent/external-tools/service.d.ts +4 -0
- package/dist/src/agent/external-tools/service.js +22 -2
- package/dist/src/agent/memory/compaction-policy.js +1 -1
- package/dist/src/agent/memory/compaction-promotion.js +45 -77
- package/dist/src/agent/memory/create-memory-manager.js +1 -3
- package/dist/src/agent/memory/index.d.ts +0 -5
- package/dist/src/agent/memory/index.js +2 -5
- package/dist/src/agent/memory/manager.d.ts +0 -16
- package/dist/src/agent/memory/manager.js +11 -40
- package/dist/src/agent/memory/memory-config.js +1 -1
- package/dist/src/agent/memory/runtime.d.ts +2 -2
- package/dist/src/agent/memory/runtime.js +9 -19
- package/dist/src/agent/memory/types.d.ts +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +13 -21
- package/dist/src/agent/prompt/sections/memory-skills.js +25 -36
- package/dist/src/agent/prompt/sections/tooling.js +10 -4
- package/dist/src/agent/prompt/service-prompt-builder.js +4 -3
- package/dist/src/agent/service/direct-turn-helpers.js +6 -23
- package/dist/src/agent/service/process-direct-streaming.js +5 -3
- package/dist/src/agent/service.js +4 -3
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/clarify-tool.d.ts +1 -0
- package/dist/src/agent/tools/delegate-tool.js +5 -2
- package/dist/src/agent/tools/factory.js +36 -19
- package/dist/src/agent/tools/index.d.ts +3 -2
- package/dist/src/agent/tools/index.js +4 -3
- package/dist/src/agent/tools/knowledge-memory-tool.d.ts +9 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +129 -0
- package/dist/src/agent/tools/{dreaming-tool.d.ts → memory-maintenance-tool.d.ts} +2 -2
- package/dist/src/agent/tools/memory-maintenance-tool.js +31 -0
- package/dist/src/agent/tools/user-context-tool.d.ts +8 -0
- package/dist/src/agent/tools/user-context-tool.js +81 -0
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/chat-commands/builtins/understanding.js +24 -6
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/config/schema.d.ts +68 -75
- package/dist/src/config/schema.js +29 -18
- package/dist/src/config/web-patch.d.ts +1 -1
- package/dist/src/connectors/auth-provider-registry.js +1 -1
- package/dist/src/connectors/composio-managed-client.js +6 -2
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.d.ts +1 -3
- package/dist/src/connectors/connected-source-understanding.js +86 -99
- package/dist/src/connectors/connection-candidates.d.ts +11 -0
- package/dist/src/connectors/connection-candidates.js +58 -0
- package/dist/src/connectors/connection-capabilities.d.ts +4 -0
- package/dist/src/connectors/connection-capabilities.js +37 -0
- package/dist/src/connectors/connection-recovery-service.d.ts +42 -0
- package/dist/src/connectors/connection-recovery-service.js +396 -0
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/learning-coordinator.d.ts +0 -2
- package/dist/src/connectors/learning-coordinator.js +6 -7
- package/dist/src/connectors/principal.d.ts +5 -0
- package/dist/src/connectors/principal.js +18 -0
- package/dist/src/gateway/agent-builtin-tools.d.ts +28 -10
- package/dist/src/gateway/agent-builtin-tools.js +30 -9
- package/dist/src/gateway/chat-stream/mapper.js +1 -28
- package/dist/src/gateway/chat-stream/protocol.d.ts +2 -24
- package/dist/src/gateway/clarify-bridge.d.ts +4 -0
- package/dist/src/gateway/clarify-bridge.js +9 -4
- package/dist/src/gateway/heartbeat/service.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +52 -30
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/middleware/auth.js +1 -2
- package/dist/src/gateway/hono/routes/capabilities.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.d.ts +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +72 -28
- package/dist/src/gateway/hono/routes/connection-waits.d.ts +3 -0
- package/dist/src/gateway/hono/routes/connection-waits.js +58 -0
- package/dist/src/gateway/hono/routes/connectors.js +7 -15
- package/dist/src/gateway/hono/routes/context-sources.d.ts +4 -0
- package/dist/src/gateway/hono/routes/context-sources.js +159 -0
- package/dist/src/gateway/hono/routes/index.js +4 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +9 -4
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +22 -7
- package/dist/src/gateway/hono/routes/projects.js +36 -44
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +15 -1
- package/dist/src/gateway/hono/routes/side-chats.js +13 -2
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.d.ts +3 -0
- package/dist/src/gateway/hono/routes/user-model.js +480 -0
- package/dist/src/gateway/memory-maintenance-automation-reconciler.d.ts +11 -0
- package/dist/src/gateway/memory-maintenance-automation-reconciler.js +72 -0
- package/dist/src/gateway/service/agent-runner.d.ts +9 -1
- package/dist/src/gateway/service/agent-runner.js +25 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +2 -2
- package/dist/src/gateway/service/config-coordinator.js +4 -4
- package/dist/src/gateway/service/run-gateway-agent.d.ts +1 -0
- package/dist/src/gateway/service/run-gateway-agent.js +18 -14
- package/dist/src/gateway/service/session-input-coordinator.d.ts +3 -0
- package/dist/src/gateway/service/session-input-coordinator.js +12 -2
- package/dist/src/gateway/service.d.ts +3 -1
- package/dist/src/gateway/service.js +45 -14
- package/dist/src/gateway/side-chat/manager.d.ts +16 -3
- package/dist/src/gateway/side-chat/manager.js +117 -28
- package/dist/src/gateway/side-chat/run-service.d.ts +2 -0
- package/dist/src/gateway/side-chat/run-service.js +28 -5
- package/dist/src/gateway/side-chat/types.d.ts +9 -1
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/knowledge/connected-knowledge-pipeline.d.ts +0 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +46 -217
- package/dist/src/knowledge-memory/domain.d.ts +35 -0
- package/dist/src/knowledge-memory/index.d.ts +2 -0
- package/dist/src/knowledge-memory/index.js +2 -0
- package/dist/src/knowledge-memory/repository.d.ts +45 -0
- package/dist/src/knowledge-memory/repository.js +154 -0
- package/dist/src/memory-maintenance/index.d.ts +2 -0
- package/dist/src/memory-maintenance/index.js +3 -0
- package/dist/src/memory-maintenance/schedule.d.ts +13 -0
- package/dist/src/memory-maintenance/schedule.js +51 -0
- package/dist/src/memory-maintenance/service.d.ts +28 -0
- package/dist/src/memory-maintenance/service.js +216 -0
- package/dist/src/notes/service.d.ts +1 -0
- package/dist/src/notes/service.js +7 -1
- package/dist/src/notes/types.d.ts +16 -0
- package/dist/src/proactive/execution/context.d.ts +2 -2
- package/dist/src/proactive/execution/context.js +16 -11
- package/dist/src/proactive/index.d.ts +1 -1
- package/dist/src/proactive/index.js +2 -2
- package/dist/src/projects/index.d.ts +1 -1
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/knowledge-bind.d.ts +1 -0
- package/dist/src/projects/knowledge-bind.js +15 -0
- package/dist/src/projects/project-loop.d.ts +3 -3
- package/dist/src/projects/project-loop.js +4 -4
- package/dist/src/projects/project-store.js +2 -1
- package/dist/src/realtime/runtime.js +1 -0
- package/dist/src/runtime-tools/manager.js +1 -1
- package/dist/src/storage/sqlite/collaboration-rule-repository.d.ts +17 -0
- package/dist/src/storage/sqlite/collaboration-rule-repository.js +54 -0
- package/dist/src/storage/sqlite/connection-wait-repository.d.ts +30 -0
- package/dist/src/storage/sqlite/connection-wait-repository.js +338 -0
- package/dist/src/storage/sqlite/connector-account-repository.js +1 -1
- package/dist/src/storage/sqlite/context-evidence-repository.d.ts +24 -0
- package/dist/src/storage/sqlite/context-evidence-repository.js +52 -0
- package/dist/src/storage/sqlite/index.d.ts +3 -5
- package/dist/src/storage/sqlite/index.js +4 -6
- package/dist/src/storage/sqlite/knowledge-repository.d.ts +0 -19
- package/dist/src/storage/sqlite/knowledge-repository.js +1 -90
- package/dist/src/storage/sqlite/migrations/148_user_model_foundation.sql +554 -0
- package/dist/src/storage/sqlite/migrations/149_separate_source_index_from_memory.sql +18 -0
- package/dist/src/storage/sqlite/migrations/150_session_connection_waits.sql +47 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/notes-repository.d.ts +2 -1
- package/dist/src/storage/sqlite/notes-repository.js +37 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/session-input-repository.d.ts +14 -2
- package/dist/src/storage/sqlite/session-input-repository.js +16 -13
- package/dist/src/storage/sqlite/session-repository.js +4 -1
- package/dist/src/storage/sqlite/transcript-repository.js +1 -1
- package/dist/src/tasks/index.js +2 -2
- package/dist/src/tasks/project-operating-view-service.js +1 -1
- package/dist/src/tasks/task-application-service.js +6 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-context-repository.d.ts +0 -1
- package/dist/src/tasks/task-context-repository.js +1 -1
- package/dist/src/tasks/task-deletion-service.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-read-model-projector.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tasks/task-run-repository.js +1 -0
- package/dist/src/tasks/task-signal-service.js +1 -1
- package/dist/src/tui/tool-summary.js +2 -1
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/user-context/changes.d.ts +1 -1
- package/dist/src/user-context/config.d.ts +135 -153
- package/dist/src/user-context/config.js +94 -99
- package/dist/src/user-context/relationship-continuity.d.ts +2 -2
- package/dist/src/user-context/relationship-continuity.js +34 -24
- package/dist/src/user-context/sources/activity-clustering.d.ts +9 -3
- package/dist/src/user-context/sources/index.js +2 -2
- package/dist/src/user-context/sources/repository.d.ts +1 -21
- package/dist/src/user-context/sources/repository.js +1 -183
- package/dist/src/user-context/sources/types.d.ts +0 -23
- package/dist/src/user-model/capture/executor.d.ts +40 -0
- package/dist/src/user-model/capture/executor.js +134 -0
- package/dist/src/user-model/capture/index.d.ts +2 -0
- package/dist/src/user-model/capture/index.js +3 -0
- package/dist/src/user-model/capture/semantic.d.ts +21 -0
- package/dist/src/user-model/capture/semantic.js +197 -0
- package/dist/src/user-model/domain.d.ts +93 -0
- package/dist/src/user-model/domain.js +33 -0
- package/dist/src/user-model/goals.d.ts +58 -0
- package/dist/src/user-model/goals.js +89 -0
- package/dist/src/user-model/importance.d.ts +11 -0
- package/dist/src/user-model/importance.js +17 -0
- package/dist/src/user-model/index.d.ts +5 -0
- package/dist/src/user-model/index.js +6 -0
- package/dist/src/user-model/repository.d.ts +23 -0
- package/dist/src/user-model/repository.js +268 -0
- package/dist/src/user-model/temporal.d.ts +10 -0
- package/dist/src/user-model/temporal.js +44 -0
- package/dist/src/voice/realtime/memory-context.d.ts +7 -2
- package/dist/src/voice/realtime/memory-context.js +39 -51
- package/dist/src/work-discovery/service.d.ts +3 -14
- package/dist/src/work-discovery/service.js +138 -99
- package/dist/src/work-discovery/types.d.ts +3 -3
- package/dist/src/workflows/service/workflow-run-service.js +1 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +12 -20
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CUXApfcE.js +0 -1
- package/dist/gateway/static/root/assets/agents-DNq_GKuc.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-qfwAgyhQ.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-DqQVUpCC.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-dwIqYmXk.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-SkdcSZ0i.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-CKCa6TvG.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DSp--zIZ.js +0 -7
- package/dist/gateway/static/root/assets/channels-settings-CMd2dDrI.js +0 -1
- package/dist/gateway/static/root/assets/cloud-C4-yfnnk.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-udWs5Kdm.js +0 -2
- package/dist/gateway/static/root/assets/dependency-picker-DpN3XZg9.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DinCToZh.js +0 -1
- package/dist/gateway/static/root/assets/ellipsis-0k4rZLoy.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DcguCgsH.js +0 -1
- package/dist/gateway/static/root/assets/eye-CABVeTq0.js +0 -1
- package/dist/gateway/static/root/assets/eye-off-DEAzt3g1.js +0 -1
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +0 -1
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-api-Br7lSf6H.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CdPoDMuj.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DHk1hawP.js +0 -1
- package/dist/gateway/static/root/assets/home-page-YGipe_W6.js +0 -1
- package/dist/gateway/static/root/assets/index-D5TQQpeb.js +0 -71
- package/dist/gateway/static/root/assets/index-DReBaaTX.css +0 -2
- package/dist/gateway/static/root/assets/interaction-BmQogeqz.js +0 -1
- package/dist/gateway/static/root/assets/is-masked-secret-DOkL5b_X.js +0 -1
- package/dist/gateway/static/root/assets/link-2-D_ZKYUW7.js +0 -1
- package/dist/gateway/static/root/assets/local-context-graph-BjUf7fQ9.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-CXKy6E_l.js +0 -2
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +0 -1
- package/dist/gateway/static/root/assets/messages-CHNYp8EQ.js +0 -3
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +0 -1
- package/dist/gateway/static/root/assets/mobile-pairing-wizard-3NKCniSp.js +0 -1
- package/dist/gateway/static/root/assets/models-hub-cache-nCfkBN8M.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DuqLahi6.js +0 -1
- package/dist/gateway/static/root/assets/notes-workbench-C7j9EdQk.js +0 -5
- package/dist/gateway/static/root/assets/oauth-api-8lP_qJpq.js +0 -1
- package/dist/gateway/static/root/assets/oauth-authorization-window-Cdolr2wE.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-BaEQMYm_.js +0 -1
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-CsNVTKC0.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CfebYVX0.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-48GvzSVa.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-64xj_s2m.js +0 -1
- package/dist/gateway/static/root/assets/rotate-cw-LIg3Am9S.js +0 -1
- package/dist/gateway/static/root/assets/search-DA7gz22f.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-CcwcdRN8.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BaN84CyW.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-DjWzRk4z.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DVVOCNbr.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DUYbYLi7.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BGyD0gB9.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-CjF8DTsN.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-BSYuRgFI.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-YZYSTJH7.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-FKUi9wDL.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-BCyiduKd.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-jhT2EzeH.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DQC0TpMa.js +0 -5
- package/dist/src/agent/memory/builtin-provider.d.ts +0 -37
- package/dist/src/agent/memory/builtin-provider.js +0 -225
- package/dist/src/agent/memory/context/types.d.ts +0 -40
- package/dist/src/agent/memory/understanding/quality.d.ts +0 -8
- package/dist/src/agent/memory/understanding/quality.js +0 -18
- package/dist/src/agent/memory/understanding/service.d.ts +0 -19
- package/dist/src/agent/memory/understanding/service.js +0 -209
- package/dist/src/agent/memory/understanding/types.d.ts +0 -34
- package/dist/src/agent/memory/understanding/types.js +0 -1
- package/dist/src/agent/memory/user-context-coordinator.d.ts +0 -23
- package/dist/src/agent/memory/user-context-coordinator.js +0 -113
- package/dist/src/agent/tools/dreaming-tool.js +0 -37
- package/dist/src/agent/tools/memory-tool.d.ts +0 -9
- package/dist/src/agent/tools/memory-tool.js +0 -119
- package/dist/src/gateway/dreaming-automation-reconciler.d.ts +0 -11
- package/dist/src/gateway/dreaming-automation-reconciler.js +0 -63
- package/dist/src/gateway/hono/routes/understanding-sources.d.ts +0 -21
- package/dist/src/gateway/hono/routes/understanding-sources.js +0 -387
- package/dist/src/gateway/hono/routes/you.d.ts +0 -3
- package/dist/src/gateway/hono/routes/you.js +0 -457
- package/dist/src/projects/memory-bind.d.ts +0 -1
- package/dist/src/projects/memory-bind.js +0 -14
- package/dist/src/storage/sqlite/context-consolidation-repository.d.ts +0 -37
- package/dist/src/storage/sqlite/context-consolidation-repository.js +0 -64
- package/dist/src/storage/sqlite/memory-records-repository.d.ts +0 -217
- package/dist/src/storage/sqlite/memory-records-repository.js +0 -715
- package/dist/src/storage/sqlite/remote-context-repository.d.ts +0 -3
- package/dist/src/storage/sqlite/remote-context-repository.js +0 -40
- package/dist/src/storage/sqlite/understanding-focus-exclusions.d.ts +0 -2
- package/dist/src/storage/sqlite/understanding-focus-exclusions.js +0 -24
- package/dist/src/storage/sqlite/user-context-quality-repository.d.ts +0 -49
- package/dist/src/storage/sqlite/user-context-quality-repository.js +0 -118
- package/dist/src/storage/sqlite/user-context-repository.d.ts +0 -85
- package/dist/src/storage/sqlite/user-context-repository.js +0 -535
- package/dist/src/user-context/automatic-context.d.ts +0 -17
- package/dist/src/user-context/automatic-context.js +0 -85
- package/dist/src/user-context/consolidation.d.ts +0 -27
- package/dist/src/user-context/consolidation.js +0 -187
- package/dist/src/user-context/context-objects.d.ts +0 -17
- package/dist/src/user-context/context-objects.js +0 -99
- package/dist/src/user-context/evaluation/harness.d.ts +0 -13
- package/dist/src/user-context/evaluation/harness.js +0 -31
- package/dist/src/user-context/extraction/executor.d.ts +0 -22
- package/dist/src/user-context/extraction/executor.js +0 -142
- package/dist/src/user-context/extraction/repair.d.ts +0 -19
- package/dist/src/user-context/extraction/repair.js +0 -71
- package/dist/src/user-context/extraction/semantic.d.ts +0 -18
- package/dist/src/user-context/extraction/semantic.js +0 -148
- package/dist/src/user-context/focus-lifecycle.d.ts +0 -2
- package/dist/src/user-context/focus-lifecycle.js +0 -26
- package/dist/src/user-context/manual-understanding.d.ts +0 -12
- package/dist/src/user-context/manual-understanding.js +0 -37
- package/dist/src/user-context/planner.d.ts +0 -17
- package/dist/src/user-context/planner.js +0 -465
- package/dist/src/user-context/relationships/indexer.d.ts +0 -13
- package/dist/src/user-context/relationships/indexer.js +0 -185
- package/dist/src/user-context/relationships/service.d.ts +0 -22
- package/dist/src/user-context/relationships/service.js +0 -50
- package/dist/src/user-context/retriever.d.ts +0 -15
- package/dist/src/user-context/retriever.js +0 -124
- package/dist/src/user-context/scope.d.ts +0 -7
- package/dist/src/user-context/scope.js +0 -9
- package/dist/src/user-context/selection-policy.d.ts +0 -20
- package/dist/src/user-context/selection-policy.js +0 -33
- package/dist/src/user-context/understanding.d.ts +0 -15
- package/dist/src/user-context/understanding.js +0 -24
- package/dist/src/user-context/understandingQuality.d.ts +0 -5
- package/dist/src/user-context/understandingQuality.js +0 -48
- /package/dist/src/{agent/memory/context/types.js → knowledge-memory/domain.js} +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mobile-pairing-wizard-DiVDuCxl.js","assets/rolldown-runtime-aKtaBQYM.js","assets/dist-CpzYSoz7.js","assets/es2015-BvLh9GaE.js","assets/vendor-react-BOUWij0V.js","assets/dist-CxGUk8J-.js","assets/vendor-swr-BIWyz7Rc.js","assets/circle-check-C23XjkUj.js","assets/createLucideIcon-DPHK1VkS.js","assets/x-B_N4OPjy.js","assets/locale-store-zEL8bkwx.js","assets/messages-W5P19VTF.js","assets/cn-JdwAhgNB.js","assets/browser-BLJWD7WI.js","assets/button-CtTvuElV.js","assets/skeleton-BwbyijEw.js","assets/tunnel-api-CdZN1Jin.js","assets/external-link-DjqjBmc3.js","assets/globe-DSSGFWFn.js","assets/loader-circle-CifKLtgG.js","assets/gateway-config-swr-BGdHwT4e.js","assets/config-reload-event-Bjh2zoKp.js","assets/settings-form-section-CZu6FX4k.js","assets/settings-shell-dialog-layer-BU3UuiJr.js","assets/settings-page-S8ekeUZd.js","assets/chunk-KS7C4IRE-BaASWQor.js","assets/preload-helper-zJ_50EbN.js","assets/sessions-page-UgJmG-V4.js","assets/popover-select-C-Hj-nXR.js","assets/dist-DBS3OB8K.js","assets/floating-ui.dom-B7uQOZZW.js","assets/check-DUBLcKHA.js","assets/settings-shell-layer-context-DCp6ykjQ.js","assets/download-Dk-ZjtO6.js","assets/plus-Q2yW6OE7.js","assets/use-autosave-czRI0NBc.js","assets/page-tabs-BFMGjA60.js","assets/registry-api-Cg92zSod.js","assets/gateway-startup-retry-CuaM3b4c.js","assets/settings-advanced-gate-DDCzpdkl.js","assets/logs-page-ClvcWlL6.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/automations-page-Bo4RiTkh.js","assets/automations-workspace-BKjKTlW8.js","assets/markdown-view-DGRN-8wP.js","assets/product-delivery-CV4pDOtG.js","assets/schemas-BHS7bo06.js","assets/markdown-view-Y68dCxuc.css","assets/cron-expression-D-F9vjtE.js","assets/workflow-run-setup-panel-Dy5WgYMO.js","assets/browser-workflow-inputs-C71vfl0b.js","assets/skills-page-AYiPlgZE.js","assets/skills-page.utils-DGzl-ib-.js","assets/skill-reload-api-ghzAQKna.js","assets/browser-workflows-page-vvmSYKsO.js","assets/home-page-BiHwiBnQ.js","assets/tab-completion-input-D64VNmiA.js","assets/task-detail-page-BQAUaCDD.js","assets/date-picker-B2OoYvic.js","assets/dependency-picker-BiGx9Sbj.js","assets/dist-DLmwHyAh.js","assets/projects-page-B3UF-Pfm.js","assets/project-detail-page-CIiFJ5tk.js","assets/style-TIDOdKy0.js","assets/with-selector-aYPsXwdl.js","assets/style-DLioOiRN.css","assets/copy-Dv6d4Dvw.js","assets/note-detail-panel-CEEvR-fV.js","assets/theme-store-ZVClZKQ0.js","assets/middleware-Pd0e8Igk.js","assets/notes-page-BLqgXNCx.js","assets/workflows-page-BbAV3h7n.js","assets/tab-completion-input.utils-BP3NH_du.js","assets/user-model-page-W3GTm6nA.js","assets/connectors-page-CT_I3kbR.js","assets/electron-env-DH5wF8X8.js","assets/agents-DK9HjHO0.js","assets/settings-page-layout-BRQNel6r.js","assets/browser-settings-page-Dzq18pO1.js","assets/gateway-config-api-cimpViGk.js","assets/settings-loading-skeleton-CAmWMaOT.js","assets/channels-settings-57OGuewD.js","assets/schema-form-Dq_VQpuY.js","assets/channels-status-swr-CKyV3jY5.js","assets/apps-page-jOvT-fzU.js","assets/extension-page-oH43chS2.js","assets/extension-settings-page-BMO59994.js","assets/voice-api-key-field-8YEvA3cU.js","assets/voice-config-api-CopF64lY.js","assets/extension-debug-page-COyn05ub.js","assets/share-preview-page-D2fEidbn.js","assets/local-apps-page-CvPDPRwb.js","assets/api-Cg0v7Lpn.js","assets/local-app-workbench-page-eBFVWmtH.js","assets/product-open-page-Co5u7asH.js","assets/work-discovery-overlay-keLtqYYJ.js","assets/setup-status-panel-BdVmwXMv.js","assets/appearance-settings-CFggS95Y.js","assets/keyboard-shortcuts-settings-D8Zw_lYd.js","assets/system-settings-panel-5Xd5mIiR.js","assets/desktop-pet-settings-DeYbIV7A.js","assets/desktop-pet-sprite-DTqXSpqf.js","assets/app-management-settings-panel-C9DkCW_d.js","assets/capabilities-settings-panel-DW4SBQf4.js","assets/image-generation-api-D7duj7Uj.js","assets/gateway-settings-BHJtnSic.js","assets/runtime-tools-settings-panel-C0ByNmlV.js","assets/heartbeat-settings-DNhrZHqx.js","assets/remote-access-hub-BUtpkJPG.js","assets/shares-settings-BdsqnCYj.js","assets/agent-defaults-settings-panel-C1rXNUAG.js","assets/management-settings-D8moh99U.js","assets/attachment-process-heavy-B2_kr5EA.js","assets/excel-worksheet-utils-EyvwNT4X.js","assets/markdown-split-D7V3j0vE.js","assets/markdown-editor-nDLmA_LF.js","assets/vendor-codemirror--gTq3YAI.js","assets/code-editor-D4_k-6QN.js","assets/html-workspace-editor-C3DKAkMc.js","assets/binary-plugins-BCnyNU0C.js","assets/use-blob-object-url-D4BFuzZB.js","assets/preview-open-alternatives-DNEWZN7H.js","assets/media-plugins-BLaE5b1Y.js","assets/archive-plugin-BQrilVVv.js","assets/jszip.min-DT31yWkU.js","assets/agent-avatar-dicebear-BUu7EnwM.js","assets/attachment-load-BG0BliqV.js","assets/chat-terminal-dock-B1Xd6OFB.js","assets/chat-terminal-dock-uQUnjRtf.css","assets/desktop-pet-BNMRqipe.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,n as t}from"./rolldown-runtime-aKtaBQYM.js";import{a as n,i as r,n as i,r as a,t as o}from"./vendor-react-BOUWij0V.js";import{t as s}from"./preload-helper-zJ_50EbN.js";import{a as c,c as l,d as u,f as d,i as f,l as p,n as m,o as h,p as g,r as _,s as v,t as y,u as b}from"./chunk-KS7C4IRE-BaASWQor.js";import{a as x,d as S,f as C,g as w,h as T,i as E,l as D,m as O,n as k,o as A,p as j,r as M,s as N,t as P,u as F}from"./es2015-BvLh9GaE.js";import{i as I,n as L}from"./dist-CxGUk8J-.js";import{a as R,c as z,i as B,n as V,o as H,r as ee,s as te,t as ne}from"./dist-CpzYSoz7.js";import{t as U}from"./createLucideIcon-DPHK1VkS.js";import{t as W}from"./check-DUBLcKHA.js";import{c as re,d as ie,f as ae,i as oe,l as se,n as ce,o as le,r as ue,s as de,t as fe,u as pe}from"./popover-select-C-Hj-nXR.js";import{t as me}from"./circle-check-C23XjkUj.js";import{t as G}from"./copy-Dv6d4Dvw.js";import{t as he}from"./download-Dk-ZjtO6.js";import{t as ge}from"./external-link-DjqjBmc3.js";import{a as _e,c as ve,f as ye,g as be,h as xe,i as Se,l as Ce,m as we,n as Te,o as Ee,r as De,s as Oe,t as ke}from"./markdown-view-DGRN-8wP.js";import{t as Ae}from"./globe-DSSGFWFn.js";import{t as je}from"./loader-circle-CifKLtgG.js";import{t as Me}from"./plus-Q2yW6OE7.js";import{t as Ne}from"./x-B_N4OPjy.js";import{a as Pe,c as Fe,d as Ie,f as Le,i as Re,l as ze,m as Be,n as Ve,o as K,p as He,r as Ue,s as We,t as Ge,u as q}from"./schemas-BHS7bo06.js";import{i as Ke,n as qe,t as Je}from"./product-delivery-CV4pDOtG.js";import{t as Ye}from"./tool-activity-R8V9l6nk.js";import{i as Xe,n as Ze,r as Qe,t as $e}from"./files-D6vf3S30.js";import{r as et,t as tt}from"./copy-to-clipboard-HOJ79TWv.js";import{n as nt,t as rt}from"./messages-W5P19VTF.js";import{a as J,c as it,f as at,i as ot,l as st,n as ct,o as lt,r as Y,s as ut,t as dt,u as ft}from"./locale-store-zEL8bkwx.js";import{t as X}from"./cn-JdwAhgNB.js";import{a as pt,i as mt,n as ht,o as gt,t as _t}from"./vendor-swr-BIWyz7Rc.js";import{t as vt}from"./button-CtTvuElV.js";import{n as yt,t as bt}from"./config-reload-event-Bjh2zoKp.js";import{n as xt,r as St,t as Ct}from"./gateway-config-swr-BGdHwT4e.js";import{t as wt}from"./middleware-Pd0e8Igk.js";import{t as Tt}from"./activity-store-B759R_qf.js";import{i as Et,n as Dt,r as Ot,t as kt}from"./theme-store-ZVClZKQ0.js";import{a as At,i as jt,n as Mt,r as Nt,t as Pt}from"./dist-DBS3OB8K.js";import{t as Ft}from"./skeleton-BwbyijEw.js";import{i as It,n as Lt,o as Rt,r as zt,t as Bt}from"./settings-shell-dialog-layer-BU3UuiJr.js";import{n as Vt,r as Ht,t as Ut}from"./settings-shell-layer-context-DCp6ykjQ.js";import{t as Wt}from"./electron-env-DH5wF8X8.js";import{t as Gt}from"./gateway-startup-retry-CuaM3b4c.js";import{a as Kt,i as qt,n as Jt,r as Yt,t as Xt}from"./dist-DLmwHyAh.js";import{n as Zt,r as Qt,t as $t}from"./registry-api-Cg92zSod.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Z=e(n(),1),en=e(r(),1);function tn(e){return Z.createElement(c,{flushSync:en.flushSync,...e})}h();var nn=U(`a-arrow-down`,[[`path`,{d:`m14 12 4 4 4-4`,key:`buelq4`}],[`path`,{d:`M18 16V7`,key:`ty0viw`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),rn=U(`a-arrow-up`,[[`path`,{d:`m14 11 4-4 4 4`,key:`1pu57t`}],[`path`,{d:`M18 16V7`,key:`ty0viw`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),an=U(`a-large-small`,[[`path`,{d:`m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16`,key:`xik6mr`}],[`path`,{d:`M15.697 14h5.606`,key:`1stdlc`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),on=U(`accessibility`,[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]),sn=U(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),cn=U(`air-vent`,[[`path`,{d:`M18 17.5a2.5 2.5 0 1 1-4 2.03V12`,key:`yd12zl`}],[`path`,{d:`M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`larmp2`}],[`path`,{d:`M6 8h12`,key:`6g4wlu`}],[`path`,{d:`M6.6 15.572A2 2 0 1 0 10 17v-5`,key:`1x1kqn`}]]),ln=U(`airplay`,[[`path`,{d:`M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1`,key:`ns4c3b`}],[`path`,{d:`m12 15 5 6H7Z`,key:`14qnn2`}]]),un=U(`alarm-clock-check`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`m9 13 2 2 4-4`,key:`6343dt`}]]),dn=U(`alarm-clock-minus`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}]]),fn=U(`alarm-clock-off`,[[`path`,{d:`M6.87 6.87a8 8 0 1 0 11.26 11.26`,key:`3on8tj`}],[`path`,{d:`M19.9 14.25a8 8 0 0 0-9.15-9.15`,key:`15ghsc`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.26 18.67 4 21`,key:`yzmioq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 4 2 6`,key:`1ycko6`}]]),pn=U(`alarm-clock-plus`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}]]),mn=U(`alarm-smoke`,[[`path`,{d:`M11 21c0-2.5 2-2.5 2-5`,key:`1sicvv`}],[`path`,{d:`M16 21c0-2.5 2-2.5 2-5`,key:`1o3eny`}],[`path`,{d:`m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8`,key:`1bvca4`}],[`path`,{d:`M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z`,key:`x3qr1j`}],[`path`,{d:`M6 21c0-2.5 2-2.5 2-5`,key:`i3w1gp`}]]),hn=U(`alarm-clock`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M12 9v4l2 2`,key:`1c63tq`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}]]),gn=U(`album`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`polyline`,{points:`11 3 11 11 14 8 17 11 17 3`,key:`1wcwz3`}]]),_n=U(`align-center-horizontal`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4`,key:`11f1s0`}],[`path`,{d:`M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4`,key:`t14dx9`}],[`path`,{d:`M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1`,key:`1w07xs`}],[`path`,{d:`M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1`,key:`1apec2`}]]),vn=U(`align-center-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]),yn=U(`align-end-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`2`,rx:`2`,key:`z5wdxg`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`9`,rx:`2`,key:`um7a8w`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}]]),bn=U(`align-end-vertical`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`10wcwx`}],[`rect`,{width:`9`,height:`6`,x:`9`,y:`14`,rx:`2`,key:`4p5bwg`}],[`path`,{d:`M22 22V2`,key:`12ipfv`}]]),xn=U(`align-horizontal-distribute-center`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M17 22v-5`,key:`4b6g73`}],[`path`,{d:`M17 7V2`,key:`hnrr36`}],[`path`,{d:`M7 22v-3`,key:`1r4jpn`}],[`path`,{d:`M7 5V2`,key:`liy1u9`}]]),Sn=U(`align-horizontal-distribute-end`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M10 2v20`,key:`uyc634`}],[`path`,{d:`M20 2v20`,key:`1tx262`}]]),Cn=U(`align-horizontal-distribute-start`,[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M4 2v20`,key:`gtpd5x`}],[`path`,{d:`M14 2v20`,key:`tg6bpw`}]]),wn=U(`align-horizontal-justify-center`,[[`rect`,{width:`6`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`dy24zr`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`7`,rx:`2`,key:`13zkjt`}],[`path`,{d:`M12 2v20`,key:`t6zp3m`}]]),Tn=U(`align-horizontal-justify-end`,[[`rect`,{width:`6`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`dy24zr`}],[`rect`,{width:`6`,height:`10`,x:`12`,y:`7`,rx:`2`,key:`1ht384`}],[`path`,{d:`M22 2v20`,key:`40qfg1`}]]),En=U(`align-horizontal-justify-start`,[[`rect`,{width:`6`,height:`14`,x:`6`,y:`5`,rx:`2`,key:`hsirpf`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`7`,rx:`2`,key:`13zkjt`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]),Dn=U(`align-horizontal-space-around`,[[`rect`,{width:`6`,height:`10`,x:`9`,y:`7`,rx:`2`,key:`yn7j0q`}],[`path`,{d:`M4 22V2`,key:`tsjzd3`}],[`path`,{d:`M20 22V2`,key:`1bnhr8`}]]),On=U(`align-horizontal-space-between`,[[`rect`,{width:`6`,height:`14`,x:`3`,y:`5`,rx:`2`,key:`j77dae`}],[`rect`,{width:`6`,height:`10`,x:`15`,y:`7`,rx:`2`,key:`bq30hj`}],[`path`,{d:`M3 2v20`,key:`1d2pfg`}],[`path`,{d:`M21 2v20`,key:`p059bm`}]]),kn=U(`align-start-horizontal`,[[`rect`,{width:`6`,height:`16`,x:`4`,y:`6`,rx:`2`,key:`1n4dg1`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`6`,rx:`2`,key:`17khns`}],[`path`,{d:`M22 2H2`,key:`fhrpnj`}]]),An=U(`align-start-vertical`,[[`rect`,{width:`9`,height:`6`,x:`6`,y:`14`,rx:`2`,key:`lpm2y7`}],[`rect`,{width:`16`,height:`6`,x:`6`,y:`4`,rx:`2`,key:`rdj6ps`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]),jn=U(`align-vertical-distribute-center`,[[`path`,{d:`M22 17h-3`,key:`1lwga1`}],[`path`,{d:`M22 7h-5`,key:`o2endc`}],[`path`,{d:`M5 17H2`,key:`1gx9xc`}],[`path`,{d:`M7 7H2`,key:`6bq26l`}],[`rect`,{x:`5`,y:`14`,width:`14`,height:`6`,rx:`2`,key:`1qrzuf`}],[`rect`,{x:`7`,y:`4`,width:`10`,height:`6`,rx:`2`,key:`we8e9z`}]]),Mn=U(`align-vertical-distribute-end`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 20h20`,key:`owomy5`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),Nn=U(`align-vertical-distribute-start`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`14`,rx:`2`,key:`jmoj9s`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`4`,rx:`2`,key:`aza5on`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M2 4h20`,key:`mda7wb`}]]),Pn=U(`align-vertical-justify-center`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`16`,rx:`2`,key:`1i8z2d`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`2`,rx:`2`,key:`ypihtt`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Fn=U(`align-vertical-justify-end`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`12`,rx:`2`,key:`4l4tp2`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`2`,rx:`2`,key:`ypihtt`}],[`path`,{d:`M2 22h20`,key:`272qi7`}]]),eee=U(`align-vertical-justify-start`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`16`,rx:`2`,key:`1i8z2d`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`6`,rx:`2`,key:`13squh`}],[`path`,{d:`M2 2h20`,key:`1ennik`}]]),In=U(`align-vertical-space-around`,[[`rect`,{width:`10`,height:`6`,x:`7`,y:`9`,rx:`2`,key:`b1zbii`}],[`path`,{d:`M22 20H2`,key:`1p1f7z`}],[`path`,{d:`M22 4H2`,key:`1b7qnq`}]]),Ln=U(`align-vertical-space-between`,[[`rect`,{width:`14`,height:`6`,x:`5`,y:`15`,rx:`2`,key:`1w91an`}],[`rect`,{width:`10`,height:`6`,x:`7`,y:`3`,rx:`2`,key:`17wqzy`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M2 3h20`,key:`91anmk`}]]),Rn=U(`ambulance`,[[`path`,{d:`M10 10H6`,key:`1bsnug`}],[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14`,key:`lrkjwd`}],[`path`,{d:`M8 8v4`,key:`1fwk8c`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),zn=U(`ampersand`,[[`path`,{d:`M16 12h3`,key:`4uvgyw`}],[`path`,{d:`M17.5 12a8 8 0 0 1-8 8A4.5 4.5 0 0 1 5 15.5c0-6 8-4 8-8.5a3 3 0 1 0-6 0c0 3 2.5 8.5 12 13`,key:`nfoe1t`}]]),Bn=U(`amphora`,[[`path`,{d:`M10 2v5.632c0 .424-.272.795-.653.982A6 6 0 0 0 6 14c.006 4 3 7 5 8`,key:`1h8rid`}],[`path`,{d:`M10 5H8a2 2 0 0 0 0 4h.68`,key:`3ezsi6`}],[`path`,{d:`M14 2v5.632c0 .424.272.795.652.982A6 6 0 0 1 18 14c0 4-3 7-5 8`,key:`yt6q09`}],[`path`,{d:`M14 5h2a2 2 0 0 1 0 4h-.68`,key:`8f95yk`}],[`path`,{d:`M18 22H6`,key:`mg6kv4`}],[`path`,{d:`M9 2h6`,key:`1jrp98`}]]),Vn=U(`anchor`,[[`path`,{d:`M12 6v16`,key:`nqf5sj`}],[`path`,{d:`m19 13 2-1a9 9 0 0 1-18 0l2 1`,key:`y7qv08`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),Hn=U(`ampersands`,[[`path`,{d:`M10 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5`,key:`12lh1k`}],[`path`,{d:`M22 17c-5-3-7-7-7-9a2 2 0 0 1 4 0c0 2.5-5 2.5-5 6 0 1.7 1.3 3 3 3 2.8 0 5-2.2 5-5`,key:`173c68`}]]),Un=U(`angry`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 16s-1.5-2-4-2-4 2-4 2`,key:`epbg0q`}],[`path`,{d:`M7.5 8 10 9`,key:`olxxln`}],[`path`,{d:`m14 9 2.5-1`,key:`1j6cij`}],[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}]]),Wn=U(`annoyed`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 15h8`,key:`45n4r`}],[`path`,{d:`M8 9h2`,key:`1g203m`}],[`path`,{d:`M14 9h2`,key:`116p9w`}]]),tee=U(`anvil`,[[`path`,{d:`M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4`,key:`1hjpb6`}],[`path`,{d:`M7 5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1 7 7 0 0 1-7 7H8a1 1 0 0 1-1-1z`,key:`1qn45f`}],[`path`,{d:`M9 12v5`,key:`3anwtq`}],[`path`,{d:`M15 12v5`,key:`5xh3zn`}],[`path`,{d:`M5 20a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3 1 1 0 0 1-1 1H6a1 1 0 0 1-1-1`,key:`1fi4x8`}]]),nee=U(`antenna`,[[`path`,{d:`M2 12 7 2`,key:`117k30`}],[`path`,{d:`m7 12 5-10`,key:`1tvx22`}],[`path`,{d:`m12 12 5-10`,key:`ev1o1a`}],[`path`,{d:`m17 12 5-10`,key:`1e4ti3`}],[`path`,{d:`M4.5 7h15`,key:`vlsxkz`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}]]),ree=U(`aperture`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14.31 8 5.74 9.94`,key:`1y6ab4`}],[`path`,{d:`M9.69 8h11.48`,key:`1wxppr`}],[`path`,{d:`m7.38 12 5.74-9.94`,key:`1grp0k`}],[`path`,{d:`M9.69 16 3.95 6.06`,key:`libnyf`}],[`path`,{d:`M14.31 16H2.83`,key:`x5fava`}],[`path`,{d:`m16.62 12-5.74 9.94`,key:`1vwawt`}]]),iee=U(`app-window-mac`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M14 8h.01`,key:`1primd`}]]),Gn=U(`app-window`,[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]),Kn=U(`apple`,[[`path`,{d:`M12 6.528V3a1 1 0 0 1 1-1h0`,key:`11qiee`}],[`path`,{d:`M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21`,key:`110c12`}]]),qn=U(`archive-restore`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),Jn=U(`archive-x`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`m9.5 17 5-5`,key:`nakeu6`}],[`path`,{d:`m9.5 12 5 5`,key:`1hccrj`}]]),Yn=U(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Xn=U(`armchair`,[[`path`,{d:`M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3`,key:`irtipd`}],[`path`,{d:`M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z`,key:`1qyhux`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),Zn=U(`arrow-big-down-dash`,[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`,key:`1b91ra`}],[`path`,{d:`M9 4h6`,key:`10am2s`}]]),Qn=U(`arrow-big-down`,[[`path`,{d:`M9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-7.086 7.086a1 1 0 0 1-1.414 0l-7.086-7.086a.707.707 0 0 1 .5-1.207H8a1 1 0 0 0 1-1z`,key:`1o3tkq`}]]),$n=U(`arrow-big-left-dash`,[[`path`,{d:`M13 9a1 1 0 0 1-1-1V4.707a.707.707 0 0 0-1.207-.5l-6.94 6.94a1.207 1.207 0 0 0 0 1.707l6.94 6.94a.707.707 0 0 0 1.207-.5V16a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z`,key:`17jy80`}],[`path`,{d:`M20 9v6`,key:`14roy0`}]]),er=U(`arrow-big-left`,[[`path`,{d:`M10.793 19.793a.707.707 0 0 0 1.207-.5V16a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-6a1 1 0 0 1-1-1V4.707a.707.707 0 0 0-1.207-.5l-6.94 6.94a1.207 1.207 0 0 0 0 1.707z`,key:`qbhtmx`}]]),tr=U(`arrow-big-right-dash`,[[`path`,{d:`M11 9a1 1 0 0 0 1-1V4.707a.707.707 0 0 1 1.207-.5l6.94 6.94a1.207 1.207 0 0 1 0 1.707l-6.94 6.94a.707.707 0 0 1-1.207-.5V16a1 1 0 0 0-1-1H9a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z`,key:`9idyso`}],[`path`,{d:`M4 9v6`,key:`bns7oa`}]]),nr=U(`arrow-big-right`,[[`path`,{d:`M13.207 19.793a.707.707 0 0 1-1.207-.5V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1V4.707a.707.707 0 0 1 1.207-.5l6.94 6.94a1.207 1.207 0 0 1 0 1.707z`,key:`zee3eo`}]]),rr=U(`arrow-big-up-dash`,[[`path`,{d:`M14 16a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-6.939-6.939a1.207 1.207 0 0 0-1.708 0l-6.94 6.94a.707.707 0 0 0 .5 1.206H8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1z`,key:`q57loy`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),ir=U(`arrow-big-up`,[[`path`,{d:`M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z`,key:`106j91`}]]),ar=U(`arrow-down-0-1`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`rect`,{x:`15`,y:`4`,width:`4`,height:`6`,ry:`2`,key:`1bwicg`}],[`path`,{d:`M17 20v-6h-2`,key:`1qp1so`}],[`path`,{d:`M15 20h4`,key:`1j968p`}]]),or=U(`arrow-down-1-0`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M17 10V4h-2`,key:`zcsr5x`}],[`path`,{d:`M15 10h4`,key:`id2lce`}],[`rect`,{x:`15`,y:`14`,width:`4`,height:`6`,ry:`2`,key:`33xykx`}]]),sr=U(`arrow-down-from-line`,[[`path`,{d:`M19 3H5`,key:`1236rx`}],[`path`,{d:`M12 21V7`,key:`gj6g52`}],[`path`,{d:`m6 15 6 6 6-6`,key:`h15q88`}]]),cr=U(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),lr=U(`arrow-down-left`,[[`path`,{d:`M17 7 7 17`,key:`15tmo1`}],[`path`,{d:`M17 17H7V7`,key:`1org7z`}]]),ur=U(`arrow-down-narrow-wide`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h4`,key:`6d7r33`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h10`,key:`1438ji`}]]),dr=U(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),fr=U(`arrow-down-to-dot`,[[`path`,{d:`M12 2v14`,key:`jyx4ut`}],[`path`,{d:`m19 9-7 7-7-7`,key:`1oe3oy`}],[`circle`,{cx:`12`,cy:`21`,r:`1`,key:`o0uj5v`}]]),pr=U(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),mr=U(`arrow-down-up`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`m21 8-4-4-4 4`,key:`1c9v7m`}],[`path`,{d:`M17 4v16`,key:`7dpous`}]]),hr=U(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),gr=U(`arrow-down-z-a`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M15 4h5l-5 6h5`,key:`8asdl1`}],[`path`,{d:`M15 20v-3.5a2.5 2.5 0 0 1 5 0V20`,key:`r6l5cz`}],[`path`,{d:`M20 18h-5`,key:`18j1r2`}]]),_r=U(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),vr=U(`arrow-left-from-line`,[[`path`,{d:`m9 6-6 6 6 6`,key:`7v63n9`}],[`path`,{d:`M3 12h14`,key:`13k4hi`}],[`path`,{d:`M21 19V5`,key:`b4bplr`}]]),yr=U(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),br=U(`arrow-left-to-line`,[[`path`,{d:`M3 19V5`,key:`rwsyhb`}],[`path`,{d:`m13 6-6 6 6 6`,key:`1yhaz7`}],[`path`,{d:`M7 12h14`,key:`uoisry`}]]),xr=U(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Sr=U(`arrow-right-from-line`,[[`path`,{d:`M3 5v14`,key:`1nt18q`}],[`path`,{d:`M21 12H7`,key:`13ipq5`}],[`path`,{d:`m15 18 6-6-6-6`,key:`6tx3qv`}]]),Cr=U(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),wr=U(`arrow-right-to-line`,[[`path`,{d:`M17 12H3`,key:`8awo09`}],[`path`,{d:`m11 18 6-6-6-6`,key:`8c2y43`}],[`path`,{d:`M21 5v14`,key:`nzette`}]]),Tr=U(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Er=U(`arrow-up-0-1`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`rect`,{x:`15`,y:`4`,width:`4`,height:`6`,ry:`2`,key:`1bwicg`}],[`path`,{d:`M17 20v-6h-2`,key:`1qp1so`}],[`path`,{d:`M15 20h4`,key:`1j968p`}]]),Dr=U(`arrow-up-1-0`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M17 10V4h-2`,key:`zcsr5x`}],[`path`,{d:`M15 10h4`,key:`id2lce`}],[`rect`,{x:`15`,y:`14`,width:`4`,height:`6`,ry:`2`,key:`33xykx`}]]),Or=U(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),kr=U(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),Ar=U(`arrow-up-from-dot`,[[`path`,{d:`m5 9 7-7 7 7`,key:`1hw5ic`}],[`path`,{d:`M12 16V2`,key:`ywoabb`}],[`circle`,{cx:`12`,cy:`21`,r:`1`,key:`o0uj5v`}]]),jr=U(`arrow-up-from-line`,[[`path`,{d:`m18 9-6-6-6 6`,key:`kcunyi`}],[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Mr=U(`arrow-up-left`,[[`path`,{d:`M7 17V7h10`,key:`11bw93`}],[`path`,{d:`M17 17 7 7`,key:`2786uv`}]]),Nr=U(`arrow-up-narrow-wide`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h10`,key:`jvxblo`}]]),Pr=U(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),Fr=U(`arrow-up-to-line`,[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]),Ir=U(`arrow-up-wide-narrow`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h4`,key:`1krc32`}]]),Lr=U(`arrow-up-z-a`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M15 4h5l-5 6h5`,key:`8asdl1`}],[`path`,{d:`M15 20v-3.5a2.5 2.5 0 0 1 5 0V20`,key:`r6l5cz`}],[`path`,{d:`M20 18h-5`,key:`18j1r2`}]]),Rr=U(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),zr=U(`arrows-up-from-line`,[[`path`,{d:`m4 6 3-3 3 3`,key:`9aidw8`}],[`path`,{d:`M7 17V3`,key:`19qxw1`}],[`path`,{d:`m14 6 3-3 3 3`,key:`6iy689`}],[`path`,{d:`M17 17V3`,key:`o0fmgi`}],[`path`,{d:`M4 21h16`,key:`1h09gz`}]]),Br=U(`asterisk`,[[`path`,{d:`M12 6v12`,key:`1vza4d`}],[`path`,{d:`M17.196 9 6.804 15`,key:`1ah31z`}],[`path`,{d:`m6.804 9 10.392 6`,key:`1b6pxd`}]]),Vr=U(`astroid`,[[`path`,{d:`M12.983 21.186a1 1 0 0 1-1.966 0 10 10 0 0 0-8.203-8.203 1 1 0 0 1 0-1.966 10 10 0 0 0 8.203-8.203 1 1 0 0 1 1.966 0 10 10 0 0 0 8.203 8.203 1 1 0 0 1 0 1.966 10 10 0 0 0-8.203 8.203`,key:`1tipus`}]]),Hr=U(`at-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]),Ur=U(`atom`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z`,key:`1l2ple`}],[`path`,{d:`M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z`,key:`1wam0m`}]]),Wr=U(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]),Gr=U(`audio-waveform`,[[`path`,{d:`M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2`,key:`57tc96`}]]),Kr=U(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),qr=U(`axe`,[[`path`,{d:`m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9`,key:`5z9253`}],[`path`,{d:`M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z`,key:`19zklq`}]]),Jr=U(`axis-3d`,[[`path`,{d:`M13.5 10.5 15 9`,key:`1nsxvm`}],[`path`,{d:`M4 4v15a1 1 0 0 0 1 1h15`,key:`1w6lkd`}],[`path`,{d:`M4.293 19.707 6 18`,key:`3g1p8c`}],[`path`,{d:`m9 15 1.5-1.5`,key:`1xfbes`}]]),Yr=U(`badge-alert`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Xr=U(`backpack`,[[`path`,{d:`M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`,key:`1ol0lm`}],[`path`,{d:`M8 10h8`,key:`c7uz4u`}],[`path`,{d:`M8 18h8`,key:`1no2b1`}],[`path`,{d:`M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6`,key:`1fr6do`}],[`path`,{d:`M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2`,key:`donm21`}]]),Zr=U(`badge-cent`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M15.4 10a4 4 0 1 0 0 4`,key:`2eqtx8`}]]),Qr=U(`baby`,[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]),$r=U(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ei=U(`badge-dollar-sign`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),ti=U(`badge-euro`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M7 12h5`,key:`gblrwe`}],[`path`,{d:`M15 9.4a4 4 0 1 0 0 5.2`,key:`1makmb`}]]),ni=U(`badge-indian-rupee`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M8 8h8`,key:`1bis0t`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m13 17-5-1h1a4 4 0 0 0 0-8`,key:`nu2bwa`}]]),ri=U(`badge-info`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`12`,key:`1y1yb1`}],[`line`,{x1:`12`,x2:`12.01`,y1:`8`,y2:`8`,key:`110wyk`}]]),ii=U(`badge-japanese-yen`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 8 3 3v7`,key:`17yadx`}],[`path`,{d:`m12 11 3-3`,key:`p4cfq1`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M9 16h6`,key:`8wimt3`}]]),ai=U(`badge-minus`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),oi=U(`badge-percent`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),si=U(`badge-pound-sterling`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M8 12h4`,key:`qz6y1c`}],[`path`,{d:`M10 16V9.5a2.5 2.5 0 0 1 5 0`,key:`3mlbjk`}],[`path`,{d:`M8 16h7`,key:`sbedsn`}]]),ci=U(`badge-plus`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`16`,key:`10p56q`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),li=U(`badge-question-mark`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`line`,{x1:`12`,x2:`12.01`,y1:`17`,y2:`17`,key:`io3f8k`}]]),ui=U(`badge-russian-ruble`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M9 16h5`,key:`1syiyw`}],[`path`,{d:`M9 12h5a2 2 0 1 0 0-4h-3v9`,key:`1ge9c1`}]]),di=U(`badge-turkish-lira`,[[`path`,{d:`M11 7v10a5 5 0 0 0 5-5`,key:`1ja3ih`}],[`path`,{d:`m15 8-6 3`,key:`4x0uwz`}],[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76`,key:`18242g`}]]),fi=U(`badge-swiss-franc`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`M11 17V8h4`,key:`1bfq6y`}],[`path`,{d:`M11 12h3`,key:`2eqnfz`}],[`path`,{d:`M9 16h4`,key:`1skf3a`}]]),pi=U(`badge-x`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]),mi=U(`badge`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}]]),hi=U(`balloon`,[[`path`,{d:`M12 16v1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v1`,key:`2nz4b`}],[`path`,{d:`M12 6a2 2 0 0 1 2 2`,key:`7y7d82`}],[`path`,{d:`M18 8c0 4-3.5 8-6 8s-6-4-6-8a6 6 0 0 1 12 0`,key:`vqb5s3`}]]),gi=U(`baggage-claim`,[[`path`,{d:`M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2`,key:`4irg2o`}],[`path`,{d:`M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10`,key:`14fcyx`}],[`rect`,{width:`13`,height:`8`,x:`8`,y:`6`,rx:`1`,key:`o6oiis`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`9`,cy:`20`,r:`2`,key:`e5v82j`}]]),_i=U(`bandage`,[[`path`,{d:`M10 10.01h.01`,key:`1e9xi7`}],[`path`,{d:`M10 14.01h.01`,key:`ac23bv`}],[`path`,{d:`M14 10.01h.01`,key:`2wfrvf`}],[`path`,{d:`M14 14.01h.01`,key:`8tw8yn`}],[`path`,{d:`M18 6v12`,key:`1bcixs`}],[`path`,{d:`M6 6v12`,key:`vkc79e`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`12`,rx:`2`,key:`1wpnh2`}]]),vi=U(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),yi=U(`banknote-arrow-down`,[[`path`,{d:`M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`x6cv4u`}],[`path`,{d:`m16 19 3 3 3-3`,key:`1ibux0`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),bi=U(`banknote-arrow-up`,[[`path`,{d:`M12 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`x6cv4u`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M19 22v-6`,key:`qhmiwi`}],[`path`,{d:`m22 19-3-3-3 3`,key:`rn6bg2`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),xi=U(`banana`,[[`path`,{d:`M4 13c3.5-2 8-2 10 2a5.5 5.5 0 0 1 8 5`,key:`1cscit`}],[`path`,{d:`M5.15 17.89c5.52-1.52 8.65-6.89 7-12C11.55 4 11.5 2 13 2c3.22 0 5 5.5 5 8 0 6.5-4.2 12-10.49 12C5.11 22 2 22 2 20c0-1.5 1.14-1.55 3.15-2.11Z`,key:`1y1nbv`}]]),Si=U(`banknote-x`,[[`path`,{d:`M13 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5`,key:`16nib6`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`m22 17-5 5`,key:`gqnmv0`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Ci=U(`banknote`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M6 12h.01M18 12h.01`,key:`113zkx`}]]),wi=U(`barcode`,[[`path`,{d:`M3 5v14`,key:`1nt18q`}],[`path`,{d:`M8 5v14`,key:`1ybrkv`}],[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`M17 5v14`,key:`ycjyhj`}],[`path`,{d:`M21 5v14`,key:`nzette`}]]),Ti=U(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Ei=U(`barrel`,[[`path`,{d:`M10 3a41 41 0 0 0 0 18`,key:`1qcnzb`}],[`path`,{d:`M14 3a41 41 0 0 1 0 18`,key:`547vd4`}],[`path`,{d:`M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z`,key:`1wepyy`}],[`path`,{d:`M3.84 17h16.32`,key:`1wh981`}],[`path`,{d:`M3.84 7h16.32`,key:`19jf4x`}]]),Di=U(`bath`,[[`path`,{d:`M10 4 8 6`,key:`1rru8s`}],[`path`,{d:`M17 19v2`,key:`ts1sot`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M7 19v2`,key:`12npes`}],[`path`,{d:`M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5`,key:`14ym8i`}]]),Oi=U(`battery-charging`,[[`path`,{d:`m11 7-3 5h4l-3 5`,key:`b4a64w`}],[`path`,{d:`M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935`,key:`lre1cr`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936`,key:`13q5k0`}]]),ki=U(`battery-medium`,[[`path`,{d:`M10 14v-4`,key:`suye4c`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Ai=U(`battery-full`,[[`path`,{d:`M10 10v4`,key:`1mb2ec`}],[`path`,{d:`M14 10v4`,key:`1nt88p`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 10v4`,key:`1n77qd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),ji=U(`battery-low`,[[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Mi=U(`battery-plus`,[[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`path`,{d:`M12.543 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.605`,key:`o09yah`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M7 12h6`,key:`iekk3h`}],[`path`,{d:`M7.606 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.606`,key:`xyqvf1`}]]),Ni=U(`battery`,[[`path`,{d:`M 22 14 L 22 10`,key:`nqc4tb`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Pi=U(`battery-warning`,[[`path`,{d:`M10 17h.01`,key:`nbq80n`}],[`path`,{d:`M10 7v6`,key:`nne03l`}],[`path`,{d:`M14 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2`,key:`1m83kb`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`h8lgfh`}]]),Fi=U(`beaker`,[[`path`,{d:`M4.5 3h15`,key:`c7n0jr`}],[`path`,{d:`M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3`,key:`m1uhx7`}],[`path`,{d:`M6 14h12`,key:`4cwo0f`}]]),Ii=U(`bean-off`,[[`path`,{d:`M9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22a13.96 13.96 0 0 0 9.9-4.1`,key:`bq3udt`}],[`path`,{d:`M10.75 5.093A6 6 0 0 1 22 8c0 2.411-.61 4.68-1.683 6.66`,key:`17ccse`}],[`path`,{d:`M5.341 10.62a4 4 0 0 0 6.487 1.208M10.62 5.341a4.015 4.015 0 0 1 2.039 2.04`,key:`18zqgq`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Li=U(`bean`,[[`path`,{d:`M10.165 6.598C9.954 7.478 9.64 8.36 9 9c-.64.64-1.521.954-2.402 1.165A6 6 0 0 0 8 22c7.732 0 14-6.268 14-14a6 6 0 0 0-11.835-1.402Z`,key:`1tvzk7`}],[`path`,{d:`M5.341 10.62a4 4 0 1 0 5.279-5.28`,key:`2cyri2`}]]),Ri=U(`bed-double`,[[`path`,{d:`M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8`,key:`1k78r4`}],[`path`,{d:`M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4`,key:`fb3tl2`}],[`path`,{d:`M12 4v6`,key:`1dcgq2`}],[`path`,{d:`M2 18h20`,key:`ajqnye`}]]),aee=U(`bed`,[[`path`,{d:`M2 4v16`,key:`vw9hq8`}],[`path`,{d:`M2 8h18a2 2 0 0 1 2 2v10`,key:`1dgv2r`}],[`path`,{d:`M2 17h20`,key:`18nfp3`}],[`path`,{d:`M6 8v9`,key:`1yriud`}]]),oee=U(`bed-single`,[[`path`,{d:`M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8`,key:`1wm6mi`}],[`path`,{d:`M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4`,key:`4k93s5`}],[`path`,{d:`M3 18h18`,key:`1h113x`}]]),see=U(`beef-off`,[[`path`,{d:`M11.771 6.109a2.5 2.5 0 0 1 3.12 3.12`,key:`3w1grc`}],[`path`,{d:`M17.852 12.185a6.5 6.5 0 0 0-9.035-9.04`,key:`1xgl7b`}],[`path`,{d:`M18.013 18.013C15.029 20.349 10.831 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5`,key:`3m3yc0`}],[`path`,{d:`m18.5 6 2.19 4.5a6.48 6.48 0 0 1-.139 4.393`,key:`1rvkn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6.355 6.37a7 7 0 0 0-.075.23c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c3.356 0 6.993-1.267 9.85-3.151`,key:`54713r`}]]),cee=U(`beef`,[[`path`,{d:`M16.4 13.7A6.5 6.5 0 1 0 6.28 6.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3`,key:`cisjcv`}],[`path`,{d:`m18.5 6 2.19 4.5a6.48 6.48 0 0 1-2.29 7.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5`,key:`5byaag`}],[`circle`,{cx:`12.5`,cy:`8.5`,r:`2.5`,key:`9738u8`}]]),lee=U(`beer-off`,[[`path`,{d:`M13 13v5`,key:`igwfh0`}],[`path`,{d:`M17 11.47V8`,key:`16yw0g`}],[`path`,{d:`M17 11h1a3 3 0 0 1 2.745 4.211`,key:`1xbt65`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-3`,key:`c55o3e`}],[`path`,{d:`M7.536 7.535C6.766 7.649 6.154 8 5.5 8a2.5 2.5 0 0 1-1.768-4.268`,key:`1ydug7`}],[`path`,{d:`M8.727 3.204C9.306 2.767 9.885 2 11 2c1.56 0 2 1.5 3 1.5s1.72-.5 2.5-.5a1 1 0 1 1 0 5c-.78 0-1.5-.5-2.5-.5a3.149 3.149 0 0 0-.842.12`,key:`q81o7q`}],[`path`,{d:`M9 14.6V18`,key:`20ek98`}]]),uee=U(`beer`,[[`path`,{d:`M17 11h1a3 3 0 0 1 0 6h-1`,key:`1yp76v`}],[`path`,{d:`M9 12v6`,key:`1u1cab`}],[`path`,{d:`M13 12v6`,key:`1sugkk`}],[`path`,{d:`M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z`,key:`1510fo`}],[`path`,{d:`M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`19jb7n`}]]),dee=U(`bell-check`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`m15 8 2 2 4-4`,key:`sbrgsm`}],[`path`,{d:`M16.8607 4.4824A6 6 0 0 0 6 8C6 12.499 4.589 13.956 3.262 15.326`,key:`qcog4a`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17H20A1 1 0 0 0 20.74 15.327C20.209 14.779 19.665 14.218 19.203 13.454`,key:`mxnnoh`}]]),fee=U(`bell-dot`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348`,key:`xaq59h`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),pee=U(`bell-electric`,[[`path`,{d:`M18.518 17.347A7 7 0 0 1 14 19`,key:`1emhpo`}],[`path`,{d:`M18.8 4A11 11 0 0 1 20 9`,key:`127b67`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`circle`,{cx:`9`,cy:`9`,r:`7`,key:`p2h5vp`}],[`rect`,{x:`4`,y:`16`,width:`10`,height:`6`,rx:`2`,key:`bfnviv`}]]),mee=U(`bell-minus`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M15 8h6`,key:`8ybuxh`}],[`path`,{d:`M16.243 3.757A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673A9.4 9.4 0 0 1 18.667 12`,key:`bdwj86`}]]),hee=U(`bell-off`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]),gee=U(`bell-plus`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M15 8h6`,key:`8ybuxh`}],[`path`,{d:`M18 5v6`,key:`g5ayrv`}],[`path`,{d:`M20.002 14.464a9 9 0 0 0 .738.863A1 1 0 0 1 20 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 8.75-5.332`,key:`1abcvy`}]]),_ee=U(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),zi=U(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),vee=U(`between-horizontal-end`,[[`rect`,{width:`13`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`11xb64`}],[`path`,{d:`m22 15-3-3 3-3`,key:`26chmm`}],[`rect`,{width:`13`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`k6ky7n`}]]),yee=U(`between-vertical-end`,[[`rect`,{width:`7`,height:`13`,x:`3`,y:`3`,rx:`1`,key:`1fdu0f`}],[`path`,{d:`m9 22 3-3 3 3`,key:`17z65a`}],[`rect`,{width:`7`,height:`13`,x:`14`,y:`3`,rx:`1`,key:`1squn4`}]]),bee=U(`between-vertical-start`,[[`rect`,{width:`7`,height:`13`,x:`3`,y:`8`,rx:`1`,key:`1fjrkv`}],[`path`,{d:`m15 2-3 3-3-3`,key:`1uh6eb`}],[`rect`,{width:`7`,height:`13`,x:`14`,y:`8`,rx:`1`,key:`w3fjg8`}]]),xee=U(`between-horizontal-start`,[[`rect`,{width:`13`,height:`7`,x:`8`,y:`3`,rx:`1`,key:`pkso9a`}],[`path`,{d:`m2 9 3 3-3 3`,key:`1agib5`}],[`rect`,{width:`13`,height:`7`,x:`8`,y:`14`,rx:`1`,key:`1q5fc1`}]]),See=U(`biceps-flexed`,[[`path`,{d:`M12.409 13.017A5 5 0 0 1 22 15c0 3.866-4 7-9 7-4.077 0-8.153-.82-10.371-2.462-.426-.316-.631-.832-.62-1.362C2.118 12.723 2.627 2 10 2a3 3 0 0 1 3 3 2 2 0 0 1-2 2c-1.105 0-1.64-.444-2-1`,key:`1pmlyh`}],[`path`,{d:`M15 14a5 5 0 0 0-7.584 2`,key:`5rb254`}],[`path`,{d:`M9.964 6.825C8.019 7.977 9.5 13 8 15`,key:`kbvsx9`}]]),Cee=U(`binary`,[[`rect`,{x:`14`,y:`14`,width:`4`,height:`6`,rx:`2`,key:`p02svl`}],[`rect`,{x:`6`,y:`4`,width:`4`,height:`6`,rx:`2`,key:`xm4xkj`}],[`path`,{d:`M6 20h4`,key:`1i6q5t`}],[`path`,{d:`M14 10h4`,key:`ru81e7`}],[`path`,{d:`M6 14h2v6`,key:`16z9wg`}],[`path`,{d:`M14 4h2v6`,key:`1idq9u`}]]),wee=U(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),Tee=U(`binoculars`,[[`path`,{d:`M10 10h4`,key:`tcdvrf`}],[`path`,{d:`M19 7V4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3`,key:`3apit1`}],[`path`,{d:`M20 21a2 2 0 0 0 2-2v-3.851c0-1.39-2-2.962-2-4.829V8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v11a2 2 0 0 0 2 2z`,key:`rhpgnw`}],[`path`,{d:`M 22 16 L 2 16`,key:`14lkq7`}],[`path`,{d:`M4 21a2 2 0 0 1-2-2v-3.851c0-1.39 2-2.962 2-4.829V8a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v11a2 2 0 0 1-2 2z`,key:`104b3k`}],[`path`,{d:`M9 7V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3`,key:`14fczp`}]]),Eee=U(`biohazard`,[[`circle`,{cx:`12`,cy:`11.9`,r:`2`,key:`e8h31w`}],[`path`,{d:`M6.7 3.4c-.9 2.5 0 5.2 2.2 6.7C6.5 9 3.7 9.6 2 11.6`,key:`17bolr`}],[`path`,{d:`m8.9 10.1 1.4.8`,key:`15ezny`}],[`path`,{d:`M17.3 3.4c.9 2.5 0 5.2-2.2 6.7 2.4-1.2 5.2-.6 6.9 1.5`,key:`wtwa5u`}],[`path`,{d:`m15.1 10.1-1.4.8`,key:`1r0b28`}],[`path`,{d:`M16.7 20.8c-2.6-.4-4.6-2.6-4.7-5.3-.2 2.6-2.1 4.8-4.7 5.2`,key:`m7qszh`}],[`path`,{d:`M12 13.9v1.6`,key:`zfyyim`}],[`path`,{d:`M13.5 5.4c-1-.2-2-.2-3 0`,key:`1bi9q0`}],[`path`,{d:`M17 16.4c.7-.7 1.2-1.6 1.5-2.5`,key:`1rhjqw`}],[`path`,{d:`M5.5 13.9c.3.9.8 1.8 1.5 2.5`,key:`8gsud3`}]]),Dee=U(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),Oee=U(`birdhouse`,[[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m17 18 1.956-11.468`,key:`l5n2ro`}],[`path`,{d:`m3 8 7.82-5.615a2 2 0 0 1 2.36 0L21 8`,key:`1sy6n7`}],[`path`,{d:`M4 18h16`,key:`19g7jn`}],[`path`,{d:`M7 18 5.044 6.532`,key:`1uqdf2`}],[`circle`,{cx:`12`,cy:`10`,r:`2`,key:`1yojzk`}]]),kee=U(`bitcoin`,[[`path`,{d:`M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727`,key:`yr8idg`}]]),Aee=U(`blend`,[[`circle`,{cx:`9`,cy:`9`,r:`7`,key:`p2h5vp`}],[`circle`,{cx:`15`,cy:`15`,r:`7`,key:`19ennj`}]]),jee=U(`blender`,[[`path`,{d:`M8 14a2 2 0 0 0-1.963 1.615l-1.018 5.193A1 1 0 0 0 6 22h12a1 1 0 0 0 .981-1.192l-1.018-5.193A2 2 0 0 0 16 14z`,key:`11zxmj`}],[`path`,{d:`m17 2-1 12`,key:`nxm2fw`}],[`path`,{d:`M8.006 14 7 2`,key:`13bxiv`}],[`path`,{d:`M7.565 8.787A5 5 0 0 0 12 8a5 5 0 0 1 4.56-.75`,key:`1s61ad`}],[`path`,{d:`M19 2H5a2 2 0 0 0-2 2v5a2 2 0 0 0 .688 1.5`,key:`gel3rg`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),Mee=U(`blinds`,[[`path`,{d:`M3 3h18`,key:`o7r712`}],[`path`,{d:`M20 7H8`,key:`gd2fo2`}],[`path`,{d:`M20 11H8`,key:`1ynp89`}],[`path`,{d:`M10 19h10`,key:`19hjk5`}],[`path`,{d:`M8 15h12`,key:`1yqzne`}],[`path`,{d:`M4 3v14`,key:`fggqzn`}],[`circle`,{cx:`4`,cy:`19`,r:`2`,key:`p3m9r0`}]]),Nee=U(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),Pee=U(`bluetooth-connected`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`12`,key:`1rsjjs`}],[`line`,{x1:`3`,x2:`6`,y1:`12`,y2:`12`,key:`11yl8c`}]]),Fee=U(`bluetooth-off`,[[`path`,{d:`m17 17-5 5V12l-5 5`,key:`v5aci6`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M14.5 9.5 17 7l-5-5v4.5`,key:`1kddfz`}]]),Iee=U(`bluetooth-searching`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}],[`path`,{d:`M20.83 14.83a4 4 0 0 0 0-5.66`,key:`k8tn1j`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}]]),Lee=U(`bluetooth`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}]]),Bi=U(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ree=U(`bolt`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),zee=U(`bomb`,[[`circle`,{cx:`11`,cy:`13`,r:`9`,key:`hd149`}],[`path`,{d:`M14.35 4.65 16.3 2.7a2.41 2.41 0 0 1 3.4 0l1.6 1.6a2.4 2.4 0 0 1 0 3.4l-1.95 1.95`,key:`jp4j1b`}],[`path`,{d:`m22 2-1.5 1.5`,key:`ay92ug`}]]),Bee=U(`book-a`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m8 13 4-7 4 7`,key:`4rari8`}],[`path`,{d:`M9.1 11h5.7`,key:`1gkovt`}]]),Vee=U(`book-alert`,[[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M12 6v3`,key:`1m4b9j`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Hee=U(`book-audio`,[[`path`,{d:`M12 6v7`,key:`1f6ttz`}],[`path`,{d:`M16 8v3`,key:`gejaml`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 8v3`,key:`1qzp49`}]]),Uee=U(`bone`,[[`path`,{d:`M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z`,key:`w610uw`}]]),Wee=U(`book-copy`,[[`path`,{d:`M5 7a2 2 0 0 0-2 2v11`,key:`1yhqjt`}],[`path`,{d:`M5.803 18H5a2 2 0 0 0 0 4h9.5a.5.5 0 0 0 .5-.5V21`,key:`edzzo5`}],[`path`,{d:`M9 15V4a2 2 0 0 1 2-2h9.5a.5.5 0 0 1 .5.5v14a.5.5 0 0 1-.5.5H11a2 2 0 0 1 0-4h10`,key:`1nwzrg`}]]),Gee=U(`book-check`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 9.5 2 2 4-4`,key:`1dth82`}]]),Kee=U(`book-dashed`,[[`path`,{d:`M12 17h1.5`,key:`1gkc67`}],[`path`,{d:`M12 22h1.5`,key:`1my7sn`}],[`path`,{d:`M12 2h1.5`,key:`19tvb7`}],[`path`,{d:`M17.5 22H19a1 1 0 0 0 1-1`,key:`10akbh`}],[`path`,{d:`M17.5 2H19a1 1 0 0 1 1 1v1.5`,key:`1vrfjs`}],[`path`,{d:`M20 14v3h-2.5`,key:`1naeju`}],[`path`,{d:`M20 8.5V10`,key:`1ctpfu`}],[`path`,{d:`M4 10V8.5`,key:`1o3zg5`}],[`path`,{d:`M4 19.5V14`,key:`ob81pf`}],[`path`,{d:`M4 4.5A2.5 2.5 0 0 1 6.5 2H8`,key:`s8vcyb`}],[`path`,{d:`M8 22H6.5a1 1 0 0 1 0-5H8`,key:`1cu73q`}]]),qee=U(`book-down`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 10 3 3 3-3`,key:`zt5b4y`}]]),Jee=U(`book-heart`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8.62 9.8A2.25 2.25 0 1 1 12 6.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`9v40y5`}]]),Yee=U(`book-headphones`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 12v-2a4 4 0 0 1 8 0v2`,key:`1vsqkj`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}]]),Xee=U(`book-image`,[[`path`,{d:`m20 13.7-2.1-2.1a2 2 0 0 0-2.8 0L9.7 17`,key:`q6ojf0`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`circle`,{cx:`10`,cy:`8`,r:`2`,key:`2qkj4p`}]]),Zee=U(`book-key`,[[`path`,{d:`M13 2H6.5A2.5 2.5 0 0 0 4 4.5v15`,key:`4azifu`}],[`path`,{d:`M17 2v6`,key:`qgmh37`}],[`path`,{d:`M17 4h2`,key:`13vrzo`}],[`path`,{d:`M20 15.2V21a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`192hzx`}],[`circle`,{cx:`17`,cy:`10`,r:`2`,key:`y0i25j`}]]),Qee=U(`book-lock`,[[`path`,{d:`M18 6V4a2 2 0 1 0-4 0v2`,key:`1aquzs`}],[`path`,{d:`M20 15v6a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`1rkj32`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H10`,key:`18wgow`}],[`rect`,{x:`12`,y:`6`,width:`8`,height:`5`,rx:`1`,key:`73l30o`}]]),$ee=U(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),ete=U(`book-minus`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),tte=U(`book-open-check`,[[`path`,{d:`M12 21V7`,key:`gj6g52`}],[`path`,{d:`m16 12 2 2 4-4`,key:`mdajum`}],[`path`,{d:`M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3`,key:`8arnkb`}]]),Vi=U(`book-open-text`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M16 12h2`,key:`7q9ll5`}],[`path`,{d:`M16 8h2`,key:`msurwy`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}],[`path`,{d:`M6 12h2`,key:`32wvfc`}],[`path`,{d:`M6 8h2`,key:`30oboj`}]]),Hi=U(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),nte=U(`book-plus`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),rte=U(`book-search`,[[`path`,{d:`M11 22H5.5a1 1 0 0 1 0-5h4.501`,key:`mcbepb`}],[`path`,{d:`m21 22-1.879-1.878`,key:`12q7x1`}],[`path`,{d:`M3 19.5v-15A2.5 2.5 0 0 1 5.5 2H18a1 1 0 0 1 1 1v8`,key:`olfd5n`}],[`circle`,{cx:`17`,cy:`18`,r:`3`,key:`82mm0e`}]]),ite=U(`book-text`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 11h8`,key:`vwpz6n`}],[`path`,{d:`M8 7h6`,key:`1f0q6e`}]]),ate=U(`book-type`,[[`path`,{d:`M10 13h4`,key:`ytezjc`}],[`path`,{d:`M12 6v7`,key:`1f6ttz`}],[`path`,{d:`M16 8V6H8v2`,key:`x8j6u4`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),ote=U(`book-up-2`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M18 2h1a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`161d7n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2`,key:`1lorq7`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),ste=U(`book-up`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}]]),cte=U(`book-user`,[[`path`,{d:`M15 13a3 3 0 1 0-6 0`,key:`10j68g`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}]]),lte=U(`book-x`,[[`path`,{d:`m14.5 7-5 5`,key:`dy991v`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9.5 7 5 5`,key:`s45iea`}]]),ute=U(`book`,[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),Ui=U(`bookmark-check`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}]]),Wi=U(`bookmark-minus`,[[`path`,{d:`M15 10H9`,key:`o6yqo3`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Gi=U(`bookmark-off`,[[`path`,{d:`M19 19v1a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5`,key:`nigmce`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.656 3H17a2 2 0 0 1 2 2v8.344`,key:`hlvsa`}]]),Ki=U(`bookmark-plus`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M15 10H9`,key:`o6yqo3`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),qi=U(`bookmark-x`,[[`path`,{d:`m14.5 7.5-5 5`,key:`3lb6iw`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}],[`path`,{d:`m9.5 7.5 5 5`,key:`ko136h`}]]),Ji=U(`bookmark`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Yi=U(`boom-box`,[[`path`,{d:`M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4`,key:`vvzvr1`}],[`path`,{d:`M8 8v1`,key:`xcqmfk`}],[`path`,{d:`M12 8v1`,key:`1rj8u4`}],[`path`,{d:`M16 8v1`,key:`1q12zr`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`9`,rx:`2`,key:`igpb89`}],[`circle`,{cx:`8`,cy:`15`,r:`2`,key:`fa4a8s`}],[`circle`,{cx:`16`,cy:`15`,r:`2`,key:`14c3ya`}]]),Xi=U(`bot-message-square`,[[`path`,{d:`M12 6V2H8`,key:`1155em`}],[`path`,{d:`M15 11v2`,key:`i11awn`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z`,key:`11gyqh`}],[`path`,{d:`M9 11v2`,key:`1ueba0`}]]),Zi=U(`bot-off`,[[`path`,{d:`M13.67 8H18a2 2 0 0 1 2 2v4.33`,key:`7az073`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}],[`path`,{d:`M8 8H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.586`,key:`s09a7a`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}],[`path`,{d:`M9.67 4H12v2.33`,key:`110xot`}]]),Qi=U(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),$i=U(`bottle-wine`,[[`path`,{d:`M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z`,key:`blqgoc`}],[`path`,{d:`M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4`,key:`43jbee`}]]),ea=U(`bow-arrow`,[[`path`,{d:`M17 3h4v4`,key:`19p9u1`}],[`path`,{d:`M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17`,key:`12t3w9`}],[`path`,{d:`M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05`,key:`ogng5l`}],[`path`,{d:`M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z`,key:`8v3fy2`}],[`path`,{d:`M9.707 14.293 21 3`,key:`ydm3bn`}]]),ta=U(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),na=U(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),ra=U(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),ia=U(`brackets`,[[`path`,{d:`M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3`,key:`1kt8lf`}],[`path`,{d:`M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3`,key:`gduv9`}]]),aa=U(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),oa=U(`brain-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`m10.852 9.228-.383-.923`,key:`1fjppe`}],[`path`,{d:`m13.148 14.772.382.924`,key:`je3va1`}],[`path`,{d:`m13.531 8.305-.383.923`,key:`18epck`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 0 0-5.63-1.446 3 3 0 0 0-.368 1.571 4 4 0 0 0-2.525 5.771`,key:`jcbbz1`}],[`path`,{d:`M17.998 5.125a4 4 0 0 1 2.525 5.771`,key:`1kkn7e`}],[`path`,{d:`M19.505 10.294a4 4 0 0 1-1.5 7.706`,key:`18bmuc`}],[`path`,{d:`M4.032 17.483A4 4 0 0 0 11.464 20c.18-.311.892-.311 1.072 0a4 4 0 0 0 7.432-2.516`,key:`uozx0d`}],[`path`,{d:`M4.5 10.291A4 4 0 0 0 6 18`,key:`whdemb`}],[`path`,{d:`M6.002 5.125a3 3 0 0 0 .4 1.375`,key:`1kqy2g`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),sa=U(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),ca=U(`brick-wall-fire`,[[`path`,{d:`M16 3v2.107`,key:`gq8xun`}],[`path`,{d:`M17 9c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 22 17a5 5 0 0 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C13 11.5 16 9 17 9`,key:`1l2pih`}],[`path`,{d:`M21 8.274V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.938`,key:`jrnqjp`}],[`path`,{d:`M3 15h5.253`,key:`xqg7rb`}],[`path`,{d:`M3 9h8.228`,key:`1ppb70`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),la=U(`brick-wall-shield`,[[`path`,{d:`M12 9v1.258`,key:`iwpddn`}],[`path`,{d:`M16 3v5.46`,key:`d7ew98`}],[`path`,{d:`M21 9.118V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5.75`,key:`137t5x`}],[`path`,{d:`M22 17.5c0 2.499-1.75 3.749-3.83 4.474a.5.5 0 0 1-.335-.005c-2.085-.72-3.835-1.97-3.835-4.47V14a.5.5 0 0 1 .5-.499c1 0 2.25-.6 3.12-1.36a.6.6 0 0 1 .76-.001c.875.765 2.12 1.36 3.12 1.36a.5.5 0 0 1 .5.5z`,key:`16j3tf`}],[`path`,{d:`M3 15h7`,key:`1qldh6`}],[`path`,{d:`M3 9h12.142`,key:`1yjd6m`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),ua=U(`brick-wall`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 9v6`,key:`199k2o`}],[`path`,{d:`M16 15v6`,key:`8rj2es`}],[`path`,{d:`M16 3v6`,key:`1j6rpj`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 15v6`,key:`1stoo3`}],[`path`,{d:`M8 3v6`,key:`vlvjmk`}]]),da=U(`briefcase-business`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),fa=U(`briefcase-medical`,[[`path`,{d:`M12 11v4`,key:`a6ujw6`}],[`path`,{d:`M14 13h-4`,key:`1pl8zg`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M18 6v14`,key:`1mu4gy`}],[`path`,{d:`M6 6v14`,key:`1s15cj`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),pa=U(`briefcase-conveyor-belt`,[[`path`,{d:`M10 20v2`,key:`1n8e1g`}],[`path`,{d:`M14 20v2`,key:`1lq872`}],[`path`,{d:`M18 20v2`,key:`10uadw`}],[`path`,{d:`M21 20H3`,key:`kdqkdp`}],[`path`,{d:`M6 20v2`,key:`a9bc87`}],[`path`,{d:`M8 16V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v12`,key:`17n9tx`}],[`rect`,{x:`4`,y:`6`,width:`16`,height:`10`,rx:`2`,key:`1097i5`}]]),ma=U(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),ha=U(`bring-to-front`,[[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`2`,key:`yj20xf`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2`,key:`1ltk23`}],[`path`,{d:`M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2`,key:`1q24h9`}]]),ga=U(`broccoli`,[[`path`,{d:`M10 13a3 3 0 0 1-2.121-5.121`,key:`1oqad0`}],[`path`,{d:`M15.606 14.204c-3.5 1.5-5.899 4.503-8.899 7.503A1 1 0 0 1 6 22c-2 0-4-2-4-4a1 1 0 0 1 .293-.707c1.911-1.911 3.823-3.578 5.347-5.441`,key:`c93qjr`}],[`path`,{d:`M16.573 14.737A4 4 0 0 1 14 11`,key:`1ymr17`}],[`path`,{d:`M7.14 10.907a4 4 0 1 1 2.756-7.43A4 4 0 0 1 16.7 4.48a2 2 0 0 1 2.82 2.82 4 4 0 0 1 1.002 6.805A4 4 0 1 1 13 16`,key:`1kbgad`}]]),_a=U(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),va=U(`brush-cleaning`,[[`path`,{d:`m16 22-1-4`,key:`1ow2iv`}],[`path`,{d:`M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1`,key:`11gii7`}],[`path`,{d:`M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z`,key:`bju7h4`}],[`path`,{d:`m8 22 1-4`,key:`s3unb`}]]),ya=U(`bubbles`,[[`path`,{d:`M7.001 15.085A1.5 1.5 0 0 1 9 16.5`,key:`y44lvh`}],[`circle`,{cx:`18.5`,cy:`8.5`,r:`3.5`,key:`1wadoa`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`5.5`,key:`6mdt3g`}],[`circle`,{cx:`7.5`,cy:`4.5`,r:`2.5`,key:`637s54`}]]),ba=U(`bug-play`,[[`path`,{d:`M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97`,key:`1gnv52`}],[`path`,{d:`M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`1weqy9`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),xa=U(`bug-off`,[[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M12.656 7H14a4 4 0 0 1 4 4v1.344`,key:`vvueyn`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M17.123 17.123A6 6 0 0 1 6 14v-3a4 4 0 0 1 1.72-3.287`,key:`1cu21y`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-3.344`,key:`qb08am`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9.712 4.06A3 3 0 0 1 15 6v1.13`,key:`1bvup6`}]]),Sa=U(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),Ca=U(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),wa=U(`building`,[[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M16 6h.01`,key:`1x0f13`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M8 6h.01`,key:`1dz90k`}],[`path`,{d:`M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3`,key:`cabbwy`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Ta=U(`bus-front`,[[`path`,{d:`M4 6 2 7`,key:`1mqr15`}],[`path`,{d:`M10 6h4`,key:`1itunk`}],[`path`,{d:`m22 7-2-1`,key:`1umjhc`}],[`rect`,{width:`16`,height:`16`,x:`4`,y:`3`,rx:`2`,key:`1wxw4b`}],[`path`,{d:`M4 11h16`,key:`mpoxn0`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`path`,{d:`M18 21v-2`,key:`sqyl04`}]]),Ea=U(`bus`,[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]),Da=U(`cake-slice`,[[`path`,{d:`M16 13H3`,key:`1wpj08`}],[`path`,{d:`M16 17H3`,key:`3lvfcd`}],[`path`,{d:`m7.2 7.9-3.388 2.5A2 2 0 0 0 3 12.01V20a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-8.654c0-2-2.44-6.026-6.44-8.026a1 1 0 0 0-1.082.057L10.4 5.6`,key:`1gmhf7`}],[`circle`,{cx:`9`,cy:`7`,r:`2`,key:`1305pl`}]]),Oa=U(`cable-car`,[[`path`,{d:`M10 3h.01`,key:`lbucoy`}],[`path`,{d:`M14 2h.01`,key:`1k8aa1`}],[`path`,{d:`m2 9 20-5`,key:`1kz0j5`}],[`path`,{d:`M12 12V6.5`,key:`1vbrij`}],[`rect`,{width:`16`,height:`10`,x:`4`,y:`12`,rx:`3`,key:`if91er`}],[`path`,{d:`M9 12v5`,key:`3anwtq`}],[`path`,{d:`M15 12v5`,key:`5xh3zn`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),ka=U(`cable`,[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]),Aa=U(`cake`,[[`path`,{d:`M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8`,key:`1w3rig`}],[`path`,{d:`M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1`,key:`n2jgmb`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}],[`path`,{d:`M7 8v3`,key:`1qtyvj`}],[`path`,{d:`M12 8v3`,key:`hwp4zt`}],[`path`,{d:`M17 8v3`,key:`1i6e5u`}],[`path`,{d:`M7 4h.01`,key:`1bh4kh`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M17 4h.01`,key:`1upcoc`}]]),ja=U(`calculator`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`line`,{x1:`8`,x2:`16`,y1:`6`,y2:`6`,key:`x4nwl0`}],[`line`,{x1:`16`,x2:`16`,y1:`14`,y2:`18`,key:`wjye3r`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),Ma=U(`calendar-1`,[[`path`,{d:`M11 14h1v4`,key:`fy54vd`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Na=U(`calendar-arrow-down`,[[`path`,{d:`m14 18 4 4 4-4`,key:`1waygx`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M18 14v8`,key:`irew45`}],[`path`,{d:`M21 11.354V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.343`,key:`bse4f3`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Pa=U(`calendar-arrow-up`,[[`path`,{d:`m14 18 4-4 4 4`,key:`ftkppy`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M18 22v-8`,key:`su0gjh`}],[`path`,{d:`M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9`,key:`1exg90`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Fa=U(`calendar-check-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 14V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8`,key:`bce9hv`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m16 20 2 2 4-4`,key:`13tcca`}]]),Ia=U(`calendar-check`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m9 16 2 2 4-4`,key:`19s6y9`}]]),La=U(`calendar-cog`,[[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m15.228 19.148-.923.383`,key:`51cr3n`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`m16.47 14.305.382.923`,key:`obybxd`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`path`,{d:`M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`1pvbig`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Ra=U(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),za=U(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Ba=U(`calendar-fold`,[[`path`,{d:`M3 20a2 2 0 0 0 2 2h10a2.4 2.4 0 0 0 1.706-.706l3.588-3.588A2.4 2.4 0 0 0 21 16V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`r586nh`}],[`path`,{d:`M15 22v-5a1 1 0 0 1 1-1h5`,key:`xl3app`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Va=U(`calendar-heart`,[[`path`,{d:`M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125`,key:`vxdnp4`}],[`path`,{d:`M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`15cy7q`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Ha=U(`calendar-minus-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M10 16h4`,key:`17e571`}]]),Ua=U(`calendar-minus`,[[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 15V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5`,key:`1scpom`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Wa=U(`calendar-off`,[[`path`,{d:`M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18`,key:`16swn3`}],[`path`,{d:`M21 15.5V6a2 2 0 0 0-2-2H9.5`,key:`yhw86o`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h7`,key:`1wap6i`}],[`path`,{d:`M21 10h-5.5`,key:`quycpq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ga=U(`calendar-plus-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M10 16h4`,key:`17e571`}],[`path`,{d:`M12 14v4`,key:`1thi36`}]]),Ka=U(`calendar-plus`,[[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5`,key:`1glfrc`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),qa=U(`calendar-range`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M17 14h-6`,key:`bkmgh3`}],[`path`,{d:`M13 18H7`,key:`bb0bb7`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 18h.01`,key:`1bdyru`}]]),Ja=U(`calendar-search`,[[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 11.75V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.25`,key:`1jrsq6`}],[`path`,{d:`m22 22-1.875-1.875`,key:`13zax7`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Ya=U(`calendar-sync`,[[`path`,{d:`M11 10v4h4`,key:`172dkj`}],[`path`,{d:`m11 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`vu0qm5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`m21 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`1qgeyt`}],[`path`,{d:`M21 22v-4h-4`,key:`hrummi`}],[`path`,{d:`M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3`,key:`mctw84`}],[`path`,{d:`M3 10h4`,key:`1el30a`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}]]),Xa=U(`calendar-x-2`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8`,key:`3spt84`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m17 22 5-5`,key:`1k6ppv`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}]]),Za=U(`calendar-x`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m14 14-4 4`,key:`rymu2i`}],[`path`,{d:`m10 14 4 4`,key:`3sz06r`}]]),Qa=U(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),$a=U(`calendars`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M15.726 21.01A2 2 0 0 1 14 22H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2`,key:`j6srht`}],[`path`,{d:`M18 2v2`,key:`1kh14s`}],[`path`,{d:`M2 13h2`,key:`13gyu8`}],[`path`,{d:`M8 8h14`,key:`12jxz2`}],[`rect`,{x:`8`,y:`3`,width:`14`,height:`14`,rx:`2`,key:`nsru6w`}]]),eo=U(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),to=U(`camera-off`,[[`path`,{d:`M14.564 14.558a3 3 0 1 1-4.122-4.121`,key:`1rnrzw`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 .819-.175`,key:`1x3arw`}],[`path`,{d:`M9.695 4.024A2 2 0 0 1 10.004 4h3.993a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v7.344`,key:`1i84u0`}]]),no=U(`candy-off`,[[`path`,{d:`M10 10v7.9`,key:`m8g9tt`}],[`path`,{d:`M11.802 6.145a5 5 0 0 1 6.053 6.053`,key:`dn87i3`}],[`path`,{d:`M14 6.1v2.243`,key:`1kzysn`}],[`path`,{d:`m15.5 15.571-.964.964a5 5 0 0 1-7.071 0 5 5 0 0 1 0-7.07l.964-.965`,key:`3sxy18`}],[`path`,{d:`M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4`,key:`gpb6xx`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4`,key:`qexcha`}]]),ro=U(`candy-cane`,[[`path`,{d:`m10.8 5 2.111 4.223`,key:`11kb8w`}],[`path`,{d:`M17.75 7 15 2.1`,key:`12x7e8`}],[`path`,{d:`m4.874 14.647 2.12 4.24`,key:`ccpt4b`}],[`path`,{d:`M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2z`,key:`u5e8z4`}],[`path`,{d:`m7.906 9.712 2.005 4.411`,key:`1k0qph`}]]),io=U(`candy`,[[`path`,{d:`M10 7v10.9`,key:`1gynux`}],[`path`,{d:`M14 6.1V17`,key:`116kdf`}],[`path`,{d:`M16 7V3a1 1 0 0 1 1.707-.707 2.5 2.5 0 0 0 2.152.717 1 1 0 0 1 1.131 1.131 2.5 2.5 0 0 0 .717 2.152A1 1 0 0 1 21 8h-4`,key:`gpb6xx`}],[`path`,{d:`M16.536 7.465a5 5 0 0 0-7.072 0l-2 2a5 5 0 0 0 0 7.07 5 5 0 0 0 7.072 0l2-2a5 5 0 0 0 0-7.07`,key:`1tsln4`}],[`path`,{d:`M8 17v4a1 1 0 0 1-1.707.707 2.5 2.5 0 0 0-2.152-.717 1 1 0 0 1-1.131-1.131 2.5 2.5 0 0 0-.717-2.152A1 1 0 0 1 3 16h4`,key:`qexcha`}]]),ao=U(`cannabis-off`,[[`path`,{d:`M12 22v-4c1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5`,key:`1bqfb7`}],[`path`,{d:`M13.988 8.327C13.902 6.054 13.365 3.82 12 2a9.3 9.3 0 0 0-1.445 2.9`,key:`1p520n`}],[`path`,{d:`M17.375 11.725C18.882 10.53 21 7.841 21 6c-2.324 0-5.08 1.296-6.662 2.684`,key:`q2itvb`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21.024 15.378A15 15 0 0 0 22 15c-.426-1.279-2.67-2.557-4.25-2.907`,key:`j9amvs`}],[`path`,{d:`M6.995 6.992C5.714 6.4 4.29 6 3 6c0 2 2.5 5 4 6-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3`,key:`8gmd5g`}]]),oo=U(`cannabis`,[[`path`,{d:`M12 22v-4`,key:`1utk9m`}],[`path`,{d:`M7 12c-1.5 0-4.5 1.5-5 3 3.5 1.5 6 1 6 1-1.5 1.5-2 3.5-2 5 2.5 0 4.5-1.5 6-3 1.5 1.5 3.5 3 6 3 0-1.5-.5-3.5-2-5 0 0 2.5.5 6-1-.5-1.5-3.5-3-5-3 1.5-1 4-4 4-6-2.5 0-5.5 1.5-7 3 0-2.5-.5-5-2-7-1.5 2-2 4.5-2 7-1.5-1.5-4.5-3-7-3 0 2 2.5 5 4 6`,key:`1mezod`}]]),so=U(`captions-off`,[[`path`,{d:`M10.5 5H19a2 2 0 0 1 2 2v8.5`,key:`jqtk4d`}],[`path`,{d:`M17 11h-.5`,key:`1961ue`}],[`path`,{d:`M19 19H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2`,key:`1keqsi`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7 11h4`,key:`1o1z6v`}],[`path`,{d:`M7 15h2.5`,key:`1ina1g`}]]),co=U(`captions`,[[`rect`,{width:`18`,height:`14`,x:`3`,y:`5`,rx:`2`,ry:`2`,key:`12ruh7`}],[`path`,{d:`M7 15h4M15 15h2M7 11h2M13 11h4`,key:`1ueiar`}]]),lo=U(`car-front`,[[`path`,{d:`m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8`,key:`1imjwt`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`rect`,{width:`18`,height:`8`,x:`3`,y:`10`,rx:`2`,key:`a7itu8`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),uo=U(`car-taxi-front`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8`,key:`1imjwt`}],[`path`,{d:`M7 14h.01`,key:`1qa3f1`}],[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`rect`,{width:`18`,height:`8`,x:`3`,y:`10`,rx:`2`,key:`a7itu8`}],[`path`,{d:`M5 18v2`,key:`ppbyun`}],[`path`,{d:`M19 18v2`,key:`gy7782`}]]),fo=U(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),po=U(`caravan`,[[`path`,{d:`M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2`,key:`19jm3t`}],[`path`,{d:`M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2`,key:`13hakp`}],[`path`,{d:`M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9`,key:`1crci8`}],[`circle`,{cx:`8`,cy:`19`,r:`2`,key:`t8fc5s`}]]),mo=U(`card-sim`,[[`path`,{d:`M12 14v4`,key:`1thi36`}],[`path`,{d:`M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`,key:`1o66bk`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`rect`,{x:`8`,y:`10`,width:`8`,height:`8`,rx:`1`,key:`1aonk6`}]]),ho=U(`carrot`,[[`path`,{d:`M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46`,key:`rfqxbe`}],[`path`,{d:`M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z`,key:`6b25w4`}],[`path`,{d:`M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z`,key:`fn65lo`}]]),go=U(`case-lower`,[[`path`,{d:`M10 9v7`,key:`ylp826`}],[`path`,{d:`M14 6v10`,key:`1jy4vg`}],[`circle`,{cx:`17.5`,cy:`12.5`,r:`3.5`,key:`1a9481`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`3.5`,key:`2jlv1r`}]]),_o=U(`case-sensitive`,[[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M22 9v7`,key:`pvm9v3`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}],[`circle`,{cx:`18.5`,cy:`12.5`,r:`3.5`,key:`z97x68`}]]),vo=U(`case-upper`,[[`path`,{d:`M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5`,key:`nxs35`}],[`path`,{d:`m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16`,key:`d5nyq2`}],[`path`,{d:`M3.304 13h6.392`,key:`1q3zxz`}]]),yo=U(`cassette-tape`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`circle`,{cx:`8`,cy:`10`,r:`2`,key:`1xl4ub`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`circle`,{cx:`16`,cy:`10`,r:`2`,key:`r14t7q`}],[`path`,{d:`m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3`,key:`l01ucn`}]]),bo=U(`cast`,[[`path`,{d:`M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6`,key:`3zrzxg`}],[`path`,{d:`M2 12a9 9 0 0 1 8 8`,key:`g6cvee`}],[`path`,{d:`M2 16a5 5 0 0 1 4 4`,key:`1y1dii`}],[`line`,{x1:`2`,x2:`2.01`,y1:`20`,y2:`20`,key:`xu2jvo`}]]),xo=U(`castle`,[[`path`,{d:`M10 5V3`,key:`1y54qe`}],[`path`,{d:`M14 5V3`,key:`m6isi`}],[`path`,{d:`M15 21v-3a3 3 0 0 0-6 0v3`,key:`lbp5hj`}],[`path`,{d:`M18 3v8`,key:`2ollhf`}],[`path`,{d:`M18 5H6`,key:`98imr9`}],[`path`,{d:`M22 11H2`,key:`1lmjae`}],[`path`,{d:`M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9`,key:`1rly83`}],[`path`,{d:`M6 3v8`,key:`csox7g`}]]),So=U(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),Co=U(`cctv`,[[`path`,{d:`M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97`,key:`ir91b5`}],[`path`,{d:`M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z`,key:`jlp8i1`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15`,key:`19bib8`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),wo=U(`chart-area`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z`,key:`q0gr47`}]]),To=U(`cctv-off`,[[`path`,{d:`m12.309 6.652 4.797 2.401a1 1 0 0 1 .447 1.341l-.501 1.001.605.605h2.725a1 1 0 0 1 .894 1.447l-.724 1.448`,key:`e75roo`}],[`path`,{d:`m15.166 15.166-.719 1.439a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.9 2.9 0 0 1 .873-1.037`,key:`1h9o5r`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1l1.441-2.902`,key:`1askrb`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),Eo=U(`chart-bar-big`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`7`,y:`13`,width:`9`,height:`4`,rx:`1`,key:`1iip1u`}],[`rect`,{x:`7`,y:`5`,width:`12`,height:`4`,rx:`1`,key:`1anskk`}]]),Do=U(`chart-bar-decreasing`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11h8`,key:`1feolt`}],[`path`,{d:`M7 16h3`,key:`ur6vzw`}],[`path`,{d:`M7 6h12`,key:`sz5b0d`}]]),Oo=U(`chart-bar-increasing`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 11h8`,key:`1feolt`}],[`path`,{d:`M7 16h12`,key:`wsnu98`}],[`path`,{d:`M7 6h3`,key:`w9rmul`}]]),ko=U(`chart-bar`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 16h8`,key:`srdodz`}],[`path`,{d:`M7 11h12`,key:`127s9w`}],[`path`,{d:`M7 6h3`,key:`w9rmul`}]]),Ao=U(`chart-bar-stacked`,[[`path`,{d:`M11 13v4`,key:`vyy2rb`}],[`path`,{d:`M15 5v4`,key:`1gx88a`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`7`,y:`13`,width:`9`,height:`4`,rx:`1`,key:`1iip1u`}],[`rect`,{x:`7`,y:`5`,width:`12`,height:`4`,rx:`1`,key:`1anskk`}]]),jo=U(`chart-candlestick`,[[`path`,{d:`M9 5v4`,key:`14uxtq`}],[`rect`,{width:`4`,height:`6`,x:`7`,y:`9`,rx:`1`,key:`f4fvz0`}],[`path`,{d:`M9 15v2`,key:`r5rk32`}],[`path`,{d:`M17 3v2`,key:`1l2re6`}],[`rect`,{width:`4`,height:`8`,x:`15`,y:`5`,rx:`1`,key:`z38je5`}],[`path`,{d:`M17 13v3`,key:`5l0wba`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}]]),Mo=U(`chart-column-big`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`15`,y:`5`,width:`4`,height:`12`,rx:`1`,key:`q8uenq`}],[`rect`,{x:`7`,y:`8`,width:`4`,height:`9`,rx:`1`,key:`sr5ea`}]]),No=U(`chart-column-decreasing`,[[`path`,{d:`M13 17V9`,key:`1fwyjl`}],[`path`,{d:`M18 17v-3`,key:`1sqioe`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 17V5`,key:`1wzmnc`}]]),Po=U(`chart-column-increasing`,[[`path`,{d:`M13 17V9`,key:`1fwyjl`}],[`path`,{d:`M18 17V5`,key:`sfb6ij`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Fo=U(`chart-column-stacked`,[[`path`,{d:`M11 13H7`,key:`t0o9gq`}],[`path`,{d:`M19 9h-4`,key:`rera1j`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`15`,y:`5`,width:`4`,height:`12`,rx:`1`,key:`q8uenq`}],[`rect`,{x:`7`,y:`8`,width:`4`,height:`9`,rx:`1`,key:`sr5ea`}]]),Io=U(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Lo=U(`chart-gantt`,[[`path`,{d:`M10 6h8`,key:`zvc2xc`}],[`path`,{d:`M12 16h6`,key:`yi5mkt`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M8 11h7`,key:`wz2hg0`}]]),Ro=U(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),zo=U(`chart-network`,[[`path`,{d:`m13.11 7.664 1.78 2.672`,key:`go2gg9`}],[`path`,{d:`m14.162 12.788-3.324 1.424`,key:`11x848`}],[`path`,{d:`m20 4-6.06 1.515`,key:`1wxxh7`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`circle`,{cx:`12`,cy:`6`,r:`2`,key:`1jj5th`}],[`circle`,{cx:`16`,cy:`12`,r:`2`,key:`4ma0v8`}],[`circle`,{cx:`9`,cy:`15`,r:`2`,key:`lf2ghp`}]]),Bo=U(`chart-no-axes-column-decreasing`,[[`path`,{d:`M5 21V3`,key:`clc1r8`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21v-6`,key:`tkawy9`}]]),Vo=U(`chart-no-axes-column-increasing`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21V3`,key:`11j9sm`}]]),Ho=U(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),Uo=U(`chart-no-axes-combined`,[[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14.639V21`,key:`1s85h0`}],[`path`,{d:`M20 10.656V21`,key:`q45596`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18.463V21`,key:`1otddq`}],[`path`,{d:`M8 14.656V21`,key:`1t2idw`}]]),Wo=U(`chart-no-axes-gantt`,[[`path`,{d:`M6 5h12`,key:`fvfigv`}],[`path`,{d:`M4 12h10`,key:`oujl3d`}],[`path`,{d:`M12 19h8`,key:`baeox8`}]]),Go=U(`chart-pie`,[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]]),Ko=U(`chart-scatter`,[[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}],[`circle`,{cx:`18.5`,cy:`5.5`,r:`.5`,fill:`currentColor`,key:`lysivs`}],[`circle`,{cx:`11.5`,cy:`11.5`,r:`.5`,fill:`currentColor`,key:`byv1b8`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`nkw3mc`}],[`circle`,{cx:`17.5`,cy:`14.5`,r:`.5`,fill:`currentColor`,key:`1gjh6j`}],[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}]]),qo=U(`chart-spline`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7`,key:`lw07rv`}]]),Jo=U(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Yo=U(`check-line`,[[`path`,{d:`M20 4L9 15`,key:`1qkx8z`}],[`path`,{d:`M21 19L3 19`,key:`100sma`}],[`path`,{d:`M9 15L4 10`,key:`9zxff7`}]]),Xo=U(`chef-hat`,[[`path`,{d:`M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z`,key:`1qvrer`}],[`path`,{d:`M6 17h12`,key:`1jwigz`}]]),Zo=U(`cherry`,[[`path`,{d:`M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z`,key:`cvxqlc`}],[`path`,{d:`M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z`,key:`1ostrc`}],[`path`,{d:`M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12`,key:`hqx58h`}],[`path`,{d:`M22 9c-4.29 0-7.14-2.33-10-7 5.71 0 10 4.67 10 7Z`,key:`eykp1o`}]]),Qo=U(`chess-bishop`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M15 18c1.5-.615 3-2.461 3-4.923C18 8.769 14.5 4.462 12 2 9.5 4.462 6 8.77 6 13.077 6 15.539 7.5 17.385 9 18`,key:`8jdkhx`}],[`path`,{d:`m16 7-2.5 2.5`,key:`1jq90w`}],[`path`,{d:`M9 2h6`,key:`1jrp98`}]]),$o=U(`chess-king`,[[`path`,{d:`M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z`,key:`mqzwx6`}],[`path`,{d:`m6.7 18-1-1C4.35 15.682 3 14.09 3 12a5 5 0 0 1 4.95-5c1.584 0 2.7.455 4.05 1.818C13.35 7.455 14.466 7 16.05 7A5 5 0 0 1 21 12c0 2.082-1.359 3.673-2.7 5l-1 1`,key:`1gdt1g`}],[`path`,{d:`M10 4h4`,key:`1xpv9s`}],[`path`,{d:`M12 2v6.818`,key:`b17a49`}]]),es=U(`chess-knight`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M16.5 18c1-2 2.5-5 2.5-9a7 7 0 0 0-7-7H6.635a1 1 0 0 0-.768 1.64L7 5l-2.32 5.802a2 2 0 0 0 .95 2.526l2.87 1.456`,key:`axbnlq`}],[`path`,{d:`m15 5 1.425-1.425`,key:`15xz8w`}],[`path`,{d:`m17 8 1.53-1.53`,key:`15zhqh`}],[`path`,{d:`M9.713 12.185 7 18`,key:`1ocm0l`}]]),ts=U(`chess-pawn`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`m14.5 10 1.5 8`,key:`cim3qy`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`m8 18 1.5-8`,key:`ja3yjd`}],[`circle`,{cx:`12`,cy:`6`,r:`4`,key:`1frrej`}]]),ns=U(`chess-queen`,[[`path`,{d:`M4 20a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z`,key:`mqzwx6`}],[`path`,{d:`m12.474 5.943 1.567 5.34a1 1 0 0 0 1.75.328l2.616-3.402`,key:`1js4gl`}],[`path`,{d:`m20 9-3 9`,key:`r75r3f`}],[`path`,{d:`m5.594 8.209 2.615 3.403a1 1 0 0 0 1.75-.329l1.567-5.34`,key:`1joj19`}],[`path`,{d:`M7 18 4 9`,key:`1mfzj8`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`7`,r:`2`,key:`9w7p1x`}],[`circle`,{cx:`4`,cy:`7`,r:`2`,key:`1d9wy8`}]]),rs=U(`chess-rook`,[[`path`,{d:`M5 20a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z`,key:`b89hwq`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`m17 18-1-9`,key:`10nd7q`}],[`path`,{d:`M6 2v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2`,key:`uxf4yx`}],[`path`,{d:`M6 4h12`,key:`1x2ag7`}],[`path`,{d:`m7 18 1-9`,key:`1si9vq`}]]),is=U(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),as=U(`chevron-first`,[[`path`,{d:`m17 18-6-6 6-6`,key:`1yerx2`}],[`path`,{d:`M7 6v12`,key:`1p53r6`}]]),os=U(`chevron-last`,[[`path`,{d:`m7 18 6-6-6-6`,key:`lwmzdw`}],[`path`,{d:`M17 6v12`,key:`1o0aio`}]]),ss=U(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),cs=U(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ls=U(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),us=U(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),ds=U(`chevrons-down`,[[`path`,{d:`m7 6 5 5 5-5`,key:`1lc07p`}],[`path`,{d:`m7 13 5 5 5-5`,key:`1d48rs`}]]),fs=U(`chevrons-left-right`,[[`path`,{d:`m9 7-5 5 5 5`,key:`j5w590`}],[`path`,{d:`m15 7 5 5-5 5`,key:`1bl6da`}]]),ps=U(`chevrons-left-right-ellipsis`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`m17 7 5 5-5 5`,key:`1xlxn0`}],[`path`,{d:`m7 7-5 5 5 5`,key:`19njba`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),ms=U(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),hs=U(`chevrons-right-left`,[[`path`,{d:`m20 17-5-5 5-5`,key:`30x0n2`}],[`path`,{d:`m4 17 5-5-5-5`,key:`16spf4`}]]),gs=U(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),_s=U(`chevrons-up`,[[`path`,{d:`m17 11-5-5-5 5`,key:`e8nh98`}],[`path`,{d:`m17 18-5-5-5 5`,key:`2avn1x`}]]),vs=U(`church`,[[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v5`,key:`ma6bk`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9`,key:`flvdwo`}],[`path`,{d:`M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14`,key:`a5i0n2`}]]),ys=U(`cigarette-off`,[[`path`,{d:`M12 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h13`,key:`1gdiyg`}],[`path`,{d:`M18 8c0-2.5-2-2.5-2-5`,key:`1il607`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 12a1 1 0 0 1 1 1v2a1 1 0 0 1-.5.866`,key:`166zjj`}],[`path`,{d:`M22 8c0-2.5-2-2.5-2-5`,key:`1gah44`}],[`path`,{d:`M7 12v4`,key:`jqww69`}]]),bs=U(`cigarette`,[[`path`,{d:`M17 12H3a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14`,key:`1mb5g1`}],[`path`,{d:`M18 8c0-2.5-2-2.5-2-5`,key:`1il607`}],[`path`,{d:`M21 16a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`1yl5r7`}],[`path`,{d:`M22 8c0-2.5-2-2.5-2-5`,key:`1gah44`}],[`path`,{d:`M7 12v4`,key:`jqww69`}]]),xs=U(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ss=U(`circle-arrow-down`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8 12 4 4 4-4`,key:`k98ssh`}]]),Cs=U(`circle-arrow-left`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m12 8-4 4 4 4`,key:`15vm53`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}]]),ws=U(`circle-arrow-out-down-left`,[[`path`,{d:`M2 12a10 10 0 1 1 10 10`,key:`1yn6ov`}],[`path`,{d:`m2 22 10-10`,key:`28ilpk`}],[`path`,{d:`M8 22H2v-6`,key:`sulq54`}]]),Ts=U(`circle-arrow-out-down-right`,[[`path`,{d:`M12 22a10 10 0 1 1 10-10`,key:`130bv5`}],[`path`,{d:`M22 22 12 12`,key:`131aw7`}],[`path`,{d:`M22 16v6h-6`,key:`1gvm70`}]]),Es=U(`circle-arrow-out-up-left`,[[`path`,{d:`M2 8V2h6`,key:`hiwtdz`}],[`path`,{d:`m2 2 10 10`,key:`1oh8rs`}],[`path`,{d:`M12 2A10 10 0 1 1 2 12`,key:`rrk4fa`}]]),Ds=U(`circle-arrow-out-up-right`,[[`path`,{d:`M22 12A10 10 0 1 1 12 2`,key:`1fm58d`}],[`path`,{d:`M22 2 12 12`,key:`yg2myt`}],[`path`,{d:`M16 2h6v6`,key:`zan5cs`}]]),Os=U(`circle-arrow-right`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m12 16 4-4-4-4`,key:`1i9zcv`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),ks=U(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),As=U(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),js=U(`circle-chevron-left`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14 16-4-4 4-4`,key:`ojs7w8`}]]),Ms=U(`circle-chevron-down`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 10-4 4-4-4`,key:`894hmk`}]]),Ns=U(`circle-chevron-right`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m10 8 4 4-4 4`,key:`1wy4r4`}]]),Ps=U(`circle-chevron-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m8 14 4-4 4 4`,key:`fy2ptz`}]]),Fs=U(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),Is=U(`circle-divide`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`16`,key:`aqc6ln`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`8`,key:`1mkcni`}]]),Ls=U(`circle-dollar-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),Rs=U(`circle-dot-dashed`,[[`path`,{d:`M10.1 2.18a9.93 9.93 0 0 1 3.8 0`,key:`1qdqn0`}],[`path`,{d:`M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7`,key:`1bq7p6`}],[`path`,{d:`M21.82 10.1a9.93 9.93 0 0 1 0 3.8`,key:`1rlaqf`}],[`path`,{d:`M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69`,key:`1xk03u`}],[`path`,{d:`M13.9 21.82a9.94 9.94 0 0 1-3.8 0`,key:`l7re25`}],[`path`,{d:`M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7`,key:`1v18p6`}],[`path`,{d:`M2.18 13.9a9.93 9.93 0 0 1 0-3.8`,key:`xdo6bj`}],[`path`,{d:`M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69`,key:`1jjmaz`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),zs=U(`circle-dot`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Bs=U(`circle-ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),Vs=U(`circle-equal`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M7 14h10`,key:`1mhdw3`}]]),Hs=U(`circle-fading-arrow-up`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),Us=U(`circle-fading-plus`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),Ws=U(`circle-gauge`,[[`path`,{d:`M15.6 2.7a10 10 0 1 0 5.7 5.7`,key:`1e0p6d`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M13.4 10.6 19 5`,key:`1kr7tw`}]]),Gs=U(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Ks=U(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]),qs=U(`circle-parking-off`,[[`path`,{d:`M12.656 7H13a3 3 0 0 1 2.984 3.307`,key:`1sjx87`}],[`path`,{d:`M13 13H9`,key:`e2beee`}],[`path`,{d:`M19.071 19.071A1 1 0 0 1 4.93 4.93`,key:`1kb595`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.357 2.687a10 10 0 0 1 12.956 12.956`,key:`5bsfdx`}],[`path`,{d:`M9 17V9`,key:`ojradj`}]]),Js=U(`circle-parking`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),Ys=U(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),Xs=U(`circle-pile`,[[`circle`,{cx:`12`,cy:`19`,r:`2`,key:`13j0tp`}],[`circle`,{cx:`12`,cy:`5`,r:`2`,key:`f1ur92`}],[`circle`,{cx:`16`,cy:`12`,r:`2`,key:`4ma0v8`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}],[`circle`,{cx:`4`,cy:`19`,r:`2`,key:`p3m9r0`}],[`circle`,{cx:`8`,cy:`12`,r:`2`,key:`1nvbw3`}]]),Zs=U(`circle-percent`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),Qs=U(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),$s=U(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),ec=U(`circle-pound-sterling`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M10 16V9.5a1 1 0 0 1 5 0`,key:`1i1are`}],[`path`,{d:`M8 12h4`,key:`qz6y1c`}],[`path`,{d:`M8 16h7`,key:`sbedsn`}]]),tc=U(`circle-power`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M7.998 9.003a5 5 0 1 0 8-.005`,key:`1pek45`}]]),nc=U(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),rc=U(`circle-slash-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),ic=U(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),ac=U(`circle-small`,[[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]),oc=U(`circle-star`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M11.051 7.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.867l-1.156-1.152a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`285bvi`}]]),sc=U(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),cc=U(`circle-user-round`,[[`path`,{d:`M17.925 20.056a6 6 0 0 0-11.851.001`,key:`z69sun`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),lc=U(`circle-user`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]]),uc=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),dc=U(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),fc=U(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),pc=U(`citrus`,[[`path`,{d:`M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04z`,key:`4ite01`}],[`path`,{d:`M19.65 15.66A8 8 0 0 1 8.35 4.34`,key:`1gxipu`}],[`path`,{d:`m14 10-5.5 5.5`,key:`92pfem`}],[`path`,{d:`M14 17.85V10H6.15`,key:`xqmtsk`}]]),mc=U(`clapperboard`,[[`path`,{d:`m12.296 3.464 3.02 3.956`,key:`qash78`}],[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z`,key:`1h7j8b`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`4lm6w1`}],[`path`,{d:`m6.18 5.276 3.1 3.899`,key:`zjj9t3`}]]),hc=U(`clipboard-check`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]),gc=U(`clipboard-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v.832`,key:`1ujtp2`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2`,key:`qvpao1`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),_c=U(`clipboard-copy`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]),vc=U(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),yc=U(`clipboard-minus`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 14h6`,key:`159ibu`}]]),bc=U(`clipboard-paste`,[[`path`,{d:`M11 14h10`,key:`1w8e9d`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v1.344`,key:`1e62lh`}],[`path`,{d:`m17 18 4-4-4-4`,key:`z2g111`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113`,key:`bjbb7m`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),xc=U(`clipboard-pen-line`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,key:`1oijnt`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5`,key:`1but9f`}],[`path`,{d:`M16 4h2a2 2 0 0 1 1.73 1`,key:`1p8n7l`}],[`path`,{d:`M8 18h1`,key:`13wk12`}],[`path`,{d:`M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`2t3380`}]]),Sc=U(`clipboard-pen`,[[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`j91f56`}],[`path`,{d:`M21.34 15.664a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`16fuwn`}],[`path`,{d:`M8 22H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`120tdm`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]),Cc=U(`clipboard-plus`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 14h6`,key:`159ibu`}],[`path`,{d:`M12 17v-6`,key:`1y8rbf`}]]),wc=U(`clipboard-type`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M9 12v-1h6v1`,key:`iehl6m`}],[`path`,{d:`M11 17h2`,key:`12w5me`}],[`path`,{d:`M12 11v6`,key:`1bwqyc`}]]),Tc=U(`clipboard-x`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m15 11-6 6`,key:`1toa9n`}],[`path`,{d:`m9 11 6 6`,key:`wlibny`}]]),Ec=U(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),Dc=U(`clock-1`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2-4`,key:`miptyd`}]]),Oc=U(`clock-10`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4-2`,key:`cedpoo`}]]),kc=U(`clock-11`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2-4`,key:`ns39ag`}]]),Ac=U(`clock-12`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6`,key:`1ipuwl`}]]),jc=U(`clock-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4-2`,key:`1r2kuh`}]]),Mc=U(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),Nc=U(`clock-4`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Pc=U(`clock-5`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2 4`,key:`1287s9`}]]),Fc=U(`clock-6`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v10`,key:`wf7rdh`}]]),Ic=U(`clock-7`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2 4`,key:`1095bu`}]]),Lc=U(`clock-8`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4 2`,key:`imc3wl`}]]),Rc=U(`clock-9`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6H8`,key:`u39vzm`}]]),zc=U(`clock-alert`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M20 12v5`,key:`12wsvk`}],[`path`,{d:`M20 21h.01`,key:`1p6o6n`}],[`path`,{d:`M21.25 8.2A10 10 0 1 0 16 21.16`,key:`17fp9f`}]]),Bc=U(`clock-arrow-down`,[[`path`,{d:`M12 6v6l2 1`,key:`19cm8n`}],[`path`,{d:`M12.337 21.994a10 10 0 1 1 9.588-8.767`,key:`28moa`}],[`path`,{d:`m14 18 4 4 4-4`,key:`1waygx`}],[`path`,{d:`M18 14v8`,key:`irew45`}]]),Vc=U(`clock-arrow-up`,[[`path`,{d:`M12 6v6l1.56.78`,key:`14ed3g`}],[`path`,{d:`M13.227 21.925a10 10 0 1 1 8.767-9.588`,key:`jwkls1`}],[`path`,{d:`m14 18 4-4 4 4`,key:`ftkppy`}],[`path`,{d:`M18 22v-8`,key:`su0gjh`}]]),Hc=U(`clock-check`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M22 12a10 10 0 1 0-11 9.95`,key:`17dhok`}],[`path`,{d:`m22 16-5.5 5.5L14 19`,key:`1eibut`}]]),Uc=U(`clock-fading`,[[`path`,{d:`M12 2a10 10 0 0 1 7.38 16.75`,key:`175t95`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`path`,{d:`M2.5 8.875a10 10 0 0 0-.5 3`,key:`1vce0s`}],[`path`,{d:`M2.83 16a10 10 0 0 0 2.43 3.4`,key:`o3fkw4`}],[`path`,{d:`M4.636 5.235a10 10 0 0 1 .891-.857`,key:`1szpfk`}],[`path`,{d:`M8.644 21.42a10 10 0 0 0 7.631-.38`,key:`9yhvd4`}]]),Wc=U(`clock-plus`,[[`path`,{d:`M12 6v6l3.644 1.822`,key:`1jmett`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M21.92 13.267a10 10 0 1 0-8.653 8.653`,key:`1u0osk`}]]),Gc=U(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Kc=U(`closed-caption`,[[`path`,{d:`M10 9.17a3 3 0 1 0 0 5.66`,key:`h9wayk`}],[`path`,{d:`M17 9.17a3 3 0 1 0 0 5.66`,key:`1v6zke`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),qc=U(`cloud-alert`,[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]),Jc=U(`cloud-backup`,[[`path`,{d:`M21 15.251A4.5 4.5 0 0 0 17.5 8h-1.79A7 7 0 1 0 3 13.607`,key:`xpoh9y`}],[`path`,{d:`M7 11v4h4`,key:`q9yh32`}],[`path`,{d:`M8 19a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5 4.82 4.82 0 0 0-3.41 1.41L7 15`,key:`1xm8iu`}]]),Yc=U(`cloud-check`,[[`path`,{d:`m17 15-5.5 5.5L9 18`,key:`15q87x`}],[`path`,{d:`M5.516 16.07A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 3.501 7.327`,key:`1xtj56`}]]),Xc=U(`cloud-cog`,[[`path`,{d:`m10.852 19.772-.383.924`,key:`r7sl7d`}],[`path`,{d:`m13.148 14.228.383-.923`,key:`1d5zpm`}],[`path`,{d:`M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1ydik7`}],[`path`,{d:`m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1m1vsf`}],[`path`,{d:`m14.772 15.852.923-.383`,key:`660p6e`}],[`path`,{d:`m14.772 18.148.923.383`,key:`hrcpis`}],[`path`,{d:`M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2`,key:`j2q98n`}],[`path`,{d:`m9.228 15.852-.923-.383`,key:`1p9ong`}],[`path`,{d:`m9.228 18.148-.923.383`,key:`6558rz`}]]),Zc=U(`cloud-download`,[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]]),Qc=U(`cloud-drizzle`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M8 19v1`,key:`1dk2by`}],[`path`,{d:`M8 14v1`,key:`84yxot`}],[`path`,{d:`M16 19v1`,key:`v220m7`}],[`path`,{d:`M16 14v1`,key:`g12gj6`}],[`path`,{d:`M12 21v1`,key:`q8vafk`}],[`path`,{d:`M12 16v1`,key:`1mx6rx`}]]),$c=U(`cloud-fog`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 17H7`,key:`pygtm1`}],[`path`,{d:`M17 21H9`,key:`1u2q02`}]]),el=U(`cloud-hail`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 14v2`,key:`a1is7l`}],[`path`,{d:`M8 14v2`,key:`1e9m6t`}],[`path`,{d:`M16 20h.01`,key:`xwek51`}],[`path`,{d:`M8 20h.01`,key:`1vjney`}],[`path`,{d:`M12 16v2`,key:`z66u1j`}],[`path`,{d:`M12 22h.01`,key:`1urd7a`}]]),tl=U(`cloud-lightning`,[[`path`,{d:`M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973`,key:`1cez44`}],[`path`,{d:`m13 12-3 5h4l-3 5`,key:`1t22er`}]]),nl=U(`cloud-moon-rain`,[[`path`,{d:`M11 20v2`,key:`174qtz`}],[`path`,{d:`M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36`,key:`zwnc1e`}],[`path`,{d:`M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24`,key:`1qmrp3`}],[`path`,{d:`M7 19v2`,key:`12npes`}]]),rl=U(`cloud-moon`,[[`path`,{d:`M13 16a3 3 0 0 1 0 6H7a5 5 0 1 1 4.9-6z`,key:`ie2ih4`}],[`path`,{d:`M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36`,key:`zwnc1e`}]]),il=U(`cloud-off`,[[`path`,{d:`M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057`,key:`1uxyv8`}],[`path`,{d:`M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78`,key:`99tcn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),al=U(`cloud-rain-wind`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m9.2 22 3-7`,key:`sb5f6j`}],[`path`,{d:`m9 13-3 7`,key:`500co5`}],[`path`,{d:`m17 13-3 7`,key:`8t2fiy`}]]),ol=U(`cloud-rain`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 14v6`,key:`1j4efv`}],[`path`,{d:`M8 14v6`,key:`17c4r9`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}]]),sl=U(`cloud-snow`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M8 19h.01`,key:`puxtts`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M12 21h.01`,key:`h35vbk`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}],[`path`,{d:`M16 19h.01`,key:`1vcnzz`}]]),cl=U(`cloud-sun-rain`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`,key:`dpwdj0`}],[`path`,{d:`M3 20a5 5 0 1 1 8.9-4H13a3 3 0 0 1 2 5.24`,key:`1qmrp3`}],[`path`,{d:`M11 20v2`,key:`174qtz`}],[`path`,{d:`M7 19v2`,key:`12npes`}]]),ll=U(`cloud-sync`,[[`path`,{d:`m17 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`adpv5j`}],[`path`,{d:`M17 22v-4h-4`,key:`ex1ofj`}],[`path`,{d:`M20.996 15.251A4.5 4.5 0 0 0 17.495 8h-1.79a7 7 0 1 0-12.709 5.607`,key:`ziqt14`}],[`path`,{d:`M7 10v4h4`,key:`1j6gx1`}],[`path`,{d:`m7 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`19q5h7`}]]),ul=U(`cloud-sun`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`,key:`dpwdj0`}],[`path`,{d:`M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z`,key:`s09mg5`}]]),dl=U(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),fl=U(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),pl=U(`cloudy`,[[`path`,{d:`M17.5 12a1 1 0 1 1 0 9H9.006a7 7 0 1 1 6.702-9z`,key:`44yre2`}],[`path`,{d:`M21.832 9A3 3 0 0 0 19 7h-2.207a5.5 5.5 0 0 0-10.72.61`,key:`leugyv`}]]),ml=U(`clover`,[[`path`,{d:`M16.17 7.83 2 22`,key:`t58vo8`}],[`path`,{d:`M4.02 12a2.827 2.827 0 1 1 3.81-4.17A2.827 2.827 0 1 1 12 4.02a2.827 2.827 0 1 1 4.17 3.81A2.827 2.827 0 1 1 19.98 12a2.827 2.827 0 1 1-3.81 4.17A2.827 2.827 0 1 1 12 19.98a2.827 2.827 0 1 1-4.17-3.81A1 1 0 1 1 4 12`,key:`17k36q`}],[`path`,{d:`m7.83 7.83 8.34 8.34`,key:`1d7sxk`}]]),hl=U(`club`,[[`path`,{d:`M17.28 9.05a5.5 5.5 0 1 0-10.56 0A5.5 5.5 0 1 0 12 17.66a5.5 5.5 0 1 0 5.28-8.6Z`,key:`27yuqz`}],[`path`,{d:`M12 17.66L12 22`,key:`ogfahf`}]]),gl=U(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),_l=U(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),vl=U(`coffee`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]),yl=U(`cog`,[[`path`,{d:`M11 10.27 7 3.34`,key:`16pf9h`}],[`path`,{d:`m11 13.73-4 6.93`,key:`794ttg`}],[`path`,{d:`M12 22v-2`,key:`1osdcq`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14 12h8`,key:`4f43i9`}],[`path`,{d:`m17 20.66-1-1.73`,key:`eq3orb`}],[`path`,{d:`m17 3.34-1 1.73`,key:`2wel8s`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`m20.66 17-1.73-1`,key:`sg0v6f`}],[`path`,{d:`m20.66 7-1.73 1`,key:`1ow05n`}],[`path`,{d:`m3.34 17 1.73-1`,key:`nuk764`}],[`path`,{d:`m3.34 7 1.73 1`,key:`1ulond`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}]]),bl=U(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),xl=U(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),Sl=U(`columns-3-cog`,[[`path`,{d:`M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5`,key:`1g2yzs`}],[`path`,{d:`m14.3 19.6 1-.4`,key:`11sv9r`}],[`path`,{d:`M15 3v7.5`,key:`7lm50a`}],[`path`,{d:`m15.2 16.9-.9-.3`,key:`1t7mvx`}],[`path`,{d:`m16.6 21.7.3-.9`,key:`1j67ps`}],[`path`,{d:`m16.8 15.3-.4-1`,key:`1ei7r6`}],[`path`,{d:`m19.1 15.2.3-.9`,key:`18r7jp`}],[`path`,{d:`m19.6 21.7-.4-1`,key:`z2vh2`}],[`path`,{d:`m20.7 16.8 1-.4`,key:`19m87a`}],[`path`,{d:`m21.7 19.4-.9-.3`,key:`1qgwi9`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Cl=U(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),wl=U(`columns-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7.5 3v18`,key:`w0wo6v`}],[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M16.5 3v18`,key:`10tjh1`}]]),Tl=U(`combine`,[[`path`,{d:`M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`1l7d7l`}],[`path`,{d:`M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`9955pe`}],[`path`,{d:`m7 15 3 3`,key:`4hkfgk`}],[`path`,{d:`m7 21 3-3H5a2 2 0 0 1-2-2v-2`,key:`1xljwe`}],[`rect`,{x:`14`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1cdgtw`}],[`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1`,key:`zi3rio`}]]),El=U(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Dl=U(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Ol=U(`component`,[[`path`,{d:`M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1uwlt4`}],[`path`,{d:`M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z`,key:`10291m`}],[`path`,{d:`M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z`,key:`1tqoq1`}],[`path`,{d:`M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z`,key:`1x6lto`}]]),kl=U(`computer`,[[`rect`,{width:`14`,height:`8`,x:`5`,y:`2`,rx:`2`,key:`wc9tft`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h2`,key:`rwmk9e`}],[`path`,{d:`M12 18h6`,key:`aqd8w3`}]]),Al=U(`concierge-bell`,[[`path`,{d:`M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z`,key:`1pvr1r`}],[`path`,{d:`M20 16a8 8 0 1 0-16 0`,key:`1pa543`}],[`path`,{d:`M12 4v4`,key:`1bq03y`}],[`path`,{d:`M10 4h4`,key:`1xpv9s`}]]),jl=U(`cone`,[[`path`,{d:`m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98`,key:`53pte7`}],[`ellipse`,{cx:`12`,cy:`19`,rx:`9`,ry:`3`,key:`1ji25f`}]]),Ml=U(`construction`,[[`rect`,{x:`2`,y:`6`,width:`20`,height:`8`,rx:`1`,key:`1estib`}],[`path`,{d:`M17 14v7`,key:`7m2elx`}],[`path`,{d:`M7 14v7`,key:`1cm7wv`}],[`path`,{d:`M17 3v3`,key:`1v4jwn`}],[`path`,{d:`M7 3v3`,key:`7o6guu`}],[`path`,{d:`M10 14 2.3 6.3`,key:`1023jk`}],[`path`,{d:`m14 6 7.7 7.7`,key:`1s8pl2`}],[`path`,{d:`m8 6 8 8`,key:`hl96qh`}]]),Nl=U(`contact-round`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M17.915 22a6 6 0 0 0-12 0`,key:`suqz9p`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Pl=U(`contact`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2`,key:`1waht3`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`11`,r:`3`,key:`itu57m`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,key:`12vinp`}]]),Fl=U(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Il=U(`contrast`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 18a6 6 0 0 0 0-12v12z`,key:`j4l70d`}]]),Ll=U(`cookie`,[[`path`,{d:`M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5`,key:`laymnq`}],[`path`,{d:`M8.5 8.5v.01`,key:`ue8clq`}],[`path`,{d:`M16 15.5v.01`,key:`14dtrp`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}],[`path`,{d:`M11 17v.01`,key:`1hyl5a`}],[`path`,{d:`M7 14v.01`,key:`uct60s`}]]),Rl=U(`cooking-pot`,[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`u0tga0`}],[`path`,{d:`m4 8 16-4`,key:`16g0ng`}],[`path`,{d:`m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8`,key:`12cejc`}]]),zl=U(`copy-check`,[[`path`,{d:`m12 15 2 2 4-4`,key:`2c609p`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Bl=U(`copy-minus`,[[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Vl=U(`copy-plus`,[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Hl=U(`copy-x`,[[`line`,{x1:`12`,x2:`18`,y1:`12`,y2:`18`,key:`1rg63v`}],[`line`,{x1:`12`,x2:`18`,y1:`18`,y2:`12`,key:`ebkxgr`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Ul=U(`copy-slash`,[[`line`,{x1:`12`,x2:`18`,y1:`18`,y2:`12`,key:`ebkxgr`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Wl=U(`copyleft`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.17 14.83a4 4 0 1 0 0-5.66`,key:`1sveal`}]]),Gl=U(`copyright`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M14.83 14.83a4 4 0 1 1 0-5.66`,key:`1i56pz`}]]),Kl=U(`corner-down-left`,[[`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`,key:`6o5b7l`}],[`path`,{d:`m9 10-5 5 5 5`,key:`1kshq7`}]]),ql=U(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),Jl=U(`corner-left-down`,[[`path`,{d:`m14 15-5 5-5-5`,key:`1eia93`}],[`path`,{d:`M20 4h-7a4 4 0 0 0-4 4v12`,key:`nbpdq2`}]]),Yl=U(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),Xl=U(`corner-right-down`,[[`path`,{d:`m10 15 5 5 5-5`,key:`1hpjnr`}],[`path`,{d:`M4 4h7a4 4 0 0 1 4 4v12`,key:`wcbgct`}]]),Zl=U(`corner-right-up`,[[`path`,{d:`m10 9 5-5 5 5`,key:`9ctzwi`}],[`path`,{d:`M4 20h7a4 4 0 0 0 4-4V4`,key:`1plgdj`}]]),Ql=U(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),$l=U(`corner-up-right`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`,key:`1lu4f8`}]]),eu=U(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),tu=U(`creative-commons`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M10 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1`,key:`1ss3eq`}],[`path`,{d:`M17 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1`,key:`1od56t`}]]),nu=U(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),ru=U(`croissant`,[[`path`,{d:`M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487`,key:`14kkz9`}],[`path`,{d:`M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132`,key:`1g7v07`}],[`path`,{d:`M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42`,key:`ratg6b`}],[`path`,{d:`M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14`,key:`4454f0`}],[`path`,{d:`M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676`,key:`qmemie`}]]),iu=U(`crop`,[[`path`,{d:`M6 2v14a2 2 0 0 0 2 2h14`,key:`ron5a4`}],[`path`,{d:`M18 22V8a2 2 0 0 0-2-2H2`,key:`7s9ehn`}]]),au=U(`cross`,[[`path`,{d:`M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z`,key:`1xbrqy`}]]),ou=U(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),su=U(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),cu=U(`cuboid`,[[`path`,{d:`M10 22v-8`,key:`1f8443`}],[`path`,{d:`M2.336 8.89 10 14l11.715-7.029`,key:`1qnufy`}],[`path`,{d:`M22 14a2 2 0 0 1-.971 1.715l-10 6a2 2 0 0 1-2.138-.05l-6-4A2 2 0 0 1 2 16v-6a2 2 0 0 1 .971-1.715l10-6a2 2 0 0 1 2.138.05l6 4A2 2 0 0 1 22 8z`,key:`670npk`}]]),lu=U(`cup-soda`,[[`path`,{d:`m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8`,key:`8166m8`}],[`path`,{d:`M5 8h14`,key:`pcz4l3`}],[`path`,{d:`M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0`,key:`yjz344`}],[`path`,{d:`m12 8 1-6h2`,key:`3ybfa4`}]]),uu=U(`currency`,[[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}],[`line`,{x1:`3`,x2:`6`,y1:`3`,y2:`6`,key:`1jkytn`}],[`line`,{x1:`21`,x2:`18`,y1:`3`,y2:`6`,key:`14zfjt`}],[`line`,{x1:`3`,x2:`6`,y1:`21`,y2:`18`,key:`iusuec`}],[`line`,{x1:`21`,x2:`18`,y1:`21`,y2:`18`,key:`yj2dd7`}]]),du=U(`cylinder`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5v14a9 3 0 0 0 18 0V5`,key:`aqi0yr`}]]),fu=U(`dam`,[[`path`,{d:`M11 11.31c1.17.56 1.54 1.69 3.5 1.69 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`157kva`}],[`path`,{d:`M11.75 18c.35.5 1.45 1 2.75 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`d7q6m6`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M7 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1L10 4a1 1 0 0 0-1-1z`,key:`pr6s65`}]]),pu=U(`database-backup`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 12a9 3 0 0 0 5 2.69`,key:`1ui2ym`}],[`path`,{d:`M21 9.3V5`,key:`6k6cib`}],[`path`,{d:`M3 5v14a9 3 0 0 0 6.47 2.88`,key:`i62tjy`}],[`path`,{d:`M12 12v4h4`,key:`1bxaet`}],[`path`,{d:`M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16`,key:`1f4ei9`}]]),mu=U(`database-search`,[[`path`,{d:`M21 11.693V5`,key:`175m1t`}],[`path`,{d:`m22 22-1.875-1.875`,key:`13zax7`}],[`path`,{d:`M3 12a9 3 0 0 0 8.697 2.998`,key:`151u9p`}],[`path`,{d:`M3 5v14a9 3 0 0 0 9.28 2.999`,key:`q2rs2p`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}]]),hu=U(`database-zap`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 15 21.84`,key:`14ibmq`}],[`path`,{d:`M21 5V8`,key:`1marbg`}],[`path`,{d:`M21 12L18 17H22L19 22`,key:`zafso`}],[`path`,{d:`M3 12A9 3 0 0 0 14.59 14.87`,key:`1y4wr8`}]]),gu=U(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),_u=U(`decimals-arrow-left`,[[`path`,{d:`m13 21-3-3 3-3`,key:`s3o1nf`}],[`path`,{d:`M20 18H10`,key:`14r3mt`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{x:`6`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`v9paqo`}]]),vu=U(`decimals-arrow-right`,[[`path`,{d:`M10 18h10`,key:`1y5s8o`}],[`path`,{d:`m17 21 3-3-3-3`,key:`1ammt0`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{x:`15`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`76md6a`}],[`rect`,{x:`6`,y:`3`,width:`5`,height:`8`,rx:`2.5`,key:`v9paqo`}]]),yu=U(`delete`,[[`path`,{d:`M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z`,key:`1yo7s0`}],[`path`,{d:`m12 9 6 6`,key:`anjzzh`}],[`path`,{d:`m18 9-6 6`,key:`1fp51s`}]]),bu=U(`dessert`,[[`path`,{d:`M10.162 3.167A10 10 0 0 0 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4-.006 10 10 0 0 0-8.161-9.826`,key:`xi88qy`}],[`path`,{d:`M20.804 14.869a9 9 0 0 1-17.608 0`,key:`1r28rg`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}]]),xu=U(`diameter`,[[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,key:`1gwv83`}],[`path`,{d:`M6.48 3.66a10 10 0 0 1 13.86 13.86`,key:`xr8kdq`}],[`path`,{d:`m6.41 6.41 11.18 11.18`,key:`uhpjw7`}],[`path`,{d:`M3.66 6.48a10 10 0 0 0 13.86 13.86`,key:`cldpwv`}]]),Su=U(`diamond-minus`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z`,key:`1ey20j`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Cu=U(`diamond-percent`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0Z`,key:`1tpxz2`}],[`path`,{d:`M9.2 9.2h.01`,key:`1b7bvt`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`M14.7 14.8h.01`,key:`17nsh4`}]]),wu=U(`diamond-plus`,[[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z`,key:`1ey20j`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Tu=U(`diamond`,[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]),Eu=U(`dice-1`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Du=U(`dice-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}],[`path`,{d:`M9 15h.01`,key:`fzyn71`}]]),Ou=U(`dice-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),ku=U(`dice-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}]]),Au=U(`dice-5`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),ju=U(`dice-6`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M16 8h.01`,key:`cr5u4v`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M8 8h.01`,key:`1e4136`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Mu=U(`dices`,[[`rect`,{width:`12`,height:`12`,x:`2`,y:`10`,rx:`2`,ry:`2`,key:`6agr2n`}],[`path`,{d:`m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6`,key:`1o487t`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 14h.01`,key:`ssrbsk`}],[`path`,{d:`M15 6h.01`,key:`cblpky`}],[`path`,{d:`M18 9h.01`,key:`2061c0`}]]),Nu=U(`diff`,[[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 10h14`,key:`elsbfy`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Pu=U(`disc-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Fu=U(`disc-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M6 12c0-1.7.7-3.2 1.8-4.2`,key:`oqkarx`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M18 12c0 1.7-.7 3.2-1.8 4.2`,key:`1eah9h`}]]),Iu=U(`disc-album`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`12`,r:`5`,key:`nd82uf`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Lu=U(`disc`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Ru=U(`divide`,[[`circle`,{cx:`12`,cy:`6`,r:`1`,key:`1bh7o1`}],[`line`,{x1:`5`,x2:`19`,y1:`12`,y2:`12`,key:`13b5wn`}],[`circle`,{cx:`12`,cy:`18`,r:`1`,key:`lqb9t5`}]]),zu=U(`dna`,[[`path`,{d:`m10 16 1.5 1.5`,key:`11lckj`}],[`path`,{d:`m14 8-1.5-1.5`,key:`1ohn8i`}],[`path`,{d:`M15 2c-1.798 1.998-2.518 3.995-2.807 5.993`,key:`80uv8i`}],[`path`,{d:`m16.5 10.5 1 1`,key:`696xn5`}],[`path`,{d:`m17 6-2.891-2.891`,key:`xu6p2f`}],[`path`,{d:`M2 15c6.667-6 13.333 0 20-6`,key:`1pyr53`}],[`path`,{d:`m20 9 .891.891`,key:`3xwk7g`}],[`path`,{d:`M3.109 14.109 4 15`,key:`q76aoh`}],[`path`,{d:`m6.5 12.5 1 1`,key:`cs35ky`}],[`path`,{d:`m7 18 2.891 2.891`,key:`1sisit`}],[`path`,{d:`M9 22c1.798-1.998 2.518-3.995 2.807-5.993`,key:`q3hbxp`}]]),Bu=U(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),Vu=U(`dna-off`,[[`path`,{d:`M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8`,key:`1bivrr`}],[`path`,{d:`m17 6-2.891-2.891`,key:`xu6p2f`}],[`path`,{d:`M2 15c3.333-3 6.667-3 10-3`,key:`nxix30`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`m20 9 .891.891`,key:`3xwk7g`}],[`path`,{d:`M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1`,key:`18cutr`}],[`path`,{d:`M3.109 14.109 4 15`,key:`q76aoh`}],[`path`,{d:`m6.5 12.5 1 1`,key:`cs35ky`}],[`path`,{d:`m7 18 2.891 2.891`,key:`1sisit`}],[`path`,{d:`M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16`,key:`rlvei3`}]]),Hu=U(`dock`,[[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 16h12`,key:`u522kt`}]]),Uu=U(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),Wu=U(`donut`,[[`path`,{d:`M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3`,key:`19sr3x`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Gu=U(`door-closed-locked`,[[`path`,{d:`M10 12h.01`,key:`1kxr2c`}],[`path`,{d:`M18 9V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14`,key:`1bnhmg`}],[`path`,{d:`M2 20h8`,key:`10ntw1`}],[`path`,{d:`M20 17v-2a2 2 0 1 0-4 0v2`,key:`pwaxnr`}],[`rect`,{x:`14`,y:`17`,width:`8`,height:`5`,rx:`1`,key:`15pjcy`}]]),Ku=U(`door-closed`,[[`path`,{d:`M10 12h.01`,key:`1kxr2c`}],[`path`,{d:`M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14`,key:`36qu9e`}],[`path`,{d:`M2 20h20`,key:`owomy5`}]]),qu=U(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),Ju=U(`dot`,[[`circle`,{cx:`12.1`,cy:`12.1`,r:`1`,key:`18d7e5`}]]),Yu=U(`drafting-compass`,[[`path`,{d:`m12.99 6.74 1.93 3.44`,key:`iwagvd`}],[`path`,{d:`M19.136 12a10 10 0 0 1-14.271 0`,key:`ppmlo4`}],[`path`,{d:`m21 21-2.16-3.84`,key:`vylbct`}],[`path`,{d:`m3 21 8.02-14.26`,key:`1ssaw4`}],[`circle`,{cx:`12`,cy:`5`,r:`2`,key:`f1ur92`}]]),Xu=U(`drama`,[[`path`,{d:`M10 11h.01`,key:`d2at3l`}],[`path`,{d:`M14 6h.01`,key:`k028ub`}],[`path`,{d:`M18 6h.01`,key:`1v4wsw`}],[`path`,{d:`M6.5 13.1h.01`,key:`1748ia`}],[`path`,{d:`M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3`,key:`172yzv`}],[`path`,{d:`M17.4 9.9c-.8.8-2 .8-2.8 0`,key:`1obv0w`}],[`path`,{d:`M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7`,key:`rqjl8i`}],[`path`,{d:`M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4`,key:`1mr6wy`}]]),Zu=U(`drill`,[[`path`,{d:`M10 18a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a3 3 0 0 1-3-3 1 1 0 0 1 1-1z`,key:`ioqxb1`}],[`path`,{d:`M13 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1l-.81 3.242a1 1 0 0 1-.97.758H8`,key:`1rs59n`}],[`path`,{d:`M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3`,key:`105ega`}],[`path`,{d:`M18 6h4`,key:`66u95g`}],[`path`,{d:`m5 10-2 8`,key:`xt2lic`}],[`path`,{d:`m7 18 2-8`,key:`1bzku2`}]]),Qu=U(`drone`,[[`path`,{d:`M10 10 7 7`,key:`zp14k7`}],[`path`,{d:`m10 14-3 3`,key:`1jrpxk`}],[`path`,{d:`m14 10 3-3`,key:`7tigam`}],[`path`,{d:`m14 14 3 3`,key:`vm23p3`}],[`path`,{d:`M14.205 4.139a4 4 0 1 1 5.439 5.863`,key:`1tm5p2`}],[`path`,{d:`M19.637 14a4 4 0 1 1-5.432 5.868`,key:`16egi2`}],[`path`,{d:`M4.367 10a4 4 0 1 1 5.438-5.862`,key:`1wta6a`}],[`path`,{d:`M9.795 19.862a4 4 0 1 1-5.429-5.873`,key:`q39hpv`}],[`rect`,{x:`10`,y:`8`,width:`4`,height:`8`,rx:`1`,key:`phrjt1`}]]),$u=U(`droplet-off`,[[`path`,{d:`M18.715 13.186C18.29 11.858 17.384 10.607 16 9.5c-2-1.6-3.5-4-4-6.5a10.7 10.7 0 0 1-.884 2.586`,key:`8suz2t`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.795 8.797A11 11 0 0 1 8 9.5C6 11.1 5 13 5 15a7 7 0 0 0 13.222 3.208`,key:`19dw9m`}]]),ed=U(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),td=U(`droplets`,[[`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z`,key:`1ptgy4`}],[`path`,{d:`M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`,key:`1sl1rz`}]]),nd=U(`drum`,[[`path`,{d:`m2 2 8 8`,key:`1v6059`}],[`path`,{d:`m22 2-8 8`,key:`173r8a`}],[`ellipse`,{cx:`12`,cy:`9`,rx:`10`,ry:`5`,key:`liohsx`}],[`path`,{d:`M7 13.4v7.9`,key:`1yi6u9`}],[`path`,{d:`M12 14v8`,key:`1tn2tj`}],[`path`,{d:`M17 13.4v7.9`,key:`eqz2v3`}],[`path`,{d:`M2 9v8a10 5 0 0 0 20 0V9`,key:`1750ul`}]]),rd=U(`drumstick`,[[`path`,{d:`M15.4 15.63a7.875 6 135 1 1 6.23-6.23 4.5 3.43 135 0 0-6.23 6.23`,key:`1dtqwm`}],[`path`,{d:`m8.29 12.71-2.6 2.6a2.5 2.5 0 1 0-1.65 4.65A2.5 2.5 0 1 0 8.7 18.3l2.59-2.59`,key:`1oq1fw`}]]),id=U(`dumbbell`,[[`path`,{d:`M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z`,key:`9m4mmf`}],[`path`,{d:`m2.5 21.5 1.4-1.4`,key:`17g3f0`}],[`path`,{d:`m20.1 3.9 1.4-1.4`,key:`1qn309`}],[`path`,{d:`M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z`,key:`1t2c92`}],[`path`,{d:`m9.6 14.4 4.8-4.8`,key:`6umqxw`}]]),ad=U(`ear-off`,[[`path`,{d:`M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46`,key:`1qngmn`}],[`path`,{d:`M6 8.5c0-.75.13-1.47.36-2.14`,key:`b06bma`}],[`path`,{d:`M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76`,key:`g10hsz`}],[`path`,{d:`M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18`,key:`ygzou7`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),od=U(`ear`,[[`path`,{d:`M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0`,key:`1dfaln`}],[`path`,{d:`M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4`,key:`1qnva7`}]]),sd=U(`earth-lock`,[[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3`,key:`w732o8`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`f02343`}],[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M12 2a10 10 0 1 0 9.54 13`,key:`zjsr6q`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),cd=U(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),ld=U(`eclipse`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a7 7 0 1 0 10 10`,key:`1yuj32`}]]),ud=U(`egg-fried`,[[`circle`,{cx:`11.5`,cy:`12.5`,r:`3.5`,key:`1cl1mi`}],[`path`,{d:`M3 8c0-3.5 2.5-6 6.5-6 5 0 4.83 3 7.5 5s5 2 5 6c0 4.5-2.5 6.5-7 6.5-2.5 0-2.5 2.5-6 2.5s-7-2-7-5.5c0-3 1.5-3 1.5-5C3.5 10 3 9 3 8Z`,key:`165ef9`}]]),dd=U(`egg`,[[`path`,{d:`M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12`,key:`1le142`}]]),fd=U(`egg-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 14.347V14c0-6-4-12-8-12-1.078 0-2.157.436-3.157 1.19`,key:`13g2jy`}],[`path`,{d:`M6.206 6.21C4.871 8.4 4 11.2 4 14a8 8 0 0 0 14.568 4.568`,key:`1581id`}]]),pd=U(`ellipse`,[[`ellipse`,{cx:`12`,cy:`12`,rx:`10`,ry:`6`,key:`swdkt4`}]]),md=U(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),hd=U(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),gd=U(`equal-approximately`,[[`path`,{d:`M5 15a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0`,key:`yrdkhy`}],[`path`,{d:`M5 9a6.5 6.5 0 0 1 7 0 6.5 6.5 0 0 0 7 0`,key:`gzkvyz`}]]),_d=U(`equal-not`,[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}],[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}]]),vd=U(`equal`,[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}]]),yd=U(`eraser`,[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]),bd=U(`ethernet-port`,[[`path`,{d:`m15 20 3-3h2a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h2l3 3z`,key:`rbahqx`}],[`path`,{d:`M6 8v1`,key:`1636ez`}],[`path`,{d:`M10 8v1`,key:`1talb4`}],[`path`,{d:`M14 8v1`,key:`1rsfgr`}],[`path`,{d:`M18 8v1`,key:`gnkwox`}]]),xd=U(`euro`,[[`path`,{d:`M4 10h12`,key:`1y6xl8`}],[`path`,{d:`M4 14h9`,key:`1loblj`}],[`path`,{d:`M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2`,key:`1j6lzo`}]]),Sd=U(`ev-charger`,[[`path`,{d:`M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5`,key:`1wtuz0`}],[`path`,{d:`M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16`,key:`e09ifn`}],[`path`,{d:`M2 21h13`,key:`1x0fut`}],[`path`,{d:`M3 7h11`,key:`19efrr`}],[`path`,{d:`m9 11-2 3h3l-2 3`,key:`lmzxi1`}]]),Cd=U(`expand`,[[`path`,{d:`m15 15 6 6`,key:`1s409w`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}],[`path`,{d:`M3 16v5h5`,key:`1t08am`}],[`path`,{d:`m3 21 6-6`,key:`wwnumi`}],[`path`,{d:`M3 8V3h5`,key:`1ln10m`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}]]),wd=U(`eye-closed`,[[`path`,{d:`m15 18-.722-3.25`,key:`1j64jw`}],[`path`,{d:`M2 8a10.645 10.645 0 0 0 20 0`,key:`1e7gxb`}],[`path`,{d:`m20 15-1.726-2.05`,key:`1cnuld`}],[`path`,{d:`m4 15 1.726-2.05`,key:`1dsqqd`}],[`path`,{d:`m9 18 .722-3.25`,key:`ypw2yx`}]]),Td=U(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ed=U(`factory`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),Dd=U(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Od=U(`fan`,[[`path`,{d:`M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z`,key:`484a7f`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}]]),kd=U(`fast-forward`,[[`path`,{d:`M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z`,key:`b19h5q`}],[`path`,{d:`M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z`,key:`h7h5ge`}]]),Ad=U(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),jd=U(`fence`,[[`path`,{d:`M4 3 2 5v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`1n2rgs`}],[`path`,{d:`M6 8h4`,key:`utf9t1`}],[`path`,{d:`M6 18h4`,key:`12yh4b`}],[`path`,{d:`m12 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`3ha7mj`}],[`path`,{d:`M14 8h4`,key:`1r8wg2`}],[`path`,{d:`M14 18h4`,key:`1t3kbu`}],[`path`,{d:`m20 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z`,key:`dfd4e2`}]]),Md=U(`ferris-wheel`,[[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m6.8 15-3.5 2`,key:`hjy98k`}],[`path`,{d:`m20.7 7-3.5 2`,key:`f08gto`}],[`path`,{d:`M6.8 9 3.3 7`,key:`1aevh4`}],[`path`,{d:`m20.7 17-3.5-2`,key:`1liqo3`}],[`path`,{d:`m9 22 3-8 3 8`,key:`wees03`}],[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M18 18.7a9 9 0 1 0-12 0`,key:`dhzg4g`}]]),Nd=U(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),Pd=U(`file-axis-3d`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m8 18 4-4`,key:`12zab0`}],[`path`,{d:`M8 10v8h8`,key:`tlaukw`}]]),Fd=U(`file-badge`,[[`path`,{d:`M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.3`,key:`cvl1xm`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m7.69 16.479 1.29 4.88a.5.5 0 0 1-.698.591l-1.843-.849a1 1 0 0 0-.879.001l-1.846.85a.5.5 0 0 1-.692-.593l1.29-4.88`,key:`1ff7gj`}],[`circle`,{cx:`6`,cy:`14`,r:`3`,key:`a1xfv6`}]]),Id=U(`file-braces-corner`,[[`path`,{d:`M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6`,key:`14cnrg`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1`,key:`sr0ebq`}],[`path`,{d:`M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1`,key:`w793db`}]]),Ld=U(`file-box`,[[`path`,{d:`M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8`,key:`1kchwa`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11.7 14.2 7 17l-4.7-2.8`,key:`1yk8tc`}],[`path`,{d:`M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z`,key:`19flxy`}],[`path`,{d:`M7 17v5`,key:`1yj1jh`}]]),Rd=U(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),zd=U(`file-chart-column-increasing`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M12 18v-4`,key:`q1q25u`}],[`path`,{d:`M16 18v-6`,key:`15y0np`}]]),Bd=U(`file-chart-column`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-1`,key:`zg0ygc`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`M16 18v-3`,key:`j5jt4h`}]]),Vd=U(`file-chart-line`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m16 13-3.5 3.5-2-2L8 17`,key:`zz7yod`}]]),Hd=U(`file-chart-pie`,[[`path`,{d:`M15.941 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.512`,key:`13hoie`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M4.017 11.512a6 6 0 1 0 8.466 8.475`,key:`s6vs5t`}],[`path`,{d:`M9 16a1 1 0 0 1-1-1v-4c0-.552.45-1.008.995-.917a6 6 0 0 1 4.922 4.922c.091.544-.365.995-.917.995z`,key:`1dl6s6`}]]),Ud=U(`file-check-corner`,[[`path`,{d:`M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6`,key:`g5mvt7`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14 20 2 2 4-4`,key:`15kota`}]]),Wd=U(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),Gd=U(`file-clock`,[[`path`,{d:`M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85`,key:`ryk6xj`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 14v2.2l1.6 1`,key:`6m4bie`}],[`circle`,{cx:`8`,cy:`16`,r:`6`,key:`10v15b`}]]),Kd=U(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),qd=U(`file-cog`,[[`path`,{d:`M15 8a1 1 0 0 1-1-1V2a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8z`,key:`1ckgky`}],[`path`,{d:`M20 8v12a2 2 0 0 1-2 2h-4.182`,key:`1726p0`}],[`path`,{d:`m3.305 19.53.923-.382`,key:`ao1pio`}],[`path`,{d:`M4 10.592V4a2 2 0 0 1 2-2h8`,key:`1foop0`}],[`path`,{d:`m4.228 16.852-.924-.383`,key:`1fv9zy`}],[`path`,{d:`m5.852 15.228-.383-.923`,key:`1a9hc2`}],[`path`,{d:`m5.852 20.772-.383.924`,key:`1sh9ke`}],[`path`,{d:`m8.148 15.228.383-.923`,key:`4yu6lf`}],[`path`,{d:`m8.53 21.696-.382-.924`,key:`18b0s9`}],[`path`,{d:`m9.773 16.852.922-.383`,key:`ti6xop`}],[`path`,{d:`m9.773 19.148.922.383`,key:`rws47d`}],[`circle`,{cx:`7`,cy:`18`,r:`3`,key:`lvkj7j`}]]),Jd=U(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),Yd=U(`file-digit`,[[`path`,{d:`M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2`,key:`jrl274`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 16h2v6`,key:`1bxocy`}],[`path`,{d:`M10 22h4`,key:`ceow96`}],[`rect`,{x:`2`,y:`16`,width:`4`,height:`6`,rx:`2`,key:`r45zd0`}]]),Xd=U(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),Zd=U(`file-down`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]),Qd=U(`file-exclamation-point`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),$d=U(`file-heart`,[[`path`,{d:`M13 22h5a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v7`,key:`oagw2b`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M3.62 18.8A2.25 2.25 0 1 1 7 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a1 1 0 0 1-1.507 0z`,key:`rg3psg`}]]),ef=U(`file-headphone`,[[`path`,{d:`M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343`,key:`1vfytu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0`,key:`1etmh7`}]]),tf=U(`file-input`,[[`path`,{d:`M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1`,key:`1q9hii`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 15h10`,key:`jfw4w8`}],[`path`,{d:`m9 18 3-3-3-3`,key:`112psh`}]]),nf=U(`file-lock`,[[`path`,{d:`M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3`,key:`1432pc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 17v-2a2 2 0 0 0-4 0v2`,key:`168m41`}],[`rect`,{width:`8`,height:`5`,x:`3`,y:`17`,rx:`1`,key:`o8vfew`}]]),rf=U(`file-key`,[[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M4 12v6`,key:`bg1pfk`}],[`path`,{d:`M4 14h2`,key:`1sf9f8`}],[`path`,{d:`M9.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v4`,key:`d56i0q`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),af=U(`file-minus-corner`,[[`path`,{d:`M20 14V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12`,key:`l9p8hp`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),of=U(`file-minus`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}]]),sf=U(`file-music`,[[`path`,{d:`M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35`,key:`5ad7z2`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 20v-7l3 1.474`,key:`1ggyb9`}],[`circle`,{cx:`6`,cy:`20`,r:`2`,key:`j7wjp0`}]]),cf=U(`file-output`,[[`path`,{d:`M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127`,key:`wfxp4w`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 11-3 3`,key:`1dgrs4`}],[`path`,{d:`m5 17-3-3h10`,key:`1mvvaf`}]]),lf=U(`file-pen-line`,[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`,key:`ukzhwg`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`,key:`1klhew`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`,key:`rxaxab`}],[`path`,{d:`M8 18h1`,key:`13wk12`}]]),uf=U(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),df=U(`file-play`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]]),ff=U(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),pf=U(`file-plus`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}]]),mf=U(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),hf=U(`file-scan`,[[`path`,{d:`M20 10V8a2.4 2.4 0 0 0-.706-1.704l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.35`,key:`1cdjst`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M16 14a2 2 0 0 0-2 2`,key:`ceaadl`}],[`path`,{d:`M16 22a2 2 0 0 1-2-2`,key:`1wqh5n`}],[`path`,{d:`M20 14a2 2 0 0 1 2 2`,key:`1ny6zw`}],[`path`,{d:`M20 22a2 2 0 0 0 2-2`,key:`1l9q4k`}]]),gf=U(`file-search-corner`,[[`path`,{d:`M11.1 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.589 3.588A2.4 2.4 0 0 1 20 8v3.25`,key:`uh4ikj`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m21 22-2.88-2.88`,key:`9dd25w`}],[`circle`,{cx:`16`,cy:`17`,r:`3`,key:`11br10`}]]),_f=U(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),vf=U(`file-signal`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M11.5 13.5a2.5 2.5 0 0 1 0 3`,key:`1fccat`}],[`path`,{d:`M15 12a5 5 0 0 1 0 6`,key:`ps46cm`}]]),yf=U(`file-sliders`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M10 11v2`,key:`1s651w`}],[`path`,{d:`M8 17h8`,key:`wh5c61`}],[`path`,{d:`M14 16v2`,key:`12fp5e`}]]),bf=U(`file-spreadsheet`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]),xf=U(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Sf=U(`file-symlink`,[[`path`,{d:`M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`huwfnr`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m10 18 3-3-3-3`,key:`18f6ys`}]]),Cf=U(`file-terminal`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m8 16 2-2-2-2`,key:`10vzyd`}],[`path`,{d:`M12 18h4`,key:`1wd2n7`}]]),wf=U(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Tf=U(`file-type-corner`,[[`path`,{d:`M12 22h6a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6`,key:`15usau`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M3 16v-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5V16`,key:`s1gz5`}],[`path`,{d:`M6 22h2`,key:`194x9m`}],[`path`,{d:`M7 14v8`,key:`11ixej`}]]),Ef=U(`file-type`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11 18h2`,key:`12mj7e`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5`,key:`qbrxap`}]]),Df=U(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),Of=U(`file-user`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M16 22a4 4 0 0 0-8 0`,key:`7a83pg`}],[`circle`,{cx:`12`,cy:`15`,r:`3`,key:`g36mzq`}]]),kf=U(`file-video-camera`,[[`path`,{d:`M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2`,key:`jrl274`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157`,key:`17aeo9`}],[`rect`,{width:`7`,height:`6`,x:`3`,y:`16`,rx:`1`,key:`s27ndx`}]]),Af=U(`file-volume`,[[`path`,{d:`M4 11.55V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-1.95`,key:`44gpjv`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 15a5 5 0 0 1 0 6`,key:`oxg87a`}],[`path`,{d:`M8 14.502a.5.5 0 0 0-.826-.381l-1.893 1.631a1 1 0 0 1-.651.243H3.5a.5.5 0 0 0-.5.501v3.006a.5.5 0 0 0 .5.501h1.129a1 1 0 0 1 .652.243l1.893 1.633a.5.5 0 0 0 .826-.38z`,key:`8rtoi1`}]]),jf=U(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),Mf=U(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),Nf=U(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Pf=U(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),Ff=U(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),If=U(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),Lf=U(`fire-extinguisher`,[[`path`,{d:`M15 6.5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3.5`,key:`sqyvz`}],[`path`,{d:`M9 18h8`,key:`i7pszb`}],[`path`,{d:`M18 3h-3`,key:`7idoqj`}],[`path`,{d:`M11 3a6 6 0 0 0-6 6v11`,key:`1v5je3`}],[`path`,{d:`M5 13h4`,key:`svpcxo`}],[`path`,{d:`M17 10a4 4 0 0 0-8 0v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2Z`,key:`vsjego`}]]),Rf=U(`fish-off`,[[`path`,{d:`M18 12.47v.03m0-.5v.47m-.475 5.056A6.744 6.744 0 0 1 15 18c-3.56 0-7.56-2.53-8.5-6 .348-1.28 1.114-2.433 2.121-3.38m3.444-2.088A8.802 8.802 0 0 1 15 6c3.56 0 6.06 2.54 7 6-.309 1.14-.786 2.177-1.413 3.058`,key:`1j1hse`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33m7.48-4.372A9.77 9.77 0 0 1 16 6.07m0 11.86a9.77 9.77 0 0 1-1.728-3.618`,key:`1q46z8`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98M8.53 3h5.27a2 2 0 0 1 1.98 1.67l.23 1.4M2 2l20 20`,key:`1407gh`}]]),zf=U(`fish-symbol`,[[`path`,{d:`M2 16s9-15 20-4C11 23 2 8 2 8`,key:`h4oh4o`}]]),Bf=U(`fish`,[[`path`,{d:`M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z`,key:`15baut`}],[`path`,{d:`M18 12v.5`,key:`18hhni`}],[`path`,{d:`M16 17.93a9.77 9.77 0 0 1 0-11.86`,key:`16dt7o`}],[`path`,{d:`M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33`,key:`l9di03`}],[`path`,{d:`M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4`,key:`1kjonw`}],[`path`,{d:`m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98`,key:`1zlm23`}]]),Vf=U(`fishing-hook`,[[`path`,{d:`m17.586 11.414-5.93 5.93a1 1 0 0 1-8-8l3.137-3.137a.707.707 0 0 1 1.207.5V10`,key:`157y8s`}],[`path`,{d:`M20.414 8.586 22 7`,key:`5g2s34`}],[`circle`,{cx:`19`,cy:`10`,r:`2`,key:`7363ft`}]]),Hf=U(`fishing-rod`,[[`path`,{d:`M4 11h1`,key:`13eipc`}],[`path`,{d:`M8 15a2 2 0 0 1-4 0V3a1 1 0 0 1 1-1h.5C14 2 20 9 20 18v4`,key:`1hs3im`}],[`circle`,{cx:`18`,cy:`18`,r:`2`,key:`1emm8v`}]]),Uf=U(`flag-off`,[[`path`,{d:`M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1q158e`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 22V4`,key:`1plyxx`}],[`path`,{d:`M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347`,key:`xj1b71`}]]),Wf=U(`flag-triangle-left`,[[`path`,{d:`M18 22V2.8a.8.8 0 0 0-1.17-.71L5.45 7.78a.8.8 0 0 0 0 1.44L18 15.5`,key:`rbbtmw`}]]),Gf=U(`flag-triangle-right`,[[`path`,{d:`M6 22V2.8a.8.8 0 0 1 1.17-.71l11.38 5.69a.8.8 0 0 1 0 1.44L6 15.5`,key:`kfjsu0`}]]),Kf=U(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]),qf=U(`flame-kindling`,[[`path`,{d:`M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z`,key:`1ir223`}],[`path`,{d:`m5 22 14-4`,key:`1brv4h`}],[`path`,{d:`m5 18 14 4`,key:`lgyyje`}]]),Jf=U(`flashlight-off`,[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]),Yf=U(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),Xf=U(`flashlight`,[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]),Zf=U(`flask-conical-off`,[[`path`,{d:`M10 2v2.343`,key:`15t272`}],[`path`,{d:`M14 2v6.343`,key:`sxr80q`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20a2 2 0 0 1-2 2H6a2 2 0 0 1-1.755-2.96l5.227-9.563`,key:`k0duyd`}],[`path`,{d:`M6.453 15H15`,key:`1f0z33`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),Qf=U(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),$f=U(`flask-round`,[[`path`,{d:`M10 2v6.292a7 7 0 1 0 4 0V2`,key:`1s42pc`}],[`path`,{d:`M5 15h14`,key:`m0yey3`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),ep=U(`flip-horizontal-2`,[[`path`,{d:`m3 7 5 5-5 5V7`,key:`couhi7`}],[`path`,{d:`m21 7-5 5 5 5V7`,key:`6ouia7`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 2v2`,key:`tus03m`}]]),tp=U(`flip-vertical-2`,[[`path`,{d:`m17 3-5 5-5-5h10`,key:`1ftt6x`}],[`path`,{d:`m17 21-5-5-5 5h10`,key:`1m0wmu`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),np=U(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),rp=U(`flower`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5`,key:`14wa3c`}],[`path`,{d:`M12 7.5V9`,key:`1oy5b0`}],[`path`,{d:`M7.5 12H9`,key:`eltsq1`}],[`path`,{d:`M16.5 12H15`,key:`vk5kw4`}],[`path`,{d:`M12 16.5V15`,key:`k7eayi`}],[`path`,{d:`m8 8 1.88 1.88`,key:`nxy4qf`}],[`path`,{d:`M14.12 9.88 16 8`,key:`1lst6k`}],[`path`,{d:`m8 16 1.88-1.88`,key:`h2eex1`}],[`path`,{d:`M14.12 14.12 16 16`,key:`uqkrx3`}]]),ip=U(`focus`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),ap=U(`fold-horizontal`,[[`path`,{d:`M2 12h6`,key:`1wqiqv`}],[`path`,{d:`M22 12h-6`,key:`1eg9hc`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 9-3 3 3 3`,key:`12ol22`}],[`path`,{d:`m5 15 3-3-3-3`,key:`1kdhjc`}]]),op=U(`fold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]),sp=U(`folder-archive`,[[`circle`,{cx:`15`,cy:`19`,r:`2`,key:`u2pros`}],[`path`,{d:`M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1`,key:`1jj40k`}],[`path`,{d:`M15 11v-1`,key:`cntcp`}],[`path`,{d:`M15 17v-2`,key:`1279jj`}]]),cp=U(`folder-bookmark`,[[`path`,{d:`M12 6v8l3-3 3 3V6`,key:`11pvqx`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z`,key:`1u1bxd`}]]),lp=U(`folder-check`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`m9 13 2 2 4-4`,key:`6343dt`}]]),up=U(`folder-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2`,key:`1urifu`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),dp=U(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),fp=U(`folder-code`,[[`path`,{d:`M10 10.5 8 13l2 2.5`,key:`m4t9c1`}],[`path`,{d:`m14 10.5 2 2.5-2 2.5`,key:`14w2eb`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z`,key:`1u1bxd`}]]),pp=U(`folder-dot`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`circle`,{cx:`12`,cy:`13`,r:`1`,key:`49l61u`}]]),mp=U(`folder-cog`,[[`path`,{d:`M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3`,key:`128dxu`}],[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),hp=U(`folder-git-2`,[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),gp=U(`folder-down`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m15 13-3 3-3-3`,key:`6j2sf0`}]]),_p=U(`folder-git`,[[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M14 13h3`,key:`1dgedf`}],[`path`,{d:`M7 13h3`,key:`1pygq7`}]]),vp=U(`folder-input`,[[`path`,{d:`M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1`,key:`fm4g5t`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m9 16 3-3-3-3`,key:`6m91ic`}]]),yp=U(`folder-heart`,[[`path`,{d:`M10.638 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.417`,key:`10r6g4`}],[`path`,{d:`M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`15cy7q`}]]),bp=U(`folder-key`,[[`path`,{d:`M13 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.36`,key:`1shsnm`}],[`path`,{d:`M19 12v6`,key:`kflna4`}],[`path`,{d:`M19 14h2`,key:`wp2qbk`}],[`circle`,{cx:`19`,cy:`20`,r:`2`,key:`1jfyz6`}]]),xp=U(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),Sp=U(`folder-lock`,[[`rect`,{width:`8`,height:`5`,x:`14`,y:`17`,rx:`1`,key:`19aais`}],[`path`,{d:`M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5`,key:`1w6v7t`}],[`path`,{d:`M20 17v-2a2 2 0 1 0-4 0v2`,key:`pwaxnr`}]]),Cp=U(`folder-minus`,[[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),wp=U(`folder-open-dot`,[[`path`,{d:`m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2`,key:`1nmvlm`}],[`circle`,{cx:`14`,cy:`15`,r:`1`,key:`1gm4qj`}]]),Tp=U(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Ep=U(`folder-pen`,[[`path`,{d:`M2 11.5V5a2 2 0 0 1 2-2h3.9c.7 0 1.3.3 1.7.9l.8 1.2c.4.6 1 .9 1.7.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5`,key:`a8xqs0`}],[`path`,{d:`M11.378 13.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1saktj`}]]),Dp=U(`folder-output`,[[`path`,{d:`M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5`,key:`1yk7aj`}],[`path`,{d:`M2 13h10`,key:`pgb2dq`}],[`path`,{d:`m5 10-3 3 3 3`,key:`1r8ie0`}]]),Op=U(`folder-root`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M12 15v5`,key:`11xva1`}]]),kp=U(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Ap=U(`folder-search-2`,[[`circle`,{cx:`11.5`,cy:`12.5`,r:`2.5`,key:`1ea5ju`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M13.3 14.3 15 16`,key:`1y4v1n`}]]),jp=U(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Mp=U(`folder-symlink`,[[`path`,{d:`M2 9.35V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`y8kt7d`}],[`path`,{d:`m8 16 3-3-3-3`,key:`rlqrt1`}]]),Np=U(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),Pp=U(`folder-sync`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5`,key:`1dkoa9`}],[`path`,{d:`M12 10v4h4`,key:`1czhmt`}],[`path`,{d:`m12 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`lvuxfi`}],[`path`,{d:`M22 22v-4h-4`,key:`1ewp4q`}],[`path`,{d:`m22 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`14ync0`}]]),Fp=U(`folder-up`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m9 13 3-3 3 3`,key:`1pxg3c`}]]),Ip=U(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Lp=U(`folder-x`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`m9.5 10.5 5 5`,key:`ra9qjz`}],[`path`,{d:`m14.5 10.5-5 5`,key:`l2rkpq`}]]),Rp=U(`folders`,[[`path`,{d:`M20 5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5a1.5 1.5 0 0 1 1.2.6l.6.8a1.5 1.5 0 0 0 1.2.6z`,key:`a4852j`}],[`path`,{d:`M3 8.268a2 2 0 0 0-1 1.738V19a2 2 0 0 0 2 2h11a2 2 0 0 0 1.732-1`,key:`yxbcw3`}]]),zp=U(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),Bp=U(`form`,[[`path`,{d:`M4 14h6`,key:`77gv2w`}],[`path`,{d:`M4 2h10`,key:`a2b314`}],[`rect`,{x:`4`,y:`18`,width:`16`,height:`4`,rx:`1`,key:`sybzq6`}],[`rect`,{x:`4`,y:`6`,width:`16`,height:`4`,rx:`1`,key:`1osc9e`}]]),Vp=U(`forklift`,[[`path`,{d:`M12 12H5a2 2 0 0 0-2 2v5`,key:`7zsz91`}],[`path`,{d:`M15 19h7`,key:`1askl3`}],[`path`,{d:`M16 19V2`,key:`1gf9nk`}],[`path`,{d:`M6 12V7a2 2 0 0 1 2-2h2.172a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 16 10.828`,key:`enx9tf`}],[`path`,{d:`M7 19h4`,key:`fumhkk`}],[`circle`,{cx:`13`,cy:`19`,r:`2`,key:`wjnkru`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),Hp=U(`forward`,[[`path`,{d:`m15 17 5-5-5-5`,key:`nf172w`}],[`path`,{d:`M4 18v-2a4 4 0 0 1 4-4h12`,key:`jmiej9`}]]),Up=U(`frame`,[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]),Wp=U(`frown`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 16s-1.5-2-4-2-4 2-4 2`,key:`epbg0q`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Gp=U(`fuel`,[[`path`,{d:`M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5`,key:`1wtuz0`}],[`path`,{d:`M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16`,key:`e09ifn`}],[`path`,{d:`M2 21h13`,key:`1x0fut`}],[`path`,{d:`M3 9h11`,key:`1p7c0w`}]]),Kp=U(`fullscreen`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`rect`,{width:`10`,height:`8`,x:`7`,y:`8`,rx:`1`,key:`vys8me`}]]),qp=U(`funnel-plus`,[[`path`,{d:`M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348`,key:`8mvsmf`}],[`path`,{d:`M16 6h6`,key:`1dogtp`}],[`path`,{d:`M19 3v6`,key:`1ytpjt`}]]),Jp=U(`funnel-x`,[[`path`,{d:`M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473`,key:`ol2ft2`}],[`path`,{d:`m16.5 3.5 5 5`,key:`15e6fa`}],[`path`,{d:`m21.5 3.5-5 5`,key:`m0lwru`}]]),Yp=U(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Xp=U(`gallery-horizontal-end`,[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]),Zp=U(`gallery-horizontal`,[[`path`,{d:`M2 3v18`,key:`pzttux`}],[`rect`,{width:`12`,height:`18`,x:`6`,y:`3`,rx:`2`,key:`btr8bg`}],[`path`,{d:`M22 3v18`,key:`6jf3v`}]]),Qp=U(`gallery-thumbnails`,[[`rect`,{width:`18`,height:`14`,x:`3`,y:`3`,rx:`2`,key:`74y24f`}],[`path`,{d:`M4 21h1`,key:`16zlid`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M19 21h1`,key:`edywat`}]]),$p=U(`gallery-vertical-end`,[[`path`,{d:`M7 2h10`,key:`nczekb`}],[`path`,{d:`M5 6h14`,key:`u2x4p`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`10`,rx:`2`,key:`l0tzu3`}]]),em=U(`gallery-vertical`,[[`path`,{d:`M3 2h18`,key:`15qxfx`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`6`,rx:`2`,key:`1439r6`}],[`path`,{d:`M3 22h18`,key:`8prr45`}]]),tm=U(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),nm=U(`gamepad-directional`,[[`path`,{d:`M11.146 15.854a1.207 1.207 0 0 1 1.708 0l1.56 1.56A2 2 0 0 1 15 18.828V21a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2.172a2 2 0 0 1 .586-1.414z`,key:`1re2og`}],[`path`,{d:`M18.828 15a2 2 0 0 1-1.414-.586l-1.56-1.56a1.207 1.207 0 0 1 0-1.708l1.56-1.56A2 2 0 0 1 18.828 9H21a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1z`,key:`1pchrj`}],[`path`,{d:`M6.586 14.414A2 2 0 0 1 5.172 15H3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2.172a2 2 0 0 1 1.414.586l1.56 1.56a1.207 1.207 0 0 1 0 1.708z`,key:`16mt4c`}],[`path`,{d:`M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2.172a2 2 0 0 1-.586 1.414l-1.56 1.56a1.207 1.207 0 0 1-1.708 0l-1.56-1.56A2 2 0 0 1 9 5.172z`,key:`19ox6c`}]]),rm=U(`gamepad`,[[`line`,{x1:`6`,x2:`10`,y1:`12`,y2:`12`,key:`161bw2`}],[`line`,{x1:`8`,x2:`8`,y1:`10`,y2:`14`,key:`1i6ji0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`13`,y2:`13`,key:`dqpgro`}],[`line`,{x1:`18`,x2:`18.01`,y1:`11`,y2:`11`,key:`meh2c`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),im=U(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),am=U(`gavel`,[[`path`,{d:`m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381`,key:`pgg06f`}],[`path`,{d:`m16 16 6-6`,key:`vzrcl6`}],[`path`,{d:`m21.5 10.5-8-8`,key:`a17d9x`}],[`path`,{d:`m8 8 6-6`,key:`18bi4p`}],[`path`,{d:`m8.5 7.5 8 8`,key:`1oyaui`}]]),om=U(`gem`,[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]),sm=U(`georgian-lari`,[[`path`,{d:`M11.5 21a7.5 7.5 0 1 1 7.35-9`,key:`1gyj8k`}],[`path`,{d:`M13 12V3`,key:`18om2a`}],[`path`,{d:`M4 21h16`,key:`1h09gz`}],[`path`,{d:`M9 12V3`,key:`geutu0`}]]),cm=U(`ghost`,[[`path`,{d:`M9 10h.01`,key:`qbtxuw`}],[`path`,{d:`M15 10h.01`,key:`1qmjsl`}],[`path`,{d:`M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z`,key:`uwwb07`}]]),lm=U(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),um=U(`git-branch-minus`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),dm=U(`git-branch-plus`,[[`path`,{d:`M6 3v12`,key:`qpgusn`}],[`path`,{d:`M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`1d02ji`}],[`path`,{d:`M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,key:`chk6ph`}],[`path`,{d:`M15 6a9 9 0 0 0-9 9`,key:`or332x`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),fm=U(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),pm=U(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),mm=U(`git-commit-vertical`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 15v6`,key:`a9ows0`}]]),hm=U(`git-compare-arrows`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]),gm=U(`git-compare`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`path`,{d:`M11 18H8a2 2 0 0 1-2-2V9`,key:`19pyzm`}]]),_m=U(`git-fork`,[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]),vm=U(`git-graph`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v6`,key:`158jrl`}],[`circle`,{cx:`5`,cy:`18`,r:`3`,key:`104gr9`}],[`path`,{d:`M12 3v18`,key:`108xh3`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}],[`path`,{d:`M16 15.7A9 9 0 0 0 19 9`,key:`1e3vqb`}]]),ym=U(`git-merge-conflict`,[[`path`,{d:`M12 6h4a2 2 0 0 1 2 2v7`,key:`18ej7s`}],[`path`,{d:`M6 12v9`,key:`9e33v1`}],[`path`,{d:`M9 3 3 9`,key:`ahyygn`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),bm=U(`git-merge`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`,key:`7kw0sc`}]]),xm=U(`git-pull-request-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}]]),Sm=U(`git-pull-request-create-arrow`,[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M5 9v12`,key:`ih889a`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v3`,key:`1rbwk6`}],[`path`,{d:`M19 15v6`,key:`10aioa`}],[`path`,{d:`M22 18h-6`,key:`1d5gi5`}]]),Cm=U(`git-pull-request-closed`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 9v12`,key:`1sc30k`}],[`path`,{d:`m21 3-6 6`,key:`16nqsk`}],[`path`,{d:`m21 9-6-6`,key:`9j17rh`}],[`path`,{d:`M18 11.5V15`,key:`65xf6f`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),wm=U(`git-pull-request-create`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 9v12`,key:`1sc30k`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v3`,key:`1jb6z3`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Tm=U(`git-pull-request-draft`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M18 6V5`,key:`1oao2s`}],[`path`,{d:`M18 11v-1`,key:`11c8tz`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Em=U(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),Dm=U(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),Om=U(`glass-water`,[[`path`,{d:`M5.116 4.104A1 1 0 0 1 6.11 3h11.78a1 1 0 0 1 .994 1.105L17.19 20.21A2 2 0 0 1 15.2 22H8.8a2 2 0 0 1-2-1.79z`,key:`p55z4y`}],[`path`,{d:`M6 12a5 5 0 0 1 6 0 5 5 0 0 0 6 0`,key:`mjntcy`}]]),km=U(`globe-check`,[[`path`,{d:`m15 6 2 2 4-4`,key:`levio8`}],[`path`,{d:`M2 12h20A10 10 0 1 1 12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 4-10`,key:`46evmv`}]]),Am=U(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),jm=U(`globe-off`,[[`path`,{d:`M10.114 4.462A14.5 14.5 0 0 1 12 2a10 10 0 0 1 9.313 13.643`,key:`1jq2r7`}],[`path`,{d:`M15.557 15.556A14.5 14.5 0 0 1 12 22 10 10 0 0 1 4.929 4.929`,key:`1ohfya`}],[`path`,{d:`M15.892 10.234A14.5 14.5 0 0 0 12 2a10 10 0 0 0-3.643.687`,key:`1fyh9w`}],[`path`,{d:`M17.656 12H22`,key:`1ttse4`}],[`path`,{d:`M19.071 19.071A10 10 0 0 1 12 22 14.5 14.5 0 0 1 8.44 8.45`,key:`rmtjzo`}],[`path`,{d:`M2 12h10`,key:`19562f`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Mm=U(`globe-x`,[[`path`,{d:`m16 3 5 5`,key:`1husv6`}],[`path`,{d:`M2 12h20A10 10 0 1 1 12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 4-10`,key:`46evmv`}],[`path`,{d:`m21 3-5 5`,key:`1g5oa7`}]]),Nm=U(`goal`,[[`path`,{d:`M12 13V2l8 4-8 4`,key:`5wlwwj`}],[`path`,{d:`M20.561 10.222a9 9 0 1 1-12.55-5.29`,key:`1c0wjv`}],[`path`,{d:`M8.002 9.997a5 5 0 1 0 8.9 2.02`,key:`gb1g7m`}]]),Pm=U(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),Fm=U(`gpu`,[[`path`,{d:`M2 17h18a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H2`,key:`hpo31w`}],[`path`,{d:`M2 21V3`,key:`1bzk4w`}],[`path`,{d:`M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3`,key:`5hbqbf`}],[`circle`,{cx:`16`,cy:`11`,r:`2`,key:`qt15rb`}],[`circle`,{cx:`8`,cy:`11`,r:`2`,key:`ssideg`}]]),Im=U(`grape`,[[`path`,{d:`M22 5V2l-5.89 5.89`,key:`1eenpo`}],[`circle`,{cx:`16.6`,cy:`15.89`,r:`3`,key:`xjtalx`}],[`circle`,{cx:`8.11`,cy:`7.4`,r:`3`,key:`u2fv6i`}],[`circle`,{cx:`12.35`,cy:`11.65`,r:`3`,key:`i6i8g7`}],[`circle`,{cx:`13.91`,cy:`5.85`,r:`3`,key:`6ye0dv`}],[`circle`,{cx:`18.15`,cy:`10.09`,r:`3`,key:`snx9no`}],[`circle`,{cx:`6.56`,cy:`13.2`,r:`3`,key:`17x4xg`}],[`circle`,{cx:`10.8`,cy:`17.44`,r:`3`,key:`1hogw9`}],[`circle`,{cx:`5`,cy:`19`,r:`3`,key:`1sn6vo`}]]),Lm=U(`grid-2x2-check`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),Rm=U(`grid-2x2-plus`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}],[`path`,{d:`M19 22v-6`,key:`qhmiwi`}]]),zm=U(`grid-2x2-x`,[[`path`,{d:`M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3`,key:`11za1p`}],[`path`,{d:`m16 16 5 5`,key:`8tpb07`}],[`path`,{d:`m16 21 5-5`,key:`193jll`}]]),Bm=U(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Vm=U(`grid-3x2`,[[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Hm=U(`grid-3x3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Um=U(`grip-horizontal`,[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]),Wm=U(`grip`,[[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`19`,cy:`5`,r:`1`,key:`w8mnmm`}],[`circle`,{cx:`5`,cy:`5`,r:`1`,key:`lttvr7`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}],[`circle`,{cx:`19`,cy:`19`,r:`1`,key:`shf9b7`}],[`circle`,{cx:`5`,cy:`19`,r:`1`,key:`bfqh0e`}]]),Gm=U(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),Km=U(`ham`,[[`path`,{d:`M13.144 21.144A7.274 10.445 45 1 0 2.856 10.856`,key:`1k1t7q`}],[`path`,{d:`M13.144 21.144A7.274 4.365 45 0 0 2.856 10.856a7.274 4.365 45 0 0 10.288 10.288`,key:`153t1g`}],[`path`,{d:`M16.565 10.435 18.6 8.4a2.501 2.501 0 1 0 1.65-4.65 2.5 2.5 0 1 0-4.66 1.66l-2.024 2.025`,key:`gzrt0n`}],[`path`,{d:`m8.5 16.5-1-1`,key:`otr954`}]]),qm=U(`group`,[[`path`,{d:`M3 7V5c0-1.1.9-2 2-2h2`,key:`adw53z`}],[`path`,{d:`M17 3h2c1.1 0 2 .9 2 2v2`,key:`an4l38`}],[`path`,{d:`M21 17v2c0 1.1-.9 2-2 2h-2`,key:`144t0e`}],[`path`,{d:`M7 21H5c-1.1 0-2-.9-2-2v-2`,key:`rtnfgi`}],[`rect`,{width:`7`,height:`5`,x:`7`,y:`7`,rx:`1`,key:`1eyiv7`}],[`rect`,{width:`7`,height:`5`,x:`10`,y:`12`,rx:`1`,key:`1qlmkx`}]]),Jm=U(`hamburger`,[[`path`,{d:`M12 16H4a2 2 0 1 1 0-4h16a2 2 0 1 1 0 4h-4.25`,key:`5dloqd`}],[`path`,{d:`M5 12a2 2 0 0 1-2-2 9 7 0 0 1 18 0 2 2 0 0 1-2 2`,key:`1vl3my`}],[`path`,{d:`M5 16a2 2 0 0 0-2 2 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 2 2 0 0 0-2-2q0 0 0 0`,key:`1us75o`}],[`path`,{d:`m6.67 12 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2`,key:`qqzweh`}]]),Ym=U(`guitar`,[[`path`,{d:`m11.9 12.1 4.514-4.514`,key:`109xqo`}],[`path`,{d:`M20.1 2.3a1 1 0 0 0-1.4 0l-1.114 1.114A2 2 0 0 0 17 4.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 17.828 7h1.344a2 2 0 0 0 1.414-.586L21.7 5.3a1 1 0 0 0 0-1.4z`,key:`txyc8t`}],[`path`,{d:`m6 16 2 2`,key:`16qmzd`}],[`path`,{d:`M8.23 9.85A3 3 0 0 1 11 8a5 5 0 0 1 5 5 3 3 0 0 1-1.85 2.77l-.92.38A2 2 0 0 0 12 18a4 4 0 0 1-4 4 6 6 0 0 1-6-6 4 4 0 0 1 4-4 2 2 0 0 0 1.85-1.23z`,key:`1de1vg`}]]),Xm=U(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),Zm=U(`hand-coins`,[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]),Qm=U(`hand-fist`,[[`path`,{d:`M12.035 17.012a3 3 0 0 0-3-3l-.311-.002a.72.72 0 0 1-.505-1.229l1.195-1.195A2 2 0 0 1 10.828 11H12a2 2 0 0 0 0-4H9.243a3 3 0 0 0-2.122.879l-2.707 2.707A4.83 4.83 0 0 0 3 14a8 8 0 0 0 8 8h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0`,key:`1ff7rl`}],[`path`,{d:`M13.888 9.662A2 2 0 0 0 17 8V5A2 2 0 1 0 13 5`,key:`1xmd21`}],[`path`,{d:`M9 5A2 2 0 1 0 5 5V10`,key:`f3wfjw`}],[`path`,{d:`M9 7V4A2 2 0 1 1 13 4V7.268`,key:`eaoucv`}]]),$m=U(`hand-grab`,[[`path`,{d:`M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4`,key:`edstyy`}],[`path`,{d:`M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`19wdwo`}],[`path`,{d:`M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5`,key:`1lugqo`}],[`path`,{d:`M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1hbeus`}],[`path`,{d:`M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0`,key:`1etffm`}]]),eh=U(`hand-heart`,[[`path`,{d:`M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16`,key:`1v1a37`}],[`path`,{d:`m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95`,key:`fhfbnt`}],[`path`,{d:`m2 15 6 6`,key:`10dquu`}],[`path`,{d:`m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91`,key:`1x6kdw`}]]),th=U(`hand-helping`,[[`path`,{d:`M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14`,key:`1j4xps`}],[`path`,{d:`m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`uospg8`}],[`path`,{d:`m2 13 6 6`,key:`16e5sb`}]]),nh=U(`hand-metal`,[[`path`,{d:`M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4`,key:`wc6myp`}],[`path`,{d:`M14 11V9a2 2 0 1 0-4 0v2`,key:`94qvcw`}],[`path`,{d:`M10 10.5V5a2 2 0 1 0-4 0v9`,key:`m1ah89`}],[`path`,{d:`m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5`,key:`t1skq1`}]]),rh=U(`hand-platter`,[[`path`,{d:`M12 3V2`,key:`ar7q03`}],[`path`,{d:`m15.4 17.4 3.2-2.8a2 2 0 1 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2l-1.302-1.464A1 1 0 0 0 6.151 19H5`,key:`n2g93r`}],[`path`,{d:`M2 14h12a2 2 0 0 1 0 4h-2`,key:`1o2jem`}],[`path`,{d:`M4 10h16`,key:`img6z1`}],[`path`,{d:`M5 10a7 7 0 0 1 14 0`,key:`1ega1o`}],[`path`,{d:`M5 14v6a1 1 0 0 1-1 1H2`,key:`1hescx`}]]),ih=U(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),ah=U(`handbag`,[[`path`,{d:`M2.048 18.566A2 2 0 0 0 4 21h16a2 2 0 0 0 1.952-2.434l-2-9A2 2 0 0 0 18 8H6a2 2 0 0 0-1.952 1.566z`,key:`1qbui5`}],[`path`,{d:`M8 11V6a4 4 0 0 1 8 0v5`,key:`tcht90`}]]),oh=U(`hard-drive-download`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),sh=U(`handshake`,[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]),ch=U(`hard-drive-upload`,[[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),lh=U(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),uh=U(`hard-hat`,[[`path`,{d:`M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5`,key:`1p9q5i`}],[`path`,{d:`M14 6a6 6 0 0 1 6 6v3`,key:`1hnv84`}],[`path`,{d:`M4 15v-3a6 6 0 0 1 6-6`,key:`9ciidu`}],[`rect`,{x:`2`,y:`15`,width:`20`,height:`4`,rx:`1`,key:`g3x8cw`}]]),dh=U(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),fh=U(`hat-glasses`,[[`path`,{d:`M14 18a2 2 0 0 0-4 0`,key:`1v8fkw`}],[`path`,{d:`m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11`,key:`1fkr7p`}],[`path`,{d:`M2 11h20`,key:`3eubbj`}],[`circle`,{cx:`17`,cy:`18`,r:`3`,key:`82mm0e`}],[`circle`,{cx:`7`,cy:`18`,r:`3`,key:`lvkj7j`}]]),ph=U(`haze`,[[`path`,{d:`m5.2 6.2 1.4 1.4`,key:`17imol`}],[`path`,{d:`M2 13h2`,key:`13gyu8`}],[`path`,{d:`M20 13h2`,key:`16rner`}],[`path`,{d:`m17.4 7.6 1.4-1.4`,key:`t4xlah`}],[`path`,{d:`M22 17H2`,key:`1gtaj3`}],[`path`,{d:`M22 21H2`,key:`1gy6en`}],[`path`,{d:`M16 13a4 4 0 0 0-8 0`,key:`1dyczq`}],[`path`,{d:`M12 5V2.5`,key:`1vytko`}]]),mh=U(`hd`,[[`path`,{d:`M10 12H6`,key:`15f2ro`}],[`path`,{d:`M10 15V9`,key:`1lckn7`}],[`path`,{d:`M14 14.5a.5.5 0 0 0 .5.5h1a2.5 2.5 0 0 0 2.5-2.5v-1A2.5 2.5 0 0 0 15.5 9h-1a.5.5 0 0 0-.5.5z`,key:`b3f847`}],[`path`,{d:`M6 15V9`,key:`12stmj`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),hh=U(`hdmi-port`,[[`path`,{d:`M22 9a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1l2 2h12l2-2h1a1 1 0 0 0 1-1Z`,key:`2128wb`}],[`path`,{d:`M7.5 12h9`,key:`1t0ckc`}]]),gh=U(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),_h=U(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),vh=U(`heading-4`,[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]),yh=U(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),bh=U(`heading-5`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 13v-3h4`,key:`1nvgqp`}],[`path`,{d:`M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17`,key:`2nebdn`}]]),xh=U(`heading-6`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`circle`,{cx:`19`,cy:`16`,r:`2`,key:`15mx69`}],[`path`,{d:`M20 10c-2 2-3 3.5-3 6`,key:`f35dl0`}]]),Sh=U(`heading`,[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]),Ch=U(`headphone-off`,[[`path`,{d:`M21 14h-1.343`,key:`1jdnxi`}],[`path`,{d:`M9.128 3.47A9 9 0 0 1 21 12v3.343`,key:`6kipu2`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20.414 20.414A2 2 0 0 1 19 21h-1a2 2 0 0 1-2-2v-3`,key:`9x50f4`}],[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 2.636-6.364`,key:`1bkxnm`}]]),wh=U(`headphones`,[[`path`,{d:`M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3`,key:`1xhozi`}]]),Th=U(`headset`,[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]),Eh=U(`heart-crack`,[[`path`,{d:`M12.409 5.824c-.702.792-1.15 1.496-1.415 2.166l2.153 2.156a.5.5 0 0 1 0 .707l-2.293 2.293a.5.5 0 0 0 0 .707L12 15`,key:`idzbju`}],[`path`,{d:`M13.508 20.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.677.6.6 0 0 0 .818.001A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5z`,key:`1su70f`}]]),Dh=U(`heart-handshake`,[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]),Oh=U(`heart-minus`,[[`path`,{d:`m14.876 18.99-1.368 1.323a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.244 1.572`,key:`15yztm`}],[`path`,{d:`M15 15h6`,key:`1u4692`}]]),kh=U(`heart-off`,[[`path`,{d:`M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655`,key:`1inpfl`}],[`path`,{d:`m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761`,key:`vbc6x7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ah=U(`heart-plus`,[[`path`,{d:`m14.479 19.374-.971.939a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.219 1.49`,key:`wg5jx`}],[`path`,{d:`M15 15h6`,key:`1u4692`}],[`path`,{d:`M18 12v6`,key:`1houu1`}]]),jh=U(`heart-x`,[[`path`,{d:`m15.5 12.5 5 5`,key:`15wbfr`}],[`path`,{d:`m20.5 12.5-5 5`,key:`o012pn`}],[`path`,{d:`M21.955 8.774a5.5 5.5 0 0 0-9.546-2.95.6.6 0 0 1-.818 0A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.508 5.332a2 2 0 0 0 2.57.352`,key:`c1obtn`}]]),Mh=U(`heart-pulse`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]),Nh=U(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Ph=U(`heater`,[[`path`,{d:`M11 8c2-3-2-3 0-6`,key:`1ldv5m`}],[`path`,{d:`M15.5 8c2-3-2-3 0-6`,key:`1otqoz`}],[`path`,{d:`M6 10h.01`,key:`1lbq93`}],[`path`,{d:`M6 14h.01`,key:`zudwn7`}],[`path`,{d:`M10 16v-4`,key:`1c25yv`}],[`path`,{d:`M14 16v-4`,key:`1dkbt8`}],[`path`,{d:`M18 16v-4`,key:`1yg9me`}],[`path`,{d:`M20 6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3`,key:`1ubg90`}],[`path`,{d:`M5 20v2`,key:`1abpe8`}],[`path`,{d:`M19 20v2`,key:`kqn6ft`}]]),Fh=U(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),Ih=U(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Lh=U(`helicopter`,[[`path`,{d:`M11 17v4`,key:`14wq8k`}],[`path`,{d:`M14 3v8a2 2 0 0 0 2 2h5.865`,key:`12oo5h`}],[`path`,{d:`M17 17v4`,key:`hdt4hh`}],[`path`,{d:`M18 17a4 4 0 0 0 4-4 8 6 0 0 0-8-6 6 5 0 0 0-6 5v3a2 2 0 0 0 2 2z`,key:`yynif`}],[`path`,{d:`M2 10v5`,key:`sa5akn`}],[`path`,{d:`M6 3h16`,key:`27qw71`}],[`path`,{d:`M7 21h14`,key:`1ugz0u`}],[`path`,{d:`M8 13H2`,key:`1thz1o`}]]),Rh=U(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),zh=U(`hop-off`,[[`path`,{d:`M10.82 16.12c1.69.6 3.91.79 5.18.85.28.01.53-.09.7-.27`,key:`qyzcap`}],[`path`,{d:`M11.14 20.57c.52.24 2.44 1.12 4.08 1.37.46.06.86-.25.9-.71.12-1.52-.3-3.43-.5-4.28`,key:`y078lb`}],[`path`,{d:`M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .7-.26`,key:`1utre3`}],[`path`,{d:`M17.99 5.52a20.83 20.83 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-1.17.1-2.5.02-3.9-.25`,key:`17o9hm`}],[`path`,{d:`M20.57 11.14c.24.52 1.12 2.44 1.37 4.08.04.3-.08.59-.31.75`,key:`1d1n4p`}],[`path`,{d:`M4.93 4.93a10 10 0 0 0-.67 13.4c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.85.85 0 0 0 .48-.24`,key:`9uv3tt`}],[`path`,{d:`M5.52 17.99c1.05.95 2.91 2.42 4.5 3.15a.8.8 0 0 0 1.13-.68c.2-2.34-.33-5.3-1.57-8.28`,key:`1292wz`}],[`path`,{d:`M8.35 2.68a10 10 0 0 1 9.98 1.58c.43.35.4.96-.12 1.17-1.5.6-4.3.98-6.07 1.05`,key:`7ozu9p`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Bh=U(`hop`,[[`path`,{d:`M10.82 16.12c1.69.6 3.91.79 5.18.85.55.03 1-.42.97-.97-.06-1.27-.26-3.5-.85-5.18`,key:`18lxf1`}],[`path`,{d:`M11.5 6.5c1.64 0 5-.38 6.71-1.07.52-.2.55-.82.12-1.17A10 10 0 0 0 4.26 18.33c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.88.88 0 0 0 .73-.74c.3-2.14-.15-3.5-.61-4.88`,key:`vtfxrw`}],[`path`,{d:`M15.62 16.95c.2.85.62 2.76.5 4.28a.77.77 0 0 1-.9.7 16.64 16.64 0 0 1-4.08-1.36`,key:`13hl71`}],[`path`,{d:`M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .96-.96 17.68 17.68 0 0 0-.9-4.87`,key:`1sl8oj`}],[`path`,{d:`M16.94 15.62c.86.2 2.77.62 4.29.5a.77.77 0 0 0 .7-.9 16.64 16.64 0 0 0-1.36-4.08`,key:`19c6kt`}],[`path`,{d:`M17.99 5.52a20.82 20.82 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-2.33.2-5.3-.32-8.27-1.57`,key:`85ghs3`}],[`path`,{d:`M4.93 4.93 3 3a.7.7 0 0 1 0-1`,key:`x087yj`}],[`path`,{d:`M9.58 12.18c1.24 2.98 1.77 5.95 1.57 8.28a.8.8 0 0 1-1.13.68 20.82 20.82 0 0 1-4.5-3.15`,key:`11xdqo`}]]),Vh=U(`hospital`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M14 9h-4`,key:`1w2s2s`}],[`path`,{d:`M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2`,key:`1tthqt`}],[`path`,{d:`M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16`,key:`dw4p4i`}]]),Hh=U(`hotel`,[[`path`,{d:`M10 22v-6.57`,key:`1wmca3`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M12 7h.01`,key:`1ivr5q`}],[`path`,{d:`M14 15.43V22`,key:`1q2vjd`}],[`path`,{d:`M15 16a5 5 0 0 0-6 0`,key:`o9wqvi`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 7h.01`,key:`1vti4s`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Uh=U(`hourglass`,[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]),Wh=U(`house-heart`,[[`path`,{d:`M8.62 13.8A2.25 2.25 0 1 1 12 10.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z`,key:`n9s7kx`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Gh=U(`house-plug`,[[`path`,{d:`M10 12V8.964`,key:`1vll13`}],[`path`,{d:`M14 12V8.964`,key:`1x3qvg`}],[`path`,{d:`M15 12a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1z`,key:`ppykja`}],[`path`,{d:`M8.5 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-2`,key:`365xoy`}]]),Kh=U(`house-plus`,[[`path`,{d:`M12.35 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .71-1.53l7-6a2 2 0 0 1 2.58 0l7 6A2 2 0 0 1 21 10v2.35`,key:`8ek5ge`}],[`path`,{d:`M14.8 12.4A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8`,key:`1rbg29`}],[`path`,{d:`M15 18h6`,key:`3b3c90`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}]]),qh=U(`house-wifi`,[[`path`,{d:`M9.5 13.866a4 4 0 0 1 5 .01`,key:`1wy54i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}],[`path`,{d:`M7 10.754a8 8 0 0 1 10 0`,key:`exoy2g`}]]),Jh=U(`ice-cream-bowl`,[[`path`,{d:`M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6m-4 4h8m-4-3v3M5.14 11a3.5 3.5 0 1 1 6.71 0`,key:`1uxfcu`}],[`path`,{d:`M12.14 11a3.5 3.5 0 1 1 6.71 0`,key:`4k3m1s`}],[`path`,{d:`M15.5 6.5a3.5 3.5 0 1 0-7 0`,key:`zmuahr`}]]),Yh=U(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Xh=U(`ice-cream-cone`,[[`path`,{d:`m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11`,key:`1v6356`}],[`path`,{d:`M17 7A5 5 0 0 0 7 7`,key:`151p3v`}],[`path`,{d:`M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4`,key:`1sdaij`}]]),Zh=U(`id-card-lanyard`,[[`path`,{d:`M13.5 8h-3`,key:`xvov4w`}],[`path`,{d:`m15 2-1 2h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h3`,key:`16uttc`}],[`path`,{d:`M16.899 22A5 5 0 0 0 7.1 22`,key:`1d0ppr`}],[`path`,{d:`m9 2 3 6`,key:`1o7bd9`}],[`circle`,{cx:`12`,cy:`15`,r:`3`,key:`g36mzq`}]]),Qh=U(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),$h=U(`image-minus`,[[`path`,{d:`M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7`,key:`m87ecr`}],[`line`,{x1:`16`,x2:`22`,y1:`5`,y2:`5`,key:`ez7e4s`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),eg=U(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),tg=U(`image-down`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19 3 3v-5.5`,key:`9ldu5r`}],[`path`,{d:`m17 22 3-3`,key:`1nkfve`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ng=U(`image-play`,[[`path`,{d:`M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`nrt1m3`}],[`path`,{d:`M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`99hgts`}],[`path`,{d:`m6 21 5-5`,key:`1wyjai`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),rg=U(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ig=U(`image-up`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19.5 3-3 3 3`,key:`9vmjn0`}],[`path`,{d:`M17 22v-5.5`,key:`1aa6fl`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ag=U(`image-upscale`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M17 21h2a2 2 0 0 0 2-2`,key:`130fy9`}],[`path`,{d:`M21 12v3`,key:`1wzk3p`}],[`path`,{d:`m21 3-5 5`,key:`1g5oa7`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2`,key:`kk3yz1`}],[`path`,{d:`m5 21 4.144-4.144a1.21 1.21 0 0 1 1.712 0L13 19`,key:`fyekpt`}],[`path`,{d:`M9 3h3`,key:`d52fa`}],[`rect`,{x:`3`,y:`11`,width:`10`,height:`10`,rx:`1`,key:`1wpmix`}]]),og=U(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),sg=U(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),cg=U(`import`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m8 11 4 4 4-4`,key:`1dohi6`}],[`path`,{d:`M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4`,key:`1ywtjm`}]]),lg=U(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),ug=U(`indian-rupee`,[[`path`,{d:`M6 3h12`,key:`ggurg9`}],[`path`,{d:`M6 8h12`,key:`6g4wlu`}],[`path`,{d:`m6 13 8.5 8`,key:`u1kupk`}],[`path`,{d:`M6 13h3`,key:`wdp6ag`}],[`path`,{d:`M9 13c6.667 0 6.667-10 0-10`,key:`1nkvk2`}]]),dg=U(`infinity`,[[`path`,{d:`M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8`,key:`18ogeb`}]]),fg=U(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),pg=U(`inspection-panel`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7h.01`,key:`7u93v4`}],[`path`,{d:`M17 7h.01`,key:`14a9sn`}],[`path`,{d:`M7 17h.01`,key:`19xn7k`}],[`path`,{d:`M17 17h.01`,key:`1sd3ek`}]]),mg=U(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),hg=U(`iteration-ccw`,[[`path`,{d:`m16 14 4 4-4 4`,key:`hkso8o`}],[`path`,{d:`M20 10a8 8 0 1 0-8 8h8`,key:`1bik7b`}]]),gg=U(`iteration-cw`,[[`path`,{d:`M4 10a8 8 0 1 1 8 8H4`,key:`svv66n`}],[`path`,{d:`m8 22-4-4 4-4`,key:`6g7gki`}]]),_g=U(`japanese-yen`,[[`path`,{d:`M12 9.5V21m0-11.5L6 3m6 6.5L18 3`,key:`2ej80x`}],[`path`,{d:`M6 15h12`,key:`1hwgt5`}],[`path`,{d:`M6 11h12`,key:`wf4gp6`}]]),vg=U(`joystick`,[[`path`,{d:`M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z`,key:`jg2n2t`}],[`path`,{d:`M6 15v-2`,key:`gd6mvg`}],[`path`,{d:`M12 15V9`,key:`8c7uyn`}],[`circle`,{cx:`12`,cy:`6`,r:`3`,key:`1gm2ql`}]]),yg=U(`kanban`,[[`path`,{d:`M5 3v14`,key:`9nsxs2`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`M19 3v18`,key:`1sk56x`}]]),bg=U(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),xg=U(`key-square`,[[`path`,{d:`M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z`,key:`165ttr`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814`,key:`1ubxi2`}]]),Sg=U(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Cg=U(`keyboard-music`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h4`,key:`utf9t1`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M6 12v4`,key:`dy92yo`}],[`path`,{d:`M10 12v4`,key:`1fxnav`}],[`path`,{d:`M14 12v4`,key:`1hft58`}],[`path`,{d:`M18 12v4`,key:`tjjnbz`}]]),wg=U(`kayak`,[[`path`,{d:`M18 17a1 1 0 0 0-1 1v1a2 2 0 1 0 2-2z`,key:`skzb1g`}],[`path`,{d:`M20.97 3.61a.45.45 0 0 0-.58-.58C10.2 6.6 6.6 10.2 3.03 20.39a.45.45 0 0 0 .58.58C13.8 17.4 17.4 13.8 20.97 3.61`,key:`cv9jm7`}],[`path`,{d:`m6.707 6.707 10.586 10.586`,key:`d2l993`}],[`path`,{d:`M7 5a2 2 0 1 0-2 2h1a1 1 0 0 0 1-1z`,key:`i0et4n`}]]),Tg=U(`keyboard-off`,[[`path`,{d:`M 20 4 A2 2 0 0 1 22 6`,key:`1g1fkt`}],[`path`,{d:`M 22 6 L 22 16.41`,key:`1qjg3w`}],[`path`,{d:`M 7 16 L 16 16`,key:`n0yqwb`}],[`path`,{d:`M 9.69 4 L 20 4`,key:`kbpcgx`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2`,key:`s23sx2`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),Eg=U(`lamp-ceiling`,[[`path`,{d:`M12 2v5`,key:`nd4vlx`}],[`path`,{d:`M14.829 15.998a3 3 0 1 1-5.658 0`,key:`1pybiy`}],[`path`,{d:`M20.92 14.606A1 1 0 0 1 20 16H4a1 1 0 0 1-.92-1.394l3-7A1 1 0 0 1 7 7h10a1 1 0 0 1 .92.606z`,key:`ma1wor`}]]),Dg=U(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),Og=U(`lamp-desk`,[[`path`,{d:`M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5 5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994-2.5-2.5a1 1 0 0 1 0-1.414z`,key:`sb8slu`}],[`path`,{d:`m14.207 4.793-3.414 3.414`,key:`m2x3oj`}],[`path`,{d:`M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z`,key:`8b3myj`}],[`path`,{d:`m9.086 6.5-4.793 4.793a1 1 0 0 0-.18 1.17L7 18`,key:`43s6cu`}]]),kg=U(`lamp-wall-down`,[[`path`,{d:`M19.929 18.629A1 1 0 0 1 19 20H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 13h6a1 1 0 0 1 .928.629z`,key:`u4w2d7`}],[`path`,{d:`M6 3a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,key:`15356w`}],[`path`,{d:`M8 6h4a2 2 0 0 1 2 2v5`,key:`1m6m7x`}]]),Ag=U(`lamp-floor`,[[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M17.929 7.629A1 1 0 0 1 17 9H7a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 9 2h6a1 1 0 0 1 .928.629z`,key:`1o95gh`}],[`path`,{d:`M9 22h6`,key:`1rlq3v`}]]),jg=U(`lamp-wall-up`,[[`path`,{d:`M19.929 9.629A1 1 0 0 1 19 11H9a1 1 0 0 1-.928-1.371l2-5A1 1 0 0 1 11 4h6a1 1 0 0 1 .928.629z`,key:`1uvrbf`}],[`path`,{d:`M6 15a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z`,key:`154r2a`}],[`path`,{d:`M8 18h4a2 2 0 0 0 2-2v-5`,key:`z9mbu0`}]]),Mg=U(`lamp`,[[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M4.077 10.615A1 1 0 0 0 5 12h14a1 1 0 0 0 .923-1.385l-3.077-7.384A2 2 0 0 0 15 2H9a2 2 0 0 0-1.846 1.23Z`,key:`1l7kg2`}],[`path`,{d:`M8 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z`,key:`1mmzpi`}]]),Ng=U(`land-plot`,[[`path`,{d:`m12 8 6-3-6-3v10`,key:`mvpnpy`}],[`path`,{d:`m8 11.99-5.5 3.14a1 1 0 0 0 0 1.74l8.5 4.86a2 2 0 0 0 2 0l8.5-4.86a1 1 0 0 0 0-1.74L16 12`,key:`ek95tt`}],[`path`,{d:`m6.49 12.85 11.02 6.3`,key:`1kt42w`}],[`path`,{d:`M17.51 12.85 6.5 19.15`,key:`v55bdg`}]]),Pg=U(`landmark`,[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]),Fg=U(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),Ig=U(`laptop-minimal-check`,[[`path`,{d:`M2 20h20`,key:`owomy5`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}],[`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`2`,key:`8ur36m`}]]),Lg=U(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),Rg=U(`laptop-minimal`,[[`rect`,{width:`18`,height:`12`,x:`3`,y:`4`,rx:`2`,ry:`2`,key:`1qhy41`}],[`line`,{x1:`2`,x2:`22`,y1:`20`,y2:`20`,key:`ni3hll`}]]),zg=U(`lasso-select`,[[`path`,{d:`M7 22a5 5 0 0 1-2-4`,key:`umushi`}],[`path`,{d:`M7 16.93c.96.43 1.96.74 2.99.91`,key:`ybbtv3`}],[`path`,{d:`M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2`,key:`gt5e1w`}],[`path`,{d:`M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z`,key:`bq3ynw`}],[`path`,{d:`M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z`,key:`72q637`}]]),Bg=U(`lasso`,[[`path`,{d:`M3.704 14.467a10 8 0 1 1 3.115 2.375`,key:`wxgc5m`}],[`path`,{d:`M7 22a5 5 0 0 1-2-3.994`,key:`1xp6a4`}],[`circle`,{cx:`5`,cy:`16`,r:`2`,key:`18csp3`}]]),Vg=U(`laugh`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z`,key:`b2q4dd`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Hg=U(`layers-2`,[[`path`,{d:`M13 13.74a2 2 0 0 1-2 0L2.5 8.87a1 1 0 0 1 0-1.74L11 2.26a2 2 0 0 1 2 0l8.5 4.87a1 1 0 0 1 0 1.74z`,key:`15q6uc`}],[`path`,{d:`m20 14.285 1.5.845a1 1 0 0 1 0 1.74L13 21.74a2 2 0 0 1-2 0l-8.5-4.87a1 1 0 0 1 0-1.74l1.5-.845`,key:`byia6g`}]]),Ug=U(`layers-plus`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l8.58-3.9a1 1 0 0 0 0-1.831z`,key:`zzgyd3`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M19 14v6`,key:`1ckrd5`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 .825.178`,key:`1ia9y3`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l2.116-.962`,key:`jksky3`}]]),Wg=U(`layers-minus`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l8.58-3.9a1 1 0 0 0 0-1.832z`,key:`tq134k`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M2.003 11.995a1 1 0 0 0 .597.915l8.58 3.91a2 2 0 0 0 .83.18`,key:`8mjqed`}],[`path`,{d:`M2.003 16.995a1 1 0 0 0 .597.915l8.58 3.91a2 2 0 0 0 .83.18 2 2 0 0 0 .83-.18l2.11-.96`,key:`7vwz41`}],[`path`,{d:`M22.018 12.004a1 1 0 0 1-.598.916l-.177.08`,key:`bm5b9y`}]]),Gg=U(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Kg=U(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),qg=U(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Jg=U(`layout-panel-left`,[[`rect`,{width:`7`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`2obqm`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}]]),Yg=U(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),Xg=U(`layout-panel-top`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}]]),Zg=U(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),Qg=U(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),$g=U(`leafy-green`,[[`path`,{d:`M2 22c1.25-.987 2.27-1.975 3.9-2.2a5.56 5.56 0 0 1 3.8 1.5 4 4 0 0 0 6.187-2.353 3.5 3.5 0 0 0 3.69-5.116A3.5 3.5 0 0 0 20.95 8 3.5 3.5 0 1 0 16 3.05a3.5 3.5 0 0 0-5.831 1.373 3.5 3.5 0 0 0-5.116 3.69 4 4 0 0 0-2.348 6.155C3.499 15.42 4.409 16.712 4.2 18.1 3.926 19.743 3.014 20.732 2 22`,key:`1134nt`}],[`path`,{d:`M2 22 17 7`,key:`1q7jp2`}]]),e_=U(`lectern`,[[`path`,{d:`M16 12h3a2 2 0 0 0 1.902-1.38l1.056-3.333A1 1 0 0 0 21 6H3a1 1 0 0 0-.958 1.287l1.056 3.334A2 2 0 0 0 5 12h3`,key:`13jjxg`}],[`path`,{d:`M18 6V3a1 1 0 0 0-1-1h-3`,key:`1550fe`}],[`rect`,{width:`8`,height:`12`,x:`8`,y:`10`,rx:`1`,key:`qmu8b6`}]]),t_=U(`lens-concave`,[[`path`,{d:`M7 2a1 1 0 0 0-.8 1.6 14 14 0 0 1 0 16.8A1 1 0 0 0 7 22h10a1 1 0 0 0 .8-1.6 14 14 0 0 1 0-16.8A1 1 0 0 0 17 2z`,key:`109j23`}]]),n_=U(`lens-convex`,[[`path`,{d:`M13.433 2a1 1 0 0 1 .824.448 18 18 0 0 1 0 19.104 1 1 0 0 1-.824.448h-2.866a1 1 0 0 1-.824-.448 18 18 0 0 1 0-19.104A1 1 0 0 1 10.567 2z`,key:`cq67go`}]]),r_=U(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),i_=U(`life-buoy`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),a_=U(`library-big`,[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]]),o_=U(`ligature`,[[`path`,{d:`M14 12h2v8`,key:`c1fccl`}],[`path`,{d:`M14 20h4`,key:`lzx1xo`}],[`path`,{d:`M6 12h4`,key:`a4o3ry`}],[`path`,{d:`M6 20h4`,key:`1i6q5t`}],[`path`,{d:`M8 20V8a4 4 0 0 1 7.464-2`,key:`wk9t6r`}]]),s_=U(`lightbulb-off`,[[`path`,{d:`M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5`,key:`1fkcox`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5`,key:`10m8kw`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),c_=U(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),l_=U(`line-squiggle`,[[`path`,{d:`M7 3.5c5-2 7 2.5 3 4C1.5 10 2 15 5 16c5 2 9-10 14-7s.5 13.5-4 12c-5-2.5.5-11 6-2`,key:`1lrphd`}]]),u_=U(`line-dot-right-horizontal`,[[`path`,{d:`M 3 12 L 15 12`,key:`ymhu98`}],[`circle`,{cx:`18`,cy:`12`,r:`3`,key:`1kchzo`}]]),d_=U(`line-style`,[[`path`,{d:`M11 5h2`,key:`1s6z07`}],[`path`,{d:`M15 12h6`,key:`upa0zy`}],[`path`,{d:`M19 5h2`,key:`fjylsg`}],[`path`,{d:`M3 12h6`,key:`ra68u1`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`M3 5h2`,key:`1qgu90`}]]),f_=U(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),p_=U(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),m_=U(`list-check`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M11 19H3`,key:`zflm78`}],[`path`,{d:`m15 18 2 2 4-4`,key:`1szwhi`}]]),h_=U(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),g_=U(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),__=U(`list-chevrons-up-down`,[[`path`,{d:`M3 5h8`,key:`18g2rq`}],[`path`,{d:`M3 12h8`,key:`1xfjp6`}],[`path`,{d:`M3 19h8`,key:`fpbke4`}],[`path`,{d:`m15 8 3-3 3 3`,key:`bc4io6`}],[`path`,{d:`m15 16 3 3 3-3`,key:`9wmg1l`}]]),v_=U(`list-chevrons-down-up`,[[`path`,{d:`M3 5h8`,key:`18g2rq`}],[`path`,{d:`M3 12h8`,key:`1xfjp6`}],[`path`,{d:`M3 19h8`,key:`fpbke4`}],[`path`,{d:`m15 5 3 3 3-3`,key:`1t4thf`}],[`path`,{d:`m15 19 3-3 3 3`,key:`y4ckd2`}]]),y_=U(`list-collapse`,[[`path`,{d:`M10 5h11`,key:`1hkqpe`}],[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`M10 19h11`,key:`14g2nv`}],[`path`,{d:`m3 10 3-3-3-3`,key:`i7pm08`}],[`path`,{d:`m3 20 3-3-3-3`,key:`20gx1n`}]]),b_=U(`list-end`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M9 19H3`,key:`s61nz1`}],[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M21 5v12a2 2 0 0 1-2 2h-6`,key:`hey24a`}]]),x_=U(`list-filter-plus`,[[`path`,{d:`M12 5H2`,key:`1o22fu`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}],[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 8V2`,key:`1wcffq`}]]),S_=U(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),C_=U(`list-indent-decrease`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m7 8-4 4 4 4`,key:`o5hrat`}]]),w_=U(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),T_=U(`list-minus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),E_=U(`list-music`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M11 19H3`,key:`zflm78`}],[`path`,{d:`M21 16V5`,key:`yxg4q8`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),D_=U(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),O_=U(`list-plus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),k_=U(`list-restart`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M7 12H3`,key:`13ou7f`}],[`path`,{d:`M7 19H3`,key:`wbqt3n`}],[`path`,{d:`M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14`,key:`qth677`}],[`path`,{d:`M11 10v4h4`,key:`172dkj`}]]),A_=U(`list-start`,[[`path`,{d:`M3 5h6`,key:`1ltk0q`}],[`path`,{d:`M3 12h13`,key:`ppymz1`}],[`path`,{d:`M3 19h13`,key:`bpdczq`}],[`path`,{d:`m16 8-3-3 3-3`,key:`1pjpp6`}],[`path`,{d:`M21 19V7a2 2 0 0 0-2-2h-6`,key:`4zzq67`}]]),j_=U(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),M_=U(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),N_=U(`list-video`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`path`,{d:`M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`ms4nik`}]]),P_=U(`list-x`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`m15.5 9.5 5 5`,key:`ytk86i`}],[`path`,{d:`m20.5 9.5-5 5`,key:`17o44f`}]]),F_=U(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),I_=U(`loader-pinwheel`,[[`path`,{d:`M22 12a1 1 0 0 1-10 0 1 1 0 0 0-10 0`,key:`1lzz15`}],[`path`,{d:`M7 20.7a1 1 0 1 1 5-8.7 1 1 0 1 0 5-8.6`,key:`1gnrpi`}],[`path`,{d:`M7 3.3a1 1 0 1 1 5 8.6 1 1 0 1 0 5 8.6`,key:`u9yy5q`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),L_=U(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),R_=U(`locate-fixed`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),z_=U(`locate-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M18.89 13.24a7 7 0 0 0-8.13-8.13`,key:`1v9jrh`}],[`path`,{d:`M19 12h3`,key:`osuazr`}],[`path`,{d:`M2 12h3`,key:`1wrr53`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.05 7.05a7 7 0 0 0 9.9 9.9`,key:`rc5l2e`}]]),B_=U(`lock-keyhole-open`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{width:`18`,height:`12`,x:`3`,y:`10`,rx:`2`,key:`l0tzu3`}],[`path`,{d:`M7 10V7a5 5 0 0 1 9.33-2.5`,key:`car5b7`}]]),V_=U(`locate`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}]]),H_=U(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),dte=U(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),fte=U(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),U_=U(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),pte=U(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),mte=U(`logs`,[[`path`,{d:`M3 5h1`,key:`1mv5vm`}],[`path`,{d:`M3 12h1`,key:`lp3yf2`}],[`path`,{d:`M3 19h1`,key:`w6f3n9`}],[`path`,{d:`M8 5h1`,key:`1nxr5w`}],[`path`,{d:`M8 12h1`,key:`1con00`}],[`path`,{d:`M8 19h1`,key:`k7p10e`}],[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}]]),hte=U(`lollipop`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M11 11a2 2 0 0 0 4 0 4 4 0 0 0-8 0 6 6 0 0 0 12 0`,key:`107gwy`}]]),gte=U(`luggage`,[[`path`,{d:`M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2`,key:`1m57jg`}],[`path`,{d:`M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14`,key:`1l99gc`}],[`path`,{d:`M10 20h4`,key:`ni2waw`}],[`circle`,{cx:`16`,cy:`20`,r:`2`,key:`1vifvg`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),_te=U(`magnet`,[[`path`,{d:`m12 15 4 4`,key:`lnac28`}],[`path`,{d:`M2.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.029-6.029a1 1 0 1 1 3 3l-6.029 6.029a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l6.365-6.367A1 1 0 0 0 8.716 4.282z`,key:`nlhkjb`}],[`path`,{d:`m5 8 4 4`,key:`j6kj7e`}]]),vte=U(`mail-check`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`12jkf8`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),yte=U(`mail-minus`,[[`path`,{d:`M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`fuxbkv`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}]]),bte=U(`mail-open`,[[`path`,{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`,key:`1jhwl8`}],[`path`,{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`,key:`1qfld7`}]]),xte=U(`mail-plus`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8`,key:`12jkf8`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M16 19h6`,key:`xwg31i`}]]),Ste=U(`mail-question-mark`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2`,key:`7z9rxb`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),Cte=U(`mail-search`,[[`path`,{d:`M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5`,key:`w80f2v`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z`,key:`8lzu5m`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`path`,{d:`m22 22-1.5-1.5`,key:`1x83k4`}]]),wte=U(`mail-warning`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),Tte=U(`mail-x`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9`,key:`1j9vog`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`m17 17 4 4`,key:`1b3523`}],[`path`,{d:`m21 17-4 4`,key:`uinynz`}]]),W_=U(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Ete=U(`mailbox`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z`,key:`1lbycx`}],[`polyline`,{points:`15,9 18,9 18,11`,key:`1pm9c0`}],[`path`,{d:`M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2`,key:`15i455`}],[`line`,{x1:`6`,x2:`7`,y1:`10`,y2:`10`,key:`1e2scm`}]]),Dte=U(`map-minus`,[[`path`,{d:`m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14`,key:`40pylx`}],[`path`,{d:`M15 5.764V14`,key:`1bab71`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),Ote=U(`mails`,[[`path`,{d:`M17 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 1-1.732`,key:`1vyzll`}],[`path`,{d:`m22 5.5-6.419 4.179a2 2 0 0 1-2.162 0L7 5.5`,key:`k7ramc`}],[`rect`,{x:`7`,y:`3`,width:`15`,height:`12`,rx:`2`,key:`17196g`}]]),kte=U(`map-pin-check-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}]]),Ate=U(`map-pin-check`,[[`path`,{d:`M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728`,key:`1dq61d`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`m16 18 2 2 4-4`,key:`1mkfmb`}]]),jte=U(`map-pin-house`,[[`path`,{d:`M15 22a1 1 0 0 1-1-1v-4a1 1 0 0 1 .445-.832l3-2a1 1 0 0 1 1.11 0l3 2A1 1 0 0 1 22 17v4a1 1 0 0 1-1 1z`,key:`1p1rcz`}],[`path`,{d:`M18 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 .601.2`,key:`mcbcs9`}],[`path`,{d:`M18 22v-3`,key:`1t1ugv`}],[`circle`,{cx:`10`,cy:`10`,r:`3`,key:`1ns7v1`}]]),Mte=U(`map-pin-minus-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),Nte=U(`map-pin-minus`,[[`path`,{d:`M18.977 14C19.6 12.701 20 11.343 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738`,key:`11uxia`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M16 18h6`,key:`987eiv`}]]),Pte=U(`map-pin-off`,[[`path`,{d:`M12.75 7.09a3 3 0 0 1 2.16 2.16`,key:`1d4wjd`}],[`path`,{d:`M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 1.432-4.568`,key:`12yil7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533`,key:`lhrkcz`}],[`path`,{d:`M9.13 9.13a3 3 0 0 0 3.74 3.74`,key:`13wojd`}]]),Fte=U(`map-pin-pen`,[[`path`,{d:`M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468`,key:`1fahp3`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`10`,r:`3`,key:`1ns7v1`}]]),Ite=U(`map-pin-plus-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),Lte=U(`map-pin-plus`,[[`path`,{d:`M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738`,key:`fcdtly`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M16 18h6`,key:`987eiv`}],[`path`,{d:`M19 15v6`,key:`10aioa`}]]),Rte=U(`map-pin-search`,[[`path`,{d:`M 12.248 21.969 a 1 1 0 0 1 -0.849 -0.17 C 9.539 20.193 4 14.993 4 10 a 8 8 0 0 1 16 0 C 20 10.42 19.961 10.841 19.888 11.262`,key:`1jho5b`}],[`path`,{d:`m22 22-1.88-1.88`,key:`1bgjp0`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),zte=U(`map-pin-x`,[[`path`,{d:`M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077`,key:`y0ewhp`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`m21.5 15.5-5 5`,key:`11iqnx`}],[`path`,{d:`m21.5 20.5-5-5`,key:`1bylgx`}]]),Bte=U(`map-pin-x-inside`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`path`,{d:`m14.5 7.5-5 5`,key:`3lb6iw`}],[`path`,{d:`m9.5 7.5 5 5`,key:`ko136h`}]]),G_=U(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),Vte=U(`map-pinned`,[[`path`,{d:`M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0`,key:`11u0oz`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712`,key:`q8zwxj`}]]),Hte=U(`map-plus`,[[`path`,{d:`m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V12`,key:`svfegj`}],[`path`,{d:`M15 5.764V12`,key:`1ocw4k`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),Ute=U(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),Wte=U(`mars-stroke`,[[`path`,{d:`m14 6 4 4`,key:`1q72g9`}],[`path`,{d:`M17 3h4v4`,key:`19p9u1`}],[`path`,{d:`m21 3-7.75 7.75`,key:`1cjbfd`}],[`circle`,{cx:`9`,cy:`15`,r:`6`,key:`bx5svt`}]]),Gte=U(`mars`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`m21 3-6.75 6.75`,key:`pv0uzu`}],[`circle`,{cx:`10`,cy:`14`,r:`6`,key:`1qwbdc`}]]),Kte=U(`martini`,[[`path`,{d:`M12 12 4.207 4.207A.707.707 0 0 1 4.707 3h14.586a.707.707 0 0 1 .5 1.207z`,key:`vxdekd`}],[`path`,{d:`M12 12v10`,key:`1nesaz`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}]]),qte=U(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]),Jte=U(`medal`,[[`path`,{d:`M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15`,key:`143lza`}],[`path`,{d:`M11 12 5.12 2.2`,key:`qhuxz6`}],[`path`,{d:`m13 12 5.88-9.8`,key:`hbye0f`}],[`path`,{d:`M8 7h8`,key:`i86dvs`}],[`circle`,{cx:`12`,cy:`17`,r:`5`,key:`qbz8iq`}],[`path`,{d:`M12 18v-2h-.5`,key:`fawc4q`}]]),Yte=U(`megaphone-off`,[[`path`,{d:`M11.636 6A13 13 0 0 0 19.4 3.2 1 1 0 0 1 21 4v11.344`,key:`bycexp`}],[`path`,{d:`M14.378 14.357A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h1`,key:`1t17s6`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 8v6`,key:`aieo6v`}]]),Xte=U(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),Zte=U(`meh`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`8`,x2:`16`,y1:`15`,y2:`15`,key:`1xb1d9`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Qte=U(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]),K_=U(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),$te=U(`merge`,[[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22`,key:`1hyw0i`}],[`path`,{d:`m20 22-5-5`,key:`1m27yz`}]]),ene=U(`message-circle-check`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),tne=U(`message-circle-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),nne=U(`message-circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.72a10 10 0 0 1 2.69 2.7`,key:`jiglxs`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.28 17.61a10 10 0 0 1-2.7 2.69`,key:`elg7ff`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`m6.163 21.117-2.906.85a1 1 0 0 1-1.236-1.169l.965-2.98`,key:`1qsu07`}]]),rne=U(`message-circle-heart`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z`,key:`hoo97p`}]]),ine=U(`message-circle-more`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}]]),ane=U(`message-circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4.93 4.929a10 10 0 0 0-1.938 11.412 2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 0 0 11.302-1.989`,key:`7il5tn`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}]]),one=U(`message-circle-plus`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),sne=U(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),cne=U(`message-circle-reply`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}],[`path`,{d:`M7 12h8a2 2 0 0 1 2 2v1`,key:`89sh1g`}]]),lne=U(`message-circle-warning`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),une=U(`message-circle-x`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),q_=U(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),dne=U(`message-square-check`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.7.7 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`m0kn7k`}],[`path`,{d:`m9 11 2 2 4-4`,key:`kz4plv`}]]),J_=U(`message-square-code`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m10 8-3 3 3 3`,key:`fp6dz7`}],[`path`,{d:`m14 14 3-3-3-3`,key:`1yrceu`}]]),fne=U(`message-square-dashed`,[[`path`,{d:`M14 3h2`,key:`1d12a5`}],[`path`,{d:`M16 19h-2`,key:`1agirb`}],[`path`,{d:`M2 12v-2`,key:`1ey295`}],[`path`,{d:`M2 16v5.286a.71.71 0 0 0 1.212.502l1.149-1.149`,key:`120k8q`}],[`path`,{d:`M20 19a2 2 0 0 0 2-2v-1`,key:`ior8tn`}],[`path`,{d:`M22 10v2`,key:`rmlecy`}],[`path`,{d:`M22 6V5a2 2 0 0 0-2-2`,key:`sp3k6r`}],[`path`,{d:`M4 3a2 2 0 0 0-2 2v1`,key:`11zt7s`}],[`path`,{d:`M8 19h2`,key:`jnunrx`}],[`path`,{d:`M8 3h2`,key:`ysbsee`}]]),pne=U(`message-square-diff`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M10 15h4`,key:`192ueg`}],[`path`,{d:`M10 9h4`,key:`u4k05v`}],[`path`,{d:`M12 7v4`,key:`xawao1`}]]),mne=U(`message-square-dot`,[[`path`,{d:`M12.7 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4.7`,key:`wjb7ig`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}]]),hne=U(`message-square-heart`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7.5 9.5c0 .687.265 1.383.697 1.844l3.009 3.264a1.14 1.14 0 0 0 .407.314 1 1 0 0 0 .783-.004 1.14 1.14 0 0 0 .398-.31l3.008-3.264A2.77 2.77 0 0 0 16.5 9.5 2.5 2.5 0 0 0 12 8a2.5 2.5 0 0 0-4.5 1.5`,key:`1faxuh`}]]),gne=U(`message-square-lock`,[[`path`,{d:`M22 8.5V5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H10`,key:`fu6chl`}],[`path`,{d:`M20 15v-2a2 2 0 0 0-4 0v2`,key:`vl8a78`}],[`rect`,{x:`14`,y:`15`,width:`8`,height:`5`,rx:`1`,key:`37aafw`}]]),_ne=U(`message-square-more`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 11h.01`,key:`z322tv`}],[`path`,{d:`M16 11h.01`,key:`xkw8gn`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}]]),Y_=U(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),vne=U(`message-square-quote`,[[`path`,{d:`M14 14a2 2 0 0 0 2-2V8h-2`,key:`1r06pg`}],[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M8 14a2 2 0 0 0 2-2V8H8`,key:`1jzu5j`}]]),yne=U(`message-square-off`,[[`path`,{d:`M19 19H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.7.7 0 0 1 2 21.286V5a2 2 0 0 1 1.184-1.826`,key:`1wyg69`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v11.344`,key:`mhl4k6`}]]),bne=U(`message-square-reply`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m10 8-3 3 3 3`,key:`fp6dz7`}],[`path`,{d:`M17 14v-1a2 2 0 0 0-2-2H7`,key:`1tkjnz`}]]),X_=U(`message-square-share`,[[`path`,{d:`M12 3H4a2 2 0 0 0-2 2v16.286a.71.71 0 0 0 1.212.502l2.202-2.202A2 2 0 0 1 6.828 19H20a2 2 0 0 0 2-2v-4`,key:`11da1y`}],[`path`,{d:`M16 3h6v6`,key:`1bx56c`}],[`path`,{d:`m16 9 6-6`,key:`m4dnic`}]]),Z_=U(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),Q_=U(`message-square-warning`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 15h.01`,key:`q59x07`}],[`path`,{d:`M12 7v4`,key:`xawao1`}]]),xne=U(`message-square-x`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`m14.5 8.5-5 5`,key:`19tnj2`}],[`path`,{d:`m9.5 8.5 5 5`,key:`1oa8ql`}]]),$_=U(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),ev=U(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),Sne=U(`metronome`,[[`path`,{d:`M12 11.4V9.1`,key:`audfby`}],[`path`,{d:`m12 17 6.59-6.59`,key:`c0sb7j`}],[`path`,{d:`m15.05 5.7-.218-.691a3 3 0 0 0-5.663 0L4.418 19.695A1 1 0 0 0 5.37 21h13.253a1 1 0 0 0 .951-1.31L18.45 16.2`,key:`1pkfrk`}],[`circle`,{cx:`20`,cy:`9`,r:`2`,key:`1udoqf`}]]),tv=U(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]),Cne=U(`mic-vocal`,[[`path`,{d:`m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12`,key:`80a601`}],[`path`,{d:`M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5`,key:`j0ngtp`}],[`circle`,{cx:`16`,cy:`7`,r:`5`,key:`d08jfb`}]]),nv=U(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),wne=U(`microchip`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 17h4`,key:`pvmtpo`}],[`path`,{d:`M10 7h4`,key:`1vgcok`}],[`path`,{d:`M18 12h2`,key:`quuxs7`}],[`path`,{d:`M18 18h2`,key:`4scel`}],[`path`,{d:`M18 6h2`,key:`1ptzki`}],[`path`,{d:`M4 12h2`,key:`1ltxp0`}],[`path`,{d:`M4 18h2`,key:`1xrofg`}],[`path`,{d:`M4 6h2`,key:`1cx33n`}],[`rect`,{x:`6`,y:`2`,width:`12`,height:`20`,rx:`2`,key:`749fme`}]]),Tne=U(`microscope`,[[`path`,{d:`M6 18h8`,key:`1borvv`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M14 22a7 7 0 1 0 0-14h-1`,key:`1jwaiy`}],[`path`,{d:`M9 14h2`,key:`197e7h`}],[`path`,{d:`M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z`,key:`1bmzmy`}],[`path`,{d:`M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`1drr47`}]]),Ene=U(`milestone`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M12 3v3`,key:`1n5kay`}],[`path`,{d:`M18.172 6a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z`,key:`8gz4t4`}]]),Dne=U(`microwave`,[[`rect`,{width:`20`,height:`15`,x:`2`,y:`4`,rx:`2`,key:`2no95f`}],[`rect`,{width:`8`,height:`7`,x:`6`,y:`8`,rx:`1`,key:`zh9wx`}],[`path`,{d:`M18 8v7`,key:`o5zi4n`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`path`,{d:`M18 19v2`,key:`1dawf0`}]]),One=U(`milk-off`,[[`path`,{d:`M8 2h8`,key:`1ssgc1`}],[`path`,{d:`M9 2v1.343M15 2v2.789a4 4 0 0 0 .672 2.219l.656.984a4 4 0 0 1 .672 2.22v1.131M7.8 7.8l-.128.192A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-3`,key:`y0ejgx`}],[`path`,{d:`M7 15a6.47 6.47 0 0 1 5 0 6.472 6.472 0 0 0 3.435.435`,key:`iaxqsy`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),kne=U(`milk`,[[`path`,{d:`M8 2h8`,key:`1ssgc1`}],[`path`,{d:`M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2`,key:`qtp12x`}],[`path`,{d:`M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0`,key:`ygeh44`}]]),rv=U(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ane=U(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),jne=U(`mirror-rectangular`,[[`path`,{d:`M11 6 8 9`,key:`7zt14w`}],[`path`,{d:`m16 7-8 8`,key:`tkgtvu`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Mne=U(`mirror-round`,[[`path`,{d:`M10 6.6 8.6 8`,key:`itrr7k`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`M15 7.5 9.5 13`,key:`1vyrsv`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}],[`circle`,{cx:`12`,cy:`10`,r:`8`,key:`1gshiw`}]]),Nne=U(`monitor-cloud`,[[`path`,{d:`M11 13a3 3 0 1 1 2.83-4H14a2 2 0 0 1 0 4z`,key:`1da4q6`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),Pne=U(`monitor-check`,[[`path`,{d:`m9 10 2 2 4-4`,key:`1gnqz4`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Fne=U(`monitor-cog`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m14.305 7.53.923-.382`,key:`1mlnsw`}],[`path`,{d:`m15.228 4.852-.923-.383`,key:`82mpwg`}],[`path`,{d:`m16.852 3.228-.383-.924`,key:`ln4sir`}],[`path`,{d:`m16.852 8.772-.383.923`,key:`1dejw0`}],[`path`,{d:`m19.148 3.228.383-.924`,key:`192kgf`}],[`path`,{d:`m19.53 9.696-.382-.924`,key:`fiavlr`}],[`path`,{d:`m20.772 4.852.924-.383`,key:`1j8mgp`}],[`path`,{d:`m20.772 7.148.924.383`,key:`zix9be`}],[`path`,{d:`M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7`,key:`1tnzv8`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}]]),Ine=U(`monitor-dot`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M22 12.307V15a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8.693`,key:`1dx6ho`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`circle`,{cx:`19`,cy:`6`,r:`3`,key:`108a5v`}]]),Lne=U(`monitor-down`,[[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`m15 10-3 3-3-3`,key:`lzhmyn`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Rne=U(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]),zne=U(`monitor-pause`,[[`path`,{d:`M10 13V7`,key:`1u13u9`}],[`path`,{d:`M14 13V7`,key:`1vj9om`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),iv=U(`monitor-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),Bne=U(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]),Vne=U(`monitor-stop`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}],[`rect`,{x:`9`,y:`7`,width:`6`,height:`6`,rx:`1`,key:`5m2oou`}]]),Hne=U(`monitor-speaker`,[[`path`,{d:`M5.5 20H8`,key:`1k40s5`}],[`path`,{d:`M17 9h.01`,key:`1j24nn`}],[`rect`,{width:`10`,height:`16`,x:`12`,y:`4`,rx:`2`,key:`ixliua`}],[`path`,{d:`M8 6H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h4`,key:`1mp6e1`}],[`circle`,{cx:`17`,cy:`15`,r:`1`,key:`tqvash`}]]),av=U(`monitor-up`,[[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Une=U(`monitor-x`,[[`path`,{d:`m14.5 12.5-5-5`,key:`1jahn5`}],[`path`,{d:`m9.5 12.5 5-5`,key:`1k2t7b`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}]]),Wne=U(`moon-star`,[[`path`,{d:`M18 5h4`,key:`1lhgn2`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ov=U(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Gne=U(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Kne=U(`motorbike`,[[`path`,{d:`m18 14-1-3`,key:`bdajw9`}],[`path`,{d:`m3 9 6 2a2 2 0 0 1 2-2h2a2 2 0 0 1 1.99 1.81`,key:`f5fotj`}],[`path`,{d:`M8 17h3a1 1 0 0 0 1-1 6 6 0 0 1 6-6 1 1 0 0 0 1-1v-.75A5 5 0 0 0 17 5`,key:`3i90e2`}],[`circle`,{cx:`19`,cy:`17`,r:`3`,key:`1otbdv`}],[`circle`,{cx:`5`,cy:`17`,r:`3`,key:`1d8p0c`}]]),qne=U(`mountain-snow`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}],[`path`,{d:`M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19`,key:`1pvmmp`}]]),Jne=U(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),Yne=U(`mouse-left`,[[`path`,{d:`M12 7.318V10`,key:`17s7lh`}],[`path`,{d:`M5 10v5a7 7 0 0 0 14 0V9c0-3.527-2.608-6.515-6-7`,key:`imk5ea`}],[`circle`,{cx:`7`,cy:`4`,r:`2`,key:`ra7k3`}]]),Xne=U(`mouse-pointer-2-off`,[[`path`,{d:`m15.55 8.45 5.138 2.087a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063L8.45 15.551`,key:`1qoshx`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`m6.816 11.528-2.779-6.84a.495.495 0 0 1 .651-.651l6.84 2.779`,key:`mymuvk`}]]),Zne=U(`mouse-pointer-2`,[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]),Qne=U(`mouse-off`,[[`path`,{d:`M12 6v.343`,key:`1gyhex`}],[`path`,{d:`M18.218 18.218A7 7 0 0 1 5 15V9a7 7 0 0 1 .782-3.218`,key:`ukzz01`}],[`path`,{d:`M19 13.343V9A7 7 0 0 0 8.56 2.902`,key:`104jy9`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}]]),$ne=U(`mouse-pointer-ban`,[[`path`,{d:`M2.034 2.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.944L8.204 7.545a1 1 0 0 0-.66.66l-1.066 3.443a.5.5 0 0 1-.944.033z`,key:`11pp1i`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}],[`path`,{d:`m11.8 11.8 8.4 8.4`,key:`oogvdj`}]]),ere=U(`mouse-pointer-click`,[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]),tre=U(`mouse-pointer`,[[`path`,{d:`M12.586 12.586 19 19`,key:`ea5xo7`}],[`path`,{d:`M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z`,key:`277e5u`}]]),nre=U(`mouse-right`,[[`path`,{d:`M12 7.318V10`,key:`17s7lh`}],[`path`,{d:`M19 10v5a7 7 0 0 1-14 0V9c0-3.527 2.608-6.515 6-7`,key:`2es5nn`}],[`circle`,{cx:`17`,cy:`4`,r:`2`,key:`y5j2s2`}]]),rre=U(`mouse`,[[`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`7`,key:`11ol66`}],[`path`,{d:`M12 6v4`,key:`16clxf`}]]),ire=U(`move-diagonal-2`,[[`path`,{d:`M19 13v6h-6`,key:`1hxl6d`}],[`path`,{d:`M5 11V5h6`,key:`12e2xe`}],[`path`,{d:`m5 5 14 14`,key:`11anup`}]]),are=U(`move-3d`,[[`path`,{d:`M5 3v16h16`,key:`1mqmf9`}],[`path`,{d:`m5 19 6-6`,key:`jh6hbb`}],[`path`,{d:`m2 6 3-3 3 3`,key:`tkyvxa`}],[`path`,{d:`m18 16 3 3-3 3`,key:`1d4glt`}]]),ore=U(`move-diagonal`,[[`path`,{d:`M11 19H5v-6`,key:`8awifj`}],[`path`,{d:`M13 5h6v6`,key:`7voy1q`}],[`path`,{d:`M19 5 5 19`,key:`wwaj1z`}]]),sre=U(`move-down-left`,[[`path`,{d:`M11 19H5V13`,key:`1akmht`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),cre=U(`move-down-right`,[[`path`,{d:`M19 13V19H13`,key:`10vkzq`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),lre=U(`move-down`,[[`path`,{d:`M8 18L12 22L16 18`,key:`cskvfv`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),ure=U(`move-left`,[[`path`,{d:`M6 8L2 12L6 16`,key:`kyvwex`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),dre=U(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),fre=U(`move-right`,[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),pre=U(`move-up-left`,[[`path`,{d:`M5 11V5H11`,key:`3q78g9`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),mre=U(`move-up-right`,[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),hre=U(`move-up`,[[`path`,{d:`M8 6L12 2L16 6`,key:`1yvkyx`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),gre=U(`move-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]),_re=U(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),vre=U(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]),yre=U(`music-3`,[[`circle`,{cx:`12`,cy:`18`,r:`4`,key:`m3r9ws`}],[`path`,{d:`M16 18V2`,key:`40x2m5`}]]),bre=U(`music-4`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`path`,{d:`m9 9 12-2`,key:`1e64n2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),xre=U(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),Sre=U(`navigation-2`,[[`polygon`,{points:`12 2 19 21 12 17 5 21 12 2`,key:`x8c0qg`}]]),Cre=U(`navigation-off`,[[`path`,{d:`M8.43 8.43 3 11l8 2 2 8 2.57-5.43`,key:`1vdtb7`}],[`path`,{d:`M17.39 11.73 22 2l-9.73 4.61`,key:`tya3r6`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),wre=U(`navigation-2-off`,[[`path`,{d:`M9.31 9.31 5 21l7-4 7 4-1.17-3.17`,key:`qoq2o2`}],[`path`,{d:`M14.53 8.88 12 2l-1.17 3.17`,key:`k3sjzy`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Tre=U(`navigation`,[[`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`,key:`1ltx0t`}]]),sv=U(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),Ere=U(`newspaper`,[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]),Dre=U(`nfc`,[[`path`,{d:`M6 8.32a7.43 7.43 0 0 1 0 7.36`,key:`9iaqei`}],[`path`,{d:`M9.46 6.21a11.76 11.76 0 0 1 0 11.58`,key:`1yha7l`}],[`path`,{d:`M12.91 4.1a15.91 15.91 0 0 1 .01 15.8`,key:`4iu2gk`}],[`path`,{d:`M16.37 2a20.16 20.16 0 0 1 0 20`,key:`sap9u2`}]]),Ore=U(`non-binary`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`m8.5 4 7 4`,key:`m1xjk3`}],[`path`,{d:`m8.5 8 7-4`,key:`t0m5j6`}],[`circle`,{cx:`12`,cy:`17`,r:`5`,key:`qbz8iq`}]]),cv=U(`notebook-pen`,[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`,key:`re6nr2`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`pqwjuv`}]]),kre=U(`notebook-tabs`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M15 2v20`,key:`dcj49h`}],[`path`,{d:`M15 7h5`,key:`1xj5lc`}],[`path`,{d:`M15 12h5`,key:`w5shd9`}],[`path`,{d:`M15 17h5`,key:`1qaofu`}]]),lv=U(`notebook-text`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M9.5 8h5`,key:`11mslq`}],[`path`,{d:`M9.5 12H16`,key:`ktog6x`}],[`path`,{d:`M9.5 16H14`,key:`p1seyn`}]]),Are=U(`notebook`,[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M16 2v20`,key:`rotuqe`}]]),jre=U(`notepad-text-dashed`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v2`,key:`j91f56`}],[`path`,{d:`M20 12v2`,key:`w8o0tu`}],[`path`,{d:`M20 18v2a2 2 0 0 1-2 2h-1`,key:`1c9ggx`}],[`path`,{d:`M13 22h-2`,key:`191ugt`}],[`path`,{d:`M7 22H6a2 2 0 0 1-2-2v-2`,key:`1rt9px`}],[`path`,{d:`M4 14v-2`,key:`1v0sqh`}],[`path`,{d:`M4 8V6a2 2 0 0 1 2-2h2`,key:`1mwabg`}],[`path`,{d:`M8 10h6`,key:`3oa6kw`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`path`,{d:`M8 18h5`,key:`17enja`}]]),Mre=U(`notepad-text`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`16`,height:`18`,x:`4`,y:`4`,rx:`2`,key:`1u9h20`}],[`path`,{d:`M8 10h6`,key:`3oa6kw`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`path`,{d:`M8 18h5`,key:`17enja`}]]),Nre=U(`nut-off`,[[`path`,{d:`M12 4V2`,key:`1k5q1u`}],[`path`,{d:`M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592a7.01 7.01 0 0 0 4.125-2.939`,key:`1xcvy9`}],[`path`,{d:`M19 10v3.343`,key:`163tfc`}],[`path`,{d:`M12 12c-1.349-.573-1.905-1.005-2.5-2-.546.902-1.048 1.353-2.5 2-1.018-.644-1.46-1.08-2-2-1.028.71-1.69.918-3 1 1.081-1.048 1.757-2.03 2-3 .194-.776.84-1.551 1.79-2.21m11.654 5.997c.887-.457 1.28-.891 1.556-1.787 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4-.74 0-1.461.068-2.15.192`,key:`17914v`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),Pre=U(`nut`,[[`path`,{d:`M12 4V2`,key:`1k5q1u`}],[`path`,{d:`M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4`,key:`1tgyif`}],[`path`,{d:`M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.621 1.862-1.058 2.5-2 .629.977 1.162 1.423 2.5 2 1.209-.548 1.68-.967 2-2 1.032.916 1.683 1.157 3 1-1.297-1.036-1.758-2.03-2-3-.5-2-4-4-8-4Z`,key:`tnsqj`}]]),Fre=U(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),Ire=U(`octagon-minus`,[[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Lre=U(`octagon-pause`,[[`path`,{d:`M10 15V9`,key:`1lckn7`}],[`path`,{d:`M14 15V9`,key:`1muqhk`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}]]),uv=U(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Rre=U(`octagon`,[[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}]]),zre=U(`omega`,[[`path`,{d:`M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437 8 8 0 1 1 8.494-.001.52.52 0 0 0-.247.438v.282a.5.5 0 0 0 .5.5H21`,key:`1x94xo`}]]),Bre=U(`option`,[[`path`,{d:`M3 3h6l6 18h6`,key:`ph9rgk`}],[`path`,{d:`M14 3h7`,key:`16f0ms`}]]),Vre=U(`orbit`,[[`path`,{d:`M20.341 6.484A10 10 0 0 1 10.266 21.85`,key:`1enhxb`}],[`path`,{d:`M3.659 17.516A10 10 0 0 1 13.74 2.152`,key:`1crzgf`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),Hre=U(`package-2`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`path`,{d:`M16.76 3a2 2 0 0 1 1.8 1.1l2.23 4.479a2 2 0 0 1 .21.891V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9.472a2 2 0 0 1 .211-.894L5.45 4.1A2 2 0 0 1 7.24 3z`,key:`187q7i`}],[`path`,{d:`M3.054 9.013h17.893`,key:`grwhos`}]]),Ure=U(`origami`,[[`path`,{d:`M12 12V4a1 1 0 0 1 1-1h6.297a1 1 0 0 1 .651 1.759l-4.696 4.025`,key:`1bx4vc`}],[`path`,{d:`m12 21-7.414-7.414A2 2 0 0 1 4 12.172V6.415a1.002 1.002 0 0 1 1.707-.707L20 20.009`,key:`1h3km6`}],[`path`,{d:`m12.214 3.381 8.414 14.966a1 1 0 0 1-.167 1.199l-1.168 1.163a1 1 0 0 1-.706.291H6.351a1 1 0 0 1-.625-.219L3.25 18.8a1 1 0 0 1 .631-1.781l4.165.027`,key:`1hj4wg`}]]),Wre=U(`package-check`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16 17 2 2 4-4`,key:`uh5qu3`}],[`path`,{d:`M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753`,key:`kpkbpo`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),Gre=U(`package-minus`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M21 13V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955`,key:`zu9avd`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),Kre=U(`package-open`,[[`path`,{d:`M12 22v-9`,key:`x3hkom`}],[`path`,{d:`M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z`,key:`2ntwy6`}],[`path`,{d:`M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13`,key:`1pmm1c`}],[`path`,{d:`M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z`,key:`12ttoo`}]]),dv=U(`package-plus`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M19 14v6`,key:`1ckrd5`}],[`path`,{d:`M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955`,key:`28k6lz`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),qre=U(`package-x`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`m16.5 14.5 5 5`,key:`ozpm51`}],[`path`,{d:`m16.5 19.5 5-5`,key:`syf6b9`}],[`path`,{d:`M21 10.5V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.13-.074`,key:`isw6gs`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]),Jre=U(`package-search`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M20.27 18.27 22 20`,key:`er2am`}],[`path`,{d:`M21 10.498V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.98-.559`,key:`tok1h1`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}],[`circle`,{cx:`18.5`,cy:`16.5`,r:`2.5`,key:`ke13xx`}]]),fv=U(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Yre=U(`paintbrush-vertical`,[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v4`,key:`qmzblu`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z`,key:`ycvu00`}],[`path`,{d:`M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1`,key:`iw4wnp`}]]),Xre=U(`paint-bucket`,[[`path`,{d:`M11 7 6 2`,key:`1jwth8`}],[`path`,{d:`M18.992 12H2.041`,key:`xw1gg`}],[`path`,{d:`M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595`,key:`1nkol4`}],[`path`,{d:`m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33`,key:`1nk1rd`}]]),Zre=U(`paint-roller`,[[`rect`,{width:`16`,height:`6`,x:`2`,y:`2`,rx:`2`,key:`jcyz7m`}],[`path`,{d:`M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1b9h7c`}],[`rect`,{width:`4`,height:`6`,x:`8`,y:`16`,rx:`1`,key:`d6e7yl`}]]),Qre=U(`paintbrush`,[[`path`,{d:`m14.622 17.897-10.68-2.913`,key:`vj2p1u`}],[`path`,{d:`M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z`,key:`18tc5c`}],[`path`,{d:`M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15`,key:`ytzfxy`}]]),pv=U(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),$re=U(`panda`,[[`path`,{d:`M11.25 17.25h1.5L12 18z`,key:`1wmwwj`}],[`path`,{d:`m15 12 2 2`,key:`k60wz4`}],[`path`,{d:`M18 6.5a.5.5 0 0 0-.5-.5`,key:`1ch4h4`}],[`path`,{d:`M20.69 9.67a4.5 4.5 0 1 0-7.04-5.5 8.35 8.35 0 0 0-3.3 0 4.5 4.5 0 1 0-7.04 5.5C2.49 11.2 2 12.88 2 14.5 2 19.47 6.48 22 12 22s10-2.53 10-7.5c0-1.62-.48-3.3-1.3-4.83`,key:`1c660l`}],[`path`,{d:`M6 6.5a.495.495 0 0 1 .5-.5`,key:`eviuep`}],[`path`,{d:`m9 12-2 2`,key:`326nkw`}]]),eie=U(`panel-bottom-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`m15 8-3 3-3-3`,key:`1oxy1z`}]]),tie=U(`panel-bottom-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M14 15h1`,key:`171nev`}],[`path`,{d:`M19 15h2`,key:`1vnucp`}],[`path`,{d:`M3 15h2`,key:`8bym0q`}],[`path`,{d:`M9 15h1`,key:`1tg3ks`}]]),nie=U(`panel-bottom-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`m9 10 3-3 3 3`,key:`11gsxs`}]]),rie=U(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),iie=U(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),aie=U(`panel-left-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 14v1`,key:`askpd8`}],[`path`,{d:`M9 19v2`,key:`16tejx`}],[`path`,{d:`M9 3v2`,key:`1noubl`}],[`path`,{d:`M9 9v1`,key:`19ebxg`}]]),oie=U(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),sie=U(`panel-left-right-dashed`,[[`path`,{d:`M15 10V9`,key:`4dkmfx`}],[`path`,{d:`M15 15v-1`,key:`6a4afx`}],[`path`,{d:`M15 21v-2`,key:`1qshmc`}],[`path`,{d:`M15 5V3`,key:`1fk0mb`}],[`path`,{d:`M9 10V9`,key:`1lazqi`}],[`path`,{d:`M9 15v-1`,key:`9lx740`}],[`path`,{d:`M9 21v-2`,key:`1fwk0n`}],[`path`,{d:`M9 5V3`,key:`2q8zi6`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),cie=U(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),mv=U(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),lie=U(`panel-right-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 14v1`,key:`ilsfch`}],[`path`,{d:`M15 19v2`,key:`1fst2f`}],[`path`,{d:`M15 3v2`,key:`z204g4`}],[`path`,{d:`M15 9v1`,key:`z2a8b1`}]]),uie=U(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),hv=U(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),die=U(`panel-top-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`m9 16 3-3 3 3`,key:`1idcnm`}]]),fie=U(`panel-top-bottom-dashed`,[[`path`,{d:`M14 15h1`,key:`171nev`}],[`path`,{d:`M14 9h1`,key:`l0svgy`}],[`path`,{d:`M19 15h2`,key:`1vnucp`}],[`path`,{d:`M19 9h2`,key:`te2zfg`}],[`path`,{d:`M3 15h2`,key:`8bym0q`}],[`path`,{d:`M3 9h2`,key:`1h4ldw`}],[`path`,{d:`M9 15h1`,key:`1tg3ks`}],[`path`,{d:`M9 9h1`,key:`15jzuz`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),pie=U(`panel-top-dashed`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M14 9h1`,key:`l0svgy`}],[`path`,{d:`M19 9h2`,key:`te2zfg`}],[`path`,{d:`M3 9h2`,key:`1h4ldw`}],[`path`,{d:`M9 9h1`,key:`15jzuz`}]]),mie=U(`panel-top-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`m15 14-3 3-3-3`,key:`g215vf`}]]),hie=U(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),gie=U(`panels-left-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M9 15h12`,key:`5ijen5`}]]),_ie=U(`panels-right-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h12`,key:`1wkqb3`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),vie=U(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),gv=U(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),yie=U(`parasol`,[[`path`,{d:`M12.5 11.134 18.196 21`,key:`gf58kt`}],[`path`,{d:`M20.425 5.299a10 10 0 0 0-16.941 9.78c.183.563.843.774 1.355.478L20.16 6.711c.512-.296.66-.973.264-1.413`,key:`znqfe4`}],[`path`,{d:`M21 21H3`,key:`oafrgs`}]]),bie=U(`parking-meter`,[[`path`,{d:`M11 15h2`,key:`199qp6`}],[`path`,{d:`M12 12v3`,key:`158kv8`}],[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15.282 19a1 1 0 0 0 .948-.68l2.37-6.988a7 7 0 1 0-13.2 0l2.37 6.988a1 1 0 0 0 .948.68z`,key:`1jofit`}],[`path`,{d:`M9 9a3 3 0 1 1 6 0`,key:`jdoeu8`}]]),xie=U(`parentheses`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}]]),Sie=U(`party-popper`,[[`path`,{d:`M5.8 11.3 2 22l10.7-3.79`,key:`gwxi1d`}],[`path`,{d:`M4 3h.01`,key:`1vcuye`}],[`path`,{d:`M22 8h.01`,key:`1mrtc2`}],[`path`,{d:`M15 2h.01`,key:`1cjtqr`}],[`path`,{d:`M22 20h.01`,key:`1mrys2`}],[`path`,{d:`m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10`,key:`hbicv8`}],[`path`,{d:`m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17`,key:`1i94pl`}],[`path`,{d:`m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7`,key:`1cofks`}],[`path`,{d:`M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z`,key:`4kbmks`}]]),_v=U(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),vv=U(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),Cie=U(`pc-case`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,key:`1uq1d7`}],[`path`,{d:`M15 14h.01`,key:`1kp3bh`}],[`path`,{d:`M9 6h6`,key:`dgm16u`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}]]),wie=U(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Tie=U(`pen-tool`,[[`path`,{d:`M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z`,key:`nt11vn`}],[`path`,{d:`m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18`,key:`15qc1e`}],[`path`,{d:`m2.3 2.3 7.286 7.286`,key:`1wuzzi`}],[`circle`,{cx:`11`,cy:`11`,r:`2`,key:`xmgehs`}]]),Eie=U(`pen-off`,[[`path`,{d:`m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982`,key:`bjo8r8`}],[`path`,{d:`m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353`,key:`16h5ne`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Die=U(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),yv=U(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Oie=U(`pencil-off`,[[`path`,{d:`m10 10-6.157 6.162a2 2 0 0 0-.5.833l-1.322 4.36a.5.5 0 0 0 .622.624l4.358-1.323a2 2 0 0 0 .83-.5L14 13.982`,key:`bjo8r8`}],[`path`,{d:`m12.829 7.172 4.359-4.346a1 1 0 1 1 3.986 3.986l-4.353 4.353`,key:`16h5ne`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),kie=U(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Aie=U(`pentagon`,[[`path`,{d:`M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z`,key:`2hea0t`}]]),bv=U(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),jie=U(`percent`,[[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}],[`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`,key:`4mh3h7`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`,key:`1mdrzq`}]]),Mie=U(`person-standing`,[[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`path`,{d:`m9 20 3-6 3 6`,key:`se2kox`}],[`path`,{d:`m6 8 6 2 6-2`,key:`4o3us4`}],[`path`,{d:`M12 10v4`,key:`1kjpxc`}]]),Nie=U(`philippine-peso`,[[`path`,{d:`M20 11H4`,key:`6ut86h`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`M7 21V4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 12H7`,key:`1ana5r`}]]),Pie=U(`phone-call`,[[`path`,{d:`M13 2a9 9 0 0 1 9 9`,key:`1itnx2`}],[`path`,{d:`M13 6a5 5 0 0 1 5 5`,key:`11nki7`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Fie=U(`phone-forwarded`,[[`path`,{d:`M14 6h8`,key:`yd68k4`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Iie=U(`phone-incoming`,[[`path`,{d:`M16 2v6h6`,key:`1mfrl5`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Lie=U(`phone-missed`,[[`path`,{d:`m16 2 6 6`,key:`1gw87d`}],[`path`,{d:`m22 2-6 6`,key:`6f0sa0`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),xv=U(`phone-off`,[[`path`,{d:`M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272`,key:`1wngk7`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473`,key:`10hv5p`}]]),Rie=U(`phone-outgoing`,[[`path`,{d:`m16 8 6-6`,key:`oawc05`}],[`path`,{d:`M22 8V2h-6`,key:`oqy2zc`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Sv=U(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),zie=U(`pi`,[[`line`,{x1:`9`,x2:`9`,y1:`4`,y2:`20`,key:`ovs5a5`}],[`path`,{d:`M4 7c0-1.7 1.3-3 3-3h13`,key:`10pag4`}],[`path`,{d:`M18 20c-1.7 0-3-1.3-3-3V4`,key:`1gaosr`}]]),Bie=U(`piano`,[[`path`,{d:`M18.5 8c-1.4 0-2.6-.8-3.2-2A6.87 6.87 0 0 0 2 9v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8.5C22 9.6 20.4 8 18.5 8`,key:`lag0yf`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M6 14v4`,key:`9ng0ue`}],[`path`,{d:`M10 14v4`,key:`1v8uk5`}],[`path`,{d:`M14 14v4`,key:`1tqops`}],[`path`,{d:`M18 14v4`,key:`18uqwm`}]]),Vie=U(`pickaxe`,[[`path`,{d:`m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999`,key:`1lw9ds`}],[`path`,{d:`M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024`,key:`ffj4ej`}],[`path`,{d:`M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069`,key:`8tj4zw`}],[`path`,{d:`M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z`,key:`hh6h97`}]]),Hie=U(`picture-in-picture-2`,[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]]),Uie=U(`picture-in-picture`,[[`path`,{d:`M2 10h6V4`,key:`zwrco`}],[`path`,{d:`m2 4 6 6`,key:`ug085t`}],[`path`,{d:`M21 10V7a2 2 0 0 0-2-2h-7`,key:`git5jr`}],[`path`,{d:`M3 14v2a2 2 0 0 0 2 2h3`,key:`1f7fh3`}],[`rect`,{x:`12`,y:`14`,width:`10`,height:`7`,rx:`1`,key:`1wjs3o`}]]),Wie=U(`piggy-bank`,[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]),Gie=U(`pilcrow-left`,[[`path`,{d:`M14 3v11`,key:`mlfb7b`}],[`path`,{d:`M14 9h-3a3 3 0 0 1 0-6h9`,key:`1ulc19`}],[`path`,{d:`M18 3v11`,key:`1phi0r`}],[`path`,{d:`M22 18H2l4-4`,key:`yt65j9`}],[`path`,{d:`m6 22-4-4`,key:`6jgyf5`}]]),Kie=U(`pilcrow-right`,[[`path`,{d:`M10 3v11`,key:`o3l5kj`}],[`path`,{d:`M10 9H7a1 1 0 0 1 0-6h8`,key:`1wb1nc`}],[`path`,{d:`M14 3v11`,key:`mlfb7b`}],[`path`,{d:`m18 14 4 4H2`,key:`4r8io1`}],[`path`,{d:`m22 18-4 4`,key:`1hjjrd`}]]),qie=U(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),Jie=U(`pill-bottle`,[[`path`,{d:`M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4`,key:`17ldeb`}],[`path`,{d:`M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7`,key:`nc37y6`}],[`rect`,{width:`16`,height:`5`,x:`4`,y:`2`,rx:`1`,key:`3jeezo`}]]),Yie=U(`pill`,[[`path`,{d:`m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z`,key:`wa1lgi`}],[`path`,{d:`m8.5 8.5 7 7`,key:`rvfmvr`}]]),Cv=U(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),Xie=U(`pizza`,[[`path`,{d:`m12 14-1 1`,key:`11onhr`}],[`path`,{d:`m13.75 18.25-1.25 1.42`,key:`1yisr3`}],[`path`,{d:`M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12`,key:`1qtqk6`}],[`path`,{d:`M18.8 9.3a1 1 0 0 0 2.1 7.7`,key:`fbbbr2`}],[`path`,{d:`M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z`,key:`1hyfdd`}]]),wv=U(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),Zie=U(`pipette`,[[`path`,{d:`m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12`,key:`1y3wsu`}],[`path`,{d:`m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z`,key:`110lr1`}],[`path`,{d:`m2 22 .414-.414`,key:`jhxm08`}]]),Qie=U(`plane-landing`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 2 0 0 1 1.09 1.52l.72 5.4a2 2 0 0 0 1.09 1.52l4.4 2.2c.42.22.78.55 1.01.96l.6 1.03c.49.88-.06 1.98-1.06 2.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29 11.15a2 2 0 0 1-.52-.38Z`,key:`1ma21e`}]]),$ie=U(`plane-takeoff`,[[`path`,{d:`M2 22h20`,key:`272qi7`}],[`path`,{d:`M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z`,key:`fkigj9`}]]),eae=U(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),Tv=U(`plug-zap`,[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]]),Ev=U(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),tae=U(`plug-2`,[[`path`,{d:`M9 2v6`,key:`17ngun`}],[`path`,{d:`M15 2v6`,key:`s7yy2p`}],[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M5 8h14`,key:`pcz4l3`}],[`path`,{d:`M6 11V8h12v3a6 6 0 1 1-12 0Z`,key:`wtfw2c`}]]),Dv=U(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),nae=U(`pocket-knife`,[[`path`,{d:`M3 2v1c0 1 2 1 2 2S3 6 3 7s2 1 2 2-2 1-2 2 2 1 2 2`,key:`19w3oe`}],[`path`,{d:`M18 6h.01`,key:`1v4wsw`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M20.83 8.83a4 4 0 0 0-5.66-5.66l-12 12a4 4 0 1 0 5.66 5.66Z`,key:`6fykxj`}],[`path`,{d:`M18 11.66V22a4 4 0 0 0 4-4V6`,key:`1utzek`}]]),rae=U(`podcast`,[[`path`,{d:`M13 17a1 1 0 1 0-2 0l.5 4.5a0.5 0.5 0 0 0 1 0z`,fill:`currentColor`,key:`x1mxqr`}],[`path`,{d:`M16.85 18.58a9 9 0 1 0-9.7 0`,key:`d71mpg`}],[`path`,{d:`M8 14a5 5 0 1 1 8 0`,key:`fc81rn`}],[`circle`,{cx:`12`,cy:`11`,r:`1`,fill:`currentColor`,key:`vqiwd`}]]),iae=U(`pointer-off`,[[`path`,{d:`M10 4.5V4a2 2 0 0 0-2.41-1.957`,key:`jsi14n`}],[`path`,{d:`M13.9 8.4a2 2 0 0 0-1.26-1.295`,key:`hirc7f`}],[`path`,{d:`M21.7 16.2A8 8 0 0 0 22 14v-3a2 2 0 1 0-4 0v-1a2 2 0 0 0-3.63-1.158`,key:`1jxb2e`}],[`path`,{d:`m7 15-1.8-1.8a2 2 0 0 0-2.79 2.86L6 19.7a7.74 7.74 0 0 0 6 2.3h2a8 8 0 0 0 5.657-2.343`,key:`10r7hm`}],[`path`,{d:`M6 6v8`,key:`tv5xkp`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),aae=U(`pointer`,[[`path`,{d:`M22 14a8 8 0 0 1-8 8`,key:`56vcr3`}],[`path`,{d:`M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1agjmk`}],[`path`,{d:`M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1`,key:`wdbh2u`}],[`path`,{d:`M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10`,key:`1ibuk9`}],[`path`,{d:`M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`g6ys72`}]]),oae=U(`popcorn`,[[`path`,{d:`M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4`,key:`10td1f`}],[`path`,{d:`M10 22 9 8`,key:`yjptiv`}],[`path`,{d:`m14 22 1-14`,key:`8jwc8b`}],[`path`,{d:`M20 8c.5 0 .9.4.8 1l-2.6 12c-.1.5-.7 1-1.2 1H7c-.6 0-1.1-.4-1.2-1L3.2 9c-.1-.6.3-1 .8-1Z`,key:`1qo33t`}]]),sae=U(`popsicle`,[[`path`,{d:`M18.6 14.4c.8-.8.8-2 0-2.8l-8.1-8.1a4.95 4.95 0 1 0-7.1 7.1l8.1 8.1c.9.7 2.1.7 2.9-.1Z`,key:`1o68ps`}],[`path`,{d:`m22 22-5.5-5.5`,key:`17o70y`}]]),cae=U(`pound-sterling`,[[`path`,{d:`M18 7c0-5.333-8-5.333-8 0`,key:`1prm2n`}],[`path`,{d:`M10 7v14`,key:`18tmcs`}],[`path`,{d:`M6 21h12`,key:`4dkmi1`}],[`path`,{d:`M6 13h10`,key:`ybwr4a`}]]),Ov=U(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),lae=U(`presentation`,[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]),kv=U(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),uae=U(`printer-check`,[[`path`,{d:`M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5`,key:`qeb09x`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2`,key:`1md90i`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}]]),dae=U(`printer-x`,[[`path`,{d:`M12.531 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h6.377`,key:`1w39xo`}],[`path`,{d:`m16.5 16.5 5 5`,key:`zc9lw7`}],[`path`,{d:`m16.5 21.5 5-5`,key:`1fr29m`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.5`,key:`18he39`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}]]),fae=U(`projector`,[[`path`,{d:`M5 7 3 5`,key:`1yys58`}],[`path`,{d:`M9 6V3`,key:`1ptz9u`}],[`path`,{d:`m13 7 2-2`,key:`1w3vmq`}],[`circle`,{cx:`9`,cy:`13`,r:`3`,key:`1mma13`}],[`path`,{d:`M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17`,key:`2frwzc`}],[`path`,{d:`M16 16h2`,key:`dnq2od`}]]),pae=U(`printer`,[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]),mae=U(`proportions`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M12 9v11`,key:`1fnkrn`}],[`path`,{d:`M2 9h13a2 2 0 0 1 2 2v9`,key:`11z3ex`}]]),Av=U(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),hae=U(`pyramid`,[[`path`,{d:`M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z`,key:`aenxs0`}],[`path`,{d:`M12 2v20`,key:`t6zp3m`}]]),jv=U(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),Mv=U(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),gae=U(`rabbit`,[[`path`,{d:`M13 16a3 3 0 0 1 2.24 5`,key:`1epib5`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3`,key:`ue9ozu`}],[`path`,{d:`M20 8.54V4a2 2 0 1 0-4 0v3`,key:`49iql8`}],[`path`,{d:`M7.612 12.524a3 3 0 1 0-1.6 4.3`,key:`1e33i0`}]]),_ae=U(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),vae=U(`radiation`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 15.4641a4 4 0 0 1-4 0L7.52786 19.74597 A 1 1 0 0 0 7.99303 21.16211 10 10 0 0 0 16.00697 21.16211 1 1 0 0 0 16.47214 19.74597z`,key:`1y4lzb`}],[`path`,{d:`M16 12a4 4 0 0 0-2-3.464l2.472-4.282a1 1 0 0 1 1.46-.305 10 10 0 0 1 4.006 6.94A1 1 0 0 1 21 12z`,key:`163ggk`}],[`path`,{d:`M8 12a4 4 0 0 1 2-3.464L7.528 4.254a1 1 0 0 0-1.46-.305 10 10 0 0 0-4.006 6.94A1 1 0 0 0 3 12z`,key:`1l9i0b`}]]),yae=U(`radical`,[[`path`,{d:`M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21`,key:`1mqj8i`}]]),bae=U(`radio-off`,[[`path`,{d:`M13.414 13.414a2 2 0 1 1-2.828-2.828`,key:`srl686`}],[`path`,{d:`M16.247 7.761a6 6 0 0 1 1.744 4.572`,key:`1h86sp`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 2.234 10.72`,key:`1n13k4`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}]]),xae=U(`radio-receiver`,[[`path`,{d:`M5 16v2`,key:`g5qcv5`}],[`path`,{d:`M19 16v2`,key:`1gbaio`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`8`,rx:`2`,key:`vjsjur`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}]]),Sae=U(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),Nv=U(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Cae=U(`radius`,[[`path`,{d:`M20.34 17.52a10 10 0 1 0-2.82 2.82`,key:`fydyku`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`path`,{d:`m13.41 13.41 4.18 4.18`,key:`1gqbwc`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),wae=U(`rainbow`,[[`path`,{d:`M22 17a10 10 0 0 0-20 0`,key:`ozegv`}],[`path`,{d:`M6 17a6 6 0 0 1 12 0`,key:`5giftw`}],[`path`,{d:`M10 17a2 2 0 0 1 4 0`,key:`gnsikk`}]]),Tae=U(`rat`,[[`path`,{d:`M13 22H4a2 2 0 0 1 0-4h12`,key:`bt3f23`}],[`path`,{d:`M13.236 18a3 3 0 0 0-2.2-5`,key:`1tbvmo`}],[`path`,{d:`M16 9h.01`,key:`1bdo4e`}],[`path`,{d:`M16.82 3.94a3 3 0 1 1 3.237 4.868l1.815 2.587a1.5 1.5 0 0 1-1.5 2.1l-2.872-.453a3 3 0 0 0-3.5 3`,key:`9ch7kn`}],[`path`,{d:`M17 4.988a3 3 0 1 0-5.2 2.052A7 7 0 0 0 4 14.015 4 4 0 0 0 8 18`,key:`3s7e9i`}]]),Eae=U(`ratio`,[[`rect`,{width:`12`,height:`20`,x:`6`,y:`2`,rx:`2`,key:`1oxtiu`}],[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),Dae=U(`receipt-euro`,[[`path`,{d:`M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0`,key:`16zdw4`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 12h5`,key:`1g6qi8`}]]),Oae=U(`receipt-cent`,[[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M14.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0`,key:`qvqont`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),kae=U(`receipt-indian-rupee`,[[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 11h8`,key:`vwpz6n`}],[`path`,{d:`M8 7h8`,key:`i86dvs`}],[`path`,{d:`M9 7a4 4 0 0 1 0 8H8l3 2`,key:`1xaco0`}]]),Aae=U(`receipt-japanese-yen`,[[`path`,{d:`m12 10 3-3`,key:`1mc12w`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}],[`path`,{d:`m9 7 3 3v7`,key:`1x0cue`}]]),jae=U(`receipt-pound-sterling`,[[`path`,{d:`M10 17V9.5a1 1 0 0 1 5 0`,key:`td22vl`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 13h5`,key:`1k9z8w`}],[`path`,{d:`M8 17h7`,key:`8mjdqu`}]]),Mae=U(`receipt-russian-ruble`,[[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 11h5a2 2 0 0 0 0-4h-3v10`,key:`agnv0r`}],[`path`,{d:`M8 15h5`,key:`vxg57a`}]]),Nae=U(`receipt-swiss-franc`,[[`path`,{d:`M10 11h4`,key:`1i0mka`}],[`path`,{d:`M10 17V7h5`,key:`k7jq18`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}],[`path`,{d:`M8 15h5`,key:`vxg57a`}]]),Pae=U(`receipt-text`,[[`path`,{d:`M13 16H8`,key:`wsln4y`}],[`path`,{d:`M14 8H8`,key:`1l3xfs`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Fae=U(`receipt-turkish-lira`,[[`path`,{d:`M10 7v10a5 5 0 0 0 5-5`,key:`1blmz7`}],[`path`,{d:`m14 8-6 3`,key:`2tb98i`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Iae=U(`receipt`,[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),Lae=U(`rectangle-circle`,[[`path`,{d:`M14 4v16H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z`,key:`1m5n7q`}],[`circle`,{cx:`14`,cy:`12`,r:`8`,key:`1pag6k`}]]),Rae=U(`rectangle-ellipsis`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M17 12h.01`,key:`1m0b6t`}],[`path`,{d:`M7 12h.01`,key:`eqddd0`}]]),zae=U(`rectangle-goggles`,[[`path`,{d:`M20 6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-4a2 2 0 0 1-1.6-.8l-1.6-2.13a1 1 0 0 0-1.6 0L9.6 17.2A2 2 0 0 1 8 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`d5y1f`}]]),Bae=U(`rectangle-horizontal`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),Vae=U(`rectangle-vertical`,[[`rect`,{width:`12`,height:`20`,x:`6`,y:`2`,rx:`2`,key:`1oxtiu`}]]),Hae=U(`recycle`,[[`path`,{d:`M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5`,key:`x6z5xu`}],[`path`,{d:`M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12`,key:`1x4zh5`}],[`path`,{d:`m14 16-3 3 3 3`,key:`f6jyew`}],[`path`,{d:`M8.293 13.596 7.196 9.5 3.1 10.598`,key:`wf1obh`}],[`path`,{d:`m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843`,key:`9tzpgr`}],[`path`,{d:`m13.378 9.633 4.096 1.098 1.097-4.096`,key:`1oe83g`}]]),Pv=U(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),Uae=U(`redo-dot`,[[`circle`,{cx:`12`,cy:`17`,r:`1`,key:`1ixnty`}],[`path`,{d:`M21 7v6h-6`,key:`3ptur4`}],[`path`,{d:`M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7`,key:`1kgawr`}]]),Wae=U(`redo`,[[`path`,{d:`M21 7v6h-6`,key:`3ptur4`}],[`path`,{d:`M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7`,key:`1kgawr`}]]),Gae=U(`refresh-ccw-dot`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Kae=U(`refresh-ccw`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}]]),qae=U(`refresh-cw-off`,[[`path`,{d:`M21 8L18.74 5.74A9.75 9.75 0 0 0 12 3C11 3 10.03 3.16 9.13 3.47`,key:`1krf6h`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}],[`path`,{d:`M3 12C3 9.51 4 7.26 5.64 5.64`,key:`ruvoct`}],[`path`,{d:`m3 16 2.26 2.26A9.75 9.75 0 0 0 12 21c2.49 0 4.74-1 6.36-2.64`,key:`19q130`}],[`path`,{d:`M21 12c0 1-.16 1.97-.47 2.87`,key:`4w8emr`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M22 22 2 2`,key:`1r8tn9`}]]),Fv=U(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Jae=U(`regex`,[[`path`,{d:`M17 3v10`,key:`15fgeh`}],[`path`,{d:`m12.67 5.5 8.66 5`,key:`1gpheq`}],[`path`,{d:`m12.67 10.5 8.66-5`,key:`1dkfa6`}],[`path`,{d:`M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z`,key:`swwfx4`}]]),Yae=U(`remove-formatting`,[[`path`,{d:`M4 7V4h16v3`,key:`9msm58`}],[`path`,{d:`M5 20h6`,key:`1h6pxn`}],[`path`,{d:`M13 4 8 20`,key:`kqq6aj`}],[`path`,{d:`m15 15 5 5`,key:`me55sn`}],[`path`,{d:`m20 15-5 5`,key:`11p7ol`}]]),Xae=U(`refrigerator`,[[`path`,{d:`M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z`,key:`fpq118`}],[`path`,{d:`M5 10h14`,key:`elsbfy`}],[`path`,{d:`M15 7v6`,key:`1nx30x`}]]),Zae=U(`repeat-1`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}],[`path`,{d:`M11 10h1v4`,key:`70cz1p`}]]),Qae=U(`repeat-2`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),$ae=U(`repeat-off`,[[`path`,{d:`M11.656 6H21l-4-4`,key:`w9pozh`}],[`path`,{d:`M17.898 17.898A4 4 0 0 1 17 18H3l4-4`,key:`156mfe`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 13v1a4 4 0 0 1-.171 1.159`,key:`2p1713`}],[`path`,{d:`m21 6-4 4`,key:`p7opkf`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 3.102-3.898`,key:`8cius9`}],[`path`,{d:`m7 22-4-4`,key:`1kl3a3`}]]),eoe=U(`repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]),toe=U(`replace-all`,[[`path`,{d:`M14 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`zg1ipl`}],[`path`,{d:`M14 4a1 1 0 0 1 1-1`,key:`dhj8ez`}],[`path`,{d:`M15 10a1 1 0 0 1-1-1`,key:`1mnyi5`}],[`path`,{d:`M19 14a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1`,key:`txt6k4`}],[`path`,{d:`M21 4a1 1 0 0 0-1-1`,key:`sfs9ap`}],[`path`,{d:`M21 9a1 1 0 0 1-1 1`,key:`mp6qeo`}],[`path`,{d:`m3 7 3 3 3-3`,key:`x25e72`}],[`path`,{d:`M6 10V5a2 2 0 0 1 2-2h2`,key:`15xut4`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}]]),noe=U(`reply-all`,[[`path`,{d:`m12 17-5-5 5-5`,key:`1s3y5u`}],[`path`,{d:`M22 18v-2a4 4 0 0 0-4-4H7`,key:`1fcyog`}],[`path`,{d:`m7 17-5-5 5-5`,key:`1ed8i2`}]]),roe=U(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),ioe=U(`replace`,[[`path`,{d:`M14 4a1 1 0 0 1 1-1`,key:`dhj8ez`}],[`path`,{d:`M15 10a1 1 0 0 1-1-1`,key:`1mnyi5`}],[`path`,{d:`M21 4a1 1 0 0 0-1-1`,key:`sfs9ap`}],[`path`,{d:`M21 9a1 1 0 0 1-1 1`,key:`mp6qeo`}],[`path`,{d:`m3 7 3 3 3-3`,key:`x25e72`}],[`path`,{d:`M6 10V5a2 2 0 0 1 2-2h2`,key:`15xut4`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}]]),aoe=U(`rewind`,[[`path`,{d:`M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z`,key:`2a1g8i`}],[`path`,{d:`M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z`,key:`rg3s36`}]]),ooe=U(`ribbon`,[[`path`,{d:`M12 11.22C11 9.997 10 9 10 8a2 2 0 0 1 4 0c0 1-.998 2.002-2.01 3.22`,key:`1rnhq3`}],[`path`,{d:`m12 18 2.57-3.5`,key:`116vt7`}],[`path`,{d:`M6.243 9.016a7 7 0 0 1 11.507-.009`,key:`10dq0b`}],[`path`,{d:`M9.35 14.53 12 11.22`,key:`tdsyp2`}],[`path`,{d:`M9.35 14.53C7.728 12.246 6 10.221 6 7a6 5 0 0 1 12 0c-.005 3.22-1.778 5.235-3.43 7.5l3.557 4.527a1 1 0 0 1-.203 1.43l-1.894 1.36a1 1 0 0 1-1.384-.215L12 18l-2.679 3.593a1 1 0 0 1-1.39.213l-1.865-1.353a1 1 0 0 1-.203-1.422z`,key:`nmifey`}]]),soe=U(`road`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M12 5V3`,key:`vd5es`}],[`path`,{d:`M12 9v3`,key:`qyerrc`}],[`path`,{d:`M2.077 18.449A2 2 0 0 0 4 21h16a2 2 0 0 0 1.924-2.55l-4-14A2 2 0 0 0 16 3H8a2 2 0 0 0-1.924 1.45z`,key:`1cuxct`}]]),coe=U(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),loe=U(`rocking-chair`,[[`path`,{d:`m15 13 3.708 7.416`,key:`1edxn9`}],[`path`,{d:`M3 19a15 15 0 0 0 18 0`,key:`d0d1c4`}],[`path`,{d:`m3 2 3.21 9.633A2 2 0 0 0 8.109 13H18`,key:`tpa4et`}],[`path`,{d:`m9 13-3.708 7.416`,key:`1oplxx`}]]),uoe=U(`roller-coaster`,[[`path`,{d:`M6 19V5`,key:`1r845m`}],[`path`,{d:`M10 19V6.8`,key:`9j2tfs`}],[`path`,{d:`M14 19v-7.8`,key:`10s8qv`}],[`path`,{d:`M18 5v4`,key:`1tajlv`}],[`path`,{d:`M18 19v-6`,key:`ielfq3`}],[`path`,{d:`M22 19V9`,key:`158nzp`}],[`path`,{d:`M2 19V9a4 4 0 0 1 4-4c2 0 4 1.33 6 4s4 4 6 4a4 4 0 1 0-3-6.65`,key:`1930oh`}]]),doe=U(`rotate-3d`,[[`path`,{d:`m15.194 13.707 3.814 1.86-1.86 3.814`,key:`16shm9`}],[`path`,{d:`M16.47214 7.52786 A 5 10 0 1 0 13 21.79796`,key:`1245p8`}],[`path`,{d:`M21.79796 11 A 10 5 0 1 0 19 15.57071`,key:`1i40ks`}]]),foe=U(`rotate-ccw-key`,[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M12 9h2`,key:`1lpap9`}],[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.74 9.74 0 0 0-6.74 2.74L3 8`,key:`g2jlw`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`circle`,{cx:`12`,cy:`15`,r:`2`,key:`1vpstw`}]]),poe=U(`rose`,[[`path`,{d:`M17 10h-1a4 4 0 1 1 4-4v.534`,key:`7qf5zm`}],[`path`,{d:`M17 6h1a4 4 0 0 1 1.42 7.74l-2.29.87a6 6 0 0 1-5.339-10.68l2.069-1.31`,key:`1et29u`}],[`path`,{d:`M4.5 17c2.8-.5 4.4 0 5.5.8s1.8 2.2 2.3 3.7c-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2`,key:`kiv2lz`}],[`path`,{d:`M9.77 12C4 15 2 22 2 22`,key:`h28rw0`}],[`circle`,{cx:`17`,cy:`8`,r:`2`,key:`1330xn`}]]),moe=U(`rotate-ccw-square`,[[`path`,{d:`M20 9V7a2 2 0 0 0-2-2h-6`,key:`19z8uc`}],[`path`,{d:`m15 2-3 3 3 3`,key:`177bxs`}],[`path`,{d:`M20 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2`,key:`d36hnl`}]]),Iv=U(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),hoe=U(`rotate-cw-square`,[[`path`,{d:`M12 5H6a2 2 0 0 0-2 2v3`,key:`l96uqu`}],[`path`,{d:`m9 8 3-3-3-3`,key:`1gzgc3`}],[`path`,{d:`M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2`,key:`1w2k5h`}]]),goe=U(`route-off`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5c.4 0 .9-.1 1.3-.2`,key:`1effex`}],[`path`,{d:`M5.2 5.2A3.5 3.53 0 0 0 6.5 12H12`,key:`k9y2ds`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M21 15.3a3.5 3.5 0 0 0-3.3-3.3`,key:`11nlu2`}],[`path`,{d:`M15 5h-4.3`,key:`6537je`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),Lv=U(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),_oe=U(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),voe=U(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),yoe=U(`rows-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]]),boe=U(`rows-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),xoe=U(`rows-4`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 7.5H3`,key:`1hm9pq`}],[`path`,{d:`M21 12H3`,key:`2avoz0`}],[`path`,{d:`M21 16.5H3`,key:`n7jzkj`}]]),Soe=U(`rss`,[[`path`,{d:`M4 11a9 9 0 0 1 9 9`,key:`pv89mb`}],[`path`,{d:`M4 4a16 16 0 0 1 16 16`,key:`k0647b`}],[`circle`,{cx:`5`,cy:`19`,r:`1`,key:`bfqh0e`}]]),Coe=U(`ruler`,[[`path`,{d:`M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z`,key:`icamh8`}],[`path`,{d:`m14.5 12.5 2-2`,key:`inckbg`}],[`path`,{d:`m11.5 9.5 2-2`,key:`fmmyf7`}],[`path`,{d:`m8.5 6.5 2-2`,key:`vc6u1g`}],[`path`,{d:`m17.5 15.5 2-2`,key:`wo5hmg`}]]),woe=U(`ruler-dimension-line`,[[`path`,{d:`M10 15v-3`,key:`1pjskw`}],[`path`,{d:`M14 15v-3`,key:`1o1mqj`}],[`path`,{d:`M18 15v-3`,key:`cws6he`}],[`path`,{d:`M2 8V4`,key:`3jv1jz`}],[`path`,{d:`M22 6H2`,key:`1iqbfk`}],[`path`,{d:`M22 8V4`,key:`16f4ou`}],[`path`,{d:`M6 15v-3`,key:`1ij1qe`}],[`rect`,{x:`2`,y:`12`,width:`20`,height:`8`,rx:`2`,key:`1tqiko`}]]),Toe=U(`russian-ruble`,[[`path`,{d:`M6 11h8a4 4 0 0 0 0-8H9v18`,key:`18ai8t`}],[`path`,{d:`M6 15h8`,key:`1y8f6l`}]]),Eoe=U(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),Doe=U(`sandwich`,[[`path`,{d:`m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777`,key:`f1wd0e`}],[`path`,{d:`M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25`,key:`1pfu07`}],[`path`,{d:`M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9`,key:`1oq9qw`}],[`path`,{d:`m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2`,key:`1fnwu5`}],[`rect`,{width:`20`,height:`4`,x:`2`,y:`11`,rx:`1`,key:`itshg`}]]),Ooe=U(`salad`,[[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1`,key:`10xrj0`}],[`path`,{d:`m13 12 4-4`,key:`1hckqy`}],[`path`,{d:`M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2`,key:`1p4srx`}]]),koe=U(`satellite-dish`,[[`path`,{d:`M4 10a7.31 7.31 0 0 0 10 10Z`,key:`1fzpp3`}],[`path`,{d:`m9 15 3-3`,key:`88sc13`}],[`path`,{d:`M17 13a6 6 0 0 0-6-6`,key:`15cc6u`}],[`path`,{d:`M21 13A10 10 0 0 0 11 3`,key:`11nf8s`}]]),Aoe=U(`satellite`,[[`path`,{d:`m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5`,key:`dzhfyz`}],[`path`,{d:`M16.5 7.5 19 5`,key:`1ltcjm`}],[`path`,{d:`m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5`,key:`nfoymv`}],[`path`,{d:`M9 21a6 6 0 0 0-6-6`,key:`1iajcf`}],[`path`,{d:`M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z`,key:`nv9zqy`}]]),joe=U(`save-all`,[[`path`,{d:`M10 2v3a1 1 0 0 0 1 1h5`,key:`1xspal`}],[`path`,{d:`M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6`,key:`1ra60u`}],[`path`,{d:`M18 22H4a2 2 0 0 1-2-2V6`,key:`pblm9e`}],[`path`,{d:`M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2.01 2z`,key:`1yve0x`}]]),Moe=U(`saudi-riyal`,[[`path`,{d:`m20 19.5-5.5 1.2`,key:`1aenhr`}],[`path`,{d:`M14.5 4v11.22a1 1 0 0 0 1.242.97L20 15.2`,key:`2rtezt`}],[`path`,{d:`m2.978 19.351 5.549-1.363A2 2 0 0 0 10 16V2`,key:`1kbm92`}],[`path`,{d:`M20 10 4 13.5`,key:`8nums9`}]]),Noe=U(`save-off`,[[`path`,{d:`M13 13H8a1 1 0 0 0-1 1v7`,key:`h8g396`}],[`path`,{d:`M14 8h1`,key:`1lfen6`}],[`path`,{d:`M17 21v-4`,key:`1yknxs`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20.41 20.41A2 2 0 0 1 19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 .59-1.41`,key:`1t4vdl`}],[`path`,{d:`M29.5 11.5s5 5 4 5`,key:`zzn4i6`}],[`path`,{d:`M9 3h6.2a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V15`,key:`24cby9`}]]),Rv=U(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Poe=U(`scale`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]),Foe=U(`scale-3d`,[[`path`,{d:`M5 7v11a1 1 0 0 0 1 1h11`,key:`13dt1j`}],[`path`,{d:`M5.293 18.707 11 13`,key:`ezgbsx`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}],[`circle`,{cx:`5`,cy:`5`,r:`2`,key:`1gwv83`}]]),Ioe=U(`scan-barcode`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M8 7v10`,key:`23sfjj`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M17 7v10`,key:`578dap`}]]),Loe=U(`scaling`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M14 15H9v-5`,key:`pi4jk9`}],[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M21 3 9 15`,key:`15kdhq`}]]),Roe=U(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),zoe=U(`scan-face`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}]]),Boe=U(`scan-heart`,[[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 4.172 4.306l-3.447 3.62a1 1 0 0 1-1.449 0z`,key:`1ak1ef`}]]),Voe=U(`scan-line`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),zv=U(`scan-search`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]),Hoe=U(`scan-qr-code`,[[`path`,{d:`M17 12v4a1 1 0 0 1-1 1h-4`,key:`uk4fdo`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M17 8V7`,key:`q2g9wo`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M7 17h.01`,key:`19xn7k`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`rect`,{x:`7`,y:`7`,width:`5`,height:`5`,rx:`1`,key:`m9kyts`}]]),Uoe=U(`scan-text`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}]]),Woe=U(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Goe=U(`scissors-line-dashed`,[[`path`,{d:`M5.42 9.42 8 12`,key:`12pkuq`}],[`circle`,{cx:`4`,cy:`8`,r:`2`,key:`107mxr`}],[`path`,{d:`m14 6-8.58 8.58`,key:`gvzu5l`}],[`circle`,{cx:`4`,cy:`16`,r:`2`,key:`1ehqvc`}],[`path`,{d:`M10.8 14.8 14 18`,key:`ax7m9r`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),Koe=U(`school`,[[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M18 4.933V21`,key:`tjwmp4`}],[`path`,{d:`m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6`,key:`zywc2d`}],[`path`,{d:`m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11`,key:`1d4ql0`}],[`path`,{d:`M6 4.933V21`,key:`1ufz1j`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}]]),qoe=U(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),Joe=U(`scooter`,[[`path`,{d:`M21 4h-3.5l2 11.05`,key:`1gktiw`}],[`path`,{d:`M6.95 17h5.142c.523 0 .95-.406 1.063-.916a6.5 6.5 0 0 1 5.345-5.009`,key:`1bq3u3`}],[`circle`,{cx:`19.5`,cy:`17.5`,r:`2.5`,key:`e4zhv9`}],[`circle`,{cx:`4.5`,cy:`17.5`,r:`2.5`,key:`50vk4p`}]]),Yoe=U(`screen-share-off`,[[`path`,{d:`M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3`,key:`i8wdob`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m22 3-5 5`,key:`12jva0`}],[`path`,{d:`m17 3 5 5`,key:`k36vhe`}]]),Xoe=U(`screen-share`,[[`path`,{d:`M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3`,key:`i8wdob`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`m17 8 5-5`,key:`fqif7o`}],[`path`,{d:`M17 3h5v5`,key:`1o3tu8`}]]),Bv=U(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),Zoe=U(`scroll`,[[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),Qoe=U(`search-alert`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M11 7v4`,key:`m2edmq`}],[`path`,{d:`M11 15h.01`,key:`k85uqc`}]]),Vv=U(`search-check`,[[`path`,{d:`m8 11 2 2 4-4`,key:`1sed1v`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),$oe=U(`search-code`,[[`path`,{d:`m13 13.5 2-2.5-2-2.5`,key:`1rvxrh`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}],[`path`,{d:`M9 8.5 7 11l2 2.5`,key:`6ffwbx`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ese=U(`search-slash`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),tse=U(`search-x`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),Hv=U(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),nse=U(`section`,[[`path`,{d:`M16 5a4 3 0 0 0-8 0c0 4 8 3 8 7a4 3 0 0 1-8 0`,key:`vqan6v`}],[`path`,{d:`M8 19a4 3 0 0 0 8 0c0-4-8-3-8-7a4 3 0 0 1 8 0`,key:`wdjd8o`}]]),rse=U(`send-horizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),ise=U(`send-to-back`,[[`rect`,{x:`14`,y:`14`,width:`8`,height:`8`,rx:`2`,key:`1b0bso`}],[`rect`,{x:`2`,y:`2`,width:`8`,height:`8`,rx:`2`,key:`1x09vl`}],[`path`,{d:`M7 14v1a2 2 0 0 0 2 2h1`,key:`pao6x6`}],[`path`,{d:`M14 7h1a2 2 0 0 1 2 2v1`,key:`19tdru`}]]),ase=U(`separator-horizontal`,[[`path`,{d:`m16 16-4 4-4-4`,key:`3dv8je`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`m8 8 4-4 4 4`,key:`2bscm2`}]]),Uv=U(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),ose=U(`separator-vertical`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m16 16 4-4-4-4`,key:`1js579`}],[`path`,{d:`m8 8-4 4 4 4`,key:`1whems`}]]),sse=U(`server-crash`,[[`path`,{d:`M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2`,key:`4b9dqc`}],[`path`,{d:`M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2`,key:`22nnkd`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m13 6-4 6h6l-4 6`,key:`14hqih`}]]),cse=U(`server-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]),lse=U(`server-off`,[[`path`,{d:`M7 2h13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-5`,key:`bt2siv`}],[`path`,{d:`M10 10 2.5 2.5C2 2 2 2.5 2 5v3a2 2 0 0 0 2 2h6z`,key:`1hjrv1`}],[`path`,{d:`M22 17v-1a2 2 0 0 0-2-2h-1`,key:`1iynyr`}],[`path`,{d:`M4 14a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16.5l1-.5.5.5-8-8H4z`,key:`161ggg`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Wv=U(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Gv=U(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Kv=U(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),use=U(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),qv=U(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),dse=U(`sheet`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`3`,x2:`21`,y1:`9`,y2:`9`,key:`1vqk6q`}],[`line`,{x1:`3`,x2:`21`,y1:`15`,y2:`15`,key:`o2sbyz`}],[`line`,{x1:`9`,x2:`9`,y1:`9`,y2:`21`,key:`1ib60c`}],[`line`,{x1:`15`,x2:`15`,y1:`9`,y2:`21`,key:`1n26ft`}]]),fse=U(`share`,[[`path`,{d:`M12 2v13`,key:`1km8f5`}],[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}]]),pse=U(`shell`,[[`path`,{d:`M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44`,key:`1cn552`}]]),mse=U(`shelving-unit`,[[`path`,{d:`M12 12V9a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`wiz68x`}],[`path`,{d:`M16 20v-3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3`,key:`1b59c4`}],[`path`,{d:`M20 22V2`,key:`1bnhr8`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`M4 2v20`,key:`gtpd5x`}],[`path`,{d:`M4 4h16`,key:`1bkgr1`}]]),Jv=U(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),hse=U(`shield-ban`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m4.243 5.21 14.39 12.472`,key:`1c9a7c`}]]),Yv=U(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),gse=U(`shield-cog-corner`,[[`path`,{d:`M11 22c-3.806-1.45-7-3.966-7-9V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v4`,key:`hf1sz5`}],[`path`,{d:`M14.923 16.547 14 16.164`,key:`41f878`}],[`path`,{d:`m14.923 18.843-.923.383`,key:`82rvv5`}],[`path`,{d:`M16.547 14.923 16.164 14`,key:`1r7ypn`}],[`path`,{d:`m16.547 20.467-.383.924`,key:`au4kyj`}],[`path`,{d:`m18.843 14.923.383-.923`,key:`1cbrwq`}],[`path`,{d:`m19.225 21.391-.382-.924`,key:`1u2bh9`}],[`path`,{d:`m20.467 16.547.923-.383`,key:`cprboc`}],[`path`,{d:`m20.467 18.843.923.383`,key:`inm8l2`}],[`circle`,{cx:`17.695`,cy:`17.695`,r:`3`,key:`1i1rmh`}]]),_se=U(`shield-ellipsis`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}]]),vse=U(`shield-cog`,[[`path`,{d:`m10.929 14.467-.383.924`,key:`hdyevy`}],[`path`,{d:`M10.929 8.923 10.546 8`,key:`1nr44d`}],[`path`,{d:`M13.225 8.923 13.608 8`,key:`aewley`}],[`path`,{d:`m13.607 15.391-.382-.924`,key:`m37gf1`}],[`path`,{d:`m14.849 10.547.923-.383`,key:`1d3c4q`}],[`path`,{d:`m14.849 12.843.923.383`,key:`lmvhy3`}],[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9.305 10.547-.923-.383`,key:`1d13ox`}],[`path`,{d:`m9.305 12.843-.923.383`,key:`7wxwh5`}],[`circle`,{cx:`12.077`,cy:`11.695`,r:`3`,key:`fse9k8`}]]),Xv=U(`shield-half`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 22V2`,key:`zs6s6o`}]]),Zv=U(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),yse=U(`shield-minus`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}]]),bse=U(`shield-plus`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M12 9v6`,key:`199k2o`}]]),xse=U(`shield-question-mark`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Sse=U(`shield-user`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M6.376 18.91a6 6 0 0 1 11.249.003`,key:`hnjrf2`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}]]),Qv=U(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Cse=U(`ship-wheel`,[[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}],[`path`,{d:`M12 2v7.5`,key:`1e5rl5`}],[`path`,{d:`m19 5-5.23 5.23`,key:`1ezxxf`}],[`path`,{d:`M22 12h-7.5`,key:`le1719`}],[`path`,{d:`m19 19-5.23-5.23`,key:`p3fmgn`}],[`path`,{d:`M12 14.5V22`,key:`dgcmos`}],[`path`,{d:`M10.23 13.77 5 19`,key:`qwopd4`}],[`path`,{d:`M9.5 12H2`,key:`r7bup8`}],[`path`,{d:`M10.23 10.23 5 5`,key:`k2y7lj`}],[`circle`,{cx:`12`,cy:`12`,r:`2.5`,key:`ix0uyj`}]]),$v=U(`shield-x`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),ey=U(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),ty=U(`shirt`,[[`path`,{d:`M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z`,key:`1wgbhj`}]]),ny=U(`shopping-bag`,[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]),ry=U(`shopping-basket`,[[`path`,{d:`m15 11-1 9`,key:`5wnq3a`}],[`path`,{d:`m19 11-4-7`,key:`cnml18`}],[`path`,{d:`M2 11h20`,key:`3eubbj`}],[`path`,{d:`m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4`,key:`yiazzp`}],[`path`,{d:`M4.5 15.5h15`,key:`13mye1`}],[`path`,{d:`m5 11 4-7`,key:`116ra9`}],[`path`,{d:`m9 11 1 9`,key:`1ojof7`}]]),iy=U(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),ay=U(`shovel`,[[`path`,{d:`M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z`,key:`1gcedi`}],[`path`,{d:`M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z`,key:`pg9kv3`}],[`path`,{d:`m9 15 7.879-7.878`,key:`1o1zgh`}]]),oy=U(`shower-head`,[[`path`,{d:`m4 4 2.5 2.5`,key:`uv2vmf`}],[`path`,{d:`M13.5 6.5a4.95 4.95 0 0 0-7 7`,key:`frdkwv`}],[`path`,{d:`M15 5 5 15`,key:`1ag8rq`}],[`path`,{d:`M14 17v.01`,key:`eokfpp`}],[`path`,{d:`M10 16v.01`,key:`14uyyl`}],[`path`,{d:`M13 13v.01`,key:`1v1k97`}],[`path`,{d:`M16 10v.01`,key:`5169yg`}],[`path`,{d:`M11 20v.01`,key:`cj92p8`}],[`path`,{d:`M17 14v.01`,key:`11cswd`}],[`path`,{d:`M20 11v.01`,key:`19e0od`}]]),sy=U(`shredder`,[[`path`,{d:`M4 13V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1eob4r`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 22v-5`,key:`sfixh4`}],[`path`,{d:`M14 19v-2`,key:`pdve8j`}],[`path`,{d:`M18 20v-3`,key:`uox2gk`}],[`path`,{d:`M2 13h20`,key:`5evz65`}],[`path`,{d:`M6 20v-3`,key:`c6pdcb`}]]),cy=U(`shrimp`,[[`path`,{d:`M11 12h.01`,key:`1lr4k6`}],[`path`,{d:`M13 22c.5-.5 1.12-1 2.5-1-1.38 0-2-.5-2.5-1`,key:`fatpdi`}],[`path`,{d:`M14 2a3.28 3.28 0 0 1-3.227 1.798l-6.17-.561A2.387 2.387 0 1 0 4.387 8H15.5a1 1 0 0 1 0 13 1 1 0 0 0 0-5H12a7 7 0 0 1-7-7V8`,key:`kehrqe`}],[`path`,{d:`M14 8a8.5 8.5 0 0 1 0 8`,key:`1imjx2`}],[`path`,{d:`M16 16c2 0 4.5-4 4-6`,key:`z0nejz`}]]),ly=U(`shrink`,[[`path`,{d:`m15 15 6 6m-6-6v4.8m0-4.8h4.8`,key:`17vawe`}],[`path`,{d:`M9 19.8V15m0 0H4.2M9 15l-6 6`,key:`chjx8e`}],[`path`,{d:`M15 4.2V9m0 0h4.8M15 9l6-6`,key:`lav6yq`}],[`path`,{d:`M9 4.2V9m0 0H4.2M9 9 3 3`,key:`1pxi2q`}]]),uy=U(`shuffle`,[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]),dy=U(`shrub`,[[`path`,{d:`M12 22v-5.172a2 2 0 0 0-.586-1.414L9.5 13.5`,key:`1p17fm`}],[`path`,{d:`M14.5 14.5 12 17`,key:`dy5w4y`}],[`path`,{d:`M17 8.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0z`,key:`6z7b3o`}]]),fy=U(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),py=U(`signal-low`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}]]),my=U(`signal-high`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}]]),hy=U(`signal-medium`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}]]),gy=U(`signal-zero`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}]]),_y=U(`signpost-big`,[[`path`,{d:`M10 9H4L2 7l2-2h6`,key:`1hq7x2`}],[`path`,{d:`M14 5h6l2 2-2 2h-6`,key:`bv62ej`}],[`path`,{d:`M10 22V4a2 2 0 1 1 4 0v18`,key:`eqpcf2`}],[`path`,{d:`M8 22h8`,key:`rmew8v`}]]),vy=U(`signature`,[[`path`,{d:`m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284`,key:`y32ogt`}],[`path`,{d:`M3 21h18`,key:`itz85i`}]]),yy=U(`signal`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}],[`path`,{d:`M17 20V8`,key:`1tkaf5`}],[`path`,{d:`M22 4v16`,key:`sih9yq`}]]),by=U(`siren`,[[`path`,{d:`M7 18v-6a5 5 0 1 1 10 0v6`,key:`pcx96s`}],[`path`,{d:`M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z`,key:`1b4s83`}],[`path`,{d:`M21 12h1`,key:`jtio3y`}],[`path`,{d:`M18.5 4.5 18 5`,key:`g5sp9y`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`M12 2v1`,key:`11qlp1`}],[`path`,{d:`m4.929 4.929.707.707`,key:`1i51kw`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}]]),xy=U(`signpost`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M12 3v3`,key:`1n5kay`}],[`path`,{d:`M2.354 10.354a1.207 1.207 0 0 1 0-1.708l2.06-2.06A2 2 0 0 1 5.828 6h12.344a2 2 0 0 1 1.414.586l2.06 2.06a1.207 1.207 0 0 1 0 1.708l-2.06 2.06a2 2 0 0 1-1.414.586H5.828a2 2 0 0 1-1.414-.586z`,key:`1tm261`}]]),Sy=U(`skip-back`,[[`path`,{d:`M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`15892j`}],[`path`,{d:`M3 20V4`,key:`1ptbpl`}]]),Cy=U(`skip-forward`,[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]),wy=U(`skull`,[[`path`,{d:`m12.5 17-.5-1-.5 1h1z`,key:`3me087`}],[`path`,{d:`M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z`,key:`1o5pge`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}]]),Ty=U(`slash`,[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),Ey=U(`slice`,[[`path`,{d:`M11 16.586V19a1 1 0 0 1-1 1H2L18.37 3.63a1 1 0 1 1 3 3l-9.663 9.663a1 1 0 0 1-1.414 0L8 14`,key:`1sllp5`}]]),Dy=U(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Oy=U(`sliders-vertical`,[[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M12 21v-9`,key:`17s77i`}],[`path`,{d:`M12 8V3`,key:`13r4qs`}],[`path`,{d:`M17 16h4`,key:`h1uq16`}],[`path`,{d:`M19 12V3`,key:`o1uvq1`}],[`path`,{d:`M19 21v-5`,key:`qua636`}],[`path`,{d:`M3 14h4`,key:`bcjad9`}],[`path`,{d:`M5 10V3`,key:`cb8scm`}],[`path`,{d:`M5 21v-7`,key:`1w1uti`}]]),ky=U(`smartphone-charging`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12.667 8 10 12h4l-2.667 4`,key:`h9lk2d`}]]),Ay=U(`smartphone-nfc`,[[`rect`,{width:`7`,height:`12`,x:`2`,y:`6`,rx:`1`,key:`5nje8w`}],[`path`,{d:`M13 8.32a7.43 7.43 0 0 1 0 7.36`,key:`1g306n`}],[`path`,{d:`M16.46 6.21a11.76 11.76 0 0 1 0 11.58`,key:`uqvjvo`}],[`path`,{d:`M19.91 4.1a15.91 15.91 0 0 1 .01 15.8`,key:`ujntz3`}]]),jy=U(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),My=U(`smile-plus`,[[`path`,{d:`M22 11v1a10 10 0 1 1-9-10`,key:`ew0xw9`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}],[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}]]),Ny=U(`smile`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Py=U(`snail`,[[`path`,{d:`M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0`,key:`hneq2s`}],[`circle`,{cx:`10`,cy:`13`,r:`8`,key:`194lz3`}],[`path`,{d:`M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6`,key:`ixqyt7`}],[`path`,{d:`M18 3 19.1 5.2`,key:`9tjm43`}],[`path`,{d:`M22 3 20.9 5.2`,key:`j3odrs`}]]),Fy=U(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),Iy=U(`sofa`,[[`path`,{d:`M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3`,key:`1dgpiv`}],[`path`,{d:`M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z`,key:`xacw8m`}],[`path`,{d:`M4 18v2`,key:`jwo5n2`}],[`path`,{d:`M20 18v2`,key:`1ar1qi`}],[`path`,{d:`M12 4v9`,key:`oqhhn3`}]]),Ly=U(`soap-dispenser-droplet`,[[`path`,{d:`M10.5 2v4`,key:`1xt6in`}],[`path`,{d:`M14 2H7a2 2 0 0 0-2 2`,key:`e6xig3`}],[`path`,{d:`M19.29 14.76A6.67 6.67 0 0 1 17 11a6.6 6.6 0 0 1-2.29 3.76c-1.15.92-1.71 2.04-1.71 3.19 0 2.22 1.8 4.05 4 4.05s4-1.83 4-4.05c0-1.16-.57-2.26-1.71-3.19`,key:`adq7uc`}],[`path`,{d:`M9.607 21H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h7V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3`,key:`t9hm96`}]]),Ry=U(`solar-panel`,[[`path`,{d:`M11 2h2`,key:`isr7bz`}],[`path`,{d:`m14.28 14-4.56 8`,key:`4anwcf`}],[`path`,{d:`m21 22-1.558-4H4.558`,key:`enk13h`}],[`path`,{d:`M3 10v2`,key:`w8mti9`}],[`path`,{d:`M6.245 15.04A2 2 0 0 1 8 14h12a1 1 0 0 1 .864 1.505l-3.11 5.457A2 2 0 0 1 16 22H4a1 1 0 0 1-.863-1.506z`,key:`pouggg`}],[`path`,{d:`M7 2a4 4 0 0 1-4 4`,key:`78s8of`}],[`path`,{d:`m8.66 7.66 1.41 1.41`,key:`1vaqj8`}]]),zy=U(`soup`,[[`path`,{d:`M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z`,key:`4rw317`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`path`,{d:`M19.5 12 22 6`,key:`shfsr5`}],[`path`,{d:`M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62`,key:`rpc6vp`}],[`path`,{d:`M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62`,key:`1lf63m`}],[`path`,{d:`M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62`,key:`97tijn`}]]),By=U(`space`,[[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),Vy=U(`spade`,[[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`M2 14.499a5.5 5.5 0 0 0 9.591 3.675.6.6 0 0 1 .818.001A5.5 5.5 0 0 0 22 14.5c0-2.29-1.5-4-3-5.5l-5.492-5.312a2 2 0 0 0-3-.02L5 8.999c-1.5 1.5-3 3.2-3 5.5`,key:`1aw2pz`}]]),Hy=U(`sparkle`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}]]),Uy=U(`speaker`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`circle`,{cx:`12`,cy:`14`,r:`4`,key:`1jruaj`}],[`path`,{d:`M12 14h.01`,key:`1etili`}]]),Wy=U(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Gy=U(`speech`,[[`path`,{d:`M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20`,key:`11atix`}],[`path`,{d:`M19.8 17.8a7.5 7.5 0 0 0 .003-10.603`,key:`yol142`}],[`path`,{d:`M17 15a3.5 3.5 0 0 0-.025-4.975`,key:`ssbmkc`}]]),Ky=U(`spell-check-2`,[[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1`,key:`8mdmtu`}]]),qy=U(`spell-check`,[[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m16 20 2 2 4-4`,key:`13tcca`}]]),Jy=U(`spline-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}],[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}]]),Yy=U(`split`,[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M8 3H3v5`,key:`15dfkv`}],[`path`,{d:`M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3`,key:`1qrqzj`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}]]),Xy=U(`spline`,[[`circle`,{cx:`19`,cy:`5`,r:`2`,key:`mhkx31`}],[`circle`,{cx:`5`,cy:`19`,r:`2`,key:`v8kfzx`}],[`path`,{d:`M5 17A12 12 0 0 1 17 5`,key:`1okkup`}]]),Zy=U(`spool`,[[`path`,{d:`M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66`,key:`13vns8`}],[`path`,{d:`m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178`,key:`s8x3u0`}]]),Qy=U(`sport-shoe`,[[`path`,{d:`m15 10.42 4.8-5.07`,key:`10at9d`}],[`path`,{d:`M19 18h3`,key:`nnkd4d`}],[`path`,{d:`M9.5 22 21.414 9.415A2 2 0 0 0 21.2 6.4l-5.61-4.208A1 1 0 0 0 14 3v2a2 2 0 0 1-1.394 1.906L8.677 8.053A1 1 0 0 0 8 9c-.155 6.393-2.082 9-4 9a2 2 0 0 0 0 4h14`,key:`v410ed`}]]),$y=U(`spotlight`,[[`path`,{d:`M15.295 19.562 16 22`,key:`31jsb7`}],[`path`,{d:`m17 16 3.758 2.098`,key:`121ar7`}],[`path`,{d:`m19 12.5 3.026-.598`,key:`19ukd3`}],[`path`,{d:`M7.61 6.3a3 3 0 0 0-3.92 1.3l-1.38 2.79a3 3 0 0 0 1.3 3.91l6.89 3.597a1 1 0 0 0 1.342-.447l3.106-6.211a1 1 0 0 0-.447-1.341z`,key:`lwb9l9`}],[`path`,{d:`M8 9V2`,key:`1xa0v7`}]]),eb=U(`spray-can`,[[`path`,{d:`M3 3h.01`,key:`159qn6`}],[`path`,{d:`M7 5h.01`,key:`1hq22a`}],[`path`,{d:`M11 7h.01`,key:`1osv80`}],[`path`,{d:`M3 7h.01`,key:`1xzrh3`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}],[`path`,{d:`M3 11h.01`,key:`1eifu7`}],[`rect`,{width:`4`,height:`4`,x:`15`,y:`5`,key:`mri9e4`}],[`path`,{d:`m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2`,key:`aib6hk`}],[`path`,{d:`m13 14 8-2`,key:`1d7bmk`}],[`path`,{d:`m13 19 8-2`,key:`1y2vml`}]]),tb=U(`square-activity`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M17 12h-2l-2 5-2-10-2 5H7`,key:`15hlnc`}]]),nb=U(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),rb=U(`square-arrow-down-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 8-8 8`,key:`166keh`}],[`path`,{d:`M16 16H8V8`,key:`1w2ppm`}]]),ib=U(`square-arrow-down-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m8 8 8 8`,key:`1imecy`}],[`path`,{d:`M16 8v8H8`,key:`1lbpgo`}]]),ab=U(`square-arrow-down`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8 12 4 4 4-4`,key:`k98ssh`}]]),ob=U(`square-arrow-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m12 8-4 4 4 4`,key:`15vm53`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}]]),sb=U(`square-arrow-out-down-left`,[[`path`,{d:`M13 21h6a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6`,key:`14qz4y`}],[`path`,{d:`m3 21 9-9`,key:`1jfql5`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),cb=U(`square-arrow-out-down-right`,[[`path`,{d:`M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`14rsvq`}],[`path`,{d:`m21 21-9-9`,key:`1et2py`}],[`path`,{d:`M21 15v6h-6`,key:`1jko0i`}]]),lb=U(`square-arrow-out-up-left`,[[`path`,{d:`M13 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6`,key:`14mv1t`}],[`path`,{d:`m3 3 9 9`,key:`rks13r`}],[`path`,{d:`M3 9V3h6`,key:`ira0h2`}]]),ub=U(`square-arrow-out-up-right`,[[`path`,{d:`M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6`,key:`y09zxi`}],[`path`,{d:`m21 3-9 9`,key:`mpx6sq`}],[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}]]),db=U(`square-arrow-right-enter`,[[`path`,{d:`m10 16 4-4-4-4`,key:`w9835o`}],[`path`,{d:`M3 12h11`,key:`pmja8f`}],[`path`,{d:`M3 8V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3`,key:`1bqs5q`}]]),fb=U(`square-arrow-right-exit`,[[`path`,{d:`M10 12h11`,key:`6m4ad9`}],[`path`,{d:`m17 16 4-4-4-4`,key:`iin4zf`}],[`path`,{d:`M21 6.344V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.344`,key:`1ojbhp`}]]),pb=U(`square-arrow-up-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 16V8h8`,key:`19xb1h`}],[`path`,{d:`M16 16 8 8`,key:`1qdy8n`}]]),mb=U(`square-arrow-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`m12 16 4-4-4-4`,key:`1i9zcv`}]]),hb=U(`square-arrow-up-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 8h8v8`,key:`b65dnt`}],[`path`,{d:`m8 16 8-8`,key:`13b9ih`}]]),gb=U(`square-asterisk`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 8v8`,key:`napkw2`}],[`path`,{d:`m8.5 14 7-4`,key:`12hpby`}],[`path`,{d:`m8.5 10 7 4`,key:`wwy2dy`}]]),_b=U(`square-arrow-up`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),vb=U(`square-bottom-dashed-scissors`,[[`line`,{x1:`5`,y1:`3`,x2:`19`,y2:`3`,key:`x74652`}],[`line`,{x1:`3`,y1:`5`,x2:`3`,y2:`19`,key:`31ivqu`}],[`line`,{x1:`21`,y1:`5`,x2:`21`,y2:`19`,key:`1am4cd`}],[`line`,{x1:`9`,y1:`21`,x2:`10`,y2:`21`,key:`sb02er`}],[`line`,{x1:`14`,y1:`21`,x2:`15`,y2:`21`,key:`1bvb1m`}],[`path`,{d:`M 3 5 A2 2 0 0 1 5 3`,key:`dbypyf`}],[`path`,{d:`M 19 3 A2 2 0 0 1 21 5`,key:`y6haui`}],[`path`,{d:`M 5 21 A2 2 0 0 1 3 19`,key:`kb75wq`}],[`path`,{d:`M 21 19 A2 2 0 0 1 19 21`,key:`1p3zbf`}],[`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,key:`cn5opk`}],[`line`,{x1:`9.56066`,y1:`9.56066`,x2:`12`,y2:`12`,key:`mksg6j`}],[`line`,{x1:`17`,y1:`17`,x2:`14.82`,y2:`14.82`,key:`1lwi1d`}],[`circle`,{cx:`8.5`,cy:`15.5`,r:`1.5`,key:`12hfy1`}],[`line`,{x1:`9.56066`,y1:`14.43934`,x2:`17`,y2:`7`,key:`4jyfgs`}]]),yb=U(`square-centerline-dashed-horizontal`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3`,key:`1i73f7`}],[`path`,{d:`M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3`,key:`saxlbk`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 2v2`,key:`tus03m`}]]),bb=U(`square-chart-gantt`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 8h7`,key:`kbo1nt`}],[`path`,{d:`M8 12h6`,key:`ikassy`}],[`path`,{d:`M11 16h5`,key:`oq65wt`}]]),xb=U(`square-centerline-dashed-vertical`,[[`path`,{d:`M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3`,key:`14bfxa`}],[`path`,{d:`M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3`,key:`14rx03`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}]]),Sb=U(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Cb=U(`square-check`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),wb=U(`square-chevron-down`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 10-4 4-4-4`,key:`894hmk`}]]),Tb=U(`square-chevron-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m10 8 4 4-4 4`,key:`1wy4r4`}]]),Eb=U(`square-chevron-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m14 16-4-4 4-4`,key:`ojs7w8`}]]),Db=U(`square-chevron-up`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m8 14 4-4 4 4`,key:`fy2ptz`}]]),Ob=U(`square-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),kb=U(`square-dashed-bottom-code`,[[`path`,{d:`M10 9.5 8 12l2 2.5`,key:`3mjy60`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`m14 9.5 2 2.5-2 2.5`,key:`1bir2l`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2`,key:`as5y1o`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}]]),Ab=U(`square-dashed-bottom`,[[`path`,{d:`M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2`,key:`as5y1o`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}]]),jb=U(`square-dashed-kanban`,[[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}]]),Mb=U(`square-dashed-mouse-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h2`,key:`1qve2z`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v2`,key:`p14lih`}],[`path`,{d:`M3 14v1`,key:`vnatye`}]]),Nb=U(`square-dashed-text`,[[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h6`,key:`1vyc9m`}],[`path`,{d:`M7 8h8`,key:`1jbsf9`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M9 3h1`,key:`1yesri`}]]),Pb=U(`square-dashed-top-solid`,[[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M21 14v1`,key:`169vum`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2`,key:`89voep`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}]]),Fb=U(`square-divide`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}],[`line`,{x1:`12`,x2:`12`,y1:`16`,y2:`16`,key:`aqc6ln`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`8`,key:`1mkcni`}]]),Ib=U(`square-dot`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Lb=U(`square-dashed`,[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]]),Rb=U(`square-equal`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M7 14h10`,key:`1mhdw3`}]]),zb=U(`square-function`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3`,key:`m1af9g`}],[`path`,{d:`M9 11.2h5.7`,key:`3zgcl2`}]]),Bb=U(`square-kanban`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]]),Vb=U(`square-library`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7v10`,key:`d5nglc`}],[`path`,{d:`M11 7v10`,key:`pptsnr`}],[`path`,{d:`m15 7 2 10`,key:`1m7qm5`}]]),Hb=U(`square-m`,[[`path`,{d:`M8 16V8.5a.5.5 0 0 1 .9-.3l2.7 3.599a.5.5 0 0 0 .8 0l2.7-3.6a.5.5 0 0 1 .9.3V16`,key:`1ywlsj`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Ub=U(`square-menu`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 8h10`,key:`1jw688`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h10`,key:`wp8him`}]]),Wb=U(`square-minus`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Gb=U(`square-mouse-pointer`,[[`path`,{d:`M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z`,key:`xwnzip`}],[`path`,{d:`M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6`,key:`14rsvq`}]]),Kb=U(`square-parking-off`,[[`path`,{d:`M3.6 3.6A2 2 0 0 1 5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-.59 1.41`,key:`9l1ft6`}],[`path`,{d:`M3 8.7V19a2 2 0 0 0 2 2h10.3`,key:`17knke`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M13 13a3 3 0 1 0 0-6H9v2`,key:`uoagbd`}],[`path`,{d:`M9 17v-2.3`,key:`1jxgo2`}]]),qb=U(`square-pause`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),Jb=U(`square-parking`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),Yb=U(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Xb=U(`square-percent`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),Zb=U(`square-pi`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 7h10`,key:`udp07y`}],[`path`,{d:`M10 7v10`,key:`i1d9ee`}],[`path`,{d:`M16 17a2 2 0 0 1-2-2V7`,key:`ftwdc7`}]]),Qb=U(`square-pilcrow`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 12H9.5a2.5 2.5 0 0 1 0-5H17`,key:`1l9586`}],[`path`,{d:`M12 7v10`,key:`jspqdw`}],[`path`,{d:`M16 7v10`,key:`lavkr4`}]]),$b=U(`square-plus`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),ex=U(`square-play`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}]]),tx=U(`square-power`,[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M7.998 9.003a5 5 0 1 0 8-.005`,key:`1pek45`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),nx=U(`square-radical`,[[`path`,{d:`M7 12h2l2 5 2-10h4`,key:`1fxv6h`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),rx=U(`square-round-corner`,[[`path`,{d:`M21 11a8 8 0 0 0-8-8`,key:`1lxwo5`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1dv2y5`}]]),ix=U(`square-scissors`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`,key:`cn5opk`}],[`line`,{x1:`9.56066`,y1:`9.56066`,x2:`12`,y2:`12`,key:`mksg6j`}],[`line`,{x1:`17`,y1:`17`,x2:`14.82`,y2:`14.82`,key:`1lwi1d`}],[`circle`,{cx:`8.5`,cy:`15.5`,r:`1.5`,key:`12hfy1`}],[`line`,{x1:`9.56066`,y1:`14.43934`,x2:`17`,y2:`7`,key:`4jyfgs`}]]),ax=U(`square-sigma`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M16 8.9V7H8l4 5-4 5h8v-1.9`,key:`9nih0i`}]]),ox=U(`square-slash`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),sx=U(`square-split-horizontal`,[[`path`,{d:`M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3`,key:`lubmu8`}],[`path`,{d:`M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3`,key:`1ag34g`}],[`line`,{x1:`12`,x2:`12`,y1:`4`,y2:`20`,key:`1tx1rr`}]]),cx=U(`square-split-vertical`,[[`path`,{d:`M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3`,key:`1pi83i`}],[`path`,{d:`M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3`,key:`ido5k7`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),lx=U(`square-square`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),ux=U(`square-stack`,[[`path`,{d:`M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2`,key:`4i38lg`}],[`path`,{d:`M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2`,key:`mlte4a`}],[`rect`,{width:`8`,height:`8`,x:`14`,y:`14`,rx:`2`,key:`1fa9i4`}]]),dx=U(`square-star`,[[`path`,{d:`M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`13edca`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),fx=U(`square-stop`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),px=U(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),mx=U(`square-user-round`,[[`path`,{d:`M18 21a6 6 0 0 0-12 0`,key:`kaz2du`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),hx=U(`square-x`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),gx=U(`square-user`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 21v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2`,key:`1m6ac2`}]]),_x=U(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),vx=U(`squares-exclude`,[[`path`,{d:`M16 12v2a2 2 0 0 1-2 2H9a1 1 0 0 0-1 1v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2h0`,key:`1mcohs`}],[`path`,{d:`M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 1-1 1h-5a2 2 0 0 0-2 2v2`,key:`1r1efp`}]]),yx=U(`squares-intersect`,[[`path`,{d:`M10 22a2 2 0 0 1-2-2`,key:`i7yj1i`}],[`path`,{d:`M14 2a2 2 0 0 1 2 2`,key:`170a0m`}],[`path`,{d:`M16 22h-2`,key:`18d249`}],[`path`,{d:`M2 10V8`,key:`7yj4fe`}],[`path`,{d:`M2 4a2 2 0 0 1 2-2`,key:`ddgnws`}],[`path`,{d:`M20 8a2 2 0 0 1 2 2`,key:`1770vt`}],[`path`,{d:`M22 14v2`,key:`iot8ja`}],[`path`,{d:`M22 20a2 2 0 0 1-2 2`,key:`qj8q6g`}],[`path`,{d:`M4 16a2 2 0 0 1-2-2`,key:`1dnafg`}],[`path`,{d:`M8 10a2 2 0 0 1 2-2h5a1 1 0 0 1 1 1v5a2 2 0 0 1-2 2H9a1 1 0 0 1-1-1z`,key:`ci6f0b`}],[`path`,{d:`M8 2h2`,key:`1gmkwm`}]]),bx=U(`squares-subtract`,[[`path`,{d:`M10 22a2 2 0 0 1-2-2`,key:`i7yj1i`}],[`path`,{d:`M16 22h-2`,key:`18d249`}],[`path`,{d:`M16 4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3a1 1 0 0 0 1-1v-5a2 2 0 0 1 2-2h5a1 1 0 0 0 1-1z`,key:`1njgbb`}],[`path`,{d:`M20 8a2 2 0 0 1 2 2`,key:`1770vt`}],[`path`,{d:`M22 14v2`,key:`iot8ja`}],[`path`,{d:`M22 20a2 2 0 0 1-2 2`,key:`qj8q6g`}]]),xx=U(`squares-unite`,[[`path`,{d:`M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 0 1 1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-3a1 1 0 0 0-1-1z`,key:`17jnth`}]]),Sx=U(`squircle-dashed`,[[`path`,{d:`M13.77 3.043a34 34 0 0 0-3.54 0`,key:`1oaobr`}],[`path`,{d:`M13.771 20.956a33 33 0 0 1-3.541.001`,key:`95iq0j`}],[`path`,{d:`M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44`,key:`1u6qty`}],[`path`,{d:`M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438`,key:`1ew6g6`}],[`path`,{d:`M20.957 10.23a33 33 0 0 1 0 3.54`,key:`1l9npr`}],[`path`,{d:`M3.043 10.23a34 34 0 0 0 .001 3.541`,key:`1it6jm`}],[`path`,{d:`M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438`,key:`14uchd`}],[`path`,{d:`M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44`,key:`8k4agb`}]]),Cx=U(`squircle`,[[`path`,{d:`M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9-9-1.8-9-9 1.8-9 9-9`,key:`garfkc`}]]),wx=U(`squirrel`,[[`path`,{d:`M15.236 22a3 3 0 0 0-2.2-5`,key:`21bitc`}],[`path`,{d:`M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4`,key:`oh0fg0`}],[`path`,{d:`M18 13h.01`,key:`9veqaj`}],[`path`,{d:`M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10`,key:`980v8a`}]]),Tx=U(`star-half`,[[`path`,{d:`M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2`,key:`2ksp49`}]]),Ex=U(`stamp`,[[`path`,{d:`M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13`,key:`i9gjdv`}],[`path`,{d:`M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z`,key:`1vzg3v`}],[`path`,{d:`M5 22h14`,key:`ehvnwv`}]]),Dx=U(`star-off`,[[`path`,{d:`m10.344 4.688 1.181-2.393a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.237 3.152`,key:`19ctli`}],[`path`,{d:`m17.945 17.945.43 2.505a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a8 8 0 0 0 .4-.099`,key:`ptqqvy`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Ox=U(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),kx=U(`step-forward`,[[`path`,{d:`M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`1ystz2`}],[`path`,{d:`M3 4v16`,key:`1ph11n`}]]),Ax=U(`step-back`,[[`path`,{d:`M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`19qhus`}],[`path`,{d:`M21 20V4`,key:`cb8qj8`}]]),jx=U(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Mx=U(`sticker`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M10 16s.8 1 2 1c1.3 0 2-1 2-1`,key:`1vvgv3`}]]),Nx=U(`sticky-note-check`,[[`path`,{d:`m15 19 2 2 4-4`,key:`1wqv71`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M21 13V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6.5`,key:`1onoss`}]]),Px=U(`sticky-note-minus`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M21 14V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.35`,key:`g18rj4`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Fx=U(`sticky-note-off`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M3.586 3.586A2 2 0 0 0 3 5v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.414-.586`,key:`12nghy`}],[`path`,{d:`M8.656 3H15a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 21 9v6.344`,key:`134c6x`}]]),Ix=U(`sticky-note-plus`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`M18 15v6`,key:`9wciyi`}],[`path`,{d:`M21 12.356V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.355`,key:`12ish9`}],[`path`,{d:`M21 18h-6`,key:`139f0c`}]]),Lx=U(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),Rx=U(`sticky-note-x`,[[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}],[`path`,{d:`m16 16 5 5`,key:`8tpb07`}],[`path`,{d:`M21 12V9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7`,key:`156tez`}],[`path`,{d:`m21 16-5 5`,key:`kplof2`}]]),zx=U(`stone`,[[`path`,{d:`M11.264 2.205A4 4 0 0 0 6.42 4.211l-4 8a4 4 0 0 0 1.359 5.117l6 4a4 4 0 0 0 4.438 0l6-4a4 4 0 0 0 1.576-4.592l-2-6a4 4 0 0 0-2.53-2.53z`,key:`1si4ox`}],[`path`,{d:`M11.99 22 14 12l7.822 3.184`,key:`1u8to0`}],[`path`,{d:`M14 12 8.47 2.302`,key:`guo3d5`}]]),Bx=U(`sticky-notes`,[[`path`,{d:`M10 8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 16 14v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2z`,key:`19nc0g`}],[`path`,{d:`M10 8v5a1 1 0 0 0 1 1h5`,key:`m3law1`}],[`path`,{d:`M8 4a2 2 0 0 1 2-2h6a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 22 8v6a2 2 0 0 1-2 2`,key:`1iu1qd`}],[`path`,{d:`M16 2v5a1 1 0 0 0 1 1h5`,key:`af171p`}]]),Vx=U(`store`,[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]),Hx=U(`stretch-horizontal`,[[`rect`,{width:`20`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`qdearl`}],[`rect`,{width:`20`,height:`6`,x:`2`,y:`14`,rx:`2`,key:`1xrn6j`}]]),Ux=U(`stretch-vertical`,[[`rect`,{width:`6`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`19qu7m`}],[`rect`,{width:`6`,height:`20`,x:`14`,y:`2`,rx:`2`,key:`24v0nk`}]]),Wx=U(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),Gx=U(`subscript`,[[`path`,{d:`m4 5 8 8`,key:`1eunvl`}],[`path`,{d:`m12 5-8 8`,key:`1ah0jp`}],[`path`,{d:`M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07`,key:`e8ta8j`}]]),Kx=U(`sun-dim`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 4h.01`,key:`1ujb9j`}],[`path`,{d:`M20 12h.01`,key:`1ykeid`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M4 12h.01`,key:`158zrr`}],[`path`,{d:`M17.657 6.343h.01`,key:`31pqzk`}],[`path`,{d:`M17.657 17.657h.01`,key:`jehnf4`}],[`path`,{d:`M6.343 17.657h.01`,key:`gdk6ow`}],[`path`,{d:`M6.343 6.343h.01`,key:`1uurf0`}]]),qx=U(`sun-medium`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 3v1`,key:`1asbbs`}],[`path`,{d:`M12 20v1`,key:`1wcdkc`}],[`path`,{d:`M3 12h1`,key:`lp3yf2`}],[`path`,{d:`M20 12h1`,key:`1vloll`}],[`path`,{d:`m18.364 5.636-.707.707`,key:`1hakh0`}],[`path`,{d:`m6.343 17.657-.707.707`,key:`18m9nf`}],[`path`,{d:`m5.636 5.636.707.707`,key:`1xv1c5`}],[`path`,{d:`m17.657 17.657.707.707`,key:`vl76zb`}]]),Jx=U(`sun-moon`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715`,key:`xlf6rm`}],[`path`,{d:`M16 12a4 4 0 0 0-4-4`,key:`6vsxu`}],[`path`,{d:`m19 5-1.256 1.256`,key:`1yg6a6`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}]]),Yx=U(`sun-snow`,[[`path`,{d:`M10 21v-1`,key:`1u8rkd`}],[`path`,{d:`M10 4V3`,key:`pkzwkn`}],[`path`,{d:`M10 9a3 3 0 0 0 0 6`,key:`gv75dk`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6 1.5-3H22`,key:`o5qa3v`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`m3.64 18.36.7-.7`,key:`105rm9`}],[`path`,{d:`m4.34 6.34-.7-.7`,key:`d3unjp`}]]),Xx=U(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Zx=U(`sunrise`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),Qx=U(`sunset`,[[`path`,{d:`M12 10V2`,key:`16sf7g`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),$x=U(`superscript`,[[`path`,{d:`m4 19 8-8`,key:`hr47gm`}],[`path`,{d:`m12 19-8-8`,key:`1dhhmo`}],[`path`,{d:`M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06`,key:`1dfcux`}]]),eS=U(`swatch-book`,[[`path`,{d:`M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z`,key:`1ldrpk`}],[`path`,{d:`M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7`,key:`11i5po`}],[`path`,{d:`M 7 17h.01`,key:`1euzgo`}],[`path`,{d:`m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8`,key:`o2gii7`}]]),tS=U(`swiss-franc`,[[`path`,{d:`M10 21V3h8`,key:`br2l0g`}],[`path`,{d:`M6 16h9`,key:`2py0wn`}],[`path`,{d:`M10 9.5h7`,key:`13dmhz`}]]),nS=U(`switch-camera`,[[`path`,{d:`M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5`,key:`mtk2lu`}],[`path`,{d:`M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5`,key:`120jsl`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m18 22-3-3 3-3`,key:`kgdoj7`}],[`path`,{d:`m6 2 3 3-3 3`,key:`1fnbkv`}]]),rS=U(`swords`,[[`polyline`,{points:`14.5 17.5 3 6 3 3 6 3 17.5 14.5`,key:`1hfsw2`}],[`line`,{x1:`13`,x2:`19`,y1:`19`,y2:`13`,key:`1vrmhu`}],[`line`,{x1:`16`,x2:`20`,y1:`16`,y2:`20`,key:`1bron3`}],[`line`,{x1:`19`,x2:`21`,y1:`21`,y2:`19`,key:`13pww6`}],[`polyline`,{points:`14.5 6.5 18 3 21 3 21 6 17.5 9.5`,key:`hbey2j`}],[`line`,{x1:`5`,x2:`9`,y1:`14`,y2:`18`,key:`1hf58s`}],[`line`,{x1:`7`,x2:`4`,y1:`17`,y2:`20`,key:`pidxm4`}],[`line`,{x1:`3`,x2:`5`,y1:`19`,y2:`21`,key:`1pehsh`}]]),iS=U(`sword`,[[`path`,{d:`m11 19-6-6`,key:`s7kpr`}],[`path`,{d:`m5 21-2-2`,key:`1kw20b`}],[`path`,{d:`m8 16-4 4`,key:`1oqv8h`}],[`path`,{d:`M9.5 17.5 21 6V3h-3L6.5 14.5`,key:`pkxemp`}]]),aS=U(`syringe`,[[`path`,{d:`m18 2 4 4`,key:`22kx64`}],[`path`,{d:`m17 7 3-3`,key:`1w1zoj`}],[`path`,{d:`M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5`,key:`1exhtz`}],[`path`,{d:`m9 11 4 4`,key:`rovt3i`}],[`path`,{d:`m5 19-3 3`,key:`59f2uf`}],[`path`,{d:`m14 4 6 6`,key:`yqp9t2`}]]),oS=U(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),sS=U(`table-cells-merge`,[[`path`,{d:`M12 21v-6`,key:`lihzve`}],[`path`,{d:`M12 9V3`,key:`da5inc`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),cS=U(`table-cells-split`,[[`path`,{d:`M12 15V9`,key:`8c7uyn`}],[`path`,{d:`M3 15h18`,key:`5xshup`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),lS=U(`table-columns-split`,[[`path`,{d:`M14 14v2`,key:`w2a1xv`}],[`path`,{d:`M14 20v2`,key:`1lq872`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M14 8v2`,key:`i67w9a`}],[`path`,{d:`M2 15h8`,key:`82wtch`}],[`path`,{d:`M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2`,key:`up0l64`}],[`path`,{d:`M2 9h8`,key:`yelfik`}],[`path`,{d:`M22 15h-4`,key:`1es58f`}],[`path`,{d:`M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2`,key:`pdjoqf`}],[`path`,{d:`M22 9h-4`,key:`1luja7`}],[`path`,{d:`M5 3v18`,key:`14hmio`}]]),uS=U(`table-of-contents`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M16 12H3`,key:`1a2rj7`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M21 5h.01`,key:`wa75ra`}],[`path`,{d:`M21 12h.01`,key:`msek7k`}],[`path`,{d:`M21 19h.01`,key:`qvbq2j`}]]),dS=U(`table-properties`,[[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M21 9H3`,key:`1338ky`}],[`path`,{d:`M21 15H3`,key:`9uk58r`}]]),fS=U(`table-rows-split`,[[`path`,{d:`M14 10h2`,key:`1lstlu`}],[`path`,{d:`M15 22v-8`,key:`1fwwgm`}],[`path`,{d:`M15 2v4`,key:`1044rn`}],[`path`,{d:`M2 10h2`,key:`1r8dkt`}],[`path`,{d:`M20 10h2`,key:`1ug425`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6`,key:`ibqhof`}],[`path`,{d:`M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2`,key:`1uenja`}],[`path`,{d:`M8 10h2`,key:`66od0`}],[`path`,{d:`M9 22v-8`,key:`fmnu31`}],[`path`,{d:`M9 2v4`,key:`j1yeou`}]]),pS=U(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),mS=U(`tablet-smartphone`,[[`rect`,{width:`10`,height:`14`,x:`3`,y:`8`,rx:`2`,key:`1vrsiq`}],[`path`,{d:`M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4`,key:`1j4zmg`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]),hS=U(`tablet`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]),gS=U(`tablets`,[[`circle`,{cx:`7`,cy:`7`,r:`5`,key:`x29byf`}],[`circle`,{cx:`17`,cy:`17`,r:`5`,key:`1op1d2`}],[`path`,{d:`M12 17h10`,key:`ls21zv`}],[`path`,{d:`m3.46 10.54 7.08-7.08`,key:`1rehiu`}]]),_S=U(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),vS=U(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),yS=U(`tally-1`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),bS=U(`tally-2`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}]]),xS=U(`tally-3`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}]]),SS=U(`tally-4`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}],[`path`,{d:`M19 4v16`,key:`8ij5ei`}]]),CS=U(`tally-5`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}],[`path`,{d:`M19 4v16`,key:`8ij5ei`}],[`path`,{d:`M22 6 2 18`,key:`h9moai`}]]),wS=U(`tangent`,[[`circle`,{cx:`17`,cy:`4`,r:`2`,key:`y5j2s2`}],[`path`,{d:`M15.59 5.41 5.41 15.59`,key:`l0vprr`}],[`circle`,{cx:`4`,cy:`17`,r:`2`,key:`9p4efm`}],[`path`,{d:`M12 22s-4-9-1.5-11.5S22 12 22 12`,key:`1twk4o`}]]),TS=U(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),ES=U(`telescope`,[[`path`,{d:`m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44`,key:`k4qptu`}],[`path`,{d:`m13.56 11.747 4.332-.924`,key:`19l80z`}],[`path`,{d:`m16 21-3.105-6.21`,key:`7oh9d`}],[`path`,{d:`M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z`,key:`m7xp4m`}],[`path`,{d:`m6.158 8.633 1.114 4.456`,key:`74o979`}],[`path`,{d:`m8 21 3.105-6.21`,key:`1fvxut`}],[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}]]),DS=U(`tent-tree`,[[`circle`,{cx:`4`,cy:`4`,r:`2`,key:`bt5ra8`}],[`path`,{d:`m14 5 3-3 3 3`,key:`1sorif`}],[`path`,{d:`m14 10 3-3 3 3`,key:`1jyi9h`}],[`path`,{d:`M17 14V2`,key:`8ymqnk`}],[`path`,{d:`M17 14H7l-5 8h20Z`,key:`13ar7p`}],[`path`,{d:`M8 14v8`,key:`1ghmqk`}],[`path`,{d:`m9 14 5 8`,key:`13pgi6`}]]),OS=U(`tent`,[[`path`,{d:`M3.5 21 14 3`,key:`1szst5`}],[`path`,{d:`M20.5 21 10 3`,key:`1310c3`}],[`path`,{d:`M15.5 21 12 15l-3.5 6`,key:`1ddtfw`}],[`path`,{d:`M2 21h20`,key:`1nyx9w`}]]),kS=U(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),AS=U(`test-tube-diagonal`,[[`path`,{d:`M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3`,key:`1ub6xw`}],[`path`,{d:`m16 2 6 6`,key:`1gw87d`}],[`path`,{d:`M12 16H4`,key:`1cjfip`}]]),jS=U(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),MS=U(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),NS=U(`test-tubes`,[[`path`,{d:`M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2`,key:`1hjrqt`}],[`path`,{d:`M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2`,key:`16lc8n`}],[`path`,{d:`M3 2h7`,key:`7s29d5`}],[`path`,{d:`M14 2h7`,key:`7sicin`}],[`path`,{d:`M9 16H4`,key:`1bfye3`}],[`path`,{d:`M20 16h-5`,key:`ddnjpe`}]]),PS=U(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),FS=U(`text-align-justify`,[[`path`,{d:`M3 5h18`,key:`1u36vt`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}]]),IS=U(`text-cursor-input`,[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]),LS=U(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),RS=U(`text-cursor`,[[`path`,{d:`M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1`,key:`uvaxm9`}],[`path`,{d:`M7 22h1a4 4 0 0 0 4-4`,key:`1l7xii`}],[`path`,{d:`M7 2h1a4 4 0 0 1 4 4`,key:`1vrvvh`}]]),zS=U(`text-initial`,[[`path`,{d:`M15 5h6`,key:`1pr8yx`}],[`path`,{d:`M15 12h6`,key:`upa0zy`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}],[`path`,{d:`m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12`,key:`6lvno8`}],[`path`,{d:`M3.92 10h6.16`,key:`1tl8ex`}]]),BS=U(`text-quote`,[[`path`,{d:`M17 5H3`,key:`1cn7zz`}],[`path`,{d:`M21 12H8`,key:`scolzb`}],[`path`,{d:`M21 19H8`,key:`13qgcb`}],[`path`,{d:`M3 12v7`,key:`1ri8j3`}]]),VS=U(`text-search`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]),HS=U(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),US=U(`theater`,[[`path`,{d:`M2 10s3-3 3-8`,key:`3xiif0`}],[`path`,{d:`M22 10s-3-3-3-8`,key:`ioaa5q`}],[`path`,{d:`M10 2c0 4.4-3.6 8-8 8`,key:`16fkpi`}],[`path`,{d:`M14 2c0 4.4 3.6 8 8 8`,key:`b9eulq`}],[`path`,{d:`M2 10s2 2 2 5`,key:`1au1lb`}],[`path`,{d:`M22 10s-2 2-2 5`,key:`qi2y5e`}],[`path`,{d:`M8 15h8`,key:`45n4r`}],[`path`,{d:`M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`,key:`1vsc2m`}],[`path`,{d:`M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`,key:`hrha4u`}]]),WS=U(`thermometer-snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`M10.585 15H10`,key:`4nqulp`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`,key:`yu0u2z`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h2`,key:`1bbqgq`}]]),GS=U(`thermometer-sun`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8a4 4 0 0 0-1.645 7.647`,key:`wz5p04`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`,key:`yu0u2z`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}]]),KS=U(`thermometer`,[[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),qS=U(`thumbs-down`,[[`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`,key:`m61m77`}],[`path`,{d:`M17 14V2`,key:`8ymqnk`}]]),JS=U(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),YS=U(`ticket-check`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),XS=U(`ticket-minus`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}]]),ZS=U(`ticket-percent`,[[`path`,{d:`M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`1l48ns`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M15 15h.01`,key:`lqbp3k`}]]),QS=U(`ticket-plus`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M9 12h6`,key:`1c52cq`}],[`path`,{d:`M12 9v6`,key:`199k2o`}]]),$S=U(`ticket-slash`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9.5 14.5 5-5`,key:`qviqfa`}]]),eC=U(`ticket-x`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`m9.5 14.5 5-5`,key:`qviqfa`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),tC=U(`ticket`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]),nC=U(`tickets-plane`,[[`path`,{d:`M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12`,key:`16muxl`}],[`path`,{d:`m12 13.5 3.794.506`,key:`6v5z87`}],[`path`,{d:`m3.173 8.18 11-5a2 2 0 0 1 2.647.993L18.56 8`,key:`15hfpj`}],[`path`,{d:`M6 10V8`,key:`1y41hn`}],[`path`,{d:`M6 14v1`,key:`cao2tf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`rect`,{x:`2`,y:`8`,width:`20`,height:`13`,rx:`2`,key:`p3bz5l`}]]),rC=U(`tickets`,[[`path`,{d:`m3.173 8.18 11-5a2 2 0 0 1 2.647.993L18.56 8`,key:`15hfpj`}],[`path`,{d:`M6 10V8`,key:`1y41hn`}],[`path`,{d:`M6 14v1`,key:`cao2tf`}],[`path`,{d:`M6 19v2`,key:`1loha6`}],[`rect`,{x:`2`,y:`8`,width:`20`,height:`13`,rx:`2`,key:`p3bz5l`}]]),iC=U(`timeline`,[[`path`,{d:`M4 12h.01`,key:`158zrr`}],[`path`,{d:`M4 16h.01`,key:`jrnfb7`}],[`path`,{d:`M4 20h.01`,key:`orx0iu`}],[`path`,{d:`M4 4h.01`,key:`cieki8`}],[`path`,{d:`M4 8h.01`,key:`43g258`}],[`path`,{d:`M9.414 13.414a2 2 0 0 0 1.414.586H19a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 12z`,key:`1pvxkf`}],[`path`,{d:`M9.414 21.414a2 2 0 0 0 1.414.586H19a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 20z`,key:`1k13gh`}],[`path`,{d:`M9.414 5.414A2 2 0 0 0 10.828 6H19a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-8.172a2 2 0 0 0-1.414.586L8 4z`,key:`12x0hd`}]]),aC=U(`timer-off`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7`,key:`10he05`}],[`path`,{d:`M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2`,key:`15f7sh`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M12 12v-2`,key:`fwoke6`}]]),oC=U(`timer-reset`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M12 14v-4`,key:`1evpnu`}],[`path`,{d:`M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6`,key:`1ts96g`}],[`path`,{d:`M9 17H4v5`,key:`8t5av`}]]),sC=U(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),cC=U(`toggle-left`,[[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),lC=U(`toggle-right`,[[`circle`,{cx:`15`,cy:`12`,r:`3`,key:`1afu0r`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),uC=U(`toilet`,[[`path`,{d:`M7 12h13a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-.598a.5.5 0 0 0-.424.765l1.544 2.47a.5.5 0 0 1-.424.765H5.402a.5.5 0 0 1-.424-.765L7 18`,key:`kc4kqr`}],[`path`,{d:`M8 18a5 5 0 0 1-5-5V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8`,key:`1tqs57`}]]),dC=U(`tool-case`,[[`path`,{d:`M10 15h4`,key:`192ueg`}],[`path`,{d:`m14.817 10.995-.971-1.45 1.034-1.232a2 2 0 0 0-2.025-3.238l-1.82.364L9.91 3.885a2 2 0 0 0-3.625.748L6.141 6.55l-1.725.426a2 2 0 0 0-.19 3.756l.657.27`,key:`xbnumr`}],[`path`,{d:`m18.822 10.995 2.26-5.38a1 1 0 0 0-.557-1.318L16.954 2.9a1 1 0 0 0-1.281.533l-.924 2.122`,key:`eaw7gc`}],[`path`,{d:`M4 12.006A1 1 0 0 1 4.994 11H19a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`,key:`1vaooh`}]]),fC=U(`toolbox`,[[`path`,{d:`M16 12v4`,key:`vf1vip`}],[`path`,{d:`M16 6a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 22 12v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 .586-1.414l4-4A2 2 0 0 1 8 6z`,key:`1h1rvn`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M8 12v4`,key:`1w4uao`}]]),pC=U(`tornado`,[[`path`,{d:`M21 4H3`,key:`1hwok0`}],[`path`,{d:`M18 8H6`,key:`41n648`}],[`path`,{d:`M19 12H9`,key:`1g4lpz`}],[`path`,{d:`M16 16h-6`,key:`1j5d54`}],[`path`,{d:`M11 20H9`,key:`39obr8`}]]),mC=U(`torus`,[[`ellipse`,{cx:`12`,cy:`11`,rx:`3`,ry:`2`,key:`1b2qxu`}],[`ellipse`,{cx:`12`,cy:`12.5`,rx:`10`,ry:`8.5`,key:`h8emeu`}]]),hC=U(`touchpad-off`,[[`path`,{d:`M12 20v-6`,key:`1rm09r`}],[`path`,{d:`M19.656 14H22`,key:`170xzr`}],[`path`,{d:`M2 14h12`,key:`d8icqz`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2`,key:`s23sx2`}],[`path`,{d:`M9.656 4H20a2 2 0 0 1 2 2v10.344`,key:`ovjcvl`}]]),gC=U(`touchpad`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M2 14h20`,key:`myj16y`}],[`path`,{d:`M12 20v-6`,key:`1rm09r`}]]),_C=U(`towel-rack`,[[`path`,{d:`M22 7h-2`,key:`1okbx2`}],[`path`,{d:`M6.5 3h11A2.5 2.5 0 0 1 20 5.5V20a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1V5.5a1 1 0 0 0-5 0V17a1 1 0 0 0 1 1h4`,key:`kc32tg`}],[`path`,{d:`M9 7H2`,key:`ahf7b7`}]]),vC=U(`tower-control`,[[`path`,{d:`M18.2 12.27 20 6H4l1.8 6.27a1 1 0 0 0 .95.73h10.5a1 1 0 0 0 .96-.73Z`,key:`1pledb`}],[`path`,{d:`M8 13v9`,key:`hmv0ci`}],[`path`,{d:`M16 22v-9`,key:`ylnf1u`}],[`path`,{d:`m9 6 1 7`,key:`dpdgam`}],[`path`,{d:`m15 6-1 7`,key:`ls7zgu`}],[`path`,{d:`M12 6V2`,key:`1pj48d`}],[`path`,{d:`M13 2h-2`,key:`mj6ths`}]]),yC=U(`toy-brick`,[[`rect`,{width:`18`,height:`12`,x:`3`,y:`8`,rx:`1`,key:`158fvp`}],[`path`,{d:`M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3`,key:`s0042v`}],[`path`,{d:`M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3`,key:`9wmeh2`}]]),bC=U(`tractor`,[[`path`,{d:`m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20`,key:`she1j9`}],[`path`,{d:`M16 18h-5`,key:`bq60fd`}],[`path`,{d:`M18 5a1 1 0 0 0-1 1v5.573`,key:`1kv8ia`}],[`path`,{d:`M3 4h8.129a1 1 0 0 1 .99.863L13 11.246`,key:`1q1ert`}],[`path`,{d:`M4 11V4`,key:`9ft8pt`}],[`path`,{d:`M7 15h.01`,key:`k5ht0j`}],[`path`,{d:`M8 10.1V4`,key:`1jgyzo`}],[`circle`,{cx:`18`,cy:`18`,r:`2`,key:`1emm8v`}],[`circle`,{cx:`7`,cy:`15`,r:`5`,key:`ddtuc`}]]),xC=U(`traffic-cone`,[[`path`,{d:`M16.05 10.966a5 2.5 0 0 1-8.1 0`,key:`m5jpwb`}],[`path`,{d:`m16.923 14.049 4.48 2.04a1 1 0 0 1 .001 1.831l-8.574 3.9a2 2 0 0 1-1.66 0l-8.574-3.91a1 1 0 0 1 0-1.83l4.484-2.04`,key:`rbg3g8`}],[`path`,{d:`M16.949 14.14a5 2.5 0 1 1-9.9 0L10.063 3.5a2 2 0 0 1 3.874 0z`,key:`vap8c8`}],[`path`,{d:`M9.194 6.57a5 2.5 0 0 0 5.61 0`,key:`15hn5c`}]]),SC=U(`train-front-tunnel`,[[`path`,{d:`M2 22V12a10 10 0 1 1 20 0v10`,key:`o0fyp0`}],[`path`,{d:`M15 6.8v1.4a3 2.8 0 1 1-6 0V6.8`,key:`m8q3n9`}],[`path`,{d:`M10 15h.01`,key:`44in9x`}],[`path`,{d:`M14 15h.01`,key:`5mohn5`}],[`path`,{d:`M10 19a4 4 0 0 1-4-4v-3a6 6 0 1 1 12 0v3a4 4 0 0 1-4 4Z`,key:`hckbmu`}],[`path`,{d:`m9 19-2 3`,key:`iij7hm`}],[`path`,{d:`m15 19 2 3`,key:`npx8sa`}]]),CC=U(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),wC=U(`train-track`,[[`path`,{d:`M2 17 17 2`,key:`18b09t`}],[`path`,{d:`m2 14 8 8`,key:`1gv9hu`}],[`path`,{d:`m5 11 8 8`,key:`189pqp`}],[`path`,{d:`m8 8 8 8`,key:`1imecy`}],[`path`,{d:`m11 5 8 8`,key:`ummqn6`}],[`path`,{d:`m14 2 8 8`,key:`1vk7dn`}],[`path`,{d:`M7 22 22 7`,key:`15mb1i`}]]),TC=U(`tram-front`,[[`rect`,{width:`16`,height:`16`,x:`4`,y:`3`,rx:`2`,key:`1wxw4b`}],[`path`,{d:`M4 11h16`,key:`mpoxn0`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m18 22-2-3`,key:`1p0ohu`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}]]),EC=U(`transgender`,[[`path`,{d:`M12 16v6`,key:`c8a4gj`}],[`path`,{d:`M14 20h-4`,key:`m8m19d`}],[`path`,{d:`M18 2h4v4`,key:`1341mj`}],[`path`,{d:`m2 2 7.17 7.17`,key:`13q8l2`}],[`path`,{d:`M2 5.355V2h3.357`,key:`18136r`}],[`path`,{d:`m22 2-7.17 7.17`,key:`1epvy4`}],[`path`,{d:`M8 5 5 8`,key:`mgbjhz`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),DC=U(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),OC=U(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),kC=U(`tree-deciduous`,[[`path`,{d:`M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z`,key:`oadzkq`}],[`path`,{d:`M12 19v3`,key:`npa21l`}]]),AC=U(`tree-palm`,[[`path`,{d:`M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4`,key:`foxbe7`}],[`path`,{d:`M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3`,key:`18arnh`}],[`path`,{d:`M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35`,key:`ywahnh`}],[`path`,{d:`M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14`,key:`ft0feo`}]]),jC=U(`tree-pine`,[[`path`,{d:`m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z`,key:`cpyugq`}],[`path`,{d:`M12 22v-3`,key:`kmzjlo`}]]),MC=U(`trending-down`,[[`path`,{d:`M16 17h6v-6`,key:`t6n2it`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`,key:`x473p`}]]),NC=U(`trees`,[[`path`,{d:`M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z`,key:`1l6gj6`}],[`path`,{d:`M7 16v6`,key:`1a82de`}],[`path`,{d:`M13 19v3`,key:`13sx9i`}],[`path`,{d:`M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5`,key:`1sj9kv`}]]),PC=U(`trending-up-down`,[[`path`,{d:`M14.828 14.828 21 21`,key:`ar5fw7`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`m21 3-9 9-4-4-6 6`,key:`1h02xo`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}]]),FC=U(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),IC=U(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),LC=U(`triangle-dashed`,[[`path`,{d:`M10.17 4.193a2 2 0 0 1 3.666.013`,key:`pltmmw`}],[`path`,{d:`M14 21h2`,key:`v4qezv`}],[`path`,{d:`m15.874 7.743 1 1.732`,key:`10m0iw`}],[`path`,{d:`m18.849 12.952 1 1.732`,key:`zadnam`}],[`path`,{d:`M21.824 18.18a2 2 0 0 1-1.835 2.824`,key:`fvwuk4`}],[`path`,{d:`M4.024 21a2 2 0 0 1-1.839-2.839`,key:`1e1kah`}],[`path`,{d:`m5.136 12.952-1 1.732`,key:`1u4ldi`}],[`path`,{d:`M8 21h2`,key:`i9zjee`}],[`path`,{d:`m8.102 7.743-1 1.732`,key:`1zzo4u`}]]),RC=U(`triangle-right`,[[`path`,{d:`M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z`,key:`183wce`}]]),zC=U(`triangle`,[[`path`,{d:`M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`,key:`14u9p9`}]]),BC=U(`trophy`,[[`path`,{d:`M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978`,key:`1n3hpd`}],[`path`,{d:`M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978`,key:`rfe1zi`}],[`path`,{d:`M18 9h1.5a1 1 0 0 0 0-5H18`,key:`7xy6bh`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6 9H4.5a1 1 0 0 1 0-5H6`,key:`tex48p`}]]),VC=U(`truck-electric`,[[`path`,{d:`M14 19V7a2 2 0 0 0-2-2H9`,key:`15peso`}],[`path`,{d:`M15 19H9`,key:`18q6dt`}],[`path`,{d:`M19 19h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 9.38a1 1 0 0 0-.78-.38H14`,key:`1dkp3j`}],[`path`,{d:`M2 13v5a1 1 0 0 0 1 1h2`,key:`pkmmzz`}],[`path`,{d:`M4 3 2.15 5.15a.495.495 0 0 0 .35.86h2.15a.47.47 0 0 1 .35.86L3 9.02`,key:`1n26pd`}],[`circle`,{cx:`17`,cy:`19`,r:`2`,key:`1nxcgd`}],[`circle`,{cx:`7`,cy:`19`,r:`2`,key:`gzo7y7`}]]),HC=U(`truck`,[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),UC=U(`turkish-lira`,[[`path`,{d:`M15 4 5 9`,key:`14bkc9`}],[`path`,{d:`m15 8.5-10 5`,key:`1grtsx`}],[`path`,{d:`M18 12a9 9 0 0 1-9 9V3`,key:`1sst7f`}]]),WC=U(`turntable`,[[`path`,{d:`M10 12.01h.01`,key:`7rp0yl`}],[`path`,{d:`M18 8v4a8 8 0 0 1-1.07 4`,key:`1st48v`}],[`circle`,{cx:`10`,cy:`12`,r:`4`,key:`19levz`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),GC=U(`turtle`,[[`path`,{d:`m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z`,key:`1lbbv7`}],[`path`,{d:`M4.82 7.9 8 10`,key:`m9wose`}],[`path`,{d:`M15.18 7.9 12 10`,key:`p8dp2u`}],[`path`,{d:`M16.93 10H20a2 2 0 0 1 0 4H2`,key:`12nsm7`}]]),KC=U(`tv-minimal-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}]]),qC=U(`tv-minimal`,[[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}]]),JC=U(`tv`,[[`path`,{d:`m17 2-5 5-5-5`,key:`16satq`}],[`rect`,{width:`20`,height:`15`,x:`2`,y:`7`,rx:`2`,key:`1e6viu`}]]),YC=U(`type-outline`,[[`path`,{d:`M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z`,key:`1reda3`}]]),XC=U(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),ZC=U(`umbrella-off`,[[`path`,{d:`M12 13v7a2 2 0 0 0 4 0`,key:`rpgb42`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M18.656 13h2.336a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-12.07-7.51`,key:`yawknk`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5.961 5.957a10.28 10.28 0 0 0-3.922 5.769A1 1 0 0 0 3 13h10`,key:`5sfalc`}]]),QC=U(`umbrella`,[[`path`,{d:`M12 13v7a2 2 0 0 0 4 0`,key:`rpgb42`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z`,key:`124nyo`}]]),$C=U(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),ew=U(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),tw=U(`undo-dot`,[[`path`,{d:`M21 17a9 9 0 0 0-15-6.7L3 13`,key:`8mp6z9`}],[`path`,{d:`M3 7v6h6`,key:`1v2h90`}],[`circle`,{cx:`12`,cy:`17`,r:`1`,key:`1ixnty`}]]),nw=U(`unfold-horizontal`,[[`path`,{d:`M16 12h6`,key:`15xry1`}],[`path`,{d:`M8 12H2`,key:`1jqql6`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 15 3-3-3-3`,key:`wjy7rq`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}]]),rw=U(`unfold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]),iw=U(`undo`,[[`path`,{d:`M3 7v6h6`,key:`1v2h90`}],[`path`,{d:`M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13`,key:`1r6uu6`}]]),aw=U(`ungroup`,[[`rect`,{width:`8`,height:`6`,x:`5`,y:`4`,rx:`1`,key:`nzclkv`}],[`rect`,{width:`8`,height:`6`,x:`11`,y:`14`,rx:`1`,key:`4tytwb`}]]),ow=U(`university`,[[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M18 12h.01`,key:`yjnet6`}],[`path`,{d:`M18 16h.01`,key:`plv8zi`}],[`path`,{d:`M22 7a1 1 0 0 0-1-1h-2a2 2 0 0 1-1.143-.359L13.143 2.36a2 2 0 0 0-2.286-.001L6.143 5.64A2 2 0 0 1 5 6H3a1 1 0 0 0-1 1v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2z`,key:`1ogmi3`}],[`path`,{d:`M6 12h.01`,key:`c2rlol`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}],[`circle`,{cx:`12`,cy:`10`,r:`2`,key:`1yojzk`}]]),sw=U(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]),cw=U(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),lw=U(`unplug`,[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]),uw=U(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),dw=U(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]),fw=U(`user-check`,[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),pw=U(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),mw=U(`user-minus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),hw=U(`user-key`,[[`path`,{d:`M20 11v6`,key:`d77pzp`}],[`path`,{d:`M20 13h2`,key:`16rner`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`,key:`1yxgtw`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),gw=U(`user-lock`,[[`path`,{d:`M19 16v-2a2 2 0 0 0-4 0v2`,key:`17sujf`}],[`path`,{d:`M9.5 15H7a4 4 0 0 0-4 4v2`,key:`9it25y`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`rect`,{x:`13`,y:`16`,width:`8`,height:`5`,rx:`.899`,key:`ur80nz`}]]),_w=U(`user-pen`,[[`path`,{d:`M11.5 15H7a4 4 0 0 0-4 4v2`,key:`15lzij`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}]]),vw=U(`user-round-check`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`m16 19 2 2 4-4`,key:`1b14m6`}]]),yw=U(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),bw=U(`user-round-key`,[[`path`,{d:`M19 11v6`,key:`rcqigv`}],[`path`,{d:`M19 13h2`,key:`1gch44`}],[`path`,{d:`M2 21a8 8 0 0 1 12.868-6.349`,key:`1lryzn`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`circle`,{cx:`19`,cy:`19`,r:`2`,key:`17f5cg`}]]),xw=U(`user-round-cog`,[[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`M2 21a8 8 0 0 1 10.434-7.62`,key:`1yezr2`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),Sw=U(`user-round-minus`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 19h-6`,key:`vcuq98`}]]),Cw=U(`user-round-pen`,[[`path`,{d:`M2 21a8 8 0 0 1 10.821-7.487`,key:`1c8h7z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}]]),ww=U(`user-round-search`,[[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M2 21a8 8 0 0 1 10.434-7.62`,key:`1yezr2`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`path`,{d:`m22 22-1.9-1.9`,key:`1e5ubv`}]]),Tw=U(`user-round-x`,[[`path`,{d:`M2 21a8 8 0 0 1 11.873-7`,key:`74fkxq`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`m17 17 5 5`,key:`p7ous7`}],[`path`,{d:`m22 17-5 5`,key:`gqnmv0`}]]),Ew=U(`user-round-plus`,[[`path`,{d:`M2 21a8 8 0 0 1 13.292-6`,key:`bjp14o`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M19 16v6`,key:`tddt3s`}],[`path`,{d:`M22 19h-6`,key:`vcuq98`}]]),Dw=U(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),Ow=U(`user-search`,[[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}],[`path`,{d:`M10.3 15H7a4 4 0 0 0-4 4v2`,key:`3bnktk`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}]]),kw=U(`user-star`,[[`path`,{d:`M16.051 12.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z`,key:`1m8t9f`}],[`path`,{d:`M8 15H7a4 4 0 0 0-4 4v2`,key:`l9tmp8`}],[`circle`,{cx:`10`,cy:`7`,r:`4`,key:`e45bow`}]]),Aw=U(`user-x`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]),jw=U(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Mw=U(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Nw=U(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Pw=U(`utensils-crossed`,[[`path`,{d:`m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8`,key:`n7qcjb`}],[`path`,{d:`M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7`,key:`d0u48b`}],[`path`,{d:`m2.1 21.8 6.4-6.3`,key:`yn04lh`}],[`path`,{d:`m19 5-7 7`,key:`194lzd`}]]),Fw=U(`utensils`,[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]]),Iw=U(`utility-pole`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M3 3v2`,key:`9imdir`}],[`path`,{d:`M7 3v2`,key:`n0os7`}],[`path`,{d:`M17 3v2`,key:`1l2re6`}],[`path`,{d:`M21 3v2`,key:`1duuac`}],[`path`,{d:`m19 5-7 7-7-7`,key:`133zxf`}]]),Lw=U(`van`,[[`path`,{d:`M13 6v5a1 1 0 0 0 1 1h6.102a1 1 0 0 1 .712.298l.898.91a1 1 0 0 1 .288.702V17a1 1 0 0 1-1 1h-3`,key:`k3s650`}],[`path`,{d:`M5 18H3a1 1 0 0 1-1-1V8a2 2 0 0 1 2-2h12c1.1 0 2.1.8 2.4 1.8l1.176 4.2`,key:`fnd93u`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),Rw=U(`variable`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]),zw=U(`vault`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}],[`path`,{d:`m7.9 7.9 2.7 2.7`,key:`hpeyl3`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}],[`path`,{d:`m13.4 10.6 2.7-2.7`,key:`264c1n`}],[`circle`,{cx:`7.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`nkw3mc`}],[`path`,{d:`m7.9 16.1 2.7-2.7`,key:`p81g5e`}],[`circle`,{cx:`16.5`,cy:`16.5`,r:`.5`,fill:`currentColor`,key:`fubopw`}],[`path`,{d:`m13.4 13.4 2.7 2.7`,key:`abhel3`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Bw=U(`vector-square`,[[`path`,{d:`M19.5 7a24 24 0 0 1 0 10`,key:`8n60xe`}],[`path`,{d:`M4.5 7a24 24 0 0 0 0 10`,key:`2lmadr`}],[`path`,{d:`M7 19.5a24 24 0 0 0 10 0`,key:`1q94o2`}],[`path`,{d:`M7 4.5a24 24 0 0 1 10 0`,key:`2z8ypa`}],[`rect`,{x:`17`,y:`17`,width:`5`,height:`5`,rx:`1`,key:`1ac74s`}],[`rect`,{x:`17`,y:`2`,width:`5`,height:`5`,rx:`1`,key:`1e7h5j`}],[`rect`,{x:`2`,y:`17`,width:`5`,height:`5`,rx:`1`,key:`1t4eah`}],[`rect`,{x:`2`,y:`2`,width:`5`,height:`5`,rx:`1`,key:`940dhs`}]]),Vw=U(`vegan`,[[`path`,{d:`M16 8q6 0 6-6-6 0-6 6`,key:`qsyyc4`}],[`path`,{d:`M17.41 3.59a10 10 0 1 0 3 3`,key:`41m9h7`}],[`path`,{d:`M2 2a26.6 26.6 0 0 1 10 20c.9-6.82 1.5-9.5 4-14`,key:`qiv7li`}]]),Hw=U(`venetian-mask`,[[`path`,{d:`M18 11c-1.5 0-2.5.5-3 2`,key:`1fod00`}],[`path`,{d:`M4 6a2 2 0 0 0-2 2v4a5 5 0 0 0 5 5 8 8 0 0 1 5 2 8 8 0 0 1 5-2 5 5 0 0 0 5-5V8a2 2 0 0 0-2-2h-3a8 8 0 0 0-5 2 8 8 0 0 0-5-2z`,key:`d70hit`}],[`path`,{d:`M6 11c1.5 0 2.5.5 3 2`,key:`136fht`}]]),Uw=U(`venus-and-mars`,[[`path`,{d:`M10 20h4`,key:`ni2waw`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}],[`path`,{d:`M17 2h4v4`,key:`vhe59`}],[`path`,{d:`m21 2-5.46 5.46`,key:`19kypf`}],[`circle`,{cx:`12`,cy:`11`,r:`5`,key:`16gxyc`}]]),Ww=U(`venus`,[[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M9 19h6`,key:`456am0`}],[`circle`,{cx:`12`,cy:`9`,r:`6`,key:`1nw4tq`}]]),Gw=U(`vibrate`,[[`path`,{d:`m2 8 2 2-2 2 2 2-2 2`,key:`sv1b1`}],[`path`,{d:`m22 8-2 2 2 2-2 2 2 2`,key:`101i4y`}],[`rect`,{width:`8`,height:`14`,x:`8`,y:`5`,rx:`1`,key:`1oyrl4`}]]),Kw=U(`vibrate-off`,[[`path`,{d:`m2 8 2 2-2 2 2 2-2 2`,key:`sv1b1`}],[`path`,{d:`m22 8-2 2 2 2-2 2 2 2`,key:`101i4y`}],[`path`,{d:`M8 8v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2`,key:`1hbad5`}],[`path`,{d:`M16 10.34V6c0-.55-.45-1-1-1h-4.34`,key:`1x5tf0`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),qw=U(`video-off`,[[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Jw=U(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Yw=U(`view`,[[`path`,{d:`M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2`,key:`mrq65r`}],[`path`,{d:`M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2`,key:`be3xqs`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),Xw=U(`videotape`,[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`circle`,{cx:`8`,cy:`14`,r:`2`,key:`1k2qr5`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`circle`,{cx:`16`,cy:`14`,r:`2`,key:`14k7lr`}]]),Zw=U(`volleyball`,[[`path`,{d:`M11 7a16 16 20 0 1 10.98 4.362`,key:`1mmfx7`}],[`path`,{d:`M12 12a13 13 0 0 1-8.66 5`,key:`14sm5y`}],[`path`,{d:`M16.83 13.634a16 16 0 0 1-9.267 7.328`,key:`j0eyj5`}],[`path`,{d:`M20.66 17A13 13 0 0 0 12 12a13 13 0 0 1 0-10`,key:`qaetsw`}],[`path`,{d:`M8.17 15.366a16 16 0 0 1-1.713-11.69`,key:`17ewdd`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Qw=U(`voicemail`,[[`circle`,{cx:`6`,cy:`12`,r:`4`,key:`1ehtga`}],[`circle`,{cx:`18`,cy:`12`,r:`4`,key:`4vafl8`}],[`line`,{x1:`6`,x2:`18`,y1:`16`,y2:`16`,key:`pmt8us`}]]),$w=U(`volume-1`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}]]),eT=U(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),tT=U(`volume-off`,[[`path`,{d:`M16 9a5 5 0 0 1 .95 2.293`,key:`1fgyg8`}],[`path`,{d:`M19.364 5.636a9 9 0 0 1 1.889 9.96`,key:`l3zxae`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11`,key:`1gbwow`}],[`path`,{d:`M9.828 4.172A.686.686 0 0 1 11 4.657v.686`,key:`s2je0y`}]]),nT=U(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),rT=U(`volume`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}]]),iT=U(`vote`,[[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}],[`path`,{d:`M5 7c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v12H5V7Z`,key:`1ezoue`}],[`path`,{d:`M22 19H2`,key:`nuriw5`}]]),aT=U(`wallet-cards`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2`,key:`4125el`}],[`path`,{d:`M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21`,key:`1dpki6`}]]),oT=U(`wallet-minimal`,[[`path`,{d:`M17 14h.01`,key:`7oqj8z`}],[`path`,{d:`M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14`,key:`u1rqew`}]]),sT=U(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),cT=U(`wallpaper`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`m9 17 6.1-6.1a2 2 0 0 1 2.81.01L22 15`,key:`1sl52q`}],[`circle`,{cx:`8`,cy:`9`,r:`2`,key:`gjzl9d`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),lT=U(`wand`,[[`path`,{d:`M15 4V2`,key:`z1p9b7`}],[`path`,{d:`M15 16v-2`,key:`px0unx`}],[`path`,{d:`M8 9h2`,key:`1g203m`}],[`path`,{d:`M20 9h2`,key:`19tzq7`}],[`path`,{d:`M17.8 11.8 19 13`,key:`yihg8r`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}],[`path`,{d:`M17.8 6.2 19 5`,key:`fd4us0`}],[`path`,{d:`m3 21 9-9`,key:`1jfql5`}],[`path`,{d:`M12.2 6.2 11 5`,key:`i3da3b`}]]),uT=U(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),dT=U(`warehouse`,[[`path`,{d:`M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11`,key:`pb2vm6`}],[`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z`,key:`doq5xv`}],[`path`,{d:`M6 13h12`,key:`yf64js`}],[`path`,{d:`M6 17h12`,key:`1jwigz`}]]),fT=U(`washing-machine`,[[`path`,{d:`M3 6h3`,key:`155dbl`}],[`path`,{d:`M17 6h.01`,key:`e2y6kg`}],[`rect`,{width:`18`,height:`20`,x:`3`,y:`2`,rx:`2`,key:`od3kk9`}],[`circle`,{cx:`12`,cy:`13`,r:`5`,key:`nlbqau`}],[`path`,{d:`M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5`,key:`17lach`}]]),pT=U(`watch`,[[`path`,{d:`M12 10v2.2l1.6 1`,key:`n3r21l`}],[`path`,{d:`m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05`,key:`18k57s`}],[`path`,{d:`m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05`,key:`16ny36`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]),mT=U(`waves-arrow-down`,[[`path`,{d:`M12 10L12 2`,key:`jvb0aw`}],[`path`,{d:`M16 6L12 10L8 6`,key:`9j6vje`}],[`path`,{d:`M2 15C2.6 15.5 3.2 16 4.5 16C7 16 7 14 9.5 14C12.1 14 11.9 16 14.5 16C17 16 17 14 19.5 14C20.8 14 21.4 14.5 22 15`,key:`s2zepw`}],[`path`,{d:`M2 21C2.6 21.5 3.2 22 4.5 22C7 22 7 20 9.5 20C12.1 20 11.9 22 14.5 22C17 22 17 20 19.5 20C20.8 20 21.4 20.5 22 21`,key:`u68omc`}]]),hT=U(`waves-arrow-up`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`M2 15c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1p9f19`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`vbxynw`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]),gT=U(`waves-horizontal`,[[`path`,{d:`M2 12q2.5 2 5 0t5 0 5 0 5 0`,key:`8ddzzs`}],[`path`,{d:`M2 19q2.5 2 5 0t5 0 5 0 5 0`,key:`1wj4st`}],[`path`,{d:`M2 5q2.5 2 5 0t5 0 5 0 5 0`,key:`69x50u`}]]),_T=U(`waves-ladder`,[[`path`,{d:`M19 5a2 2 0 0 0-2 2v11`,key:`s41o68`}],[`path`,{d:`M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`rd2r6e`}],[`path`,{d:`M7 13h10`,key:`1rwob1`}],[`path`,{d:`M7 9h10`,key:`12czzb`}],[`path`,{d:`M9 5a2 2 0 0 0-2 2v11`,key:`x0q4gh`}]]),vT=U(`waves-vertical`,[[`path`,{d:`M12 2q2 2.5 0 5t0 5 0 5 0 5`,key:`13jdbg`}],[`path`,{d:`M19 2q2 2.5 0 5t0 5 0 5 0 5`,key:`1ozhzu`}],[`path`,{d:`M5 2q2 2.5 0 5t0 5 0 5 0 5`,key:`1bi6v5`}]]),yT=U(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),bT=U(`webcam`,[[`circle`,{cx:`12`,cy:`10`,r:`8`,key:`1gshiw`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 22h10`,key:`10w4w3`}],[`path`,{d:`M12 22v-4`,key:`1utk9m`}]]),xT=U(`webhook-off`,[[`path`,{d:`M17 17h-5c-1.09-.02-1.94.92-2.5 1.9A3 3 0 1 1 2.57 15`,key:`1tvl6x`}],[`path`,{d:`M9 3.4a4 4 0 0 1 6.52.66`,key:`q04jfq`}],[`path`,{d:`m6 17 3.1-5.8a2.5 2.5 0 0 0 .057-2.05`,key:`azowf0`}],[`path`,{d:`M20.3 20.3a4 4 0 0 1-2.3.7`,key:`5joiws`}],[`path`,{d:`M18.6 13a4 4 0 0 1 3.357 3.414`,key:`cangb8`}],[`path`,{d:`m12 6 .6 1`,key:`tpjl1n`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),ST=U(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),CT=U(`weight-tilde`,[[`path`,{d:`M6.5 8a2 2 0 0 0-1.906 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8z`,key:`1wl739`}],[`path`,{d:`M7.999 15a2.5 2.5 0 0 1 4 0 2.5 2.5 0 0 0 4 0`,key:`1egezo`}],[`circle`,{cx:`12`,cy:`5`,r:`3`,key:`rqqgnr`}]]),wT=U(`weight`,[[`circle`,{cx:`12`,cy:`5`,r:`3`,key:`rqqgnr`}],[`path`,{d:`M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z`,key:`56o5sh`}]]),TT=U(`wheat-off`,[[`path`,{d:`m2 22 10-10`,key:`28ilpk`}],[`path`,{d:`m16 8-1.17 1.17`,key:`1qqm82`}],[`path`,{d:`M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1rdhi6`}],[`path`,{d:`m8 8-.53.53a3.5 3.5 0 0 0 0 4.94L9 15l1.53-1.53c.55-.55.88-1.25.98-1.97`,key:`4wz8re`}],[`path`,{d:`M10.91 5.26c.15-.26.34-.51.56-.73L13 3l1.53 1.53a3.5 3.5 0 0 1 .28 4.62`,key:`rves66`}],[`path`,{d:`M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z`,key:`19rau1`}],[`path`,{d:`M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`tc8ph9`}],[`path`,{d:`m16 16-.53.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.49 3.49 0 0 1 1.97-.98`,key:`ak46r`}],[`path`,{d:`M18.74 13.09c.26-.15.51-.34.73-.56L21 11l-1.53-1.53a3.5 3.5 0 0 0-4.62-.28`,key:`1tw520`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),ET=U(`wheat`,[[`path`,{d:`M2 22 16 8`,key:`60hf96`}],[`path`,{d:`M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1rdhi6`}],[`path`,{d:`M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`1sdzmb`}],[`path`,{d:`M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z`,key:`eoatbi`}],[`path`,{d:`M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z`,key:`19rau1`}],[`path`,{d:`M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`tc8ph9`}],[`path`,{d:`M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`2m8kc5`}],[`path`,{d:`M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z`,key:`vex3ng`}]]),DT=U(`wifi-cog`,[[`path`,{d:`m14.305 19.53.923-.382`,key:`3m78fa`}],[`path`,{d:`m15.228 16.852-.923-.383`,key:`npixar`}],[`path`,{d:`m16.852 15.228-.383-.923`,key:`5xggr7`}],[`path`,{d:`m16.852 20.772-.383.924`,key:`dpfhf9`}],[`path`,{d:`m19.148 15.228.383-.923`,key:`1reyyz`}],[`path`,{d:`m19.53 21.696-.382-.924`,key:`1goivc`}],[`path`,{d:`M2 7.82a15 15 0 0 1 20 0`,key:`1ovjuk`}],[`path`,{d:`m20.772 16.852.924-.383`,key:`htqkph`}],[`path`,{d:`m20.772 19.148.924.383`,key:`9w9pjp`}],[`path`,{d:`M5 11.858a10 10 0 0 1 11.5-1.785`,key:`3sn16i`}],[`path`,{d:`M8.5 15.429a5 5 0 0 1 2.413-1.31`,key:`1pxovh`}],[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}]]),OT=U(`whole-word`,[[`circle`,{cx:`7`,cy:`12`,r:`3`,key:`12clwm`}],[`path`,{d:`M10 9v6`,key:`17i7lo`}],[`circle`,{cx:`17`,cy:`12`,r:`3`,key:`gl7c2s`}],[`path`,{d:`M14 7v8`,key:`dl84cr`}],[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),kT=U(`wifi-high`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),AT=U(`wifi-low`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),jT=U(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),MT=U(`wifi-pen`,[[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1817ys`}],[`path`,{d:`M5 12.859a10 10 0 0 1 10.5-2.222`,key:`rpb7oy`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 3-1.406`,key:`r8bmzl`}]]),NT=U(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),PT=U(`wifi-sync`,[[`path`,{d:`M11.965 10.105v4L13.5 12.5a5 5 0 0 1 8 1.5`,key:`1immaq`}],[`path`,{d:`M11.965 14.105h4`,key:`uejny8`}],[`path`,{d:`M17.965 18.105h4L20.43 19.71a5 5 0 0 1-8-1.5`,key:`1i3a7e`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M21.965 22.105v-4`,key:`1ku6vx`}],[`path`,{d:`M5 12.86a10 10 0 0 1 3-2.032`,key:`pemdtu`}],[`path`,{d:`M8.5 16.429h.01`,key:`2bm739`}]]),FT=U(`wifi-zero`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}]]),IT=U(`wind-arrow-down`,[[`path`,{d:`M10 2v8`,key:`d4bbey`}],[`path`,{d:`M12.8 21.6A2 2 0 1 0 14 18H2`,key:`19kp1d`}],[`path`,{d:`M17.5 10a2.5 2.5 0 1 1 2 4H2`,key:`19kpjc`}],[`path`,{d:`m6 6 4 4 4-4`,key:`k13n16`}]]),LT=U(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),RT=U(`wine-off`,[[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M7 10h3m7 0h-1.343`,key:`v48bem`}],[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M7.307 7.307A12.33 12.33 0 0 0 7 10a5 5 0 0 0 7.391 4.391M8.638 2.981C8.75 2.668 8.872 2.34 9 2h6c1.5 4 2 6 2 8 0 .407-.05.809-.145 1.198`,key:`1ymjlu`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),zT=U(`wine`,[[`path`,{d:`M8 22h8`,key:`rmew8v`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z`,key:`10ffi3`}]]),BT=U(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),VT=U(`worm`,[[`path`,{d:`m19 12-1.5 3`,key:`9bcu4o`}],[`path`,{d:`M19.63 18.81 22 20`,key:`121v98`}],[`path`,{d:`M6.47 8.23a1.68 1.68 0 0 1 2.44 1.93l-.64 2.08a6.76 6.76 0 0 0 10.16 7.67l.42-.27a1 1 0 1 0-2.73-4.21l-.42.27a1.76 1.76 0 0 1-2.63-1.99l.64-2.08A6.66 6.66 0 0 0 3.94 3.9l-.7.4a1 1 0 1 0 2.55 4.34z`,key:`1tij6q`}]]),HT=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),UT=U(`x-line-top`,[[`path`,{d:`M18 4H6`,key:`1hsngl`}],[`path`,{d:`M18 8 6 20`,key:`xspwia`}],[`path`,{d:`m6 8 12 12`,key:`qb1veh`}]]),WT=U(`zap-off`,[[`path`,{d:`M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317`,key:`193nxd`}],[`path`,{d:`M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773`,key:`27a7lr`}],[`path`,{d:`M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643`,key:`1e0qe9`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),GT=U(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),KT=U(`zodiac-aquarius`,[[`path`,{d:`m2 10 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.096-.001l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 10`,key:`1o8iok`}],[`path`,{d:`m2 18.002 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.097 0l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 18.002`,key:`112qy7`}]]),qT=U(`zodiac-cancer`,[[`path`,{d:`M21 14.5A9 6.5 0 0 1 5.5 19`,key:`1xj2o6`}],[`path`,{d:`M3 9.5A9 6.5 0 0 1 18.5 5`,key:`1gln3t`}],[`circle`,{cx:`17.5`,cy:`14.5`,r:`3.5`,key:`1ccu1t`}],[`circle`,{cx:`6.5`,cy:`9.5`,r:`3.5`,key:`x5tc2d`}]]),JT=U(`zodiac-aries`,[[`path`,{d:`M12 7.5a4.5 4.5 0 1 1 5 4.5`,key:`k987hv`}],[`path`,{d:`M7 12a4.5 4.5 0 1 1 5-4.5V21`,key:`mjup0w`}]]),YT=U(`zodiac-gemini`,[[`path`,{d:`M16 4.525v14.948`,key:`bgoxo0`}],[`path`,{d:`M20 3A17 17 0 0 1 4 3`,key:`1djemw`}],[`path`,{d:`M4 21a17 17 0 0 1 16 0`,key:`onoyo7`}],[`path`,{d:`M8 4.525v14.948`,key:`u5iyof`}]]),XT=U(`zodiac-capricorn`,[[`path`,{d:`M11 21a3 3 0 0 0 3-3V6.5a1 1 0 0 0-7 0`,key:`1kkncs`}],[`path`,{d:`M7 19V6a3 3 0 0 0-3-3h0`,key:`1jg5y1`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),ZT=U(`zodiac-leo`,[[`path`,{d:`M10 16c0-4-3-4.5-3-8a5 5 0 0 1 10 0c0 3.466-3 6.196-3 10a3 3 0 0 0 6 0`,key:`1qj6nb`}],[`circle`,{cx:`7`,cy:`16`,r:`3`,key:`yyv3zl`}]]),QT=U(`zodiac-ophiuchus`,[[`path`,{d:`M3 10A6.06 6.06 0 0 1 12 10 A6.06 6.06 0 0 0 21 10`,key:`13lfmc`}],[`path`,{d:`M6 3v12a6 6 0 0 0 12 0V3`,key:`1jnivp`}]]),$T=U(`zodiac-libra`,[[`path`,{d:`M3 16h6.857c.162-.012.19-.323.038-.38a6 6 0 1 1 4.212 0c-.153.057-.125.368.038.38H21`,key:`1novf0`}],[`path`,{d:`M3 20h18`,key:`1l19wn`}]]),eE=U(`zodiac-pisces`,[[`path`,{d:`M19 21a15 15 0 0 1 0-18`,key:`br2vug`}],[`path`,{d:`M20 12H4`,key:`1mtusc`}],[`path`,{d:`M5 3a15 15 0 0 1 0 18`,key:`1w7hae`}]]),tE=U(`zodiac-sagittarius`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M21 3 3 21`,key:`1011np`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),nE=U(`zodiac-scorpio`,[[`path`,{d:`M10 19V5.5a1 1 0 0 1 5 0V17a2 2 0 0 0 2 2h5l-3-3`,key:`1w8g0z`}],[`path`,{d:`m22 19-3 3`,key:`1ix4wq`}],[`path`,{d:`M5 19V5.5a1 1 0 0 1 5 0`,key:`1d4oa3`}],[`path`,{d:`M5 5.5A2.5 2.5 0 0 0 2.5 3`,key:`gp646f`}]]),rE=U(`zodiac-taurus`,[[`circle`,{cx:`12`,cy:`15`,r:`6`,key:`lhqcmb`}],[`path`,{d:`M18 3A6 6 0 0 1 6 3`,key:`1p399e`}]]),iE=U(`zodiac-virgo`,[[`path`,{d:`M11 5.5a1 1 0 0 1 5 0V16a5 5 0 0 0 5 5`,key:`1szkuh`}],[`path`,{d:`M16 11.5a1 1 0 0 1 5 0V16a5 5 0 0 1-5 5`,key:`pyq0k2`}],[`path`,{d:`M6 19V6a3 3 0 0 0-3-3h0`,key:`pvee4g`}],[`path`,{d:`M6 5.5a1 1 0 0 1 5 0V19`,key:`vncctg`}]]),aE=U(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),oE=U(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),sE=t({AArrowDown:()=>nn,AArrowUp:()=>rn,ALargeSmall:()=>an,Accessibility:()=>on,Activity:()=>sn,AirVent:()=>cn,Airplay:()=>ln,AlarmClock:()=>hn,AlarmClockCheck:()=>un,AlarmClockMinus:()=>dn,AlarmClockOff:()=>fn,AlarmClockPlus:()=>pn,AlarmSmoke:()=>mn,Album:()=>gn,AlignCenterHorizontal:()=>_n,AlignCenterVertical:()=>vn,AlignEndHorizontal:()=>yn,AlignEndVertical:()=>bn,AlignHorizontalDistributeCenter:()=>xn,AlignHorizontalDistributeEnd:()=>Sn,AlignHorizontalDistributeStart:()=>Cn,AlignHorizontalJustifyCenter:()=>wn,AlignHorizontalJustifyEnd:()=>Tn,AlignHorizontalJustifyStart:()=>En,AlignHorizontalSpaceAround:()=>Dn,AlignHorizontalSpaceBetween:()=>On,AlignStartHorizontal:()=>kn,AlignStartVertical:()=>An,AlignVerticalDistributeCenter:()=>jn,AlignVerticalDistributeEnd:()=>Mn,AlignVerticalDistributeStart:()=>Nn,AlignVerticalJustifyCenter:()=>Pn,AlignVerticalJustifyEnd:()=>Fn,AlignVerticalJustifyStart:()=>eee,AlignVerticalSpaceAround:()=>In,AlignVerticalSpaceBetween:()=>Ln,Ambulance:()=>Rn,Ampersand:()=>zn,Ampersands:()=>Hn,Amphora:()=>Bn,Anchor:()=>Vn,Angry:()=>Un,Annoyed:()=>Wn,Antenna:()=>nee,Anvil:()=>tee,Aperture:()=>ree,AppWindow:()=>Gn,AppWindowMac:()=>iee,Apple:()=>Kn,Archive:()=>Yn,ArchiveRestore:()=>qn,ArchiveX:()=>Jn,Armchair:()=>Xn,ArrowBigDown:()=>Qn,ArrowBigDownDash:()=>Zn,ArrowBigLeft:()=>er,ArrowBigLeftDash:()=>$n,ArrowBigRight:()=>nr,ArrowBigRightDash:()=>tr,ArrowBigUp:()=>ir,ArrowBigUpDash:()=>rr,ArrowDown:()=>_r,ArrowDown01:()=>ar,ArrowDown10:()=>or,ArrowDownAZ:()=>cr,ArrowDownFromLine:()=>sr,ArrowDownLeft:()=>lr,ArrowDownNarrowWide:()=>ur,ArrowDownRight:()=>dr,ArrowDownToDot:()=>fr,ArrowDownToLine:()=>pr,ArrowDownUp:()=>mr,ArrowDownWideNarrow:()=>hr,ArrowDownZA:()=>gr,ArrowLeft:()=>xr,ArrowLeftFromLine:()=>vr,ArrowLeftRight:()=>yr,ArrowLeftToLine:()=>br,ArrowRight:()=>Tr,ArrowRightFromLine:()=>Sr,ArrowRightLeft:()=>Cr,ArrowRightToLine:()=>wr,ArrowUp:()=>Rr,ArrowUp01:()=>Er,ArrowUp10:()=>Dr,ArrowUpAZ:()=>Or,ArrowUpDown:()=>kr,ArrowUpFromDot:()=>Ar,ArrowUpFromLine:()=>jr,ArrowUpLeft:()=>Mr,ArrowUpNarrowWide:()=>Nr,ArrowUpRight:()=>Pr,ArrowUpToLine:()=>Fr,ArrowUpWideNarrow:()=>Ir,ArrowUpZA:()=>Lr,ArrowsUpFromLine:()=>zr,Asterisk:()=>Br,Astroid:()=>Vr,AtSign:()=>Hr,Atom:()=>Ur,AudioLines:()=>Wr,AudioWaveform:()=>Gr,Award:()=>Kr,Axe:()=>qr,Axis3d:()=>Jr,Baby:()=>Qr,Backpack:()=>Xr,Badge:()=>mi,BadgeAlert:()=>Yr,BadgeCent:()=>Zr,BadgeCheck:()=>$r,BadgeDollarSign:()=>ei,BadgeEuro:()=>ti,BadgeIndianRupee:()=>ni,BadgeInfo:()=>ri,BadgeJapaneseYen:()=>ii,BadgeMinus:()=>ai,BadgePercent:()=>oi,BadgePlus:()=>ci,BadgePoundSterling:()=>si,BadgeQuestionMark:()=>li,BadgeRussianRuble:()=>ui,BadgeSwissFranc:()=>fi,BadgeTurkishLira:()=>di,BadgeX:()=>pi,BaggageClaim:()=>gi,Balloon:()=>hi,Ban:()=>vi,Banana:()=>xi,Bandage:()=>_i,Banknote:()=>Ci,BanknoteArrowDown:()=>yi,BanknoteArrowUp:()=>bi,BanknoteX:()=>Si,Barcode:()=>wi,Barrel:()=>Ei,Baseline:()=>Ti,Bath:()=>Di,Battery:()=>Ni,BatteryCharging:()=>Oi,BatteryFull:()=>Ai,BatteryLow:()=>ji,BatteryMedium:()=>ki,BatteryPlus:()=>Mi,BatteryWarning:()=>Pi,Beaker:()=>Fi,Bean:()=>Li,BeanOff:()=>Ii,Bed:()=>aee,BedDouble:()=>Ri,BedSingle:()=>oee,Beef:()=>cee,BeefOff:()=>see,Beer:()=>uee,BeerOff:()=>lee,Bell:()=>zi,BellCheck:()=>dee,BellDot:()=>fee,BellElectric:()=>pee,BellMinus:()=>mee,BellOff:()=>hee,BellPlus:()=>gee,BellRing:()=>_ee,BetweenHorizontalEnd:()=>vee,BetweenHorizontalStart:()=>xee,BetweenVerticalEnd:()=>yee,BetweenVerticalStart:()=>bee,BicepsFlexed:()=>See,Bike:()=>wee,Binary:()=>Cee,Binoculars:()=>Tee,Biohazard:()=>Eee,Bird:()=>Dee,Birdhouse:()=>Oee,Bitcoin:()=>kee,Blend:()=>Aee,Blender:()=>jee,Blinds:()=>Mee,Blocks:()=>Nee,Bluetooth:()=>Lee,BluetoothConnected:()=>Pee,BluetoothOff:()=>Fee,BluetoothSearching:()=>Iee,Bold:()=>Bi,Bolt:()=>Ree,Bomb:()=>zee,Bone:()=>Uee,Book:()=>ute,BookA:()=>Bee,BookAlert:()=>Vee,BookAudio:()=>Hee,BookCheck:()=>Gee,BookCopy:()=>Wee,BookDashed:()=>Kee,BookDown:()=>qee,BookHeadphones:()=>Yee,BookHeart:()=>Jee,BookImage:()=>Xee,BookKey:()=>Zee,BookLock:()=>Qee,BookMarked:()=>$ee,BookMinus:()=>ete,BookOpen:()=>Hi,BookOpenCheck:()=>tte,BookOpenText:()=>Vi,BookPlus:()=>nte,BookSearch:()=>rte,BookText:()=>ite,BookType:()=>ate,BookUp:()=>ste,BookUp2:()=>ote,BookUser:()=>cte,BookX:()=>lte,Bookmark:()=>Ji,BookmarkCheck:()=>Ui,BookmarkMinus:()=>Wi,BookmarkOff:()=>Gi,BookmarkPlus:()=>Ki,BookmarkX:()=>qi,BoomBox:()=>Yi,Bot:()=>Qi,BotMessageSquare:()=>Xi,BotOff:()=>Zi,BottleWine:()=>$i,BowArrow:()=>ea,Box:()=>ta,Boxes:()=>na,Braces:()=>ra,Brackets:()=>ia,Brain:()=>sa,BrainCircuit:()=>aa,BrainCog:()=>oa,BrickWall:()=>ua,BrickWallFire:()=>ca,BrickWallShield:()=>la,Briefcase:()=>ma,BriefcaseBusiness:()=>da,BriefcaseConveyorBelt:()=>pa,BriefcaseMedical:()=>fa,BringToFront:()=>ha,Broccoli:()=>ga,Brush:()=>_a,BrushCleaning:()=>va,Bubbles:()=>ya,Bug:()=>Sa,BugOff:()=>xa,BugPlay:()=>ba,Building:()=>wa,Building2:()=>Ca,Bus:()=>Ea,BusFront:()=>Ta,Cable:()=>ka,CableCar:()=>Oa,Cake:()=>Aa,CakeSlice:()=>Da,Calculator:()=>ja,Calendar:()=>Qa,Calendar1:()=>Ma,CalendarArrowDown:()=>Na,CalendarArrowUp:()=>Pa,CalendarCheck:()=>Ia,CalendarCheck2:()=>Fa,CalendarClock:()=>Ra,CalendarCog:()=>La,CalendarDays:()=>za,CalendarFold:()=>Ba,CalendarHeart:()=>Va,CalendarMinus:()=>Ua,CalendarMinus2:()=>Ha,CalendarOff:()=>Wa,CalendarPlus:()=>Ka,CalendarPlus2:()=>Ga,CalendarRange:()=>qa,CalendarSearch:()=>Ja,CalendarSync:()=>Ya,CalendarX:()=>Za,CalendarX2:()=>Xa,Calendars:()=>$a,Camera:()=>eo,CameraOff:()=>to,Candy:()=>io,CandyCane:()=>ro,CandyOff:()=>no,Cannabis:()=>oo,CannabisOff:()=>ao,Captions:()=>co,CaptionsOff:()=>so,Car:()=>fo,CarFront:()=>lo,CarTaxiFront:()=>uo,Caravan:()=>po,CardSim:()=>mo,Carrot:()=>ho,CaseLower:()=>go,CaseSensitive:()=>_o,CaseUpper:()=>vo,CassetteTape:()=>yo,Cast:()=>bo,Castle:()=>xo,Cat:()=>So,Cctv:()=>Co,CctvOff:()=>To,ChartArea:()=>wo,ChartBar:()=>ko,ChartBarBig:()=>Eo,ChartBarDecreasing:()=>Do,ChartBarIncreasing:()=>Oo,ChartBarStacked:()=>Ao,ChartCandlestick:()=>jo,ChartColumn:()=>Io,ChartColumnBig:()=>Mo,ChartColumnDecreasing:()=>No,ChartColumnIncreasing:()=>Po,ChartColumnStacked:()=>Fo,ChartGantt:()=>Lo,ChartLine:()=>Ro,ChartNetwork:()=>zo,ChartNoAxesColumn:()=>Ho,ChartNoAxesColumnDecreasing:()=>Bo,ChartNoAxesColumnIncreasing:()=>Vo,ChartNoAxesCombined:()=>Uo,ChartNoAxesGantt:()=>Wo,ChartPie:()=>Go,ChartScatter:()=>Ko,ChartSpline:()=>qo,Check:()=>W,CheckCheck:()=>Jo,CheckLine:()=>Yo,ChefHat:()=>Xo,Cherry:()=>Zo,ChessBishop:()=>Qo,ChessKing:()=>$o,ChessKnight:()=>es,ChessPawn:()=>ts,ChessQueen:()=>ns,ChessRook:()=>rs,ChevronDown:()=>is,ChevronFirst:()=>as,ChevronLast:()=>os,ChevronLeft:()=>ss,ChevronRight:()=>cs,ChevronUp:()=>ls,ChevronsDown:()=>ds,ChevronsDownUp:()=>us,ChevronsLeft:()=>ms,ChevronsLeftRight:()=>fs,ChevronsLeftRightEllipsis:()=>ps,ChevronsRight:()=>gs,ChevronsRightLeft:()=>hs,ChevronsUp:()=>_s,ChevronsUpDown:()=>ae,Church:()=>vs,Cigarette:()=>bs,CigaretteOff:()=>ys,Circle:()=>dc,CircleAlert:()=>xs,CircleArrowDown:()=>Ss,CircleArrowLeft:()=>Cs,CircleArrowOutDownLeft:()=>ws,CircleArrowOutDownRight:()=>Ts,CircleArrowOutUpLeft:()=>Es,CircleArrowOutUpRight:()=>Ds,CircleArrowRight:()=>Os,CircleArrowUp:()=>ks,CircleCheck:()=>me,CircleCheckBig:()=>As,CircleChevronDown:()=>Ms,CircleChevronLeft:()=>js,CircleChevronRight:()=>Ns,CircleChevronUp:()=>Ps,CircleDashed:()=>Fs,CircleDivide:()=>Is,CircleDollarSign:()=>Ls,CircleDot:()=>zs,CircleDotDashed:()=>Rs,CircleEllipsis:()=>Bs,CircleEqual:()=>Vs,CircleFadingArrowUp:()=>Hs,CircleFadingPlus:()=>Us,CircleGauge:()=>Ws,CircleMinus:()=>Gs,CircleOff:()=>Ks,CircleParking:()=>Js,CircleParkingOff:()=>qs,CirclePause:()=>Ys,CirclePercent:()=>Zs,CirclePile:()=>Xs,CirclePlay:()=>Qs,CirclePlus:()=>$s,CirclePoundSterling:()=>ec,CirclePower:()=>tc,CircleQuestionMark:()=>nc,CircleSlash:()=>ic,CircleSlash2:()=>rc,CircleSmall:()=>ac,CircleStar:()=>oc,CircleStop:()=>sc,CircleUser:()=>lc,CircleUserRound:()=>cc,CircleX:()=>uc,CircuitBoard:()=>fc,Citrus:()=>pc,Clapperboard:()=>mc,Clipboard:()=>Ec,ClipboardCheck:()=>hc,ClipboardClock:()=>gc,ClipboardCopy:()=>_c,ClipboardList:()=>vc,ClipboardMinus:()=>yc,ClipboardPaste:()=>bc,ClipboardPen:()=>Sc,ClipboardPenLine:()=>xc,ClipboardPlus:()=>Cc,ClipboardType:()=>wc,ClipboardX:()=>Tc,Clock:()=>Gc,Clock1:()=>Dc,Clock10:()=>Oc,Clock11:()=>kc,Clock12:()=>Ac,Clock2:()=>jc,Clock3:()=>Mc,Clock4:()=>Nc,Clock5:()=>Pc,Clock6:()=>Fc,Clock7:()=>Ic,Clock8:()=>Lc,Clock9:()=>Rc,ClockAlert:()=>zc,ClockArrowDown:()=>Bc,ClockArrowUp:()=>Vc,ClockCheck:()=>Hc,ClockFading:()=>Uc,ClockPlus:()=>Wc,ClosedCaption:()=>Kc,Cloud:()=>fl,CloudAlert:()=>qc,CloudBackup:()=>Jc,CloudCheck:()=>Yc,CloudCog:()=>Xc,CloudDownload:()=>Zc,CloudDrizzle:()=>Qc,CloudFog:()=>$c,CloudHail:()=>el,CloudLightning:()=>tl,CloudMoon:()=>rl,CloudMoonRain:()=>nl,CloudOff:()=>il,CloudRain:()=>ol,CloudRainWind:()=>al,CloudSnow:()=>sl,CloudSun:()=>ul,CloudSunRain:()=>cl,CloudSync:()=>ll,CloudUpload:()=>dl,Cloudy:()=>pl,Clover:()=>ml,Club:()=>hl,Code:()=>_l,CodeXml:()=>gl,Coffee:()=>vl,Cog:()=>yl,Coins:()=>bl,Columns2:()=>xl,Columns3:()=>Cl,Columns3Cog:()=>Sl,Columns4:()=>wl,Combine:()=>Tl,Command:()=>El,Compass:()=>Dl,Component:()=>Ol,Computer:()=>kl,ConciergeBell:()=>Al,Cone:()=>jl,Construction:()=>Ml,Contact:()=>Pl,ContactRound:()=>Nl,Container:()=>Fl,Contrast:()=>Il,Cookie:()=>Ll,CookingPot:()=>Rl,Copy:()=>G,CopyCheck:()=>zl,CopyMinus:()=>Bl,CopyPlus:()=>Vl,CopySlash:()=>Ul,CopyX:()=>Hl,Copyleft:()=>Wl,Copyright:()=>Gl,CornerDownLeft:()=>Kl,CornerDownRight:()=>ql,CornerLeftDown:()=>Jl,CornerLeftUp:()=>Yl,CornerRightDown:()=>Xl,CornerRightUp:()=>Zl,CornerUpLeft:()=>Ql,CornerUpRight:()=>$l,Cpu:()=>eu,CreativeCommons:()=>tu,CreditCard:()=>nu,Croissant:()=>ru,Crop:()=>iu,Cross:()=>au,Crosshair:()=>ou,Crown:()=>su,Cuboid:()=>cu,CupSoda:()=>lu,Currency:()=>uu,Cylinder:()=>du,Dam:()=>fu,Database:()=>gu,DatabaseBackup:()=>pu,DatabaseSearch:()=>mu,DatabaseZap:()=>hu,DecimalsArrowLeft:()=>_u,DecimalsArrowRight:()=>vu,Delete:()=>yu,Dessert:()=>bu,Diameter:()=>xu,Diamond:()=>Tu,DiamondMinus:()=>Su,DiamondPercent:()=>Cu,DiamondPlus:()=>wu,Dice1:()=>Eu,Dice2:()=>Du,Dice3:()=>Ou,Dice4:()=>ku,Dice5:()=>Au,Dice6:()=>ju,Dices:()=>Mu,Diff:()=>Nu,Disc:()=>Lu,Disc2:()=>Pu,Disc3:()=>Fu,DiscAlbum:()=>Iu,Divide:()=>Ru,Dna:()=>zu,DnaOff:()=>Vu,Dock:()=>Hu,Dog:()=>Bu,DollarSign:()=>Uu,Donut:()=>Wu,DoorClosed:()=>Ku,DoorClosedLocked:()=>Gu,DoorOpen:()=>qu,Dot:()=>Ju,Download:()=>he,DraftingCompass:()=>Yu,Drama:()=>Xu,Drill:()=>Zu,Drone:()=>Qu,Droplet:()=>ed,DropletOff:()=>$u,Droplets:()=>td,Drum:()=>nd,Drumstick:()=>rd,Dumbbell:()=>id,Ear:()=>od,EarOff:()=>ad,Earth:()=>cd,EarthLock:()=>sd,Eclipse:()=>ld,Egg:()=>dd,EggFried:()=>ud,EggOff:()=>fd,Ellipse:()=>pd,Ellipsis:()=>hd,EllipsisVertical:()=>md,Equal:()=>vd,EqualApproximately:()=>gd,EqualNot:()=>_d,Eraser:()=>yd,EthernetPort:()=>bd,Euro:()=>xd,EvCharger:()=>Sd,Expand:()=>Cd,ExternalLink:()=>ge,Eye:()=>Dd,EyeClosed:()=>wd,EyeOff:()=>Td,Factory:()=>Ed,Fan:()=>Od,FastForward:()=>kd,Feather:()=>Ad,Fence:()=>jd,FerrisWheel:()=>Md,File:()=>Nf,FileArchive:()=>Nd,FileAxis3d:()=>Pd,FileBadge:()=>Fd,FileBox:()=>Ld,FileBraces:()=>Rd,FileBracesCorner:()=>Id,FileChartColumn:()=>Bd,FileChartColumnIncreasing:()=>zd,FileChartLine:()=>Vd,FileChartPie:()=>Hd,FileCheck:()=>Wd,FileCheckCorner:()=>Ud,FileClock:()=>Gd,FileCode:()=>Jd,FileCodeCorner:()=>Kd,FileCog:()=>qd,FileDiff:()=>Xd,FileDigit:()=>Yd,FileDown:()=>Zd,FileExclamationPoint:()=>Qd,FileHeadphone:()=>ef,FileHeart:()=>$d,FileImage:()=>be,FileInput:()=>tf,FileKey:()=>rf,FileLock:()=>nf,FileMinus:()=>of,FileMinusCorner:()=>af,FileMusic:()=>sf,FileOutput:()=>cf,FilePen:()=>uf,FilePenLine:()=>lf,FilePlay:()=>df,FilePlus:()=>pf,FilePlusCorner:()=>ff,FileQuestionMark:()=>mf,FileScan:()=>hf,FileSearch:()=>_f,FileSearchCorner:()=>gf,FileSignal:()=>vf,FileSliders:()=>yf,FileSpreadsheet:()=>bf,FileStack:()=>xf,FileSymlink:()=>Sf,FileTerminal:()=>Cf,FileText:()=>wf,FileType:()=>Ef,FileTypeCorner:()=>Tf,FileUp:()=>Df,FileUser:()=>Of,FileVideoCamera:()=>kf,FileVolume:()=>Af,FileX:()=>Mf,FileXCorner:()=>jf,Files:()=>Pf,Film:()=>If,FingerprintPattern:()=>Ff,FireExtinguisher:()=>Lf,Fish:()=>Bf,FishOff:()=>Rf,FishSymbol:()=>zf,FishingHook:()=>Vf,FishingRod:()=>Hf,Flag:()=>Kf,FlagOff:()=>Uf,FlagTriangleLeft:()=>Wf,FlagTriangleRight:()=>Gf,Flame:()=>Yf,FlameKindling:()=>qf,Flashlight:()=>Xf,FlashlightOff:()=>Jf,FlaskConical:()=>Qf,FlaskConicalOff:()=>Zf,FlaskRound:()=>$f,FlipHorizontal2:()=>ep,FlipVertical2:()=>tp,Flower:()=>rp,Flower2:()=>np,Focus:()=>ip,FoldHorizontal:()=>ap,FoldVertical:()=>op,Folder:()=>Ip,FolderArchive:()=>sp,FolderBookmark:()=>cp,FolderCheck:()=>lp,FolderClock:()=>up,FolderClosed:()=>dp,FolderCode:()=>fp,FolderCog:()=>mp,FolderDot:()=>pp,FolderDown:()=>gp,FolderGit:()=>_p,FolderGit2:()=>hp,FolderHeart:()=>yp,FolderInput:()=>vp,FolderKanban:()=>xp,FolderKey:()=>bp,FolderLock:()=>Sp,FolderMinus:()=>Cp,FolderOpen:()=>Tp,FolderOpenDot:()=>wp,FolderOutput:()=>Dp,FolderPen:()=>Ep,FolderPlus:()=>kp,FolderRoot:()=>Op,FolderSearch:()=>jp,FolderSearch2:()=>Ap,FolderSymlink:()=>Mp,FolderSync:()=>Pp,FolderTree:()=>Np,FolderUp:()=>Fp,FolderX:()=>Lp,Folders:()=>Rp,Footprints:()=>zp,Forklift:()=>Vp,Form:()=>Bp,Forward:()=>Hp,Frame:()=>Up,Frown:()=>Wp,Fuel:()=>Gp,Fullscreen:()=>Kp,Funnel:()=>Yp,FunnelPlus:()=>qp,FunnelX:()=>Jp,GalleryHorizontal:()=>Zp,GalleryHorizontalEnd:()=>Xp,GalleryThumbnails:()=>Qp,GalleryVertical:()=>em,GalleryVerticalEnd:()=>$p,Gamepad:()=>rm,Gamepad2:()=>tm,GamepadDirectional:()=>nm,Gauge:()=>im,Gavel:()=>am,Gem:()=>om,GeorgianLari:()=>sm,Ghost:()=>cm,Gift:()=>lm,GitBranch:()=>fm,GitBranchMinus:()=>um,GitBranchPlus:()=>dm,GitCommitHorizontal:()=>pm,GitCommitVertical:()=>mm,GitCompare:()=>gm,GitCompareArrows:()=>hm,GitFork:()=>_m,GitGraph:()=>vm,GitMerge:()=>bm,GitMergeConflict:()=>ym,GitPullRequest:()=>Em,GitPullRequestArrow:()=>xm,GitPullRequestClosed:()=>Cm,GitPullRequestCreate:()=>wm,GitPullRequestCreateArrow:()=>Sm,GitPullRequestDraft:()=>Tm,GlassWater:()=>Om,Glasses:()=>Dm,Globe:()=>Ae,GlobeCheck:()=>km,GlobeLock:()=>Am,GlobeOff:()=>jm,GlobeX:()=>Mm,Goal:()=>Nm,Gpu:()=>Fm,GraduationCap:()=>Pm,Grape:()=>Im,Grid2x2:()=>Bm,Grid2x2Check:()=>Lm,Grid2x2Plus:()=>Rm,Grid2x2X:()=>zm,Grid3x2:()=>Vm,Grid3x3:()=>Hm,Grip:()=>Wm,GripHorizontal:()=>Um,GripVertical:()=>Gm,Group:()=>qm,Guitar:()=>Ym,Ham:()=>Km,Hamburger:()=>Jm,Hammer:()=>Xm,Hand:()=>ih,HandCoins:()=>Zm,HandFist:()=>Qm,HandGrab:()=>$m,HandHeart:()=>eh,HandHelping:()=>th,HandMetal:()=>nh,HandPlatter:()=>rh,Handbag:()=>ah,Handshake:()=>sh,HardDrive:()=>lh,HardDriveDownload:()=>oh,HardDriveUpload:()=>ch,HardHat:()=>uh,Hash:()=>dh,HatGlasses:()=>fh,Haze:()=>ph,Hd:()=>mh,HdmiPort:()=>hh,Heading:()=>Sh,Heading1:()=>gh,Heading2:()=>_h,Heading3:()=>yh,Heading4:()=>vh,Heading5:()=>bh,Heading6:()=>xh,HeadphoneOff:()=>Ch,Headphones:()=>wh,Headset:()=>Th,Heart:()=>Nh,HeartCrack:()=>Eh,HeartHandshake:()=>Dh,HeartMinus:()=>Oh,HeartOff:()=>kh,HeartPlus:()=>Ah,HeartPulse:()=>Mh,HeartX:()=>jh,Heater:()=>Ph,Helicopter:()=>Lh,Hexagon:()=>Fh,Highlighter:()=>Ih,History:()=>Rh,Hop:()=>Bh,HopOff:()=>zh,Hospital:()=>Vh,Hotel:()=>Hh,Hourglass:()=>Uh,House:()=>Yh,HouseHeart:()=>Wh,HousePlug:()=>Gh,HousePlus:()=>Kh,HouseWifi:()=>qh,IceCreamBowl:()=>Jh,IceCreamCone:()=>Xh,IdCard:()=>Qh,IdCardLanyard:()=>Zh,Image:()=>og,ImageDown:()=>tg,ImageMinus:()=>$h,ImageOff:()=>eg,ImagePlay:()=>ng,ImagePlus:()=>rg,ImageUp:()=>ig,ImageUpscale:()=>ag,Images:()=>sg,Import:()=>cg,Inbox:()=>lg,IndianRupee:()=>ug,Infinity:()=>dg,Info:()=>fg,InspectionPanel:()=>pg,Italic:()=>mg,IterationCcw:()=>hg,IterationCw:()=>gg,JapaneseYen:()=>_g,Joystick:()=>vg,Kanban:()=>yg,Kayak:()=>wg,Key:()=>Sg,KeyRound:()=>bg,KeySquare:()=>xg,Keyboard:()=>Dg,KeyboardMusic:()=>Cg,KeyboardOff:()=>Tg,Lamp:()=>Mg,LampCeiling:()=>Eg,LampDesk:()=>Og,LampFloor:()=>Ag,LampWallDown:()=>kg,LampWallUp:()=>jg,LandPlot:()=>Ng,Landmark:()=>Pg,Languages:()=>Fg,Laptop:()=>Lg,LaptopMinimal:()=>Rg,LaptopMinimalCheck:()=>Ig,Lasso:()=>Bg,LassoSelect:()=>zg,Laugh:()=>Vg,Layers:()=>Gg,Layers2:()=>Hg,LayersMinus:()=>Wg,LayersPlus:()=>Ug,LayoutDashboard:()=>Kg,LayoutGrid:()=>qg,LayoutList:()=>Yg,LayoutPanelLeft:()=>Jg,LayoutPanelTop:()=>Xg,LayoutTemplate:()=>Zg,Leaf:()=>Qg,LeafyGreen:()=>$g,Lectern:()=>e_,LensConcave:()=>t_,LensConvex:()=>n_,Library:()=>r_,LibraryBig:()=>a_,LifeBuoy:()=>i_,Ligature:()=>o_,Lightbulb:()=>c_,LightbulbOff:()=>s_,LineDotRightHorizontal:()=>u_,LineSquiggle:()=>l_,LineStyle:()=>d_,Link:()=>g_,Link2:()=>p_,Link2Off:()=>f_,List:()=>F_,ListCheck:()=>m_,ListChecks:()=>h_,ListChevronsDownUp:()=>v_,ListChevronsUpDown:()=>__,ListCollapse:()=>y_,ListEnd:()=>b_,ListFilter:()=>S_,ListFilterPlus:()=>x_,ListIndentDecrease:()=>C_,ListIndentIncrease:()=>w_,ListMinus:()=>T_,ListMusic:()=>E_,ListOrdered:()=>D_,ListPlus:()=>O_,ListRestart:()=>k_,ListStart:()=>A_,ListTodo:()=>j_,ListTree:()=>M_,ListVideo:()=>N_,ListX:()=>P_,Loader:()=>L_,LoaderCircle:()=>je,LoaderPinwheel:()=>I_,Locate:()=>V_,LocateFixed:()=>R_,LocateOff:()=>z_,Lock:()=>fte,LockKeyhole:()=>H_,LockKeyholeOpen:()=>B_,LockOpen:()=>dte,LogIn:()=>U_,LogOut:()=>pte,Logs:()=>mte,Lollipop:()=>hte,Luggage:()=>gte,Magnet:()=>_te,Mail:()=>W_,MailCheck:()=>vte,MailMinus:()=>yte,MailOpen:()=>bte,MailPlus:()=>xte,MailQuestionMark:()=>Ste,MailSearch:()=>Cte,MailWarning:()=>wte,MailX:()=>Tte,Mailbox:()=>Ete,Mails:()=>Ote,Map:()=>Ute,MapMinus:()=>Dte,MapPin:()=>G_,MapPinCheck:()=>Ate,MapPinCheckInside:()=>kte,MapPinHouse:()=>jte,MapPinMinus:()=>Nte,MapPinMinusInside:()=>Mte,MapPinOff:()=>Pte,MapPinPen:()=>Fte,MapPinPlus:()=>Lte,MapPinPlusInside:()=>Ite,MapPinSearch:()=>Rte,MapPinX:()=>zte,MapPinXInside:()=>Bte,MapPinned:()=>Vte,MapPlus:()=>Hte,Mars:()=>Gte,MarsStroke:()=>Wte,Martini:()=>Kte,Maximize:()=>qte,Maximize2:()=>xe,Medal:()=>Jte,Megaphone:()=>Xte,MegaphoneOff:()=>Yte,Meh:()=>Zte,MemoryStick:()=>Qte,Menu:()=>K_,Merge:()=>$te,MessageCircle:()=>q_,MessageCircleCheck:()=>ene,MessageCircleCode:()=>tne,MessageCircleDashed:()=>nne,MessageCircleHeart:()=>rne,MessageCircleMore:()=>ine,MessageCircleOff:()=>ane,MessageCirclePlus:()=>one,MessageCircleQuestionMark:()=>sne,MessageCircleReply:()=>cne,MessageCircleWarning:()=>lne,MessageCircleX:()=>une,MessageSquare:()=>$_,MessageSquareCheck:()=>dne,MessageSquareCode:()=>J_,MessageSquareDashed:()=>fne,MessageSquareDiff:()=>pne,MessageSquareDot:()=>mne,MessageSquareHeart:()=>hne,MessageSquareLock:()=>gne,MessageSquareMore:()=>_ne,MessageSquareOff:()=>yne,MessageSquarePlus:()=>Y_,MessageSquareQuote:()=>vne,MessageSquareReply:()=>bne,MessageSquareShare:()=>X_,MessageSquareText:()=>Z_,MessageSquareWarning:()=>Q_,MessageSquareX:()=>xne,MessagesSquare:()=>ev,Metronome:()=>Sne,Mic:()=>nv,MicOff:()=>tv,MicVocal:()=>Cne,Microchip:()=>wne,Microscope:()=>Tne,Microwave:()=>Dne,Milestone:()=>Ene,Milk:()=>kne,MilkOff:()=>One,Minimize:()=>Ane,Minimize2:()=>rv,Minus:()=>we,MirrorRectangular:()=>jne,MirrorRound:()=>Mne,Monitor:()=>ov,MonitorCheck:()=>Pne,MonitorCloud:()=>Nne,MonitorCog:()=>Fne,MonitorDot:()=>Ine,MonitorDown:()=>Lne,MonitorOff:()=>Rne,MonitorPause:()=>zne,MonitorPlay:()=>iv,MonitorSmartphone:()=>Bne,MonitorSpeaker:()=>Hne,MonitorStop:()=>Vne,MonitorUp:()=>av,MonitorX:()=>Une,Moon:()=>Gne,MoonStar:()=>Wne,Motorbike:()=>Kne,Mountain:()=>Jne,MountainSnow:()=>qne,Mouse:()=>rre,MouseLeft:()=>Yne,MouseOff:()=>Qne,MousePointer:()=>tre,MousePointer2:()=>Zne,MousePointer2Off:()=>Xne,MousePointerBan:()=>$ne,MousePointerClick:()=>ere,MouseRight:()=>nre,Move:()=>_re,Move3d:()=>are,MoveDiagonal:()=>ore,MoveDiagonal2:()=>ire,MoveDown:()=>lre,MoveDownLeft:()=>sre,MoveDownRight:()=>cre,MoveHorizontal:()=>dre,MoveLeft:()=>ure,MoveRight:()=>fre,MoveUp:()=>hre,MoveUpLeft:()=>pre,MoveUpRight:()=>mre,MoveVertical:()=>gre,Music:()=>xre,Music2:()=>vre,Music3:()=>yre,Music4:()=>bre,Navigation:()=>Tre,Navigation2:()=>Sre,Navigation2Off:()=>wre,NavigationOff:()=>Cre,Network:()=>sv,Newspaper:()=>Ere,Nfc:()=>Dre,NonBinary:()=>Ore,Notebook:()=>Are,NotebookPen:()=>cv,NotebookTabs:()=>kre,NotebookText:()=>lv,NotepadText:()=>Mre,NotepadTextDashed:()=>jre,Nut:()=>Pre,NutOff:()=>Nre,Octagon:()=>Rre,OctagonAlert:()=>Fre,OctagonMinus:()=>Ire,OctagonPause:()=>Lre,OctagonX:()=>uv,Omega:()=>zre,Option:()=>Bre,Orbit:()=>Vre,Origami:()=>Ure,Package:()=>fv,Package2:()=>Hre,PackageCheck:()=>Wre,PackageMinus:()=>Gre,PackageOpen:()=>Kre,PackagePlus:()=>dv,PackageSearch:()=>Jre,PackageX:()=>qre,PaintBucket:()=>Xre,PaintRoller:()=>Zre,Paintbrush:()=>Qre,PaintbrushVertical:()=>Yre,Palette:()=>pv,Panda:()=>$re,PanelBottom:()=>rie,PanelBottomClose:()=>eie,PanelBottomDashed:()=>tie,PanelBottomOpen:()=>nie,PanelLeft:()=>mv,PanelLeftClose:()=>iie,PanelLeftDashed:()=>aie,PanelLeftOpen:()=>oie,PanelLeftRightDashed:()=>sie,PanelRight:()=>hv,PanelRightClose:()=>cie,PanelRightDashed:()=>lie,PanelRightOpen:()=>uie,PanelTop:()=>hie,PanelTopBottomDashed:()=>fie,PanelTopClose:()=>die,PanelTopDashed:()=>pie,PanelTopOpen:()=>mie,PanelsLeftBottom:()=>gie,PanelsRightBottom:()=>_ie,PanelsTopLeft:()=>vie,Paperclip:()=>gv,Parasol:()=>yie,Parentheses:()=>xie,ParkingMeter:()=>bie,PartyPopper:()=>Sie,Pause:()=>_v,PawPrint:()=>vv,PcCase:()=>Cie,Pen:()=>Die,PenLine:()=>wie,PenOff:()=>Eie,PenTool:()=>Tie,Pencil:()=>bv,PencilLine:()=>yv,PencilOff:()=>Oie,PencilRuler:()=>kie,Pentagon:()=>Aie,Percent:()=>jie,PersonStanding:()=>Mie,PhilippinePeso:()=>Nie,Phone:()=>Sv,PhoneCall:()=>Pie,PhoneForwarded:()=>Fie,PhoneIncoming:()=>Iie,PhoneMissed:()=>Lie,PhoneOff:()=>xv,PhoneOutgoing:()=>Rie,Pi:()=>zie,Piano:()=>Bie,Pickaxe:()=>Vie,PictureInPicture:()=>Uie,PictureInPicture2:()=>Hie,PiggyBank:()=>Wie,Pilcrow:()=>qie,PilcrowLeft:()=>Gie,PilcrowRight:()=>Kie,Pill:()=>Yie,PillBottle:()=>Jie,Pin:()=>Cv,PinOff:()=>wv,Pipette:()=>Zie,Pizza:()=>Xie,Plane:()=>eae,PlaneLanding:()=>Qie,PlaneTakeoff:()=>$ie,Play:()=>Ev,Plug:()=>Dv,Plug2:()=>tae,PlugZap:()=>Tv,Plus:()=>Me,PocketKnife:()=>nae,Podcast:()=>rae,Pointer:()=>aae,PointerOff:()=>iae,Popcorn:()=>oae,Popsicle:()=>sae,PoundSterling:()=>cae,Power:()=>kv,PowerOff:()=>Ov,Presentation:()=>lae,Printer:()=>pae,PrinterCheck:()=>uae,PrinterX:()=>dae,Projector:()=>fae,Proportions:()=>mae,Puzzle:()=>Av,Pyramid:()=>hae,QrCode:()=>jv,Quote:()=>Mv,Rabbit:()=>gae,Radar:()=>_ae,Radiation:()=>vae,Radical:()=>yae,Radio:()=>Nv,RadioOff:()=>bae,RadioReceiver:()=>xae,RadioTower:()=>Sae,Radius:()=>Cae,Rainbow:()=>wae,Rat:()=>Tae,Ratio:()=>Eae,Receipt:()=>Iae,ReceiptCent:()=>Oae,ReceiptEuro:()=>Dae,ReceiptIndianRupee:()=>kae,ReceiptJapaneseYen:()=>Aae,ReceiptPoundSterling:()=>jae,ReceiptRussianRuble:()=>Mae,ReceiptSwissFranc:()=>Nae,ReceiptText:()=>Pae,ReceiptTurkishLira:()=>Fae,RectangleCircle:()=>Lae,RectangleEllipsis:()=>Rae,RectangleGoggles:()=>zae,RectangleHorizontal:()=>Bae,RectangleVertical:()=>Vae,Recycle:()=>Hae,Redo:()=>Wae,Redo2:()=>Pv,RedoDot:()=>Uae,RefreshCcw:()=>Kae,RefreshCcwDot:()=>Gae,RefreshCw:()=>Fv,RefreshCwOff:()=>qae,Refrigerator:()=>Xae,Regex:()=>Jae,RemoveFormatting:()=>Yae,Repeat:()=>eoe,Repeat1:()=>Zae,Repeat2:()=>Qae,RepeatOff:()=>$ae,Replace:()=>ioe,ReplaceAll:()=>toe,Reply:()=>roe,ReplyAll:()=>noe,Rewind:()=>aoe,Ribbon:()=>ooe,Road:()=>soe,Rocket:()=>coe,RockingChair:()=>loe,RollerCoaster:()=>uoe,Rose:()=>poe,Rotate3d:()=>doe,RotateCcw:()=>Iv,RotateCcwKey:()=>foe,RotateCcwSquare:()=>moe,RotateCw:()=>Lv,RotateCwSquare:()=>hoe,Route:()=>voe,RouteOff:()=>goe,Router:()=>_oe,Rows2:()=>yoe,Rows3:()=>boe,Rows4:()=>xoe,Rss:()=>Soe,Ruler:()=>Coe,RulerDimensionLine:()=>woe,RussianRuble:()=>Toe,Sailboat:()=>Eoe,Salad:()=>Ooe,Sandwich:()=>Doe,Satellite:()=>Aoe,SatelliteDish:()=>koe,SaudiRiyal:()=>Moe,Save:()=>Rv,SaveAll:()=>joe,SaveOff:()=>Noe,Scale:()=>Poe,Scale3d:()=>Foe,Scaling:()=>Loe,Scan:()=>Woe,ScanBarcode:()=>Ioe,ScanEye:()=>Roe,ScanFace:()=>zoe,ScanHeart:()=>Boe,ScanLine:()=>Voe,ScanQrCode:()=>Hoe,ScanSearch:()=>zv,ScanText:()=>Uoe,School:()=>Koe,Scissors:()=>qoe,ScissorsLineDashed:()=>Goe,Scooter:()=>Joe,ScreenShare:()=>Xoe,ScreenShareOff:()=>Yoe,Scroll:()=>Zoe,ScrollText:()=>Bv,Search:()=>Hv,SearchAlert:()=>Qoe,SearchCheck:()=>Vv,SearchCode:()=>$oe,SearchSlash:()=>ese,SearchX:()=>tse,Section:()=>nse,Send:()=>Uv,SendHorizontal:()=>rse,SendToBack:()=>ise,SeparatorHorizontal:()=>ase,SeparatorVertical:()=>ose,Server:()=>Wv,ServerCog:()=>cse,ServerCrash:()=>sse,ServerOff:()=>lse,Settings:()=>Kv,Settings2:()=>Gv,Shapes:()=>use,Share:()=>fse,Share2:()=>qv,Sheet:()=>dse,Shell:()=>pse,ShelvingUnit:()=>mse,Shield:()=>Qv,ShieldAlert:()=>Jv,ShieldBan:()=>hse,ShieldCheck:()=>Yv,ShieldCog:()=>vse,ShieldCogCorner:()=>gse,ShieldEllipsis:()=>_se,ShieldHalf:()=>Xv,ShieldMinus:()=>yse,ShieldOff:()=>Zv,ShieldPlus:()=>bse,ShieldQuestionMark:()=>xse,ShieldUser:()=>Sse,ShieldX:()=>$v,Ship:()=>ey,ShipWheel:()=>Cse,Shirt:()=>ty,ShoppingBag:()=>ny,ShoppingBasket:()=>ry,ShoppingCart:()=>iy,Shovel:()=>ay,ShowerHead:()=>oy,Shredder:()=>sy,Shrimp:()=>cy,Shrink:()=>ly,Shrub:()=>dy,Shuffle:()=>uy,Sigma:()=>fy,Signal:()=>yy,SignalHigh:()=>my,SignalLow:()=>py,SignalMedium:()=>hy,SignalZero:()=>gy,Signature:()=>vy,Signpost:()=>xy,SignpostBig:()=>_y,Siren:()=>by,SkipBack:()=>Sy,SkipForward:()=>Cy,Skull:()=>wy,Slash:()=>Ty,Slice:()=>Ey,SlidersHorizontal:()=>Dy,SlidersVertical:()=>Oy,Smartphone:()=>jy,SmartphoneCharging:()=>ky,SmartphoneNfc:()=>Ay,Smile:()=>Ny,SmilePlus:()=>My,Snail:()=>Py,Snowflake:()=>Fy,SoapDispenserDroplet:()=>Ly,Sofa:()=>Iy,SolarPanel:()=>Ry,Soup:()=>zy,Space:()=>By,Spade:()=>Vy,Sparkle:()=>Hy,Sparkles:()=>Wy,Speaker:()=>Uy,Speech:()=>Gy,SpellCheck:()=>qy,SpellCheck2:()=>Ky,Spline:()=>Xy,SplinePointer:()=>Jy,Split:()=>Yy,Spool:()=>Zy,SportShoe:()=>Qy,Spotlight:()=>$y,SprayCan:()=>eb,Sprout:()=>nb,Square:()=>_x,SquareActivity:()=>tb,SquareArrowDown:()=>ab,SquareArrowDownLeft:()=>rb,SquareArrowDownRight:()=>ib,SquareArrowLeft:()=>ob,SquareArrowOutDownLeft:()=>sb,SquareArrowOutDownRight:()=>cb,SquareArrowOutUpLeft:()=>lb,SquareArrowOutUpRight:()=>ub,SquareArrowRight:()=>mb,SquareArrowRightEnter:()=>db,SquareArrowRightExit:()=>fb,SquareArrowUp:()=>_b,SquareArrowUpLeft:()=>pb,SquareArrowUpRight:()=>hb,SquareAsterisk:()=>gb,SquareBottomDashedScissors:()=>vb,SquareCenterlineDashedHorizontal:()=>yb,SquareCenterlineDashedVertical:()=>xb,SquareChartGantt:()=>bb,SquareCheck:()=>Cb,SquareCheckBig:()=>Sb,SquareChevronDown:()=>wb,SquareChevronLeft:()=>Eb,SquareChevronRight:()=>Tb,SquareChevronUp:()=>Db,SquareCode:()=>Ob,SquareDashed:()=>Lb,SquareDashedBottom:()=>Ab,SquareDashedBottomCode:()=>kb,SquareDashedKanban:()=>jb,SquareDashedMousePointer:()=>Mb,SquareDashedText:()=>Nb,SquareDashedTopSolid:()=>Pb,SquareDivide:()=>Fb,SquareDot:()=>Ib,SquareEqual:()=>Rb,SquareFunction:()=>zb,SquareKanban:()=>Bb,SquareLibrary:()=>Vb,SquareM:()=>Hb,SquareMenu:()=>Ub,SquareMinus:()=>Wb,SquareMousePointer:()=>Gb,SquareParking:()=>Jb,SquareParkingOff:()=>Kb,SquarePause:()=>qb,SquarePen:()=>Yb,SquarePercent:()=>Xb,SquarePi:()=>Zb,SquarePilcrow:()=>Qb,SquarePlay:()=>ex,SquarePlus:()=>$b,SquarePower:()=>tx,SquareRadical:()=>nx,SquareRoundCorner:()=>rx,SquareScissors:()=>ix,SquareSigma:()=>ax,SquareSlash:()=>ox,SquareSplitHorizontal:()=>sx,SquareSplitVertical:()=>cx,SquareSquare:()=>lx,SquareStack:()=>ux,SquareStar:()=>dx,SquareStop:()=>fx,SquareTerminal:()=>px,SquareUser:()=>gx,SquareUserRound:()=>mx,SquareX:()=>hx,SquaresExclude:()=>vx,SquaresIntersect:()=>yx,SquaresSubtract:()=>bx,SquaresUnite:()=>xx,Squircle:()=>Cx,SquircleDashed:()=>Sx,Squirrel:()=>wx,Stamp:()=>Ex,Star:()=>Ox,StarHalf:()=>Tx,StarOff:()=>Dx,StepBack:()=>Ax,StepForward:()=>kx,Stethoscope:()=>jx,Sticker:()=>Mx,StickyNote:()=>Lx,StickyNoteCheck:()=>Nx,StickyNoteMinus:()=>Px,StickyNoteOff:()=>Fx,StickyNotePlus:()=>Ix,StickyNoteX:()=>Rx,StickyNotes:()=>Bx,Stone:()=>zx,Store:()=>Vx,StretchHorizontal:()=>Hx,StretchVertical:()=>Ux,Strikethrough:()=>Wx,Subscript:()=>Gx,Sun:()=>Xx,SunDim:()=>Kx,SunMedium:()=>qx,SunMoon:()=>Jx,SunSnow:()=>Yx,Sunrise:()=>Zx,Sunset:()=>Qx,Superscript:()=>$x,SwatchBook:()=>eS,SwissFranc:()=>tS,SwitchCamera:()=>nS,Sword:()=>iS,Swords:()=>rS,Syringe:()=>aS,Table:()=>pS,Table2:()=>oS,TableCellsMerge:()=>sS,TableCellsSplit:()=>cS,TableColumnsSplit:()=>lS,TableOfContents:()=>uS,TableProperties:()=>dS,TableRowsSplit:()=>fS,Tablet:()=>hS,TabletSmartphone:()=>mS,Tablets:()=>gS,Tag:()=>_S,Tags:()=>vS,Tally1:()=>yS,Tally2:()=>bS,Tally3:()=>xS,Tally4:()=>SS,Tally5:()=>CS,Tangent:()=>wS,Target:()=>TS,Telescope:()=>ES,Tent:()=>OS,TentTree:()=>DS,Terminal:()=>kS,TestTube:()=>jS,TestTubeDiagonal:()=>AS,TestTubes:()=>NS,TextAlignCenter:()=>MS,TextAlignEnd:()=>PS,TextAlignJustify:()=>FS,TextAlignStart:()=>LS,TextCursor:()=>RS,TextCursorInput:()=>IS,TextInitial:()=>zS,TextQuote:()=>BS,TextSearch:()=>VS,TextWrap:()=>HS,Theater:()=>US,Thermometer:()=>KS,ThermometerSnowflake:()=>WS,ThermometerSun:()=>GS,ThumbsDown:()=>qS,ThumbsUp:()=>JS,Ticket:()=>tC,TicketCheck:()=>YS,TicketMinus:()=>XS,TicketPercent:()=>ZS,TicketPlus:()=>QS,TicketSlash:()=>$S,TicketX:()=>eC,Tickets:()=>rC,TicketsPlane:()=>nC,Timeline:()=>iC,Timer:()=>sC,TimerOff:()=>aC,TimerReset:()=>oC,ToggleLeft:()=>cC,ToggleRight:()=>lC,Toilet:()=>uC,ToolCase:()=>dC,Toolbox:()=>fC,Tornado:()=>pC,Torus:()=>mC,Touchpad:()=>gC,TouchpadOff:()=>hC,TowelRack:()=>_C,TowerControl:()=>vC,ToyBrick:()=>yC,Tractor:()=>bC,TrafficCone:()=>xC,TrainFront:()=>CC,TrainFrontTunnel:()=>SC,TrainTrack:()=>wC,TramFront:()=>TC,Transgender:()=>EC,Trash:()=>OC,Trash2:()=>DC,TreeDeciduous:()=>kC,TreePalm:()=>AC,TreePine:()=>jC,Trees:()=>NC,TrendingDown:()=>MC,TrendingUp:()=>FC,TrendingUpDown:()=>PC,Triangle:()=>zC,TriangleAlert:()=>IC,TriangleDashed:()=>LC,TriangleRight:()=>RC,Trophy:()=>BC,Truck:()=>HC,TruckElectric:()=>VC,TurkishLira:()=>UC,Turntable:()=>WC,Turtle:()=>GC,Tv:()=>JC,TvMinimal:()=>qC,TvMinimalPlay:()=>KC,Type:()=>XC,TypeOutline:()=>YC,Umbrella:()=>QC,UmbrellaOff:()=>ZC,Underline:()=>$C,Undo:()=>iw,Undo2:()=>ew,UndoDot:()=>tw,UnfoldHorizontal:()=>nw,UnfoldVertical:()=>rw,Ungroup:()=>aw,University:()=>ow,Unlink:()=>cw,Unlink2:()=>sw,Unplug:()=>lw,Upload:()=>uw,Usb:()=>dw,User:()=>Mw,UserCheck:()=>fw,UserCog:()=>pw,UserKey:()=>hw,UserLock:()=>gw,UserMinus:()=>mw,UserPen:()=>_w,UserPlus:()=>yw,UserRound:()=>Dw,UserRoundCheck:()=>vw,UserRoundCog:()=>xw,UserRoundKey:()=>bw,UserRoundMinus:()=>Sw,UserRoundPen:()=>Cw,UserRoundPlus:()=>Ew,UserRoundSearch:()=>ww,UserRoundX:()=>Tw,UserSearch:()=>Ow,UserStar:()=>kw,UserX:()=>Aw,Users:()=>Nw,UsersRound:()=>jw,Utensils:()=>Fw,UtensilsCrossed:()=>Pw,UtilityPole:()=>Iw,Van:()=>Lw,Variable:()=>Rw,Vault:()=>zw,VectorSquare:()=>Bw,Vegan:()=>Vw,VenetianMask:()=>Hw,Venus:()=>Ww,VenusAndMars:()=>Uw,Vibrate:()=>Gw,VibrateOff:()=>Kw,Video:()=>Jw,VideoOff:()=>qw,Videotape:()=>Xw,View:()=>Yw,Voicemail:()=>Qw,Volleyball:()=>Zw,Volume:()=>rT,Volume1:()=>$w,Volume2:()=>eT,VolumeOff:()=>tT,VolumeX:()=>nT,Vote:()=>iT,Wallet:()=>sT,WalletCards:()=>aT,WalletMinimal:()=>oT,Wallpaper:()=>cT,Wand:()=>lT,WandSparkles:()=>uT,Warehouse:()=>dT,WashingMachine:()=>fT,Watch:()=>pT,WavesArrowDown:()=>mT,WavesArrowUp:()=>hT,WavesHorizontal:()=>gT,WavesLadder:()=>_T,WavesVertical:()=>vT,Waypoints:()=>yT,Webcam:()=>bT,Webhook:()=>ST,WebhookOff:()=>xT,Weight:()=>wT,WeightTilde:()=>CT,Wheat:()=>ET,WheatOff:()=>TT,WholeWord:()=>OT,Wifi:()=>NT,WifiCog:()=>DT,WifiHigh:()=>kT,WifiLow:()=>AT,WifiOff:()=>jT,WifiPen:()=>MT,WifiSync:()=>PT,WifiZero:()=>FT,Wind:()=>LT,WindArrowDown:()=>IT,Wine:()=>zT,WineOff:()=>RT,Workflow:()=>BT,Worm:()=>VT,Wrench:()=>HT,X:()=>Ne,XLineTop:()=>UT,Zap:()=>GT,ZapOff:()=>WT,ZodiacAquarius:()=>KT,ZodiacAries:()=>JT,ZodiacCancer:()=>qT,ZodiacCapricorn:()=>XT,ZodiacGemini:()=>YT,ZodiacLeo:()=>ZT,ZodiacLibra:()=>$T,ZodiacOphiuchus:()=>QT,ZodiacPisces:()=>eE,ZodiacSagittarius:()=>tE,ZodiacScorpio:()=>nE,ZodiacTaurus:()=>rE,ZodiacVirgo:()=>iE,ZoomIn:()=>aE,ZoomOut:()=>oE}),cE=Ge([`document`,`spreadsheet`,`presentation`,`pdf`,`image`,`video`,`audio`,`site`,`archive`,`file`]),lE=Ge([`workspace`,`external_host`,`worktree`,`remote_runtime`,`artifact_store`]),uE=Ge([`materializing`,`available`,`expired`,`missing`,`failed`]),dE=Ge([`preview`,`download`,`open`,`import`,`share`,`regenerate`]),fE=We({artifactId:q().min(1),sourceFileId:q().min(1).optional(),title:q().min(1),kind:cE,mimeType:q().optional(),sizeBytes:K().nonnegative().optional(),availability:uE,location:lE,capabilities:Ve(dE),uri:q().optional(),workspaceRelativePath:q().optional(),shareUrl:q().url().optional(),thumbnailUrl:q().optional(),expiresAt:q().optional()}),pE=We({path:q().min(1),status:Ge([`added`,`modified`,`deleted`,`renamed`]).optional(),added:K().nonnegative().optional(),removed:K().nonnegative().optional()}),mE=We({changeSetId:q().min(1),files:Ve(pE),added:K().nonnegative(),removed:K().nonnegative(),diff:q(),diffTruncated:Ue().optional(),environment:Ge([`workspace`,`worktree`,`remote_runtime`])}),hE=We({evidenceId:q().min(1),kind:Ge([`check`,`screenshot`,`video`,`log`]),label:q().min(1),status:Ge([`passed`,`failed`,`warning`]),durationMs:K().nonnegative().optional(),command:q().optional(),artifactId:q().optional(),revision:q().optional(),logPath:q().optional()}),gE=We({version:Pe(1),outcomeId:q().min(1),runId:q().min(1),turnId:q().min(1),status:Ge([`succeeded`,`partial`,`failed`]),summary:q().optional(),deliverables:Ve(fE),changeSet:mE.optional(),evidence:Ve(hE),createdAt:q()}),_E=`xopc-file:`;function vE(e){if(!e.startsWith(_E))return null;try{return decodeURIComponent(e.slice(10)).trim()||null}catch{return null}}function yE(e){let t=new Map(e.map(e=>[e.artifactId,e])),n=new Map,r=e=>e.availability===`available`?e.location===`artifact_store`?2:1:0;for(let e of t.values()){let t=e.sourceFileId??vE(e.uri??``),i=t?`source:${t}`:`artifact:${e.artifactId}`,a=n.get(i);(!a||r(e)>=r(a))&&n.set(i,e)}return[...n.values()]}function bE(e){let t=gE.safeParse(e);return t.success?{...t.data,deliverables:yE(t.data.deliverables)}:null}var xE=Ge([`backlog`,`ready`,`active`,`review`,`closed`]),SE=Ge([`done`,`cancelled`,`duplicate`,`wont_do`]),CE=Ge([`idle`,`queued`,`running`,`waiting`,`verifying`,`blocked`]),wE=Ge([`dependency`,`user_input`,`approval`,`external_event`,`scheduled_time`,`retry_backoff`,`paused`]),TE=Ge([`active`,`resolved`,`cancelled`]),EE=We({id:q(),taskId:q(),taskRunId:q().optional(),kind:wE,status:TE,reason:q(),condition:Fe(q(),Le()),resumeAt:K().int().nonnegative().optional(),resolvedBy:Fe(q(),Le()).optional(),resolution:Le().optional(),createdAt:K().int().nonnegative(),resolvedAt:K().int().nonnegative().optional()}),DE=We({kind:Ge([`input_required`,`approval_required`,`dependency_blocked`,`run_failed`,`verification_failed`,`overdue`,`stale`]),summary:q(),sourceId:q().optional()}),OE=Ge([`agent`,`workflow`,`human`,`external`]),kE=Ge([`queued`,`running`,`waiting`,`verifying`,`succeeded`,`failed`,`cancelled`]),AE=new Set([`succeeded`,`failed`,`cancelled`]),jE=We({id:q(),taskId:q(),rootRunId:q(),parentRunId:q().optional(),attempt:K().int().positive(),status:kE,executorKind:OE,executorRef:Fe(q(),Le()),trigger:Fe(q(),Le()),correlationId:q(),causationId:q().optional(),idempotencyKey:q(),contractVersion:K().int().positive(),contextSnapshotId:q().optional(),policySnapshot:Fe(q(),Le()).optional(),sessionKey:q().optional(),queuedAt:K().int().nonnegative(),scheduledAt:K().int().nonnegative().optional(),startedAt:K().int().nonnegative().optional(),heartbeatAt:K().int().nonnegative().optional(),completedAt:K().int().nonnegative().optional(),timeoutAt:K().int().nonnegative().optional(),leaseOwner:q().optional(),leaseExpiresAt:K().int().nonnegative().optional(),retryPolicy:Fe(q(),Le()),retryOfRunId:q().optional(),terminalCode:q().optional(),terminalMessage:q().optional(),version:K().int().positive()}).superRefine((e,t)=>{!e.parentRunId&&e.rootRunId!==e.id&&t.addIssue({code:`custom`,path:[`rootRunId`],message:`A root run must reference itself`}),e.status!==`queued`&&(!e.contextSnapshotId||!e.policySnapshot)&&t.addIssue({code:`custom`,path:[`contextSnapshotId`],message:`A dispatched run requires context and policy snapshots`}),AE.has(e.status)!==!!e.completedAt&&t.addIssue({code:`custom`,path:[`completedAt`],message:`Only terminal runs have a completion timestamp`})});We({id:q(),runId:q(),sequence:K().int().positive(),type:q(),payload:Fe(q(),Le()),actor:Fe(q(),Le()),occurredAt:K().int().nonnegative()});var ME=Ge([`low`,`normal`,`high`,`critical`]),NE=Ge([`title`,`body`,`phase`,`resolution`,`priority`,`dueAt`,`projectId`,`milestoneId`,`parentTaskId`,`ownerId`,`delegateAgentId`,`boardRank`,`contract`,`dependencies`,`context`,`runs`,`receipts`,`attention`,`conversation`]),PE=We({taskId:q().min(1),projectId:q().min(1).optional(),version:K().int().positive(),changedFields:Ve(NE).min(1),source:Ge([`user`,`agent`,`runtime`]),actorId:q().min(1).optional(),occurredAt:K().int().nonnegative()}),FE=We({taskId:q().min(1),projectId:q().min(1).optional(),deletedAt:K().int().nonnegative()}),IE=Ge([`verified_auto`,`verified_then_review`,`manual`]),LE=We({kind:Ge([`user`,`agent`,`system`,`integration`]),id:q().optional()}),RE=We({taskId:q(),version:K().int().positive(),objective:q(),expectedOutputs:Ve(q()),acceptanceCriteria:Ve(q()),constraints:Ve(q()),approvalRequired:Ve(q()),assumptions:Ve(q()),risks:Ve(q()),acceptancePolicy:IE,outputDestinations:Ve(Fe(q(),Le())),createdBy:LE,createdAt:K().int().nonnegative()}),zE=We({id:q(),title:q(),body:q().optional(),phase:xE,resolution:SE.optional(),priority:ME,dueAt:K().int().nonnegative().optional(),projectId:q().optional(),milestoneId:q().optional(),parentTaskId:q().optional(),ownerId:q().optional(),delegateAgentId:q().optional(),source:q(),locale:Ge([`en`,`zh`]).optional(),latestContractVersion:K().int().positive(),boardRank:K().finite().default(0),version:K().int().positive(),contract:RE.optional(),createdAt:K().int().nonnegative(),updatedAt:K().int().nonnegative(),closedAt:K().int().nonnegative().optional()}).superRefine((e,t)=>{e.phase===`closed`!=!!e.resolution&&t.addIssue({code:`custom`,path:[`resolution`],message:`Closed tasks require a resolution and open tasks cannot have one`})}),BE=Ge([`input`,`reference`,`constraint`,`deliverable`,`evidence`]),VE=We({id:q(),taskId:q(),targetKind:Ge([`document`,`file`,`url`,`session`,`memory`,`task`,`artifact`,`source`]),targetId:q(),role:BE,title:q().optional(),pinned:Ue(),retrievalPolicy:Fe(q(),Le()),metadata:Fe(q(),Le()),createdBy:LE,createdAt:K().int().nonnegative(),updatedAt:K().int().nonnegative()}),HE=We({id:q(),taskId:q(),capability:q(),scope:Fe(q(),Le()),grantedBy:LE,grantedAt:K().int().nonnegative(),expiresAt:K().int().nonnegative().optional(),revokedAt:K().int().nonnegative().optional()}),UE=We({id:q(),title:q(),phase:xE,resolution:SE.optional(),operationalState:CE}),WE=We({kind:Ge([`artifact`,`test`,`state`,`source`]),title:q(),summary:q(),uri:q().optional(),verifies:Ve(q()).optional(),provenance:Ge([`tool`,`external`,`user`,`judge`]),strength:Ge([`observed`,`verified`]),observedAt:K().int().nonnegative()}),GE=We({recommendation:q(),reasons:Ve(q()),rejectedAlternatives:Ve(We({option:q(),reason:q()})),uncertainty:q().optional(),confidence:K().min(0).max(1)}),KE=We({runId:q(),status:Ge([`succeeded`,`failed`,`cancelled`]),summary:q(),changes:Ve(WE),evidence:Ve(WE),verification:We({status:Ge([`passed`,`failed`,`unverified`]),checks:Ve(We({criterion:q(),status:Ge([`passed`,`failed`,`unverified`]),evidenceTitles:Ve(q())}))}),remainingWork:Ve(q()),nextAction:q().optional(),needsUser:Ue(),completionVerdict:Ge([`achieved`,`partial`,`not_achieved`]).optional(),failure:We({code:q(),phase:q(),recoveryAction:q()}).optional(),judgment:GE.optional(),contextTraceId:q().optional(),finalizedAt:K().int().nonnegative()}),qE=Re(`kind`,[We({kind:Pe(`agent`),agentId:q().min(1)}),We({kind:Pe(`workflow`),workflowId:q().min(1),workflowVersion:q().min(1).optional(),input:Le().optional()}),We({kind:Pe(`human`),actorId:q().min(1)}),We({kind:Pe(`external`),provider:q().min(1),config:Le()})]),JE=RE.omit({taskId:!0,version:!0,createdBy:!0,createdAt:!0}),YE=VE.omit({id:!0,taskId:!0,createdBy:!0,createdAt:!0,updatedAt:!0});We({idempotencyKey:q().trim().min(1).max(200),title:q().trim().min(1).max(500),body:q().trim().max(5e4).optional(),projectId:q().trim().min(1).optional(),milestoneId:q().trim().min(1).optional(),parentTaskId:q().trim().min(1).optional(),priority:ME.default(`normal`),dueAt:K().int().nonnegative().optional(),ownerId:q().trim().min(1).optional(),delegateAgentId:q().trim().min(1).optional(),locale:Ge([`en`,`zh`]).optional(),contract:JE,dependencies:Ve(q().trim().min(1)).default([]),context:Ve(YE).default([]),authorityGrants:Ve(We({capability:q().min(1),scope:Fe(q(),Le()).default({}),expiresAt:K().int().nonnegative().optional()})).default([]),activation:Re(`mode`,[We({mode:Pe(`capture`),phase:Ge([`backlog`,`ready`]).default(`backlog`)}),We({mode:Pe(`start`),executor:qE.optional(),scheduleAt:K().int().nonnegative().optional()})])}).strict(),We({expectedVersion:K().int().positive(),title:q().trim().min(1).max(500).optional(),body:q().trim().max(5e4).nullable().optional(),projectId:q().trim().min(1).nullable().optional(),milestoneId:q().trim().min(1).nullable().optional(),parentTaskId:q().trim().min(1).nullable().optional(),priority:ME.optional(),dueAt:K().int().nonnegative().nullable().optional(),ownerId:q().trim().min(1).nullable().optional()}).strict();var XE=We({kind:Ge([`dependency`,`user_input`,`approval`,`external_event`,`scheduled_time`,`retry_backoff`,`paused`]),reason:q().min(1),condition:Fe(q(),Le()).default({}),resumeAt:K().int().nonnegative().optional()}),ZE=Re(`type`,[We({type:Pe(`move`),phase:Ge([`backlog`,`ready`,`active`,`review`])}),We({type:Pe(`mark_ready`)}),We({type:Pe(`start`),executor:qE,scheduleAt:K().int().nonnegative().optional()}),We({type:Pe(`request_review`)}),We({type:Pe(`close`),resolution:SE}),We({type:Pe(`reopen`),phase:Ge([`backlog`,`ready`,`active`,`review`])}),We({type:Pe(`add_wait`),wait:XE}),We({type:Pe(`resolve_wait`),waitId:q(),resolution:Le().optional()}),We({type:Pe(`revise_contract`),contract:JE})]);We({idempotencyKey:q().trim().min(1).max(200),expectedVersion:K().int().positive(),command:ZE}).strict(),We({dependsOnTaskIds:Ve(q().trim().min(1)),expectedVersion:K().int().positive()}).strict(),We({expectedVersion:K().int().positive(),beforeTaskId:q().trim().min(1).nullable().optional()}).strict(),We({ok:Pe(!0),items:Ve(We({task:zE,operationalState:CE,attention:Ve(DE)}))});var QE=We({ok:Pe(!0),task:zE,operationalState:CE,run:jE.optional()}),$E=We({taskId:q(),activeSessionKey:q().optional(),currentExecutorAgentId:q().optional(),assignmentEpoch:K().int().nonnegative(),status:Ge([`idle`,`active`]),updatedAt:K().int().nonnegative()}),eD=We({id:q(),taskId:q(),sessionKey:q(),role:Ge([`primary`,`discussion`,`execution`]),agentId:q().optional(),runId:q().optional(),assignmentEpoch:K().int().nonnegative(),status:Ge([`active`,`completed`,`superseded`,`failed`]),startedAt:K().int().nonnegative(),endedAt:K().int().nonnegative().optional(),createdAt:K().int().nonnegative()});We({toAgentId:q().trim().min(1),expectedVersion:K().int().positive(),idempotencyKey:q().trim().min(1).max(200)}).strict(),We({ok:Pe(!0),task:zE,conversation:$E,fromAgentId:q().optional(),toAgentId:q(),activeSessionKey:q(),assignmentEpoch:K().int().positive()});var tD=We({ok:Pe(!0),task:zE,operationalState:CE,attention:Ve(DE),waits:Ve(EE),runs:Ve(jE),receipts:Ve(KE),context:Ve(VE),conversation:$E,sessions:Ve(eD),authorityGrants:Ve(HE),dependencies:Ve(UE),dependents:Ve(UE),allowedCommands:Ve(q())});We({ok:Pe(!0),items:Ve(KE)});var nD=Ge([`observe`,`ask_before_action`,`auto_low_risk`]),rD=We({startHour:K().int().min(0).max(23),endHour:K().int().min(0).max(23),timezone:q().min(1)}),iD=We({projectId:q(),mode:nD,quietHours:rD.optional(),allowedActions:Ve(q()),confidenceThreshold:K().min(0).max(1),scenarios:Ve(q()),configured:Ue(),updatedAt:K().optional()});We({mode:nD.optional(),quietHours:rD.nullable().optional(),allowedActions:Ve(q()).optional(),confidenceThreshold:K().min(0).max(1).optional(),scenarios:Ve(q()).optional()});var aD=We({id:q(),name:q(),status:q(),description:q().optional(),brief:q().optional(),updatedAt:K()}),oD=We({dependencyTaskId:q(),dependentTaskId:q()}),sD=We({id:q(),title:q(),phase:xE,resolution:SE.optional(),operationalState:CE,priority:ME,dueAt:K().optional(),acceptanceCriteriaCount:K().int().nonnegative(),latestVerification:Ge([`passed`,`failed`,`unverified`]).optional(),nextCheckAt:K().int().nonnegative().optional(),attention:Ve(DE).default([]),blockedBy:Ve(UE).default([]),allowedCommands:Ve(q()),updatedAt:K()});We({health:Ge([`healthy`,`attention`,`idle`,`empty`]),summary:q(),recommendedAction:q().optional(),counts:We({ready:K().int().nonnegative(),moving:K().int().nonnegative(),waiting:K().int().nonnegative(),needsUser:K().int().nonnegative(),done:K().int().nonnegative()}),updatedAt:K().int().nonnegative()});var cD=We({project:aD,tasks:Ve(sD),dependencyEdges:Ve(oD),blockers:Ve(We({id:q(),taskId:q(),kind:q(),title:q(),detail:q().optional(),href:q().optional(),updatedAt:K().optional()})),running:Ve(We({runId:q(),definitionId:q(),status:q(),createdAt:K()})),recentResults:Ve(We({taskId:q(),taskTitle:q(),receipt:KE})),digest:We({health:Ge([`healthy`,`attention`,`idle`,`empty`]),summary:q(),recommendedAction:q().optional()}),monitoring:iD}),lD=Ge([`active`,`idle`,`archived`,`pinned`]),uD=We({agentId:q().optional(),source:q().optional(),accountId:q().optional(),peerKind:q().optional(),peerId:q().optional(),threadId:q().optional(),scopeId:q().optional()}).passthrough();We({key:q(),sessionId:q().optional(),name:q().optional(),title:q().optional(),displayName:q().optional(),messageCount:K(),updatedAt:q(),sourceChannel:q().optional(),status:lD.optional(),routing:uD.optional()}).passthrough();var dD=We({items:Ve(Le()),total:K(),limit:K(),offset:K(),hasMore:Ue()}),fD=We({role:q(),content:Le(),timestamp:Ie([q(),K()]).optional()}).passthrough(),pD=We({key:q(),messages:Ve(fD)}).passthrough(),mD=We({session:pD}),hD=We({session:We({key:q(),sessionId:q().optional(),messages:Ve(fD),name:q().optional(),status:lD.optional(),sourceChannel:q().optional(),sourceChatId:q().optional(),projectId:q().optional(),customData:Fe(q(),Le()).optional(),routing:uD.optional()}).passthrough(),pagination:We({total:K(),limit:K(),offset:K(),hasMore:Ue(),before:q().optional(),nextBeforeCursor:q().optional()}).passthrough()}).passthrough();We({session:We({key:q(),sessionId:q().optional(),projectId:q().optional(),routing:uD.optional()}).passthrough()}).passthrough();var gD=We({ok:Pe(!0),sessionKey:q().min(1),rowCount:K().int().nonnegative(),lastTurnId:q().min(1),session:pD}).passthrough(),_D=We({ok:Ue().optional(),payload:We({active:Ue(),runId:q().optional()}).passthrough().optional()}).passthrough(),vD=We({ok:Ue().optional(),error:q().optional()}).passthrough(),yD=vD.extend({renamed:Ue().optional()});vD.extend({reset:Ue().optional(),sessionId:q().optional(),previousSessionId:q().optional(),session:Le().optional()});var bD=We({totalSessions:K(),activeSessions:K(),archivedSessions:K(),pinnedSessions:K(),totalMessages:K(),totalTokens:K(),oldestSession:q().optional(),newestSession:q().optional(),byChannel:Fe(q(),K())}).passthrough();We({ok:Ue(),payload:We({sessionKey:q(),sessionId:q(),session:Le()}).passthrough().optional(),error:q().optional()}).passthrough();var xD=We({ok:Pe(!0),projects:We({items:Ve(We({project:Le(),sessions:Ve(Le()),sessionTotal:K(),sessionHasMore:Ue()}).passthrough()),total:K(),limit:K(),offset:K(),hasMore:Ue()}),inbox:dD}).passthrough();function SD(e){return mD.parse(e)}function CD(e){return hD.parse(e)}function wD(e){return gD.parse(e)}function TD(e){return _D.parse(e)}function ED(e){return vD.parse(e)}function DD(e){return yD.parse(e)}function OD(e){return bD.parse(e)}function kD(e){return xD.parse(e)}function AD(e){let t=TD(e).payload,n=typeof t?.runId==`string`?t.runId.trim():``;return!t?.active||!n?{active:!1}:{active:!0,runId:n}}function jD(e){let t=new URLSearchParams;if(!e)return``;e.status&&t.set(`status`,e.status),e.search&&t.set(`search`,e.search),e.channel&&t.set(`channel`,e.channel),e.projectId&&t.set(`projectId`,e.projectId),e.unassigned&&t.set(`unassigned`,`true`),e.updatedAfter!=null&&t.set(`updatedAfter`,String(e.updatedAfter)),e.includePinned&&t.set(`includePinned`,`true`),e.includeSessionKey&&t.set(`includeSessionKey`,e.includeSessionKey),e.sessionTypes?.length&&t.set(`types`,e.sessionTypes.join(`,`)),e.sortBy&&t.set(`sortBy`,e.sortBy),e.sortOrder&&t.set(`sortOrder`,e.sortOrder),e.limit!=null&&t.set(`limit`,String(e.limit)),e.offset!=null&&t.set(`offset`,String(e.offset));let n=t.toString();return n?`?${n}`:``}function MD(e,t){let n=[];t?.includeTranscript&&n.push(`transcript`),t?.includeTranscriptRows&&n.push(`transcriptRows`);let r=n.length?`?include=${n.join(`,`)}`:``;return`/api/sessions/${encodeURIComponent(e)}${r}`}function ND(e){return`/api/sessions/${encodeURIComponent(e)}/fork-at-turn`}function PD(e,t){let n=new URLSearchParams;n.set(`limit`,String(t?.limit??50));let r=t?.before?.trim();return r?n.set(`before`,r):t?.offset!=null&&n.set(`offset`,String(t.offset)),`/api/sessions/${encodeURIComponent(e)}/history?${n.toString()}`}function FD(e){return`/api/sessions/${encodeURIComponent(e)}/run`}function ID(){return`/api/sessions/stats`}function LD(e){let t=new URLSearchParams;e?.projectLimit!=null&&t.set(`projectLimit`,String(e.projectLimit)),e?.projectOffset!=null&&t.set(`projectOffset`,String(e.projectOffset)),e?.sessionPreviewLimit!=null&&t.set(`sessionPreviewLimit`,String(e.sessionPreviewLimit)),e?.inboxLimit!=null&&t.set(`inboxLimit`,String(e.inboxLimit)),e?.inboxOffset!=null&&t.set(`inboxOffset`,String(e.inboxOffset)),e?.staleDays!=null&&t.set(`staleDays`,String(e.staleDays)),e?.includeSessionKey&&t.set(`includeSessionKey`,e.includeSessionKey);let n=t.toString();return`/api/sidebar/chat-list${n?`?${n}`:``}`}function RD(e,t){let n=encodeURIComponent(e);return t===`delete`?`/api/sessions/${n}`:`/api/sessions/${n}/${t}`}function zD(e){return e?JSON.stringify({status:e.status,search:e.search,channel:e.channel,projectId:e.projectId,unassigned:e.unassigned,updatedAfter:e.updatedAfter,includePinned:e.includePinned,includeSessionKey:e.includeSessionKey,sessionTypes:e.sessionTypes,sortBy:e.sortBy,sortOrder:e.sortOrder,limit:e.limit,offset:e.offset}):`default`}var BD=[0,500,1500],VD=1e4;function HD(e){let t=JSON.stringify([e.content,e.thinking??null,e.attachments??null,e.contextRefs??null]),n=2166136261,r=5381;for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);n^=i,n=Math.imul(n,16777619),r=Math.imul(r,33)^i}return`${t.length.toString(36)}:${(n>>>0).toString(36)}:${(r>>>0).toString(36)}`}function UD(e){return e===408||e===429||e>=500}var WD={main:`general`,coder:`coding`,writer:`writing`,researcher:`research`,"data-analyst":`data`,creative:`creative`};function GD(e,t){if(e)return e.replace(/\{\{(\w+)}}/g,(e,n)=>t[n]?.trim()??``).replace(/[ \t]{2,}/g,` `).trim()}function KD(e,t){return{headline:GD(e.headline,t)??e.headline,tagline:GD(e.tagline,t)??e.tagline,contextLabel:GD(e.contextLabel,t),categories:e.categories.map(e=>({...e,title:GD(e.title,t)??e.title,description:GD(e.description,t)??e.description,scenarios:e.scenarios.map((n,r)=>({id:n.id??`${e.id}:${r}`,prompt:GD(n.prompt,t)??n.prompt}))}))}}function qD(e){let t=e?.id.trim().toLowerCase()??``;if(WD[t])return WD[t];let n=[e?.id,e?.name,e?.description,e?.role,...e?.responsibilities??[],...e?.skills??[]].filter(Boolean).join(` `).toLowerCase();return/\b(code|coder|coding|developer|engineer|debug|refactor|test|review|software)\b|编程|代码|开发|工程|调试|测试|审查|重构|软件/.test(n)?`coding`:/\b(write|writer|writing|draft|edit|rewrite|copy|content|translate)\b|写作|文案|编辑|改写|翻译|内容|撰写/.test(n)?`writing`:/\b(research|researcher|search|source|fact|synthesis|investigate|investigation)\b|调研|研究|搜索|检索|核查|资料|事实|来源|综合/.test(n)?`research`:/\b(data|analysis|analyst|csv|sql|metric|visuali[sz]ation|report)\b|数据|分析|报表|指标|可视化|统计/.test(n)?`data`:/\b(creative|design|visual|image|story|brainstorm|ideation)\b|创意|设计|视觉|图像|故事|头脑风暴|构思/.test(n)?`creative`:`general`}function JD(e){switch(e.kind){case`codingProject`:case`generalProject`:return e.projectName;case`note`:return e.title;case`workingDirectory`:case`codingWorkspace`:return e.path;case`task`:return e.taskTitle;case`file`:return e.fileName;case`workflow`:return e.workflowName;default:return``}}function YD(e,t,n,r){if(r&&n)return GD(t.reasons.agent,{agentName:n})??t.reasons.general;switch(e.kind){case`codingProject`:case`generalProject`:return GD(t.reasons.project,{projectName:e.projectName})??t.reasons.general;case`note`:return GD(t.reasons.note,{noteTitle:e.title})??t.reasons.general;case`workingDirectory`:case`codingWorkspace`:return GD(t.reasons.directory,{path:e.path})??t.reasons.general;case`task`:case`file`:case`workflow`:return t.reasons.general;default:return n?GD(t.reasons.agent,{agentName:n})??t.reasons.general:t.reasons.general}}function XD(e,t,n){let r=``,i=``,a={};if(e.kind===`codingProject`&&e.workspaceRoot?.trim()&&(r=`understand-codebase`,i=n.contextPrompts.codingWorkspace,a={projectName:e.projectName,workspaceRoot:e.workspaceRoot}),(e.kind===`codingProject`||e.kind===`generalProject`)&&e.blockedReason?.trim()?(r=e.kind===`codingProject`?`review-debug`:`project-status`,i=n.contextPrompts.projectBlocked,a={projectName:e.projectName,blockedReason:e.blockedReason}):(e.kind===`codingProject`||e.kind===`generalProject`)&&e.recentFailure?.trim()?(r=e.kind===`codingProject`?`review-debug`:`project-status`,i=n.contextPrompts.projectFailure,a={projectName:e.projectName,recentFailure:e.recentFailure}):(e.kind===`codingProject`||e.kind===`generalProject`)&&e.recommendedAction?.trim()&&(r=e.kind===`codingProject`?`implement-feature`:`project-next-step`,i=n.contextPrompts.projectNextAction,a={projectName:e.projectName,nextAction:e.recommendedAction}),e.kind===`task`&&(a={taskTitle:e.taskTitle},e.attentionSummary?.trim()?(r=`task-clarify`,i=n.contextPrompts.taskAttention,a.attentionSummary=e.attentionSummary):e.recentFailure?.trim()?(r=`task-recover`,i=n.contextPrompts.taskFailure,a.recentFailure=e.recentFailure):e.phase===`review`||e.operationalState===`verifying`?(r=`task-verify`,i=n.contextPrompts.taskReview):e.phase===`closed`?(r=`task-verify`,i=n.contextPrompts.taskClosed):e.nextAction?.trim()&&(r=`task-next-step`,i=n.contextPrompts.taskNextAction,a.nextAction=e.nextAction)),e.kind===`file`&&(r=`file-edit`,i=n.contextPrompts.fileStart,a={fileName:e.fileName}),e.kind===`workflow`&&(a={workflowName:e.workflowName},e.recentFailure?.trim()?(r=`workflow-recover`,i=n.contextPrompts.workflowFailure,a.recentFailure=e.recentFailure):e.nextAction?.trim()&&(r=`workflow-next-step`,i=n.contextPrompts.workflowNextAction,a.nextAction=e.nextAction)),!r||!i)return null;let o=t.find(e=>e.id===r);return o?{id:`context:${r}`,categoryId:r,category:o,icon:o.icon,title:o.title,prompt:GD(i,a)??i,reason:``,score:300}:null}function ZD(e,t){switch(e.kind){case`codingProject`:return t===`understand-codebase`?45:t===`implement-feature`?30:20;case`codingWorkspace`:return t===`directory-understand`?45:t===`directory-entry`?30:20;case`generalProject`:return t===`project-next-step`?40:25;case`note`:return t===`note-summarize`?40:25;case`workingDirectory`:return t===`directory-understand`?40:25;case`task`:return e.attentionSummary?t===`task-clarify`?60:20:e.recentFailure?t===`task-recover`?60:20:e.phase===`review`||e.phase===`closed`?t===`task-verify`?55:20:t===`task-next-step`?45:25;case`file`:return t===`file-edit`?45:25;case`workflow`:return e.recentFailure?t===`workflow-recover`?50:20:e.status===`succeeded`?t===`workflow-review`?45:20:t===`workflow-next-step`?40:20;default:return 0}}function QD(e,t,n,r,i){let a=e.flatMap((e,i)=>e.scenarios.map((a,o)=>{let s=a.id??`${e.id}:${o}`,c=Math.min(35,Math.max(0,r[s]??0)),l=e.id===n?t.kind===`empty`?55:20:0;return{id:s,categoryId:e.id,category:e,icon:e.icon,title:e.title,prompt:a.prompt,reason:``,score:100-i*8-o+ZD(t,e.id)+l+c}})),o=XD(t,e,i);o&&a.push(o);let s=new Set;return a.sort((e,t)=>t.score-e.score).filter(e=>{let t=e.prompt.trim().toLocaleLowerCase();return!t||s.has(t)?!1:(s.add(t),!0)})}function $D(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return t}function eO(e,t){return Math.max(0,...e.scenarios.map((n,r)=>t[n.id??`${e.id}:${r}`]??0))}function tO(e,t,n,r){let i=KD({headline:``,tagline:``,categories:e.exploreCards},{}).categories.map(e=>({...e,scope:`explore`}));if(i.length===0)throw Error(`Welcome spotlight requires at least one exploration card`);let a=$D(n)%i.length;if(r>0)return i[(a+r)%i.length]??i[0];let o=i.map((e,n)=>({card:e,index:n,score:eO(e,t)})).sort((e,t)=>t.score-e.score||Math.abs(e.index-a)-Math.abs(t.index-a))[0];return o&&o.score>0?o.card:i[a]??i[0]}function nO(e){return e.kind===`codingProject`||e.kind===`codingWorkspace`}function rO(e){return e.kind===`empty`||e.kind===`note`||e.kind===`workingDirectory`||e.kind===`codingWorkspace`}function iO(e,t,n,r={}){let i,a={};switch(e.kind){case`codingProject`:i=t.codingProject,a.projectName=e.projectName,a.workspaceRoot=e.workspaceRoot;break;case`codingWorkspace`:i=t.codingWorkspace,a.path=e.path;break;case`generalProject`:i=t.generalProject,a.projectName=e.projectName;break;case`note`:i=t.note,a.noteTitle=e.title;break;case`workingDirectory`:i=t.workingDirectory,a.path=e.path;break;case`task`:i=t.task,a.taskTitle=e.taskTitle;break;case`file`:i=t.file,a.fileName=e.fileName;break;case`workflow`:i=t.workflow,a.workflowName=e.workflowName;break;default:i=t.empty;break}let o=KD(i,a),s=qD(n),c=n?.name?.trim()||n?.id.trim()||``,l=JD(e)||t.contextFallbackTitle,u=null,d=[...o.categories];if(s!==`general`&&!nO(e)&&(s!==`coding`||e.kind===`empty`)){let e=t.agentCards[s];if(e){let[t]=KD({headline:o.headline,tagline:o.tagline,categories:[e]},{agentName:c,contextTitle:l}).categories;t&&!d.some(e=>e.id===t.id)&&(d.push(t),u=t.id)}}let f=QD(d,e,u,r.affinity??{},t),p=f[0];if(!p)throw Error(`Welcome spotlight requires at least one suggestion`);let m=YD(e,t,c,p.categoryId===u),h=d.map(e=>!p.id.startsWith(`context:`)||e.id!==p.categoryId?e:{...e,scenarios:[{id:p.id,prompt:p.prompt},...e.scenarios.filter(e=>e.prompt!==p.prompt)]}),g=new Map;for(let e of f)g.set(e.categoryId,Math.max(g.get(e.categoryId)??0,e.score));let _=(e.kind===`empty`?h.filter(e=>e.id!==`research`):h).filter(e=>e.scenarios.length>0).sort((e,t)=>(g.get(t.id)??0)-(g.get(e.id)??0)).slice(0,rO(e)?2:3).map(e=>({...e,scope:`context`})),v=rO(e)?tO(t,r.affinity??{},r.explorationSeed??`default`,Math.max(0,r.explorationOffset??0)):null,y=r.contextStatus??`ready`;return{...o,contextKind:e.kind,tagline:c&&s!==`general`?GD(t.agentTagline,{agentName:c})??o.tagline:o.tagline,contextStatus:y,statusLabel:y===`loading`?t.contextLoading:y===`degraded`?t.contextFallback:void 0,retryLabel:t.retryContext,refreshExplorationLabel:t.refreshExplorationLabel,otherSuggestionsLabel:t.otherSuggestionsLabel,primaryRecommendation:{id:p.id,categoryId:p.categoryId,icon:p.icon,title:p.title,prompt:p.prompt,reason:m},categories:v?[..._,v]:_}}var aO=We({id:q(),kind:Ge([`agent_judgment`,`task`,`connector_approval`]),title:q(),detail:q().optional(),reason:Ge([`needs_input`,`blocked`,`user_input`,`user_approval`,`dependency`,`external`,`scheduled`,`retry`,`paused`,`overdue`,`due_soon`,`decision_needed`,`approval_required`]),urgency:Ge([`now`,`soon`]),href:q(),projectId:q().optional(),projectName:q().optional(),dueAt:K().int().nonnegative().optional(),updatedAt:K(),judgment:We({inboxItemId:q(),whyNow:q(),impact:q(),workDone:q(),recommendation:q(),confidence:K(),valueScore:K().min(0).max(1).optional(),disposition:Ge([`show_in_work`,`request_approval`,`auto_execute`]).optional(),dispositionReason:q().optional(),actionStatus:Ge([`not_authorized`,`approval_required`,`pending`,`executing`,`completed`,`rejected`,`failed`]).optional(),proposedActionTitle:q().optional(),actionError:q().optional(),decision:We({question:q(),options:Ve(We({id:q(),label:q(),consequence:q()}))}).optional()}).optional(),response:Re(`kind`,[We({kind:Pe(`connector_approval`),approvalId:q()})]).optional()});We({id:q(),kind:Ge([`automation_run`,`workflow_run`]),runId:q(),title:q(),detail:q(),reason:Ge([`run_failed`,`run_timeout`]),href:q(),updatedAt:K(),sessionKey:q().optional()});var oO=Re(`type`,[We({type:Pe(`open`),label:q(),href:q()}),We({type:Pe(`review_judgment`),label:q(),itemId:q()}),We({type:Pe(`connector_decision`),label:q(),approvalId:q(),decision:Ge([`approve`,`deny`])}),We({type:Pe(`retry_run`),label:q(),subjectKind:Ge([`automation_run`,`workflow_run`]),runId:q()}),We({type:Pe(`acknowledge_run`),label:q(),subjectKind:Ge([`automation_run`,`workflow_run`]),runId:q()})]),sO=We({id:q(),kind:Ge([`decision`,`failure`,`running`,`scheduled`]),title:q(),summary:q(),recommendation:q().optional(),dueAt:K().int().nonnegative().optional(),statusLabel:q().optional(),updatedAt:K(),openAction:oO.optional(),primaryAction:oO.optional(),secondaryActions:Ve(oO).max(2).default([])}),cO=We({runningConversations:Ve(We({sessionKey:q(),runId:q(),title:q().optional(),agentId:q().optional(),updatedAt:K()})).default([]),needsUser:Ve(sO),background:Ve(sO),backgroundCount:K().int().nonnegative(),decisions:Ve(aO),attentionPolicy:We({visibleDecisionCount:K().int().nonnegative(),suppressedDecisionCount:K().int().nonnegative(),visibleAttentionCount:K().int().nonnegative(),suppressedAttentionCount:K().int().nonnegative()}).default({visibleDecisionCount:0,suppressedDecisionCount:0,visibleAttentionCount:0,suppressedAttentionCount:0})});We({northStar:We({weeklyTrustedProgress:K(),weeklyActiveUsers:K(),trustedProgressPerWeeklyActiveUser:K()}),tasks:We({total:K(),achieved:K(),partial:K(),notAchieved:K(),userCorrected:K(),achievementRate:K(),correctionRate:K(),trusted:K(),trustedRate:K()})});function lO(e){return cO.parse(e)}var uO=/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}[^\]]*\]\s*/u,dO=[`user-profile`,`active-focuses`,`collaboration-contract`,`user-context`];function fO(e,t){let n=`<${t}>`;if(!e.startsWith(n))return null;let r=`</${t}>`,i=e.indexOf(r,n.length);return i<0?null:e.slice(i+r.length).trimStart()}function pO(e){return uO.test(e)||e.startsWith(`<source_contexts>`)||dO.some(t=>e.startsWith(`<${t}>`))}function mO(e){if(!e.includes(`<source_contexts>`))return e;let t=e.replace(/^\s*<source_contexts>[\s\S]*?<\/source_contexts>\s*/u,``).trimStart();return t.match(/^<user_message>\r?\n([\s\S]*)\r?\n<\/user_message>\s*$/u)?.[1]??t}function hO(e){let t=e,n=fO(t.trimStart(),`xopc_task_execution`);n!==null&&pO(n)&&(t=n),t=mO(t);let r=t,i=!1;for(t=t.trimStart();;){let e=dO.find(e=>t.startsWith(`<${e}>`));if(!e)break;let n=fO(t,e);if(n===null){t=r,i=!1;break}t=n,i=!0}return i&&!uO.test(t)&&(t=r),t.replace(uO,``)}function gO(e){return!e.includes(`[media attached:`)&&!e.includes(`xopc-media-uri:`)?e:e.replace(/\s*\[media attached:[^\]]+\]\s*\r?\nxopc-media-uri:[^\r\n]+\r?\n\s*xopc-media-path:[^\r\n]+(?:\r?\n\s*Use the read_media tool[^\r\n]*)?/g,``).replace(/\s*\[media attached:[^\]]+\]\s*/g,` `).replace(/\s*xopc-media-uri:[^\r\n]+/g,``).replace(/\s*xopc-media-path:[^\r\n]+/g,``).replace(/\s*Use the read_media tool[^\r\n]*/g,``).replace(/\n{3,}/g,`
|
|
3
|
+
|
|
4
|
+
`).trim()}function _O(e){return e?.trim()||void 0}function vO(e){return _O(e)?.toLowerCase()}function yO(){return{kind:`none`}}function bO(e){let t=_O(e);return t?{kind:`project`,projectId:t}:yO()}function xO(){return{version:1,modelByAgent:{},lastChatScope:yO()}}function SO(e){if(!e||typeof e!=`object`)return null;let t=e;if(t.kind===`none`)return yO();if(t.kind!==`project`||typeof t.projectId!=`string`)return null;let n=_O(t.projectId);return n?{kind:`project`,projectId:n}:null}function CO(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e)){let e=vO(n);if(!e||!r||typeof r!=`object`)continue;let i=r,a=typeof i.modelRef==`string`?_O(i.modelRef):void 0;if(!a)continue;let o=typeof i.thinkingLevel==`string`?_O(i.thinkingLevel):void 0;t[e]={modelRef:a,...o?{thinkingLevel:o}:{},...i.thinkingByModel&&typeof i.thinkingByModel==`object`?{thinkingByModel:Object.fromEntries(Object.entries(i.thinkingByModel).filter(e=>typeof e[1]==`string`))}:{}}}return t}function wO(e){let t=xO();if(!e||typeof e!=`object`||Array.isArray(e))return t;let n=e;if(n.version!==1)return t;let r=typeof n.selectedAgentId==`string`?vO(n.selectedAgentId):void 0;return{version:1,...r?{selectedAgentId:r}:{},modelByAgent:CO(n.modelByAgent),lastChatScope:SO(n.lastChatScope)??yO()}}function TO(e,t){let n=vO(t),{selectedAgentId:r,...i}=e;return n?{...i,selectedAgentId:n}:i}function EO(e,t,n){let r=vO(t);if(!r)return e;let i={...e.modelByAgent},a=n?_O(n.modelRef):void 0;if(!n||!a)delete i[r];else{let e=_O(n.thinkingLevel),t={...i[r]?.thinkingByModel,...i[r]?.thinkingLevel?{[i[r].modelRef]:i[r].thinkingLevel}:{},...e?{[a]:e}:{}};i[r]={modelRef:a,...e?{thinkingLevel:e}:{},...Object.keys(t).length?{thinkingByModel:t}:{}}}return{...e,modelByAgent:i}}function DO(e,t){let n=_O(t);return{...e,lastChatScope:n?{kind:`project`,projectId:n}:yO()}}function OO(e,t){let n=vO(t);return n?e.modelByAgent[n]:void 0}function kO(e,t){return e.kind===`project`?bO(e.projectId):e.kind===`none`?yO():e.kind===`inherit-current`?bO(t.currentSession?.projectId??``):t.lastChatScope?.kind===`project`?bO(t.lastChatScope.projectId):yO()}function AO(e,t){let n=kO(e.project,t),r=vO(e.agentId)??(e.project.kind===`inherit-current`?vO(t.currentSession?.agentId):void 0)??vO(t.projectDefaultAgentId)??vO(t.selectedAgentId)??vO(t.defaultAgentId)??`main`;return{origin:e.origin,agentId:r,projectId:n.kind===`project`?n.projectId:null,forceNew:e.forceNew===!0,temporary:e.temporary===!0}}function jO(e,t){return[_O(e)??`default`,vO(t.agentId)??`main`,_O(t.projectId)??`none`].join(`:`)}var MO=Re(`kind`,[We({kind:Pe(`chat`),sessionKey:q().min(1)}),We({kind:Pe(`task`),taskId:q().min(1)}),We({kind:Pe(`automation_run`),automationId:q().min(1),runId:q().min(1)}),We({kind:Pe(`insight`),inboxItemId:q().min(1)})]),NO=Ge([`chat.completed`,`chat.failed`,`task.needs_input`,`task.blocked`,`task.failed`,`task.completed`,`automation.completed`,`automation.failed`,`proactive.insight`]),PO=We({en:q().min(1).max(500),zh:q().min(1).max(500)}),FO=We({schemaVersion:Pe(1),id:q().min(1).max(160),type:NO,target:MO,priority:Ge([`normal`,`high`]),title:PO,body:PO.optional(),payload:Fe(q(),Le()),createdAt:K().int().nonnegative()});function IO(e,t){return{...e,localizedTitle:e.title[t],...e.body?{localizedBody:e.body[t]}:{}}}function LO(e,t){switch(e.kind){case`chat`:return`/chat/${encodeURIComponent(e.sessionKey)}`;case`task`:return`/tasks/${encodeURIComponent(e.taskId)}`;case`automation_run`:return t===`mobile`?`/automation/runs/${encodeURIComponent(e.runId)}`:`/automations?automation=${encodeURIComponent(e.automationId)}&run=${encodeURIComponent(e.runId)}`;case`insight`:return`/inbox?item=${encodeURIComponent(e.inboxItemId)}`}}function RO(e,t,n){for(let r of[n,t])if(e.options.includes(r))return r;return e.initialValue}var zO=a(),Q=i();function BO(e){return e===`zh`?{newWork:`交给 xopc`,dialogTitle:`现在想完成什么?`,dialogDescription:`发送后会进入新对话。xopc 会直接回答或开始处理;需要持续推进时,再转为任务。`,intentLabel:`告诉 xopc 你要做什么`,intentPlaceholder:`例如:整理这周的会议记录,提炼待办并给出下周优先级`,intentSuggestion:`整理这周的会议记录,提炼待办并给出下周优先级`,submit:`进入对话并开始`,projectLabel:`归属项目`,monitoringLabel:`主动跟进`,monitoringModes:{observe:`仅观察`,ask_before_action:`行动前询问`,auto_low_risk:`自动执行低风险操作`},existingProject:`已有项目`,newProject:`新项目`,needsAttention:`需要你处理`,waitingStatus:`当前等待`,runAttention:`运行异常`,running:`xopc 正在处理`,continue:`继续推进`,recent:`最近对话`,evidenceCount:`项证据`,remainingCount:`项待继续`,projects:`长期项目`,emptyRunning:`当前没有正在处理的对话`,emptyContinue:`还没有需要继续推进的事项`,openChat:`打开对话`,whyNow:`为什么现在`,impact:`影响`,workDone:`AI 已完成`,recommendation:`建议`,policyReason:`处理依据`,proposedAction:`拟执行动作`,actionStates:{not_authorized:`仅建议,未获自动执行授权`,approval_required:`等待你批准`,pending:`等待执行`,executing:`正在执行`,completed:`已自动执行`,rejected:`已拒绝`,failed:`执行失败`},judgmentReasons:`判断依据`,rejectedAlternatives:`未选方案`,uncertainty:`不确定性`,snooze:`明天再看`,dismiss:`忽略`,feedbackPlaceholder:`告诉 AI:以后遇到这类情况应该怎样判断…`,applyFeedback:`调整后续判断`,taskStatuses:{pending:`待推进`,planning:`正在明确完成标准`,waiting_dependency:`等待前置任务`,running:`正在推进`,verifying:`正在验证`,needs_user:`需要你`,blocked:`已阻塞`,paused:`已暂停`,completed:`已完成`,cancelled:`已结束`},taskProgress:{title:`xopc 已接手`,open:`查看结果`,decide:`查看并决定`,evidence:`项已验证依据`,statuses:{pending:`待推进`,planning:`正在明确完成标准`,waiting_dependency:`等待前置任务`,running:`正在推进`,verifying:`正在验证`,needs_user:`需要你`,blocked:`已阻塞`,paused:`已暂停`,completed:`已完成`,cancelled:`已结束`}},detailStatuses:{captured:`尚未安排`,ready:`等待开始`,queued:`已进入队列`,running:`正在执行`,verifying:`正在验证`,waiting:`等待条件`,blocked:`被阻塞`,needsUser:`需要你处理`,review:`等待验收`,completed:`已完成`,ended:`已结束`,paused:`待继续`},detailStatusDescriptions:{captured:`任务已记录,但尚未进入执行队列。安排后,xopc 会开始推进。`,ready:`任务已经准备好,可以交给 xopc 开始执行。`,queued:`任务已进入执行队列,xopc 将在资源可用时开始。`,running:`xopc 正在推进这个任务。`,verifying:`xopc 正在根据完成标准核验结果。`,waiting:`任务正在等待外部条件满足。`,blocked:`当前存在阻塞条件,解除后才能继续。`,needsUser:`xopc 需要你的输入或批准后才能继续。`,review:`执行结果已经准备好,等待你验收。`,completed:`任务已经完成并关闭。`,ended:`任务已经结束,不会继续执行。`,paused:`任务目前没有运行,可以随时继续。`},statusSummary:`当前状态`,taskLabel:`任务`,taskDescription:`任务描述与目标`,editTaskField:`编辑`,saveTaskField:`保存`,cancelTaskField:`取消`,noTaskDescription:`添加任务背景、范围和交付要求。`,taskProperties:`任务属性`,taskPhase:`阶段`,priority:`优先级`,dueDate:`截止日期`,executorLabel:`执行 Agent`,priorityLabels:{low:`低优先级`,normal:`普通优先级`,high:`高优先级`,critical:`紧急`},unassigned:`未指定执行者`,noDueDate:`无截止时间`,updatedAt:`更新于 {{date}}`,successDefinition:`怎样才算完成`,taskDefinition:`任务定义`,criteriaProgress:`{{verified}}/{{total}} 已验证`,taskRelations:`任务关系`,dependencies:`前置任务`,dependents:`后续任务`,noDependencies:`没有前置任务`,noDependents:`没有后续任务`,editDependencies:`编辑前置任务`,saveDependencies:`保存关系`,cancelDependencyEdit:`取消`,dependenciesDescription:`所选任务全部完成后,xopc 才会开始推进当前任务。`,linkDependencies:`关联前置任务`,linkedDependencies:`已关联 {{count}} 个前置任务`,dependencySearchPlaceholder:`搜索任务名称`,noDependencyMatches:`没有匹配的任务`,noDependencyCandidates:`没有可选的其他任务`,removeDependency:`移除前置任务:{{task}}`,dependencyUpdateFailed:`前置任务更新失败,请刷新后重试。`,expectedOutputs:`预期输出`,constraints:`约束与边界`,approvalRequired:`需要你批准`,latestResult:`最新结果`,remainingWork:`还差什么`,nextAction:`下一步`,yourDecision:`只需你决定`,noRemainingWork:`已覆盖全部完成标准。`,noDecisionNeeded:`暂时不需要你做任何事,xopc 会继续推进。`,contextUsed:`本次使用的上下文`,contextSources:`信息来源`,contextAssumptions:`当前假设`,contextRisks:`风险`,contextRoleLabels:{input:`输入`,reference:`参考`,constraint:`约束`,deliverable:`交付物`,evidence:`证据`},contextKindLabels:{document:`文档`,file:`文件`,url:`链接`,session:`对话`,memory:`记忆`,task:`任务`,artifact:`产物`,source:`来源`},currentTask:`当前任务`,executionHistory:`历史执行记录({{count}})`,receiptStatuses:{succeeded:`执行成功`,failed:`执行失败`,cancelled:`已取消`},unresolvedCriteria:`待验证标准`,resultFeedback:`这件事做好了吗?`,doneWell:`做好了`,needsFix:`没做好`,correctionPlaceholder:`告诉 xopc 哪里不对、你真正想要的结果是什么`,submitCorrection:`修正并继续`,feedbackThanks:`收到,我会据此继续改进。`,correctionStarted:`收到,已重新打开并开始修正。`,noDefinition:`系统正在进一步明确完成标准。未明确前不会把事情误判为已完成。`,backToWork:`返回任务列表`,openTaskConversation:`进入对话`,taskNotFound:`没有找到这个任务`,runTask:`开始推进`,scheduleTask:`安排执行`,approveTask:`确认完成`,reopenTask:`重新打开`,moreActions:`更多操作`,pauseTask:`暂停推进`,resumeTask:`继续推进`,cancelTask:`结束事项`,cancelActiveRun:`取消当前执行`,deleteTask:`永久删除任务`,deleteTaskTitle:`永久删除这个任务?`,deleteTaskDescription:`将永久删除“{{title}}”及其执行记录、上下文和回执。关联对话、工作区文件和外部产物不会被删除。`,confirmDeleteTask:`永久删除`,keepTask:`保留任务`,deleteActiveTaskBlocked:`请先结束当前执行,再永久删除任务。`,actionFailed:`操作失败,请重试。`,verificationStatuses:{passed:`已验证`,failed:`验证未通过`,unverified:`待验证`}}:{newWork:`Ask xopc`,dialogTitle:`What do you want to get done?`,dialogDescription:`This opens a new conversation. xopc will answer or start working, and create a task only when the work needs ongoing progress.`,intentLabel:`Tell xopc what you need`,intentPlaceholder:`For example: summarize this week’s meeting notes and suggest next week’s priorities`,intentSuggestion:`Summarize this week’s meeting notes and suggest next week’s priorities`,submit:`Open conversation and start`,projectLabel:`Project`,monitoringLabel:`Proactive follow-up`,monitoringModes:{observe:`Observe only`,ask_before_action:`Ask before acting`,auto_low_risk:`Auto-run low-risk actions`},existingProject:`Existing project`,newProject:`New project`,needsAttention:`Needs your attention`,waitingStatus:`Current status`,runAttention:`Run issues`,running:`xopc is working`,continue:`Continue`,recent:`Recent conversations`,evidenceCount:`evidence items`,remainingCount:`remaining`,projects:`Long-term projects`,emptyRunning:`No conversations are running`,emptyContinue:`No ongoing items yet`,openChat:`Open conversation`,whyNow:`Why now`,impact:`Impact`,workDone:`AI checked`,recommendation:`Recommendation`,policyReason:`Policy decision`,proposedAction:`Proposed action`,actionStates:{not_authorized:`Suggested only; not authorized for auto-run`,approval_required:`Waiting for your approval`,pending:`Queued to run`,executing:`Running`,completed:`Auto-run completed`,rejected:`Rejected`,failed:`Execution failed`},judgmentReasons:`Why this is recommended`,rejectedAlternatives:`Alternatives not chosen`,uncertainty:`Uncertainty`,snooze:`Tomorrow`,dismiss:`Dismiss`,feedbackPlaceholder:`Tell AI how to judge this kind of event next time…`,applyFeedback:`Update future judgments`,taskStatuses:{pending:`Pending`,planning:`Defining done`,waiting_dependency:`Waiting on dependencies`,running:`In progress`,verifying:`Verifying`,needs_user:`Needs you`,blocked:`Blocked`,paused:`Paused`,completed:`Completed`,cancelled:`Ended`},taskProgress:{title:`xopc owns this task`,open:`View task`,decide:`Review and decide`,evidence:`verified evidence`,statuses:{pending:`Pending`,planning:`Defining done`,waiting_dependency:`Waiting on dependencies`,running:`In progress`,verifying:`Verifying`,needs_user:`Needs you`,blocked:`Needs you`,paused:`Paused`,completed:`Completed`,cancelled:`Ended`}},detailStatuses:{captured:`Not scheduled`,ready:`Ready to start`,queued:`Queued`,running:`In progress`,verifying:`Verifying`,waiting:`Waiting`,blocked:`Blocked`,needsUser:`Needs your attention`,review:`Ready for review`,completed:`Completed`,ended:`Ended`,paused:`Ready to continue`},detailStatusDescriptions:{captured:`This task is captured but has not entered the work queue. Schedule it when you are ready.`,ready:`This task is ready for xopc to start.`,queued:`This task is queued and will start when resources are available.`,running:`xopc is currently working on this task.`,verifying:`xopc is checking the result against the completion criteria.`,waiting:`This task is waiting for an external condition.`,blocked:`A blocking condition must be resolved before work can continue.`,needsUser:`xopc needs your input or approval before continuing.`,review:`The result is ready for your review.`,completed:`This task is complete and closed.`,ended:`This task has ended and will not continue.`,paused:`This task is not running and can be continued at any time.`},statusSummary:`Current status`,taskLabel:`Task`,taskDescription:`Description and objective`,editTaskField:`Edit`,saveTaskField:`Save`,cancelTaskField:`Cancel`,noTaskDescription:`Add background, scope, and delivery requirements.`,taskProperties:`Task properties`,taskPhase:`Phase`,priority:`Priority`,dueDate:`Due date`,executorLabel:`Agent`,priorityLabels:{low:`Low priority`,normal:`Normal priority`,high:`High priority`,critical:`Critical`},unassigned:`No assignee`,noDueDate:`No due date`,updatedAt:`Updated {{date}}`,successDefinition:`Definition of done`,taskDefinition:`Task definition`,criteriaProgress:`{{verified}}/{{total}} verified`,taskRelations:`Task relationships`,dependencies:`Dependencies`,dependents:`Dependent tasks`,noDependencies:`No dependencies`,noDependents:`No dependent tasks`,editDependencies:`Edit dependencies`,saveDependencies:`Save relationships`,cancelDependencyEdit:`Cancel`,dependenciesDescription:`xopc starts this task after every selected task is complete.`,linkDependencies:`Link dependencies`,linkedDependencies:`Linked dependencies: {{count}}`,dependencySearchPlaceholder:`Search tasks`,noDependencyMatches:`No matching tasks`,noDependencyCandidates:`There are no other tasks to select`,removeDependency:`Remove dependency: {{task}}`,dependencyUpdateFailed:`Dependencies could not be updated. Refresh and try again.`,expectedOutputs:`Expected outputs`,constraints:`Constraints and boundaries`,approvalRequired:`Your approval is required`,latestResult:`Latest result`,remainingWork:`What remains`,nextAction:`Next action`,yourDecision:`Your one decision`,noRemainingWork:`All completion criteria are covered.`,noDecisionNeeded:`Nothing is needed from you. xopc will keep moving this forward.`,contextUsed:`Context used for this task`,contextSources:`Sources`,contextAssumptions:`Current assumptions`,contextRisks:`Risks`,contextRoleLabels:{input:`Input`,reference:`Reference`,constraint:`Constraint`,deliverable:`Deliverable`,evidence:`Evidence`},contextKindLabels:{document:`Document`,file:`File`,url:`Link`,session:`Conversation`,memory:`Memory`,task:`Task`,artifact:`Artifact`,source:`Source`},currentTask:`Current task`,executionHistory:`Execution history ({{count}})`,receiptStatuses:{succeeded:`Succeeded`,failed:`Failed`,cancelled:`Cancelled`},unresolvedCriteria:`Criteria still to verify`,resultFeedback:`Was this done well?`,doneWell:`Yes, done`,needsFix:`Needs fixing`,correctionPlaceholder:`Tell xopc what is wrong and what the right task should be`,submitCorrection:`Fix and continue`,feedbackThanks:`Got it. I will use this to improve future work.`,correctionStarted:`Got it. This was reopened and correction has started.`,noDefinition:`xopc is still clarifying the completion criteria. It will not mark this done before they are explicit.`,backToWork:`Back to tasks`,openTaskConversation:`Open conversation`,taskNotFound:`This task was not found`,runTask:`Start working`,scheduleTask:`Schedule work`,approveTask:`Mark complete`,reopenTask:`Reopen`,moreActions:`More actions`,pauseTask:`Pause`,resumeTask:`Continue`,cancelTask:`End task`,cancelActiveRun:`Cancel active run`,deleteTask:`Delete task permanently`,deleteTaskTitle:`Delete this task permanently?`,deleteTaskDescription:`This permanently deletes “{{title}}” and its execution records, context, and receipts. Linked conversations, workspace files, and external artifacts are kept.`,confirmDeleteTask:`Delete permanently`,keepTask:`Keep task`,deleteActiveTaskBlocked:`End the active run before deleting this task permanently.`,actionFailed:`The action failed. Please try again.`,verificationStatuses:{passed:`Verified`,failed:`Verification failed`,unverified:`Not verified`}}}var VO=`task`;function HO(e){return`/chat/task/${encodeURIComponent(e)}`}function UO(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.set(VO,t),`${n}?${i.toString()}`}function WO(e,t){let n=new URLSearchParams(t);n.delete(VO);let r=n.toString();return r?`${e}?${r}`:e}async function GO(e){return QE.parse(await J(Y(`/api/tasks`),{method:`POST`,body:JSON.stringify(e)}))}async function KO(e){return tD.parse(await J(Y(`/api/tasks/${encodeURIComponent(e)}`)))}async function qO(e){return J(Y(`/api/tasks/${encodeURIComponent(e)}/conversation`),{method:`POST`})}async function JO(e,t,n){return await J(Y(`/api/tasks/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify({...t,expectedVersion:n})}),KO(e)}async function YO(e){await J(Y(`/api/tasks/${encodeURIComponent(e)}`),{method:`DELETE`})}async function XO(e,t,n){return await J(Y(`/api/tasks/${encodeURIComponent(e)}/commands`),{method:`POST`,body:JSON.stringify({idempotencyKey:crypto.randomUUID(),expectedVersion:n,command:t})}),KO(e)}async function ZO(e,t,n){return await J(Y(`/api/task-runs/${encodeURIComponent(t)}/cancel`),{method:`POST`,body:JSON.stringify({expectedVersion:n,reason:`Cancelled by user`})}),KO(e)}async function QO(e,t,n){return await J(Y(`/api/tasks/${encodeURIComponent(e)}/handoff`),{method:`POST`,body:JSON.stringify({toAgentId:t,expectedVersion:n,idempotencyKey:crypto.randomUUID()})}),KO(e)}async function $O(e,t,n){return await J(Y(`/api/tasks/${encodeURIComponent(e)}/dependencies`),{method:`PUT`,body:JSON.stringify({dependsOnTaskIds:t,expectedVersion:n})}),KO(e)}async function ek(e,t,n){return await J(Y(`/api/tasks/${encodeURIComponent(e)}/board-position`),{method:`PUT`,body:JSON.stringify({beforeTaskId:t,expectedVersion:n})}),KO(e)}async function tk(e,t,n){await J(Y(`/api/task-runs/${encodeURIComponent(e)}/feedback`),{method:`POST`,body:JSON.stringify({rating:t,reason:n?.trim()||void 0})})}function nk(e){return J(Y(`/api/home${e?`?locale=${encodeURIComponent(e)}`:``}`)).then(lO)}function rk(e,t){return J(Y(`/api/home/decisions/respond`),{method:`POST`,body:JSON.stringify({...e,decision:t})})}function ik(e){return J(Y(`/api/home/attention/acknowledge`),{method:`POST`,body:JSON.stringify(e)})}function ak(e,t){return J(Y(`/api/inbox/judgments/${encodeURIComponent(e)}/decisions`),{method:`POST`,body:JSON.stringify({choice:t})})}function ok(e,t){return J(Y(`/api/inbox/judgments/${encodeURIComponent(e)}/transition`),{method:`POST`,body:JSON.stringify(t===`snoozed`?{status:t,snoozedUntil:new Date(Date.now()+1440*60*1e3).toISOString()}:t===`resolved`?{status:t,resolution:`dismissed`}:{status:t})})}function sk(e,t){return J(Y(`/api/inbox/judgments/${encodeURIComponent(e)}/instructions`),{method:`POST`,body:JSON.stringify({instruction:t})})}function ck(e){return J(Y(`/api/home/attention/retry`),{method:`POST`,body:JSON.stringify(e)})}function lk(e,t){return e?[`task-detail`,e,t??``]:null}function uk(e,t){return t.source!==`user`||e===void 0||t.version>e}function dk(e){let t=ut(e=>e.token),[n,r]=(0,Z.useState)(null),[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),c=(0,Z.useRef)(``),l=(0,Z.useRef)(void 0),u=mt(lk(e,t),()=>KO(e),{keepPreviousData:!1,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshInterval:e=>e&&[`queued`,`running`,`waiting`,`verifying`].includes(e.operationalState)?5e3:0});return l.current=u.data?.task.version,(0,Z.useEffect)(()=>{r(null),a(!1),s(null),c.current=``},[e]),(0,Z.useEffect)(()=>{let t=u.data;if(!t||t.conversation.activeSessionKey)return;let n=`${e}:${t.task.version}`;c.current!==n&&(c.current=n,a(!0),s(null),qO(e).then(()=>c.current===n?u.mutate():void 0).catch(e=>{c.current===n&&s(e)}).finally(()=>{c.current===n&&a(!1)}))},[u.data,u.mutate,e]),(0,Z.useEffect)(()=>{let t,n=()=>{window.clearTimeout(t),t=window.setTimeout(()=>void u.mutate(),120)},i=t=>{let i=PE.safeParse(t.detail);!i.success||i.data.taskId!==e||uk(l.current,i.data)&&(r(i.data),n())},a=()=>n();return window.addEventListener(`task-changed-v2`,i),window.addEventListener(`gateway-realtime-connected`,a),window.addEventListener(`realtime-gap`,a),()=>{window.clearTimeout(t),window.removeEventListener(`task-changed-v2`,i),window.removeEventListener(`gateway-realtime-connected`,a),window.removeEventListener(`realtime-gap`,a)}},[u.mutate,e]),{...u,lastChange:n,conversationLoading:i,conversationError:o}}var $=o();function fk(e,t){return e===`closed`?`border-success/35 text-success`:t===`waiting`||t===`blocked`?`border-warning/40 text-warning`:`border-accent/40 text-accent`}var pk=(0,Z.memo)(function(e){let t=(0,Q.c)(50),{taskId:n}=e,r=l(),i=ct(mk),a;t[0]===i?a=t[1]:(a=BO(i),t[0]=i,t[1]=a);let o=a,{data:s}=dk(n);if(!s)return null;let{task:c,operationalState:u}=s,d=s.receipts[0],f=s.attention.length>0,p;t[2]!==u||t[3]!==c.phase?(p=c.phase!==`closed`&&[`queued`,`running`,`verifying`].includes(u),t[2]=u,t[3]=c.phase,t[4]=p):p=t[4];let m=p,h=f?s.attention[0]?.summary??d?.nextAction??d?.summary:c.phase===`closed`?d?.summary:d?.nextAction??d?.summary??o.noDecisionNeeded,g;t[5]===d?.evidence?g=t[6]:(g=d?.evidence.filter(hk).length??0,t[5]=d?.evidence,t[6]=g);let _=g,v=o.taskProgress.title,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(TS,{className:`size-4`,"aria-hidden":!0}),t[7]=b):b=t[7];let x;t[8]===m?x=t[9]:(x=m?(0,$.jsx)(`span`,{className:`absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-surface-panel bg-accent motion-safe:animate-pulse`}):null,t[8]=m,t[9]=x);let S;t[10]===x?S=t[11]:(S=(0,$.jsxs)(`span`,{className:`relative mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-fg`,children:[b,x]}),t[10]=x,t[11]=S);let C;t[12]===o.taskProgress.title?C=t[13]:(C=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:o.taskProgress.title}),t[12]=o.taskProgress.title,t[13]=C);let w;t[14]!==u||t[15]!==c.phase?(w=X(`rounded-full border px-1.5 py-0.5 text-[10px] font-medium`,fk(c.phase,u)),t[14]=u,t[15]=c.phase,t[16]=w):w=t[16];let T;t[17]!==u||t[18]!==w||t[19]!==c.phase?(T=(0,$.jsxs)(`span`,{className:w,children:[c.phase,` · `,u]}),t[17]=u,t[18]=w,t[19]=c.phase,t[20]=T):T=t[20];let E;t[21]!==o.taskProgress.evidence||t[22]!==_?(E=_>0?(0,$.jsxs)(`span`,{className:`text-[11px] text-fg-muted`,children:[_,` `,o.taskProgress.evidence]}):null,t[21]=o.taskProgress.evidence,t[22]=_,t[23]=E):E=t[23];let D;t[24]!==T||t[25]!==E||t[26]!==C?(D=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[C,T,E]}),t[24]=T,t[25]=E,t[26]=C,t[27]=D):D=t[27];let O;t[28]===c.title?O=t[29]:(O=(0,$.jsx)(`p`,{className:`mt-1 text-sm font-medium leading-5 text-fg`,children:c.title}),t[28]=c.title,t[29]=O);let k;t[30]===h?k=t[31]:(k=h?(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-5 text-fg-muted`,children:h}):null,t[30]=h,t[31]=k);let A;t[32]!==D||t[33]!==O||t[34]!==k?(A=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[D,O,k]}),t[32]=D,t[33]=O,t[34]=k,t[35]=A):A=t[35];let j=`${r.pathname}${r.search}`,M;t[36]!==j||t[37]!==c.id?(M=UO(j,c.id),t[36]=j,t[37]=c.id,t[38]=M):M=t[38];let N=f?o.taskProgress.decide:o.taskProgress.open,P;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0}),t[39]=P):P=t[39];let F;t[40]!==M||t[41]!==N?(F=(0,$.jsxs)(y,{to:M,className:`inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1.5 text-xs font-medium text-accent hover:bg-accent-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[N,P]}),t[40]=M,t[41]=N,t[42]=F):F=t[42];let I;t[43]!==A||t[44]!==F||t[45]!==S?(I=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[S,A,F]}),t[43]=A,t[44]=F,t[45]=S,t[46]=I):I=t[46];let L;return t[47]!==o.taskProgress.title||t[48]!==I?(L=(0,$.jsx)(`section`,{className:`mb-6 rounded-xl border border-edge bg-surface-panel px-3 py-3 sm:px-4`,"aria-label":v,"aria-live":`polite`,children:I}),t[47]=o.taskProgress.title,t[48]=I,t[49]=L):L=t[49],L});function mk(e){return e.language}function hk(e){return e.strength===`verified`}var gk={transition:`transition-colors duration-150 ease-out`,press:`transition-transform duration-150 ease-out active:scale-95 motion-reduce:transition-none motion-reduce:active:scale-100`,pressCard:`transition-transform duration-150 ease-out active:scale-[0.98] motion-reduce:transition-none motion-reduce:active:scale-100`,focusRingPanel:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,focusRingBase:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,disabled:`disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none`},_k=`rounded-lg p-2 text-fg-muted transition-colors transition-transform duration-150 ease-out hover:bg-surface-hover hover:text-fg active:scale-95 motion-reduce:transition-none motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,vk=300*1e3,yk=Math.round(vk/6e4);function bk(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,`0`)}`}function xk(e){let t=(0,Q.c)(7),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s}=e;if(!n)return null;let c;return t[0]!==a||t[1]!==s||t[2]!==o||t[3]!==n||t[4]!==i||t[5]!==r?(c=(0,$.jsx)(Sk,{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s},n.requestId),t[0]=a,t[1]=s,t[2]=o,t[3]=n,t[4]=i,t[5]=r,t[6]=c):c=t[6],c}function Sk(e){let t=(0,Q.c)(70),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onCancel:s}=e,[c,l]=(0,Z.useState)(``),[u]=(0,Z.useState)(wk),[d,f]=(0,Z.useState)(0),p=(0,Z.useRef)(null),m,h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{let e=window.setInterval(()=>f(Ck),1e3);return()=>window.clearInterval(e)},h=[],t[0]=m,t[1]=h):(m=t[0],h=t[1]),(0,Z.useEffect)(m,h);let g,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{p.current?.focus()},_=[],t[2]=g,t[3]=_):(g=t[2],_=t[3]),(0,Z.useEffect)(g,_);let v;t[4]===o?v=t[5]:(v=e=>{o(e)},t[4]=o,t[5]=v);let y=v,b=Math.max(0,Math.ceil((u-Date.now())/1e3)),x=`clarify-meta-${n.requestId}`,S=i?`clarify-err-${n.requestId}`:void 0,C;t[6]!==s||t[7]!==r?(C=e=>{e.key===`Escape`&&!r&&(e.preventDefault(),e.stopPropagation(),s())},t[6]=s,t[7]=r,t[8]=C):C=t[8];let w=C,T=Array.isArray(n.choices)&&n.choices.length>=2,E;t[9]!==a.clarifyDefaultChoice||t[10]!==n.default?(E=n.default?a.clarifyDefaultChoice.replace(`{{text}}`,n.default):null,t[9]=a.clarifyDefaultChoice,t[10]=n.default,t[11]=E):E=t[11];let D=E,O;t[12]===a.clarifyServerTimeout?O=t[13]:(O=a.clarifyServerTimeout.replace(`{{minutes}}`,String(yk)),t[12]=a.clarifyServerTimeout,t[13]=O);let k=O,A;t[14]!==a.clarifyTimeRemaining||t[15]!==b?(A=a.clarifyTimeRemaining.replace(`{{time}}`,bk(b)),t[14]=a.clarifyTimeRemaining,t[15]=b,t[16]=A):A=t[16];let j=A,M=a.clarifyRegionAria,N;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(N=X(`mb-4 rounded-lg border border-edge bg-surface-elevated px-4 py-3 text-sm text-fg shadow-sm outline-none`,gk.focusRingPanel),t[17]=N):N=t[17];let P;t[18]===a.clarifyResumeHint?P=t[19]:(P=(0,$.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:a.clarifyResumeHint}),t[18]=a.clarifyResumeHint,t[19]=P);let F;t[20]===n.question?F=t[21]:(F=(0,$.jsx)(ke,{content:n.question,compact:!0,className:`mb-3`}),t[20]=n.question,t[21]=F);let I;t[22]===k?I=t[23]:(I=(0,$.jsx)(`li`,{children:k}),t[22]=k,t[23]=I);let L;t[24]!==a.clarifyDefaultTimeoutNote||t[25]!==n.default?(L=n.default?(0,$.jsx)(`li`,{children:a.clarifyDefaultTimeoutNote}):null,t[24]=a.clarifyDefaultTimeoutNote,t[25]=n.default,t[26]=L):L=t[26];let R;t[27]===a.clarifySkipNote?R=t[28]:(R=(0,$.jsx)(`li`,{children:a.clarifySkipNote}),t[27]=a.clarifySkipNote,t[28]=R);let z;t[29]===j?z=t[30]:(z=(0,$.jsx)(`li`,{children:j}),t[29]=j,t[30]=z);let B;t[31]!==x||t[32]!==I||t[33]!==L||t[34]!==R||t[35]!==z?(B=(0,$.jsxs)(`ul`,{id:x,className:`mb-3 list-inside list-disc space-y-1 text-xs text-fg-muted`,children:[I,L,R,z]}),t[31]=x,t[32]=I,t[33]=L,t[34]=R,t[35]=z,t[36]=B):B=t[36];let V;t[37]!==S||t[38]!==i?(V=i?(0,$.jsx)(`div`,{id:S,role:`alert`,className:`mb-3 rounded-md border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-800 dark:border-red-900/50 dark:bg-red-950/40 dark:text-red-200`,children:i}):null,t[37]=S,t[38]=i,t[39]=V):V=t[39];let H;t[40]!==c||t[41]!==D||t[42]!==T||t[43]!==a.clarifyChoicesGroupAria||t[44]!==a.clarifyCustomLabel||t[45]!==a.clarifyPlaceholder||t[46]!==a.clarifySend||t[47]!==a.clarifyUseDefault||t[48]!==o||t[49]!==y||t[50]!==n.choices||t[51]!==n.default||t[52]!==r?(H=T?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`max-h-[min(40vh,16rem)] overflow-y-auto overflow-x-hidden pr-1 [scrollbar-gutter:stable]`,"aria-label":a.clarifyChoicesGroupAria,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-2`,children:[n.choices.map(e=>(0,$.jsx)(vt,{type:`button`,variant:`secondary`,disabled:r,className:X(`min-h-9 w-full justify-start rounded-lg px-3 py-2 text-left text-sm font-normal shadow-none`,`hover:border-edge`),onClick:()=>y(e),children:e},e)),n.default?(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:r,className:X(`min-h-9 w-full justify-start rounded-lg border border-dashed border-edge px-3 py-2 text-left text-sm font-normal text-fg-muted`,`hover:border-edge hover:text-fg`),onClick:()=>y(n.default),children:D}):null]})}),(0,$.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:a.clarifyCustomLabel}),(0,$.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end`,onSubmit:e=>{e.preventDefault();let t=c.trim();t&&o(t)},children:[(0,$.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),disabled:r,placeholder:a.clarifyPlaceholder,"aria-label":a.clarifyPlaceholder,className:`min-w-0 flex-1 rounded-md border border-edge bg-surface-panel px-3 py-2 text-fg placeholder:text-fg-muted focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-50`}),(0,$.jsx)(vt,{type:`submit`,variant:`primary`,disabled:r||!c.trim(),className:`shrink-0 rounded-lg px-4 py-2 shadow-surface`,children:a.clarifySend})]})]})]}):(0,$.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end`,onSubmit:e=>{e.preventDefault();let t=c.trim();t&&(o(t),l(``))},children:[(0,$.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),disabled:r,placeholder:a.clarifyPlaceholder,"aria-label":a.clarifyPlaceholder,className:`min-w-0 flex-1 rounded-md border border-edge bg-surface-panel px-3 py-2 text-fg placeholder:text-fg-muted focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-50`}),(0,$.jsx)(vt,{type:`submit`,variant:`primary`,disabled:r||!c.trim(),className:`shrink-0 rounded-lg px-4 py-2 shadow-surface`,children:a.clarifySend}),n.default?(0,$.jsx)(vt,{type:`button`,variant:`secondary`,disabled:r,className:`shrink-0 rounded-lg px-3 py-2 text-sm font-normal text-fg-muted shadow-none hover:text-fg`,onClick:()=>y(n.default),children:a.clarifyUseDefault}):null]}),t[40]=c,t[41]=D,t[42]=T,t[43]=a.clarifyChoicesGroupAria,t[44]=a.clarifyCustomLabel,t[45]=a.clarifyPlaceholder,t[46]=a.clarifySend,t[47]=a.clarifyUseDefault,t[48]=o,t[49]=y,t[50]=n.choices,t[51]=n.default,t[52]=r,t[53]=H):H=t[53];let ee;t[54]===s?ee=t[55]:(ee=()=>void s(),t[54]=s,t[55]=ee);let te;t[56]!==a.clarifySkip||t[57]!==r||t[58]!==ee?(te=(0,$.jsx)(`div`,{className:`mt-3 flex flex-wrap items-center justify-end gap-2 border-t border-edge-subtle pt-3`,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:r,className:`text-fg-muted hover:text-fg`,onClick:ee,children:a.clarifySkip})}),t[56]=a.clarifySkip,t[57]=r,t[58]=ee,t[59]=te):te=t[59];let ne;return t[60]!==a.clarifyRegionAria||t[61]!==x||t[62]!==w||t[63]!==P||t[64]!==F||t[65]!==B||t[66]!==V||t[67]!==H||t[68]!==te?(ne=(0,$.jsxs)(`section`,{ref:p,tabIndex:-1,"aria-label":M,"aria-describedby":x,onKeyDown:w,className:N,children:[P,F,B,V,H,te]}),t[60]=a.clarifyRegionAria,t[61]=x,t[62]=w,t[63]=P,t[64]=F,t[65]=B,t[66]=V,t[67]=H,t[68]=te,t[69]=ne):ne=t[69],ne}function Ck(e){return e+1}function wk(){return Date.now()+vk}function Tk(e,t){if(e===`user_context_search`||e===`knowledge_search`)return`memorySearch`;let n=t??Ye(e,`running`);return n.category===`memory`&&n.action===`search`?`memorySearch`:n.category===`web`&&n.action===`search`?`webSearch`:n.category===`code`&&n.action===`search`?`codeSearch`:n.category===`other`&&n.action===`search`?`search`:n.category===`file`&&n.action===`read`?`readFile`:n.category===`file`&&n.action===`list`?`listDir`:n.category===`file`&&n.action===`write`?`writeFile`:n.category===`file`&&n.action===`edit`?`editFile`:n.category===`command`&&n.action===`execute`?`runCommand`:n.category===`navigation`&&n.action===`open`?`openUrl`:n.category===`web`&&n.action===`read`?`fetchUrl`:`other`}function Ek(e,t,n){let r=n??Ye(e,`running`);if(r.category===`planning`)return t.updatePlan??t.unknownTool.replace(`{{name}}`,e);let i=Tk(e,r);return i===`webSearch`?t.searchedWeb:i===`memorySearch`?t.searchedMemory??t.searched??t.searchedWeb:i===`codeSearch`?t.searchedCode??t.searched??t.searchedWeb:i===`search`?t.searched??t.searchedWeb:i===`readFile`?t.readFile:i===`runCommand`?t.runCommand:i===`listDir`?t.listDirectory:i===`writeFile`?t.writeFile:i===`editFile`?t.editFile:i===`openUrl`?t.openUrl:i===`fetchUrl`?t.fetchUrl:t.unknownTool.replace(`{{name}}`,e.trim()||`tool`)}function Dk(e,t){if(!e.payload)throw Error(e.error??t);return e.payload}async function Ok(){return Dk(await J(Y(`/api/connectors/catalog`)),`Could not load connector catalog.`).connectors}async function kk(e){let t=new URLSearchParams;return e?.q?.trim()&&t.set(`q`,e.q.trim()),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`pageSize`,String(e.pageSize)),e?.refresh&&t.set(`refresh`,`1`),e?.verification&&t.set(`verification`,e.verification),Dk(await J(Y(`/api/connectors/composio/catalog${t.size?`?${t.toString()}`:``}`)),`Could not load Composio catalog.`)}async function Ak(e){let t=new URLSearchParams;return e?.q?.trim()&&t.set(`q`,e.q.trim()),e?.page&&t.set(`page`,String(e.page)),e?.pageSize&&t.set(`pageSize`,String(e.pageSize)),e?.category?.trim()&&t.set(`category`,e.category.trim()),e?.sort&&t.set(`sort`,e.sort),Dk(await J(Y(`/api/capabilities/connectors${t.size?`?${t.toString()}`:``}`)),`Could not load Store connector capabilities.`)}async function jk(e,t){return Dk(await J(Y(`/api/capabilities/connectors/${encodeURIComponent(e)}/install-plan`),{method:`POST`,body:JSON.stringify({version:t})}),`Could not prepare connector installation.`).plan}async function Mk(e,t,n){let r=await J(Y(`/api/capabilities/connectors/${encodeURIComponent(e)}/install`),{method:`POST`,body:JSON.stringify({...t,version:n})});return xt(),Dk(r,`Could not install Store connector.`).instance}async function Nk(){return Dk(await J(Y(`/api/connectors/installed`)),`Could not load installed connectors.`).instances}async function Pk(e){return Dk(await J(Y(`/api/connectors/${encodeURIComponent(e)}/auth/start`),{method:`POST`}),`Could not start connector authorization.`).authorization}async function Fk(e,t=12e4){let n=Date.now()+t;for(;Date.now()<n;){let t=(await Nk()).find(t=>t.instanceId===e);if(!t)throw Error(`Connector installation is unavailable.`);if(t.authStatus===`connected`)return t;if(t.status===`failed`||t.connectionStatus===`error`)throw Error(t.lastError??`Connector authorization failed.`);await new Promise(e=>window.setTimeout(e,1e3))}throw Error(`Connector authorization timed out.`)}async function Ik(){return Dk(await J(Y(`/api/connectors/composio/setup-status`)),`Could not check the connection service.`)}async function Lk(e){Dk(await J(Y(`/api/connectors/composio/setup`),{method:`POST`,body:JSON.stringify({apiKey:e})}),`Could not enable the connection service.`)}async function Rk(e,t){let n=await J(Y(`/api/connectors/${encodeURIComponent(e)}/install`),{method:`POST`,body:JSON.stringify(t)});return xt(),Dk(n,`Could not install connector.`).instance}async function zk(e,t={}){return Dk(await J(Y(`/api/connectors/preview`),{method:`POST`,body:JSON.stringify({...t,definition:e})}),`Could not preview connector capabilities.`).preview}async function Bk(e,t){return Dk(await J(Y(`/api/connectors/${encodeURIComponent(e)}/config`),{method:`POST`,body:JSON.stringify(t)}),`Could not update connector config.`).instance}async function Vk(e){await J(Y(`/api/connectors/${encodeURIComponent(e)}`),{method:`DELETE`}),xt()}async function Hk(e){return Dk(await J(Y(`/api/connectors/${encodeURIComponent(e)}/test`),{method:`POST`}),`Connector test failed.`)}async function Uk(){return Dk(await J(Y(`/api/connectors/composio/connections`)),`Could not load Composio connections.`).connections}async function Wk(e){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/auth-configs`)),`Could not load Composio auth configs.`).auth}async function Gk(e,t,n=12e4){let r=Date.now()+n;for(;Date.now()<r;){let n=(await Uk().catch(()=>[])).find(n=>n.toolkit.toLowerCase()===e.toLowerCase()&&n.status===`active`&&(!t||n.providerConnectionId===t));if(n)return n;await new Promise(e=>window.setTimeout(e,2e3))}throw Error(`Connection authorization timed out.`)}async function Kk(e,t){return Dk(await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)}),`Could not update Composio connection.`).connection}async function qk(e){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/health`)),`Could not check Composio connector health.`).health}async function Jk(e){await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}/refresh`),{method:`POST`})}async function Yk(e){await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}`),{method:`DELETE`})}async function Xk(e){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/scope`)),`Could not load Composio scope.`).scope}async function Zk(e,t){let n=await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/scope`),{method:`POST`,body:JSON.stringify({scope:t})});return xt(),Dk(n,`Could not update Composio scope.`).scope}async function Qk(e){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/policy`)),`Could not load Composio policy.`)}async function $k(e,t){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/policy`),{method:`PATCH`,body:JSON.stringify(t)}),`Could not update Composio policy.`).policy}async function eA(e){return Dk(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/tools`)),`Could not load Composio tools.`).tools}async function tA(e=50){return Dk(await J(Y(`/api/connectors/composio/triggers?limit=${encodeURIComponent(String(e))}`)),`Could not load Composio trigger events.`).events}async function nA(e){return Dk(await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}/learning`),{method:`POST`}),`Could not start learning from this connection.`).job}async function rA(){return Dk(await J(Y(`/api/connectors/learning`)),`Could not load connector learning jobs.`).jobs}async function iA(e){return Dk(await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}/sync-policy`)),`Could not load connector sync policy.`).policy}async function aA(e,t){return Dk(await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}/sync-policy`),{method:`PATCH`,body:JSON.stringify(t)}),`Could not update connector sync policy.`).policy}async function oA(e){return Dk(await J(Y(`/api/connectors/${encodeURIComponent(e)}/source-sync`),{method:`POST`}),`Could not sync connector source.`)}async function sA(e=`pending`){return Dk(await J(Y(`/api/connectors/approvals?status=${encodeURIComponent(e)}`)),`Could not load connector approvals.`).approvals}async function cA(e,t){return Dk(await J(Y(`/api/connectors/approvals/respond`),{method:`POST`,body:JSON.stringify({id:e,decision:t})}),`Could not update connector approval.`).approval}function lA({voice:e,sessionKey:t,m:n}){let r=ut(e=>e.token),[i,a]=(0,Z.useState)(!1),o=(0,Z.useRef)(!1),[s,c]=(0,Z.useState)(null),l=mt(r?[`voice-approvals`,t,r]:null,()=>sA(),{refreshInterval:3e3}),u=l.data?.filter(e=>e.sessionKey===t)??[],d=async e=>{if(!o.current){o.current=!0,a(!0),c(null);try{await e()}catch(e){c(e instanceof Error?e.message:String(e))}finally{o.current=!1,a(!1)}}},f=(t,n=!1)=>{let r=e.clarification?.requestId;if(r)return d(async()=>{await J(Y(`/api/clarify/${encodeURIComponent(r)}`),{method:`POST`,body:JSON.stringify(n?{skip:!0}:{answer:t})}),e.dismissClarification(r)})};return(0,$.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[e.activities.map(e=>(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[Ek(e.toolName,{searchedWeb:n.stepSearchedWeb,searchedMemory:n.stepSearchedMemory,searchedCode:n.stepSearchedCode,readFile:n.stepReadFile,runCommand:n.stepRunCommand,listDirectory:n.stepListDirectory,writeFile:n.stepWriteFile,editFile:n.stepEditFile,openUrl:n.stepOpenUrl,fetchUrl:n.stepFetchUrl,unknownTool:n.stepUnknownTool}),` · `,e.status===`running`?n.callWorking:e.status===`failed`?n.callWorkFailed:n.callWorkDone]},e.toolCallId)),(0,$.jsx)(xk,{prompt:e.clarification,labels:n,submitting:i,submitError:s,onSubmit:e=>f(e),onCancel:()=>f(``,!0)}),u.map(e=>(0,$.jsxs)(`div`,{className:`space-y-2 rounded-lg border border-edge p-3`,children:[(0,$.jsx)(`p`,{className:`font-medium`,children:n.callApproval}),(0,$.jsx)(`p`,{children:e.actionId}),(0,$.jsx)(`pre`,{className:`max-h-40 overflow-auto whitespace-pre-wrap break-all text-xs`,children:JSON.stringify(e.argumentsPreview,null,2)}),(0,$.jsx)(`div`,{className:`flex gap-2`,children:[`denied`,`approved`].map(t=>(0,$.jsx)(vt,{variant:`secondary`,disabled:i,onClick:()=>void d(async()=>{await cA(e.id,t),await l.mutate()}),children:t===`approved`?n.callApprove:n.callDeny},t))})]},e.id)),s&&!e.clarification?(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-red-600`,children:s}):null]})}var uA=at()(wt(e=>({captions:!0,microphoneId:``,setCaptions:t=>e({captions:t}),setMicrophoneId:t=>e({microphoneId:t})}),{name:`xopc-voice-preferences`}));function dA(){let e=uA.getState().microphoneId;return{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,...e?{deviceId:{exact:e}}:{}}}function fA(e,t,n,r){let i=n?t.replace(/\{\{(\w+)\}\}/g,(e,t)=>String(n[t]??``)):t;Tt({tone:e,title:i,href:r?.href,dedupeKey:`action-feedback:${e}:${i}`})}var pA=12,mA=1481592882,hA=64*1024;new TextEncoder;var gA=new TextDecoder(`utf-8`,{fatal:!0});function _A(e){if(e.length<=pA||e.length>hA)throw Error(`Invalid voice audio frame`);let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint32(4),r=t.getUint32(8),i=pA+r;if(t.getUint32(0)!==mA||!n||!r||r>160||i>=e.length||(e.length-i)%2)throw Error(`Invalid voice audio header`);return{responseId:gA.decode(e.subarray(pA,i)),seq:n,audio:e.slice(i)}}var vA=`/api/voice/realtime/v2/ws`,yA=64*1024,bA=15e3,xA=He(),SA=K().int().nonnegative(),CA=Ge([`dictation`,`conversation`]),wA=Ge([`agent`,`omni`]),TA=Pe(`server_vad`),EA=Ge([`zh`,`en`]),DA=ze({encoding:Pe(`pcm_s16le`),sampleRate:Ie([Pe(16e3),Pe(24e3)]),channels:Pe(1)}),OA=ze({provider:q().min(1).max(100),model:q().min(1).max(200),managed:Ue()}),kA=Re(`engine`,[ze({engine:Pe(`dictation`),stt:OA}),ze({engine:Pe(`agent`),stt:OA,tts:OA}),ze({engine:Pe(`omni`),omni:OA})]),AA=ze({available:Ue(),reasonCode:Ge([`VOICE_DISABLED`,`PROVIDER_UNAVAILABLE`]).optional()});We({enabled:Ue(),defaultEngine:wA,omni:OA.nullable(),stt:OA.nullable(),tts:OA.extend({voice:q().optional()}).nullable(),capabilities:ze({dictation:AA,agent:AA,omni:AA,languages:Ve(EA),bargeIn:Ue()})}),ze({purpose:CA,engine:wA.optional(),sessionKey:q().min(1).max(512).optional(),language:EA.optional()}).superRefine((e,t)=>{e.purpose===`conversation`&&!e.sessionKey&&t.addIssue({code:`custom`,path:[`sessionKey`],message:`sessionKey is required for conversation`}),e.purpose!==`conversation`&&e.engine!==void 0&&t.addIssue({code:`custom`,path:[`engine`],message:`engine is only supported for conversation`})}),ze({sessionId:xA,ticket:q().min(32).max(512),ticketExpiresAt:Be(),websocketPath:Pe(vA),protocolVersion:Pe(2),purpose:CA,inputMode:TA,bargeIn:Ue(),inputFormat:DA,limits:ze({maxBinaryFrameBytes:Pe(yA),maxSessionMs:K().int().positive(),idleTimeoutMs:K().int().positive()}),route:kA});var jA=(e,t)=>ze({protocolVersion:Pe(2),messageId:xA,type:Pe(e),sentAt:SA,payload:t});Re(`type`,[jA(`session.start`,ze({sessionId:xA,ticket:q().min(32).max(512)})),jA(`session.metric`,ze({responseId:q().min(1).max(160),metric:Ge([`speech_end_to_audio_received`,`local_stop`]),durationMs:K().finite().min(0).max(6e5)})),jA(`input.mute`,ze({muted:Ue()})),jA(`input.commit`,ze({})),jA(`response.cancel`,ze({responseId:q().min(1).max(160)})),jA(`response.audio.played`,ze({responseId:q().min(1).max(160),playedBytes:K().int().nonnegative().max(2**53-1).multipleOf(2)})),jA(`session.stop`,ze({reason:Ge([`user_finished`,`surface_closed`,`replaced`])})),jA(`session.ping`,ze({}))]);var MA=ze({utteranceId:q().min(1).max(160),revision:K().int().positive(),text:q().max(32*1024),language:EA.optional()}),NA=(e,t)=>ze({protocolVersion:Pe(2),eventId:xA,seq:K().int().positive(),type:Pe(e),sentAt:SA,sessionId:xA,payload:t}),PA=Re(`type`,[NA(`session.ready`,ze({purpose:CA,inputMode:TA,inputFormat:DA,route:kA,heartbeatIntervalMs:Pe(bA)})),NA(`input.speech_started`,ze({utteranceId:q().min(1).max(160)})),NA(`input.speech_stopped`,ze({utteranceId:q().min(1).max(160)})),NA(`input.transcript.delta`,MA),NA(`input.transcript.final`,MA),NA(`response.created`,ze({responseId:q().min(1).max(160)})),NA(`response.activity`,ze({responseId:q().min(1).max(160),toolCallId:q().min(1).max(160),toolName:q().min(1).max(256),status:Ge([`running`,`completed`,`failed`])})),NA(`response.clarification`,ze({responseId:q().min(1).max(160),requestId:q().min(1).max(160),question:q().min(1).max(8e3),choices:Ve(q().max(1e3)).max(20).optional()})),NA(`response.text.delta`,ze({responseId:q().min(1).max(160),delta:q().max(32*1024)})),NA(`response.text.done`,ze({responseId:q().min(1).max(160)})),NA(`response.audio.started`,ze({responseId:q().min(1).max(160),format:DA})),NA(`response.audio.done`,ze({responseId:q().min(1).max(160)})),NA(`response.done`,ze({responseId:q().min(1).max(160),finishReason:Ge([`completed`,`text_only`,`audio_partial`]),audio:Ue()})),NA(`response.cancelled`,ze({responseId:q().min(1).max(160),reason:Ge([`barge_in`,`client_cancelled`,`session_closed`])})),NA(`session.pong`,ze({})),NA(`session.error`,ze({code:q().min(1).max(80),message:q().min(1).max(500),recoverable:Ue()})),NA(`session.closed`,ze({reason:q().min(1).max(160)}))]);function FA(e){return PA.parse(e)}function IA(e,t){return{protocolVersion:2,messageId:crypto.randomUUID(),type:e,sentAt:Date.now(),payload:t}}function LA(e){let t=new URL(Y(e));return t.protocol=t.protocol===`https:`?`wss:`:`ws:`,t.toString()}var RA=class e{socket;session;heartbeatId;constructor(e,t){this.socket=e,this.session=t}static async preflight(e){await J(Y(`/api/voice/realtime/preflight`),{method:`POST`,signal:e.signal,body:JSON.stringify({purpose:e.purpose,engine:e.engine,sessionKey:e.sessionKey})})}static async connect(t){t.signal?.throwIfAborted();let n=(await J(Y(`/api/voice/realtime/sessions`),{method:`POST`,signal:t.signal,body:JSON.stringify({purpose:t.purpose,...t.engine?{engine:t.engine}:{},...t.sessionKey?{sessionKey:t.sessionKey}:{}})})).payload;t.signal?.throwIfAborted();let r=new WebSocket(LA(n.websocketPath));r.binaryType=`arraybuffer`;let i=new e(r,n);return await new Promise((e,a)=>{let o=!1,s,c=0,l=e=>{o||(o=!0,s!==void 0&&window.clearTimeout(s),r.close(),a(e))};s=window.setTimeout(()=>l(Error(`Realtime voice connection timed out`)),15e3);let u=()=>{o?r.close():l(Error(`Realtime voice connection cancelled`))};if(t.signal?.addEventListener(`abort`,u,{once:!0}),r.addEventListener(`close`,()=>t.signal?.removeEventListener(`abort`,u),{once:!0}),t.signal?.aborted){u();return}r.onerror=()=>l(Error(`Realtime voice connection failed`)),r.onclose=e=>{o?t.onClose?.(e.reason):l(Error(e.reason||`Realtime voice connection closed`))},r.onopen=()=>{r.send(JSON.stringify(IA(`session.start`,{sessionId:n.sessionId,ticket:n.ticket})))},r.onmessage=n=>{if(typeof n.data!=`string`){try{let e=_A(new Uint8Array(n.data));if(e.seq!==c+1)throw Error(`Invalid audio sequence`);c=e.seq,t.onAudio?.(e.audio.buffer,e.responseId)}catch{r.close(4400,`Invalid voice audio frame`)}return}try{let r=FA(JSON.parse(n.data));t.onEvent(r),r.type===`session.ready`&&!o?(o=!0,window.clearTimeout(s),i.startHeartbeat(r.payload.heartbeatIntervalMs),e()):r.type===`session.error`&&!r.payload.recoverable&&l(Error(r.payload.message))}catch(e){o?r.close(4400,`Invalid voice protocol frame`):l(e instanceof Error?e:Error(String(e)))}}}),i}sendAudio(e){e.byteLength>0&&this.socket.readyState===WebSocket.OPEN&&this.socket.send(e)}reportMetric(e,t,n){this.sendControl(`session.metric`,{responseId:e,metric:t,durationMs:Math.min(6e5,Math.max(0,n))})}setInputMuted(e){this.sendControl(`input.mute`,{muted:e})}commit(){this.sendControl(`input.commit`,{})}cancelResponse(e){this.sendControl(`response.cancel`,{responseId:e})}acknowledgeAudio(e,t){this.sendControl(`response.audio.played`,{responseId:e,playedBytes:t})}stop(e=`user_finished`){this.stopHeartbeat(),this.socket.readyState===WebSocket.OPEN?this.sendControl(`session.stop`,{reason:e}):this.socket.close()}sendControl(e,t){this.socket.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify(IA(e,t)))}startHeartbeat(e){this.stopHeartbeat(),this.heartbeatId=window.setInterval(()=>this.sendControl(`session.ping`,{}),e),this.socket.addEventListener(`close`,()=>this.stopHeartbeat(),{once:!0})}stopHeartbeat(){this.heartbeatId!==void 0&&(window.clearInterval(this.heartbeatId),this.heartbeatId=void 0)}},zA=class{context=new AudioContext({sampleRate:24e3});output=this.context.createGain();sources=new Set;nextStartTime=0;constructor(){this.output.connect(this.context.destination)}async start(){await this.context.resume()}get hasPendingAudio(){return this.sources.size>0}enqueue(e,t,n=24e3){if(e.byteLength<2||this.context.state===`closed`)return;let r=new DataView(e),i=new Float32Array(Math.floor(e.byteLength/2));for(let e=0;e<i.length;e+=1)i[e]=r.getInt16(e*2,!0)/32768;let a=this.context.createBuffer(1,i.length,n);a.copyToChannel(i,0);let o=this.context.createBufferSource();o.buffer=a,o.connect(this.output);let s=Math.max(this.context.currentTime+.08,this.nextStartTime);o.start(s),this.nextStartTime=s+a.duration,this.sources.add(o),o.onended=()=>{this.sources.delete(o)&&(o.disconnect(),t())}}duck(e){if(this.context.state===`closed`)return;let t=e?.15:1;this.output.gain.cancelScheduledValues(this.context.currentTime),this.output.gain.setTargetAtTime(t,this.context.currentTime,.015)}clear(){for(let e of this.sources){e.onended=null;try{e.stop()}catch{}e.disconnect()}this.sources.clear(),this.nextStartTime=this.context.currentTime,this.duck(!1)}async close(){this.clear(),this.output.disconnect(),this.context.state!==`closed`&&await this.context.close()}},BA=`/assets/pcm-capture-worklet-uW_SEACy.js`,VA=16e3;function HA(e){if(e.length===0)return 0;let t=0;for(let n=0;n<e.length;n+=1)t+=e[n]*e[n];return Math.min(1,Math.sqrt(t/e.length))}function UA(e,t,n=VA){if(t===n)return e;let r=Math.max(1,Math.round(e.length*n/t)),i=new Float32Array(r),a=t/n;for(let t=0;t<r;t+=1){let n=t*a,r=Math.min(e.length-1,Math.floor(n)),o=Math.min(e.length-1,r+1),s=n-r;i[t]=e[r]*(1-s)+e[o]*s}return i}function WA(e,t=VA){let n=new ArrayBuffer(44+e.length*2),r=new DataView(n),i=(e,t)=>{for(let n=0;n<t.length;n+=1)r.setUint8(e+n,t.charCodeAt(n))};i(0,`RIFF`),r.setUint32(4,36+e.length*2,!0),i(8,`WAVE`),i(12,`fmt `),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,t,!0),r.setUint32(28,t*2,!0),r.setUint16(32,2,!0),r.setUint16(34,16,!0),i(36,`data`),r.setUint32(40,e.length*2,!0);for(let t=0;t<e.length;t+=1){let n=Math.max(-1,Math.min(1,e[t]));r.setInt16(44+t*2,n<0?n*32768:n*32767,!0)}return n}function GA(e){let t=new ArrayBuffer(e.length*2),n=new DataView(t);for(let t=0;t<e.length;t+=1){let r=Math.max(-1,Math.min(1,e[t]));n.setInt16(t*2,r<0?r*32768:r*32767,!0)}return t}var KA=class{sourceRate;targetRate;pending=new Float32Array;position=0;constructor(e,t=VA){if(this.sourceRate=e,this.targetRate=t,e<=0||t<=0)throw Error(`PCM sample rates must be positive`)}push(e){if(e.length===0)return new ArrayBuffer(0);let t=new Float32Array(this.pending.length+e.length);t.set(this.pending),t.set(e,this.pending.length);let n=this.sourceRate/this.targetRate,r=[];for(;this.position+1<t.length;){let e=Math.floor(this.position),i=this.position-e;r.push(t[e]*(1-i)+t[e+1]*i),this.position+=n}let i=Math.min(t.length-1,Math.floor(this.position));return this.pending=t.slice(i),this.position-=i,GA(Float32Array.from(r))}flush(){if(this.pending.length===0)return new ArrayBuffer(0);let e=this.pending[Math.min(this.pending.length-1,Math.floor(this.position))];return this.pending=new Float32Array,this.position=0,GA(Float32Array.of(e))}},qA=`xopc-pcm-capture`,JA=1e3,YA=class e{context;source;node;mutedOutput;options;sampleRate;paused=!1;accepting=!0;processorFailed=!1;stopPromise;flushResolve;constructor(e,t,n,r,i){this.context=e,this.source=t,this.node=n,this.mutedOutput=r,this.options=i,this.sampleRate=e.sampleRate,this.node.port.onmessage=e=>{if(e.data.type===`flushed`){this.flushResolve?.();return}if(!this.accepting||this.paused)return;let t=new Float32Array(e.data.buffer);if(this.options.onSamples(t),this.options.onAudioLevel){let e=HA(t);this.options.onAudioLevel({level:e,speaking:e>=(this.options.speechThreshold??.015)})}},this.node.onprocessorerror=()=>{this.processorFailed=!0,this.flushResolve?.()}}static async start(t,n){if(typeof AudioWorkletNode>`u`)throw Error(`PCM audio recording is not supported in this browser`);let r=new AudioContext;try{await r.audioWorklet.addModule(BA);let i=r.createMediaStreamSource(t),a=new AudioWorkletNode(r,qA),o=r.createGain();o.gain.value=0;let s=new e(r,i,a,o,n);return i.connect(a),a.connect(o),o.connect(r.destination),await r.resume(),s}catch(e){throw await r.close().catch(()=>void 0),e}}pause(){this.paused=!0}resume(){this.paused=!1}stop(){return this.stopPromise??=this.finish(),this.stopPromise}cancel(){this.accepting&&(this.accepting=!1,this.flushResolve?.(),this.flushResolve=void 0,this.disconnect(),this.context.close().catch(()=>void 0))}async finish(){this.accepting&&(this.processorFailed||await this.flushWorklet(),this.flushResolve=void 0,this.accepting&&(this.accepting=!1,this.disconnect(),await this.context.close().catch(()=>void 0)))}flushWorklet(){return new Promise(e=>{let t=!1,n=()=>{t||(t=!0,globalThis.clearTimeout(r),e())},r=globalThis.setTimeout(n,JA);this.flushResolve=n;try{this.node.port.postMessage(`flush`)}catch{n()}})}disconnect(){this.node.port.onmessage=null,this.node.onprocessorerror=null,this.source.disconnect(),this.node.disconnect(),this.mutedOutput.disconnect()}},XA=null;function ZA(e){if(!Number.isFinite(e)||e<0)return`0:00`;let t=Math.floor(e%60);return`${Math.floor(e/60)}:${t.toString().padStart(2,`0`)}`}function QA(e){return e===`requesting`||e===`starting`}async function $A(){if(!navigator.permissions?.query)return null;try{return(await navigator.permissions.query({name:`microphone`})).state}catch{return null}}function ej(e){return e instanceof DOMException||e instanceof Error?e.name:``}function tj(e,t){if(e===`permission`)return`permission`;if(e===`recorder`)return`recorder`;if(e===`session`)return`session`;let n=ej(t);return n===`NotAllowedError`||n===`SecurityError`?`permission`:`device`}function nj(e){let{disabled:t,chat:n,onTranscript:r}=e,[i,a]=(0,Z.useState)(`idle`),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(0),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(``),[m,h]=(0,Z.useState)(``),[g,_]=(0,Z.useState)([]),[v,y]=(0,Z.useState)(null),[b,x]=(0,Z.useState)(`idle`),[S,C]=(0,Z.useState)(!1),w=(0,Z.useRef)(!1),[T,E]=(0,Z.useState)(null),[D,O]=(0,Z.useState)(null),[k,A]=(0,Z.useState)(null),j=(0,Z.useRef)(void 0),M=(0,Z.useRef)(null),[N,P]=(0,Z.useState)(`dictation`),F=(0,Z.useRef)(Symbol(`voice-capture`)),I=(0,Z.useRef)(`idle`),L=(0,Z.useRef)(0),R=(0,Z.useRef)(null),z=(0,Z.useRef)(null),B=(0,Z.useRef)(null),V=(0,Z.useRef)(void 0),H=(0,Z.useRef)(null),ee=(0,Z.useRef)(null),te=(0,Z.useRef)(null),ne=(0,Z.useRef)(new Map),U=(0,Z.useRef)(!1),W=(0,Z.useRef)(()=>{}),re=(0,Z.useRef)(new Map),ie=(0,Z.useRef)(null),ae=(0,Z.useRef)(!1),oe=(0,Z.useRef)(null),se=(0,Z.useRef)(!1),ce=(0,Z.useRef)(0),le=(0,Z.useRef)(6e5),ue=(0,Z.useRef)(null),de=(0,Z.useRef)(r);de.current=r;let fe=(0,Z.useCallback)(e=>{I.current=e,a(e)},[]),pe=(0,Z.useCallback)(()=>{ue.current!=null&&(clearInterval(ue.current),ue.current=null)},[]),me=(0,Z.useCallback)(()=>{ee.current?.getTracks().forEach(e=>e.stop()),ee.current=null},[]),G=(0,Z.useCallback)(()=>{XA===F.current&&(XA=null),L.current+=1,M.current?.abort(),M.current=null,pe(),me(),R.current?.cancel(),R.current=null,z.current=null,B.current=null;let e=H.current;H.current=null,e?.close(),te.current=null,s(0),l(0),d(``),p(``),h(``),x(`idle`),_([]),y(null),oe.current=null,w.current=!1,C(!1),re.current.clear(),ne.current.clear(),U.current=!1,ie.current=null},[me,pe]),he=(0,Z.useCallback)(()=>{G(),fe(`idle`)},[G,fe]),ge=(0,Z.useCallback)(()=>{B.current?.stop(`user_finished`),he(),E(null),O(null),A(null)},[he]),_e=(0,Z.useCallback)(async()=>{if(U.current)return;U.current=!0;let e=L.current,t=[...ne.current.values()].join(` `).trim();if(me(),pe(),R.current?.cancel(),R.current=null,fe(`transcribing`),!t){fA(`warning`,n.voiceTranscribeEmpty),he();return}let r=t;try{let e=await J(Y(`/api/voice/transcriptions/refine`),{method:`POST`,body:JSON.stringify({text:t}),signal:AbortSignal.any([M.current.signal,AbortSignal.timeout(15e3)])});e.payload.text.trim()&&(r=e.payload.text)}catch{if(e!==L.current)return;fA(`warning`,n.voiceRefinementFailed)}e===L.current&&(de.current(r),he())},[he,n.voiceRefinementFailed,n.voiceTranscribeEmpty,me,pe,fe]),ve=(0,Z.useCallback)(e=>{A(e);let t=I.current;if(!(t===`idle`||t===`error`||U.current)){if(!j.current){if(t===`transcribing`&&e===`input_committed`){_e();return}pe(),me(),R.current?.cancel(),R.current=null,B.current=null,E(n.voiceTranscribeFailed),fe(`error`);return}he()}},[_e,he,n.voiceTranscribeFailed,me,pe,fe]),ye=(0,Z.useCallback)(()=>{pe(),ue.current=setInterval(()=>{let e=te.current;if(e===null)return;let t=performance.now()-e;if(s(Math.max(0,t/1e3)),t>=le.current&&I.current===`recording`){if(!j.current){W.current();return}A(`session_limit`),B.current?.stop(`user_finished`),he()}},200)},[he,pe]),be=(0,Z.useCallback)(async(e,r,i)=>{if(t||I.current!==`idle`||e===`conversation`&&!i)return;if(XA){E(n.callCaptureBusy),e===`dictation`&&fA(`error`,n.callCaptureBusy);return}XA=F.current,j.current=i;let a=new AbortController;M.current=a,E(null),O(null),A(null);let o=++L.current,c=()=>o===L.current;P(e),V.current=r,h(``),fe(`starting`);let u=`permission`;try{if(e===`conversation`){let e=new zA;if(H.current=e,await e.start(),!c()){e.close();return}}if(u=`session`,await RA.preflight({purpose:e,...e===`conversation`?{engine:r,sessionKey:i}:{},signal:a.signal}),!c())return;u=`permission`;let t=window.electronAPI?.system,o=await $A();if(!c()||!QA(I.current))return;if(t&&o!==`granted`){fe(`requesting`);let e=await t.requestMicrophone();if(!c())return;let n=window.electronAPI?.platform===`darwin`&&e.status!==`granted`;if(e.status===`denied`||n)throw Error(`Microphone permission denied`)}else !t&&o!==`granted`&&fe(`requesting`);if(!c()||!QA(I.current))return;fe(`starting`),window.dispatchEvent(new Event(`xopc-voice-recording-start`)),u=`media`;let f=await navigator.mediaDevices.getUserMedia({audio:dA()});if(!c()||!QA(I.current)){f.getTracks().forEach(e=>e.stop());return}ee.current=f,u=`session`,ne.current.clear();let m=await RA.connect({purpose:e,signal:a.signal,...e===`conversation`?{engine:r,sessionKey:i}:{},onEvent:t=>{if(c()){if(t.type===`input.transcript.delta`||t.type===`input.transcript.final`){let e=re.current.get(t.payload.utteranceId)??0;if(t.payload.revision<=e)return;re.current.size>=256&&re.current.clear(),re.current.set(t.payload.utteranceId,t.payload.revision)}if(t.type===`input.transcript.delta`&&d(t.payload.text),t.type===`input.transcript.final`){let n=t.payload.text.trim();d(``),p(n),n&&e===`dictation`&&(ne.current.set(t.payload.utteranceId,n),[...ne.current.values()].join(` `).length>=2e4&&I.current===`recording`&&W.current(),p([...ne.current.values()].join(` `)))}t.type===`input.speech_stopped`&&(oe.current=performance.now(),H.current?.duck(!1)),t.type===`response.created`&&(H.current?.clear(),ie.current=t.payload.responseId,ae.current=!1,se.current=!1,ce.current=0,h(``),_([]),y(null),x(`thinking`)),t.type===`response.activity`&&ie.current===t.payload.responseId&&_(e=>[...e.filter(e=>e.toolCallId!==t.payload.toolCallId),t.payload].slice(-8)),t.type===`response.clarification`&&ie.current===t.payload.responseId&&y(t.payload),t.type===`response.text.delta`&&ie.current===t.payload.responseId&&h(e=>e+t.payload.delta),t.type===`response.audio.started`&&ie.current===t.payload.responseId&&x(`speaking`),t.type===`response.done`&&ie.current===t.payload.responseId&&(y(null),ae.current=!0,H.current?.hasPendingAudio||(ie.current=null,x(`idle`))),t.type===`response.cancelled`&&ie.current===t.payload.responseId&&(ie.current=null,y(null),_([]),x(`idle`),H.current?.clear()),t.type===`session.error`&&t.payload.recoverable&&t.payload.code===`RESPONSE_FAILED`&&fA(`warning`,n.voiceResponseFailed),t.type===`session.error`&&t.payload.recoverable&&t.payload.code===`INPUT_DROPPED`&&fA(`warning`,n.voiceInputDropped),t.type===`session.error`&&!t.payload.recoverable&&(E(t.payload.code===`CONTEXT_CHANGED`?n.voiceContextChanged:t.payload.message),O(`session`),e===`dictation`&&fA(`error`,t.payload.message),B.current?.stop(`surface_closed`),e===`conversation`?G():(pe(),me(),R.current?.cancel(),R.current=null,B.current=null),fe(`error`))}},onAudio:(e,t)=>{if(!c())return;let n=ie.current;!n||t!==n||(se.current||(se.current=!0,oe.current!==null&&B.current?.reportMetric(n,`speech_end_to_audio_received`,performance.now()-oe.current),oe.current=null),H.current?.enqueue(e,()=>{ie.current===n&&(ce.current+=e.byteLength,B.current?.acknowledgeAudio(n,ce.current),ae.current&&!H.current?.hasPendingAudio&&(ie.current=null,x(`idle`)))}))},onClose:e=>{c()&&ve(e)}});if(!c()){m.stop(`surface_closed`);return}B.current=m,le.current=m.session.limits.maxSessionMs,u=`recorder`;let g,v=[],b=await YA.start(f,{onSamples:e=>{if(!c()||w.current)return;if(!g){v.push(e);return}let t=(z.current??g).push(e);t&&m.sendAudio(t)},onAudioLevel:({level:t,speaking:n})=>{c()&&(w.current||(l(Math.min(1,t*8)),e===`conversation`&&m.session.bargeIn&&ie.current&&H.current?.duck(n)))}});if(!c()||!QA(I.current)){b.cancel(),m.stop(`surface_closed`),f.getTracks().forEach(e=>e.stop());return}g=new KA(b.sampleRate,m.session.inputFormat.sampleRate);for(let e of v)m.sendAudio(g.push(e));z.current=g,R.current=b,te.current=performance.now(),s(0),fe(`recording`),ye()}catch(t){if(!c())return;let r=tj(u,t);console.error(`[chat:voice] realtime capture start failed`,{stage:u,kind:r,errorName:ej(t),errorMessage:t instanceof Error?t.message:String(t)}),B.current?.stop(`surface_closed`),G(),fe(r===`session`?`error`:`idle`);let i=r===`permission`?n.voiceMicDenied:r===`device`?n.voiceMicUnavailable:r===`recorder`?n.voiceRecorderFailed:t instanceof Error?t.message:n.voiceSttNotConfigured;E(i),O(r),e===`dictation`&&fA(`error`,i,void 0,r===`session`?{href:`/settings/capabilities/voice`}:void 0)}},[t,ve,n,G,ye,me,pe,fe]),xe=(0,Z.useCallback)(()=>{if(j.current)return;if(I.current===`error`&&ne.current.size){_e();return}if(I.current!==`recording`)return;fe(`transcribing`),pe(),me();let e=R.current,t=L.current;R.current=null,e?.stop().then(()=>{if(t!==L.current)return;let e=z.current?.flush();e&&B.current?.sendAudio(e),B.current?.commit()}).catch(()=>{t===L.current&&(fA(`error`,n.voiceTranscribeFailed),B.current?.stop(`surface_closed`),G(),fe(`error`))})},[_e,n.voiceTranscribeFailed,G,me,pe,fe]);W.current=xe,(0,Z.useEffect)(()=>()=>{XA===F.current&&(XA=null),L.current+=1,M.current?.abort(),R.current?.cancel(),B.current?.stop(`surface_closed`),H.current?.close(),me(),pe()},[me,pe]);let Se=(0,Z.useCallback)(()=>{I.current===`error`&&(G(),fe(`idle`),be(N,V.current,j.current))},[be,N,G,fe]),Ce=(0,Z.useCallback)(()=>be(`dictation`),[be]),we=(0,Z.useCallback)((e,t)=>be(`conversation`,t,e),[be]),Te=(0,Z.useCallback)(()=>{let e=performance.now(),t=ie.current;H.current?.clear(),ie.current=null,x(`idle`),y(null),_([]),t&&(B.current?.reportMetric(t,`local_stop`,performance.now()-e),B.current?.cancelResponse(t))},[]),Ee=(0,Z.useCallback)(()=>{let e=!w.current;w.current=e,ee.current?.getAudioTracks().forEach(t=>{t.enabled=!e});let t=R.current,n=B.current;t&&n&&(z.current=new KA(t.sampleRate,n.session.inputFormat.sampleRate)),n?.setInputMuted(e),d(``),l(0),H.current?.duck(!1),C(e)},[]);return{phase:i,voiceActive:i!==`idle`,elapsedLabel:ZA(o),audioLevel:c,partialTranscript:u,finalTranscript:f,responseText:m,activities:g,clarification:v,dismissClarification:e=>y(t=>t?.requestId===e?null:t),responsePhase:b,muted:S,error:T,failureKind:D,endedReason:k,mode:N,startVoiceInput:Ce,startVoiceConversation:we,interruptResponse:Te,toggleMute:Ee,cancelVoiceInput:ge,confirmVoiceInput:xe,retryVoiceInput:Se}}var rj=(0,Z.createContext)(null);function ij(){let e=(0,Z.useContext)(rj);if(!e)throw Error(`VoiceCallProvider is required`);return e}function aj(e){let t=(0,Q.c)(154),{children:n}=e,r=ct(dj),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.chat,[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),f=uA(uj),p=uA(lj),m;t[2]===a?m=t[3]:(m={disabled:!1,chat:a,onTranscript:cj},t[2]=a,t[3]=m);let h=nj(m),g=(0,Z.useRef)(!1),_=(0,Z.useRef)(0),v=h.voiceActive&&h.phase!==`error`,b=h.phase===`recording`,x;t[4]!==v||t[5]!==h?(x=e=>{if(g.current||v)return;g.current=!0;let t=_.current+=1;h.cancelVoiceInput(),s(e),h.startVoiceConversation(e.sessionKey).finally(()=>{t===_.current&&(g.current=!1)})},t[4]=v,t[5]=h,t[6]=x):x=t[6];let S=x,C=v?o?.sessionKey??null:null,w;t[7]===S?w=t[8]:(w=e=>{S(e),l(!0)},t[7]=S,t[8]=w);let T;t[9]!==v||t[10]!==C||t[11]!==w?(T={active:v,sessionKey:C,open:w},t[9]=v,t[10]=C,t[11]=w,t[12]=T):T=t[12];let E=T,D;t[13]!==v||t[14]!==b||t[15]!==a.callConnecting||t[16]!==a.callDisconnected||t[17]!==a.callFailed||t[18]!==a.callListening||t[19]!==a.callMicMuted||t[20]!==a.callReady||t[21]!==a.callWaiting||t[22]!==a.callWorking||t[23]!==a.voiceSpeaking||t[24]!==a.voiceThinking||t[25]!==h.activities||t[26]!==h.clarification||t[27]!==h.endedReason||t[28]!==h.error||t[29]!==h.muted||t[30]!==h.responsePhase?(D=h.error?a.callFailed:v?b?h.clarification?a.callWaiting:h.activities.some(sj)?a.callWorking:h.responsePhase===`speaking`?a.voiceSpeaking:h.responsePhase===`thinking`?a.voiceThinking:h.muted?a.callMicMuted:a.callListening:a.callConnecting:h.endedReason?a.callDisconnected:a.callReady,t[13]=v,t[14]=b,t[15]=a.callConnecting,t[16]=a.callDisconnected,t[17]=a.callFailed,t[18]=a.callListening,t[19]=a.callMicMuted,t[20]=a.callReady,t[21]=a.callWaiting,t[22]=a.callWorking,t[23]=a.voiceSpeaking,t[24]=a.voiceThinking,t[25]=h.activities,t[26]=h.clarification,t[27]=h.endedReason,t[28]=h.error,t[29]=h.muted,t[30]=h.responsePhase,t[31]=D):D=t[31];let O=D,k;t[32]===h?k=t[33]:(k=()=>{_.current+=1,g.current=!1,h.cancelVoiceInput(),s(null),l(!1),d(!1)},t[32]=h,t[33]=k);let A=k,j=`/settings/capabilities/voice?returnTo=${encodeURIComponent(`/chat/${encodeURIComponent(o?.sessionKey??``)}`)}`,M;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>l(!1),t[34]=M):M=t[34];let N;t[35]!==a.callSettings||t[36]!==j?(N=(0,$.jsx)(y,{to:j,onClick:M,className:`text-sm text-accent-fg hover:underline`,children:a.callSettings}),t[35]=a.callSettings,t[36]=j,t[37]=N):N=t[37];let P=N,F;t[38]!==b||t[39]!==A||t[40]!==c||t[41]!==a.callEnd||t[42]!==a.callMute||t[43]!==a.callUnmute||t[44]!==a.voiceConversation||t[45]!==O||t[46]!==o||t[47]!==h.elapsedLabel||t[48]!==h.muted||t[49]!==h.toggleMute?(F=o&&!c?(0,$.jsxs)(`div`,{className:`fixed bottom-5 right-5 z-50 flex max-w-[calc(100vw-2.5rem)] items-center gap-3 rounded-xl border border-edge bg-surface-panel p-3 shadow-float`,role:`region`,"aria-label":a.voiceConversation,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>l(!0),className:`min-w-0 rounded-lg text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:o.name}),(0,$.jsxs)(`span`,{className:`block text-xs text-fg-muted`,children:[O,` · `,h.elapsedLabel]})]}),(0,$.jsx)(vt,{variant:`ghost`,disabled:!b,onClick:h.toggleMute,"aria-label":h.muted?a.callUnmute:a.callMute,children:h.muted?(0,$.jsx)(tv,{className:`size-4`}):(0,$.jsx)(nv,{className:`size-4`})}),(0,$.jsx)(vt,{variant:`ghost`,onClick:A,"aria-label":a.callEnd,children:(0,$.jsx)(xv,{className:`size-4 text-red-500`})})]}):null,t[38]=b,t[39]=A,t[40]=c,t[41]=a.callEnd,t[42]=a.callMute,t[43]=a.callUnmute,t[44]=a.voiceConversation,t[45]=O,t[46]=o,t[47]=h.elapsedLabel,t[48]=h.muted,t[49]=h.toggleMute,t[50]=F):F=t[50];let I=!!(o&&c),L;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{e||l(!1)},t[51]=L):L=t[51];let R=o?.name,z;t[52]===R?z=t[53]:(z=(0,$.jsx)(te,{className:`truncate font-medium`,children:R}),t[52]=R,t[53]=z);let V;t[54]===a.callSessionHint?V=t[55]:(V=(0,$.jsx)(B,{className:`text-xs text-fg-muted`,children:a.callSessionHint}),t[54]=a.callSessionHint,t[55]=V);let U;t[56]!==z||t[57]!==V?(U=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[z,V]}),t[56]=z,t[57]=V,t[58]=U):U=t[58];let W;t[59]===u?W=t[60]:(W=()=>d(!u),t[59]=u,t[60]=W);let re;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(hd,{className:`size-4`}),t[61]=re):re=t[61];let ie;t[62]!==a.callMore||t[63]!==u||t[64]!==W?(ie=(0,$.jsx)(vt,{variant:`ghost`,onClick:W,"aria-label":a.callMore,"aria-expanded":u,children:re}),t[62]=a.callMore,t[63]=u,t[64]=W,t[65]=ie):ie=t[65];let ae;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(ae=()=>l(!1),t[66]=ae):ae=t[66];let oe;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,$.jsx)(rv,{className:`size-4`}),t[67]=oe):oe=t[67];let se;t[68]===a.callMinimize?se=t[69]:(se=(0,$.jsx)(vt,{variant:`ghost`,onClick:ae,"aria-label":a.callMinimize,children:oe}),t[68]=a.callMinimize,t[69]=se);let ce;t[70]!==ie||t[71]!==se?(ce=(0,$.jsxs)(`div`,{className:`flex`,children:[ie,se]}),t[70]=ie,t[71]=se,t[72]=ce):ce=t[72];let le;t[73]!==U||t[74]!==ce?(le=(0,$.jsxs)(`header`,{className:`flex shrink-0 items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[U,ce]}),t[73]=U,t[74]=ce,t[75]=le):le=t[75];let ue;t[76]!==f||t[77]!==a.callCaptions||t[78]!==u||t[79]!==p||t[80]!==P?(ue=u?(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between border-b border-edge px-4 py-2`,children:[(0,$.jsxs)(vt,{variant:`ghost`,"aria-pressed":f,onClick:()=>p(!f),children:[(0,$.jsx)(co,{className:`size-4`}),a.callCaptions]}),P]}):null,t[76]=f,t[77]=a.callCaptions,t[78]=u,t[79]=p,t[80]=P,t[81]=ue):ue=t[81];let de;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsx)(Wr,{className:`size-10 text-accent-fg`,"aria-hidden":`true`}),t[82]=de):de=t[82];let fe;t[83]===O?fe=t[84]:(fe=(0,$.jsx)(`p`,{className:`text-lg font-medium`,role:`status`,children:O}),t[83]=O,t[84]=fe);let pe=v?h.elapsedLabel:a.callContinuity,me=b&&h.muted&&h.responsePhase!==`idle`?` · ${a.callMicMuted}`:``,G;t[85]!==pe||t[86]!==me?(G=(0,$.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-fg-muted`,children:[pe,me]}),t[85]=pe,t[86]=me,t[87]=G):G=t[87];let he;t[88]!==fe||t[89]!==G?(he=(0,$.jsxs)(`div`,{children:[fe,G]}),t[88]=fe,t[89]=G,t[90]=he):he=t[90];let ge;t[91]!==a.callErrorDetails||t[92]!==h.error?(ge=h.error?(0,$.jsxs)(`details`,{className:`text-sm text-fg-muted`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer`,children:a.callErrorDetails}),(0,$.jsx)(`p`,{role:`alert`,className:`mt-2 break-words text-xs`,children:h.error})]}):null,t[91]=a.callErrorDetails,t[92]=h.error,t[93]=ge):ge=t[93];let _e;t[94]!==v||t[95]!==a.callSetupHint||t[96]!==P||t[97]!==h.failureKind?(_e=!v&&h.failureKind===`session`?(0,$.jsxs)(`div`,{className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:a.callSetupHint}),P]}):null,t[94]=v,t[95]=a.callSetupHint,t[96]=P,t[97]=h.failureKind,t[98]=_e):_e=t[98];let ve;t[99]!==f||t[100]!==b||t[101]!==a.callYou||t[102]!==o?.name||t[103]!==h.finalTranscript||t[104]!==h.partialTranscript||t[105]!==h.responseText?(ve=b&&f?(0,$.jsxs)(`div`,{className:`space-y-3 text-sm leading-relaxed`,children:[h.partialTranscript||h.finalTranscript?(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`mb-1 block text-xs text-fg-subtle`,children:a.callYou}),h.partialTranscript||h.finalTranscript]}):null,h.responseText?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{className:`mb-1 block text-xs text-fg-subtle`,children:o?.name}),(0,$.jsx)(ke,{content:h.responseText,compact:!0,codeCopy:!1,renderMermaid:!1})]}):null]}):null,t[99]=f,t[100]=b,t[101]=a.callYou,t[102]=o?.name,t[103]=h.finalTranscript,t[104]=h.partialTranscript,t[105]=h.responseText,t[106]=ve):ve=t[106];let ye;t[107]===o?ye=t[108]:(ye=o?.taskId?(0,$.jsx)(pk,{taskId:o.taskId}):null,t[107]=o,t[108]=ye);let be;t[109]!==b||t[110]!==a||t[111]!==o||t[112]!==h?(be=b&&o?(0,$.jsx)(lA,{voice:h,sessionKey:o.sessionKey,m:a},o.sessionKey):null,t[109]=b,t[110]=a,t[111]=o,t[112]=h,t[113]=be):be=t[113];let xe;t[114]!==he||t[115]!==ge||t[116]!==_e||t[117]!==ve||t[118]!==ye||t[119]!==be?(xe=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain px-5 py-5`,children:[de,he,ge,_e,ve,ye,be]}),t[114]=he,t[115]=ge,t[116]=_e,t[117]=ve,t[118]=ye,t[119]=be,t[120]=xe):xe=t[120];let Se;t[121]!==v||t[122]!==b||t[123]!==a.callMute||t[124]!==a.callReconnect||t[125]!==a.callUnmute||t[126]!==a.voiceResponseInterrupt||t[127]!==S||t[128]!==o||t[129]!==h.interruptResponse||t[130]!==h.muted||t[131]!==h.responsePhase||t[132]!==h.toggleMute?(Se=v?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(vt,{variant:`secondary`,disabled:!b,onClick:h.toggleMute,"aria-pressed":h.muted,children:[h.muted?(0,$.jsx)(tv,{className:`size-4`}):(0,$.jsx)(nv,{className:`size-4`}),h.muted?a.callUnmute:a.callMute]}),h.responsePhase===`idle`?null:(0,$.jsx)(vt,{variant:`ghost`,onClick:h.interruptResponse,children:a.voiceResponseInterrupt})]}):(0,$.jsxs)(vt,{variant:`primary`,onClick:()=>{o&&S(o)},children:[(0,$.jsx)(Sv,{className:`size-4`}),a.callReconnect]}),t[121]=v,t[122]=b,t[123]=a.callMute,t[124]=a.callReconnect,t[125]=a.callUnmute,t[126]=a.voiceResponseInterrupt,t[127]=S,t[128]=o,t[129]=h.interruptResponse,t[130]=h.muted,t[131]=h.responsePhase,t[132]=h.toggleMute,t[133]=Se):Se=t[133];let Ce;t[134]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,$.jsx)(xv,{className:`size-4 text-red-500`}),t[134]=Ce):Ce=t[134];let we;t[135]!==A||t[136]!==a.callEnd?(we=(0,$.jsxs)(vt,{variant:`secondary`,onClick:A,children:[Ce,a.callEnd]}),t[135]=A,t[136]=a.callEnd,t[137]=we):we=t[137];let Te;t[138]!==Se||t[139]!==we?(Te=(0,$.jsxs)(`footer`,{className:`flex shrink-0 flex-wrap items-center justify-center gap-2 border-t border-edge px-3 pb-[max(.75rem,env(safe-area-inset-bottom))] pt-3`,children:[Se,we]}),t[138]=Se,t[139]=we,t[140]=Te):Te=t[140];let Ee;t[141]!==le||t[142]!==ue||t[143]!==xe||t[144]!==Te?(Ee=(0,$.jsx)(H,{children:(0,$.jsxs)(ee,{onInteractOutside:oj,className:`fixed bottom-3 right-3 z-[71] flex h-[min(480px,85dvh)] w-[min(380px,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel text-fg shadow-float focus:outline-none`,children:[le,ue,xe,Te]})}),t[141]=le,t[142]=ue,t[143]=xe,t[144]=Te,t[145]=Ee):Ee=t[145];let De;t[146]!==I||t[147]!==Ee?(De=(0,$.jsx)(ne,{open:I,onOpenChange:L,modal:!1,children:Ee}),t[146]=I,t[147]=Ee,t[148]=De):De=t[148];let Oe;return t[149]!==n||t[150]!==E||t[151]!==F||t[152]!==De?(Oe=(0,$.jsxs)(rj.Provider,{value:E,children:[n,F,De]}),t[149]=n,t[150]=E,t[151]=F,t[152]=De,t[153]=Oe):Oe=t[153],Oe}function oj(e){return e.preventDefault()}function sj(e){return e.status===`running`}function cj(){}function lj(e){return e.setCaptions}function uj(e){return e.captions}function dj(e){return e.language}var fj=`[-webkit-app-region:drag]`,pj=`[-webkit-app-region:no-drag]`,mj=`h-14 shrink-0 items-center`;function hj(e){let t=(0,Q.c)(8),{alt:n,className:r,"aria-hidden":i}=e,a=n?.trim()?n:void 0,o=i??(a?void 0:!0),s;t[0]===r?s=t[1]:(s=X(`relative inline-block shrink-0 overflow-hidden`,r),t[0]=r,t[1]=s);let c,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(`img`,{className:`size-full object-contain dark:hidden`,src:`/logo.svg`,alt:``,"aria-hidden":`true`}),l=(0,$.jsx)(`img`,{className:`hidden size-full object-contain dark:block`,src:`/logo-dark.svg`,alt:``,"aria-hidden":`true`}),t[2]=c,t[3]=l):(c=t[2],l=t[3]);let u;return t[4]!==o||t[5]!==a||t[6]!==s?(u=(0,$.jsxs)(`span`,{className:s,role:`img`,"aria-hidden":o,"aria-label":a,children:[c,l]}),t[4]=o,t[5]=a,t[6]=s,t[7]=u):u=t[7],u}var gj=`w-full max-w-md sm:max-w-lg`,_j=`w-full`,vj=`focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none focus-visible:border-edge data-[state=open]:border-edge`,yj=`focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none focus-visible:border-edge`,bj=`focus:outline-none focus-visible:outline-none focus:ring-0 focus:ring-offset-0 focus:shadow-none focus:border-edge-strong focus-visible:border-edge-strong`,xj=`focus:outline-none focus-visible:outline-none focus:ring-0 focus:ring-offset-0 focus:shadow-none`,Sj=`inline-flex w-fit max-w-full min-w-[10rem] max-w-lg justify-between`;function Cj(e){return e===`***`||e===`••••••••••••`||/^•+$/.test(e)}function wj(e){return e>0?`•`.repeat(e):``}var Tj={showKey:!1,revealed:void 0,revealLoading:!1,revealErr:null,copied:!1};function Ej(e,t){switch(t.type){case`reset-reveal`:return{...e,showKey:!1,revealed:void 0,revealErr:null};case`toggle-show`:return{...e,showKey:!e.showKey};case`reveal-start`:return{...e,revealLoading:!0,revealErr:null};case`reveal-success`:return{...e,revealed:t.value,revealLoading:!1,showKey:!0,revealErr:null};case`reveal-error`:return{...e,revealed:null,revealLoading:!1,revealErr:t.message};case`copied`:return{...e,copied:!0};case`clear-copied`:return{...e,copied:!1};case`invalidate-reveal`:return{...e,revealed:void 0,showKey:!1}}}function Dj(e){let{value:t,reveal:n,loadFailedLabel:r=`Failed to load secret`,baselineValue:i}=e,[a,o]=(0,Z.useReducer)(Ej,Tj),s=Cj(t),c=!!(i?.trim()&&t===i&&!s),l=(0,Z.useRef)(n);l.current=n;let u=(0,Z.useRef)({masked:s,value:t,unchangedConcealed:c});(!s&&!c&&(u.current.masked||u.current.unchangedConcealed)||u.current.value!==t&&!c)&&o({type:`reset-reveal`}),u.current={masked:s,value:t,unchangedConcealed:c};let d=c&&!a.showKey?wj(t.length):s&&a.showKey&&typeof a.revealed==`string`?a.revealed:t,f=c&&!a.showKey?`password`:c&&a.showKey?`text`:s?a.showKey&&typeof a.revealed==`string`?`text`:`password`:a.showKey?`text`:`password`,p=c&&!a.showKey,m=c&&t.trim()||!s&&t.trim()&&!Cj(t)?t.trim():typeof a.revealed==`string`&&a.revealed.length>0?a.revealed:``,h=m.length>0,g=(0,Z.useCallback)(async()=>{m&&await tt(m)&&(o({type:`copied`}),window.setTimeout(()=>o({type:`clear-copied`}),2e3))},[m]),_=(0,Z.useCallback)(async()=>{if(c||!s){o({type:`toggle-show`});return}if(a.revealed!==void 0){o({type:`toggle-show`});return}if(!l.current){o({type:`toggle-show`});return}o({type:`reveal-start`});try{o({type:`reveal-success`,value:await l.current()})}catch(e){o({type:`reveal-error`,message:e instanceof Error?e.message:r})}},[r,s,c,a.revealed]),v=(0,Z.useCallback)((e,t)=>{p||(s&&typeof a.revealed==`string`&&a.showKey&&e!==a.revealed&&o({type:`invalidate-reveal`}),t(e))},[s,p,a.revealed,a.showKey]),y=a.revealLoading||!s&&!c&&!t.trim()||s&&!n&&a.revealed===void 0;return{masked:s,unchangedConcealed:c,showKey:a.showKey,revealed:a.revealed,revealLoading:a.revealLoading,revealErr:a.revealErr,copied:a.copied,inputValue:d,inputType:f,readOnly:p,copyEnabled:h,copySecret:g,toggleEye:_,onInputChange:v,eyeDisabled:y}}var Oj=X(`w-full rounded-lg border border-edge bg-surface-panel py-2 pl-3 pr-20 font-mono text-sm text-fg`,`placeholder:text-fg-subtle`,bj,`dark:border-edge`);function kj(e){let t=(0,Q.c)(69),{id:n,name:r,ariaDescribedBy:i,ariaInvalid:a,value:o,onChange:s,placeholder:c,disabled:l,readOnly:u,className:d,inputClassName:f,labels:p,reveal:m,loadFailedLabel:h,maskedHelp:g,notInConfigFile:_,baselineValue:v,autoComplete:y,onKeyDown:b,inputRef:x}=e,S=l===void 0?!1:l,C=u===void 0?!1:u,w=y===void 0?`off`:y,T;t[0]!==v||t[1]!==h||t[2]!==m||t[3]!==o?(T={value:o,reveal:m,loadFailedLabel:h,baselineValue:v},t[0]=v,t[1]=h,t[2]=m,t[3]=o,t[4]=T):T=t[4];let{masked:E,showKey:D,revealed:O,revealLoading:k,revealErr:A,copied:j,inputValue:M,inputType:N,readOnly:P,copyEnabled:F,copySecret:I,toggleEye:L,onInputChange:R,eyeDisabled:z}=Dj(T),B=C||P,V;t[5]===d?V=t[6]:(V=X(`flex flex-col gap-1.5`,d),t[5]=d,t[6]=V);let H;t[7]!==E||t[8]!==g?(H=E&&g?(0,$.jsx)(`p`,{className:`text-xs text-fg-subtle`,children:g}):null,t[7]=E,t[8]=g,t[9]=H):H=t[9];let ee=a||void 0,te=E?void 0:c,ne;t[10]!==s||t[11]!==R?(ne=s?e=>R(e.target.value,s):void 0,t[10]=s,t[11]=R,t[12]=ne):ne=t[12];let U;t[13]===f?U=t[14]:(U=X(Oj,f),t[13]=f,t[14]=U);let W;t[15]!==i||t[16]!==w||t[17]!==S||t[18]!==n||t[19]!==x||t[20]!==N||t[21]!==M||t[22]!==r||t[23]!==b||t[24]!==B||t[25]!==U||t[26]!==ee||t[27]!==te||t[28]!==ne?(W=(0,$.jsx)(`input`,{ref:x,id:n,name:r,"aria-describedby":i,"aria-invalid":ee,type:N,autoComplete:w,spellCheck:!1,disabled:S,readOnly:B,value:M,placeholder:te,onChange:ne,onKeyDown:b,className:U}),t[15]=i,t[16]=w,t[17]=S,t[18]=n,t[19]=x,t[20]=N,t[21]=M,t[22]=r,t[23]=b,t[24]=B,t[25]=U,t[26]=ee,t[27]=te,t[28]=ne,t[29]=W):W=t[29];let re;t[30]!==j||t[31]!==F||t[32]!==I||t[33]!==S||t[34]!==p.copied||t[35]!==p.copy?(re=F?(0,$.jsx)(`button`,{type:`button`,className:X(`rounded p-1.5 text-fg-subtle hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel),title:j?p.copied:p.copy,"aria-label":j?p.copied:p.copy,disabled:S,onClick:()=>void I(),children:j?(0,$.jsx)(me,{className:`size-3.5`}):(0,$.jsx)(G,{className:`size-3.5`})}):null,t[30]=j,t[31]=F,t[32]=I,t[33]=S,t[34]=p.copied,t[35]=p.copy,t[36]=re):re=t[36];let ie;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(ie=X(`rounded p-1.5 text-fg-subtle hover:bg-surface-hover hover:text-fg disabled:opacity-40`,gk.transition,gk.press,gk.focusRingPanel),t[37]=ie):ie=t[37];let ae=D?p.hide:p.show,oe=D?p.hide:p.show,se=S||z,ce;t[38]===L?ce=t[39]:(ce=()=>void L(),t[38]=L,t[39]=ce);let le;t[40]!==k||t[41]!==D?(le=k?(0,$.jsx)(je,{className:`size-3.5 animate-spin`,"aria-hidden":!0}):D?(0,$.jsx)(Td,{className:`size-3.5`,"aria-hidden":!0}):(0,$.jsx)(Dd,{className:`size-3.5`,"aria-hidden":!0}),t[40]=k,t[41]=D,t[42]=le):le=t[42];let ue;t[43]!==ae||t[44]!==oe||t[45]!==se||t[46]!==ce||t[47]!==le?(ue=(0,$.jsx)(`button`,{type:`button`,className:ie,title:ae,"aria-label":oe,disabled:se,onClick:ce,children:le}),t[43]=ae,t[44]=oe,t[45]=se,t[46]=ce,t[47]=le,t[48]=ue):ue=t[48];let de;t[49]!==re||t[50]!==ue?(de=(0,$.jsxs)(`div`,{className:`absolute right-1 top-1/2 flex -translate-y-1/2 gap-0.5`,children:[re,ue]}),t[49]=re,t[50]=ue,t[51]=de):de=t[51];let fe;t[52]!==W||t[53]!==de?(fe=(0,$.jsxs)(`div`,{className:`relative min-w-0`,children:[W,de]}),t[52]=W,t[53]=de,t[54]=fe):fe=t[54];let pe;t[55]!==E||t[56]!==_||t[57]!==A||t[58]!==O||t[59]!==D?(pe=E&&D&&O===null&&!A&&_?(0,$.jsx)(`p`,{className:`text-xs text-amber-700 dark:text-amber-400/90`,children:_}):null,t[55]=E,t[56]=_,t[57]=A,t[58]=O,t[59]=D,t[60]=pe):pe=t[60];let he;t[61]===A?he=t[62]:(he=A?(0,$.jsx)(`p`,{className:`text-xs text-red-600 dark:text-red-400`,children:A}):null,t[61]=A,t[62]=he);let ge;return t[63]!==fe||t[64]!==pe||t[65]!==he||t[66]!==V||t[67]!==H?(ge=(0,$.jsxs)(`div`,{className:V,children:[H,fe,pe,he]}),t[63]=fe,t[64]=pe,t[65]=he,t[66]=V,t[67]=H,t[68]=ge):ge=t[68],ge}var Aj={show:`Show`,hide:`Hide`,copy:`Copy`,copied:`Copied`};function jj(e){return{show:e.show,hide:e.hide,copy:e.copy,copied:e.copied}}function Mj(e){return jj(e)}function Nj(e){return{show:e.show,hide:e.hide,copy:`Copy`,copied:`Copied`}}async function Pj(e){try{let t=await fetch(Y(`/api/config`),{headers:{Authorization:`Bearer ${e}`}});return t.ok?`valid`:t.status===401||t.status===403?`rejected`:`failed`}catch{return`unreachable`}}function Fj({baseUrl:e,onSubmit:t,footerLeft:n,className:r,tokenInputRef:i}){let a=ct(e=>e.language),o=rt(a).token,[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(!1),p=(0,Z.useRef)(null),m=(0,Z.useCallback)(e=>{p.current=e,typeof i==`function`?i(e):i&&(i.current=e)},[i]);async function h(){let e=s.trim();if(!e){u(a===`zh`?`请输入 Token`:`Please enter a token`),p.current?.focus();return}if(d)return;f(!0);let n=await Pj(e);if(f(!1),n!==`valid`){u(n===`rejected`?o.tokenRejected:n===`unreachable`?o.gatewayUnreachable:o.tokenVerificationFailed),p.current?.focus();return}t(e),c(``),u(``)}return(0,$.jsxs)(`form`,{className:X(`flex flex-col gap-3`,r),"aria-busy":d,onSubmit:e=>{e.preventDefault(),h()},children:[e?(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:o.gatewayUrl}),(0,$.jsx)(`output`,{className:`truncate rounded-md border border-edge bg-surface-hover px-3 py-2 font-mono text-sm text-fg-muted`,children:e})]}):null,(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:a===`zh`?`网关访问凭据`:`Gateway access credential`}),(0,$.jsx)(kj,{id:`gateway-token`,name:`gateway-token`,inputRef:m,value:s,disabled:d,ariaDescribedBy:l?`gateway-token-error`:void 0,ariaInvalid:!!l,onChange:e=>{c(e),u(``)},placeholder:a===`zh`?`Token 或 Password`:`Token or password`,labels:Nj(o)}),l?(0,$.jsx)(`p`,{id:`gateway-token-error`,className:`text-xs text-danger`,role:`alert`,children:l}):null]}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[n,(0,$.jsxs)(vt,{type:`submit`,variant:`primary`,disabled:d,children:[d?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,d?o.connecting:o.save]})]})]})}var Ij=[`compact`,`default`,`large`];function Lj(e){document.documentElement.dataset.fontScale=e}function Rj(){try{let e=localStorage.getItem(`xopc-web-font-scale`),t=`default`;if(e){let n=JSON.parse(e).state?.preference;n&&Ij.includes(n)&&(t=n)}Lj(t)}catch{Lj(`default`)}}var zj=at(wt(e=>({preference:`default`,setPreference:t=>{Lj(t),e({preference:t})}}),{name:`xopc-web-font-scale`}));function Bj(){Lj(zj.getState().preference)}var Vj=[`language`,`theme`,`font`];function Hj(e){let t=(0,Q.c)(56),{variant:n,sections:r}=e,i=r===void 0?Vj:r,a=ct(Jj),o=ct(qj),s=Et(Kj),c=Et(Gj),l=zj(Wj),u=zj(Uj),d;t[0]===a?d=t[1]:(d=rt(a),t[0]=a,t[1]=d);let f=d.appearanceSettings,p=n===`page`?`w-full max-w-[min(100%,12rem)] shrink-0 sm:ml-auto sm:w-auto sm:max-w-[11rem]`:n===`toolbar`?`w-auto min-w-[6.5rem] max-w-[10rem] shrink-0 sm:min-w-[7.5rem]`:`w-full`,m;t[2]===p?m=t[3]:(m=X(_j,p),t[2]=p,t[3]=m);let h=m,g=n===`page`?`flex flex-col gap-2 border-b border-edge-subtle py-3.5 last:border-b-0 sm:flex-row sm:items-center sm:justify-between sm:gap-6 sm:py-4`:`flex flex-col gap-1.5`,_;t[4]===i?_=t[5]:(_=e=>i.includes(e),t[4]=i,t[5]=_);let v=_;if(n===`toolbar`){let e;t[6]!==f||t[7]!==a||t[8]!==h||t[9]!==o||t[10]!==v?(e=v(`language`)?(0,$.jsxs)(ce,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(ue,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(ue,{value:`zh`,children:f.langOptionZh})]}):null,t[6]=f,t[7]=a,t[8]=h,t[9]=o,t[10]=v,t[11]=e):e=t[11];let n;t[12]!==f||t[13]!==h||t[14]!==c||t[15]!==v||t[16]!==s?(n=v(`theme`)?(0,$.jsxs)(ce,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(ue,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(ue,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(ue,{value:`system`,children:f.themeOptionSystem})]}):null,t[12]=f,t[13]=h,t[14]=c,t[15]=v,t[16]=s,t[17]=n):n=t[17];let r;t[18]!==f||t[19]!==l||t[20]!==h||t[21]!==u||t[22]!==v?(r=v(`font`)?(0,$.jsxs)(ce,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(ue,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(ue,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(ue,{value:`large`,children:f.fontScaleLarge})]}):null,t[18]=f,t[19]=l,t[20]=h,t[21]=u,t[22]=v,t[23]=r):r=t[23];let i;return t[24]!==e||t[25]!==n||t[26]!==r?(i=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[e,n,r]}),t[24]=e,t[25]=n,t[26]=r,t[27]=i):i=t[27],i}let y=n===`sidebar`&&`flex flex-col gap-4`,b;t[28]===y?b=t[29]:(b=X(y),t[28]=y,t[29]=b);let x;t[30]!==f||t[31]!==a||t[32]!==g||t[33]!==h||t[34]!==o||t[35]!==v?(x=v(`language`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.languageTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.languageDescription})]}),(0,$.jsxs)(ce,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(ue,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(ue,{value:`zh`,children:f.langOptionZh})]})]}):null,t[30]=f,t[31]=a,t[32]=g,t[33]=h,t[34]=o,t[35]=v,t[36]=x):x=t[36];let S;t[37]!==f||t[38]!==g||t[39]!==h||t[40]!==c||t[41]!==v||t[42]!==s?(S=v(`theme`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.themeTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.themeDescription})]}),(0,$.jsxs)(ce,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(ue,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(ue,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(ue,{value:`system`,children:f.themeOptionSystem})]})]}):null,t[37]=f,t[38]=g,t[39]=h,t[40]=c,t[41]=v,t[42]=s,t[43]=S):S=t[43];let C;t[44]!==f||t[45]!==l||t[46]!==g||t[47]!==h||t[48]!==u||t[49]!==v?(C=v(`font`)?(0,$.jsxs)(`div`,{className:g,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:f.fontScaleTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.fontScaleDescription})]}),(0,$.jsxs)(ce,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(ue,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(ue,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(ue,{value:`large`,children:f.fontScaleLarge})]})]}):null,t[44]=f,t[45]=l,t[46]=g,t[47]=h,t[48]=u,t[49]=v,t[50]=C):C=t[50];let w;return t[51]!==C||t[52]!==b||t[53]!==x||t[54]!==S?(w=(0,$.jsxs)(`div`,{className:b,children:[x,S,C]}),t[51]=C,t[52]=b,t[53]=x,t[54]=S,t[55]=w):w=t[55],w}function Uj(e){return e.setPreference}function Wj(e){return e.preference}function Gj(e){return e.setPreference}function Kj(e){return e.preference}function qj(e){return e.setLanguage}function Jj(e){return e.language}var Yj={settingsOverview:`overview`,settingsAppearance:`appearance`,settingsKeyboardShortcuts:`keyboard-shortcuts`,settingsSystem:`system`,settingsDesktopPet:`desktop-pet`,settingsDesktopApp:`desktop-app`,settingsAgentDefaults:`agent-defaults`,settingsChannels:`channels`,settingsGateway:`gateway`,settingsRuntimes:`runtimes`,settingsDevices:`devices`,settingsHeartbeat:`heartbeat`,settingsTunnel:`remote-access`,settingsShares:`shares`,skills:`skills`,channels:`channels`};function Xj(e){return Yj[e]??null}var Zj=new Set([`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]),Qj={id:`system`,tabs:[`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]},$j=[{id:`general`,tabs:[`settingsOverview`,`settingsAppearance`,`settingsKeyboardShortcuts`]},{id:`capabilities`,tabs:[`settingsCapabilities`]},{id:`agent`,tabs:[`settingsAgentDefaults`,`settingsAgentBrowser`]},{id:`connection`,tabs:[`settingsDevices`,`settingsGateway`,`settingsRuntimes`,`settingsTunnel`,`settingsShares`]},{id:`automation`,tabs:[`settingsHeartbeat`]},{id:`diagnostics`,tabs:[`sessions`,`logs`]}],eM=`https://xopcai.github.io/xopc`;function tM(e){return e===`zh`?`${eM}/zh/`:`${eM}/`}function nM(e,t){let n=t.replace(/^\/+/,``).replace(/\.md$/,``);return e===`zh`?`${eM}/zh/${n}`:`${eM}/${n}`}function rM(e,t){let n=nM(e,`remote-access`);return t?`${n}#${t}`:n}function iM(e){return`${nM(e,`tools`)}#browser-optional`}function aM(e){if(e===`chat`)return`/chat`;if(e===`agents`)return`/agents`;if(e===`automations`)return`/automations`;if(e===`settingsKeyboardShortcuts`)return`/settings/keyboard-shortcuts`;if(e===`skills`)return`/skills`;if(e===`connectors`)return`/connectors`;if(e===`channels`||e===`settingsChannels`)return`/channels`;if(e===`settingsAgentBrowser`)return`/settings/agent-browser`;if(e===`settingsCapabilities`)return sM(`models`);let t=Xj(e);return t?`/settings/${t}`:e===`sessions`||e===`logs`?`/settings/${e}`:`/${e}`}var oM=[`models`,`image`,`voice`,`search`];function sM(e){return`/settings/capabilities/${e}`}function cM(){let e=(0,Q.c)(49),t=ut(fM),n=ut(dM),r=ut(uM),i=ct(lM),a;e[0]===i?a=e[1]:(a=rt(i),e[0]=i,e[1]=a);let o=a,s=o.gatewayLanding,c=o.appearanceSettings.pageTitle,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Hj,{variant:`toolbar`,sections:[`language`,`theme`]}),e[2]=l):l=e[2];let u;e[3]===c?u=e[4]:(u=(0,$.jsx)(`div`,{className:`flex h-14 shrink-0 items-center justify-end px-3 sm:px-4 ${fj}`,children:(0,$.jsx)(`div`,{className:pj,role:`group`,"aria-label":c,children:l})}),e[3]=c,e[4]=u);let d;e[5]===o.appBrand?d=e[6]:(d=(0,$.jsx)(hj,{className:`size-14 shrink-0`,alt:o.appBrand}),e[5]=o.appBrand,e[6]=d);let f;e[7]===s.headline?f=e[8]:(f=(0,$.jsx)(`h1`,{className:`text-balance text-xl font-semibold tracking-tight text-fg`,children:s.headline}),e[7]=s.headline,e[8]=f);let p;e[9]===s.subline?p=e[10]:(p=(0,$.jsx)(`p`,{className:`max-w-md text-sm leading-relaxed text-fg-muted`,children:s.subline}),e[9]=s.subline,e[10]=p);let m;e[11]!==d||e[12]!==f||e[13]!==p?(m=(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[d,f,p]}),e[11]=d,e[12]=f,e[13]=p,e[14]=m):m=e[14];let h;e[15]!==s.sessionExpired||e[16]!==n?(h=n?(0,$.jsx)(`div`,{className:`mt-5 rounded-lg border border-danger/30 bg-danger/10 px-3 py-2.5 text-sm text-fg`,role:`status`,children:s.sessionExpired}):null,e[15]=s.sessionExpired,e[16]=n,e[17]=h):h=e[17];let g;e[18]!==t||e[19]!==r?(g=(0,$.jsx)(Fj,{baseUrl:t,onSubmit:r,className:`mt-6`}),e[18]=t,e[19]=r,e[20]=g):g=e[20];let _;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(is,{className:`size-4 shrink-0 transition-transform duration-150 group-open:rotate-180`,"aria-hidden":!0}),e[21]=_):_=e[21];let v;e[22]===s.tokenHelpSummary?v=e[23]:(v=(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-3 font-medium text-fg hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[s.tokenHelpSummary,_]}),e[22]=s.tokenHelpSummary,e[23]=v);let y;e[24]===s.tokenHelpOnboard?y=e[25]:(y=(0,$.jsx)(`p`,{children:s.tokenHelpOnboard}),e[24]=s.tokenHelpOnboard,e[25]=y);let b;e[26]===s.tokenHelpLink?b=e[27]:(b=(0,$.jsx)(`p`,{children:s.tokenHelpLink}),e[26]=s.tokenHelpLink,e[27]=b);let x;e[28]!==y||e[29]!==b?(x=(0,$.jsxs)(`div`,{className:`mt-3 space-y-2 leading-relaxed`,children:[y,b]}),e[28]=y,e[29]=b,e[30]=x):x=e[30];let S;e[31]!==v||e[32]!==x?(S=(0,$.jsxs)(`details`,{className:`group mt-6 border-t border-edge-subtle pt-4 text-sm text-fg-muted`,children:[v,x]}),e[31]=v,e[32]=x,e[33]=S):S=e[33];let C;e[34]===i?C=e[35]:(C=nM(i,`gateway`),e[34]=i,e[35]=C);let w;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(ge,{className:`size-3.5 opacity-80`,"aria-hidden":!0}),e[36]=w):w=e[36];let T;e[37]!==s.docsGatewayLink||e[38]!==C?(T=(0,$.jsx)(`div`,{className:`mt-5 flex justify-center text-sm`,children:(0,$.jsxs)(`a`,{href:C,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-accent hover:underline`,children:[s.docsGatewayLink,w]})}),e[37]=s.docsGatewayLink,e[38]=C,e[39]=T):T=e[39];let E;e[40]!==S||e[41]!==T||e[42]!==m||e[43]!==h||e[44]!==g?(E=(0,$.jsx)(`main`,{id:`app-main-content`,className:`flex flex-1 flex-col items-center justify-center px-4 py-10 sm:px-6`,children:(0,$.jsxs)(`div`,{className:`w-full max-w-md rounded-xl border border-edge bg-surface-panel p-6 shadow-popover sm:p-8`,children:[m,h,g,S,T]})}),e[40]=S,e[41]=T,e[42]=m,e[43]=h,e[44]=g,e[45]=E):E=e[45];let D;return e[46]!==E||e[47]!==u?(D=(0,$.jsxs)(`div`,{className:`relative flex min-h-full flex-1 flex-col bg-surface-base`,children:[u,E]}),e[46]=E,e[47]=u,e[48]=D):D=e[48],D}function lM(e){return e.language}function uM(e){return e.setGatewayToken}function dM(e){return e.tokenExpired}function fM(e){return e.baseUrl}function pM(){return Wt()?window.electronAPI?.platform??`web`:`web`}function mM({runtime:e,sidebarCollapsed:t,mobileNavOpen:n}){let r=e===`darwin`,i=e===`linux`,a=e===`web`,o=a||i||r&&!t&&!n;return{sidebarChromeVisible:o||n,sidebarQuickActionsVisible:o,sidebarChromeDraggable:r,sidebarLeadingInsetClass:r?`pl-[88px]`:``,mainHeaderDraggable:r,mainHeaderQuickActionsVisible:(a||i)&&t||r&&t&&!n,mainHeaderLeadingInsetClass:r&&t?`pl-[88px]`:``,collapsedNewChatVisible:a&&t}}var hM=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=ct(gM),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=X(`size-8 shrink-0 rounded-xl p-0`,pj,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(Hv,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[4]=s):s=t[4];let c;return t[5]!==a.titleBarCommandPalette||t[6]!==o?(c=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:o,title:a.titleBarCommandPalette,"aria-label":a.titleBarCommandPalette,onClick:_M,children:s}),t[5]=a.titleBarCommandPalette,t[6]=o,t[7]=c):c=t[7],c});function gM(e){return e.language}function _M(){return window.dispatchEvent(new CustomEvent(`open-command-palette`))}function vM(e,t,n){if(!e)return{entries:[t],index:0};if(e.entries[e.index]===t)return e;if(n===`PUSH`){let n=[...e.entries.slice(0,e.index+1),t];return{entries:n,index:n.length-1}}if(n===`REPLACE`){let n=[...e.entries];return n[e.index]=t,{entries:n,index:e.index}}let r=e.entries.indexOf(t);return r>=0?{entries:e.entries,index:r}:{entries:[t],index:0}}var yM;function bM(){let e=(0,Q.c)(10),t=l(),n=b(),r;e[0]!==t.key||e[1]!==n?(r=()=>(yM=vM(yM,t.key,n),yM),e[0]=t.key,e[1]=n,e[2]=r):r=e[2];let[i,a]=(0,Z.useState)(r),o,s;e[3]!==t.key||e[4]!==n?(o=()=>{yM=vM(yM,t.key,n),a(yM)},s=[t.key,n],e[3]=t.key,e[4]=n,e[5]=o,e[6]=s):(o=e[5],s=e[6]),(0,Z.useLayoutEffect)(o,s);let c=i.index>0,u=i.index<i.entries.length-1,d;return e[7]!==c||e[8]!==u?(d={canGoBack:c,canGoForward:u},e[7]=c,e[8]=u,e[9]=d):d=e[9],d}var xM=(0,Z.memo)(function(e){let t=(0,Q.c)(24),{className:n}=e,r=ct(SM),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i,o=p(),{canGoBack:s,canGoForward:c}=bM();if(!Wt())return null;let l;t[2]===n?l=t[3]:(l=X(`flex shrink-0 items-center gap-0.5`,n),t[2]=n,t[3]=l);let u=!s,d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=X(`size-7 shrink-0 rounded-md p-0`,pj),t[4]=d):d=t[4];let f;t[5]===o?f=t[6]:(f=()=>o(-1),t[5]=o,t[6]=f);let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(xr,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[7]=m):m=t[7];let h;t[8]!==a.historyBack||t[9]!==u||t[10]!==f?(h=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:u,className:d,title:a.historyBack,"aria-label":a.historyBack,onClick:f,children:m}),t[8]=a.historyBack,t[9]=u,t[10]=f,t[11]=h):h=t[11];let g=!c,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=X(`size-7 shrink-0 rounded-md p-0`,pj),t[12]=_):_=t[12];let v;t[13]===o?v=t[14]:(v=()=>o(1),t[13]=o,t[14]=v);let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(Tr,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[15]=y):y=t[15];let b;t[16]!==a.historyForward||t[17]!==v||t[18]!==g?(b=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:g,className:_,title:a.historyForward,"aria-label":a.historyForward,onClick:v,children:y}),t[16]=a.historyForward,t[17]=v,t[18]=g,t[19]=b):b=t[19];let x;return t[20]!==b||t[21]!==l||t[22]!==h?(x=(0,$.jsxs)(`div`,{className:l,children:[h,b]}),t[20]=b,t[21]=l,t[22]=h,t[23]=x):x=t[23],x});function SM(e){return e.language}var CM=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=ct(wM),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.notes,o;t[2]===n?o=t[3]:(o=X(`size-8 shrink-0 rounded-xl p-0`,pj,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(Lx,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[4]=s):s=t[4];let c;return t[5]!==a.quickCapturePlaceholder||t[6]!==o?(c=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:o,title:a.quickCapturePlaceholder,"aria-label":a.quickCapturePlaceholder,onClick:TM,children:s}),t[5]=a.quickCapturePlaceholder,t[6]=o,t[7]=c):c=t[7],c});function wM(e){return e.language}function TM(){return window.dispatchEvent(new CustomEvent(`open-quick-capture`))}var EM=`xopc-web-sidebar-collapsed`,DM=`xopc-web-sidebar-expanded-width-px`;function OM(){try{return globalThis.localStorage?.getItem(EM)===`1`}catch{return!1}}function kM(e){try{globalThis.localStorage?.setItem(EM,e?`1`:`0`)}catch{}}function AM(e){return Math.min(480,Math.max(248,Math.round(e)))}function jM(){try{let e=globalThis.localStorage?.getItem(DM);if(e==null)return AM(256);let t=Number.parseInt(e,10);return AM(Number.isFinite(t)?t:256)}catch{return AM(256)}}function MM(e){try{globalThis.localStorage?.setItem(DM,String(e))}catch{}}var NM=at((e,t)=>({collapsed:OM(),setCollapsed:t=>{e({collapsed:t}),queueMicrotask(()=>kM(t))},toggleCollapsed:()=>{t().setCollapsed(!t().collapsed)},expandedWidthPx:jM(),setExpandedWidthPx:n=>{let r=AM(n);t().expandedWidthPx!==r&&(e({expandedWidthPx:r}),queueMicrotask(()=>MM(r)))}})),PM=(0,Z.memo)(function(e){let t=(0,Q.c)(15),{variant:n,className:r}=e,i=n===void 0?`sidebar`:n,a=ct(FM),o;t[0]===a?o=t[1]:(o=rt(a),t[0]=a,t[1]=o);let s=o,c=NM(IM),l=NM(LM),u=i===`sidebar`?`hidden md:inline-flex`:`inline-flex`,d;t[2]!==r||t[3]!==u?(d=X(`size-8 shrink-0 rounded-xl p-0`,u,pj,r),t[2]=r,t[3]=u,t[4]=d):d=t[4];let f=!c,p=c?s.sidebarExpand:s.sidebarCollapse,m;t[5]===l?m=t[6]:(m=()=>l(),t[5]=l,t[6]=m);let h;t[7]===c?h=t[8]:(h=c?(0,$.jsx)(hv,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}):(0,$.jsx)(mv,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[7]=c,t[8]=h);let g;return t[9]!==d||t[10]!==f||t[11]!==p||t[12]!==m||t[13]!==h?(g=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:d,"aria-expanded":f,"aria-controls":`app-sidebar`,"aria-label":p,onClick:m,children:h}),t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=g):g=t[14],g});function FM(e){return e.language}function IM(e){return e.collapsed}function LM(e){return e.toggleCollapsed}var RM=(0,Z.memo)(function(e){let t=(0,Q.c)(10),{sidebarToggleVariant:n,className:r}=e,i;t[0]===r?i=t[1]:(i=X(`flex min-w-0 shrink-0 items-center gap-0.5`,r),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,$.jsx)(PM,{variant:n}),t[2]=n,t[3]=a);let o,s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(CM,{}),s=(0,$.jsx)(hM,{}),c=(0,$.jsx)(xM,{}),t[4]=o,t[5]=s,t[6]=c):(o=t[4],s=t[5],c=t[6]);let l;return t[7]!==i||t[8]!==a?(l=(0,$.jsxs)(`div`,{className:i,children:[a,o,s,c]}),t[7]=i,t[8]=a,t[9]=l):l=t[9],l}),zM=(0,Z.memo)(function(e){let t=(0,Q.c)(4),{className:n}=e,{pathname:r}=l(),i=NM(BM),a=mM({runtime:pM(),sidebarCollapsed:i,mobileNavOpen:!1});if(r.startsWith(`/settings`)||!i||!a.mainHeaderQuickActionsVisible||a.mainHeaderLeadingInsetClass)return null;let o;t[0]===n?o=t[1]:(o=X(`hidden md:flex`,n),t[0]=n,t[1]=o);let s;return t[2]===o?s=t[3]:(s=(0,$.jsx)(RM,{sidebarToggleVariant:`main`,className:o}),t[2]=o,t[3]=s),s});function BM(e){return e.collapsed}var VM=at(e=>({mobileNavOpen:!1,setMobileNavOpen:t=>e({mobileNavOpen:t}),toggleMobileNav:()=>e(e=>({mobileNavOpen:!e.mobileNavOpen}))})),HM=(0,Z.memo)(function(){let e=(0,Q.c)(12),t=ct(UM),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n,i=VM(WM),a=VM(GM),o=i&&`hidden`,s;e[2]===o?s=e[3]:(s=X(`size-8 shrink-0 rounded-xl p-0 md:hidden`,pj,o),e[2]=o,e[3]=s);let c;e[4]===a?c=e[5]:(c=()=>a(!0),e[4]=a,e[5]=c);let l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(K_,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),e[6]=l):l=e[6];let u;return e[7]!==r.openMenu||e[8]!==i||e[9]!==s||e[10]!==c?(u=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:s,"aria-expanded":i,"aria-controls":`app-sidebar`,"aria-label":r.openMenu,title:r.openMenu,onClick:c,children:l}),e[7]=r.openMenu,e[8]=i,e[9]=s,e[10]=c,e[11]=u):u=e[11],u});function UM(e){return e.language}function WM(e){return e.mobileNavOpen}function GM(e){return e.setMobileNavOpen}var KM={startExtra:null,main:null,end:null},qM=at(e=>({...KM,setPageHeader:t=>e(t),clearPageHeader:()=>e(KM)})),JM=(0,Z.memo)(function(){let e=(0,Q.c)(28),{pathname:t}=l(),n=qM(YM),r=qM(XM),i=qM(ZM),a=qM(QM),o=NM($M),s=VM(eN),c;e[0]===t?c=e[1]:(c=t.startsWith(`/settings`),e[0]=t,e[1]=c);let u=!c,d,f,p;if(e[2]!==a||e[3]!==s||e[4]!==o){let t=mM({runtime:pM(),sidebarCollapsed:o,mobileNavOpen:s});p=X(`grid min-w-0 shrink-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 bg-surface-panel`,mj,t.mainHeaderDraggable&&`[-webkit-app-region:drag]`,`px-3 sm:gap-4 sm:px-5 xl:px-6`,a),e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=X(`flex min-w-0 shrink-0 items-center gap-2.5`,pj),e[8]=d):d=e[8],f=t.mainHeaderLeadingInsetClass?(0,$.jsx)(RM,{sidebarToggleVariant:`main`,className:X(`hidden md:flex`,t.mainHeaderLeadingInsetClass)}):null,e[2]=a,e[3]=s,e[4]=o,e[5]=d,e[6]=f,e[7]=p}else d=e[5],f=e[6],p=e[7];let m;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(zM,{}),e[9]=m):m=e[9];let h;e[10]===u?h=e[11]:(h=u?(0,$.jsx)(HM,{}):null,e[10]=u,e[11]=h);let g;e[12]!==n||e[13]!==d||e[14]!==f||e[15]!==h?(g=(0,$.jsxs)(`div`,{className:d,children:[f,m,h,n]}),e[12]=n,e[13]=d,e[14]=f,e[15]=h,e[16]=g):g=e[16];let _;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(_=X(`w-fit max-w-full`,pj),e[17]=_):_=e[17];let v;e[18]===r?v=e[19]:(v=(0,$.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col justify-center overflow-hidden`,children:(0,$.jsx)(`div`,{className:_,children:r})}),e[18]=r,e[19]=v);let y;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(y=X(`flex min-w-0 shrink-0 items-center justify-end gap-2`,pj),e[20]=y):y=e[20];let b;e[21]===i?b=e[22]:(b=(0,$.jsx)(`div`,{className:y,children:i}),e[21]=i,e[22]=b);let x;return e[23]!==b||e[24]!==p||e[25]!==g||e[26]!==v?(x=(0,$.jsxs)(`header`,{className:p,children:[g,v,b]}),e[23]=b,e[24]=p,e[25]=g,e[26]=v,e[27]=x):x=e[27],x});function YM(e){return e.startExtra}function XM(e){return e.main}function ZM(e){return e.end}function QM(e){return e.className}function $M(e){return e.collapsed}function eN(e){return e.mobileNavOpen}var tN=`
|
|
5
|
+
|
|
6
|
+
`,nN=/\r\n/g,rN=`xopc.npmPendingRestart`;function iN(e){let t=e?.postUpdate;if(!t||typeof t!=`object`)return!1;let n=t.restart;if(!n||typeof n!=`object`)return!1;let r=n;return r.ok===!0&&[`in-process`,`daemon`,`unmanaged`].includes(String(r.mode))}var aN=typeof window<`u`&&window.electronAPI?.updater!==void 0;function oN(){return null}function sN(e){if(!(!e||typeof window>`u`))try{let t=sessionStorage.getItem(rN);if(!t)return;let n=JSON.parse(t),r=typeof n.installedVersion==`string`?n.installedVersion.trim():``;r&&r===e&&sessionStorage.removeItem(rN)}catch{}}function cN(e){return sN(e.currentVersion),e}function lN(){let[e,t]=(0,Z.useState)(null),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(()=>oN()),[o,s]=(0,Z.useState)(aN?{state:`idle`}:oN()),c=(0,Z.useRef)(null),l=aN||i!==null;(0,Z.useEffect)(()=>{if(l)return;dN().then(e=>t(cN(e))).catch(()=>{});let e=e=>{let n=e.detail;if(n===null)t(e=>e&&cN({...e,updateAvailable:!1,latestVersion:null,channel:null}));else if(n&&typeof n==`object`){let e=n;t(cN({currentVersion:e.currentVersion??``,updateAvailable:!0,latestVersion:e.latestVersion??null,channel:e.channel??null}))}};return window.addEventListener(`update-available`,e),()=>window.removeEventListener(`update-available`,e)},[l]),(0,Z.useEffect)(()=>{if(!aN)return;let e=window.electronAPI.updater;return e.getStatus().then(e=>s(e)),e.onStatusChanged(e=>s(e))},[]),(0,Z.useEffect)(()=>{},[]),(0,Z.useEffect)(()=>()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]);let u=(0,Z.useCallback)(async()=>{if(l)return!1;try{let e=await ot(Y(`/api/update/check`),{method:`POST`});if(!e.ok)return!1;let n=await e.json();return n.payload?(t(cN(n.payload)),!0):!1}catch{return!1}},[l]),d=(0,Z.useCallback)(async()=>{if(l)return{ok:!1,error:`not-applicable`,message:`npm update is not used in the desktop app.`,status:400};r(!0);try{let e=await ot(Y(`/api/update/run/stream`),{method:`POST`,headers:{Accept:`text/event-stream`}});if(!e.ok||!e.body){let t=await e.text().catch(()=>``),n=`HTTP ${e.status}`;try{let e=JSON.parse(t);typeof e.message==`string`&&(n=e.message)}catch{t&&(n=t.slice(0,500))}return{ok:!1,error:e.status===409?`busy`:`unknown`,message:n,status:e.status}}let t=await fN(e.body);if(t.ok&&t.result){let e=t.result;if(e&&typeof e==`object`&&e.status===`ok`&&typeof e.installedVersion==`string`){let t=iN(e);try{sessionStorage.setItem(rN,JSON.stringify({installedVersion:e.installedVersion,automaticRestart:t}))}catch{}window.dispatchEvent(new CustomEvent(`xopc:npm-update-installed`,{detail:{version:e.installedVersion,automaticRestart:t}}))}else e&&typeof e==`object`&&e.status===`up-to-date`&&typeof e.latestVersion==`string`&&window.dispatchEvent(new CustomEvent(`xopc:npm-update-installed`,{detail:{version:e.latestVersion}}))}return t}catch(e){return{ok:!1,error:`network`,message:e instanceof Error?e.message:String(e),status:0}}finally{r(!1)}},[l]),f=(0,Z.useCallback)(()=>{if(aN){window.electronAPI.updater.check();return}},[i]),p=(0,Z.useCallback)(()=>{aN&&window.electronAPI.updater.quitAndInstall()},[]);return{npm:e,electron:aN?o:i??o,isElectron:l,checkNow:u,runNpmUpdate:d,npmUpdateRunning:n,electronCheck:f,electronQuitAndInstall:p}}var uN=null;async function dN(){return uN||(uN=(async()=>{let e=await ot(Y(`/api/update/status`));if(!e.ok)throw Error(`HTTP ${e.status}`);return(await e.json()).payload})().finally(()=>{uN=null}),uN)}async function fN(e){let t=e.getReader(),n=new TextDecoder,r=``,i=null,a=e=>{try{let t=JSON.parse(e);typeof t.line==`string`&&window.dispatchEvent(new CustomEvent(`xopc:npm-update-progress`,{detail:{line:t.line,source:t.source===`stderr`?`stderr`:`stdout`}}))}catch{}},o=e=>{let t=``,n=``;for(let r of e.split(`
|
|
7
|
+
`)){let e=r.replace(/\r$/,``);e.startsWith(`event:`)?t=e.slice(6).trim():e.startsWith(`data:`)&&(n+=e.slice(5).trimStart())}if(n){if(t===`progress`){a(n);return}if(t===`result`)try{let e=JSON.parse(n);i=e.ok?{ok:!0,result:e.result??null}:{ok:!1,error:String(e.error??`unknown`),message:String(e.message??`Update failed`),status:e.error===`busy`?409:400,result:e.result??null}}catch{i={ok:!1,error:`parse`,message:`Invalid update stream`,status:0}}}};try{let e=async()=>{if(i!==null)return i;let{done:a,value:s}=await t.read();if(a)return i;r+=n.decode(s,{stream:!0}),r=r.replace(nN,`
|
|
8
|
+
`);let c=r.split(tN);r=c.pop()??``;for(let e of c)e.length&&o(e);return e()},a=await e();if(a)return a}finally{t.releaseLock()}return i??{ok:!1,error:`no-result`,message:`Update stream ended without a result`,status:0}}var pN=`xopc.updateReminder.dismissed`,mN=typeof window<`u`&&window.electronAPI?.updater!==void 0,hN=`xopc:electron-update-recheck`;function gN(){if(typeof window>`u`)return{};try{let e=localStorage.getItem(pN);if(!e)return{};let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return{}}}var _N=160;function vN(e){let t=e.trim();return t.length<=_N?t:`${t.slice(0,_N-1)}…`}function yN(){let{npm:e,electron:t,isElectron:n,electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}=lN(),[o,s]=(0,Z.useState)(gN),[c,l]=(0,Z.useState)({downloading:!1,electronError:!1}),[u,d]=(0,Z.useState)(()=>{if(typeof window>`u`||mN)return null;try{let e=sessionStorage.getItem(rN);if(!e)return null;let t=JSON.parse(e),n=typeof t.installedVersion==`string`?t.installedVersion.trim():``;return n?{version:n,automatic:t.automaticRestart===!0}:null}catch{return null}}),f=(0,Z.useRef)(t?.state);f.current!==t?.state&&(f.current=t?.state,t?.state!==`downloading`&&c.downloading&&l(e=>({...e,downloading:!1})),t?.state!==`error`&&c.electronError&&l(e=>({...e,electronError:!1})));let p=(0,Z.useRef)(null);if(u&&e?.currentVersion===u.version&&p.current!==u.version){p.current=u.version;try{sessionStorage.removeItem(rN)}catch{}d(null)}(0,Z.useEffect)(()=>{if(n)return;let e=()=>{try{let e=sessionStorage.getItem(rN);if(!e){d(null);return}let t=JSON.parse(e),n=typeof t.installedVersion==`string`?t.installedVersion.trim():``;d(n?{version:n,automatic:t.automaticRestart===!0}:null)}catch{d(null)}};return e(),window.addEventListener(`xopc:npm-update-installed`,e),()=>window.removeEventListener(`xopc:npm-update-installed`,e)},[n]),(0,Z.useEffect)(()=>{let e=()=>{l(e=>({...e,downloading:!1})),s(e=>{let t={...e};delete t.electronReady;try{localStorage.setItem(pN,JSON.stringify(t))}catch{}return t})};return window.addEventListener(hN,e),()=>window.removeEventListener(hN,e)},[]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.version?.trim();t&&s(e=>{let n={...e,npm:t};try{localStorage.setItem(pN,JSON.stringify(n))}catch{}return n})};return window.addEventListener(`xopc:npm-update-installed`,e),()=>window.removeEventListener(`xopc:npm-update-installed`,e)},[]);let m=(0,Z.useMemo)(()=>n&&t?.state===`downloaded`&&t.version?o.electronReady===t.version?{kind:`none`}:{kind:`electron-ready`,version:t.version}:n&&t?.state===`downloading`&&!c.downloading?{kind:`electron-downloading`,percent:Math.round(t.percent??0)}:n&&t?.state===`error`&&t.message&&!c.electronError?{kind:`electron-error`,message:vN(t.message)}:!n&&u&&e&&e.currentVersion!==u.version?u.automatic?{kind:`npm-restarting`,version:u.version}:{kind:`npm-restart-required`,version:u.version}:!n&&e?.updateAvailable&&e.latestVersion?o.npm===e.latestVersion?{kind:`none`}:{kind:`npm`,version:e.latestVersion,channel:e.channel}:{kind:`none`},[o.npm,o.electronReady,t,c.downloading,c.electronError,n,e,u]);return{show:m,dismiss:(0,Z.useCallback)(()=>{if(m.kind===`electron-downloading`){l(e=>({...e,downloading:!0}));return}if(m.kind===`electron-error`){l(e=>({...e,electronError:!0}));return}if(m.kind===`npm-restart-required`||m.kind===`npm-restarting`){try{sessionStorage.removeItem(rN)}catch{}d(null);return}if(m.kind===`none`)return;let e={...o};m.kind===`npm`?e.npm=m.version:m.kind===`electron-ready`&&(e.electronReady=m.version);try{localStorage.setItem(pN,JSON.stringify(e))}catch{}s(e)},[o,m]),electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}}var bN={version:`0.0.249`,commit:`3fb9277dc124dbcbae8a30bbe8f18e219bfc4e72`,buildTimeIso:`2026-09-07T15:32:22.331Z`};function xN(){return function(e,t){switch(t.type){case`start`:return e.loading?e:{...e,loading:!0,error:null};case`success`:return{data:t.data,loading:!1,error:null};case`error`:return{data:t.data,loading:!1,error:t.error};case`patch`:return{...e,data:t.updater(e.data)}}}}function SN(e,t,n){let{enabled:r=!0,initial:i,errorData:a}=n,[o,s]=(0,Z.useReducer)(xN(),void 0,()=>({data:i,loading:!1,error:null})),c=(0,Z.useRef)(e);c.current=e;let l=(0,Z.useRef)(a);l.current=a;let u=(0,Z.useRef)(i);u.current=i,(0,Z.useEffect)(()=>{if(!r)return;let e=!1;return s({type:`start`}),c.current().then(t=>{e||s({type:`success`,data:t})}).catch(t=>{if(e)return;let n=l.current;s({type:`error`,data:typeof n==`function`?n(t):n===void 0?u.current:n,error:t})}),()=>{e=!0}},[r,...t]);let d=(0,Z.useCallback)(e=>{s({type:`patch`,updater:typeof e==`function`?e:()=>e})},[]);return{...o,setData:d}}var CN=`https://github.com/xopcai/xopc`,wN=new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}),TN=new Intl.DateTimeFormat(`en-US`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1});function EN(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return(t===`zh`?wN:TN).format(n)}catch{return n.toISOString()}}function DN({open:e,onOpenChange:t}){let n=ct(e=>e.language),r=rt(n),i=r.aboutDialog,a=r.updatePanel,{isElectron:o,electron:s,electronCheck:c,checkNow:l,npm:u,runNpmUpdate:d,npmUpdateRunning:f}=lN(),[p,m]=(0,Z.useState)(!1),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(null),{data:x}=SN(async()=>{let e=await J(Y(`/health`));return typeof e.version==`string`?e.version:null},[e],{enabled:e,initial:null,errorData:null}),S=(0,Z.useCallback)(e=>{e||(m(!1),g(!1),v(!1),b(null)),t(e)},[t]),C=(0,Z.useCallback)(async()=>{b(null);let e=rt(n).updatePanel,t=await d();if(t.ok){Tt({tone:`success`,title:e.updateSuccess,message:iN(t.result)?e.updateSuccessAutoRestartDetail:e.updateSuccessDetail,source:n===`zh`?`系统更新`:`System update`,dedupeKey:`system-update`});return}b(`${t.error===`git-checkout`?e.updateErrorGit:t.error===`busy`?e.updateErrorBusy:e.updateErrorFailed}: ${t.message}`)},[d,n]),w=bN.commit,T=n===`zh`?`zh-CN`:`en-US`,E=EN(bN.buildTimeIso,T),D=new Date().getFullYear(),O=i.copyright.replace(`{year}`,String(D));return(0,$.jsx)(ne,{open:e,onOpenChange:S,children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[200] bg-scrim`}),(0,$.jsxs)(ee,{className:X(`xopc-dialog-content fixed left-1/2 top-1/2 z-[201] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2`,`rounded-2xl border border-edge bg-surface-panel shadow-popover dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-4 pt-3`,"aria-hidden":!0,children:[(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#ff5f57]`}),(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#febc2e]`}),(0,$.jsx)(`span`,{className:`size-3 rounded-full bg-[#28c840]`})]}),(0,$.jsxs)(`div`,{className:`px-6 pb-2 pt-1`,children:[(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,"aria-label":i.close,children:(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:2})})})}),(0,$.jsxs)(`div`,{className:`-mt-2 flex flex-col items-center text-center`,children:[(0,$.jsx)(hj,{className:`size-[4.5rem]`,alt:r.appBrand}),(0,$.jsx)(te,{className:`mt-3 text-xl font-semibold tracking-tight text-fg`,children:r.appBrand}),(0,$.jsx)(B,{className:`sr-only`,children:i.windowTitle})]}),(0,$.jsxs)(`div`,{className:`mt-6 space-y-3 text-sm`,children:[(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-center gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.versionLabel}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-end gap-2 sm:justify-start`,children:[(0,$.jsx)(`span`,{className:`font-mono text-[13px] text-fg tabular-nums`,children:bN.version}),(0,$.jsx)(`button`,{type:`button`,className:X(`shrink-0 rounded-md border border-edge bg-surface-base px-2 py-0.5 text-[11px] font-medium text-fg-muted`,`transition-colors hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),onClick:()=>{o?(window.dispatchEvent(new CustomEvent(hN)),m(!0),c()):(m(!0),v(!1),g(!0),(async()=>{let e=await l();g(!1),e||v(!0)})())},disabled:o&&[`checking`,`available`,`downloading`,`downloaded`].includes(s?.state??``)||!o&&(h||f),children:o&&s?.state===`checking`||!o&&h?(0,$.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(je,{className:`size-3 animate-spin`}),i.checkUpdatesChecking]}):i.checkUpdates})]})]}),o&&p&&(0,$.jsx)(ON,{state:s?.state,version:s?.version,percent:s?.percent,d:i}),!o&&p&&(0,$.jsx)(kN,{checking:h,checkFailed:_,npm:u,npmUpdateRunning:f,upgradeError:y,onUpgrade:C,d:i,tp:a}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`pt-0.5 text-fg-muted`,children:i.commitLabel}),(0,$.jsx)(`span`,{className:`break-all font-mono text-[11px] leading-snug text-fg`,children:w})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-baseline gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.buildDateLabel}),(0,$.jsx)(`span`,{className:`text-right text-[13px] text-fg sm:text-left`,children:E})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-[5.5rem_1fr] items-baseline gap-x-3 gap-y-1`,children:[(0,$.jsx)(`span`,{className:`text-fg-muted`,children:i.gatewayVersionLabel}),(0,$.jsx)(`span`,{className:`text-right font-mono text-[13px] text-fg sm:text-left`,children:x??i.gatewayUnavailable})]}),(0,$.jsx)(`p`,{className:`pt-0.5 text-[11px] text-fg-subtle`,children:i.consoleBuildHint})]}),(0,$.jsxs)(`div`,{className:`mt-6 border-t border-edge-subtle pt-4 text-center text-[11px] leading-relaxed text-fg-muted`,children:[(0,$.jsx)(`p`,{children:(0,$.jsx)(`a`,{className:`text-accent-fg underline decoration-accent-fg/40 underline-offset-2 hover:decoration-accent-fg`,href:CN,target:`_blank`,rel:`noopener noreferrer`,children:i.repositoryLink})}),(0,$.jsx)(`p`,{className:`mt-2`,children:O})]})]})]})]})})}function ON(e){let t=(0,Q.c)(29),{state:n,version:r,percent:i,d:a}=e;if(!n||n===`idle`)return null;if(n===`checking`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(je,{className:`size-3.5 animate-spin`}),t[0]=e):e=t[0];let n;return t[1]===a.checkUpdatesChecking?n=t[2]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesChecking})]}),t[1]=a.checkUpdatesChecking,t[2]=n),n}if(n===`not-available`){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(As,{className:`size-3.5`}),t[3]=e):e=t[3];let n;return t[4]===a.checkUpdatesUpToDate?n=t[5]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-green-600 dark:text-green-400`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesUpToDate})]}),t[4]=a.checkUpdatesUpToDate,t[5]=n),n}if(n===`available`){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Fv,{className:`size-3.5`}),t[6]=e):e=t[6];let n;t[7]!==a.checkUpdatesAvailable||t[8]!==r?(n=a.checkUpdatesAvailable.replace(`{version}`,r??`?`),t[7]=a.checkUpdatesAvailable,t[8]=r,t[9]=n):n=t[9];let i;return t[10]===n?i=t[11]:(i=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[10]=n,t[11]=i),i}if(n===`downloading`){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(he,{className:`size-3.5 motion-safe:animate-[bounce_1s_ease-out_infinite]`}),t[12]=e):e=t[12];let n=a.checkUpdatesDownloading,r;if(t[13]!==a.checkUpdatesDownloading||t[14]!==i){let e;t[16]===i?e=t[17]:(e=Math.round(i??0),t[16]=i,t[17]=e),r=n.replace(`{percent}`,String(e)),t[13]=a.checkUpdatesDownloading,t[14]=i,t[15]=r}else r=t[15];let o;return t[18]===r?o=t[19]:(o=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:r})]}),t[18]=r,t[19]=o),o}if(n===`downloaded`){let e;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(he,{className:`size-3.5`}),t[20]=e):e=t[20];let n;t[21]!==a.checkUpdatesDownloaded||t[22]!==r?(n=a.checkUpdatesDownloaded.replace(`{version}`,r??`?`),t[21]=a.checkUpdatesDownloaded,t[22]=r,t[23]=n):n=t[23];let i;return t[24]===n?i=t[25]:(i=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] font-semibold text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[24]=n,t[25]=i),i}if(n===`error`){let e;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(xs,{className:`size-3.5`}),t[26]=e):e=t[26];let n;return t[27]===a.checkUpdatesError?n=t[28]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-red-500 dark:text-red-400`,children:[e,(0,$.jsx)(`span`,{children:a.checkUpdatesError})]}),t[27]=a.checkUpdatesError,t[28]=n),n}return null}function kN(e){let t=(0,Q.c)(28),{checking:n,checkFailed:r,npm:i,npmUpdateRunning:a,upgradeError:o,onUpgrade:s,d:c,tp:l}=e;if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(je,{className:`size-3.5 animate-spin`}),t[0]=e):e=t[0];let n;return t[1]===c.checkUpdatesChecking?n=t[2]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:c.checkUpdatesChecking})]}),t[1]=c.checkUpdatesChecking,t[2]=n),n}if(r){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(xs,{className:`size-3.5`}),t[3]=e):e=t[3];let n;return t[4]===c.checkUpdatesError?n=t[5]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-red-500 dark:text-red-400`,children:[e,(0,$.jsx)(`span`,{children:c.checkUpdatesError})]}),t[4]=c.checkUpdatesError,t[5]=n),n}if(a){let e;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(je,{className:`size-3.5 animate-spin`}),t[6]=e):e=t[6];let n;return t[7]===l.updateRunning?n=t[8]:(n=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-fg-muted`,children:[e,(0,$.jsx)(`span`,{children:l.updateRunning})]}),t[7]=l.updateRunning,t[8]=n),n}if(o){let e;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(xs,{className:`mt-0.5 size-3.5 shrink-0`}),t[9]=e):e=t[9];let n;return t[10]===o?n=t[11]:(n=(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-[12px] text-red-500 dark:text-red-400`,role:`alert`,children:[e,(0,$.jsx)(`span`,{children:o})]}),t[10]=o,t[11]=n),n}if(i?.updateAvailable&&i.latestVersion){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Fv,{className:`mt-0.5 size-3.5 shrink-0`}),t[12]=e):e=t[12];let n;t[13]!==i.latestVersion||t[14]!==l.reminderNpm?(n=l.reminderNpm.replace(`{{version}}`,i.latestVersion),t[13]=i.latestVersion,t[14]=l.reminderNpm,t[15]=n):n=t[15];let r;t[16]===n?r=t[17]:(r=(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-[12px] text-accent-fg`,children:[e,(0,$.jsx)(`span`,{children:n})]}),t[16]=n,t[17]=r);let a;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(a=X(`w-full rounded-lg bg-accent px-3 py-1.5 text-center text-xs font-medium text-white`,`hover:bg-accent/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,`disabled:pointer-events-none disabled:opacity-50`),t[18]=a):a=t[18];let o;t[19]!==s||t[20]!==l.updateNow?(o=(0,$.jsx)(`button`,{type:`button`,onClick:s,className:a,children:l.updateNow}),t[19]=s,t[20]=l.updateNow,t[21]=o):o=t[21];let c;return t[22]!==r||t[23]!==o?(c=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[r,o]}),t[22]=r,t[23]=o,t[24]=c):c=t[24],c}let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(As,{className:`size-3.5`}),t[25]=u):u=t[25];let d;return t[26]===c.checkUpdatesUpToDate?d=t[27]:(d=(0,$.jsxs)(`p`,{className:`flex items-center gap-2 text-[12px] text-green-600 dark:text-green-400`,children:[u,(0,$.jsx)(`span`,{children:c.checkUpdatesUpToDate})]}),t[26]=c.checkUpdatesUpToDate,t[27]=d),d}var AN=X(`flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-sm font-medium leading-5 text-fg`,`transition-colors duration-150 ease-out`,`hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),jN=X(`rounded-xl border border-edge bg-surface-panel p-1 shadow-popover`,`dark:border-edge`);function MN(e){let t=(0,Q.c)(14),{selected:n,label:r,onSelect:i}=e,a=n&&`bg-accent-soft text-accent-fg hover:bg-accent-soft`,o;t[0]===a?o=t[1]:(o=X(`flex w-full items-center justify-between gap-1.5 rounded-lg px-2.5 py-1.5 text-left text-sm font-medium leading-5 text-fg`,`transition-colors duration-150 ease-out hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,a),t[0]=a,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:r}),t[2]=r,t[3]=s);let c=n?`opacity-100`:`opacity-0`,l;t[4]===c?l=t[5]:(l=X(`size-4 shrink-0`,c),t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,$.jsx)(W,{className:l,strokeWidth:2,"aria-hidden":!0}),t[6]=l,t[7]=u);let d;return t[8]!==i||t[9]!==n||t[10]!==o||t[11]!==s||t[12]!==u?(d=(0,$.jsxs)(`button`,{type:`button`,"aria-pressed":n,className:o,onClick:i,children:[s,u]}),t[8]=i,t[9]=n,t[10]=o,t[11]=s,t[12]=u,t[13]=d):d=t[13],d}function NN(e){let t=(0,Q.c)(209),{onNavigate:n,onAboutClick:r,onSupportClick:i}=e,[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(null),l=ct(zN),u=ct(RN),d=Et(LN),f=Et(IN),p=zj(FN),m=zj(PN),h;t[0]===l?h=t[1]:(h=rt(l),t[0]=l,t[1]=h);let g=h,_=g.appearanceSettings,v=l===`zh`?_.langOptionZh:_.langOptionEn,b=d===`light`?_.themeOptionLight:d===`dark`?_.themeOptionDark:_.themeOptionSystem,x=p===`compact`?_.fontScaleCompact:p===`large`?_.fontScaleLarge:_.fontScaleDefault,S=typeof window<`u`?window.electronAPI?.pet:void 0,C=!!S,w=s?.visible?_.hideDesktopPet:_.showDesktopPet,T,E;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{if(!S)return;let e=!1;S.getState().then(t=>{e||c(t)});let t=S.onStateChanged(t=>{e||c(t)});return()=>{e=!0,t()}},E=[S],t[2]=T,t[3]=E):(T=t[2],E=t[3]),(0,Z.useEffect)(T,E);let D;t[4]===s?.visible?D=t[5]:(D=async()=>{S&&(s?.visible?await S.hide():await S.show(),c(await S.getState()))},t[4]=s?.visible,t[5]=D);let O=D,k;t[6]===a?k=t[7]:(k=e=>X(`absolute left-full top-0 z-[60] min-w-[8.75rem] max-w-[min(calc(100vw-2rem),12rem)]`,`ml-2 sm:ml-2.5`,a===e?`block`:`hidden`),t[6]=a,t[7]=k);let A=k,j;t[8]===a?j=t[9]:(j=e=>X(`absolute left-full top-0 z-[55] h-full w-8 sm:w-9`,a===e?`pointer-events-auto`:`pointer-events-none`),t[8]=a,t[9]=j);let M=j,N;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>o(null),t[10]=N):N=t[10];let P;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>o(`lang`),t[11]=P):P=t[11];let F=a===`lang`&&`bg-surface-hover`,I;t[12]===F?I=t[13]:(I=X(AN,F),t[12]=F,t[13]=I);let L=a===`lang`,R;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(Ae,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[14]=R):R=t[14];let z;t[15]===_.languageTitle?z=t[16]:(z=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.languageTitle}),t[15]=_.languageTitle,t[16]=z);let B;t[17]===v?B=t[18]:(B=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:v}),t[17]=v,t[18]=B);let V;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[19]=V):V=t[19];let H;t[20]!==I||t[21]!==L||t[22]!==z||t[23]!==B?(H=(0,$.jsxs)(`button`,{type:`button`,className:I,"aria-haspopup":`menu`,"aria-expanded":L,children:[R,z,B,V]}),t[20]=I,t[21]=L,t[22]=z,t[23]=B,t[24]=H):H=t[24];let ee;t[25]===M?ee=t[26]:(ee=M(`lang`),t[25]=M,t[26]=ee);let te;t[27]===ee?te=t[28]:(te=(0,$.jsx)(`div`,{className:ee,"aria-hidden":!0}),t[27]=ee,t[28]=te);let ne;t[29]===A?ne=t[30]:(ne=A(`lang`),t[29]=A,t[30]=ne);let U=l===`en`,W;t[31]===u?W=t[32]:(W=()=>u(`en`),t[31]=u,t[32]=W);let re;t[33]!==_.langOptionEn||t[34]!==U||t[35]!==W?(re=(0,$.jsx)(MN,{selected:U,label:_.langOptionEn,onSelect:W}),t[33]=_.langOptionEn,t[34]=U,t[35]=W,t[36]=re):re=t[36];let ie=l===`zh`,ae;t[37]===u?ae=t[38]:(ae=()=>u(`zh`),t[37]=u,t[38]=ae);let oe;t[39]!==_.langOptionZh||t[40]!==ie||t[41]!==ae?(oe=(0,$.jsx)(MN,{selected:ie,label:_.langOptionZh,onSelect:ae}),t[39]=_.langOptionZh,t[40]=ie,t[41]=ae,t[42]=oe):oe=t[42];let se;t[43]!==re||t[44]!==oe?(se=(0,$.jsxs)(`div`,{className:jN,children:[re,oe]}),t[43]=re,t[44]=oe,t[45]=se):se=t[45];let ce;t[46]!==_.languageTitle||t[47]!==ne||t[48]!==se?(ce=(0,$.jsx)(`div`,{className:ne,role:`menu`,"aria-label":_.languageTitle,children:se}),t[46]=_.languageTitle,t[47]=ne,t[48]=se,t[49]=ce):ce=t[49];let le;t[50]!==H||t[51]!==te||t[52]!==ce?(le=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:P,children:[H,te,ce]}),t[50]=H,t[51]=te,t[52]=ce,t[53]=le):le=t[53];let ue;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>o(`theme`),t[54]=ue):ue=t[54];let de=a===`theme`&&`bg-surface-hover`,fe;t[55]===de?fe=t[56]:(fe=X(AN,de),t[55]=de,t[56]=fe);let pe=a===`theme`,me;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,$.jsx)(pv,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[57]=me):me=t[57];let G;t[58]===_.themeTitle?G=t[59]:(G=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.themeTitle}),t[58]=_.themeTitle,t[59]=G);let he;t[60]===b?he=t[61]:(he=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:b}),t[60]=b,t[61]=he);let _e;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[62]=_e):_e=t[62];let ve;t[63]!==fe||t[64]!==pe||t[65]!==G||t[66]!==he?(ve=(0,$.jsxs)(`button`,{type:`button`,className:fe,"aria-haspopup":`menu`,"aria-expanded":pe,children:[me,G,he,_e]}),t[63]=fe,t[64]=pe,t[65]=G,t[66]=he,t[67]=ve):ve=t[67];let ye;t[68]===M?ye=t[69]:(ye=M(`theme`),t[68]=M,t[69]=ye);let be;t[70]===ye?be=t[71]:(be=(0,$.jsx)(`div`,{className:ye,"aria-hidden":!0}),t[70]=ye,t[71]=be);let xe;t[72]===A?xe=t[73]:(xe=A(`theme`),t[72]=A,t[73]=xe);let Se=d===`light`,Ce;t[74]===f?Ce=t[75]:(Ce=()=>f(`light`),t[74]=f,t[75]=Ce);let we;t[76]!==_.themeOptionLight||t[77]!==Se||t[78]!==Ce?(we=(0,$.jsx)(MN,{selected:Se,label:_.themeOptionLight,onSelect:Ce}),t[76]=_.themeOptionLight,t[77]=Se,t[78]=Ce,t[79]=we):we=t[79];let Te=d===`dark`,Ee;t[80]===f?Ee=t[81]:(Ee=()=>f(`dark`),t[80]=f,t[81]=Ee);let De;t[82]!==_.themeOptionDark||t[83]!==Te||t[84]!==Ee?(De=(0,$.jsx)(MN,{selected:Te,label:_.themeOptionDark,onSelect:Ee}),t[82]=_.themeOptionDark,t[83]=Te,t[84]=Ee,t[85]=De):De=t[85];let Oe=d===`system`,ke;t[86]===f?ke=t[87]:(ke=()=>f(`system`),t[86]=f,t[87]=ke);let je;t[88]!==_.themeOptionSystem||t[89]!==Oe||t[90]!==ke?(je=(0,$.jsx)(MN,{selected:Oe,label:_.themeOptionSystem,onSelect:ke}),t[88]=_.themeOptionSystem,t[89]=Oe,t[90]=ke,t[91]=je):je=t[91];let Me;t[92]!==we||t[93]!==De||t[94]!==je?(Me=(0,$.jsxs)(`div`,{className:jN,children:[we,De,je]}),t[92]=we,t[93]=De,t[94]=je,t[95]=Me):Me=t[95];let Ne;t[96]!==_.themeTitle||t[97]!==xe||t[98]!==Me?(Ne=(0,$.jsx)(`div`,{className:xe,role:`menu`,"aria-label":_.themeTitle,children:Me}),t[96]=_.themeTitle,t[97]=xe,t[98]=Me,t[99]=Ne):Ne=t[99];let Pe;t[100]!==ve||t[101]!==be||t[102]!==Ne?(Pe=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:ue,children:[ve,be,Ne]}),t[100]=ve,t[101]=be,t[102]=Ne,t[103]=Pe):Pe=t[103];let Fe;t[104]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=()=>o(`font`),t[104]=Fe):Fe=t[104];let Ie=a===`font`&&`bg-surface-hover`,Le;t[105]===Ie?Le=t[106]:(Le=X(AN,Ie),t[105]=Ie,t[106]=Le);let Re=a===`font`,ze;t[107]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,$.jsx)(XC,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[107]=ze):ze=t[107];let Be;t[108]===_.fontScaleTitle?Be=t[109]:(Be=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.fontScaleTitle}),t[108]=_.fontScaleTitle,t[109]=Be);let Ve;t[110]===x?Ve=t[111]:(Ve=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:x}),t[110]=x,t[111]=Ve);let K;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[112]=K):K=t[112];let He;t[113]!==Le||t[114]!==Re||t[115]!==Be||t[116]!==Ve?(He=(0,$.jsxs)(`button`,{type:`button`,className:Le,"aria-haspopup":`menu`,"aria-expanded":Re,children:[ze,Be,Ve,K]}),t[113]=Le,t[114]=Re,t[115]=Be,t[116]=Ve,t[117]=He):He=t[117];let Ue;t[118]===M?Ue=t[119]:(Ue=M(`font`),t[118]=M,t[119]=Ue);let We;t[120]===Ue?We=t[121]:(We=(0,$.jsx)(`div`,{className:Ue,"aria-hidden":!0}),t[120]=Ue,t[121]=We);let Ge;t[122]===A?Ge=t[123]:(Ge=A(`font`),t[122]=A,t[123]=Ge);let q=p===`compact`,Ke;t[124]===m?Ke=t[125]:(Ke=()=>m(`compact`),t[124]=m,t[125]=Ke);let qe;t[126]!==_.fontScaleCompact||t[127]!==q||t[128]!==Ke?(qe=(0,$.jsx)(MN,{selected:q,label:_.fontScaleCompact,onSelect:Ke}),t[126]=_.fontScaleCompact,t[127]=q,t[128]=Ke,t[129]=qe):qe=t[129];let Je=p==="default",Ye;t[130]===m?Ye=t[131]:(Ye=()=>m(`default`),t[130]=m,t[131]=Ye);let Xe;t[132]!==_.fontScaleDefault||t[133]!==Je||t[134]!==Ye?(Xe=(0,$.jsx)(MN,{selected:Je,label:_.fontScaleDefault,onSelect:Ye}),t[132]=_.fontScaleDefault,t[133]=Je,t[134]=Ye,t[135]=Xe):Xe=t[135];let Ze=p===`large`,Qe;t[136]===m?Qe=t[137]:(Qe=()=>m(`large`),t[136]=m,t[137]=Qe);let $e;t[138]!==_.fontScaleLarge||t[139]!==Ze||t[140]!==Qe?($e=(0,$.jsx)(MN,{selected:Ze,label:_.fontScaleLarge,onSelect:Qe}),t[138]=_.fontScaleLarge,t[139]=Ze,t[140]=Qe,t[141]=$e):$e=t[141];let et;t[142]!==qe||t[143]!==Xe||t[144]!==$e?(et=(0,$.jsxs)(`div`,{className:jN,children:[qe,Xe,$e]}),t[142]=qe,t[143]=Xe,t[144]=$e,t[145]=et):et=t[145];let tt;t[146]!==_.fontScaleTitle||t[147]!==Ge||t[148]!==et?(tt=(0,$.jsx)(`div`,{className:Ge,role:`menu`,"aria-label":_.fontScaleTitle,children:et}),t[146]=_.fontScaleTitle,t[147]=Ge,t[148]=et,t[149]=tt):tt=t[149];let nt;t[150]!==He||t[151]!==We||t[152]!==tt?(nt=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:Fe,children:[He,We,tt]}),t[150]=He,t[151]=We,t[152]=tt,t[153]=nt):nt=t[153];let J;t[154]!==w||t[155]!==O?(J=C?(0,$.jsxs)(`button`,{type:`button`,className:AN,onClick:()=>void O(),onMouseEnter:()=>o(null),onFocus:()=>o(null),children:[(0,$.jsx)(vv,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:w})]}):null,t[154]=w,t[155]=O,t[156]=J):J=t[156];let it;t[157]===Symbol.for(`react.memo_cache_sentinel`)?(it=(0,$.jsx)(`div`,{className:`my-2 h-px bg-edge-subtle`,role:`separator`}),t[157]=it):it=t[157];let at;t[158]===r?at=t[159]:(at=()=>r?.(),t[158]=r,t[159]=at);let ot,st,lt;t[160]===Symbol.for(`react.memo_cache_sentinel`)?(ot=()=>o(null),st=()=>o(null),lt=(0,$.jsx)(fg,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[160]=ot,t[161]=st,t[162]=lt):(ot=t[160],st=t[161],lt=t[162]);let Y;t[163]===_.aboutApp?Y=t[164]:(Y=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.aboutApp}),t[163]=_.aboutApp,t[164]=Y);let ut;t[165]!==at||t[166]!==Y?(ut=(0,$.jsxs)(`button`,{type:`button`,className:AN,onClick:at,onMouseEnter:ot,onFocus:st,children:[lt,Y]}),t[165]=at,t[166]=Y,t[167]=ut):ut=t[167];let dt;t[168]===l?dt=t[169]:(dt=tM(l),t[168]=l,t[169]=dt);let ft,pt,mt;t[170]===Symbol.for(`react.memo_cache_sentinel`)?(ft=()=>o(null),pt=()=>o(null),mt=(0,$.jsx)(Hi,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[170]=ft,t[171]=pt,t[172]=mt):(ft=t[170],pt=t[171],mt=t[172]);let ht;t[173]===g.sidebar.helpDocs?ht=t[174]:(ht=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.sidebar.helpDocs}),t[173]=g.sidebar.helpDocs,t[174]=ht);let gt;t[175]===Symbol.for(`react.memo_cache_sentinel`)?(gt=(0,$.jsx)(ge,{className:`size-3.5 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[175]=gt):gt=t[175];let _t;t[176]!==dt||t[177]!==ht?(_t=(0,$.jsxs)(`a`,{href:dt,target:`_blank`,rel:`noopener noreferrer`,className:AN,onMouseEnter:ft,onFocus:pt,children:[mt,ht,gt]}),t[176]=dt,t[177]=ht,t[178]=_t):_t=t[178];let vt;t[179]===i?vt=t[180]:(vt=()=>i?.(),t[179]=i,t[180]=vt);let yt,bt,xt;t[181]===Symbol.for(`react.memo_cache_sentinel`)?(yt=()=>o(null),bt=()=>o(null),xt=(0,$.jsx)(Q_,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[181]=yt,t[182]=bt,t[183]=xt):(yt=t[181],bt=t[182],xt=t[183]);let St;t[184]===g.supportReport.menu?St=t[185]:(St=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:g.supportReport.menu}),t[184]=g.supportReport.menu,t[185]=St);let Ct;t[186]!==vt||t[187]!==St?(Ct=(0,$.jsxs)(`button`,{type:`button`,className:AN,onClick:vt,onMouseEnter:yt,onFocus:bt,children:[xt,St]}),t[186]=vt,t[187]=St,t[188]=Ct):Ct=t[188];let wt,Tt,Dt;t[189]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=X(AN,`text-accent-fg hover:bg-accent-soft hover:text-accent-fg`),Dt=()=>o(null),wt=()=>o(null),t[189]=wt,t[190]=Tt,t[191]=Dt):(wt=t[189],Tt=t[190],Dt=t[191]);let Ot;t[192]===n?Ot=t[193]:(Ot=()=>n?.(),t[192]=n,t[193]=Ot);let kt;t[194]===Symbol.for(`react.memo_cache_sentinel`)?(kt=(0,$.jsx)(Kv,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[194]=kt):kt=t[194];let At;t[195]===_.openFullPreferences?At=t[196]:(At=(0,$.jsx)(`span`,{className:`min-w-0 flex-1`,children:_.openFullPreferences}),t[195]=_.openFullPreferences,t[196]=At);let jt;t[197]!==Ot||t[198]!==At?(jt=(0,$.jsxs)(y,{to:`/settings/overview`,className:Tt,onMouseEnter:Dt,onFocus:wt,onClick:Ot,children:[kt,At]}),t[197]=Ot,t[198]=At,t[199]=jt):jt=t[199];let Mt;return t[200]!==jt||t[201]!==le||t[202]!==Pe||t[203]!==nt||t[204]!==J||t[205]!==ut||t[206]!==_t||t[207]!==Ct?(Mt=(0,$.jsxs)(`div`,{className:`w-[min(calc(100vw-2rem),13rem)] shrink-0 py-0.5`,onMouseLeave:N,children:[le,Pe,nt,J,it,ut,_t,Ct,jt]}),t[200]=jt,t[201]=le,t[202]=Pe,t[203]=nt,t[204]=J,t[205]=ut,t[206]=_t,t[207]=Ct,t[208]=Mt):Mt=t[208],Mt}function PN(e){return e.setPreference}function FN(e){return e.preference}function IN(e){return e.setPreference}function LN(e){return e.preference}function RN(e){return e.setLanguage}function zN(e){return e.language}var BN=`open-support-report`;function VN(e={}){window.dispatchEvent(new CustomEvent(BN,{detail:e}))}var HN=(0,Z.lazy)(()=>s(()=>import(`./mobile-pairing-wizard-DiVDuCxl.js`).then(e=>e.n).then(e=>({default:e.MobilePairingWizard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23])));function UN({collapsed:e=!1,onNavigate:t}){let n=rt(ct(e=>e.language)),[r,i]=(0,Z.useState)(!1),[a,o]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{s(()=>import(`./settings-page-S8ekeUZd.js`),__vite__mapDeps([24,1,4,25,26,10,11])),s(()=>import(`./sessions-page-UgJmG-V4.js`),__vite__mapDeps([27,1,2,3,4,5,25,26,6,28,29,30,8,31,12,15,23,32,33,34,9,10,11,35,19,14,36,37,38,20,21,39,22])),s(()=>import(`./logs-page-ClvcWlL6.js`),__vite__mapDeps([40,1,2,3,4,5,25,26,28,29,30,8,31,12,15,23,32,33,9,10,11,14,41])),s(()=>import(`./automations-page-Bo4RiTkh.js`),__vite__mapDeps([42,4,1,43,44,2,3,5,25,26,8,33,34,9,10,11,12,45,46,41,47,6,28,29,30,31,15,23,32,7,48,14,49,50])),s(()=>import(`./skills-page-AYiPlgZE.js`),__vite__mapDeps([51,1,26,44,2,3,4,5,25,8,33,34,9,10,11,12,45,46,41,47,28,29,30,31,15,23,32,7,17,19,14,36,21,52,53]))},[]),(0,$.jsxs)(`div`,{className:X(`flex shrink-0 flex-col`,e&&`mt-auto`,e?`items-center px-1 py-2`:`p-3`),children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>l(!0),className:X(`mb-2 flex min-h-10 items-center gap-2 rounded-lg px-3 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg`,e&&`justify-center px-2`),"aria-label":n.endpointToolsSettings.mobileAccess.flow.title,children:[(0,$.jsx)(jy,{className:`size-4 shrink-0`}),e?null:n.endpointToolsSettings.mobileAccess.flow.title]}),c?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(HN,{open:!0,onOpenChange:l})}):null,(0,$.jsxs)(se,{open:r,onOpenChange:i,children:[e?(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-1.5`,children:[(0,$.jsx)(y,{to:`/user-model`,onClick:()=>t?.(),className:`rounded-full outline-none ring-offset-surface-base transition-transform hover:opacity-95 active:scale-95 focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 motion-reduce:active:scale-100`,title:n.nav.profile,"aria-label":n.nav.profile,children:(0,$.jsx)(hj,{className:`size-10`,alt:n.appBrand})}),(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:X(`flex size-10 shrink-0 items-center justify-center rounded-xl text-fg-muted outline-none ring-offset-surface-base transition-colors`,`hover:bg-surface-hover hover:text-fg`,`focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2`,r&&`bg-accent-soft text-accent-fg`),"aria-expanded":r,"aria-haspopup":`dialog`,title:n.sidebar.appMenuAria,"aria-label":n.sidebar.appMenuAria,children:(0,$.jsx)(Kv,{className:`size-[17px]`,strokeWidth:1.5})})})]}):(0,$.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-1 rounded-xl p-1`,children:[(0,$.jsx)(y,{to:`/user-model`,onClick:()=>t?.(),className:X(`shrink-0 rounded-full p-1 text-left outline-none transition-transform duration-150 ease-out`,`hover:bg-surface-active/70`,`hover:opacity-95 active:scale-95`,`focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),title:n.nav.profile,"aria-label":n.nav.profile,children:(0,$.jsx)(hj,{className:`size-8`,alt:n.appBrand})}),(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:X(`flex min-h-10 min-w-0 flex-1 items-center gap-2 rounded-xl px-2 text-left text-fg-muted transition-colors`,`outline-none hover:bg-surface-hover hover:text-fg`,`focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,r&&`bg-accent-soft text-accent-fg`),"aria-expanded":r,"aria-haspopup":`dialog`,title:n.sidebar.appMenuAria,"aria-label":n.sidebar.appMenuAria,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate text-sm font-semibold leading-tight text-fg`,children:n.appBrand}),(0,$.jsx)(`div`,{className:`truncate text-xs text-fg-muted`,children:n.appearanceSettings.quickMenuHint})]}),(0,$.jsx)(Kv,{className:`size-[18px] shrink-0`,strokeWidth:1.5})]})})]}),(0,$.jsx)(re,{children:(0,$.jsx)(de,{className:X(`z-50 w-max max-w-[min(calc(100vw-1rem),28rem)] overflow-visible`,`rounded-xl border border-edge bg-surface-panel p-2 shadow-popover dark:border-edge`),side:`top`,align:e?`center`:`end`,sideOffset:8,collisionPadding:12,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),children:(0,$.jsx)(NN,{onNavigate:()=>{i(!1),t?.()},onAboutClick:()=>{o(!0),i(!1)},onSupportClick:()=>{i(!1),VN()}})})})]}),(0,$.jsx)(DN,{open:a,onOpenChange:o})]})}var WN=`xopc-web-sidebar-nav-order`;function GN(){try{let e=globalThis.localStorage?.getItem(WN);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function KN(e){try{globalThis.localStorage?.setItem(WN,JSON.stringify(e))}catch{}}function qN(e,t,n,r,i){if(t===n)return e;let a=e.filter(e=>e!==t),o=a.indexOf(n),s=o===-1?a.length:r===`before`?o:o+1;return YN([...a.slice(0,s),t,...a.slice(s)],i)}function JN(e,t,n){return YN([...e.filter(e=>e!==t),t],n)}function YN(e,t){let n=new Set(e),r=[];for(let e of t)n.has(e)||r.push(e);return r.length===0?e:[...e,...r]}var XN=at((e,t)=>({order:GN(),move:(n,r,i)=>{let a=qN(t().order,n,r,i,new Set(t().order));a!==t().order&&(e({order:a}),queueMicrotask(()=>KN(a)))},moveToFront:n=>{let r=[n,...t().order.filter(e=>e!==n)];e({order:r}),queueMicrotask(()=>KN(r))},moveToEnd:n=>{let r=JN(t().order,n,new Set(t().order));r!==t().order&&(e({order:r}),queueMicrotask(()=>KN(r)))},setOrder:t=>{e({order:t}),queueMicrotask(()=>KN(t))}})),ZN=()=>s(()=>import(`./sessions-page-UgJmG-V4.js`),__vite__mapDeps([27,1,2,3,4,5,25,26,6,28,29,30,8,31,12,15,23,32,33,34,9,10,11,35,19,14,36,37,38,20,21,39,22])),QN=()=>s(()=>import(`./automations-page-Bo4RiTkh.js`),__vite__mapDeps([42,4,1,43,44,2,3,5,25,26,8,33,34,9,10,11,12,45,46,41,47,6,28,29,30,31,15,23,32,7,48,14,49,50])),$N=()=>s(()=>import(`./browser-workflows-page-vvmSYKsO.js`),__vite__mapDeps([54,1,4,25,26,10,11,14,5,12,15,50,28,3,29,30,8,31,23,32])),eP=()=>s(()=>import(`./home-page-BiHwiBnQ.js`),__vite__mapDeps([55,1,2,3,4,5,25,26,34,8,9,10,11,12,14,15,56])),tP=()=>s(()=>import(`./task-detail-page-BQAUaCDD.js`),__vite__mapDeps([57,1,44,2,3,4,5,25,26,8,33,34,9,10,11,12,45,46,41,47,28,29,30,31,15,23,32,7,17,14,58,59,60])),nP=()=>s(()=>import(`./projects-page-B3UF-Pfm.js`),__vite__mapDeps([61,1,2,3,4,5,25,26,28,29,30,8,31,12,15,23,32,19,34,9,10,11,14])),rP=()=>s(()=>import(`./project-detail-page-CIiFJ5tk.js`),__vite__mapDeps([62,1,63,4,64,6,65,44,2,3,5,25,26,8,33,34,9,10,11,12,45,46,41,47,31,28,29,30,15,23,32,7,66,17,19,35,14,58,36,43,48,49,50,67,68,69,52,53,59,60])),iP=()=>s(()=>import(`./notes-page-BLqgXNCx.js`),__vite__mapDeps([70,1,44,2,3,4,5,25,26,8,33,34,9,10,11,12,45,46,41,47,6,28,29,30,31,15,23,32,19,67,7,66,17,14,68,69])),aP=()=>s(()=>import(`./workflows-page-BbAV3h7n.js`),__vite__mapDeps([71,1,63,4,64,6,65,44,2,3,5,25,26,8,33,34,9,10,11,12,45,46,41,47,31,28,29,30,15,23,32,66,14,36,56,72,49])),oP=()=>s(()=>import(`./skills-page-AYiPlgZE.js`),__vite__mapDeps([51,1,26,44,2,3,4,5,25,8,33,34,9,10,11,12,45,46,41,47,28,29,30,31,15,23,32,7,17,19,14,36,21,52,53])),sP=()=>s(()=>import(`./user-model-page-W3GTm6nA.js`),__vite__mapDeps([73,1,2,3,4,5,6,31,8,28,29,30,12,15,23,32,19,9,10,11,14,36])),cP=()=>s(()=>import(`./connectors-page-CT_I3kbR.js`),__vite__mapDeps([74,1,2,3,4,5,25,26,60,29,30,31,8,28,12,15,23,32,7,19,34,9,10,11,14,36,20,6,21,41,75])),lP=()=>s(()=>import(`./logs-page-ClvcWlL6.js`),__vite__mapDeps([40,1,2,3,4,5,25,26,28,29,30,8,31,12,15,23,32,33,9,10,11,14,41])),uP=()=>s(()=>import(`./settings-page-S8ekeUZd.js`),__vite__mapDeps([24,1,4,25,26,10,11])),dP=()=>s(()=>import(`./agents-DK9HjHO0.js`),__vite__mapDeps([76,1,2,3,4,5,25,26,6,34,8,9,10,11,12,14,15,77,17,23,32])),fP=()=>s(()=>import(`./browser-settings-page-Dzq18pO1.js`),__vite__mapDeps([78,1,4,25,26,28,3,5,29,30,8,31,12,15,23,32,7,33,17,18,19,10,11,35,14,36,56,20,6,21,79,39,22,80,77,41])),pP=()=>s(()=>import(`./channels-settings-57OGuewD.js`),__vite__mapDeps([81,1,2,3,4,5,25,26,6,28,29,30,8,31,12,15,23,32,7,17,19,9,10,11,13,14,82,83,80,77])),mP=()=>s(()=>import(`./apps-page-jOvT-fzU.js`),__vite__mapDeps([84,1,44,2,3,4,5,25,26,8,33,34,9,10,11,12,45,46,41,47,6,31,17,19,14,36,15])),hP=()=>s(()=>import(`./extension-page-oH43chS2.js`),__vite__mapDeps([85,1,4,25,26])),gP=()=>s(()=>import(`./extension-settings-page-BMO59994.js`),__vite__mapDeps([86,1,4,25,26,6,28,3,5,29,30,8,31,12,15,23,32,10,11,35,19,14,82,80,87,88,20,21])),_P=()=>s(()=>import(`./extension-debug-page-COyn05ub.js`),__vite__mapDeps([89,1,4,10,11])),vP=()=>s(()=>import(`./share-preview-page-D2fEidbn.js`),__vite__mapDeps([90,1,26,44,2,3,4,5,25,8,33,34,9,10,11,12,45,46,41,47,15])),yP=()=>s(()=>import(`./local-apps-page-CvPDPRwb.js`),__vite__mapDeps([91,1,4,25,26,6,34,8,10,11,14,5,12,15,92])),bP=()=>s(()=>import(`./local-app-workbench-page-eBFVWmtH.js`),__vite__mapDeps([93,1,2,3,4,5,25,26,6,31,8,7,17,19,9,10,11,14,12,15,56,72,92])),xP=()=>s(()=>import(`./product-open-page-Co5u7asH.js`),__vite__mapDeps([94,4,1,25,26,6,10,11,45,46,15,12,92])),SP=()=>s(()=>Promise.resolve().then(()=>Dpe),void 0),CP=()=>s(()=>import(`./work-discovery-overlay-keLtqYYJ.js`),__vite__mapDeps([95,1,2,3,4,5,9,8,10,11,14,12])),wP=()=>s(()=>import(`./setup-status-panel-BdVmwXMv.js`),__vite__mapDeps([96,1,4,25,26,6,7,8,19,10,11,12,37,38,20,21,22,80,15,77,17])),TP=()=>s(()=>import(`./appearance-settings-CFggS95Y.js`),__vite__mapDeps([97,1,4,28,3,5,29,30,8,31,12,15,23,32,10,11,20,6,21,39,77,17,68,69])),EP=()=>s(()=>import(`./keyboard-shortcuts-settings-D8Zw_lYd.js`),__vite__mapDeps([98,1,4,10,11,12,77,17,8,75])),DP=()=>s(()=>import(`./system-settings-panel-5Xd5mIiR.js`),__vite__mapDeps([99,1,4,17,8,10,11,12,22,77,75])),OP=()=>s(()=>import(`./desktop-pet-settings-DeYbIV7A.js`),__vite__mapDeps([100,1,4,25,26,28,3,5,29,30,8,31,12,15,23,32,17,10,11,101,77,75])),kP=()=>s(()=>import(`./app-management-settings-panel-C9DkCW_d.js`),__vite__mapDeps([102,1,2,3,4,5,6,66,8,10,11,12,14,15,22,80,77,17,41,75,23])),AP=()=>s(()=>import(`./capabilities-settings-panel-DW4SBQf4.js`),__vite__mapDeps([103,1,2,3,4,5,25,26,6,28,29,30,8,31,12,15,23,32,7,17,18,19,34,9,10,11,35,14,36,37,38,20,21,104,39,22,80,77,87,88])),jP=()=>s(()=>import(`./gateway-settings-BHJtnSic.js`),__vite__mapDeps([105,1,4,25,26,6,28,3,5,29,30,8,31,12,15,23,32,19,10,11,14,36,20,21,79,39,22,80,77,17])),MP=()=>s(()=>import(`./runtime-tools-settings-panel-C0ByNmlV.js`),__vite__mapDeps([106,1,4,6,28,3,5,29,30,8,31,12,15,23,32,7,33,10,11,14,80,77,17])),NP=()=>s(()=>import(`./heartbeat-settings-DNhrZHqx.js`),__vite__mapDeps([107,1,4,25,26,6,28,3,5,29,30,8,31,12,15,23,32,19,10,11,48,9,35,14,58,36,56,20,21,83,80,77,17])),PP=()=>s(()=>import(`./remote-access-hub-BUtpkJPG.js`),__vite__mapDeps([108,1,2,3,4,5,25,26,6,31,8,66,17,18,19,10,11,12,14,36,16,15,20,21,22,39,77,41,23])),FP=()=>s(()=>import(`./shares-settings-BdsqnCYj.js`),__vite__mapDeps([109,1,2,3,4,5,25,26,6,31,8,28,29,30,12,15,23,32,66,19,34,9,10,11,14,36,20,21,22,80,77,17,41])),IP=()=>s(()=>import(`./agent-defaults-settings-panel-C1rXNUAG.js`),__vite__mapDeps([110,1,4,25,26,6,28,3,5,29,30,8,31,12,15,23,32,7,9,10,11,14,37,38,20,21,104,77,17,88])),LP=()=>s(()=>import(`./management-settings-D8moh99U.js`),__vite__mapDeps([111,1,4,25,26,6,34,8,10,11,12,14,5,15,16,17,18,19,20,21,22,0,2,3,7,9,13,23,80,77])),RP=new Set;function zP(e){RP.has(e)||(RP.add(e),e().catch(()=>{RP.delete(e)}))}function BP(e){let[t]=e.split(/[?#]/,1);return t||`/`}function VP(e){zP(uP);let t=e.slice(10);if(t===`overview`)return zP(wP);if(t===`appearance`)return zP(TP);if(t===`keyboard-shortcuts`)return zP(EP);if(t===`system`)return zP(DP);if(t===`desktop-pet`)return zP(OP);if(t===`desktop-app`)return zP(kP);if(t.startsWith(`capabilities/`))return zP(AP);if(t===`gateway`)return zP(jP);if(t===`runtimes`)return zP(MP);if(t===`devices`)return zP(LP);if(t===`heartbeat`)return zP(NP);if(t===`tunnel`||t===`remote-access`)return zP(PP);if(t===`shares`)return zP(FP);if(t===`agent-defaults`)return zP(IP);if(t===`agent-browser`)return zP(fP)}function HP(e){if(!e.startsWith(`/`))return;let t=BP(e);if(t===`/skills`)return zP(oP);if(t===`/user-model`)return zP(sP);if(t===`/connectors`)return zP(cP);if(t===`/automations`)return zP(QN);if(t===`/browser-workflows`)return zP($N);if(t===`/`)return zP(eP);if(t.startsWith(`/tasks/`))return zP(tP);if(t===`/projects`)return zP(nP);if(t.startsWith(`/projects/`))return zP(rP);if(t===`/notes`||t.startsWith(`/notes/`))return zP(iP);if(t===`/workflows`||t.startsWith(`/workflows/`))return zP(aP);if(t===`/channels`||t.startsWith(`/channels/`))return zP(pP);if(t===`/agents`||t.startsWith(`/agents/`))return zP(dP);if(t===`/extensions`)return zP(mP);if(t.startsWith(`/extensions/`))return zP(hP);if(t===`/local-apps`)return zP(yP);if(t.startsWith(`/local-apps/`))return zP(bP);if(t===`/open`)return zP(xP);if(t===`/onboarding/workspace`)return zP(SP);if(t.startsWith(`/share/`))return zP(vP);if(t===`/settings/sessions`)return zP(ZN);if(t===`/settings/logs`)return zP(lP);if(t===`/settings/extensions/debug`)return zP(_P);if(t.startsWith(`/settings/ext/`))return zP(gP);if(t.startsWith(`/settings/`))return VP(t)}var UP=null,WP=at((e,t)=>({variables:{},loaded:!1,updateContext:t=>e(e=>({variables:{...e.variables,...t}})),setContext:t=>e({variables:t,loaded:!0}),fetchContext:async()=>UP||(UP=(async()=>{let e=await J(Y(`/api/context`));t().setContext(e)})().finally(()=>{UP=null}),UP)})),GP=25*1024*1024,KP=Ge([`web`,`desktop`,`mobile`]),qP=Ge([`foreground`,`background`]),JP=Ge([`read`,`write`,`destructive`]),YP=Ge([`never`,`always`]),XP=Ge([`text`,`json`,`file`]),ZP=Ge([`public`,`personal`]),QP=q().min(1).max(160),$P=q().min(32).max(160).regex(/^[A-Za-z0-9_-]+$/);Re(`type`,[ze({type:Pe(`endpoint`),endpointId:QP}),ze({type:Pe(`channel`),channel:q().min(1).max(64)}),ze({type:Pe(`system`),source:Ge([`cli`,`automation`,`heartbeat`,`workflow`,`internal`])})]).options[0].extend({token:$P});var eF=He(),tF=K().int().nonnegative(),nF=Fe(q(),Le()),rF=ze({name:q().regex(/^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+$/).max(120),title:q().min(1).max(120),description:q().min(1).max(2e3),inputSchema:nF,outputSchema:nF,policyId:q().regex(/^[a-z][a-z0-9_.-]+$/).max(120),sensitivity:ZP,effect:JP,confirmation:YP,requiresForeground:Ue(),requiredPermissions:Ve(q().min(1).max(120)).max(20),timeoutMs:K().int().min(1e3).max(3e5),maxConcurrency:K().int().min(1).max(4),supportsCancellation:Ue(),idempotent:Ue(),resultKinds:Ve(XP).min(1).max(3)});ze({principalId:QP,displayName:q().min(1).max(120),kind:KP,platform:q().min(1).max(80),publicKey:q().min(32).max(2048)}),ze({endpointId:QP});var iF=q().regex(/^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+$/).max(120);ze({jobId:He(),endpointId:QP,capability:iF,input:nF,idempotencyKey:QP,consentGrantId:QP,createdAt:tF,expiresAt:tF}),ze({jobId:He(),status:Ge([`queued`,`running`,`succeeded`,`failed`,`cancelled`]),updatedAt:tF,output:nF.optional(),error:ze({code:QP,message:q().min(1).max(2e3)}).optional()}),ze({eventId:He(),endpointId:QP,subscriptionId:QP,eventType:iF,data:nF,occurredAt:tF});var aF=ze({principalId:QP,endpointId:QP,connectionInstanceId:He(),displayName:q().min(1).max(120),kind:KP,platform:q().min(1).max(80),appVersion:q().min(1).max(80),availability:qP,nonce:QP,signedAt:tF,signature:q().min(16).max(1024),tools:Ve(rF).max(100)}),oF=ze({invocationId:He(),toolCallId:QP,toolName:rF.shape.name,arguments:nF,descriptorRevision:q().min(1).max(128),confirmationRequired:Ue(),deadlineAt:tF,uploadGrant:ze({path:q().startsWith(`/`).max(500),token:QP,maxBytes:K().int().positive(),maxFiles:K().int().min(1).max(20),expiresAt:tF}).optional()}),sF=ze({invocationId:He(),reason:q().min(1).max(500)}),cF=ze({invocationId:He()}),lF=Re(`type`,[ze({type:Pe(`text`),text:q().max(256*1024)}),ze({type:Pe(`json`),value:Le()}),ze({type:Pe(`file`),fileId:QP,name:q().min(1).max(255),mimeType:q().min(1).max(255),size:K().int().nonnegative(),sha256:q().regex(/^[a-f0-9]{64}$/)})]),uF=Ge([`ENDPOINT_OFFLINE`,`ENDPOINT_NOT_FOREGROUND`,`ENDPOINT_DISCONNECTED`,`TOOL_NOT_FOUND`,`TOOL_REVISION_MISMATCH`,`INVALID_ARGUMENTS`,`PERMISSION_DENIED`,`USER_DENIED`,`TOOL_BUSY`,`TOOL_TIMEOUT`,`TOOL_CANCELLED`,`RESULT_TOO_LARGE`,`PROTOCOL_ERROR`]),dF=(e,t)=>ze({protocolVersion:Pe(2),messageId:eF,type:Pe(e),sentAt:tF,payload:t}),fF=Re(`type`,[dF(`endpoint.availability_changed`,ze({availability:qP})),dF(`tool.received`,cF),dF(`tool.progress`,ze({invocationId:He(),message:q().max(500).optional(),percent:K().min(0).max(100).optional()})),dF(`tool.result`,ze({invocationId:He(),content:Ve(lF).min(1).max(20),details:nF.optional()})),dF(`tool.error`,ze({invocationId:He(),code:uF,message:q().min(1).max(2e3)})),dF(`tool.cancelled`,cF)]),pF=Re(`type`,[dF(`tool.invoke`,oF),dF(`tool.cancel`,sF)]),mF={type:`array`,minItems:1,maxItems:20,items:{type:`object`,additionalProperties:!1,required:[`type`,`text`],properties:{type:{const:`text`},text:{type:`string`,maxLength:256*1024}}}},hF={type:`array`,minItems:1,maxItems:20,items:{type:`object`,additionalProperties:!1,required:[`type`,`fileId`,`name`,`mimeType`,`size`,`sha256`],properties:{type:{const:`file`},fileId:{type:`string`,minLength:1,maxLength:160},name:{type:`string`,minLength:1,maxLength:255},mimeType:{type:`string`,minLength:1,maxLength:255},size:{type:`integer`,minimum:0},sha256:{type:`string`,pattern:`^[a-f0-9]{64}$`}}}};function gF(e){if(e===null)return`null`;if(typeof e==`string`||typeof e==`boolean`)return JSON.stringify(e);if(typeof e==`number`){if(!Number.isFinite(e))throw Error(`Canonical JSON only supports finite numbers`);return JSON.stringify(e)}if(typeof e!=`object`)throw Error(`Canonical JSON does not support ${typeof e}`);if(Array.isArray(e))return`[${e.map(gF).join(`,`)}]`;let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)throw Error(`Canonical JSON only supports plain objects`);let n=e;return`{${Object.keys(n).sort().map(e=>`${JSON.stringify(e)}:${gF(n[e])}`).join(`,`)}}`}function _F(e){let{signature:t,...n}=e;return gF(n)}var vF=15e3,yF=45e3,bF=Ge([`web`,`desktop`,`mobile`,`tui`,`mcp`]),xF=q().min(1).max(512),SF=q().regex(/^[a-z][a-z0-9_.-]*$/).max(160),CF=He(),wF=K().int().nonnegative(),TF=K().int().positive(),EF=(e,t)=>ze({protocolVersion:Pe(1),messageId:CF,kind:Pe(e),sentAt:wF,payload:t}),DF=ze({topic:xF,afterSeq:K().int().nonnegative().optional()});Re(`kind`,[EF(`realtime.hello`,ze({ticket:q().min(32).max(512),clientId:q().min(1).max(160),clientKind:bF,subscriptions:Ve(DF).max(100).default([]),endpoint:aF.optional()})),EF(`realtime.subscribe`,ze({subscriptions:Ve(DF).min(1).max(100)})),EF(`realtime.unsubscribe`,ze({topics:Ve(xF).min(1).max(100)})),EF(`realtime.ping`,ze({})),EF(`endpoint.message`,fF)]);var OF=ze({topic:xF,seq:TF,event:SF,data:Le()}),kF=Re(`kind`,[EF(`realtime.ready`,ze({connectionId:He(),heartbeatIntervalMs:Pe(vF),heartbeatTimeoutMs:Pe(yF),endpoint:ze({endpointId:q().min(1).max(160),turnToken:q().min(32).max(160)}).optional()})),EF(`realtime.event`,OF),EF(`realtime.subscribed`,ze({topic:xF,cursor:K().int().nonnegative()})),EF(`realtime.gap`,ze({topic:xF,requestedSeq:K().int().nonnegative(),earliestSeq:TF,recoverable:Ue()})),EF(`realtime.pong`,ze({})),EF(`realtime.error`,ze({code:q().min(1).max(80),message:q().min(1).max(500)})),EF(`endpoint.message`,pF)]);function AF(e){return kF.parse(e)}function jF(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return new TextDecoder().decode(e);if(ArrayBuffer.isView(e)){let t=Uint8Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return new TextDecoder().decode(t)}throw Error(`Realtime server sent a non-text frame`)}function MF(e){return e===1009||e===4400||e===4401||e===4413}var NF=class{options;desiredSubscriptions=new Map;cursors=new Map;socket;reconnectTimer;heartbeatTimer;connectionTimer;ticketAbort;generation=0;reconnectAttempts=0;shouldReconnect=!1;ready=!1;lastServerMessageAt=0;endpointBinding;reconnectWhenSocketOpens=!1;constructor(e){this.options=e}connect(){this.shouldReconnect||(this.shouldReconnect=!0,this.open(!1))}disconnect(){this.shouldReconnect=!1,this.reconnectWhenSocketOpens=!1,this.generation+=1,this.clearTimers(),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.socket?.close(1e3,`Client disconnected`),this.socket=void 0,this.options.onStateChange?.(`disconnected`)}reconnect(){this.reconnectWhenSocketOpens=!1,this.generation+=1,this.clearTimers(),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.socket?.close(1e3,`Client reconnecting`),this.socket=void 0,this.reconnectAttempts=0,this.shouldReconnect=!0,this.open(!0)}subscribe(e,t){this.desiredSubscriptions.set(e,t),t!==void 0&&this.cursors.set(e,t),this.ready&&this.sendSubscriptions([{topic:e,afterSeq:this.cursors.get(e)??t}])}unsubscribe(e){this.desiredSubscriptions.delete(e),this.ready&&this.send(this.clientMessage(`realtime.unsubscribe`,{topics:[e]}))}sendEndpointMessage(e){if(!this.ready)throw Error(`Realtime connection is not ready`);this.send(this.clientMessage(`endpoint.message`,e))}setEndpoint(e){this.endpointBinding=e,this.refreshEndpointConnection()}clearEndpoint(e){if(e&&this.endpointBinding!==e)return;let t=this.endpointBinding;this.endpointBinding=void 0,t?.onDisconnected?.(),this.refreshEndpointConnection()}refreshEndpointConnection(){if(this.shouldReconnect){if(this.socket?.readyState===0){this.reconnectWhenSocketOpens=!0;return}this.reconnect()}}async open(e){let t=++this.generation,n=this.options.connectionTimeoutMs??15e3,r=new AbortController;this.ticketAbort?.abort(),this.ticketAbort=r;let i,a=!1,o,s=(e,n=!0)=>{a||t!==this.generation||(a=!0,this.clearConnectionTimer(),r.abort(),this.ticketAbort===r&&(this.ticketAbort=void 0),this.ready=!1,this.endpointBinding?.onDisconnected?.(),this.clearHeartbeat(),this.socket===i&&(this.socket=void 0),i&&(i.onopen=null,i.onmessage=null,i.onerror=null,i.onclose=null,i.close(4e3,e.slice(0,120))),this.shouldReconnect&&n?this.scheduleReconnect(e):this.shouldReconnect?(this.shouldReconnect=!1,this.options.onStateChange?.(`error`,e)):this.options.onStateChange?.(`disconnected`))};this.connectionTimer=setTimeout(()=>s(`Realtime connection timed out`),n),this.options.onStateChange?.(e?`reconnecting`:`connecting`);try{let[e,n]=await Promise.all([this.options.issueTicket(r.signal),this.endpointBinding?.createHello()]);if(a||!this.shouldReconnect||t!==this.generation)return;i=this.options.createWebSocket(this.options.getWebSocketUrl()),this.socket=i,i.onopen=()=>{if(t!==this.generation)return;if(this.reconnectWhenSocketOpens){this.reconnect();return}let r=[...this.desiredSubscriptions].map(([e,t])=>({topic:e,afterSeq:this.cursors.get(e)??t}));this.send(this.clientMessage(`realtime.hello`,{ticket:e,clientId:this.options.clientId,clientKind:this.options.clientKind,subscriptions:r,...n?{endpoint:n}:{}}))},i.onmessage=e=>{if(t!==this.generation)return;let n=()=>{if(!(a||t!==this.generation))return this.handleServerMessage(jF(e.data))};if(!o){try{let e=n();if(!e)return;let t=e.catch(e=>s(e instanceof Error?e.message:`Invalid realtime server message`)).then(()=>void 0);o=t,t.finally(()=>{o===t&&(o=void 0)})}catch(e){s(e instanceof Error?e.message:`Invalid realtime server message`)}return}let r=o.then(n).catch(e=>s(e instanceof Error?e.message:`Invalid realtime server message`)).then(()=>void 0);o=r,r.finally(()=>{o===r&&(o=void 0)})},i.onerror=()=>{},i.onclose=e=>{s(e.reason||`WebSocket closed (${e.code??0})`,!MF(e.code))}}catch(e){s(e instanceof Error?e.message:`Realtime connection failed`)}}handleServerMessage(e){let t=AF(JSON.parse(e));if(this.lastServerMessageAt=Date.now(),t.kind===`realtime.ready`)this.ready=!0,this.reconnectAttempts=0,this.clearConnectionTimer(),this.ticketAbort=void 0,this.options.onStateChange?.(`connected`),t.payload.endpoint&&this.endpointBinding?.onReady(t.payload.endpoint),this.clearHeartbeat(),this.heartbeatTimer=setInterval(()=>{if(this.ready){if(Date.now()-this.lastServerMessageAt>=t.payload.heartbeatTimeoutMs){this.reconnect();return}this.send(this.clientMessage(`realtime.ping`,{}))}},t.payload.heartbeatIntervalMs);else if(t.kind===`realtime.event`){let e=this.cursors.get(t.payload.topic);if(e!==void 0&&t.payload.seq<=e)return;this.options.onEvent?.(t.payload),this.cursors.set(t.payload.topic,t.payload.seq)}else if(t.kind===`realtime.subscribed`)this.cursors.set(t.payload.topic,t.payload.cursor);else if(t.kind===`realtime.gap`)return this.cursors.set(t.payload.topic,t.payload.earliestSeq-1),this.options.onGap?.(t.payload);else t.kind===`realtime.error`?this.options.onStateChange?.(`error`,t.payload.message):t.kind===`endpoint.message`&&(this.endpointBinding?.onMessage(t.payload),this.options.onEndpointMessage?.(t.payload))}sendSubscriptions(e){this.send(this.clientMessage(`realtime.subscribe`,{subscriptions:e}))}clientMessage(e,t){let n=this.options.createMessageId?.()??globalThis.crypto?.randomUUID?.();if(!n)throw Error(`RealtimeClient requires createMessageId when crypto.randomUUID is unavailable`);return{protocolVersion:1,messageId:n,kind:e,sentAt:Date.now(),payload:t}}send(e){!this.socket||this.socket.readyState!==1||this.socket.send(JSON.stringify(e))}scheduleReconnect(e){if(!this.shouldReconnect)return;this.reconnectAttempts+=1;let t=this.options.maxReconnectAttempts;if(t!==void 0&&this.reconnectAttempts>t){this.shouldReconnect=!1,this.options.onStateChange?.(`error`,e);return}this.options.onStateChange?.(`reconnecting`,e);let n=Math.min(3e4,1e3*2**Math.min(this.reconnectAttempts-1,5)),r=Math.round(n*(.5+Math.random()*.5));this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.open(!0)},r)}clearHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0}clearTimers(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0,this.clearConnectionTimer(),this.ticketAbort?.abort(),this.ticketAbort=void 0,this.clearHeartbeat()}clearConnectionTimer(){this.connectionTimer&&clearTimeout(this.connectionTimer),this.connectionTimer=void 0}},PF=500,FF=null,IF;function LF(e){IF=e,FF!==null&&clearTimeout(FF),FF=setTimeout(()=>{FF=null;let e=IF;IF=void 0,window.dispatchEvent(new CustomEvent(`config-reload`,{detail:e}))},PF)}function RF(e,t){if(e===`config.reload`){LF(t);return}window.dispatchEvent(new CustomEvent(e.replace(/[._]/g,`-`),{detail:t}))}var zF=at(()=>({connectionState:`idle`,error:null}));function BF(e){zF.setState(e)}var VF=new Map,HF=new Map,UF,WF;function GF(){let e=`xopc:realtime-client-id`,t=sessionStorage.getItem(e);if(t)return t;let n=crypto.randomUUID();return sessionStorage.setItem(e,n),n}function KF(){let e=new URL(Y(`/api/realtime/v1/ws`));return e.protocol=e.protocol===`https:`?`wss:`:`ws:`,e.toString()}function qF(e){let t=GF(),n=window.electronAPI?`desktop`:`web`,r=new NF({clientId:t,clientKind:n,getWebSocketUrl:KF,issueTicket:async r=>{let i=await fetch(Y(`/api/realtime/tickets`),{method:`POST`,headers:{"Content-Type":`application/json`,...e?{Authorization:`Bearer ${e}`}:{}},body:JSON.stringify({clientId:t,clientKind:n}),signal:r}),a=await i.json().catch(()=>null);if(!i.ok||!a?.payload?.ticket)throw Error(a?.error?.message??`Realtime ticket failed (${i.status})`);return a.payload.ticket},createWebSocket:e=>new WebSocket(e),onStateChange:(e,t)=>{BF({connectionState:e,error:t??null}),e===`connected`&&window.dispatchEvent(new CustomEvent(`gateway-realtime-connected`))},onEvent:e=>{(e.topic===`gateway`||e.topic===`sessions`)&&RF(e.event,e.data);let t=HF.get(e.topic);(t===void 0||e.seq>t)&&HF.set(e.topic,e.seq);for(let t of VF.get(e.topic)??[])if(!(t.cursor!==void 0&&e.seq<=t.cursor))try{t.listener.onEvent(e)}catch(e){console.error(`[realtime] topic listener failed:`,e)}finally{t.cursor=Math.max(t.cursor??0,e.seq)}},onGap:async e=>{window.dispatchEvent(new CustomEvent(`realtime-gap`,{detail:e}));let t=[...VF.get(e.topic)??[]].filter(t=>!e.recoverable||t.cursor===void 0||t.cursor<e.earliestSeq-1),n=await Promise.allSettled(t.map(t=>t.listener.onGap?.(e)));for(let e of n)e.status===`rejected`&&console.error(`[realtime] topic gap handler failed:`,e.reason)}});UF?.disconnect(),UF=r,WF&&r.setEndpoint(WF),r.subscribe(`gateway`,HF.get(`gateway`)),r.subscribe(`sessions`,HF.get(`sessions`));for(let e of VF.keys())r.subscribe(e,HF.get(e));return BF({connectionState:`connecting`,error:null}),r.connect(),()=>{UF===r&&(r.disconnect(),UF=void 0)}}function JF(e){return WF=e,UF?.setEndpoint(e),()=>{WF===e&&(WF=void 0,UF?.clearEndpoint(e))}}function YF(e){UF?.sendEndpointMessage(e)}function XF(){UF?.reconnect()}function ZF(e,t,n){let r=VF.get(e)??new Set,i=r.size===0,a=HF.get(e),o={listener:t,cursor:n??a};if(r.add(o),VF.set(e,r),i){let t=n??a;HF.set(e,t),UF?.subscribe(e,t)}else n!==void 0&&(a===void 0||n<a)&&UF?.subscribe(e,n);return()=>{let t=VF.get(e);t?.delete(o),(!t||t.size===0)&&(VF.delete(e),HF.delete(e),UF?.unsubscribe(e))}}var QF=`agent-stream-event`;function $F(e){return e===`off`||e===`on`||e===`stream`}function eI(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=typeof t.sessionKey==`string`?t.sessionKey.trim():``,r=typeof t.runId==`string`?t.runId.trim():``;return n&&r?{sessionKey:n,runId:r}:null}function tI(e,t,n){return t&&typeof t==`object`&&!Array.isArray(t)?{...t,seq:n}:{type:e,seq:n,payload:t}}async function nI(e){try{let t=await ot(Y(`/api/sessions/${encodeURIComponent(e)}/agent-config`));if(!t.ok)return`on`;let n=await t.json(),r=n.payload?.activityDetail?.effective;if($F(r))return r;let i=n.payload?.activityDetail?.default??n.payload?.reasoningLevel;return $F(i)?i:`on`}catch{return`on`}}function rI(e){window.dispatchEvent(new CustomEvent(QF,{detail:e}))}function iI(e={}){let t=e.subscribe??ZF,n=e.loadActivityDetailLevel??nI,r=e.dispatch??rI,i=new Map,a=!1,o=e=>{let o=eI(e.detail);if(!o||i.has(o.runId))return;let s=`on`,c=!1,l,u=!1,d=!1,f=()=>{},p=()=>{u||(u=!0,f(),i.get(o.runId)===p&&i.delete(o.runId))},m=e=>{a||u||r({sessionKey:o.sessionKey,event:e,activityDetailLevel:s})};n(o.sessionKey).then(e=>{s=e,c=!0,e===`stream`&&l&&!d&&m(l),l=void 0}),f=t(`run:${o.runId}`,{onEvent:e=>{if(u||d)return;let t=tI(e.event,e.data,e.seq);e.event===`thinking_delta`&&!c?l=t:m(t),e.event===`run_end`&&(d=!0,l=void 0,queueMicrotask(p))},onGap:e=>{e.recoverable||p()}},0),i.set(o.runId,p)},s=e=>{let t=eI(e.detail);t&&i.get(t.runId)?.()};return window.addEventListener(`run-started`,o),window.addEventListener(`run-completed`,s),window.addEventListener(`agent-run-ended`,s),()=>{a=!0,window.removeEventListener(`run-started`,o),window.removeEventListener(`run-completed`,s),window.removeEventListener(`agent-run-ended`,s);for(let e of[...i.values()])e()}}var aI=function(e){return e[e.PermissionDenied=4001]=`PermissionDenied`,e[e.InvalidRequest=4002]=`InvalidRequest`,e[e.MethodNotFound=4003]=`MethodNotFound`,e[e.InternalError=4004]=`InternalError`,e[e.Timeout=4005]=`Timeout`,e[e.ExtensionNotFound=4006]=`ExtensionNotFound`,e[e.RateLimited=4007]=`RateLimited`,e}({}),oI=1e4,sI,cI=new Set;function lI(e,t){sI={type:`endpoint`,endpointId:e,token:t};for(let e of cI)e(sI);cI.clear()}function uI(e){!sI||e&&sI.token!==e||(sI=void 0)}function dI(e){return sI?Promise.resolve(sI):e?.aborted?Promise.reject(e.reason):new Promise((t,n)=>{let r=e=>{o(),t(e)},i=()=>{o(),n(e?.reason??new DOMException(`Aborted`,`AbortError`))},a=globalThis.setTimeout(()=>{o(),n(Error(`Endpoint connection is not ready`))},oI),o=()=>{globalThis.clearTimeout(a),cI.delete(r),e?.removeEventListener(`abort`,i)};cI.add(r),e?.addEventListener(`abort`,i,{once:!0})})}var fI=[`--color-surface-base`,`--color-surface-panel`,`--color-surface-hover`,`--color-fg`,`--color-fg-muted`,`--color-fg-subtle`,`--color-accent`,`--color-accent-hover`,`--color-accent-soft`,`--color-edge`,`--color-edge-subtle`,`--color-danger`,`--color-success`,`--color-warning`,`--radius-sm`,`--radius-lg`,`--radius-xl`];function pI(e){let t=getComputedStyle(document.documentElement),n={};for(let e of fI){let r=t.getPropertyValue(e).trim();r&&(n[e]=r)}return{mode:e,tokens:n,fontFamily:t.getPropertyValue(`font-family`).trim(),fontFamilyMono:t.getPropertyValue(`--font-mono`).trim()}}var mI={"agent.sendMessage":`agent.send`,"session.list":`session.read`,"session.navigate":`session.read`,"config.get":`config.read`,"config.set":`config.write`,"storage.get":`storage`,"storage.set":`storage`,"storage.remove":`storage`,"storage.keys":`storage`,"ui.notification":`notification`,"ui.navigate":`theme`,"theme.get":`theme`},hI=class{iframes=new Map;byContentWindow=new WeakMap;handlers=new Map;extensionPermissions=new Map;eventSubscribers=new Map;agentStreamSubscriptions=new Map;boundListener=e=>{this.onWindowMessage(e)};constructor(){window.addEventListener(`message`,this.boundListener)}dispose(){window.removeEventListener(`message`,this.boundListener),this.iframes.clear(),this.handlers.clear(),this.extensionPermissions.clear(),this.eventSubscribers.clear(),this.agentStreamSubscriptions.clear()}registerIframe(e,t,n){let r=this.iframes.get(e);r&&r!==t&&r.contentWindow&&this.byContentWindow.delete(r.contentWindow),this.iframes.set(e,t),this.extensionPermissions.set(e,new Set(n)),this.rememberIframeWindow(e,t)}unregisterIframe(e){let t=this.iframes.get(e);t?.contentWindow&&this.byContentWindow.delete(t.contentWindow),this.iframes.delete(e),this.extensionPermissions.delete(e),this.agentStreamSubscriptions.delete(e)}rememberIframeWindow(e,t){let n=t.contentWindow;n&&this.byContentWindow.set(n,{extensionId:e,iframe:t})}subscribeAgentStream(e,t){let n=this.agentStreamSubscriptions.get(e);n||(n=new Set,this.agentStreamSubscriptions.set(e,n)),n.add(t)}unsubscribeAgentStream(e,t){this.agentStreamSubscriptions.get(e)?.delete(t)}forwardAgentStreamEvent(e,t){for(let[n,r]of this.agentStreamSubscriptions)r.has(e)&&this.sendEvent(n,`agent.stream.${e}`,t)}broadcastExtensionEvent(e,t,n){let r=t.startsWith(`ext.`)?t:`ext.${t}`;for(let[t]of this.iframes)t!==e&&this.sendEvent(t,r,n)}handleExtensionEvent(e,t,n){if(t.startsWith(`ext.`)){let r=t.slice(4);this.broadcastExtensionEvent(e,r,n);return}if(t===`agent.subscribe`||t===`agent.unsubscribe`){if(!(this.extensionPermissions.get(e)??new Set).has(`agent.subscribe`))return;let{sessionKey:r}=n??{};if(typeof r!=`string`||!r.trim())return;let i=r.trim();t===`agent.subscribe`?this.subscribeAgentStream(e,i):this.unsubscribeAgentStream(e,i)}}registerMethod(e,t){this.handlers.set(e,t)}subscribeExtensionEvents(e,t){let n=this.eventSubscribers.get(e);return n||(n=new Set,this.eventSubscribers.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.eventSubscribers.delete(e)}}sendInit(e,t,n){let r=this.iframes.get(e);if(!r?.contentWindow)return;this.rememberIframeWindow(e,r);let i=[...this.extensionPermissions.get(e)??[]];r.contentWindow.postMessage({source:`xopc-host`,type:`init`,extensionId:e,permissions:i,theme:t,locale:n},`*`)}sendEvent(e,t,n){let r=this.iframes.get(e);r?.contentWindow&&r.contentWindow.postMessage({source:`xopc-host`,type:`event`,event:t,data:n},`*`)}broadcastEvent(e,t){for(let[,n]of this.iframes)n.contentWindow?.postMessage({source:`xopc-host`,type:`event`,event:e,data:t},`*`)}postResponse(e,t,n,r,i){let a=e.contentWindow??(t?.source instanceof Window?t.source:null),o={source:`xopc-host`,type:`response`,requestId:n,result:r,error:i};a&&a.postMessage(o,`*`)}isTrustedExtensionSource(e,t){if(t.source===null)return!0;let n=e.contentWindow;if(t.source===n)return!0;if(n&&typeof Window<`u`&&t.source instanceof Window)try{return t.source.frameElement===e}catch{}return!1}async onWindowMessage(e){let t=e.data;if(!t||t.source!==`xopc-extension`)return;let n,r=t.extensionId;if(e.source instanceof Window){let t=this.byContentWindow.get(e.source);t&&(n=t.iframe,r=t.extensionId)}if(n||(n=this.iframes.get(t.extensionId),r=t.extensionId),!n||!(e.source instanceof Window&&this.byContentWindow.has(e.source))&&!this.isTrustedExtensionSource(n,e))return;if(t.type===`event`){this.handleExtensionEvent(r,t.event,t.data);let e=this.eventSubscribers.get(r);if(e){let n={event:t.event,data:t.data};for(let t of e)try{t(n)}catch{}}return}if(t.type!==`request`)return;let{requestId:i,method:a,params:o}=t,s=this.handlers.get(a);if(!s){this.postResponse(n,e,i,void 0,{code:aI.MethodNotFound,message:`Unknown method: ${a}`});return}let c=mI[a],l=this.extensionPermissions.get(r)??new Set;if(c&&!l.has(c)){this.postResponse(n,e,i,void 0,{code:aI.PermissionDenied,message:`Missing permission: ${c}`});return}try{let t=await s(r,o);this.postResponse(n,e,i,t)}catch(t){let r=t instanceof Error?t.message:String(t);this.postResponse(n,e,i,void 0,{code:aI.InternalError,message:r})}}};function gI(e){e.registerMethod(`theme.get`,async()=>pI(Et.getState().resolved)),e.registerMethod(`ui.navigate`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`path`in t?String(t.path??``):``;n&&window.dispatchEvent(new CustomEvent(`extension-navigate`,{detail:{path:n}}))}),e.registerMethod(`ui.notification`,async(e,t)=>{if(!t||typeof t!=`object`)return;let n=t,r=typeof n.title==`string`?n.title.trim():``;r&&Tt({tone:n.type===`success`||n.type===`warning`||n.type===`error`||n.type===`info`?n.type:`info`,title:r,message:typeof n.message==`string`?n.message:void 0,source:e,dedupeKey:`extension:${e}:${r}`})}),e.registerMethod(`session.navigate`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`sessionKey`in t?String(t.sessionKey??``):``;n&&window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{sessionKey:n},bubbles:!0}))}),e.registerMethod(`session.list`,async()=>{let e=await ot(Y(`/api/sessions`));if(!e.ok)throw Error(`Failed to list sessions: ${e.status}`);return((await e.json()).items??[]).map(e=>({sessionKey:e.key,title:e.name,lastMessageAt:e.updatedAt??e.lastAccessedAt,messageCount:e.messageCount}))}),e.registerMethod(`agent.sendMessage`,async(e,t)=>{let{message:n,sessionKey:r,newSession:i}=t,a=r?.trim()||``;if(i||!a){let e=await ot(Y(`/api/sessions`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({channel:`webchat`})});if(!e.ok)throw Error(`Session create failed: ${e.status}`);if(a=(await e.json()).session?.key??``,!a)throw Error(`Session create did not return a session key`)}let o=await dI(),s=await ot(Y(`/api/sessions/${encodeURIComponent(a)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({clientMessageId:crypto.randomUUID(),delivery:`next`,content:n,origin:o})});if(!s.ok)throw Error(`Agent request failed: ${s.status}`);return{sessionKey:a}}),e.registerMethod(`config.get`,async e=>{let t=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/config`));if(!t.ok)throw Error(`Failed to get config: ${t.status}`);return t.json()}),e.registerMethod(`config.set`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&!Array.isArray(t)?t:{},r=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/config`),{method:`PATCH`,body:JSON.stringify(n)});if(!r.ok)throw Error(`Failed to set config: ${r.status}`)}),e.registerMethod(`storage.get`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`key`in t?String(t.key??``):``,r=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(n)}`));if(r.status!==404){if(!r.ok)throw Error(`Failed to get storage key: ${r.status}`);return(await r.json()).value}}),e.registerMethod(`storage.set`,async(e,t)=>{let n=t,r=n&&typeof n.key==`string`?n.key:``,i=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(r)}`),{method:`PUT`,body:JSON.stringify({value:n?.value})});if(!i.ok)throw Error(`Failed to set storage key: ${i.status}`)}),e.registerMethod(`storage.remove`,async(e,t)=>{let n=t&&typeof t==`object`&&t&&`key`in t?String(t.key??``):``,r=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/storage/${encodeURIComponent(n)}`),{method:`DELETE`});if(r.status!==404&&!r.ok)throw Error(`Failed to remove storage key: ${r.status}`)}),e.registerMethod(`storage.keys`,async e=>{let t=await ot(Y(`/api/extensions/${encodeURIComponent(e)}/storage`));if(!t.ok)throw Error(`Failed to list storage keys: ${t.status}`);return(await t.json()).keys??[]})}function _I(e){return e.active||e.activationEligible===!0}function vI(e){let t=e.ui?.contributions;return t?Array.isArray(t.pages)&&t.pages.length>0||Array.isArray(t.settingsPanels)&&t.settingsPanels.length>0||Array.isArray(t.chatWidgets)&&t.chatWidgets.length>0||Array.isArray(t.sidebarPanels)&&t.sidebarPanels.length>0:!1}function yI(e){return e.source===`bundled`&&e.hasUi===!0&&vI(e)}function bI(e){return e.kind===`image-generation`||e.kind===`media-provider`}function xI(e){return _I(e)?e.hasConfigSchema||bI(e)?!0:e.hasUi?vI(e):!1:!1}function SI(e){return xI(e)||yI(e)}var CI=(0,Z.createContext)(null);function wI({children:e}){let t=(0,Z.useRef)(null);if(!t.current){let e=new hI;gI(e),t.current=e}let n=t.current,r=ut(e=>!!e.token),{data:i,isLoading:a,mutate:o}=mt(r?`gateway-extensions-list`:null,()=>J(Y(`/api/extensions`)),{revalidateOnFocus:!1}),s=i?.extensions??[],c=Et(e=>e.resolved);(0,Z.useEffect)(()=>{r&&WP.getState().fetchContext()},[r]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&!Array.isArray(t)&&WP.getState().updateContext(t)},t=()=>{WP.getState().fetchContext(),o()};return window.addEventListener(`context-update`,e),window.addEventListener(`config-reload`,t),window.addEventListener(`registry-updated`,t),()=>{window.removeEventListener(`context-update`,e),window.removeEventListener(`config-reload`,t),window.removeEventListener(`registry-updated`,t)}},[o]);let l=(0,Z.useCallback)(e=>{let t=e.detail;t?.sessionKey&&n.forwardAgentStreamEvent(t.sessionKey,t.event??t)},[n]),u=(0,Z.useRef)(l);u.current=l,(0,Z.useEffect)(()=>{let e=e=>{u.current(e)};return window.addEventListener(QF,e),()=>{window.removeEventListener(QF,e)}},[]),(0,Z.useEffect)(()=>{let e=pI(c);n.broadcastEvent(`theme.changed`,e)},[c,n]);let d=(0,Z.useRef)(n);d.current=n,(0,Z.useEffect)(()=>()=>{d.current.dispose(),t.current=null},[]);let f=(0,Z.useMemo)(()=>({router:n,extensions:s,loading:a}),[n,s,a]);return(0,$.jsx)(CI.Provider,{value:f,children:e})}function TI(){let e=(0,Z.useContext)(CI);if(!e)throw Error(`useExtensionRouter must be used within ExtensionProvider`);return e.router}function EI(){let e=(0,Z.useContext)(CI);if(!e)throw Error(`useExtensions must be used within ExtensionProvider`);return e.extensions}function DI(){let e=(0,Q.c)(2),t=EI(),n;return e[0]===t?n=e[1]:(n=t.filter(xI),e[0]=t,e[1]=n),n}function OI(){let e=(0,Z.useContext)(CI);if(!e)throw Error(`useExtensionsLoading must be used within ExtensionProvider`);return e.loading}var kI=`open-discussion-capture`;function AI(e){window.dispatchEvent(new CustomEvent(kI,{detail:e?{projectId:e}:{}}))}function jI(e,t){return t.path.startsWith(`/extensions/`)?t.path:`/extensions/${e}/${t.id.startsWith(`${e}.`)?t.id.slice(e.length+1):t.id}`}function MI(e){return sE[e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)]}var NI=[{id:`builtin:home`,to:`/`,Icon:Yh},{id:`builtin:projects`,to:`/projects`,Icon:xp},{id:`builtin:notes`,to:`/notes`,Icon:Lx},{id:`builtin:automations`,to:`/automations`,Icon:GT},{id:`builtin:skills`,to:`/skills`,Icon:Gg},{id:`builtin:connectors`,to:`/connectors`,Icon:ka},{id:`builtin:agents`,to:`/agents`,Icon:Nw},{id:`builtin:channels`,to:`/channels`,Icon:Dv},{id:`builtin:workflows`,to:`/workflows`,Icon:fm},{id:`builtin:browserWorkflows`,to:`/browser-workflows`,Icon:iv},{id:`builtin:localApps`,to:`/local-apps`,Icon:ta},{id:`builtin:extensions`,to:`/extensions`,Icon:Av}],PI=3;function FI(e,t,n=PI){let r=new Map;for(let t of e)r.set(t.id,t);let i=[],a=new Set;for(let e of t){let t=r.get(e);!t||a.has(e)||(i.push(t),a.add(e))}for(let t of e)a.has(t.id)||(i.push(t),a.add(t.id));let o=Math.min(4,Math.max(2,Math.round(n)));return i.length<=o?{visible:i,overflow:[],hasOverflow:!1}:{visible:i.slice(0,o),overflow:i.slice(o),hasOverflow:!0}}var II=`text/plain`,LI=`xopc-nav:`,RI={"builtin:home":`work`,"builtin:projects":`work`,"builtin:notes":`work`,"builtin:automations":`work`,"builtin:workflows":`work`,"builtin:browserWorkflows":`work`,"builtin:skills":`capabilities`,"builtin:connectors":`capabilities`,"builtin:agents":`capabilities`,"builtin:channels":`capabilities`,"builtin:localApps":`build`,"builtin:extensions":`build`};function zI(e){return e.kind===`extension`?`build`:RI[e.id]??`build`}function BI(e){return`${LI}${e}`}function VI(e){return e.startsWith(LI)?e.slice(9):null}function HI(e){let t=e.currentTarget.getBoundingClientRect();return e.clientY<t.top+t.height/2?`before`:`after`}function UI({isActive:e},t,n,r){return X(`group relative flex w-full items-center text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,t?`justify-center rounded-xl p-2.5`:`gap-2 rounded-lg px-3 py-2 text-left`,e?`bg-surface-active text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,n&&`opacity-40`,r===`before`&&`shadow-[inset_0_2px_0_0_var(--color-accent)]`,r===`after`&&`shadow-[inset_0_-2px_0_0_var(--color-accent)]`)}function WI({isActive:e},t,n){return X(`group relative flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm font-medium leading-5 transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,e?`bg-surface-active text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,t&&`opacity-40`,n===`before`&&`shadow-[inset_0_2px_0_0_var(--color-accent)]`,n===`after`&&`shadow-[inset_0_-2px_0_0_var(--color-accent)]`)}function GI(e){let t=(0,Q.c)(11),{item:n,collapsed:r}=e,{Icon:i,letter:a}=n;if(i){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=X(`size-4`,`shrink-0 opacity-90`),t[0]=e):e=t[0];let n;return t[1]===i?n=t[2]:(n=(0,$.jsx)(i,{className:e,strokeWidth:1.75,"aria-hidden":!0}),t[1]=i,t[2]=n),n}let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=X(`size-4`,`flex shrink-0 items-center justify-center text-[10px] font-bold opacity-70`),t[3]=o):o=t[3];let s;t[4]!==n.label||t[5]!==a?(s=a??n.label.charAt(0),t[4]=n.label,t[5]=a,t[6]=s):s=t[6];let c;t[7]===s?c=t[8]:(c=s.toUpperCase(),t[7]=s,t[8]=c);let l;return t[9]===c?l=t[10]:(l=(0,$.jsx)(`span`,{className:o,"aria-hidden":!0,children:c}),t[9]=c,t[10]=l),l}function KI(e){let t=[];for(let n of e){if(n.activationEligible===!1)continue;let e=n.ui?.contributions?.pages;if(e)for(let r of e){if(!r.showInNav)continue;let e=r.navIcon?MI(r.navIcon):void 0;t.push({id:`ext:${n.id}:${r.id}`,kind:`extension`,label:r.title,to:jI(n.id,r),Icon:e,letter:r.title.charAt(0),title:r.title})}}return t}function qI(e){let t=(0,Q.c)(65),{collapsed:n,onNavigate:r,visibleLimit:i,afterVisible:a}=e,o=n===void 0?!1:n,s=ct($I),c;t[0]===s?c=t[1]:(c=rt(s),t[0]=s,t[1]=c);let l=c,u=DI(),d=XN(QI),f=XN(ZI),[p,h]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),S;if(t[2]!==l||t[3]!==u){let e;t[5]===l?e=t[6]:(e=e=>{let t=e.id.slice(8);return{id:e.id,kind:`builtin`,label:l.nav[t],to:e.to,Icon:e.Icon}},t[5]=l,t[6]=e);let n=NI.map(e),r=KI(u);S=[...n,...r],t[2]=l,t[3]=u,t[4]=S}else S=t[4];let C=S,w;t[7]!==C||t[8]!==d||t[9]!==i?(w=FI(C,d,i),t[7]=C,t[8]=d,t[9]=i,t[10]=w):w=t[10];let T=w,E;t[11]!==T.overflow||t[12]!==T.visible?(E=[...T.visible,...T.overflow].map(XI),t[11]=T.overflow,t[12]=T.visible,t[13]=E):E=t[13];let D=E,O;if(t[14]!==T.overflow){O={work:[],capabilities:[],build:[]};for(let e of T.overflow)O[zI(e)].push(e);t[14]=T.overflow,t[15]=O}else O=t[15];let k=O,A;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>t=>{t.dataTransfer.setData(II,BI(e)),t.dataTransfer.effectAllowed=`move`,h(e)},t[16]=A):A=t[16];let j=A,M;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{h(null),_(null),y(!1)},t[17]=M):M=t[17];let N=M,P;t[18]!==p||t[19]!==g?(P=e=>t=>{if(!p)return;t.preventDefault(),t.dataTransfer.dropEffect=`move`;let n=HI(t);g?.id===e&&g.position===n||_({id:e,position:n})},t[18]=p,t[19]=g,t[20]=P):P=t[20];let F=P,I;t[21]!==D||t[22]!==f?(I=e=>t=>{t.preventDefault();let n=VI(t.dataTransfer.getData(II));if(!n||n===e){N();return}let r=D.filter(e=>e!==n),i=r.indexOf(e);if(i===-1){N();return}let a=HI(t)===`before`?i:i+1;f([...r.slice(0,a),n,...r.slice(a)]),N()},t[21]=D,t[22]=f,t[23]=I):I=t[23];let L=I,R;t[24]===p?R=t[25]:(R=e=>{p&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`,y(!0))},t[24]=p,t[25]=R);let z=R,B;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(B=()=>y(!1),t[26]=B):B=t[26];let V=B,H;t[27]!==D||t[28]!==f?(H=e=>{e.preventDefault();let t=VI(e.dataTransfer.getData(II));t&&f([...D.filter(e=>e!==t),t]),N()},t[27]=D,t[28]=f,t[29]=H):H=t[29];let ee=H,te=YI,ne;t[30]!==o||t[31]!==p||t[32]!==g||t[33]!==r||t[34]!==F||t[35]!==L?(ne=function(e){let t=p===e.id,n=g?.id===e.id?g.position:null;return(0,$.jsxs)(m,{to:e.to,end:e.to===`/`,draggable:!0,onDragStart:j(e.id),onDragEnd:N,onDragOver:F(e.id),onDrop:L(e.id),className:e=>UI(e,o,t,n),title:e.title??e.label,onMouseEnter:()=>te(e.to),onFocus:()=>te(e.to),onClick:()=>r?.(),children:[(0,$.jsx)(GI,{item:e,collapsed:o}),o?null:(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.id)},t[30]=o,t[31]=p,t[32]=g,t[33]=r,t[34]=F,t[35]=L,t[36]=ne):ne=t[36];let U=ne,W;t[37]!==o||t[38]!==p||t[39]!==g||t[40]!==l.notes||t[41]!==l.sidebar.moreApps||t[42]!==l.sidebar.moreAppsAria||t[43]!==l.sidebar.moreGroupBuild||t[44]!==l.sidebar.moreGroupCapabilities||t[45]!==l.sidebar.moreGroupWork||t[46]!==v||t[47]!==z||t[48]!==ee||t[49]!==r||t[50]!==F||t[51]!==L||t[52]!==k||t[53]!==b?(W=function(){let e={work:l.sidebar.moreGroupWork,capabilities:l.sidebar.moreGroupCapabilities,build:l.sidebar.moreGroupBuild};return(0,$.jsxs)(se,{open:b,onOpenChange:x,children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,onDragOver:z,onDragLeave:V,onDrop:ee,className:X(`flex w-full items-center text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,o?`justify-center rounded-xl p-2.5`:`gap-2 rounded-lg px-3 py-2 text-left`,b?`bg-surface-hover text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,v&&`ring-2 ring-accent ring-offset-2 ring-offset-surface-base`),"aria-label":l.sidebar.moreAppsAria,title:l.sidebar.moreApps,children:[(0,$.jsx)(hd,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),o?null:(0,$.jsx)(`span`,{className:`truncate`,children:l.sidebar.moreApps})]})}),(0,$.jsx)(re,{children:(0,$.jsx)(de,{side:`right`,align:`start`,sideOffset:8,collisionPadding:8,className:X(`z-50 min-w-[14rem] max-w-[20rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-md`),onOpenAutoFocus:JI,children:(0,$.jsx)(`nav`,{className:`flex flex-col gap-1`,"aria-label":l.sidebar.moreAppsAria,children:[`capabilities`,`work`,`build`].map(t=>{let n=k[t];return n.length===0&&t!==`work`?null:(0,$.jsxs)(`section`,{"aria-labelledby":`sidebar-more-${t}`,children:[(0,$.jsx)(`h3`,{id:`sidebar-more-${t}`,className:`px-2 pb-1 pt-1.5 text-[11px] font-semibold uppercase tracking-wide text-fg-subtle`,children:e[t]}),(0,$.jsxs)(`ul`,{className:`flex flex-col gap-0.5`,role:`list`,children:[t===`work`?(0,$.jsx)(`li`,{className:`contents`,children:(0,$.jsxs)(`button`,{type:`button`,className:WI({isActive:!1},!1,null),onClick:()=>{x(!1),AI(),r?.()},children:[(0,$.jsx)(Wr,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:l.notes.discussionCapture.title})]})}):null,n.map(e=>{let t=p===e.id,n=g?.id===e.id?g.position:null;return(0,$.jsx)(`li`,{className:`contents`,children:(0,$.jsxs)(m,{to:e.to,end:e.to===`/`,draggable:!0,onDragStart:j(e.id),onDragEnd:N,onDragOver:F(e.id),onDrop:L(e.id),className:e=>WI(e,t,n),title:e.title??e.label,onMouseEnter:()=>te(e.to),onFocus:()=>te(e.to),onClick:()=>{x(!1),r?.()},children:[(0,$.jsx)(GI,{item:e}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]})},e.id)})]})]},t)})})})})]})},t[37]=o,t[38]=p,t[39]=g,t[40]=l.notes,t[41]=l.sidebar.moreApps,t[42]=l.sidebar.moreAppsAria,t[43]=l.sidebar.moreGroupBuild,t[44]=l.sidebar.moreGroupCapabilities,t[45]=l.sidebar.moreGroupWork,t[46]=v,t[47]=z,t[48]=ee,t[49]=r,t[50]=F,t[51]=L,t[52]=k,t[53]=b,t[54]=W):W=t[54];let ie=W,ae;t[55]!==T.visible||t[56]!==U?(ae=T.visible.map(U),t[55]=T.visible,t[56]=U,t[57]=ae):ae=t[57];let oe;t[58]!==T.hasOverflow||t[59]!==ie?(oe=T.hasOverflow?ie():null,t[58]=T.hasOverflow,t[59]=ie,t[60]=oe):oe=t[60];let ce;return t[61]!==a||t[62]!==ae||t[63]!==oe?(ce=(0,$.jsxs)($.Fragment,{children:[ae,a,oe]}),t[61]=a,t[62]=ae,t[63]=oe,t[64]=ce):ce=t[64],ce}function JI(e){return e.preventDefault()}function YI(e){HP(e)}function XI(e){return e.id}function ZI(e){return e.setOrder}function QI(e){return e.order}function $I(e){return e.language}var eL={feishu:`/channel-icons/feishu.svg`,lark:`/channel-icons/lark.svg`,telegram:`/channel-icons/telegram.svg`,wechat:`/channel-icons/wechat.svg`,weixin:`/channel-icons/weixin.svg`};function tL(e){let t=(0,Q.c)(9),{sourceChannel:n,className:r}=e,i=eL[n.toLowerCase()];if(i){let e;t[0]===r?e=t[1]:(e=X(`shrink-0`,r),t[0]=r,t[1]=e);let n;return t[2]!==i||t[3]!==e?(n=(0,$.jsx)(`img`,{src:i,alt:``,draggable:!1,className:e,"aria-hidden":!0}),t[2]=i,t[3]=e,t[4]=n):n=t[4],n}let a;t[5]===r?a=t[6]:(a=X(`shrink-0`,r),t[5]=r,t[6]=a);let o;return t[7]===a?o=t[8]:(o=(0,$.jsx)(dh,{className:a,strokeWidth:1.75,"aria-hidden":!0}),t[7]=a,t[8]=o),o}function nL(e,t){if(!e||typeof e!=`object`)return!0;let n=e.key??e.sessionKey;return typeof n!=`string`||!n.trim()||!t.has(n)}var rL=null;async function iL(){return rL||(rL=aL().finally(()=>{rL=null}),rL)}async function aL(){let e=await ot(Y(`/api/agents`));if(e.ok){let t=await e.json();if(t.ok&&t.payload?.defaultId&&Array.isArray(t.payload.agents)){let e=t.payload.defaultId.trim().toLowerCase(),n=t.payload.agents.filter(e=>!!(e&&typeof e.id==`string`&&e.id.trim())).map(e=>({id:e.id.trim().toLowerCase(),name:typeof e.name==`string`&&e.name.trim()?e.name.trim():void 0,description:typeof e.description==`string`&&e.description.trim()?e.description.trim():void 0,...typeof e.avatar==`string`&&e.avatar.trim()?{avatar:e.avatar.trim()}:{},skills:(e.effective?.skills?.mode===`selected`?e.effective.skills.include??[]:[]).filter(e=>typeof e==`string`&&!!e.trim())}));if(n.length>0)return{defaultId:e,items:n}}}let t=(await Ct()).payload?.config?.agents,n=(t?.defaultId??`main`).trim().toLowerCase(),r=(Array.isArray(t?.list)?t.list:[]).filter(e=>!!(e&&typeof e.id==`string`&&e.id.trim())).map(e=>({id:e.id.trim().toLowerCase()}));return r.length===0?{defaultId:n,items:[{id:n}]}:{defaultId:n,items:r}}var oL=`[a-zA-Z0-9](?:[a-zA-Z0-9._-]{0,62})`,sL=RegExp(`\\/skill:(${oL})`,`g`);function cL(){return new RegExp(sL.source,`g`)}var lL=RegExp(`(\\/skill:${oL})$`),uL=RegExp(`(\\/skill:${oL})([ \\t\\f\\v]*)$`),dL=RegExp(`^${oL}$`);function fL(e){return dL.test(e.trim())}function pL(e,t){let n=e.trim(),r=t.trim();return n&&fL(n)?`/skill:${n}${r?` ${r}`:` `}`:r||null}function mL(e,t,n){let r=e.trim(),i=t?.trim()??``;if(!r&&!i)return null;let a=new URLSearchParams;return r&&a.set(`draft`,r),a.set(`autoSend`,`1`),i&&a.set(`attachmentsHandoff`,i),n?.projectScope===`none`&&a.set(`projectScope`,`none`),`/chat/new?${a.toString()}`}function hL(e){let t=e.startsWith(`?`)?e.slice(1):e;if(!t)return``;let n=new URLSearchParams(t),r=new URLSearchParams,i=n.get(`skill`),a=n.get(`slash`),o=n.get(`draft`),s=n.get(`autoSend`),c=n.get(`attachmentHandoff`),l=n.get(`attachmentsHandoff`);i&&r.set(`skill`,i),a&&r.set(`slash`,a),o&&r.set(`draft`,o),s===`1`&&r.set(`autoSend`,`1`),c&&r.set(`attachmentHandoff`,c),l&&r.set(`attachmentsHandoff`,l);let u=r.toString();return u?`?${u}`:``}function gL(e){let t=e.startsWith(`?`)?e.slice(1):e,n=new URLSearchParams(t),r=n.get(`projectId`)?.trim();return r?{kind:`project`,projectId:r}:n.get(`projectScope`)===`none`?{kind:`none`}:{kind:`remember-last`}}function _L(e){let t=e?.trim();return t?`/chat/new?projectId=${encodeURIComponent(t)}`:`/chat/new?projectScope=none`}var vL=`xopc-pending-agent-run-changed`;function yL(e){typeof window>`u`||window.dispatchEvent(new CustomEvent(vL,{detail:{chatId:e}}))}var bL=/^No API key found for (\S+)/i;function xL(e){try{let t=JSON.parse(e);return typeof t.kind!=`string`||typeof t.message!=`string`?null:{kind:t.kind,code:typeof t.code==`string`?t.code:t.kind,provider:typeof t.provider==`string`?t.provider:void 0,modelRef:typeof t.modelRef==`string`?t.modelRef:void 0,deepLink:typeof t.deepLink==`string`?t.deepLink:void 0,message:t.message}}catch{return null}}function SL(){return{kind:`send_failed`,code:`send_failed`,message:`Send failed`}}function CL(e){return{kind:`session_not_found`,code:`session_not_found`,message:e}}function wL(e){let t=e.trim();if(!t)return null;if(t.startsWith(`{`)){let e=xL(t);if(e)return e}let n=bL.exec(t);return n?{kind:`provider_setup_required`,code:`provider_setup_required`,provider:n[1].replace(/[.,]$/,``),deepLink:`/settings/capabilities/models`,message:t}:t===`Assistant turn failed`||t.startsWith(`Error: `)?{kind:`unknown`,code:`unknown`,message:t.startsWith(`Error: `)?t.slice(7):t}:{kind:`unknown`,code:`unknown`,message:t}}function TL(e){return e.kind!==`provider_setup_required`&&e.kind!==`provider_auth_invalid`||!e.provider?null:{kind:e.kind,provider:e.provider,deepLink:e.deepLink??`/settings/capabilities/models`,message:e.message}}function EL(e){return typeof e==`object`&&!!e&&`role`in e}function DL(e){if(!e||typeof e!=`object`)return!1;let t=e.type;return t===`tool_use`||t===`tool_call`||t===`toolCall`}function OL(e){return typeof e==`object`&&!!e}function kL(e){return typeof e.id==`string`&&e.id.length>0?e.id:crypto.randomUUID()}function AL(e){if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}}function jL(e){return AL(e.args??e.arguments??e.input??e.function?.arguments)??{}}function ML(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isNaN(t)?Date.now():t}return Date.now()}function NL(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e!=`string`)return;let t=Date.parse(e);return Number.isNaN(t)?void 0:t}var PL=3e5;function FL(e,t,n){let r=new URLSearchParams({uri:e.trim()});return t?.trim()&&r.set(`sessionKey`,t.trim()),n?.trim()&&r.set(`taskId`,n.trim()),`/api/media/read?${r.toString()}`}function IL(e){if(typeof e.content==`string`&&e.content.length>0)return e.content;if(typeof e.data==`string`&&e.data.length>0)return e.data}var LL=[`.txt`,`.md`,`.json`,`.xml`,`.html`,`.css`,`.js`,`.ts`,`.jsx`,`.tsx`,`.yml`,`.yaml`];function RL(e,t){let n=t.trim();if(n.startsWith(`data:`))return n;let r=n.replace(/\s/g,``);return`data:${e&&typeof e==`string`&&e.includes(`/`)?e:`application/octet-stream`};base64,${r}`}function zL(e){if(e==null||e===``)throw Error(`Missing file data`);let t=e;if(e.startsWith(`data:`)){let n=e.match(/base64,(.+)/);n&&(t=n[1])}let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function BL(e){let t=[`B`,`KB`,`MB`,`GB`],n=0,r=e;for(;r>=1024&&n<t.length-1;)r/=1024,n++;return`${r.toFixed(1)} ${t[n]}`}function VL(e){let t=e.toLowerCase();for(let[e,n]of[[`.pdf`,`application/pdf`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xls`,`application/vnd.ms-excel`],[`.png`,`image/png`],[`.jpg`,`image/jpeg`],[`.jpeg`,`image/jpeg`],[`.gif`,`image/gif`],[`.webp`,`image/webp`],[`.bmp`,`image/bmp`],[`.svg`,`image/svg+xml`],[`.svgz`,`image/svg+xml`],[`.ico`,`image/x-icon`],[`.tif`,`image/tiff`],[`.tiff`,`image/tiff`],[`.avif`,`image/avif`],[`.jxl`,`image/jxl`]])if(t.endsWith(e))return n}function HL(e,t){return(t?.startsWith(`text/`)??!1)||LL.some(t=>e.toLowerCase().endsWith(t))}function UL(e){if(Array.isArray(e))return e.map(e=>WL(e))}function WL(e){if(!e||typeof e!=`object`)return{name:`file`,mimeType:`application/octet-stream`};let t=e,n=GL(t.uri),r=KL(t.name),i=qL(t.mimeType,r),a=typeof t.type==`string`?t.type:void 0,o=a===`photo`||a===`image`||i.startsWith(`image/`)?`image`:a===`voice`||a===`audio`||i.startsWith(`audio/`)?`voice`:a;return{id:typeof t.id==`string`?t.id:void 0,name:r,mimeType:i,type:o,size:typeof t.size==`number`?t.size:void 0,uri:n,bucket:typeof t.bucket==`string`?t.bucket:void 0,path:typeof t.path==`string`?t.path:void 0}}function GL(e){return typeof e==`string`&&e.trim().startsWith(`media://`)?e.trim():void 0}function KL(e){return typeof e==`string`&&e.trim().length>0?e.trim():`file`}function qL(e,t){if(typeof e==`string`&&e.trim().length>0){let t=e.trim();if(t.toLowerCase().split(`;`)[0]?.trim()!==`application/octet-stream`)return t}return VL(t)??`application/octet-stream`}function JL(e){let t=e.uri?.trim();return t?`uri:${t}`:e.id?`id:${e.id}`:`name:${e.name??`file`}|${e.mimeType??``}`}function YL(e){if(!e?.length)return;let t=[],n=new Set;for(let r of e){let e=JL(r);n.has(e)||(n.add(e),t.push(r))}return t.length?t:void 0}var XL=`[Startup context loaded by runtime]`,ZL=`...[additional startup memory truncated]...`,QL=`END_QUOTED_NOTES`;function $L(...e){return e.filter(e=>e.length>0).join(`
|
|
9
|
+
|
|
10
|
+
`)}function eR(e){if(!e.includes(XL))return e;let t=e.replace(/^\uFEFF/,``);if(!t.startsWith(XL))return e;let n=-1,r=t.lastIndexOf(QL);if(r>=0)n=r+16;else{let e=t.indexOf(ZL);e>=0&&(n=e+43)}if(n<0){let n=t.slice(35),r=n.indexOf(`
|
|
11
|
+
|
|
12
|
+
`);return r>=0?n.slice(r+2).replace(/^\s+/,``):e}return t.slice(n).replace(/^\s+/,``)}function tR(e){if(typeof e!=`string`||!e.includes(`## Skill:`))return e;let t=e.indexOf(`## Skill:`),n=e.slice(0,t).replace(/\s+$/,``),r=e.slice(t),i=r.match(/## Skill:\s*([^\s\r\n]+)/);if(!i)return e;let a=i[1]??``;if(!a)return e;let o=[...r.matchAll(/\*\*Arguments\*\*:\s*([^\r\n]+)/g)],s=o.length>0?(o[o.length-1]?.[1]??``).trim():``,c=s?`/skill:${a} ${s}`:`/skill:${a}`,l=r.length;if(o.length>0){let e=o[o.length-1];l=(e.index??0)+e[0].length}return $L(n,c,r.slice(l).replace(/^\s+/,``))}function nR(e){return e.includes(`<file path=`)?e.replace(/<file\s+path="[^"]*">\r?\n[\s\S]*?<\/file>(?:\r?\n)*/g,``).replace(/\n{3,}/g,`
|
|
13
|
+
|
|
14
|
+
`).trim():e}function rR(e){let t=eR(e);return t=hO(t),t=nR(t),t=gO(t),t=aR(t),tR(t)}var iR=/(?:\n{2,})?\[(?:Image description:|\d+ image\(s\) attached(?:; no image-capable model is available to describe them\.| but could not be described:))[\s\S]*\]\s*$/;function aR(e){return e.replace(iR,``).trimEnd()}function oR(e){return hR(e)}function sR(e){if(e.type!==`thinking`)return``;let t=e;return typeof t.text==`string`?t.text:typeof t.thinking==`string`?t.thinking:``}function cR(e,t){let n=e.map(e=>({...e})),r=new Map;for(let e=0;e<n.length;e++){let t=n[e];t.type===`tool_use`&&r.set(t.id,e)}for(let e of t){if(e.type===`tool_use`&&r.has(e.id)){let t=r.get(e.id);n[t]={...e};continue}if(e.type===`thinking`&&n.length>0){let t=n[n.length-1];if(t.type===`thinking`&&sR(t)===sR(e))continue}e.type===`tool_use`&&r.set(e.id,n.length),n.push({...e})}return n}function lR(e){if(e.length<2)return e;let t=[];for(let n of e){if(n.role!==`assistant`){t.push(n);continue}let e=t[t.length-1];e?.role===`assistant`?(e.content=cR(e.content,n.content),n.timestamp!=null&&(e.timestamp=n.timestamp),n.completedAt!=null&&(e.completedAt=n.completedAt),n.renderKey&&(e.renderKey=n.renderKey),n.turnId&&(e.turnId=n.turnId),n.progressiveRender&&(e.progressiveRender=!0),n.usage&&(e.usage=n.usage),n.outcome&&(e.outcome=n.outcome),n.attachments?.length&&(e.attachments=YL([...e.attachments??[],...n.attachments]))):t.push({...n,content:[...n.content]})}return t}function uR(e){return e.filter(e=>e.type===`text`).map(e=>e.text.trim()).filter(Boolean).join(`
|
|
15
|
+
`)}function dR(e){return e.filter(e=>e.type===`thinking`).map(e=>(e.text??``).trim()).filter(Boolean).join(`
|
|
16
|
+
`)}function fR(e){return e.filter(e=>e.type===`tool_use`).map(e=>{let t=typeof e.result==`string`?e.result.trim():JSON.stringify(e.result??``);return`${e.name}|${e.status}|${t}`}).join(`
|
|
17
|
+
`)}function pR(e){return e.filter(e=>e.type===`review`).map(e=>JSON.stringify(e)).join(`
|
|
18
|
+
`)}function mR(e,t){return e.role!==`assistant`||t.role!==`assistant`?!1:uR(e.content)===uR(t.content)&&dR(e.content)===dR(t.content)&&fR(e.content)===fR(t.content)&&pR(e.content)===pR(t.content)&&JSON.stringify(e.outcome??null)===JSON.stringify(t.outcome??null)}function hR(e){let t=[];for(let n of e){if(!EL(n))continue;let e=n,r=String(e.role??``);if(r!==`system`){if(r===`toolResult`||r===`tool`){TR(t,e);continue}if(r===`user`){t.push(vR(e));continue}if(r===`assistant`){t.push(bR(e));continue}}}return lR(t)}function gR(e){return e.filter(e=>e.type===`text`).map(e=>({...e,text:rR(e.text)})).filter(e=>!!e.text?.trim())}function _R(e){return YL([...UL(e.media)??[],...UL(e.attachments)??[]])}function vR(e){let t=e.content,n=typeof t==`string`?(()=>{let e=rR(t);return e.trim()?[{type:`text`,text:e}]:[]})():gR(kR(t));return{role:`user`,...e.turnId?{turnId:e.turnId}:{},content:n,attachments:_R(e),contextRefs:yR(e.metadata),timestamp:typeof e.timestamp==`number`?e.timestamp:ML(e.timestamp),usage:e.usage}}function yR(e){let t=xR(e)?.sourceContexts;if(!Array.isArray(t))return;let n=t.flatMap(e=>{let t=xR(e);return!t||t.kind!==`note`||typeof t.sourceId!=`string`||typeof t.version!=`string`||typeof t.title!=`string`?[]:[{kind:`note`,sourceId:t.sourceId,version:t.version,title:t.title,...typeof t.tokenEstimate==`number`?{tokenEstimate:t.tokenEstimate}:{},...t.truncated===!0?{truncated:!0}:{}}]});return n.length>0?n:void 0}function bR(e){let t=wR(e);CR(t,e.metadata);let n=bE(xR(e.metadata)?.turnOutcome);return{role:`assistant`,...e.turnId?{turnId:e.turnId}:{},content:t,attachments:_R(e),...n?{outcome:n}:{},timestamp:typeof e.timestamp==`number`?e.timestamp:ML(e.timestamp),usage:e.usage}}function xR(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function SR(e){let t=xR(e);if(!t||t.type!==`review`)return null;let n=Array.isArray(t.findings)?t.findings:[],r={type:`review`,target:typeof t.target==`string`?t.target:`working tree changes`,summary:typeof t.summary==`string`?t.summary:``,findings:n.map(e=>{let t=xR(e);if(!t)return null;let n=t.priority===0||t.priority===1||t.priority===2||t.priority===3?t.priority:2,r=typeof t.title==`string`?t.title:``,i=typeof t.body==`string`?t.body:``;if(!r&&!i)return null;let a={title:r,body:i,priority:n};return typeof t.confidenceScore==`number`&&(a.confidenceScore=t.confidenceScore),typeof t.filePath==`string`&&(a.filePath=t.filePath),typeof t.lineStart==`number`&&(a.lineStart=t.lineStart),typeof t.lineEnd==`number`&&(a.lineEnd=t.lineEnd),a}).filter(e=>e!=null),overallCorrectness:t.overallCorrectness===`patch is correct`||t.overallCorrectness===`patch is incorrect`?t.overallCorrectness:`unknown`,overallExplanation:typeof t.overallExplanation==`string`?t.overallExplanation:``};return typeof t.overallConfidenceScore==`number`&&(r.overallConfidenceScore=t.overallConfidenceScore),typeof t.generatedAt==`number`&&(r.generatedAt=t.generatedAt),(t.source===`model`||t.source===`local`)&&(r.source=t.source),r}function CR(e,t){let n=SR(xR(t)?.review);n&&(e.some(e=>e.type===`review`&&e.target===n.target)||e.push(n))}function wR(e){let t=NL(e.timestamp),n=kR(e.rawContent,t),r=n.length>0?n:kR(e.content,t),i=e.tool_calls;if(Array.isArray(i))for(let e of i){if(!e?.id||r.some(t=>t.type===`tool_use`&&t.id===e.id))continue;let n=e.function?.arguments;if(typeof n==`string`)try{n=JSON.parse(n)}catch{}r.push({type:`tool_use`,id:e.id,name:e.function?.name||`tool`,input:n,status:`running`,startedAt:t})}let a=e.toolCalls;if(Array.isArray(a))for(let e=0;e<a.length;e+=1){let n=a[e],i=typeof n.id==`string`&&n.id?n.id:`tool-call-${e}-${n.name||`tool`}`,o=typeof n.result==`string`,s=r.find(e=>e.type===`tool_use`&&e.id===i);if(s){s.status=o?n.isError?`error`:`done`:s.status,s.result=o?n.result:s.result,s.details=n.details??s.details,o&&(s.completedAt=t,s.durationMs=s.startedAt!=null&&t!=null?Math.max(0,t-s.startedAt):s.durationMs);continue}r.push({type:`tool_use`,id:i,name:n.name||`tool`,input:n.args,status:o?n.isError?`error`:`done`:`running`,result:o?n.result:void 0,details:n.details,startedAt:t,completedAt:o?t:void 0,durationMs:o&&t!=null?0:void 0})}for(let e of r){if(e.type!==`tool_use`)continue;let t=e.details===void 0?e.result:{details:e.details,result:e.result};e.activity=Ye(e.name,e.status===`running`?`running`:e.status===`error`?`failed`:`completed`,t)}let o=r.some(e=>e.type===`tool_use`)?`narration`:`answer`;for(let e of r)e.type===`text`&&(e.presentation=o);return r}function TR(e,t){let n=ER(e);if(!n)return;let r=String(t.tool_call_id??t.toolCallId??``),i=DR(t.content),a=!!t.isError,o=NL(t.timestamp),s=r?n.content.find(e=>e.type===`tool_use`&&e.id===r):void 0;if(s){s.status=a?`error`:`done`,s.result=i,s.details=t.details,s.activity=Ye(s.name,a?`failed`:`completed`,{details:t.details,result:i}),s.completedAt=o,s.startedAt!=null&&o!=null&&(s.durationMs=Math.max(0,o-s.startedAt));return}let c=n.content.filter(e=>e.type===`tool_use`&&e.status===`running`);c.length===1&&(c[0].status=a?`error`:`done`,c[0].result=i,c[0].details=t.details,c[0].activity=Ye(c[0].name,a?`failed`:`completed`,{details:t.details,result:i}),c[0].completedAt=o,c[0].startedAt!=null&&o!=null&&(c[0].durationMs=Math.max(0,o-c[0].startedAt)))}function ER(e){for(let t=e.length-1;t>=0;t--)if(e[t].role===`assistant`)return e[t];return null}function DR(e){return typeof e==`string`?e:Array.isArray(e)?e.filter(e=>OL(e)&&e.type===`text`).map(e=>String(e.text??``)).join(`
|
|
19
|
+
`):String(e??``)}function OR(e){let t=e.source?.data;if(typeof t==`string`&&t.length>0)return{type:`image`,source:{data:t}};let n=e.data;if(typeof n!=`string`||n.length===0)return null;let r=n.trim();return r.startsWith(`data:`)?{type:`image`,source:{data:r}}:{type:`image`,source:{data:`data:${typeof e.mimeType==`string`&&e.mimeType.includes(`/`)?e.mimeType:`image/png`};base64,${r.replace(/\s/g,``)}`}}}function kR(e,t){if(e==null)return[];if(typeof e==`string`)return e.trim()?[{type:`text`,text:e}]:[];if(!Array.isArray(e))return[{type:`text`,text:String(e)}];let n=[];for(let r of e){if(!OL(r))continue;let e=r.type;if(e===`text`&&typeof r.text==`string`)n.push({type:`text`,text:r.text});else if(e===`thinking`){let e=typeof r.thinking==`string`?r.thinking:typeof r.text==`string`?r.text:``;n.push({type:`thinking`,text:e,streaming:!1})}else if(e===`image`){let e=OR(r);e&&n.push(e)}else if(e===`review`){let e=SR(r);e&&n.push(e)}else if(e===`tool_use`||e===`tool_call`){if(!DL(r))continue;let e=kL(r),i=String(r.name??r.function?.name??`tool`),a=r.input??r.function?.arguments;n.push({type:`tool_use`,id:e,toolCallId:e,name:i,input:a,status:`done`,startedAt:t,result:typeof r.result==`string`?r.result:void 0,details:r.details})}else if(e===`toolCall`){if(!DL(r))continue;let e=kL(r),i=String(r.name??r.function?.name??`tool`);n.push({type:`tool_use`,id:e,toolCallId:e,name:i,input:jL(r),status:`done`,startedAt:t,result:typeof r.result==`string`?r.result:void 0,details:r.details})}}return n}function AR(e){return e.replace(/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}[^\]]*\]\s+/,``)}function jR(e){return(e??[]).filter(e=>e.type===`text`&&!!e.text).map(e=>rR(AR(e.text))).join(`
|
|
20
|
+
|
|
21
|
+
`).trim()}function MR(e,t){let n=e[t];if(!n||n.role!==`user`)return!1;for(let n=t+1;n<e.length;n++)if(e[n].role===`user`)return!1;return!0}function NR(e){if(e?.length)return e.map(e=>{let t=e.data??e.content;return{id:e.id,type:e.type??(e.mimeType?.startsWith(`image/`)?`image`:`document`),mimeType:e.mimeType,...t?{data:t}:{},name:e.name,size:e.size,...e.uri?{uri:e.uri}:{},...e.bucket?{bucket:e.bucket}:{},...e.path?{path:e.path}:{},durationSeconds:e.durationSeconds}})}function PR(e){return e===`user`}function FR(e,t){if(t<0||t>=e.length)return null;let n=e[t];if(!n||!PR(n.role))return null;let r=0;for(let n=0;n<=t;n++){let t=e[n];t&&PR(t.role)&&(r+=1)}return r-1}function IR(e,t){let n=1;for(let r=t+1;r<e.length;r++){let t=e[r];if(t&&PR(t.role))break;n+=1}return n}function LR(e){let t=typeof e.timestamp==`number`&&Number.isFinite(e.timestamp)?e.timestamp:Date.now();if(Array.isArray(e.content)||typeof e.content==`string`){let[n]=hR([{role:`user`,turnId:typeof e.turnId==`string`?e.turnId:void 0,content:e.content,media:e.media,attachments:e.attachments,metadata:e.metadata,timestamp:t}]);return n??null}let n=typeof e.text==`string`?rR(e.text.trim()):``,r=UL(e.media);return!n&&!r?.length?null:{role:`user`,turnId:typeof e.turnId==`string`?e.turnId:void 0,content:n?[{type:`text`,text:n}]:[],attachments:r,timestamp:t}}var RR=12e4;function zR(e,t){if(!PR(e.role)||!PR(t.role))return!1;let n=jR(e.content).trim(),r=jR(t.content).trim(),i=e.attachments?.length??0,a=t.attachments?.length??0,o=i===0||a>=i;return!!(o&&n&&r&&(n===r||r.startsWith(n))||i>0&&o&&Math.abs((t.timestamp??0)-(e.timestamp??0))<=RR)}function BR(e,t){return!PR(e.role)||!PR(t.role)?!1:e.timestamp===t.timestamp?!0:jR(e.content)===jR(t.content)}var VR=32*1024*1024;function HR(e){return`xopc:submission:${e}`}function UR(e,t){try{let n=sessionStorage.getItem(HR(e));if(n){let e=JSON.parse(n);if(e.fingerprint===t&&typeof e.clientMessageId==`string`)return e.clientMessageId}}catch{}let n=crypto.randomUUID();try{sessionStorage.setItem(HR(e),JSON.stringify({clientMessageId:n,fingerprint:t}))}catch{}return n}function WR(e,t){try{let n=sessionStorage.getItem(HR(e));if(!n)return;JSON.parse(n).clientMessageId===t&&sessionStorage.removeItem(HR(e))}catch{}}async function GR(e,t){if(t.aborted)throw new DOMException(`Aborted`,`AbortError`);e!==0&&await new Promise((n,r)=>{let i=()=>{clearTimeout(a),r(new DOMException(`Aborted`,`AbortError`))},a=setTimeout(()=>{t.removeEventListener(`abort`,i),n()},e);t.addEventListener(`abort`,i,{once:!0})})}async function KR(e,t,n,r){let i;for(let a of BD){await GR(a,n);let o=new AbortController,s=setTimeout(()=>o.abort(),VD),c=()=>o.abort();n.addEventListener(`abort`,c,{once:!0});try{let n=await ot(e,{method:`POST`,headers:{"Content-Type":`application/json`,...r?{"X-Xopc-Expected-Session-Key":r}:{}},body:t,signal:o.signal});if(!UD(n.status))return n;i=Error(`Session input temporarily unavailable (${n.status})`)}catch(e){if(n.aborted)throw e;i=e}finally{clearTimeout(s),n.removeEventListener(`abort`,c)}}throw i instanceof Error?i:Error(`Session input request failed`)}function qR(e){return`xopc:pendingRun:${e}`}function JR(e){try{let t=globalThis.sessionStorage?.getItem(qR(e));if(!t)return!1;let n=JSON.parse(t);return typeof n.runId==`string`&&n.runId.trim().length>0}catch{return!1}}function YR(e){try{let t=globalThis.sessionStorage?.getItem(qR(e));if(!t)return null;let n=JSON.parse(t);return(typeof n.runId==`string`?n.runId.trim():``)||null}catch{return null}}function XR(e,t){let n=t.trim();if(n)try{let t=qR(e),r=JSON.parse(sessionStorage.getItem(t)??`{}`),i=r.runId===n&&typeof r.lastSeq==`number`?r.lastSeq:0;sessionStorage.setItem(t,JSON.stringify({runId:n,lastSeq:i})),yL(e)}catch{}}function ZR(e,t){try{let n=sessionStorage.getItem(qR(e));if(!n)return 0;let r=JSON.parse(n);return r.runId===t&&typeof r.lastSeq==`number`?r.lastSeq:0}catch{return 0}}function QR(e,t,n){if(!(!Number.isInteger(n)||n<1))try{let r=qR(e),i=sessionStorage.getItem(r);if(!i)return;let a=JSON.parse(i);if(a.runId!==t||n<=(typeof a.lastSeq==`number`?a.lastSeq:0))return;sessionStorage.setItem(r,JSON.stringify({runId:t,lastSeq:n}))}catch{}}function $R(e,t){let n=String(e??``).trim(),r=String(t??``).trim();if(!n||!r)return!1;try{let e=qR(n),t=sessionStorage.getItem(e);return!t||JSON.parse(t).runId!==r?!1:(sessionStorage.removeItem(e),yL(n),!0)}catch{return!1}}function ez(){let e=[];try{for(let t=0;t<sessionStorage.length;t+=1){let n=sessionStorage.key(t);if(!n?.startsWith(`xopc:pendingRun:`))continue;let r=n.slice(16).trim(),i=sessionStorage.getItem(n);if(!r||!i)continue;let a=JSON.parse(i),o=typeof a.runId==`string`?a.runId.trim():``;o&&e.push({sessionKey:r,runId:o})}}catch{return e}return e}var tz=class{_abort;_chatId=``;_trackedRunId;_streamCleanup;_streamFinish;_terminalCallbacks;get isSending(){return!!this._abort}get activeChatId(){return this._chatId}isStreamingFor(e){return!!this._abort&&this._chatId===e}isTrackingRun(e,t){return this.isStreamingFor(e)&&this._trackedRunId===t}reconcileTerminal(e,t,n){return!this.isTrackingRun(e,t)||!this._streamFinish?!1:(this._terminalCallbacks?.onResult({runId:t,sessionKey:e,status:n}),this._streamFinish(!0),!0)}reconcileInactive(e,t){return!this.isTrackingRun(e,t)||!this._streamFinish?!1:(this._streamFinish(!1),!0)}async send(e,t,n,r,i,a,o,s){this._trackedRunId=void 0,this._abort=new AbortController,this._chatId=t;let c=n&&n.length>10?n.slice(0,10):n,l=Kz.getState().sessions[t];if(l?.modelConfigSaving)throw Error(`Wait for model configuration to finish saving`);let u=l?.configVersion,d=await dI(this._abort.signal),f=UR(t,`${HD({content:e,attachments:c,thinking:r,contextRefs:s})}:${u??``}${o?`:replace:${o}`:``}`),p=await KR(Y(a?`/api/tasks/${encodeURIComponent(a)}/inputs`:o?`/api/sessions/${encodeURIComponent(t)}/turns/${encodeURIComponent(o)}/replace`:`/api/sessions/${encodeURIComponent(t)}/inputs`),JSON.stringify({clientMessageId:f,configVersion:u,delivery:`next`,content:e,attachments:c,thinking:r,origin:d,contextRefs:s}),this._abort.signal,a?t:void 0);if(!p.ok){let e=await p.json().catch(()=>({}));throw e.error?.code===`CONFIG_CHANGED`&&window.dispatchEvent(new CustomEvent(`session-model-config-stale`,{detail:{sessionKey:t}})),Error(st(p.status,p.statusText,e.error?.message))}let m=await p.json();WR(t,f);let h=m.payload?.state,g=m.payload?.sessionKey?.trim()||t,_=h?.inputs?.find(e=>e.clientMessageId===f);if(h?.activeRunId&&_?.id===h.activeInputId){await this.resume(h.activeRunId,g,i);return}this._abort=void 0}abort(){this._notifyServerAbort(),this._abort?.abort(),this._streamCleanup?.(),this._streamCleanup=void 0,this._abort=void 0,this._clearPendingRun()}_notifyServerAbort(){if(this._chatId)try{let e=sessionStorage.getItem(qR(this._chatId));if(!e)return;let t=JSON.parse(e);if(typeof t.runId!=`string`||!t.runId)return;ot(Y(`/api/agent/abort`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({runId:t.runId})}).catch(()=>{})}catch{}}async resume(e,t,n){this._trackedRunId=void 0,this._abort=new AbortController,this._chatId=t,this._trackedRunId=e,XR(t,e);let r=this._wrapTerminalCallbacks(n);this._terminalCallbacks=r.wrapped;let i=await new Promise(n=>{let i=!1,a=e=>{i||(i=!0,this._streamCleanup?.(),this._streamCleanup=void 0,n(e))};this._streamFinish=a;let o=ZR(t,e);this._streamCleanup=ZF(`run:${e}`,{onEvent:n=>{let i=n.data&&typeof n.data==`object`?{...n.data,seq:n.seq}:{type:n.event,seq:n.seq,payload:n.data};this._dispatchStreamEvent(n.event,i,r.wrapped),QR(t,e,n.seq),(n.event===`run_end`||n.event===`error`)&&a(!0)},onGap:e=>{if(e.recoverable)return r.wrapped?.onReplayGap?.();a(!1)}},o),this._abort?.signal.addEventListener(`abort`,()=>a(!1),{once:!0})});return this._abort=void 0,this._streamFinish=void 0,this._terminalCallbacks=void 0,this._clearPendingRun(),i}_wrapTerminalCallbacks(e){if(!e)return{wrapped:void 0,sawTerminal:!1,onMissingTerminal:()=>{}};let t=!1,n=()=>{t=!0};return{get sawTerminal(){return t},wrapped:{...e,onResult:r=>{t||(n(),e.onResult(r))},onError:r=>{t||(n(),e.onError(r))}},onMissingTerminal:()=>{t||(n(),e.onError(`Agent run ended without a terminal event`))}}}_clearPendingRun(){let e=this._chatId;if(e)try{let t=qR(e),n=sessionStorage.getItem(t);if(n){let e=JSON.parse(n),t=typeof e?.runId==`string`?e.runId:``;if(this._trackedRunId&&t&&t!==this._trackedRunId)return}sessionStorage.removeItem(t),yL(e)}catch{}this._trackedRunId=void 0}_dispatchStreamEvent(e,t,n){let r=t.payload&&typeof t.payload==`object`?t.payload:{};switch(e){case`run_start`:typeof t.runId==`string`&&this._chatId&&(this._trackedRunId=t.runId,XR(this._chatId,t.runId)),typeof t.runId==`string`&&n?.onStreamStart(t.runId);break;case`user_message`:{let e=LR(r.message);e&&n?.onUserMessage?.(e);break}case`user_transcript`:{let e=LR({text:r.text,media:r.media,timestamp:t.timestamp});e&&n?.onUserMessage?.(e);break}case`assistant_message_start`:typeof t.runId==`string`&&n?.onStreamStart(t.runId);break;case`assistant_delta`:typeof r.delta==`string`&&r.delta&&n?.onToken(r.delta,typeof r.messageId==`string`?r.messageId:void 0);break;case`thinking_delta`:typeof r.delta==`string`&&r.delta&&n?.onThinking(r.delta,!0);break;case`thinking_end`:n?.onThinkingEnd();break;case`assistant_message_end`:n?.onThinkingEnd(),typeof r.messageId==`string`&&(r.presentation===`narration`||r.presentation===`answer`)&&n?.onAssistantMessageEnd?.(r.messageId,r.presentation,r.usage);break;case`tool_start`:{let e=String(r.toolName||`unknown`),i=typeof r.toolCallId==`string`?r.toolCallId:void 0;if(e===`clarify`)break;n?.onToolStart(e,r.args,i,rz(t.timestamp),r.activity);break}case`tool_update`:{let e=typeof r.toolName==`string`&&r.toolName?r.toolName:`unknown`,t=typeof r.toolCallId==`string`?r.toolCallId:void 0;r.details!==void 0&&n?.onToolUpdate?.(e,t,r.details),typeof r.textDelta==`string`&&r.textDelta&&n?.onToolUpdate?.(e,t,{textDelta:r.textDelta});break}case`tool_end`:n?.onToolEnd(typeof r.toolName==`string`&&r.toolName?r.toolName:`unknown`,r.status===`error`||r.status===`cancelled`,nz(r.result),typeof r.toolCallId==`string`?r.toolCallId:void 0,rz(t.timestamp),r.activity);break;case`review_start`:typeof r.reviewId==`string`&&r.reviewId&&n?.onReviewStart?.({reviewId:r.reviewId,target:typeof r.target==`string`?r.target:`working tree changes`,stage:r.stage===`preparing`?`preparing`:`reviewing`});break;case`review_delta`:typeof r.reviewId==`string`&&typeof r.delta==`string`&&r.delta&&n?.onReviewDelta?.({reviewId:r.reviewId,delta:r.delta});break;case`review_end`:typeof r.reviewId==`string`&&r.reviewId&&n?.onReviewEnd?.({reviewId:r.reviewId,status:r.status===`error`?`error`:`complete`,...typeof r.message==`string`&&r.message?{message:r.message}:{}});break;case`progress`:n?.onProgress({stage:String(r.stage||`thinking`),message:String(r.message||``),detail:r.detail,toolName:r.toolName,completed:typeof r.completed==`number`?r.completed:void 0,total:typeof r.total==`number`?r.total:void 0,timestamp:Date.now()});break;case`compaction`:n?.onCompaction?.({status:r.status||`started`,tokensBefore:typeof r.tokensBefore==`number`?r.tokensBefore:void 0,tokensAfter:typeof r.tokensAfter==`number`?r.tokensAfter:void 0,summary:typeof r.summary==`string`?r.summary:void 0});break;case`turn_plan`:{let e=iz(r.plan);e.length>0&&n?.onTurnPlanUpdated?.({explanation:typeof r.explanation==`string`&&r.explanation.trim()?r.explanation.trim():void 0,plan:e});break}case`task_plan_updated`:{let e=az(r.items),t=r.source===`todo`?`todo`:`update_plan`,i=r.scope===`session`?`session`:`turn`,a=typeof r.planId==`string`?r.planId.trim():``,o=typeof r.revision==`number`&&Number.isInteger(r.revision)?r.revision:0;a&&o>0&&n?.onTaskPlanUpdated?.({planId:a,revision:o,source:t,scope:i,explanation:typeof r.explanation==`string`&&r.explanation.trim()?r.explanation.trim():void 0,items:e});break}case`turn_outcome`:{let e=bE(r);e&&n?.onTurnOutcome?.(e);break}case`tts_audio`:n?.onTtsAudio?.({uri:String(r.uri||``),mimeType:String(r.mimeType||`audio/mpeg`),name:String(r.name||`voice.mp3`),attachTo:r.attachTo===`last_assistant`?`last_assistant`:void 0,messageId:typeof r.messageId==`string`?r.messageId:void 0});break;case`clarify_request`:{let e=typeof r.requestId==`string`?r.requestId.trim():``,t=typeof r.question==`string`?r.question.trim():``;if(e&&t&&n?.onClarifyRequest){let i=Array.isArray(r.choices)?r.choices.filter(e=>typeof e==`string`&&e.trim().length>0):void 0,a=typeof r.default==`string`&&r.default.trim()?r.default.trim():void 0;n.onClarifyRequest({requestId:e,question:t,choices:i&&i.length>=2?i:void 0,default:a})}break}case`workflow_run_started`:{let e=r.workflowRun;if(e?.ok===!0){let t=typeof e.runId==`string`?e.runId:``,r=typeof e.sessionKey==`string`?e.sessionKey:``,i=typeof e.definitionId==`string`?e.definitionId:``,a=typeof e.parentSessionKey==`string`?e.parentSessionKey:void 0;t&&r&&i&&n?.onWorkflowRunStarted?.({runId:t,sessionKey:r,definitionId:i,parentSessionKey:a})}break}case`run_end`:typeof t.runId==`string`&&typeof t.sessionKey==`string`&&(r.status===`success`||r.status===`error`||r.status===`cancelled`||r.status===`suspended`)&&n?.onResult({runId:t.runId,sessionKey:t.sessionKey,status:r.status,...typeof r.summary==`string`&&r.summary?{summary:r.summary}:{}});break;case`error`:n?.onError(String(r.message||JSON.stringify(SL())));break}}};function nz(e){if(typeof e==`string`||e==null)return e;try{return JSON.stringify(e)}catch{return String(e)}}function rz(e){if(typeof e!=`number`||!Number.isFinite(e))throw Error(`Chat stream event is missing a numeric timestamp`);return e}function iz(e){return Array.isArray(e)?e.map(e=>{let t=e&&typeof e==`object`&&!Array.isArray(e)?e:void 0,n=typeof t?.step==`string`?t.step.trim():``,r=t?.status;if(!(!n||r!==`pending`&&r!==`in_progress`&&r!==`completed`))return{step:n,status:r}}).filter(e=>!!e):[]}function az(e){return Array.isArray(e)?e.flatMap(e=>{let t=e&&typeof e==`object`&&!Array.isArray(e)?e:void 0,n=typeof t?.id==`string`?t.id.trim():``,r=typeof t?.title==`string`?t.title.trim():``,i=t?.status;return!n||!r||i!==`pending`&&i!==`in_progress`&&i!==`completed`&&i!==`cancelled`?[]:[{id:n,title:r,status:i}]}):[]}function oz(e,t){let n=e=>PR(e.role),r=e.filter(n).length;if(t.filter(n).length<=r)return e;let i=t.filter(n).slice(r);return i.length===0?e:lR([...e,...i])}var sz=`medium`;function cz(){return{name:null,model:``,thinkingLevel:sz,reasoningLevel:`on`,modelSupportsThinking:!1,effectiveWorkspacePath:``,workspaceSource:`agent_default_root`,userContextMode:`enabled`}}var lz=class e{static instance;senders=new Map;resumeRunIds=new Map;userAbortedSessions=new Set;static get(){return e.instance||=new e,e.instance}senderFor(e){let t=this.senders.get(e);return t||(t=new tz,this.senders.set(e,t)),t}isStreamingFor(e){return this.senders.get(e)?.isStreamingFor(e)??!1}isTrackingRun(e,t){return this.senders.get(e)?.isTrackingRun(e,t)??!1}getResumeRunId(e){return this.resumeRunIds.get(e)??null}setResumeRunId(e,t){t?this.resumeRunIds.set(e,t):this.resumeRunIds.delete(e)}setUserAborted(e,t){t?this.userAbortedSessions.add(e):this.userAbortedSessions.delete(e)}takeUserAborted(e){return this.userAbortedSessions.delete(e)}resetRunTracking(e){this.resumeRunIds.delete(e),this.userAbortedSessions.delete(e)}abort(e){this.senders.get(e)?.abort(),this.senders.delete(e),this.resetRunTracking(e)}reconcileTerminal(e,t,n){let r=this.senders.get(e)?.reconcileTerminal(e,t,n)??!1;return this.resumeRunIds.get(e)===t&&this.resumeRunIds.delete(e),r}reconcileInactive(e,t){let n=this.senders.get(e)?.reconcileInactive(e,t)??!1;return this.resumeRunIds.get(e)===t&&this.resumeRunIds.delete(e),n}releaseIdleSender(e){let t=this.senders.get(e);t&&!t.isSending&&this.senders.delete(e)}}.get();function uz(e){if(e.type!==`thinking`)return``;let t=e;return(typeof t.text==`string`&&t.text.length>0?t.text:typeof t.thinking==`string`?t.thinking:``).trim()}function dz(e){if(e.role!==`assistant`)return!1;for(let t of e.content)if(t.type===`text`&&(t.text||``).trim().length>0||t.type===`thinking`&&uz(t).length>0||t.type===`tool_use`||t.type===`review`)return!0;return!1}function fz(e,t){return e&&e.role===`assistant`?{...e,content:[...e.content]}:{role:`assistant`,content:[],timestamp:t}}function pz(e){return{...e,content:e.content.map(e=>({...e})),attachments:e.attachments?e.attachments.map(e=>({...e})):void 0}}function mz(e,t){if(!t)return e;if(!e)return t;if(e.endsWith(t))return e;let n=Math.min(e.length,t.length,512);for(let r=n;r>0;r--)if(e.slice(-r)===t.slice(0,r))return e+t.slice(r);return e+t}function hz(e){let t=e[e.length-1];t?.type===`thinking`&&t.streaming&&(t.streaming=!1)}function gz(e){let t=e[e.length-1];t?.type===`thinking`&&t.streaming||e.push({type:`thinking`,text:``,streaming:!0})}function _z(e,t,n){let r=e[e.length-1];if(r?.type===`thinking`){n?r.text=mz(r.text||``,t):r.text=t,r.streaming=!0;return}e.push({type:`thinking`,text:t,streaming:!0})}function vz(e){hz(e);for(let t of e)t.type===`thinking`&&typeof t.text==`string`&&(t.text=t.text.trim())}function yz(e){for(let t of e)t.type===`tool_use`&&t.status===`running`&&(t.status=`done`)}function bz(e,t){return e.trim().toLowerCase()===t.trim().toLowerCase()}function xz(e,t,n){hz(e);let r=e[e.length-1];if(r?.type===`text`&&r.segmentId===n){r.text=mz(r.text||``,t);return}e.push({type:`text`,text:t,...n?{segmentId:n,presentation:`pending`}:{}})}function Sz(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===`text`&&i.segmentId===t){i.presentation=n;return}}}function Cz(e){let t=Mz(e);if(!t||t.type!==`review`)return null;let n=Array.isArray(t.findings)?t.findings:[],r={type:`review`,target:typeof t.target==`string`?t.target:`working tree changes`,summary:typeof t.summary==`string`?t.summary:``,findings:n.map(e=>{let t=Mz(e);if(!t)return null;let n=t.priority===0||t.priority===1||t.priority===2||t.priority===3?t.priority:2,r=typeof t.title==`string`?t.title:``,i=typeof t.body==`string`?t.body:``;if(!r&&!i)return null;let a={title:r,body:i,priority:n};return typeof t.confidenceScore==`number`&&(a.confidenceScore=t.confidenceScore),typeof t.filePath==`string`&&(a.filePath=t.filePath),typeof t.lineStart==`number`&&(a.lineStart=t.lineStart),typeof t.lineEnd==`number`&&(a.lineEnd=t.lineEnd),a}).filter(e=>e!=null),overallCorrectness:t.overallCorrectness===`patch is correct`||t.overallCorrectness===`patch is incorrect`?t.overallCorrectness:`unknown`,overallExplanation:typeof t.overallExplanation==`string`?t.overallExplanation:``};return typeof t.overallConfidenceScore==`number`&&(r.overallConfidenceScore=t.overallConfidenceScore),typeof t.generatedAt==`number`&&(r.generatedAt=t.generatedAt),(t.source===`model`||t.source===`local`)&&(r.source=t.source),r}function wz(e,t){hz(e);let n=Cz(t);if(!n)return;let r=e.findIndex(e=>e.type===`review`&&e.target===n.target);if(r>=0){let t=e[r];if(!t||t.type!==`review`)return;e[r]={...n,reviewId:t.reviewId,status:t.status===`error`?`error`:`complete`,analysisMarkdown:t.analysisMarkdown,errorMessage:t.errorMessage};return}e.push(n)}function Tz(e){for(let t of e)t.type===`review`&&(t.status!==`preparing`&&t.status!==`reviewing`||(t.status=`error`,t.errorMessage??=`The review stream ended before a conclusion was returned.`))}function Ez(e,t){hz(e);let n=e.find(e=>e.type===`review`&&e.reviewId===t.reviewId);if(n){n.target=t.target||n.target,n.status=t.stage;return}e.push({type:`review`,reviewId:t.reviewId,target:t.target||`working tree changes`,summary:``,findings:[],overallCorrectness:`unknown`,overallExplanation:``,status:t.stage})}function Dz(e,t,n){if(!n)return;let r=e.find(e=>e.type===`review`&&e.reviewId===t);r&&(r.status=`reviewing`,r.analysisMarkdown=mz(r.analysisMarkdown??``,n))}function Oz(e,t,n,r){let i=e.find(e=>e.type===`review`&&e.reviewId===t);i&&(i.status=n,i.errorMessage=n===`error`?r:void 0)}function kz(e,t,n,r,i,a){hz(e);let o={type:`tool_use`,id:crypto.randomUUID(),toolCallId:r,name:t,activity:a??Ye(t,`running`),input:n,status:`running`,startedAt:i};e.push(o)}function Az(e,t,n,r,i,a,o){for(let s=e.length-1;s>=0;s--){let c=e[s];if(!(c.type!==`tool_use`||c.status!==`running`)&&!(i&&c.toolCallId!==i&&c.id!==i)&&!(!i&&!bz(c.name,t))){c.status=n?`error`:`done`,c.result=r,c.activity=o??Ye(t,n?`failed`:`completed`,r),c.completedAt=a,c.startedAt!=null&&(c.durationMs=Math.max(0,a-c.startedAt));return}}}function jz(e,t,n,r){for(let i=e.length-1;i>=0;i--){let a=e[i];if(a.type===`tool_use`&&a.status===`running`){if(n&&a.toolCallId===n){a.details=Nz(a.details,r);return}if(!n&&bz(a.name,t)){a.details=Nz(a.details,r);return}}}}function Mz(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function Nz(e,t){let n=Mz(t);if(typeof n?.textDelta==`string`){let t=Mz(e)??{};return{...t,text:mz(String(t.text??``),n.textDelta)}}if(n?.kind!==`command_output_delta`)return t;let r=Mz(e)??{},i=n.stream===`stderr`?`stderr`:`stdout`,a=typeof n.delta==`string`?n.delta:``,o=i===`stdout`?`${String(r.stdout??``)}${a}`:String(r.stdout??``),s=i===`stderr`?`${String(r.stderr??``)}${a}`:String(r.stderr??``);return{...r,command:typeof n.command==`string`?n.command:r.command,cwd:typeof n.cwd==`string`?n.cwd:r.cwd,stdout:o,stderr:s,aggregatedOutput:`${String(r.aggregatedOutput??``)}${a}`}}function Pz(e){return e!==`ready`}var Fz={streamingMsg:null,progress:null,taskPlan:null,sending:!1,streaming:!1};function Iz(e){return{...cz(),historyStatus:e,messages:[],hasMore:!1,...Fz}}function Lz(e){return e.map(e=>pz(e))}function Rz(e,t){return e===t?!0:e.role!==t.role||e.timestamp!==t.timestamp?!1:JSON.stringify(e)===JSON.stringify(t)}function zz(e,t){let n=e.length!==t.length,r=t.map((t,r)=>{let i=e[r];if(i&&Rz(i,t))return i;n=!0;let a=pz(t);return i?.role===`assistant`&&t.role===`assistant`&&i.renderKey&&mR(i,t)&&(a.renderKey=i.renderKey),a});return n?r:e}function Bz(e,t){let n=pz(t),r=e[e.length-1];if(r?.role!==`assistant`)return[...e,n];let i=lR([r,n]);return[...e.slice(0,-1),...i]}function Vz(e){let t=e.uri?.trim();return t?`uri:${t}`:e.id?`id:${e.id}`:`name:${e.name??`file`}|${e.mimeType??``}`}function Hz(e,t){let n=[...e??[]],r=Vz(t);return n.some(e=>Vz(e)===r)||n.push({...t}),n}function Uz(e){return{name:e.name,model:e.model,configVersion:e.configVersion,modelConfigSaving:e.modelConfigSaving,thinkingLevel:e.thinkingLevel,reasoningLevel:e.reasoningLevel,modelSupportsThinking:e.modelSupportsThinking,effectiveWorkspacePath:e.effectiveWorkspacePath,workspaceSource:e.workspaceSource,userContextMode:e.userContextMode,historyStatus:e.historyStatus,messages:Lz(e.messages),hasMore:e.hasMore,streamingMsg:e.streamingMsg?pz(e.streamingMsg):null,progress:e.progress,taskPlan:e.taskPlan?{...e.taskPlan,items:e.taskPlan.items.map(e=>({...e}))}:null,sending:e.sending,streaming:e.streaming}}function Wz(e){return String(e??``).trim()}function Gz(e){return e?{name:e.name,model:e.model,configVersion:e.configVersion,modelConfigSaving:e.modelConfigSaving,thinkingLevel:e.thinkingLevel,reasoningLevel:e.reasoningLevel,modelSupportsThinking:e.modelSupportsThinking,effectiveWorkspacePath:e.effectiveWorkspacePath,workspaceSource:e.workspaceSource,userContextMode:e.userContextMode}:cz()}var Kz=at((e,t)=>({focusedSessionKey:null,initLoading:!0,loadingMore:!1,shellError:null,sessions:{},setFocusedSessionKey:t=>e({focusedSessionKey:t}),setInitLoading:t=>e({initLoading:t}),setLoadingMore:t=>e({loadingMore:t}),setShellError:t=>e({shellError:t}),setSessionHistoryStatus:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r];if(t?.historyStatus===n)return e;let i=t??Iz(`unknown`);return{sessions:{...e.sessions,[r]:{...i,historyStatus:n}}}})},patchSessionMeta:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r]??Iz(`unknown`);return{sessions:{...e.sessions,[r]:{...t,...n}}}})},initSessionSnapshot:(t,n)=>{let r=Wz(t);r&&e(e=>({sessions:{...e.sessions,[r]:Uz(n)}}))},setCommittedSnapshot:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r],i=n.hasMore,a=Gz(t);if(n.name!==void 0&&(a.name=n.name),!t){let t=Lz(n.messages);return{sessions:{...e.sessions,[r]:{...a,historyStatus:`ready`,messages:t,hasMore:i,...Fz}}}}if(qz(t))return{sessions:{...e.sessions,[r]:{...t,...a,historyStatus:`ready`,hasMore:i}}};let o=zz(t.messages,n.messages);return{sessions:{...e.sessions,[r]:{...t,...a,historyStatus:`ready`,messages:o,hasMore:i,...Fz}}}})},updateSessionMessages:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,messages:Lz(n(t.messages))}}}:e})},finalizeStreamingTurn:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r],i=Gz(t),a=t?.hasMore??!1;return{sessions:{...e.sessions,[r]:{...i,historyStatus:`ready`,messages:Bz(t?.messages??[],n),hasMore:a,...Fz}}}})},completeProgressiveRender:(t,n)=>{let r=Wz(t);!r||!n||e(e=>{let t=e.sessions[r];if(!t)return e;let i=!1,a=e=>{if(e.renderKey!==n||!e.progressiveRender)return e;i=!0;let t=pz(e);return delete t.progressiveRender,t},o=t.messages.map(a),s=t.streamingMsg?a(t.streamingMsg):null;return i?{sessions:{...e.sessions,[r]:{...t,messages:o,streamingMsg:s}}}:e})},clearStreamingState:t=>{let n=Wz(t);n&&e(e=>{let t=e.sessions[n];return t?{sessions:{...e.sessions,[n]:{...t,...Fz}}}:e})},clearSession:t=>{let n=Wz(t);n&&e(e=>{if(!(n in e.sessions))return e;let{[n]:t,...r}=e.sessions;return{sessions:r}})},getSessionSnapshot:e=>{let n=Wz(e);if(!n)return;let r=t().sessions[n];return r?Uz(r):void 0},seedSessionIfEmpty:(e,n,r,i,a=!1)=>{let o=Wz(e);!o||t().sessions[o]||t().initSessionSnapshot(o,{...cz(),historyStatus:`ready`,messages:n,hasMore:a,streamingMsg:null,progress:null,taskPlan:null,sending:r,streaming:i})},setSessionFlags:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,...n.sending===void 0?{}:{sending:n.sending},...n.streaming===void 0?{}:{streaming:n.streaming}}}}:e})},setSessionProgress:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r];return t?{sessions:{...e.sessions,[r]:{...t,progress:n}}}:e})},setSessionTaskPlan:(t,n)=>{let r=Wz(t);r&&e(e=>{let t=e.sessions[r];return!t||n.revision<=(t.taskPlan?.revision??0)?e:{sessions:{...e.sessions,[r]:{...t,taskPlan:{...n,items:n.items.map(e=>({...e}))}}}}})},mutateSessionStreaming:(t,n,r=Date.now())=>{let i=Wz(t);i&&e(e=>{let t=e.sessions[i];if(!t)return e;let a=fz(t.streamingMsg,r);return a.renderKey??=`assistant-stream:${i}:${r}`,a.progressiveRender=!0,n(a),{sessions:{...e.sessions,[i]:{...t,streamingMsg:pz(a),streaming:!0}}}})},appendAttachmentToCurrentAssistant:(t,n,r)=>{let i=Wz(t);i&&e(e=>{let t=e.sessions[i];if(!t)return e;if(t.streamingMsg?.role===`assistant`){let r=pz(t.streamingMsg);return r.attachments=Hz(r.attachments,n),{sessions:{...e.sessions,[i]:{...t,streamingMsg:r}}}}let r=Lz(t.messages);for(let a=r.length-1;a>=0;a--){let o=r[a];if(o?.role===`assistant`)return r[a]={...o,attachments:Hz(o.attachments,n)},{sessions:{...e.sessions,[i]:{...t,messages:r}}}}return e})},applyHydratedTail:(t,n,r)=>{let i=Wz(t);i&&e(e=>{let t=e.sessions[i];return t?{sessions:{...e.sessions,[i]:{...t,messages:Lz(n),streamingMsg:r?pz(r):null,streaming:!0,sending:!0}}}:e})},appendUserMessageIfMissing:(t,n)=>{let r=Wz(t);!r||!PR(n.role)||e(e=>{let t=e.sessions[r],i=Gz(t);if(!t)return{sessions:{...e.sessions,[r]:{...i,historyStatus:`ready`,messages:Lz([n]),hasMore:!1,...Fz}}};let a=t.messages[t.messages.length-1];if(a&&zR(a,n)){let i=n.contextRefs?.length||!a.contextRefs?.length?n:{...n,contextRefs:a.contextRefs};return{sessions:{...e.sessions,[r]:{...t,messages:Lz(lR([...t.messages.slice(0,-1),i]))}}}}return t.messages.some(e=>BR(e,n))?e:{sessions:{...e.sessions,[r]:{...t,messages:Lz(lR([...t.messages,n]))}}}})},mergeCommittedFromServer:(t,n,r)=>{let i=Wz(t);i&&e(e=>{let t=e.sessions[i],a=Gz(t),o=r??t?.hasMore??!1;if(!t||!qz(t))return{sessions:{...e.sessions,[i]:{...a,historyStatus:`ready`,messages:Lz(n),hasMore:o,...Fz}}};let s=oz(t.messages,n);return s===t.messages&&o===t.hasMore&&t.historyStatus===`ready`?e:{sessions:{...e.sessions,[i]:{...t,historyStatus:`ready`,messages:Lz(s),hasMore:o}}}})},prependHistoryMessages:(t,n,r)=>{let i=Wz(t);i&&e(e=>{let t=e.sessions[i],a=Gz(t);if(!t)return{sessions:{...e.sessions,[i]:{...a,historyStatus:`ready`,messages:Lz(n),hasMore:r,...Fz}}};let o=new Set(t.messages.map(e=>e.timestamp)),s=lR([...n.filter(e=>!o.has(e.timestamp)),...t.messages]);return{sessions:{...e.sessions,[i]:{...t,messages:Lz(s),hasMore:r}}}})}}));function qz(e){return e?e.streaming||e.sending||!!e.streamingMsg:!1}function Jz(e){return Kz.getState().getSessionSnapshot(e)}function Yz(e){return Kz.getState().sessions[Wz(e)]?.messages??[]}function Xz(e){let t=Wz(e);if(!t)return!1;let n=Kz.getState().sessions[t];return qz(n)||lz.isStreamingFor(t)?!0:JR(t)}function Zz(e){let t=Kz(t=>qz(t.sessions[e])),[n,r]=(0,Z.useState)(()=>Xz(e)),i=(0,Z.useRef)(e);return i.current!==e&&(i.current=e,r(Xz(e))),(0,Z.useEffect)(()=>{r(Xz(e))},[e,t]),(0,Z.useEffect)(()=>{let t=t=>{t.detail?.chatId===e&&r(Xz(e))};return window.addEventListener(vL,t),()=>window.removeEventListener(vL,t)},[e]),t||n}function Qz(e){return e.trim()}var $z=at(e=>({runs:{},markRunning:t=>{let n=Qz(t);if(!n)return;let r=Date.now();e(e=>{let t=e.runs[n];return{runs:{...e.runs,[n]:{status:`running`,startedAt:t?.status===`running`?t.startedAt:r,updatedAt:r,unread:!1}}}})},markCompleted:(t,n)=>{let r=Qz(t);if(!r)return;let i=Date.now();e(e=>{let t=e.runs[r];return{runs:{...e.runs,[r]:{status:`completed`,startedAt:t?.startedAt??i,updatedAt:i,unread:n}}}})},markFailed:(t,n)=>{let r=Qz(t);if(!r)return;let i=Date.now();e(e=>{let t=e.runs[r];return{runs:{...e.runs,[r]:{status:`failed`,startedAt:t?.startedAt??i,updatedAt:i,unread:n}}}})},markViewed:t=>{let n=Qz(t);n&&e(e=>{let t=e.runs[n];return t?.unread?{runs:{...e.runs,[n]:{...t,unread:!1}}}:e})},clear:t=>{let n=Qz(t);n&&e(e=>{if(!(n in e.runs))return e;let{[n]:t,...r}=e.runs;return{runs:r}})}}));function eB(e){$z.getState().markRunning(e)}function tB(e,t){$z.getState().markCompleted(e,t)}function nB(e,t){$z.getState().markFailed(e,t)}function rB(e){$z.getState().clear(e)}function iB(e){$z.setState(t=>({runs:{...t.runs,[e]:{status:`waiting`,startedAt:t.runs[e]?.startedAt??Date.now(),updatedAt:Date.now(),unread:!1}}}))}var aB=`xopc.recentWorkspaceDirs.v1`,oB=10;function sB(){try{let e=localStorage.getItem(aB);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`&&e.trim().length>0):[]}catch{return[]}}function cB(e){let t=e.trim();if(t)try{let e=[t,...sB().filter(e=>e!==t)].slice(0,oB);localStorage.setItem(aB,JSON.stringify(e))}catch{}}function lB(e){let t=e.trim().replace(/[/\\]+$/,``);if(!t)return e;let n=t.split(/[/\\]/);return n[n.length-1]||t}async function uB(e){let t=typeof window<`u`?window.electronAPI?.file?.openDirectory:void 0;if(!t)return null;let n=e?.trim();return n?t({defaultPath:n}):t()}function dB(e={}){let{initialPath:t,onPicked:n,trackRecent:r=!0}=e,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1),c=typeof window<`u`&&!!window.electronAPI?.file?.openDirectory,l=(0,Z.useCallback)(async e=>{let t=e.trim();t&&(r&&cB(t),await n?.(t))},[n,r]);return{hasNativePicker:c,modalOpen:i,setModalOpen:a,pick:(0,Z.useCallback)(()=>{if(c){(async()=>{s(!0);try{let e=await uB(t);e&&await l(e)}finally{s(!1)}})();return}a(!0)},[l,c,t]),confirmPick:l,picking:o}}function fB(){return function(e,t){switch(t.type){case`reset`:return{form:null,baseline:null};case`sync`:{let e=structuredClone(t.value);return{form:e,baseline:structuredClone(e)}}case`patch`:return{...e,form:e.form?{...e.form,...t.patch}:null};case`saved`:{let n=structuredClone(t.value),r=e.form;return{form:r!==null&&JSON.stringify(r)!==JSON.stringify(t.value)?r:n,baseline:structuredClone(n)}}case`set-form`:return e.form?{...e,form:t.updater(e.form)}:e}}}function pB(e,t){return{...e,...t.patch}}function mB(e){let{enabled:t,parsed:n,dirty:r,trackedParsedRef:i,dispatch:a,onResetDirty:o}=e;if(!t){i.current!==null&&(i.current=null,a({type:`reset`}),o?.());return}n!==null&&!r&&i.current!==n&&(i.current=n,a({type:`sync`,value:n}))}async function hB(e){let t=new URLSearchParams;e!=null&&e!==``&&t.set(`path`,e);let n=t.toString();return(await J(Y(`/api/host/fs/list${n?`?${n}`:``}`))).payload}async function gB(){return(await J(Y(`/api/host/fs/meta`))).payload}async function _B(e,t){return(await J(Y(`/api/host/fs/directory`),{method:`POST`,body:JSON.stringify({parentPath:e,name:t})})).payload.absolutePath}function vB(){return X(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 font-mono text-sm text-fg`,`placeholder:text-fg-subtle`,bj,`dark:border-edge`)}function yB(e){return/^[A-Za-z]:\\?$/.test(e.replace(/\\$/,`\\`))}function bB(e){return!e||e.currentPath===``?!1:e.parentPath===null?e.currentPath===`/`?!1:!!yB(e.currentPath):!0}var xB={metaHostname:null,listState:null,listLoading:!1,listError:null,manualPath:``,createFolderOpen:!1,createFolderName:``,createFolderLoading:!1,createFolderError:null};function SB({open:e,onOpenChange:t,initialAbsolutePath:n,onConfirm:r,wd:i}){let a=(0,Z.useId)(),o=(0,Z.useId)(),[s,c]=(0,Z.useReducer)(pB,xB),{metaHostname:l,listState:u,listLoading:d,listError:f,manualPath:p,createFolderOpen:m,createFolderName:h,createFolderLoading:g,createFolderError:_}=s,v=(0,Z.useCallback)(async e=>{c({type:`patch`,patch:{listLoading:!0,listError:null}});try{c({type:`patch`,patch:{listState:await hB(e)}})}catch(e){c({type:`patch`,patch:{listError:e instanceof Error?e.message:String(e),listState:null}})}finally{c({type:`patch`,patch:{listLoading:!1}})}},[]);(0,Z.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{try{let e=await gB();t||c({type:`patch`,patch:{metaHostname:e.hostname}})}catch{t||c({type:`patch`,patch:{metaHostname:null}})}})(),()=>{t=!0}},[e]),(0,Z.useEffect)(()=>{if(!e)return;let t=n?.trim()??``;c({type:`patch`,patch:{manualPath:t,createFolderOpen:!1,createFolderName:``,createFolderLoading:!1,createFolderError:null}});let r=!1;return(async()=>{c({type:`patch`,patch:{listLoading:!0,listError:null}});try{if(t)try{let e=await hB(t);r||c({type:`patch`,patch:{listState:e}})}catch{let e=await hB();r||c({type:`patch`,patch:{listState:e}})}else{let e=await hB();r||c({type:`patch`,patch:{listState:e}})}}catch(e){let t=e instanceof Error?e.message:String(e);r||c({type:`patch`,patch:{listError:t,listState:null}})}finally{r||c({type:`patch`,patch:{listLoading:!1}})}})(),()=>{r=!0}},[e,n]);let y=e=>{e.isDirectory&&v(e.absolutePath)},b=()=>{if(!u)return;let{parentPath:e,currentPath:t}=u;if(e!==null){v(e);return}t===`/`||t===``||yB(t)&&v(void 0)},x=u?.currentPath===``?i.pickerDrives:u?.currentPath??``,S=!!u&&u.currentPath!==``&&!d&&!f,C=S&&!g,w=()=>{c({type:`patch`,patch:{createFolderOpen:!1,createFolderName:``,createFolderError:null}})},T=async()=>{let e=h.trim();if(!(!u||u.currentPath===``||!e||g)){c({type:`patch`,patch:{createFolderLoading:!0,createFolderError:null}});try{let t=await _B(u.currentPath,e);c({type:`patch`,patch:{createFolderOpen:!1,createFolderName:``,createFolderError:null}}),await v(t)}catch(e){let t=e?.status;c({type:`patch`,patch:{createFolderError:t===409?i.pickerCreateFolderExists:t===400?i.pickerCreateFolderInvalid:t===403?i.pickerCreateFolderPermission:i.pickerCreateFolderError}})}finally{c({type:`patch`,patch:{createFolderLoading:!1}})}}},E=async()=>{if(!(!u||u.currentPath===``))try{await r(u.currentPath),t(!1)}catch{}},D=async()=>{let e=p.trim();if(e)try{await r(e),t(!1)}catch{}},O=d&&u;return(0,$.jsx)(ne,{open:e,onOpenChange:t,children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`fixed inset-0 z-[100] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(ee,{className:X(`fixed left-1/2 top-1/2 z-[101] flex h-[min(90vh,32rem)] w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,`dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:i.pathModalTitle}),(0,$.jsx)(B,{className:`mt-1 text-sm leading-relaxed text-fg-muted`,children:i.pathModalDescription}),l?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:i.pickerHostHint.replace(`{{hostname}}`,l)}):null,(0,$.jsxs)(`div`,{className:`mt-3 flex min-h-0 flex-1 flex-col gap-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:`shrink-0 gap-1 px-2 py-1.5 text-xs`,disabled:d||!bB(u)||!!f,onClick:()=>b(),title:i.pickerUp,children:[(0,$.jsx)(ls,{className:`size-4`,"aria-hidden":!0}),i.pickerUp]}),(0,$.jsx)(`div`,{className:`min-w-0 flex-1 truncate rounded-md border border-edge-subtle/80 bg-surface-hover/30 px-2 py-1.5 font-mono text-xs text-fg`,title:x,children:d&&!u?i.pickerLoading:x||`—`}),(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:`shrink-0 gap-1 px-2 py-1.5 text-xs`,disabled:!C,onClick:()=>c({type:`patch`,patch:{createFolderOpen:!0,createFolderName:``,createFolderError:null}}),title:i.pickerNewFolder,children:[(0,$.jsx)(kp,{className:`size-4`,"aria-hidden":!0}),i.pickerNewFolder]})]}),m?(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-base p-2`,children:[(0,$.jsx)(`label`,{htmlFor:o,className:`text-xs font-medium text-fg-muted`,children:i.pickerNewFolderName}),(0,$.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-2`,children:[(0,$.jsx)(`input`,{id:o,type:`text`,value:h,onChange:e=>c({type:`patch`,patch:{createFolderName:e.target.value,createFolderError:null}}),className:vB(),autoFocus:!0,autoComplete:`off`,spellCheck:!1,disabled:g,onKeyDown:e=>{e.key===`Enter`&&h.trim()?(e.preventDefault(),T()):e.key===`Escape`&&(e.preventDefault(),w())}}),(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`shrink-0`,disabled:g,onClick:w,children:i.pickerCreateFolderCancel}),(0,$.jsxs)(vt,{type:`button`,variant:`primary`,className:`shrink-0`,disabled:!h.trim()||g,onClick:()=>void T(),children:[g?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,i.pickerCreateFolder]})]}),_?(0,$.jsx)(`p`,{className:`mt-1.5 text-xs text-danger`,role:`alert`,children:_}):null]}):null,(0,$.jsxs)(`div`,{className:X(`relative min-h-[12rem] overflow-y-auto rounded-lg border border-edge-subtle/80 bg-surface-hover/20 p-1 dark:border-edge-subtle`,gk.focusRingPanel),role:`listbox`,"aria-label":i.pathModalTitle,children:[O?(0,$.jsx)(`div`,{className:`absolute inset-0 z-[1] flex items-center justify-center rounded-lg bg-surface-panel/60`,"aria-hidden":!0,children:(0,$.jsx)(je,{className:`size-6 animate-spin text-fg-muted`})}):null,d&&!u?(0,$.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-12 text-sm text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}),i.pickerLoading]}):null,f?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerListError}):null,!d&&u&&!f&&u.entries.length===0?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerEmptyFolder}):null,u?.entries.map(e=>(0,$.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":!1,disabled:!e.isDirectory,className:X(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm`,e.isDirectory?`cursor-pointer text-fg hover:bg-surface-hover`:`cursor-default text-fg-muted opacity-60`),onClick:()=>y(e),children:[(0,$.jsx)(vp,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]},e.absolutePath))]}),(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:a,className:`text-xs text-fg-muted`,children:i.pickerManualPath}),(0,$.jsx)(`input`,{id:a,type:`text`,value:p,onChange:e=>c({type:`patch`,patch:{manualPath:e.target.value}}),placeholder:i.pathInputPlaceholder,className:vB(),autoComplete:`off`,spellCheck:!1,onKeyDown:e=>{e.key===`Enter`&&p.trim()&&(e.preventDefault(),D())}})]})]}),(0,$.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center justify-end gap-2 border-t border-edge-subtle/60 pt-3`,children:[(0,$.jsx)(vt,{type:`button`,variant:`ghost`,onClick:()=>t(!1),children:i.pathModalCancel}),(0,$.jsx)(vt,{type:`button`,variant:`secondary`,disabled:!p.trim(),onClick:()=>void D(),children:i.pickerApplyManual}),(0,$.jsx)(vt,{type:`button`,disabled:!S,onClick:()=>void E(),children:i.pickerUseThisFolder})]})]})]})})}var CB=`xopc.webchat.newSessionPreferences`;function wB(){if(globalThis.localStorage===void 0)return xO();try{let e=globalThis.localStorage.getItem(CB);return wO(e?JSON.parse(e):null)}catch{return xO()}}function TB(e){try{globalThis.localStorage?.setItem(CB,JSON.stringify(e))}catch{}return e}function EB(e){return TB(TO(wB(),e))}function DB(e,t){return TB(EO(wB(),e,t))}function OB(e){return TB(DO(wB(),e))}async function kB(e,t){let n=await J(Y(`/api/projects/${encodeURIComponent(e)}/monitoring`),{method:`PATCH`,body:JSON.stringify(t)});return iD.parse(n.policy)}async function AB(e){let t=new URLSearchParams;e?.status&&t.set(`status`,e.status),e?.search?.trim()&&t.set(`search`,e.search.trim()),e?.sortBy&&t.set(`sortBy`,e.sortBy),e?.sortOrder&&t.set(`sortOrder`,e.sortOrder),e?.limit&&t.set(`limit`,String(e.limit)),e?.offset&&t.set(`offset`,String(e.offset));let n=t.toString();return J(Y(`/api/projects${n?`?${n}`:``}`))}async function jB(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}`))).project}async function MB(e){let t=await J(Y(`/api/projects/${encodeURIComponent(e)}/operating-view`));return cD.parse(t&&typeof t==`object`?t.view:void 0)}async function NB(e,t={}){let n=new URLSearchParams;n.set(`visibility`,`timeline`),t.includeRelated&&n.set(`includeRelated`,`true`),t.limit&&n.set(`limit`,String(t.limit)),t.offset&&n.set(`offset`,String(t.offset));let r=n.toString();return J(Y(`/api/projects/${encodeURIComponent(e)}/activity${r?`?${r}`:``}`))}async function PB(e){return(await J(Y(`/api/projects`),{method:`POST`,body:JSON.stringify(e)})).project}async function FB(e){let t=await J(Y(`/api/projects/infer-defaults`),{method:`POST`,body:JSON.stringify(e)});return{inference:t.inference,defaultAgentId:t.defaultAgentId,executionMode:t.executionMode}}async function IB(e,t){return(await J(Y(`/api/projects/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})).project}async function LB(e,t){return IB(e,{name:t})}async function RB(e){return IB(e,{status:`archived`})}async function zB(e){return IB(e,{status:`active`})}async function BB(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/pin`),{method:`POST`})).project}async function VB(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/unpin`),{method:`POST`})).project}async function HB(e){await J(Y(`/api/projects/${encodeURIComponent(e)}`),{method:`DELETE`})}async function UB(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/sessions?limit=100`))).sessions}async function WB(e){await J(Y(`/api/projects/${encodeURIComponent(e)}/digest-knowledge`),{method:`POST`,body:JSON.stringify({})})}async function GB(e,t){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/blockers`),{method:`POST`,body:JSON.stringify(t)})).blocker}async function KB(e,t){let n=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),r=Xe.parse(n.space),i=new URLSearchParams;t&&i.set(`path`,t);let a=i.toString(),o=Qe.parse(await J(Y(`/api/files/spaces/${encodeURIComponent(r.id)}/children${a?`?${a}`:``}`)));return{ok:!0,root:``,path:t??``,parentPath:t?.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):null,entries:o.items.map(e=>({fileId:e.id,name:e.name,path:e.relativePath,type:e.kind,size:e.size,updatedAt:new Date(e.modifiedAt).toISOString()}))}}async function qB(e){let t=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),n=Xe.parse(t.space),r=$e.parse(await J(Y(`/api/files/spaces/${encodeURIComponent(n.id)}/root`)));return{fileId:r.resource.id,name:r.resource.name}}async function JB(e,t,n=50){let r=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),i=Xe.parse(r.space),a=new URLSearchParams({q:t.trim(),limit:String(n),spaceId:i.id});return Qe.parse(await J(Y(`/api/files/search?${a}`))).items.map(e=>({name:e.name,path:e.relativePath,isDirectory:e.kind===`directory`}))}async function YB(e,t){let n=wB(),r=t?OO(n,t):void 0,i=await J(Y(`/api/sessions`),{method:`POST`,body:JSON.stringify({projectId:e,...t?{agentId:t}:{},...r?{initialAgentConfig:{model:r.modelRef,...r.thinkingLevel?{thinkingLevel:r.thinkingLevel}:{}}}:{}})});if(!r){let e=i.session.routing?.agentId,t=e?OO(n,e):void 0;t&&await J(Y(`/api/sessions/${encodeURIComponent(i.session.key)}/agent-config`),{method:`PATCH`,body:JSON.stringify({model:t.modelRef,...t.thinkingLevel?{thinkingLevel:t.thinkingLevel}:{}})})}return i.session}var XB=new Map;async function ZB(e){let t=zD(e),n=XB.get(t);if(n)return n;let r=Y(`/api/sessions${jD(e)}`),i=(async()=>{let e=await Gt(r);if(!e.ok){let t=await e.json().catch(()=>({})),n=typeof t.error==`string`?t.error:t.error?.message;throw Error(n??`HTTP ${e.status}`)}return await e.json()})().finally(()=>{XB.delete(t)});return XB.set(t,i),i}async function QB(e){return kD(await J(Y(LD(e))))}async function $B(){return OD(await J(Y(ID())))}async function eV(e,t){let n=SD(await J(Y(MD(e,t))));if(!n.session)throw Error(`Session not found`);return n.session}async function tV(e){let t=await J(Y(`/api/sessions/resolve`),{method:`POST`,body:JSON.stringify(e)});if(!t.ok||!t.payload)throw Error(t.error??`Session not found`);return t.payload}async function nV(e){ED(await J(Y(RD(e,`delete`)),{method:`DELETE`}))}async function rV(e,t){return{renamed:DD(await J(Y(RD(e,`rename`)),{method:`POST`,body:JSON.stringify({name:t})})).renamed===!0}}async function iV(e){ED(await J(Y(RD(e,`archive`)),{method:`POST`}))}async function aV(e){ED(await J(Y(RD(e,`unarchive`)),{method:`POST`}))}async function oV(e){ED(await J(Y(RD(e,`pin`)),{method:`POST`}))}async function sV(e){ED(await J(Y(RD(e,`unpin`)),{method:`POST`}))}async function cV(e){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/export?format=json`))).content}var lV=20,uV=12,dV=5,fV=60;function pV(e,t){return e.name?.trim()||t}function mV(e){let t=/^\/chat\/([^/]+)$/.exec(e);if(!t)return;let n=decodeURIComponent(t[1]);if(n!==`new`)return n}function hV(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function gV(e){let t=new Date(e.updatedAt).getTime();return Number.isFinite(t)?t:0}function _V(e){return e.sourceChannel===`webchat`||e.sourceChannel===`web`}function vV(e,t){return X(`group relative flex w-full min-w-0 items-center rounded-lg pr-1 text-left text-sm leading-5 transition-colors duration-200 ease-out`,t?`pl-[1.125rem]`:`pl-1.5`,`focus-within:outline-none`,e?`bg-surface-active font-medium text-fg`:`font-normal text-fg-muted hover:bg-surface-hover hover:text-fg`)}var yV=`text-xs font-normal leading-5 text-fg-subtle`,bV=X(yV,`transition-colors hover:text-fg-muted`);function xV(e){let t=(0,Q.c)(5),{indented:n}=e,r=(n===void 0?!1:n)&&`pl-7`,i;t[0]===r?i=t[1]:(i=X(`flex items-center gap-2 p-1.5`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(Ft,{className:`h-3 w-4/5 animate-none`}),(0,$.jsx)(Ft,{className:`mt-1.5 h-2.5 w-2/5 animate-none`})]}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=(0,$.jsx)(`div`,{className:i,children:a}),t[3]=i,t[4]=o),o}function SV(){let e=(0,Q.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{className:`mb-1.5 h-2.5 w-14 animate-none`}),(0,$.jsx)(xV,{})]}),n=(0,$.jsx)(Ft,{className:`mb-1.5 h-2.5 w-16 animate-none`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 px-2 py-4`,"aria-busy":`true`,children:[t,(0,$.jsxs)(`div`,{children:[n,(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,$.jsx)(xV,{}),(0,$.jsx)(xV,{indented:!0}),(0,$.jsx)(xV,{indented:!0})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{className:`mb-1.5 h-2.5 w-12 animate-none`}),(0,$.jsx)(xV,{}),(0,$.jsx)(xV,{})]})]}),e[2]=r):r=e[2],r}var CV=(0,Z.memo)(function({session:e,isActive:t,indented:n=!1,showSourceChannelIcon:r,onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d}){let[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(!1),g=Zz(e.key),_=$z(t=>t.runs[e.key]),v=pV(e,d),b=e.status===`pinned`,x=async()=>{if(!m){h(!0);try{b?await sV(e.key):await oV(e.key),p(!1),a()}catch{}finally{h(!1)}}},S=async()=>{let t=await tt(e.key);if(p(!1),t){fA(`success`,c.taskChatIdCopied,void 0,{duration:2e3});return}fA(`warning`,u.copyFailed,void 0,{duration:4e3})};return(0,$.jsxs)(`div`,{className:vV(t,n),children:[(0,$.jsxs)(y,{to:`/chat/${encodeURIComponent(e.key)}`,className:X(`min-w-0 flex-1 rounded-lg py-1 outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`flex min-w-0 items-center gap-2`),title:v,onClick:()=>i?.(),onDoubleClick:t=>{t.preventDefault(),t.stopPropagation(),o(e.key)},children:[r?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:X(`flex size-4 shrink-0 items-center justify-center`,t?`text-fg-muted`:`text-fg-subtle`),title:e.sourceChannel,children:(0,$.jsx)(tL,{sourceChannel:e.sourceChannel,className:`size-3.5`})}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:v})]}):(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:v}),g?(0,$.jsxs)(`span`,{className:`pointer-events-none relative flex size-2.5 shrink-0 items-center justify-center`,title:c.taskSessionAgentRunning,"aria-label":c.taskSessionAgentRunning,children:[(0,$.jsx)(`span`,{className:`absolute size-full animate-ping rounded-full bg-accent/70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`relative size-2 rounded-full bg-accent`,"aria-hidden":!0})]}):_?.unread?(0,$.jsx)(`span`,{className:X(`pointer-events-none size-2.5 shrink-0 rounded-full`,_.status===`failed`?`bg-red-500`:`bg-emerald-500`),title:_.status===`failed`?c.taskSessionAgentFailed:c.taskSessionAgentCompleted,"aria-label":_.status===`failed`?c.taskSessionAgentFailed:c.taskSessionAgentCompleted}):null]}),(0,$.jsxs)(`div`,{className:X(`pointer-events-none absolute inset-y-0 right-1 z-10 flex items-center opacity-0 transition-opacity`,`group-hover:pointer-events-auto group-hover:opacity-100 focus-within:pointer-events-auto focus-within:opacity-100`,t?`bg-surface-active`:`bg-surface-hover`,f&&`pointer-events-auto opacity-100`),children:[(0,$.jsx)(`button`,{type:`button`,className:X(`flex h-8 w-6 shrink-0 items-center justify-center rounded-lg text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`disabled:cursor-wait`),"aria-label":b?l.unpin:l.pin,title:b?l.unpin:l.pin,"aria-pressed":b,disabled:m,onClick:()=>void x(),children:m?(0,$.jsx)(je,{className:`size-4 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):b?(0,$.jsx)(wv,{className:`size-4 rotate-45`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Cv,{className:`size-4 rotate-45`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsxs)(se,{open:f,onOpenChange:p,children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:X(`flex h-8 w-6 shrink-0 items-center justify-center rounded-lg text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),"aria-label":c.taskSessionMenuAria,title:c.taskSessionMenuAria,"aria-expanded":f,children:(0,$.jsx)(hd,{className:`size-4`,strokeWidth:2,"aria-hidden":!0})})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{className:`z-50 w-[9.25rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-elevated dark:border-edge`,side:`bottom`,align:`end`,sideOffset:4,collisionPadding:12,onCloseAutoFocus:e=>e.preventDefault(),children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:()=>{p(!1),o(e.key)},children:[(0,$.jsx)(bv,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),c.taskRename]}),(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:()=>void S(),children:[(0,$.jsx)(_c,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),c.taskCopyChatId]}),(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-red-600 transition-colors hover:bg-surface-hover dark:text-red-400`,onClick:()=>{p(!1),s(e.key)},children:[(0,$.jsx)(DC,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),c.taskDeleteTask]})]})})]})]})]})});function wV(e){let t=(0,Q.c)(70),{project:n,onNavigate:r,onPinToggle:i,onRequestRename:a,onArchive:o,onRequestRemove:s,sb:c}=e,[l,u]=(0,Z.useState)(!1),d;t[0]!==n.effectiveWorkspaceRoot||t[1]!==n.workspaceRoot?(d=n.effectiveWorkspaceRoot?.trim()||n.workspaceRoot?.trim()||``,t[0]=n.effectiveWorkspaceRoot,t[1]=n.workspaceRoot,t[2]=d):d=t[2];let f=d,p=!!(f&&window.electronAPI?.shell?.openPath),m=!!n.pinnedAt,h;t[3]!==c.projectOpenInExplorerFailed||t[4]!==c.projectOpenInExplorerUnavailable||t[5]!==f?(h=async()=>{if(!f||!window.electronAPI?.shell?.openPath){fA(`warning`,c.projectOpenInExplorerUnavailable,void 0,{duration:3500}),u(!1);return}let e=await window.electronAPI.shell.openPath(f);u(!1),e.ok===!1&&fA(`warning`,e.error||c.projectOpenInExplorerFailed,void 0,{duration:4e3})},t[3]=c.projectOpenInExplorerFailed,t[4]=c.projectOpenInExplorerUnavailable,t[5]=f,t[6]=h):h=t[6];let g=h,_=l&&`opacity-100`,v;t[7]===_?v=t[8]:(v=X(`relative z-10 flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,_,`hover:bg-surface-hover hover:text-fg-muted`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[7]=_,t[8]=v);let b;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(hd,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0}),t[9]=b):b=t[9];let x;t[10]!==l||t[11]!==c.projectMenuAria||t[12]!==v?(x=(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:v,"aria-label":c.projectMenuAria,title:c.projectMenuAria,"aria-expanded":l,children:b})}),t[10]=l,t[11]=c.projectMenuAria,t[12]=v,t[13]=x):x=t[13];let S=`/projects/${encodeURIComponent(n.id)}`,C;t[14]===r?C=t[15]:(C=()=>{u(!1),r?.()},t[14]=r,t[15]=C);let w;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(ge,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[16]=w):w=t[16];let T;t[17]!==c.projectOpen||t[18]!==S||t[19]!==C?(T=(0,$.jsxs)(y,{to:S,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:C,children:[w,c.projectOpen]}),t[17]=c.projectOpen,t[18]=S,t[19]=C,t[20]=T):T=t[20];let E;t[21]!==i||t[22]!==n?(E=()=>{u(!1),i(n)},t[21]=i,t[22]=n,t[23]=E):E=t[23];let D;t[24]===m?D=t[25]:(D=m?(0,$.jsx)(wv,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Cv,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[24]=m,t[25]=D);let O=m?c.projectUnpin:c.projectPin,k;t[26]!==E||t[27]!==D||t[28]!==O?(k=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:E,children:[D,O]}),t[26]=E,t[27]=D,t[28]=O,t[29]=k):k=t[29];let A;t[30]===g?A=t[31]:(A=()=>void g(),t[30]=g,t[31]=A);let j=!p,M=p?void 0:c.projectOpenInExplorerUnavailable,N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(Tp,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[32]=N):N=t[32];let P;t[33]!==c.projectOpenInExplorer||t[34]!==A||t[35]!==j||t[36]!==M?(P=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:text-fg-subtle disabled:hover:bg-transparent`,onClick:A,disabled:j,title:M,children:[N,c.projectOpenInExplorer]}),t[33]=c.projectOpenInExplorer,t[34]=A,t[35]=j,t[36]=M,t[37]=P):P=t[37];let F;t[38]!==a||t[39]!==n?(F=()=>{u(!1),a(n)},t[38]=a,t[39]=n,t[40]=F):F=t[40];let I;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(bv,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[41]=I):I=t[41];let L;t[42]!==c.projectRename||t[43]!==F?(L=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:F,children:[I,c.projectRename]}),t[42]=c.projectRename,t[43]=F,t[44]=L):L=t[44];let R;t[45]!==o||t[46]!==n?(R=()=>{u(!1),o(n)},t[45]=o,t[46]=n,t[47]=R):R=t[47];let z;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(Yn,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[48]=z):z=t[48];let B;t[49]!==c.projectArchive||t[50]!==R?(B=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-fg transition-colors hover:bg-surface-hover`,onClick:R,children:[z,c.projectArchive]}),t[49]=c.projectArchive,t[50]=R,t[51]=B):B=t[51];let V;t[52]!==s||t[53]!==n?(V=()=>{u(!1),s(n)},t[52]=s,t[53]=n,t[54]=V):V=t[54];let H;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(DC,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[55]=H):H=t[55];let ee;t[56]!==c.projectRemove||t[57]!==V?(ee=(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium leading-snug text-red-600 transition-colors hover:bg-surface-hover dark:text-red-400`,onClick:V,children:[H,c.projectRemove]}),t[56]=c.projectRemove,t[57]=V,t[58]=ee):ee=t[58];let te;t[59]!==T||t[60]!==k||t[61]!==P||t[62]!==L||t[63]!==B||t[64]!==ee?(te=(0,$.jsx)(re,{children:(0,$.jsxs)(de,{className:`z-50 w-[12rem] rounded-lg border border-edge bg-surface-panel p-1 shadow-elevated dark:border-edge`,side:`bottom`,align:`end`,sideOffset:4,collisionPadding:12,onCloseAutoFocus:TV,children:[T,k,P,L,B,ee]})}),t[59]=T,t[60]=k,t[61]=P,t[62]=L,t[63]=B,t[64]=ee,t[65]=te):te=t[65];let ne;return t[66]!==l||t[67]!==te||t[68]!==x?(ne=(0,$.jsxs)(se,{open:l,onOpenChange:u,children:[x,te]}),t[66]=l,t[67]=te,t[68]=x,t[69]=ne):ne=t[69],ne}function TV(e){return e.preventDefault()}function EV(e){let t=(0,Q.c)(62),{group:n,isExpanded:r,isCollapsed:i,activeSessionKey:a,onToggleExpanded:o,onToggleCollapsed:s,onCreateProjectChat:c,onToggleProjectPin:l,onRequestProjectRename:u,onArchiveProject:d,onRequestProjectRemove:f,onNavigate:p,mutate:m,onRequestRename:h,onRequestDelete:g,sb:_,sess:v,clipboard:y,defaultUnnamedTitle:b,excludedSessionKeys:x}=e,S;t[0]!==x||t[1]!==n.sessions?(S=x?n.sessions.filter(e=>!x.has(e.key)):n.sessions,t[0]=x,t[1]=n.sessions,t[2]=S):S=t[2];let C=S,w;t[3]!==r||t[4]!==C?(w=r?C:C.slice(0,dV),t[3]=r,t[4]=C,t[5]=w):w=t[5];let T=w,E=C.length>dV,D=n.sessionHasMore||E,O=r&&!n.sessionHasMore&&E,k;t[6]===a?k=t[7]:(k=e=>e.key===a,t[6]=a,t[7]=k);let A=C.some(k),j=n.project.name,M=A?`text-fg`:`text-fg-muted`,N;t[8]===M?N=t[9]:(N=X(`group flex h-7 min-w-0 items-center gap-1.5 rounded-lg px-2 text-sm font-medium leading-5`,M),t[8]=M,t[9]=N);let P;t[10]!==n.project.id||t[11]!==s?(P=()=>s(n.project.id),t[10]=n.project.id,t[11]=s,t[12]=P):P=t[12];let F=!i,I;t[13]===n.project.name?I=t[14]:(I=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.project.name}),t[13]=n.project.name,t[14]=I);let L;t[15]!==n.project.name||t[16]!==P||t[17]!==F||t[18]!==I?(L=(0,$.jsx)(`button`,{type:`button`,className:`flex h-7 min-w-0 flex-1 items-center gap-1 text-left hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:P,title:n.project.name,"aria-expanded":F,children:I}),t[15]=n.project.name,t[16]=P,t[17]=F,t[18]=I,t[19]=L):L=t[19];let R;t[20]!==n.project||t[21]!==d||t[22]!==p||t[23]!==f||t[24]!==u||t[25]!==l||t[26]!==_?(R=(0,$.jsx)(wV,{project:n.project,onNavigate:p,onPinToggle:l,onRequestRename:u,onArchive:d,onRequestRemove:f,sb:_}),t[20]=n.project,t[21]=d,t[22]=p,t[23]=f,t[24]=u,t[25]=l,t[26]=_,t[27]=R):R=t[27];let z;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=X(`flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity hover:bg-surface-hover hover:text-fg-muted`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[28]=z):z=t[28];let B;t[29]!==n.project||t[30]!==c?(B=()=>c(n.project),t[29]=n.project,t[30]=c,t[31]=B):B=t[31];let V;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(Me,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[32]=V):V=t[32];let H;t[33]!==_.projectNewChat||t[34]!==B?(H=(0,$.jsx)(`button`,{type:`button`,className:z,onClick:B,title:_.projectNewChat,"aria-label":_.projectNewChat,children:V}),t[33]=_.projectNewChat,t[34]=B,t[35]=H):H=t[35];let ee;t[36]!==L||t[37]!==R||t[38]!==H||t[39]!==N?(ee=(0,$.jsxs)(`div`,{className:N,children:[L,R,H]}),t[36]=L,t[37]=R,t[38]=H,t[39]=N,t[40]=ee):ee=t[40];let te;t[41]!==a||t[42]!==D||t[43]!==y||t[44]!==b||t[45]!==n.project.id||t[46]!==n.sessionLoading||t[47]!==i||t[48]!==m||t[49]!==p||t[50]!==g||t[51]!==h||t[52]!==o||t[53]!==_||t[54]!==v||t[55]!==O||t[56]!==T?(te=i?null:(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[T.map(e=>(0,$.jsx)(CV,{session:e,isActive:a===e.key,indented:!0,showSourceChannelIcon:!_V(e),onNavigate:p,mutate:m,onRequestRename:h,onRequestDelete:g,sb:_,sess:v,clipboard:y,defaultUnnamedTitle:b},e.key)),D?(0,$.jsxs)(`button`,{type:`button`,className:`ml-4 flex w-fit items-center gap-1 rounded-lg px-2 py-1 text-xs font-medium text-fg-subtle transition-colors hover:bg-surface-hover hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:()=>o(n.project.id),disabled:n.sessionLoading,"aria-busy":n.sessionLoading||void 0,children:[n.sessionLoading?(0,$.jsx)(je,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(is,{className:X(`size-3.5 transition-transform duration-150 ease-out`,O&&`rotate-180`),strokeWidth:1.75,"aria-hidden":!0}),O?_.projectShowLess:_.projectShowMore]}):null]}),t[41]=a,t[42]=D,t[43]=y,t[44]=b,t[45]=n.project.id,t[46]=n.sessionLoading,t[47]=i,t[48]=m,t[49]=p,t[50]=g,t[51]=h,t[52]=o,t[53]=_,t[54]=v,t[55]=O,t[56]=T,t[57]=te):te=t[57];let ne;return t[58]!==n.project.name||t[59]!==ee||t[60]!==te?(ne=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":j,children:[ee,te]}),t[58]=n.project.name,t[59]=ee,t[60]=te,t[61]=ne):ne=t[61],ne}function DV(e){let t=(0,Q.c)(57),{sessions:n,hasMore:r,loadingMore:i,isCollapsed:a,onToggleCollapsed:o,onCreateChat:s,onLoadMore:c,activeSessionKey:l,onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_,excludedSessionKeys:v}=e,y;t[0]!==v||t[1]!==n?(y=v?n.filter(e=>!v.has(e.key)):n,t[0]=v,t[1]=n,t[2]=y):y=t[2];let b=y;if(b.length===0&&!r)return null;let x=m.inboxHeading,S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=X(`flex min-w-0 flex-1 items-center gap-1 px-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,bV),t[3]=S):S=t[3];let C=!a,w=m.inboxHeading,T=a&&`-rotate-90`,E;t[4]===T?E=t[5]:(E=X(`size-3.5 transition-transform duration-150 ease-out`,T),t[4]=T,t[5]=E);let D;t[6]===E?D=t[7]:(D=(0,$.jsx)(is,{className:E,strokeWidth:1.75,"aria-hidden":!0}),t[6]=E,t[7]=D);let O;t[8]!==o||t[9]!==m.inboxHeading||t[10]!==C||t[11]!==D?(O=(0,$.jsxs)(`button`,{type:`button`,className:S,onClick:o,"aria-expanded":C,children:[w,D]}),t[8]=o,t[9]=m.inboxHeading,t[10]=C,t[11]=D,t[12]=O):O=t[12];let k;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=X(`flex size-7 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-opacity hover:bg-surface-hover hover:text-fg-muted`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),t[13]=k):k=t[13];let A;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(Me,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[14]=A):A=t[14];let j;t[15]!==_||t[16]!==s?(j=(0,$.jsx)(`button`,{type:`button`,className:k,onClick:s,title:_,"aria-label":_,children:A}),t[15]=_,t[16]=s,t[17]=j):j=t[17];let M;t[18]!==j||t[19]!==O?(M=(0,$.jsxs)(`div`,{className:`group flex min-w-0 items-center pb-1`,children:[O,j]}),t[18]=j,t[19]=O,t[20]=M):M=t[20];let N=a&&`hidden`,P;t[21]===N?P=t[22]:(P=X(`flex flex-col gap-0.5`,N),t[21]=N,t[22]=P);let F;if(t[23]!==l||t[24]!==g||t[25]!==_||t[26]!==d||t[27]!==u||t[28]!==p||t[29]!==f||t[30]!==m||t[31]!==h||t[32]!==b){let e;t[34]!==l||t[35]!==g||t[36]!==_||t[37]!==d||t[38]!==u||t[39]!==p||t[40]!==f||t[41]!==m||t[42]!==h?(e=e=>(0,$.jsx)(CV,{session:e,isActive:l===e.key,indented:!0,showSourceChannelIcon:!_V(e),onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_},e.key),t[34]=l,t[35]=g,t[36]=_,t[37]=d,t[38]=u,t[39]=p,t[40]=f,t[41]=m,t[42]=h,t[43]=e):e=t[43],F=b.map(e),t[23]=l,t[24]=g,t[25]=_,t[26]=d,t[27]=u,t[28]=p,t[29]=f,t[30]=m,t[31]=h,t[32]=b,t[33]=F}else F=t[33];let I;t[44]!==r||t[45]!==i||t[46]!==c||t[47]!==m.projectShowMore?(I=r?(0,$.jsxs)(`button`,{type:`button`,className:`ml-4 flex w-fit items-center gap-1 rounded-lg px-2 py-1 text-xs font-medium text-fg-subtle transition-colors hover:bg-surface-hover hover:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,onClick:c,disabled:i,"aria-busy":i||void 0,children:[i?(0,$.jsx)(je,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(is,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),m.projectShowMore]}):null,t[44]=r,t[45]=i,t[46]=c,t[47]=m.projectShowMore,t[48]=I):I=t[48];let L;t[49]!==P||t[50]!==F||t[51]!==I?(L=(0,$.jsxs)(`div`,{className:P,children:[F,I]}),t[49]=P,t[50]=F,t[51]=I,t[52]=L):L=t[52];let R;return t[53]!==m.inboxHeading||t[54]!==M||t[55]!==L?(R=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":x,children:[M,L]}),t[53]=m.inboxHeading,t[54]=M,t[55]=L,t[56]=R):R=t[56],R}function OV(e){let t=(0,Q.c)(30),{sessions:n,activeSessionKey:r,onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d}=e;if(n.length===0)return null;let f=l.pinnedSessions,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=X(`px-2 pb-1`,yV),t[0]=p):p=t[0];let m;t[1]===l.pinnedSessions?m=t[2]:(m=(0,$.jsx)(`h2`,{className:p,children:l.pinnedSessions}),t[1]=l.pinnedSessions,t[2]=m);let h;if(t[3]!==r||t[4]!==u||t[5]!==d||t[6]!==a||t[7]!==i||t[8]!==s||t[9]!==o||t[10]!==c||t[11]!==l||t[12]!==n){let e;t[14]!==r||t[15]!==u||t[16]!==d||t[17]!==a||t[18]!==i||t[19]!==s||t[20]!==o||t[21]!==c||t[22]!==l?(e=e=>(0,$.jsx)(CV,{session:e,isActive:r===e.key,showSourceChannelIcon:!_V(e),onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d},e.key),t[14]=r,t[15]=u,t[16]=d,t[17]=a,t[18]=i,t[19]=s,t[20]=o,t[21]=c,t[22]=l,t[23]=e):e=t[23],h=n.map(e),t[3]=r,t[4]=u,t[5]=d,t[6]=a,t[7]=i,t[8]=s,t[9]=o,t[10]=c,t[11]=l,t[12]=n,t[13]=h}else h=t[13];let g;t[24]===h?g=t[25]:(g=(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:h}),t[24]=h,t[25]=g);let _;return t[26]!==l.pinnedSessions||t[27]!==m||t[28]!==g?(_=(0,$.jsxs)(`section`,{className:`mb-3 flex flex-col gap-0.5`,"aria-label":f,children:[m,g]}),t[26]=l.pinnedSessions,t[27]=m,t[28]=g,t[29]=_):_=t[29],_}function kV({onNavigate:e}){let t=rt(ct(e=>e.language)),n=t.sidebar,r=t.sessions,i=t.projectsPage,a=t.chat.workingDirectory,o=ut(e=>e.token),s=ut(e=>e.openTokenDialog),{data:c,mutate:u}=mt(o?[`gateway-chat-agents`,o]:null,iL,{revalidateOnFocus:!1}),d=c?.defaultId??`main`;(0,Z.useEffect)(()=>{let e=()=>void u();return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[u]);let{pathname:f}=l(),m=p(),h=mV(f),g=(0,Z.useMemo)(()=>Date.now()-fV*24*60*60*1e3,[]),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(``),[x,S]=(0,Z.useState)(null),[C,w]=(0,Z.useState)(null),[T,E]=(0,Z.useState)(``),[D,O]=(0,Z.useState)(null),[k,A]=(0,Z.useState)(!1),[j,M]=(0,Z.useState)(``),[N,P]=(0,Z.useState)(``),[F,I]=(0,Z.useState)(null),[L,z]=(0,Z.useState)(!1),[U,W]=(0,Z.useState)(()=>h),[re,ie]=(0,Z.useState)(!1),[ae,oe]=(0,Z.useState)(!1),[se,ce]=(0,Z.useState)(()=>new Set),[le,ue]=(0,Z.useState)(()=>new Set),[de,fe]=(0,Z.useState)({}),[pe,me]=(0,Z.useState)(()=>new Set),[G,he]=(0,Z.useState)([]),[ge,_e]=(0,Z.useState)(null),[ve,ye]=(0,Z.useState)(!1),be=dB({initialPath:N,onPicked:P}),{data:xe,size:Se,setSize:Ce,isValidating:we,mutate:Te}=_t((e,t)=>!o||t&&!t.projects.hasMore?null:[`sidebar-chat-list`,o,U??``,e],async([,,e,t])=>QB({projectLimit:uV,projectOffset:t*uV,sessionPreviewLimit:dV,inboxLimit:t===0?lV:1,inboxOffset:0,staleDays:fV,includeSessionKey:e||void 0}),{keepPreviousData:!0,revalidateOnFocus:!1}),Ee=(0,Z.useMemo)(()=>{let e=xe??[],t=[],n=new Set;for(let r of e)for(let e of r.projects.items){if(n.has(e.project.id))continue;n.add(e.project.id);let r=de[e.project.id],i=r?.sessions??e.sessions;t.push({project:e.project,sessions:i,sessionTotal:r?.sessionTotal??e.sessionTotal,sessionHasMore:r?.hasMore??e.sessionHasMore,sessionLoading:pe.has(e.project.id)})}return t},[xe,pe,de]),De=xe?.[0]?.inbox,Oe=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of[...De?.items??[],...G])t.has(n.key)||(t.add(n.key),e.push(n));return e.sort((e,t)=>gV(t)-gV(e)),e},[De?.items,G]),ke=ge??De?.hasMore??!1,Ae=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of Ee)for(let r of n.sessions)t.has(r.key)||(t.add(r.key),e.push(r));for(let n of Oe)t.has(n.key)||(t.add(n.key),e.push(n));return e},[Oe,Ee]),Ne=(0,Z.useMemo)(()=>new Set(Ae.map(e=>e.key)),[Ae]),Pe=Ee.length>0||Oe.length>0,Fe=(0,Z.useMemo)(()=>Ae.filter(e=>e.status===`pinned`).sort((e,t)=>gV(t)-gV(e)),[Ae]),Ie=(0,Z.useMemo)(()=>new Set(Fe.map(e=>e.key)),[Fe]),Le=!!(xe&&Se>xe.length),Re=(xe?.[xe.length-1])?.projects.hasMore??!1,ze=!!(o&&!xe&&we),Be=(0,Z.useCallback)(()=>{fe({}),he([]),_e(null),Te()},[Te]),Ve=(0,Z.useCallback)(e=>{let t=e.currentTarget;if(!Re||Le)return;let{scrollTop:n,scrollHeight:r,clientHeight:i}=t;r-n-i>100||Ce(e=>e+1)},[Re,Le,Ce]);(0,Z.useEffect)(()=>{if(!o)return;let e=()=>{Be()},t=e=>{if(!e.detail?.key){Be();return}Be()},n=e=>{nL(e.detail,Ne)&&Be()};return window.addEventListener(`session-updated`,t),window.addEventListener(`session-created`,e),window.addEventListener(`session-transcript-updated`,n),()=>{window.removeEventListener(`session-updated`,t),window.removeEventListener(`session-created`,e),window.removeEventListener(`session-transcript-updated`,n)}},[o,Be,Ne]),(0,Z.useEffect)(()=>{!o||!h||!xe||Ae.some(e=>e.key===h)||W(e=>e===h?e:h)},[h,xe,Ae,o]);let K=(0,Z.useCallback)(e=>{let t=Ae.find(t=>t.key===e);v(e),b(t?.name?.trim()??``)},[Ae]),He=async()=>{if(!_)return;let e=y.trim();if(e)try{await rV(_,e),v(null),Be()}catch{}},Ue=async e=>{try{await nV(e),h===e&&m(`/chat/new?projectScope=none`,{state:{forceNewChat:!0}}),Be()}catch{}},We=(0,Z.useCallback)(e=>{w(e.id),E(e.name.trim())},[]),Ge=async()=>{if(!C)return;let e=T.trim();if(e)try{await LB(C,e),w(null),Be(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:C}}))}catch{}},q=(0,Z.useCallback)(async e=>{try{await RB(e.id),f===`/projects/${encodeURIComponent(e.id)}`&&m(`/projects`),Be(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[m,f,Be]),Ke=(0,Z.useCallback)(async e=>{try{e.pinnedAt?await VB(e.id):await BB(e.id),Be(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[Be]),qe=async e=>{try{await HB(e),f===`/projects/${encodeURIComponent(e)}`&&m(`/projects`),Be(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e}}))}catch{}},Je=(0,Z.useCallback)(e=>{let t=Ee.find(t=>t.project.id===e);if(t){if(le.has(e)&&!t.sessionHasMore){ue(t=>{let n=new Set(t);return n.delete(e),n});return}ue(t=>{let n=new Set(t);return n.add(e),n}),!(!t.sessionHasMore||pe.has(e))&&(me(t=>new Set(t).add(e)),(async()=>{try{let n=await ZB({projectId:e,limit:lV,offset:t.sessions.length,updatedAfter:g,includePinned:!0,includeSessionKey:h});fe(r=>{let i=r[e]?.sessions??t.sessions,a=new Set(i.map(e=>e.key)),o=[...i];for(let e of n.items)a.has(e.key)||(a.add(e.key),o.push(e));return o.sort((e,t)=>gV(t)-gV(e)),{...r,[e]:{sessions:o,sessionTotal:n.total,hasMore:n.hasMore}}})}finally{me(t=>{let n=new Set(t);return n.delete(e),n})}})())}},[h,le,pe,Ee,g]),Ye=(0,Z.useCallback)(e=>{ce(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),Xe=(0,Z.useCallback)(()=>{!ke||ve||(ye(!0),(async()=>{try{let e=await ZB({unassigned:!0,limit:lV,offset:Oe.length,updatedAfter:g,includePinned:!0,includeSessionKey:h});he(t=>{let n=new Set([...De?.items??[],...t].map(e=>e.key)),r=[...t];for(let t of e.items)n.has(t.key)||(n.add(t.key),r.push(t));return r}),_e(e.hasMore)}finally{ye(!1)}})())},[h,De?.items,ke,Oe.length,ve,g]),Ze=(0,Z.useCallback)(t=>{m(_L(t.id),{state:{forceNewChat:!0,agentId:t.defaultAgentId??d}}),e?.()},[d,m,e]),Qe=(0,Z.useCallback)(async e=>{e.preventDefault();let t=j.trim(),n=N.trim();if(!(!t||!n||L)){z(!0),I(null);try{let e=await PB({name:t,workspaceRoot:n});M(``),P(``),A(!1),Be(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch(e){I(e instanceof Error?e.message:String(e))}finally{z(!1)}}},[j,N,L,Be]),$e=_?Ae.find(e=>e.key===_):void 0,et=C?Ee.find(e=>e.project.id===C)?.project:void 0,tt=D?Ee.find(e=>e.project.id===D)?.project:void 0;return o?(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:X(`app-sidebar-nav-scroll min-h-0 flex-1 overflow-y-auto overscroll-y-contain`,`pb-2`),onScroll:Ve,children:[ze?(0,$.jsx)(SV,{}):Pe?(0,$.jsxs)(`div`,{className:`flex flex-col px-2 pt-4`,children:[(0,$.jsx)(OV,{sessions:Fe,activeSessionKey:h,onNavigate:e,mutate:Be,onRequestRename:K,onRequestDelete:S,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession}),Ee.length>0?(0,$.jsxs)(`div`,{className:`pb-1`,children:[(0,$.jsxs)(`div`,{className:`group flex items-center justify-between px-2 pb-1`,children:[(0,$.jsxs)(`button`,{type:`button`,className:X(`flex items-center gap-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,bV),onClick:()=>ie(e=>!e),"aria-expanded":!re,children:[n.projectsHeading,(0,$.jsx)(is,{className:X(`size-3.5 transition-transform duration-150 ease-out`,re&&`-rotate-90`),strokeWidth:1.75,"aria-hidden":!0})]}),(0,$.jsx)(`button`,{type:`button`,className:X(`flex size-6 items-center justify-center rounded-md text-fg-subtle opacity-0 transition-[color,background-color,opacity] hover:bg-surface-hover hover:text-fg focus:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`group-hover:opacity-100 group-focus-within:opacity-100`,k&&`opacity-100`),onClick:()=>A(!0),"aria-label":i.createTitle,title:i.createTitle,children:(0,$.jsx)(Me,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0})})]}),re?null:Ee.map(i=>(0,$.jsx)(EV,{group:i,isExpanded:le.has(i.project.id),isCollapsed:se.has(i.project.id),activeSessionKey:h,onToggleExpanded:Je,onToggleCollapsed:Ye,onCreateProjectChat:e=>void Ze(e),onToggleProjectPin:e=>void Ke(e),onRequestProjectRename:We,onArchiveProject:e=>void q(e),onRequestProjectRemove:e=>O(e.id),onNavigate:e,mutate:Be,onRequestRename:K,onRequestDelete:S,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession,excludedSessionKeys:Ie},i.project.id))]}):null,(0,$.jsx)(DV,{sessions:Oe,hasMore:ke,loadingMore:ve,isCollapsed:ae,onToggleCollapsed:()=>oe(e=>!e),onCreateChat:()=>{m(`/chat/new?projectScope=none`,{state:{forceNewChat:!0}}),e?.()},onLoadMore:Xe,activeSessionKey:h,onNavigate:e,mutate:Be,onRequestRename:K,onRequestDelete:S,sb:n,sess:r,clipboard:t.clipboard,defaultUnnamedTitle:t.chat.newSession,excludedSessionKeys:Ie})]}):(0,$.jsx)(`div`,{className:`px-4 pb-2`,children:(0,$.jsx)(`p`,{className:`rounded-xl bg-surface-panel p-3 text-xs leading-relaxed text-fg-muted`,children:n.taskListEmpty})}),Le?(0,$.jsx)(`div`,{className:`flex justify-center py-2`,"aria-busy":!0,children:(0,$.jsx)(je,{className:`size-4 animate-spin text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})}):null]}),(0,$.jsx)(ne,{open:k,onOpenChange:e=>{L||(A(e),e||I(null))},children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(ee,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[90] flex h-[min(30rem,calc(100vh-2rem))] w-[min(36rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge px-5 py-4`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:i.createTitle}),(0,$.jsx)(B,{className:`mt-1 text-sm text-fg-muted`,children:i.createDescription})]}),(0,$.jsxs)(`form`,{onSubmit:Qe,className:`flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-5 py-4`,children:[(0,$.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium text-fg`,children:[i.projectName,(0,$.jsx)(`input`,{autoFocus:!0,className:`h-10 rounded-lg border border-edge bg-surface-base px-3 font-normal outline-none focus:border-accent focus:ring-2 focus:ring-accent/20`,value:j,onChange:e=>M(e.target.value),maxLength:160})]}),(0,$.jsxs)(`div`,{className:`grid gap-1.5 text-sm`,children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:i.workspaceRoot}),(0,$.jsxs)(`button`,{type:`button`,className:`flex min-h-12 w-full items-center gap-3 rounded-lg border border-edge bg-surface-base px-3 py-2 text-left outline-none transition-colors hover:bg-surface-hover focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/20 disabled:cursor-not-allowed disabled:opacity-60`,onClick:be.pick,disabled:L||be.picking,children:[be.picking?(0,$.jsx)(je,{className:`size-5 shrink-0 animate-spin text-accent`,"aria-hidden":!0}):(0,$.jsx)(Tp,{className:`size-5 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:N?a.chooseFolder:a.selectWorkingDirectory}),(0,$.jsx)(`span`,{className:X(`mt-0.5 block truncate font-mono text-xs font-normal`,N?`text-fg-muted`:`text-fg-subtle`),title:N||void 0,children:N||i.workspaceSelectionPlaceholder})]})]}),(0,$.jsx)(`p`,{className:`text-xs font-normal text-fg-subtle`,children:i.workspaceSelectionHint})]}),F?(0,$.jsx)(`p`,{className:`rounded-lg bg-danger-soft px-3 py-2 text-xs text-danger`,role:`alert`,children:F}):null]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-5 py-4`,children:[(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:L,children:i.cancel})}),(0,$.jsx)(vt,{type:`submit`,variant:`primary`,disabled:L||!j.trim()||!N.trim(),children:L?i.home.creating:i.create})]})]})]})]})}),be.hasNativePicker?null:(0,$.jsx)(SB,{open:be.modalOpen,onOpenChange:be.setModalOpen,initialAbsolutePath:N||void 0,onConfirm:be.confirmPick,wd:a}),(0,$.jsx)(ne,{open:_!==null,onOpenChange:e=>!e&&v(null),children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(ee,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:n.taskRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-rename-input`,children:n.taskRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-rename-input`,type:`text`,value:y,onChange:e=>b(e.target.value),className:X(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,yj,`dark:border-edge`),placeholder:$e?pV($e,t.chat.newSession):``,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),He())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:()=>v(null),children:n.taskRenameCancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,onClick:()=>void He(),disabled:!y.trim(),children:n.taskRenameSave})]})]})]})}),(0,$.jsx)(ne,{open:x!==null,onOpenChange:e=>!e&&S(null),children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(ee,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:r.deleteSessionTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:x?hV(r.deleteSessionMessage,{name:Ae.find(e=>e.key===x)?.name?.trim()||t.chat.newSession}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:()=>S(null),children:r.cancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{x&&Ue(x),S(null)},children:r.delete})]})]})]})}),(0,$.jsx)(ne,{open:C!==null,onOpenChange:e=>!e&&w(null),children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(ee,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,24rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:n.projectRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-project-rename-input`,children:n.projectRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-project-rename-input`,type:`text`,value:T,onChange:e=>E(e.target.value),className:X(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,yj,`dark:border-edge`),placeholder:et?.name??``,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),Ge())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:()=>w(null),children:n.taskRenameCancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,onClick:()=>void Ge(),disabled:!T.trim(),children:n.taskRenameSave})]})]})]})}),(0,$.jsx)(ne,{open:D!==null,onOpenChange:e=>!e&&O(null),children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(ee,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:n.projectRemoveTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-fg-muted`,children:tt?hV(n.projectRemoveMessage,{name:tt.name}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:()=>O(null),children:r.cancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{D&&qe(D),O(null)},children:n.projectRemove})]})]})]})})]}):(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:(0,$.jsx)(`div`,{className:`flex flex-col gap-1.5 px-4 pt-4`,children:(0,$.jsxs)(`div`,{className:`rounded-xl bg-surface-panel p-3`,children:[(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:n.taskListNeedToken}),(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`mt-3 h-8 w-full text-xs font-medium`,onClick:()=>{s(),e?.()},children:n.taskListAddToken})]})})})}var AV=42,jV=`xopc-web-sidebar-visible-app-count`;function MV(e){return Math.min(4,Math.max(2,e))}function NV(){try{let e=Number.parseInt(globalThis.localStorage?.getItem(jV)??``,10);return Number.isFinite(e)?MV(e):PI}catch{return PI}}function PV({onNavigate:e,collapsed:t=!1}){let n=rt(ct(e=>e.language)),[r,i]=(0,Z.useState)(NV),a=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{try{globalThis.localStorage?.setItem(jV,String(r))}catch{}},[r]);function o(e){e.preventDefault(),a.current={clientY:e.clientY,visibleCount:r},e.currentTarget.setPointerCapture(e.pointerId)}function s(e){let t=a.current;if(!t)return;let n=Math.round((e.clientY-t.clientY)/AV);i(MV(t.visibleCount+n))}function c(e){a.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}function l(e){e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),i(e=>MV(e+1))):e.key===`ArrowUp`||e.key===`ArrowLeft`?(e.preventDefault(),i(e=>MV(e-1))):e.key===`Home`?(e.preventDefault(),i(2)):e.key===`End`&&(e.preventDefault(),i(4))}return(0,$.jsxs)(`div`,{className:`app-sidebar-content flex min-h-0 flex-1 flex-col`,children:[(0,$.jsx)(`nav`,{className:X(`shrink-0 pt-4`,t?`px-1.5`:`px-4`),"aria-label":`Main`,children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[t?null:(0,$.jsxs)(y,{to:`/chat/new`,state:{forceNewChat:!0},className:X(`flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-sm font-medium leading-5 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`text-fg hover:bg-surface-hover`),title:n.sidebar.newTask,onClick:()=>e?.(),children:[(0,$.jsx)(Me,{className:`size-4 shrink-0 text-accent-fg`,strokeWidth:2,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:n.sidebar.newTask})]}),(0,$.jsx)(qI,{collapsed:t,onNavigate:e,visibleLimit:t?PI:r})]})}),t?null:(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,"aria-label":n.sidebar.resizeApps,"aria-valuemin":2,"aria-valuemax":4,"aria-valuenow":r,tabIndex:0,className:`group flex h-3 shrink-0 touch-none cursor-row-resize items-center px-4 focus-visible:outline-none`,title:n.sidebar.resizeApps,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:c,onKeyDown:l,children:(0,$.jsx)(`span`,{className:`h-px w-full bg-edge-subtle transition-colors group-hover:bg-edge group-focus-visible:bg-accent`})}),(0,$.jsx)(`div`,{className:X(`flex min-h-0 flex-1 flex-col overflow-hidden`,t&&`hidden`),"aria-hidden":t?!0:void 0,children:(0,$.jsx)(kV,{onNavigate:e})}),(0,$.jsx)(UN,{collapsed:t,onNavigate:e})]})}var FV=`(min-width: 768px)`,IV=(0,Z.memo)(function(){let e=(0,Q.c)(42),t=ct(LV),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n,i=NM(RV),a=NM(zV),o=NM(BV),s=VM(VV),c=VM(HV),[l,u]=(0,Z.useState)(!1),d=mM({runtime:pM(),sidebarCollapsed:i,mobileNavOpen:s}),f;e[2]!==o||e[3]!==i?(f=e=>{if(i)return;e.preventDefault();let t=e.currentTarget,n=t.parentElement;t.setPointerCapture(e.pointerId),u(!0);let r=e.clientX,a=NM.getState().expandedWidthPx,s=e.pointerId,c=0,l=a,d=a,f=()=>{c=0,d=l,n?.style.setProperty(`--sidebar-expanded-px`,`${d}px`)},p=e=>{l=AM(a+(e.clientX-r)),c===0&&(c=window.requestAnimationFrame(f))},m=()=>{c!==0&&(window.cancelAnimationFrame(c),f());try{t.releasePointerCapture(s)}catch{}u(!1),o(d),window.removeEventListener(`pointermove`,p),window.removeEventListener(`pointerup`,m),window.removeEventListener(`pointercancel`,m)};window.addEventListener(`pointermove`,p),window.addEventListener(`pointerup`,m),window.addEventListener(`pointercancel`,m)},e[2]=o,e[3]=i,e[4]=f):f=e[4];let p=f,m,h;e[5]===c?(m=e[6],h=e[7]):(m=()=>{let e=e=>{e.key===`Escape`&&c(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},h=[c],e[5]=c,e[6]=m,e[7]=h),(0,Z.useEffect)(m,h);let g,_;e[8]===c?(g=e[9],_=e[10]):(g=()=>{let e=window.matchMedia(FV),t=()=>{e.matches&&c(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},_=[c],e[8]=c,e[9]=g,e[10]=_),(0,Z.useEffect)(g,_);let v,y;e[11]===s?(v=e[12],y=e[13]):(v=()=>{if(!s||!window.matchMedia(`(max-width: 767px)`).matches)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},y=[s],e[11]=s,e[12]=v,e[13]=y),(0,Z.useEffect)(v,y);let b;e[14]!==r||e[15]!==s||e[16]!==c?(b=s?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 bg-scrim md:hidden`,"aria-label":r.closeMenu,onClick:()=>c(!1)}):null,e[14]=r,e[15]=s,e[16]=c,e[17]=b):b=e[17];let x=l&&`sidebar-width-resizing`,S=s?`max-md:translate-x-0`:`max-md:-translate-x-full`,C=i?`md:w-0 md:overflow-hidden md:border-0`:`app-sidebar-expanded-width`,w;e[18]!==x||e[19]!==S||e[20]!==C?(w=X(`app-sidebar-push app-chrome-sidebar flex min-h-0 shrink-0 flex-col overflow-hidden bg-transparent`,x,`max-md:fixed max-md:left-0 max-md:top-0 max-md:z-50 max-md:h-[100dvh] max-md:w-[min(16rem,85vw)]`,`max-md:transition-transform max-md:duration-200 max-md:ease-out`,`motion-reduce:max-md:transition-none`,S,`md:relative md:h-full md:translate-x-0`,C),e[18]=x,e[19]=S,e[20]=C,e[21]=w):w=e[21];let T=i&&!s?!0:void 0,E=i&&!s?!0:void 0,D;e[22]!==a||e[23]!==i?(D=i?void 0:{"--sidebar-expanded-px":`${a}px`},e[22]=a,e[23]=i,e[24]=D):D=e[24];let O=d.sidebarChromeVisible?(0,$.jsxs)(`div`,{className:X(`sidebar-chrome-row flex min-w-0`,mj,d.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,d.sidebarLeadingInsetClass,i?`justify-center gap-1 px-1.5 max-md:flex`:X(`justify-start gap-1`,d.sidebarLeadingInsetClass?`sidebar-chrome-row-darwin pr-3`:`px-3`),i&&`md:hidden`),children:[s?(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:X(`size-8 shrink-0 rounded-xl p-0 md:hidden`,pj),"aria-label":r.closeMenu,title:r.closeMenu,onClick:()=>c(!1),children:(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0})}):null,d.sidebarQuickActionsVisible&&!i?(0,$.jsx)(RM,{sidebarToggleVariant:`sidebar`,className:`overflow-hidden`}):null]}):null,k;e[25]===c?k=e[26]:(k=(0,$.jsx)(PV,{collapsed:!1,onNavigate:()=>c(!1)}),e[25]=c,e[26]=k);let A;e[27]!==r||e[28]!==p||e[29]!==i?(A=i?null:(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":r.sidebar.resizeHandleAria,onPointerDown:p,className:X(`pointer-events-auto absolute right-0 top-0 z-10 hidden h-full w-2 shrink-0 cursor-col-resize md:block`,`touch-none select-none`,pj)}),e[27]=r,e[28]=p,e[29]=i,e[30]=A):A=e[30];let j;e[31]!==w||e[32]!==T||e[33]!==E||e[34]!==D||e[35]!==O||e[36]!==k||e[37]!==A?(j=(0,$.jsxs)(`aside`,{id:`app-sidebar`,className:w,"aria-hidden":T,"data-collapsed":E,style:D,children:[O,k,A]}),e[31]=w,e[32]=T,e[33]=E,e[34]=D,e[35]=O,e[36]=k,e[37]=A,e[38]=j):j=e[38];let M;return e[39]!==j||e[40]!==b?(M=(0,$.jsxs)($.Fragment,{children:[b,j]}),e[39]=j,e[40]=b,e[41]=M):M=e[41],M});function LV(e){return e.language}function RV(e){return e.collapsed}function zV(e){return e.expandedWidthPx}function BV(e){return e.setExpandedWidthPx}function VV(e){return e.mobileNavOpen}function HV(e){return e.setMobileNavOpen}function UV(e){let t=(0,Q.c)(34),{open:n,title:r,description:i,confirmLabel:a,cancelLabel:o,destructive:s,checkboxLabel:c,checkboxChecked:l,onCheckboxCheckedChange:u,onConfirm:d,onCancel:f}=e,p=l===void 0?!1:l,m=(0,Z.useId)(),h;t[0]===f?h=t[1]:(h=e=>{e||f()},t[0]=f,t[1]=h);let g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(R,{className:X(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[1px]`,Rt)}),t[2]=g):g=t[2];let _;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=X(`fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2`,It,`rounded-2xl border border-edge bg-surface-panel p-6 shadow-popover outline-none dark:border-edge`),t[3]=_):_=t[3];let v;t[4]===r?v=t[5]:(v=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:r}),t[4]=r,t[5]=v);let y;t[6]===i?y=t[7]:(y=(0,$.jsx)(B,{className:`mt-2 max-h-[min(50vh,16rem)] overflow-y-auto text-sm text-fg-muted whitespace-pre-wrap break-all`,children:i}),t[6]=i,t[7]=y);let b;t[8]!==p||t[9]!==m||t[10]!==c||t[11]!==u?(b=c?(0,$.jsxs)(`label`,{htmlFor:m,className:`mt-5 flex w-fit cursor-pointer items-center gap-2.5 text-sm text-fg`,children:[(0,$.jsx)(`input`,{id:m,type:`checkbox`,checked:p,onChange:e=>u?.(e.target.checked),className:`size-4 rounded border-edge accent-accent`}),(0,$.jsx)(`span`,{children:c})]}):null,t[8]=p,t[9]=m,t[10]=c,t[11]=u,t[12]=b):b=t[12];let x;t[13]!==o||t[14]!==f?(x=(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:f,children:o}),t[13]=o,t[14]=f,t[15]=x):x=t[15];let S=s&&`border-danger/40 bg-danger text-white hover:bg-danger/90 dark:border-danger/40`,C;t[16]===S?C=t[17]:(C=X(S),t[16]=S,t[17]=C);let w;t[18]!==a||t[19]!==d||t[20]!==C?(w=(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:C,onClick:d,children:a}),t[18]=a,t[19]=d,t[20]=C,t[21]=w):w=t[21];let T;t[22]!==w||t[23]!==x?(T=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[x,w]}),t[22]=w,t[23]=x,t[24]=T):T=t[24];let E;t[25]!==T||t[26]!==v||t[27]!==y||t[28]!==b?(E=(0,$.jsxs)(H,{children:[g,(0,$.jsxs)(ee,{className:_,children:[v,y,b,T]})]}),t[25]=T,t[26]=v,t[27]=y,t[28]=b,t[29]=E):E=t[29];let D;return t[30]!==n||t[31]!==E||t[32]!==h?(D=(0,$.jsx)(ne,{open:n,onOpenChange:h,children:E}),t[30]=n,t[31]=E,t[32]=h,t[33]=D):D=t[33],D}var WV=450,GV=900;function KV(e){return new Promise(t=>window.setTimeout(t,e))}function qV({label:e,loading:t=!1,disabled:n=!1,className:r,iconClassName:i,strokeWidth:a=1.75,onClick:o,variant:s=`ghost`,type:c=`button`,title:l,"aria-label":u,...d}){let[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(!1),g=(0,Z.useRef)(null),_=(0,Z.useRef)(!1),v=(0,Z.useCallback)(()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null)},[]),y=(0,Z.useCallback)(()=>{v(),h(!0),g.current=window.setTimeout(()=>{h(!1),g.current=null},GV)},[v]);(0,Z.useEffect)(()=>v,[v]),(0,Z.useEffect)(()=>{if(t){f&&(_.current=!0),h(!1);return}_.current&&(_.current=!1,y())},[f,t,y]);let b=t||f,x=async e=>{if(n||b){e.preventDefault();return}let t=Date.now();p(!0),h(!1);try{await o?.(e);let n=WV-(Date.now()-t);n>0&&await KV(n),y()}finally{p(!1)}};return(0,$.jsx)(vt,{type:c,variant:s,className:X(`relative overflow-hidden`,b&&`bg-accent/10 text-accent hover:bg-accent/15 disabled:opacity-100`,m&&`bg-emerald-500/10 text-emerald-600 hover:bg-emerald-500/15 dark:text-emerald-300`,r),disabled:n,"aria-disabled":n||b,"aria-busy":b||void 0,title:l??e,"aria-label":u??e,onClick:e=>void x(e),...d,children:m&&!b?(0,$.jsx)(W,{className:X(`size-4 transition-transform duration-150 ease-out`,i),strokeWidth:a,"aria-hidden":!0}):(0,$.jsx)(Fv,{className:X(`size-4 transition-transform duration-150 ease-out motion-reduce:transition-none`,b&&`animate-spin motion-reduce:animate-none`,i),strokeWidth:a,"aria-hidden":!0})})}function JV(e){let t=e.toLowerCase();return t.endsWith(`.md`)?`text-green-600 dark:text-green-400`:t.endsWith(`.json`)?`text-yellow-600 dark:text-yellow-400`:t.endsWith(`.ts`)||t.endsWith(`.js`)?`text-blue-600 dark:text-blue-400`:`text-fg-muted`}function YV(e){let t=(0,Q.c)(44),{entry:n,labels:r,onAction:i}=e,[a,o]=(0,Z.useState)(!1),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=[],t[0]=s):s=t[0];let[c,l]=(0,Z.useState)(s),u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>o(!1),t[1]=u):u=t[1];let d=u,f;t[2]!==n.fileId||t[3]!==a?(f=()=>{if(!a||!n.fileId||!Wt()||!window.electronAPI?.shell?.getOpenWithAppsForFileResource){l([]);return}let e=!1;return window.electronAPI.shell.getOpenWithAppsForFileResource(n.fileId).then(t=>{e||l(t.recommended.map(nH))}).catch(()=>{e||l([])}),()=>{e=!0}},t[2]=n.fileId,t[3]=a,t[4]=f):f=t[4];let p;t[5]!==n.fileId||t[6]!==n.isDirectory||t[7]!==a?(p=[n.fileId,n.isDirectory,a],t[5]=n.fileId,t[6]=n.isDirectory,t[7]=a,t[8]=p):p=t[8],(0,Z.useEffect)(f,p);let m,h,g,_;if(t[9]!==n||t[10]!==r.copyPath||t[11]!==r.desktopUpdateRequired||t[12]!==r.download||t[13]!==r.openDefault||t[14]!==r.openDirectory||t[15]!==r.openWith||t[16]!==r.preview||t[17]!==r.recommendedApps||t[18]!==r.revealInFolder||t[19]!==r.share||t[20]!==r.trash||t[21]!==a||t[22]!==i||t[23]!==c){let e=n.fileId?c.map(tH):[],s=Wt()?window.electronAPI?.shell:void 0,l=n.isDirectory?r.openDirectory:r.openDefault,u=n.fileId?[...!l||!s?.openFileResource?[]:[{action:`openDefault`,label:l}],...!r.openWith||!s?.chooseAppAndOpenFileResource?[]:[{action:`openWith`,label:r.openWith}],...r.revealInFolder&&s?.showFileResourceInFolder?[{action:`revealInFolder`,label:r.revealInFolder}]:[],...!n.isDirectory&&r.trash&&s?.trashFileResource?[{action:`trash`,label:r.trash}]:[]]:[],f=n.isDirectory?[...u,...r.share?[{action:`share`,label:r.share}]:[],{action:`copyPath`,label:r.copyPath}]:[...u,{action:`preview`,label:r.preview},{action:`download`,label:r.download},...r.share?[{action:`share`,label:r.share}]:[],{action:`copyPath`,label:r.copyPath}];t[28]===a?_=t[29]:(_=a?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 cursor-default bg-transparent`,"aria-hidden":!0,tabIndex:-1,onPointerDown:e=>{e.preventDefault(),d()}}):null,t[28]=a,t[29]=_),m=`relative shrink-0`;let p=a&&`opacity-100`,v;t[30]===p?v=t[31]:(v=X(`rounded-md p-1 text-fg-muted opacity-0 transition-opacity hover:bg-surface-hover hover:text-fg`,`group-hover:opacity-100`,p),t[30]=p,t[31]=v);let y,b;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{e.stopPropagation(),o($V)},b=(0,$.jsx)(hd,{className:`size-3.5`,"aria-hidden":!0}),t[32]=y,t[33]=b):(y=t[32],b=t[33]),t[34]!==a||t[35]!==v?(h=(0,$.jsx)(`button`,{type:`button`,className:v,"aria-haspopup":`menu`,"aria-expanded":a,"aria-label":`More`,onPointerDown:eH,onClick:y,children:b}),t[34]=a,t[35]=v,t[36]=h):h=t[36],g=a?(0,$.jsxs)(`div`,{role:`menu`,className:`absolute right-0 top-full z-50 mt-0.5 min-w-[9rem] rounded-md border border-edge bg-surface-panel py-1 shadow-popover`,onPointerDown:QV,children:[Wt()&&n.fileId&&!s?.openFileResource&&r.desktopUpdateRequired?(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,disabled:!0,className:`block w-full cursor-not-allowed px-3 py-1.5 text-left text-sm text-fg-subtle opacity-70`,title:r.desktopUpdateRequired,children:(0,$.jsx)(`span`,{className:`block truncate`,children:r.desktopUpdateRequired})}):null,u.filter(ZV).map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`block w-full px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},a?`${t}:${a}`:t)}),r.recommendedApps&&e.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge-subtle px-3 pb-1 pt-2 text-[11px] font-medium uppercase tracking-normal text-fg-subtle dark:border-edge`,children:r.recommendedApps}),e.map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`block w-full min-w-0 px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},`${t}:${a}`)})]}):null,f.filter(XV).map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:X(`block w-full px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,t===`trash`&&`text-danger hover:bg-danger/10 hover:text-danger`),title:a,onClick:()=>{i(t,n,a),d()},children:(0,$.jsx)(`span`,{className:`block truncate`,children:r})},a?`${t}:${a}`:t)})]}):null,t[9]=n,t[10]=r.copyPath,t[11]=r.desktopUpdateRequired,t[12]=r.download,t[13]=r.openDefault,t[14]=r.openDirectory,t[15]=r.openWith,t[16]=r.preview,t[17]=r.recommendedApps,t[18]=r.revealInFolder,t[19]=r.share,t[20]=r.trash,t[21]=a,t[22]=i,t[23]=c,t[24]=m,t[25]=h,t[26]=g,t[27]=_}else m=t[24],h=t[25],g=t[26],_=t[27];let v;t[37]!==m||t[38]!==h||t[39]!==g?(v=(0,$.jsxs)(`div`,{className:m,children:[h,g]}),t[37]=m,t[38]=h,t[39]=g,t[40]=v):v=t[40];let y;return t[41]!==_||t[42]!==v?(y=(0,$.jsxs)($.Fragment,{children:[_,v]}),t[41]=_,t[42]=v,t[43]=y):y=t[43],y}function XV(e){return e.action!==`openDefault`}function ZV(e){return e.action===`openDefault`}function QV(e){return e.stopPropagation()}function $V(e){return!e}function eH(e){return e.stopPropagation()}function tH(e){return{action:`openWithApp`,label:e.name,appPath:e.path}}function nH(e){return{name:e.name,path:e.path}}function rH(e){let t=(0,Q.c)(76),{entry:n,depth:r,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l,onFileDragStart:u}=e,[d,f]=(0,Z.useState)(!1),p=a||d,m=i===n.path;if(n.isDirectory){let e=m&&`bg-accent-soft text-accent-fg`,d;t[0]===e?d=t[1]:(d=X(`flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 pr-2 text-left text-sm`,`hover:bg-surface-hover`,e),t[0]=e,t[1]=d);let h=8+r*12,g;t[2]===h?g=t[3]:(g={paddingLeft:h},t[2]=h,t[3]=g);let _;t[4]!==n.path||t[5]!==s||t[6]!==o||t[7]!==p?(_=()=>{let e=!p;f(e),e&&s?.(n.path),o(n.path,!0)},t[4]=n.path,t[5]=s,t[6]=o,t[7]=p,t[8]=_):_=t[8];let v=p&&`rotate-90`,y;t[9]===v?y=t[10]:(y=X(`size-3.5 shrink-0 transition-transform`,v),t[9]=v,t[10]=y);let b;t[11]===y?b=t[12]:(b=(0,$.jsx)(cs,{className:y,"aria-hidden":!0}),t[11]=y,t[12]=b);let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Ip,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),t[13]=x):x=t[13];let S;t[14]===n.name?S=t[15]:(S=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[14]=n.name,t[15]=S);let C;t[16]!==S||t[17]!==d||t[18]!==g||t[19]!==_||t[20]!==b||t[21]!==p?(C=(0,$.jsxs)(`button`,{type:`button`,"aria-expanded":p,className:d,style:g,onClick:_,children:[b,x,S]}),t[16]=S,t[17]=d,t[18]=g,t[19]=_,t[20]=b,t[21]=p,t[22]=C):C=t[22];let w;t[23]!==l||t[24]!==n||t[25]!==c?(w=c&&l?(0,$.jsx)(YV,{entry:n,labels:l,onAction:c}):null,t[23]=l,t[24]=n,t[25]=c,t[26]=w):w=t[26];let T;t[27]!==C||t[28]!==w?(T=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[C,w]}),t[27]=C,t[28]=w,t[29]=T):T=t[29];let E;t[30]!==l||t[31]!==r||t[32]!==n.children||t[33]!==a||t[34]!==c||t[35]!==s||t[36]!==u||t[37]!==o||t[38]!==i||t[39]!==p?(E=p&&n.children?.length?(0,$.jsx)(`div`,{children:n.children.map(e=>(0,$.jsx)(rH,{entry:e,depth:r+1,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l,onFileDragStart:u},e.path))}):null,t[30]=l,t[31]=r,t[32]=n.children,t[33]=a,t[34]=c,t[35]=s,t[36]=u,t[37]=o,t[38]=i,t[39]=p,t[40]=E):E=t[40];let D;return t[41]!==T||t[42]!==E?(D=(0,$.jsxs)(`div`,{className:`select-none`,children:[T,E]}),t[41]=T,t[42]=E,t[43]=D):D=t[43],D}let h=!!u,g=u&&`cursor-grab active:cursor-grabbing`,_=m&&`bg-accent-soft text-accent-fg`,v;t[44]!==g||t[45]!==_?(v=X(`flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-1 pr-2 text-left text-sm`,`hover:bg-surface-hover`,g,_),t[44]=g,t[45]=_,t[46]=v):v=t[46];let y=8+r*12,b;t[47]===y?b=t[48]:(b={paddingLeft:y},t[47]=y,t[48]=b);let x;t[49]!==n.path||t[50]!==o?(x=()=>o(n.path,!1),t[49]=n.path,t[50]=o,t[51]=x):x=t[51];let S;t[52]!==n||t[53]!==u?(S=u?e=>u(e,n):void 0,t[52]=n,t[53]=u,t[54]=S):S=t[54];let C;t[55]===n.name?C=t[56]:(C=X(`size-3.5 shrink-0`,JV(n.name)),t[55]=n.name,t[56]=C);let w;t[57]===C?w=t[58]:(w=(0,$.jsx)(wf,{className:C,"aria-hidden":!0}),t[57]=C,t[58]=w);let T;t[59]===n.name?T=t[60]:(T=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[59]=n.name,t[60]=T);let E;t[61]!==h||t[62]!==w||t[63]!==T||t[64]!==v||t[65]!==b||t[66]!==x||t[67]!==S?(E=(0,$.jsxs)(`button`,{type:`button`,draggable:h,className:v,style:b,onClick:x,onDragStart:S,children:[w,T]}),t[61]=h,t[62]=w,t[63]=T,t[64]=v,t[65]=b,t[66]=x,t[67]=S,t[68]=E):E=t[68];let D;t[69]!==l||t[70]!==n||t[71]!==c?(D=c&&l?(0,$.jsx)(YV,{entry:n,labels:l,onAction:c}):null,t[69]=l,t[70]=n,t[71]=c,t[72]=D):D=t[72];let O;return t[73]!==E||t[74]!==D?(O=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[E,D]}),t[73]=E,t[74]=D,t[75]=O):O=t[75],O}function iH(e,t){return e.name.toLocaleLowerCase().includes(t)||e.path.toLocaleLowerCase().includes(t)}function aH(e,t){return t?e.flatMap(e=>{let n=e.children?aH(e.children,t):void 0;return iH(e,t)||n?.length?[{...e,children:n}]:[]}):e}function oH(e){let t=(0,Q.c)(31),{tree:n,selectedPath:r,onSelectFile:i,onSelectEntry:a,onExpandDir:o,onAction:s,actionLabels:c,emptyHint:l,searchQuery:u,emptySearchHint:d,onFileDragStart:f}=e,p=u??``,m;t[0]===p?m=t[1]:(m=p.trim().toLocaleLowerCase(),t[0]=p,t[1]=m);let h=m,g;t[2]!==h||t[3]!==n?(g=aH(n,h),t[2]=h,t[3]=n,t[4]=g):g=t[4];let _=g,v;t[5]!==a||t[6]!==i?(v=(e,t)=>{a?.(e,t),t||i(e)},t[5]=a,t[6]=i,t[7]=v):v=t[7];let y=v;if(!n.length){let e;return t[8]===l?e=t[9]:(e=(0,$.jsx)(`p`,{className:`text-fg-muted px-3 py-2 text-xs`,children:l}),t[8]=l,t[9]=e),e}if(!_.length){let e=d??l,n;return t[10]===e?n=t[11]:(n=(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:e}),t[10]=e,t[11]=n),n}let b;if(t[12]!==c||t[13]!==y||t[14]!==h||t[15]!==s||t[16]!==o||t[17]!==f||t[18]!==r||t[19]!==_){let e;t[21]!==c||t[22]!==y||t[23]!==h||t[24]!==s||t[25]!==o||t[26]!==f||t[27]!==r?(e=e=>(0,$.jsx)(rH,{entry:e,depth:0,selectedPath:r,forceOpen:!!h,onSelect:y,onExpandDir:o,onAction:s,actionLabels:c,onFileDragStart:f},e.path),t[21]=c,t[22]=y,t[23]=h,t[24]=s,t[25]=o,t[26]=f,t[27]=r,t[28]=e):e=t[28],b=_.map(e),t[12]=c,t[13]=y,t[14]=h,t[15]=s,t[16]=o,t[17]=f,t[18]=r,t[19]=_,t[20]=b}else b=t[20];let x;return t[29]===b?x=t[30]:(x=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-2`,children:b}),t[29]=b,t[30]=x),x}async function sH(e){let t=await e.json().catch(()=>null);return Error(t?.error?.message??`HTTP ${e.status}`)}async function cH(e,t){let n=await ot(Y(e),t);if(!n.ok)throw await sH(n);return n.json()}async function lH(e){let t=e?.projectId?{kind:`project`,id:e.projectId}:e?.sessionKey?{kind:`session`,id:e.sessionKey}:e?.agentId?{kind:`agent`,id:e.agentId}:null;if(t){let e=await cH(`/api/files/contexts/${t.kind}/${encodeURIComponent(t.id)}`);return Xe.parse(e.space)}let n=await cH(`/api/files/default-space`);return Xe.parse(n.space)}function uH(e){return{id:e.id,name:e.name,path:e.relativePath,isDirectory:e.kind===`directory`,mimeType:e.mimeType,revision:e.revision}}async function dH(e,t){let n=await lH(t),r=await cH(`/api/files/resolve`,{method:`POST`,body:JSON.stringify({spaceId:n.id,path:e})});return Ze.parse(r.resource)}async function fH(e=``,t){let n=await lH(t),r=new URLSearchParams;return e&&r.set(`path`,e),{entries:Qe.parse(await cH(`/api/files/spaces/${encodeURIComponent(n.id)}/children${r.size?`?${r}`:``}`)).items.map(uH)}}async function pH(e=``,t){return(await fH(e,t)).entries}async function mH(e){let t=await lH(e);return uH($e.parse(await cH(`/api/files/spaces/${encodeURIComponent(t.id)}/root`)).resource)}async function hH(e,t,n=50){let r=await lH(t),i=new URLSearchParams({q:e.trim(),limit:String(n),spaceId:r.id});return Qe.parse(await cH(`/api/files/search?${i}`)).items.map(uH)}async function gH(e,t){let n=await dH(e,t),r=await ot(Y(`/api/files/${encodeURIComponent(n.id)}/content`));if(!r.ok)throw await sH(r);return{content:await r.text(),path:n.relativePath,mtimeMs:n.modifiedAt,revision:n.revision}}async function _H(e,t){let n;try{n=await lH(t)}catch{return null}try{let t=await cH(`/api/files/resolve`,{method:`POST`,body:JSON.stringify({spaceId:n.id,path:e})}),r=Ze.parse(t.resource);return{fileId:r.id,inputPath:e,displayName:r.name,scope:`workspace`,locationKind:`workspace`,exists:!0,isDirectory:r.kind===`directory`,workspaceRelativePath:r.relativePath,capabilities:r.capabilities.filter(e=>e===`preview`||e===`edit`),mtimeMs:r.modifiedAt}}catch{try{return(await cH(`/api/files/resolve-reference`,{method:`POST`,body:JSON.stringify({spaceId:n.id,path:e,sessionKey:t?.sessionKey})})).reference}catch{return null}}}async function vH(e,t,n){return await cH(`/api/files/references/${encodeURIComponent(e)}/action`,{method:`POST`,body:JSON.stringify({action:t,sessionKey:n?.sessionKey})})}async function yH(e,t){let n=await dH(e,t),r=await ot(Y(`/api/files/${encodeURIComponent(n.id)}/content`),{headers:{Accept:`*/*`}});if(!r.ok)throw await sH(r);return r.blob()}async function bH(e,t,n){let r=await dH(e,n),i=await cH(`/api/files/${encodeURIComponent(r.id)}/content`,{method:`PUT`,body:JSON.stringify({content:t,revision:r.revision})}),a=Ze.parse(i.resource);return{path:a.relativePath,mtimeMs:a.modifiedAt,revision:a.revision}}function xH(e,t){let n=new Blob([t],{type:`text/plain;charset=utf-8`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}function SH(e,t,n){let r=new Blob([t],{type:n}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)}var CH=5*1024*1024,wH=32*1024*1024,TH=new Set(`.ts,.tsx,.js,.jsx,.mjs,.cjs,.css,.scss,.json,.jsonc,.yml,.yaml,.xml,.py,.go,.rs,.java,.c,.cpp,.h,.hpp,.sh,.bash,.zsh,.sql,.toml,.ini`.split(`,`)),EH=new Set([`.txt`,`.log`,`.csv`,`.tsv`,`.env`,`.gitignore`]),DH=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.bmp`,`.ico`,`.svg`,`.svgz`,`.tif`,`.tiff`,`.avif`,`.heic`,`.heif`,`.jxl`]),OH=new Set([`.mp3`,`.wav`,`.ogg`,`.oga`,`.aac`,`.m4a`,`.flac`,`.opus`,`.weba`]),kH=new Set([`.mp4`,`.webm`,`.mov`,`.m4v`,`.ogv`]),AH=new Set([`.zip`]),jH=new Map([[`.pdf`,`application/pdf`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xls`,`application/vnd.ms-excel`],[`.md`,`text/markdown`],[`.markdown`,`text/markdown`],[`.html`,`text/html`],[`.htm`,`text/html`],[`.json`,`application/json`],[`.txt`,`text/plain`],[`.csv`,`text/csv`],[`.tsv`,`text/tab-separated-values`],[`.png`,`image/png`],[`.jpg`,`image/jpeg`],[`.jpeg`,`image/jpeg`],[`.gif`,`image/gif`],[`.webp`,`image/webp`],[`.svg`,`image/svg+xml`],[`.svgz`,`image/svg+xml`],[`.mp3`,`audio/mpeg`],[`.wav`,`audio/wav`],[`.ogg`,`audio/ogg`],[`.mp4`,`video/mp4`],[`.webm`,`video/webm`],[`.mov`,`video/quicktime`],[`.zip`,`application/zip`]]);function MH(e){let t=e.lastIndexOf(`.`);return t<=0||t===e.length-1?``:e.slice(t).toLowerCase()}function NH(e){let t=e.replace(/\\/g,`/`).split(`/`);return t[t.length-1]||e}function PH(e,t){let n=t?.split(`;`)[0]?.trim().toLowerCase();return n&&n!==`application/octet-stream`?n:jH.get(MH(e))??n??`application/octet-stream`}function FH(e,t){let n=MH(e),r=PH(e,t);return r===`text/markdown`||n===`.md`||n===`.markdown`?`markdown`:r===`text/html`||n===`.html`||n===`.htm`?`html`:r===`application/pdf`||n===`.pdf`?`pdf`:r===`application/vnd.openxmlformats-officedocument.wordprocessingml.document`||n===`.docx`?`docx`:r===`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`||r===`application/vnd.ms-excel`||n===`.xlsx`||n===`.xls`?`spreadsheet`:r===`application/vnd.openxmlformats-officedocument.presentationml.presentation`||n===`.pptx`?`pptx`:r.startsWith(`image/`)||DH.has(n)?`image`:r.startsWith(`audio/`)||OH.has(n)?`audio`:r.startsWith(`video/`)||kH.has(n)?`video`:r===`application/zip`||AH.has(n)?`archive`:TH.has(n)?`code`:r.startsWith(`text/`)||EH.has(n)||r===`application/json`?`text`:`unsupported`}function IH(e){switch(e){case`text`:case`markdown`:case`code`:case`html`:return`text`;case`unsupported`:return`metadata`;default:return`binary`}}async function LH(e){let{uri:t,sessionKey:n,taskId:r}=e;try{let e=vE(t),i=await ot(Y(e?`/api/files/${encodeURIComponent(e)}/content`:FL(t,n,r)));return i.ok?{ok:!0,blob:await i.blob()}:{ok:!1,reason:`http`,status:i.status}}catch(e){return{ok:!1,reason:`network`,message:e instanceof Error?e.message:String(e)}}}async function RH(e){let t=await LH(e);return t.ok?{ok:!0,buffer:await t.blob.arrayBuffer()}:t}function zH(e){return e.id?String(e.id):`${e.name}:${e.uri??``}`}function BH(){return{id:`__empty__`,context:`attachment`,fileName:``,mimeType:`application/octet-stream`,type:`unsupported`,source:{kind:`inline`}}}function VH(e){let t=(0,Q.c)(65),{open:n,attachment:r,authToken:i,sessionKey:a,language:o}=e,[s,c]=(0,Z.useState)(n?r:null),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),p;t[0]!==r||t[1]!==n?(p=n&&r?zH(r):null,t[0]=r,t[1]=n,t[2]=p):p=t[2];let m=p,h=(0,Z.useRef)(m);m!==h.current&&(h.current=m,c(n&&r?r:null),u(!1),f(!1));let g=s,_;bb0:{if(!g){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=BH(),t[3]=e):e=t[3],_=e;break bb0}let e=g.name??`attachment`,n,r;t[4]!==e||t[5]!==g.mimeType?(n=PH(e,g.mimeType),r=FH(e,n),t[4]=e,t[5]=g.mimeType,t[6]=n,t[7]=r):(n=t[6],r=t[7]);let i=r,o=g.id?String(g.id):`${e}:${g.uri??``}`,s;t[8]!==g.uri||t[9]!==a?(s=g.uri?{kind:`media-uri`,uri:g.uri,sessionKey:a}:{kind:`inline`},t[8]=g.uri,t[9]=a,t[10]=s):s=t[10];let c;t[11]!==e||t[12]!==n||t[13]!==g.size||t[14]!==o||t[15]!==s||t[16]!==i?(c={id:o,context:`attachment`,fileName:e,mimeType:n,size:g.size,type:i,source:s},t[11]=e,t[12]=n,t[13]=g.size,t[14]=o,t[15]=s,t[16]=i,t[17]=c):c=t[17],_=c}let v=_,y;t[18]===g?y=t[19]:(y=g?IL(g):void 0,t[18]=g,t[19]=y);let b=y,x=g?.uri,S;t[20]===v.type?S=t[21]:(S=IH(v.type),t[20]=v.type,t[21]=S);let C=S,w=!!(n&&x&&!b&&i&&(C===`binary`||C===`text`)),T;t[22]!==o||t[23]!==x||t[24]!==g?.taskId||t[25]!==a?(T=async()=>{let e=rt(o).chat,t=await RH({uri:x,sessionKey:a,taskId:g?.taskId});if(!t.ok)throw t.reason===`http`?Error(`${e.attachmentPreviewLoadError} (HTTP ${t.status})`):Error(t.message);return t.buffer},t[22]=o,t[23]=x,t[24]=g?.taskId,t[25]=a,t[26]=T):T=t[26];let E=g?.taskId,D;t[27]!==i||t[28]!==b||t[29]!==o||t[30]!==x||t[31]!==n||t[32]!==C||t[33]!==a||t[34]!==E?(D=[n,x,i,o,b,E,a,C],t[27]=i,t[28]=b,t[29]=o,t[30]=x,t[31]=n,t[32]=C,t[33]=a,t[34]=E,t[35]=D):D=t[35];let O;t[36]===w?O=t[37]:(O={enabled:w,initial:null,errorData:null},t[36]=w,t[37]=O);let k=SN(T,D,O),A;bb1:{if(b)try{let e;t[38]===b?e=t[39]:(e=zL(b),t[38]=b,t[39]=e),A=e;break bb1}catch{A=null;break bb1}if(w&&k.loading){A=null;break bb1}A=k.data??null}let j=A,M=C===`binary`?j:null,N=g?.extractedText??``,P;t[40]!==j||t[41]!==N||t[42]!==o||t[43]!==C?(P=C===`text`?N||(j?new TextDecoder(`utf-8`,{fatal:!1}).decode(new Uint8Array(j)):rt(o).chat.attachmentPreviewNoText):null,t[40]=j,t[41]=N,t[42]=o,t[43]=C,t[44]=P):P=t[44];let F=P,I=!!g?.extractedText,L=v.type===`pptx`&&N.length>3e5,R;t[45]!==i||t[46]!==b||t[47]!==o||t[48]!==x||t[49]!==n||t[50]!==C?(R=n&&x&&!b&&!i&&C===`binary`?rt(o).chat.attachmentPreviewMissingAuth:null,t[45]=i,t[46]=b,t[47]=o,t[48]=x,t[49]=n,t[50]=C,t[51]=R):R=t[51];let z=R,B=k.error?k.error instanceof Error?k.error.message:String(k.error):null,V=d?null:z??B,H=w?k.loading:!1,ee;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>f(!0),t[52]=ee):ee=t[52];let te=N||null,ne;return t[53]!==M||t[54]!==v||t[55]!==j||t[56]!==L||t[57]!==I||t[58]!==V||t[59]!==g||t[60]!==l||t[61]!==H||t[62]!==te||t[63]!==F?(ne={preview:g,descriptor:v,fileType:v.type,fileName:v.fileName,loading:H,loadError:V,clearLoadError:ee,textContent:F,binaryBuffer:M,downloadBuffer:j,hasExtractedText:I,extractedText:te,extractedTextTruncated:L,showExtractedText:l,setShowExtractedText:u},t[53]=M,t[54]=v,t[55]=j,t[56]=L,t[57]=I,t[58]=V,t[59]=g,t[60]=l,t[61]=H,t[62]=te,t[63]=F,t[64]=ne):ne=t[64],ne}function HH(e,t,n,r){var i=this,a=(0,Z.useRef)(null),o=(0,Z.useRef)(0),s=(0,Z.useRef)(0),c=(0,Z.useRef)(null),l=(0,Z.useRef)([]),u=(0,Z.useRef)(),d=(0,Z.useRef)(),f=(0,Z.useRef)(e),p=(0,Z.useRef)(!0),m=(0,Z.useRef)(),h=(0,Z.useRef)();f.current=e;var g=typeof window<`u`,_=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var v=!!(n||={}).leading,y=!(`trailing`in n)||!!n.trailing,b=!!n.flushOnExit&&y,x=`maxWait`in n,S=`debounceOnServer`in n&&!!n.debounceOnServer,C=x?Math.max(+n.maxWait||0,t):null,w=(0,Z.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){_&&cancelAnimationFrame(c.current),c.current=_?requestAnimationFrame(e):setTimeout(e,t)},w=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-o.current>=C},T=function(t){return c.current=null,y&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(v&&s.current===o.current&&D(),w(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,x?Math.min(i,C-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||S){var r,s=Date.now(),f=w(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,b&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),v?e(a.current):d.current;if(x)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(_?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[v,x,t,C,y,b,_,g,S,r]);return h.current=w,(0,Z.useEffect)(function(){return p.current=!0,function(){var e;b&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[b]),w}function UH(e,t){return e===t}function WH(e,t,n){var r=n&&n.equalityFn||UH,i=(0,Z.useRef)(e),a=(0,Z.useState)({})[1],o=HH((0,Z.useCallback)(function(e){i.current=e,a({})},[a]),t,n,a),s=(0,Z.useRef)(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function GH(e){let t=(0,Q.c)(12),{projectId:n,sessionKey:r,agentId:i}=e,a;bb0:{let e;t[0]===n?e=t[1]:(e=n?.trim(),t[0]=n,t[1]=e);let o=e;if(o){let e;t[2]===o?e=t[3]:(e={projectId:o},t[2]=o,t[3]=e),a=e;break bb0}let s;t[4]===r?s=t[5]:(s=r?.trim(),t[4]=r,t[5]=s);let c=s;if(c){let e;t[6]===c?e=t[7]:(e={sessionKey:c},t[6]=c,t[7]=e),a=e;break bb0}let l;t[8]===i?l=t[9]:(l=i?.trim(),t[8]=i,t[9]=l);let u=l,d;t[10]===u?d=t[11]:(d=u?{agentId:u}:void 0,t[10]=u,t[11]=d),a=d}return a}function KH(e){return{descriptor:e,textContent:null,binaryBuffer:null,fileResourceId:null,mtimeMs:null,loadError:null,loading:!1,pptxText:null,pptxTruncated:!1,pptxError:null}}function qH(e,t){switch(t.type){case`clear`:return KH(t.descriptor);case`loadStart`:return{...KH(t.descriptor),loading:!0};case`loadSuccess`:return{...e,descriptor:t.payload.descriptor,textContent:t.payload.textContent??null,binaryBuffer:t.payload.binaryBuffer??null,fileResourceId:t.payload.fileResourceId??null,mtimeMs:t.payload.mtimeMs??null,loadError:null,loading:!1};case`loadError`:return{...KH(t.descriptor),loadError:t.error};case`patchMtime`:return{...e,mtimeMs:t.mtimeMs};case`patchText`:return{...e,textContent:t.text};case`pptxClear`:return{...e,pptxText:null,pptxTruncated:!1,pptxError:null};case`pptxSuccess`:return{...e,pptxText:t.text,pptxTruncated:t.truncated,pptxError:null};case`pptxError`:return{...e,pptxText:null,pptxTruncated:!1,pptxError:t.error}}}function JH(e,t){switch(t.type){case`reset`:return{markdownEditMode:!1,htmlCodeMode:!1,saveStatus:`idle`};case`markdown`:return{...e,markdownEditMode:typeof t.value==`function`?t.value(e.markdownEditMode):t.value};case`html`:return{...e,htmlCodeMode:typeof t.value==`function`?t.value(e.htmlCodeMode):t.value};case`saveStatus`:return{...e,saveStatus:t.value}}}function YH({filePath:e,projectId:t,sessionKey:n,agentId:r}){let i=GH({projectId:t,sessionKey:n,agentId:r}),a=(0,Z.useMemo)(()=>{let t=e?NH(e):``,i=PH(t,VL(t)),a=e?FH(t,i):`unsupported`;return{id:e||`__empty__`,context:`workspace`,fileName:t,mimeType:i,type:a,source:{kind:`workspace`,path:e||``,sessionKey:n,agentId:r}}},[r,e,n]),[o,c]=(0,Z.useReducer)(qH,a,KH),[l,u]=(0,Z.useReducer)(JH,{markdownEditMode:!1,htmlCodeMode:!1,saveStatus:`idle`}),[d,f]=(0,Z.useState)([]),[p,m]=(0,Z.useState)([]),h=(0,Z.useRef)(void 0),g=(0,Z.useRef)(e);g.current!==e&&(g.current=e,u({type:`reset`})),(0,Z.useEffect)(()=>{if(!e){c({type:`clear`,descriptor:a});return}let t=!1;c({type:`loadStart`,descriptor:a});let n=IH(a.type),r=e=>{t||c({type:`loadError`,descriptor:a,error:e instanceof Error?e.message:String(e)})};return n===`metadata`?(_H(e,i).then(e=>{t||c({type:`loadSuccess`,payload:{descriptor:a,fileResourceId:e?.fileId??null,mtimeMs:typeof e?.mtimeMs==`number`?e.mtimeMs:null}})}).catch(r),()=>{t=!0}):(n===`text`?Promise.all([gH(e,i),_H(e,i).catch(()=>null)]).then(([{content:e,mtimeMs:n},r])=>{t||c({type:`loadSuccess`,payload:{descriptor:a,textContent:e,fileResourceId:r?.fileId??null,mtimeMs:typeof n==`number`?n:null}})}).catch(r):Promise.all([yH(e,i),_H(e,i).catch(()=>null)]).then(async([e,n])=>{let r=await e.arrayBuffer();t||c({type:`loadSuccess`,payload:{descriptor:a,binaryBuffer:r,fileResourceId:n?.fileId??null,mtimeMs:typeof n?.mtimeMs==`number`?n.mtimeMs:null}})}).catch(r),()=>{t=!0})},[a,e,i]),(0,Z.useEffect)(()=>{if(!o.binaryBuffer||o.descriptor.type!==`pptx`){c({type:`pptxClear`});return}let e=!1;return c({type:`pptxClear`}),s(()=>import(`./attachment-process-heavy-B2_kr5EA.js`).then(e=>e.processPptx(o.binaryBuffer,o.descriptor.fileName)),__vite__mapDeps([112,1,26,113])).then(({extractedText:t})=>{if(e)return;let n=t.length>PL;c({type:`pptxSuccess`,text:n?t.slice(0,PL):t,truncated:n})}).catch(t=>{e||c({type:`pptxError`,error:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},[o.binaryBuffer,o.descriptor.fileName,o.descriptor.type]);let _=(0,Z.useCallback)(async t=>{if(e){h.current!==void 0&&clearTimeout(h.current),u({type:`saveStatus`,value:`saving`});try{let{mtimeMs:n}=await bH(e,t,i);typeof n==`number`&&c({type:`patchMtime`,mtimeMs:n}),u({type:`saveStatus`,value:`saved`}),h.current=setTimeout(()=>u({type:`saveStatus`,value:`idle`}),2e3)}catch{u({type:`saveStatus`,value:`error`}),h.current=setTimeout(()=>u({type:`saveStatus`,value:`idle`}),4e3)}}},[e,i]),v=HH(e=>void _(e),500),y=(0,Z.useCallback)(e=>{c({type:`patchText`,text:e}),v(e)},[v]),b=(0,Z.useCallback)(async()=>{if(!e)return;let t=NH(e);if(o.binaryBuffer){SH(t,o.binaryBuffer,o.descriptor.mimeType||`application/octet-stream`);return}if(o.textContent!=null){xH(t,o.textContent);return}let n=await yH(e,i);SH(t,await n.arrayBuffer(),o.descriptor.mimeType||n.type||`application/octet-stream`)},[e,o.binaryBuffer,o.descriptor.mimeType,o.textContent,i]),x=(0,Z.useCallback)(async()=>{if(!e)throw Error(`No workspace file selected`);let t=NH(e),n=o.descriptor.mimeType||`application/octet-stream`,r;return r=o.binaryBuffer?new Blob([o.binaryBuffer],{type:n}):o.textContent==null?await yH(e,i):new Blob([o.textContent],{type:n}),new File([r],t,{type:o.descriptor.mimeType||r.type||`application/octet-stream`,lastModified:o.mtimeMs??Date.now()})},[e,o.binaryBuffer,o.descriptor.mimeType,o.mtimeMs,o.textContent,i]),S=!o.loading&&!!e,C=Wt()&&(!!o.fileResourceId&&!!window.electronAPI?.shell?.openFileResource||o.descriptor.type===`spreadsheet`&&!!o.binaryBuffer&&!!window.electronAPI?.shell?.openTemporaryFile),w=Wt()&&!!o.fileResourceId&&!!window.electronAPI?.shell?.chooseAppAndOpenFileResource,T=(0,Z.useCallback)(async()=>{let e=o.fileResourceId;if(!Wt()||!e||!window.electronAPI?.shell?.getOpenWithAppsForFileResource){m([]),f([]);return}try{let t=await window.electronAPI.shell.getOpenWithAppsForFileResource(e);m(t.recommended.map(e=>({name:e.name,path:e.path}))),f(t.recent.map(e=>({name:e.name,path:e.path,lastUsedAt:e.lastUsedAt})))}catch{m([]),f([])}},[o.fileResourceId]);(0,Z.useEffect)(()=>{T()},[T]);let E=(0,Z.useCallback)(async()=>{let e=o.fileResourceId;if(e&&window.electronAPI?.shell?.openFileResource)return window.electronAPI.shell.openFileResource(e);if(o.descriptor.type===`spreadsheet`&&o.binaryBuffer&&window.electronAPI?.shell?.openTemporaryFile)return window.electronAPI.shell.openTemporaryFile({fileName:o.descriptor.fileName,data:new Uint8Array(o.binaryBuffer)})},[o.binaryBuffer,o.descriptor.fileName,o.descriptor.type,o.fileResourceId]),D=(0,Z.useCallback)(async()=>{let e=o.fileResourceId;if(!e||!window.electronAPI?.shell?.chooseAppAndOpenFileResource)return;let t=await window.electronAPI.shell.chooseAppAndOpenFileResource(e);return t.ok&&T(),t},[o.fileResourceId,T]),O=(0,Z.useCallback)(async e=>{let t=o.fileResourceId;if(!t||!e||!window.electronAPI?.shell?.openFileResourceWithApp)return;let n=await window.electronAPI.shell.openFileResourceWithApp(t,e);return n.ok&&T(),n},[o.fileResourceId,T]),k=Wt()&&!!o.fileResourceId&&!!window.electronAPI?.shell?.showFileResourceInFolder,A=(0,Z.useCallback)(async()=>{let e=o.fileResourceId;if(e&&window.electronAPI?.shell?.showFileResourceInFolder)return window.electronAPI.shell.showFileResourceInFolder(e)},[o.fileResourceId]);return{...o,extractedText:o.descriptor.type===`pptx`?o.pptxText:null,extractedTextTruncated:o.pptxTruncated,markdownEditMode:l.markdownEditMode,setMarkdownEditMode:e=>u({type:`markdown`,value:e}),htmlCodeMode:l.htmlCodeMode,setHtmlCodeMode:e=>u({type:`html`,value:e}),saveStatus:l.saveStatus,onSaveMarkdown:_,onHtmlChange:y,onDownload:b,createAttachmentFile:x,canDownload:S,canOpenWithSystemApp:C,onOpenWithSystemApp:E,canChooseOpenWithApp:w,onChooseOpenWithApp:D,recommendedOpenWithApps:p,recentOpenWithApps:d,onOpenWithRecentApp:O,canRevealInFolder:k,onRevealInFolder:A}}var XH=`!z-[10000] max-w-[min(28rem,90vw)] rounded-md border border-edge bg-surface-panel px-2.5 py-2 text-left text-xs leading-snug text-fg shadow-lg`,ZH=`block w-full min-w-0 truncate rounded border border-transparent bg-surface-hover px-2 py-1.5 font-mono text-xs text-fg focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent`,QH=`inline-flex w-[5.25rem] shrink-0 items-center justify-center gap-1 px-2 py-1 text-xs`;function $H(e){let t=(0,Q.c)(38),{label:n,text:r,compact:i,labels:a,monospace:o}=e,s=o===void 0?!0:o,c=(0,Z.useRef)(null),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(!1),p;t[0]===r?p=t[1]:(p=async()=>{if(f(!1),await tt(r)){u(!0),window.setTimeout(()=>u(!1),2e3);return}et(c.current),f(!0),window.setTimeout(()=>f(!1),2500)},t[0]=r,t[1]=p);let m=p,h=i&&`gap-0.5`,g;t[2]===h?g=t[3]:(g=X(`flex min-w-0 flex-col gap-1`,h),t[2]=h,t[3]=g);let _;t[4]===n?_=t[5]:(_=n?(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg-muted`,children:n}):null,t[4]=n,t[5]=_);let v=n??a.copy,y=!s&&`font-sans`,b;t[6]===y?b=t[7]:(b=X(ZH,y),t[6]=y,t[7]=b);let x;t[8]!==v||t[9]!==b||t[10]!==r?(x=(0,$.jsx)(Kt,{asChild:!0,children:(0,$.jsx)(`input`,{ref:c,readOnly:!0,type:`text`,value:r,"aria-label":v,className:b,onFocus:eU})}),t[8]=v,t[9]=b,t[10]=r,t[11]=x):x=t[11];let S;t[12]===r?S=t[13]:(S=(0,$.jsx)(Jt,{children:(0,$.jsx)(Xt,{side:`top`,sideOffset:6,collisionPadding:12,className:XH,children:(0,$.jsx)(`span`,{className:`break-all`,children:r})})}),t[12]=r,t[13]=S);let C;t[14]!==S||t[15]!==x?(C=(0,$.jsx)(`div`,{className:`min-w-0 overflow-hidden`,children:(0,$.jsxs)(qt,{children:[x,S]})}),t[14]=S,t[15]=x,t[16]=C):C=t[16];let w;t[17]===m?w=t[18]:(w=()=>void m(),t[17]=m,t[18]=w);let T;t[19]===l?T=t[20]:(T=l?(0,$.jsx)(W,{className:`size-3.5 shrink-0`}):(0,$.jsx)(G,{className:`size-3.5 shrink-0`}),t[19]=l,t[20]=T);let E=l?a.copied:a.copy,D;t[21]===E?D=t[22]:(D=(0,$.jsx)(`span`,{className:`truncate`,children:E}),t[21]=E,t[22]=D);let O;t[23]!==w||t[24]!==T||t[25]!==D?(O=(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:QH,onClick:w,children:[T,D]}),t[23]=w,t[24]=T,t[25]=D,t[26]=O):O=t[26];let k;t[27]!==C||t[28]!==O?(k=(0,$.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_5.25rem] items-center gap-2`,children:[C,O]}),t[27]=C,t[28]=O,t[29]=k):k=t[29];let A;t[30]!==d||t[31]!==a.copyFailed?(A=d?(0,$.jsx)(`p`,{className:`text-xs text-red-600 dark:text-red-400`,children:a.copyFailed}):null,t[30]=d,t[31]=a.copyFailed,t[32]=A):A=t[32];let j;return t[33]!==k||t[34]!==A||t[35]!==g||t[36]!==_?(j=(0,$.jsx)(Yt,{delayDuration:300,children:(0,$.jsxs)(`div`,{className:g,children:[_,k,A]})}),t[33]=k,t[34]=A,t[35]=g,t[36]=_,t[37]=j):j=t[37],j}function eU(e){return e.currentTarget.select()}function tU(e){let t=(0,Q.c)(12),{rows:n,compact:r,labels:i}=e,a=r&&`gap-1.5`,o;t[0]===a?o=t[1]:(o=X(`flex min-w-0 flex-col gap-2`,a),t[0]=a,t[1]=o);let s;if(t[2]!==r||t[3]!==i||t[4]!==n){let e;t[6]!==r||t[7]!==i?(e=e=>(0,$.jsx)($H,{label:e.label,text:e.text,compact:r,labels:i},e.key),t[6]=r,t[7]=i,t[8]=e):e=t[8],s=n.map(e),t[2]=r,t[3]=i,t[4]=n,t[5]=s}else s=t[5];let c;return t[9]!==o||t[10]!==s?(c=(0,$.jsx)(`div`,{className:o,children:s}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c}var nU=new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),rU=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function iU(e,t,n,r){if(n===`public`){let n=[{key:`public`,label:r.publicUrlLabel,url:e}];return t&&n.push({key:`lan`,label:r.lanUrlLabel,url:t}),n}return n===`lan`?[{key:`lan`,label:r.lanUrlLabel,url:e}]:[{key:`local`,label:r.localUrlLabel,url:e}]}function aU(e){let t=(0,Q.c)(17),{shareUrl:n,lanUrl:r,reachability:i,compact:a}=e,o=ct(sU),s;t[0]===o?s=t[1]:(s=rt(o),t[0]=o,t[1]=s);let c=s.sharesSettings,l=r??null,u;t[2]!==i||t[3]!==n||t[4]!==c||t[5]!==l?(u=iU(n,l,i,c),t[2]=i,t[3]=n,t[4]=c,t[5]=l,t[6]=u):u=t[6];let d=u,f;t[7]!==c.copied||t[8]!==c.copy||t[9]!==c.copyFailed?(f={copy:c.copy,copied:c.copied,copyFailed:c.copyFailed},t[7]=c.copied,t[8]=c.copy,t[9]=c.copyFailed,t[10]=f):f=t[10];let p=f,m;t[11]===d?m=t[12]:(m=d.map(oU),t[11]=d,t[12]=m);let h;return t[13]!==a||t[14]!==p||t[15]!==m?(h=(0,$.jsx)(tU,{rows:m,compact:a,labels:p}),t[13]=a,t[14]=p,t[15]=m,t[16]=h):h=t[16],h}function oU(e){return{key:e.key,label:e.label,text:e.url}}function sU(e){return e.language}function cU(e,t){return(t===`zh`?nU:rU).format(new Date(e))}function lU(e){let t=(0,Q.c)(23),{reachability:n,reachabilityHint:r}=e,i=ct(uU),a;t[0]===i?a=t[1]:(a=rt(i),t[0]=i,t[1]=a);let o=a.sharesSettings;if(n===`public`){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ae,{className:`size-3`}),t[2]=e):e=t[2];let n;return t[3]===o.reachPublic?n=t[4]:(n=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-emerald-600 dark:text-emerald-400`,children:[e,o.reachPublic]}),t[3]=o.reachPublic,t[4]=n),n}if(n===`lan`){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(NT,{className:`size-3`}),t[5]=e):e=t[5];let n;t[6]===r?n=t[7]:(n=r?(0,$.jsxs)(`span`,{className:`text-fg-muted`,children:[` — `,r]}):null,t[6]=r,t[7]=n);let i;return t[8]!==o.reachLan||t[9]!==n?(i=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-amber-600 dark:text-amber-400`,children:[e,o.reachLan,n]}),t[8]=o.reachLan,t[9]=n,t[10]=i):i=t[10],i}let s;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(jT,{className:`size-3`}),t[11]=s):s=t[11];let c;t[12]===o.reachLocal?c=t[13]:(c=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-fg-subtle`,children:[s,o.reachLocal]}),t[12]=o.reachLocal,t[13]=c);let l=r??o.reachLocalHint,u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(ge,{className:`size-3`}),t[14]=u):u=t[14];let d;t[15]===o.openTunnel?d=t[16]:(d=(0,$.jsxs)(y,{to:`/settings/remote-access?tab=public`,className:`inline-flex items-center gap-0.5 text-accent hover:underline`,children:[o.openTunnel,u]}),t[15]=o.openTunnel,t[16]=d);let f;t[17]!==l||t[18]!==d?(f=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs text-fg-muted`,children:[l,` `,d]}),t[17]=l,t[18]=d,t[19]=f):f=t[19];let p;return t[20]!==c||t[21]!==f?(p=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[c,f]}),t[20]=c,t[21]=f,t[22]=p):p=t[22],p}function uU(e){return e.language}function dU(e){let t=(0,Q.c)(24),{result:n}=e,r=ct(fU),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.sharesSettings,o;t[2]===n.fileName?o=t[3]:(o=(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.fileName}),t[2]=n.fileName,t[3]=o);let s=a.expiresLabel,c;t[4]!==r||t[5]!==n.expiresAt?(c=cU(n.expiresAt,r),t[4]=r,t[5]=n.expiresAt,t[6]=c):c=t[6];let l;t[7]!==a.expiresLabel||t[8]!==c?(l=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:[s,`: `,c]}),t[7]=a.expiresLabel,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==o||t[11]!==l?(u=(0,$.jsxs)(`div`,{children:[o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12];let d;t[13]!==n.lanUrl||t[14]!==n.reachability||t[15]!==n.shareUrl?(d=(0,$.jsx)(aU,{shareUrl:n.shareUrl,lanUrl:n.lanUrl,reachability:n.reachability}),t[13]=n.lanUrl,t[14]=n.reachability,t[15]=n.shareUrl,t[16]=d):d=t[16];let f;t[17]!==n.reachability||t[18]!==n.reachabilityHint?(f=(0,$.jsx)(lU,{reachability:n.reachability,reachabilityHint:n.reachabilityHint}),t[17]=n.reachability,t[18]=n.reachabilityHint,t[19]=f):f=t[19];let p;return t[20]!==u||t[21]!==d||t[22]!==f?(p=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[u,d,f]}),t[20]=u,t[21]=d,t[22]=f,t[23]=p):p=t[23],p}function fU(e){return e.language}function pU(e){let t=(0,Q.c)(95),{params:n,loading:r,error:i,onConfirm:a,onCancel:o}=e,s=ct(mU),c;t[0]===s?c=t[1]:(c=rt(s),t[0]=s,t[1]=c);let l=c.sharesSettings,[u,d]=(0,Z.useState)(n.ttlMs??864e5),[f,p]=(0,Z.useState)(n.maxViews??null),[m,h]=(0,Z.useState)(n.description??``),g;t[2]!==m||t[3]!==f||t[4]!==a||t[5]!==u?(g=e=>{e.preventDefault(),a({ttlMs:u,maxViews:f,description:m.trim()||void 0})},t[2]=m,t[3]=f,t[4]=a,t[5]=u,t[6]=g):g=t[6];let _=n.fileName??n.path??n.fileId??n.uri,v=n.fileName??n.path??n.fileId??n.uri,y;t[7]!==_||t[8]!==v?(y=(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,title:_,children:v}),t[7]=_,t[8]=v,t[9]=y):y=t[9];let b;t[10]===l.shareConfirmHint?b=t[11]:(b=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:l.shareConfirmHint}),t[10]=l.shareConfirmHint,t[11]=b);let x;t[12]!==y||t[13]!==b?(x=(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-muted/45 px-3 py-2.5`,children:[y,b]}),t[12]=y,t[13]=b,t[14]=x):x=t[14];let S;t[15]===l.ttlLabel?S=t[16]:(S=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.ttlLabel}),t[15]=l.ttlLabel,t[16]=S);let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>d(Number(e.target.value)),t[17]=C):C=t[17];let w=l.ttlOptions[`1h`],T;t[18]===w?T=t[19]:(T=(0,$.jsx)(ue,{value:36e5,children:w}),t[18]=w,t[19]=T);let E=l.ttlOptions[`6h`],D;t[20]===E?D=t[21]:(D=(0,$.jsx)(ue,{value:216e5,children:E}),t[20]=E,t[21]=D);let O=l.ttlOptions[`24h`],k;t[22]===O?k=t[23]:(k=(0,$.jsx)(ue,{value:864e5,children:O}),t[22]=O,t[23]=k);let A=l.ttlOptions[`3d`],j;t[24]===A?j=t[25]:(j=(0,$.jsx)(ue,{value:2592e5,children:A}),t[24]=A,t[25]=j);let M=l.ttlOptions[`7d`],N;t[26]===M?N=t[27]:(N=(0,$.jsx)(ue,{value:6048e5,children:M}),t[26]=M,t[27]=N);let P=l.ttlOptions[`30d`],F;t[28]===P?F=t[29]:(F=(0,$.jsx)(ue,{value:2592e6,children:P}),t[28]=P,t[29]=F);let I;t[30]!==r||t[31]!==T||t[32]!==D||t[33]!==k||t[34]!==j||t[35]!==N||t[36]!==F||t[37]!==u?(I=(0,$.jsxs)(ce,{value:u,disabled:r,onChange:C,children:[T,D,k,j,N,F]}),t[30]=r,t[31]=T,t[32]=D,t[33]=k,t[34]=j,t[35]=N,t[36]=F,t[37]=u,t[38]=I):I=t[38];let L;t[39]!==I||t[40]!==S?(L=(0,$.jsxs)(`label`,{className:`flex min-w-0 flex-col gap-1.5`,children:[S,I]}),t[39]=I,t[40]=S,t[41]=L):L=t[41];let R;t[42]===l.maxViewsLabel?R=t[43]:(R=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.maxViewsLabel}),t[42]=l.maxViewsLabel,t[43]=R);let z=f??`unlimited`,B;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>p(e.target.value===`unlimited`?null:Number(e.target.value)),t[44]=B):B=t[44];let V;t[45]===l.maxViewsUnlimited?V=t[46]:(V=(0,$.jsx)(ue,{value:`unlimited`,children:l.maxViewsUnlimited}),t[45]=l.maxViewsUnlimited,t[46]=V);let H,ee,te,ne;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(ue,{value:1,children:`1`}),ee=(0,$.jsx)(ue,{value:5,children:`5`}),te=(0,$.jsx)(ue,{value:10,children:`10`}),ne=(0,$.jsx)(ue,{value:50,children:`50`}),t[47]=H,t[48]=ee,t[49]=te,t[50]=ne):(H=t[47],ee=t[48],te=t[49],ne=t[50]);let U;t[51]!==r||t[52]!==z||t[53]!==V?(U=(0,$.jsxs)(ce,{value:z,disabled:r,onChange:B,children:[V,H,ee,te,ne]}),t[51]=r,t[52]=z,t[53]=V,t[54]=U):U=t[54];let W;t[55]!==R||t[56]!==U?(W=(0,$.jsxs)(`label`,{className:`flex min-w-0 flex-col gap-1.5`,children:[R,U]}),t[55]=R,t[56]=U,t[57]=W):W=t[57];let re;t[58]!==L||t[59]!==W?(re=(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[L,W]}),t[58]=L,t[59]=W,t[60]=re):re=t[60];let ie;t[61]===l.descriptionLabel?ie=t[62]:(ie=(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:l.descriptionLabel}),t[61]=l.descriptionLabel,t[62]=ie);let ae;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(ae=e=>h(e.target.value),t[63]=ae):ae=t[63];let oe;t[64]!==m||t[65]!==r||t[66]!==l.descriptionPlaceholder?(oe=(0,$.jsx)(`input`,{type:`text`,value:m,disabled:r,onChange:ae,placeholder:l.descriptionPlaceholder,className:`h-10 rounded-lg border border-edge bg-surface-subtle px-3 text-sm text-fg outline-none placeholder:text-fg-subtle focus:border-edge-strong disabled:opacity-60`}),t[64]=m,t[65]=r,t[66]=l.descriptionPlaceholder,t[67]=oe):oe=t[67];let se;t[68]!==ie||t[69]!==oe?(se=(0,$.jsxs)(`label`,{className:`mt-3 flex flex-col gap-1.5`,children:[ie,oe]}),t[68]=ie,t[69]=oe,t[70]=se):se=t[70];let le;t[71]===i?le=t[72]:(le=i?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-red-600 dark:text-red-400`,children:i}):null,t[71]=i,t[72]=le);let de;t[73]!==re||t[74]!==se||t[75]!==le||t[76]!==x?(de=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:[x,re,se,le]}),t[73]=re,t[74]=se,t[75]=le,t[76]=x,t[77]=de):de=t[77];let fe;t[78]!==r||t[79]!==o||t[80]!==l.cancel?(fe=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:r,onClick:o,children:l.cancel}),t[78]=r,t[79]=o,t[80]=l.cancel,t[81]=fe):fe=t[81];let pe;t[82]===r?pe=t[83]:(pe=r?(0,$.jsx)(je,{className:`size-4 animate-spin`}):null,t[82]=r,t[83]=pe);let me=r?l.creating:l.createButton,G;t[84]!==r||t[85]!==pe||t[86]!==me?(G=(0,$.jsxs)(vt,{type:`submit`,disabled:r,children:[pe,me]}),t[84]=r,t[85]=pe,t[86]=me,t[87]=G):G=t[87];let he;t[88]!==fe||t[89]!==G?(he=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-2 border-t border-edge px-4 py-3`,children:[fe,G]}),t[88]=fe,t[89]=G,t[90]=he):he=t[90];let ge;return t[91]!==g||t[92]!==de||t[93]!==he?(ge=(0,$.jsxs)(`form`,{className:`flex min-h-0 flex-1 flex-col`,onSubmit:g,children:[de,he]}),t[91]=g,t[92]=de,t[93]=he,t[94]=ge):ge=t[94],ge}function mU(e){return e.language}function hU(e){let t=(0,Q.c)(36),{open:n,onOpenChange:r,loading:i,error:a,result:o,pendingParams:s,onConfirm:c}=e,l=ct(gU),u;t[0]===l?u=t[1]:(u=rt(l),t[0]=l,t[1]=u);let d=u.sharesSettings,f;t[2]===l?f=t[3]:(f=rt(l),t[2]=l,t[3]=f);let p=f,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(R,{className:`fixed inset-0 z-[180] bg-scrim backdrop-blur-[2px]`}),t[4]=m):m=t[4];let h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=X(`fixed left-1/2 top-1/2 z-[181] flex h-[min(31rem,calc(100dvh-2rem))] w-[min(30rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col`,`overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-popover outline-none`),t[5]=h):h=t[5];let g=o?d.shareCreated:d.shareConfirmTitle,_;t[6]===g?_=t[7]:(_=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:g}),t[6]=g,t[7]=_);let v;t[8]!==s||t[9]!==o||t[10]!==d.createHint?(v=!o&&s?(0,$.jsx)(B,{className:`mt-0.5 text-xs text-fg-muted`,children:d.createHint}):null,t[8]=s,t[9]=o,t[10]=d.createHint,t[11]=v):v=t[11];let y;t[12]!==_||t[13]!==v?(y=(0,$.jsxs)(`div`,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14];let b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Ne,{className:`size-4`}),t[15]=b):b=t[15];let x;t[16]===d.cancel?x=t[17]:(x=(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-md text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":d.cancel,children:b})}),t[16]=d.cancel,t[17]=x);let S;t[18]!==x||t[19]!==y?(S=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-2 border-b border-edge px-4 py-3`,children:[y,x]}),t[18]=x,t[19]=y,t[20]=S):S=t[20];let C;t[21]!==a||t[22]!==i||t[23]!==p||t[24]!==c||t[25]!==r||t[26]!==s||t[27]!==o?(C=o?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:(0,$.jsx)(dU,{result:o})}):s&&c?(0,$.jsx)(pU,{params:s,loading:!!i,error:a,onConfirm:c,onCancel:()=>r(!1)},`${s.fileId??s.uri??s.path}:${s.sessionKey??s.agentId??``}`):i?(0,$.jsxs)(`p`,{className:`flex items-center gap-2 p-4 text-sm text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-4 animate-spin`}),p.workspace.sharing]}):a?(0,$.jsx)(`p`,{className:`p-4 text-sm text-red-600 dark:text-red-400`,children:a}):null,t[21]=a,t[22]=i,t[23]=p,t[24]=c,t[25]=r,t[26]=s,t[27]=o,t[28]=C):C=t[28];let w;t[29]!==S||t[30]!==C?(w=(0,$.jsxs)(H,{children:[m,(0,$.jsxs)(ee,{className:h,children:[S,C]})]}),t[29]=S,t[30]=C,t[31]=w):w=t[31];let T;return t[32]!==r||t[33]!==n||t[34]!==w?(T=(0,$.jsx)(ne,{open:n,onOpenChange:r,children:w}),t[32]=r,t[33]=n,t[34]=w,t[35]=T):T=t[35],T}function gU(e){return e.language}async function _U(){return J(Y(`/api/shares`))}async function vU(e){return J(Y(`/api/shares`),{method:`POST`,body:JSON.stringify(e)})}async function yU(e){return J(Y(`/api/shares/${e}`),{method:`DELETE`})}async function bU(){return J(Y(`/api/shares`),{method:`DELETE`,body:JSON.stringify({expired:!0})})}async function xU(e,t){return J(Y(`/api/shares/${e}`),{method:`PATCH`,body:JSON.stringify({extendTtlMs:t})})}async function SU(e){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/share-preview`))).payload}async function CU(e){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/shares`))).payload.shares}async function wU(e){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/hosted-shares`))).payload.shares}async function TU(){return(await J(Y(`/api/auth/oauth/xopc-share`))).payload.authStatus===`connected`}async function EU(e,t){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/shares`),{method:`POST`,body:JSON.stringify(t)})).payload}async function DU(e,t){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/hosted-shares`),{method:`POST`,body:JSON.stringify(t)})).payload}async function OU(e,t,n){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/refresh`),{method:`POST`,body:JSON.stringify(n)})).payload}async function kU(e,t,n){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/hosted-shares/${encodeURIComponent(t)}/refresh`),{method:`POST`,body:JSON.stringify(n)})).payload}async function AU(e,t){await J(Y(`/api/sessions/${encodeURIComponent(e)}/hosted-shares/${encodeURIComponent(t)}`),{method:`DELETE`})}function jU(){let[e,t]=(0,Z.useState)(!1),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(null),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),u=(0,Z.useCallback)(e=>{t(!0),l(e),a(null),s(null)},[]),d=(0,Z.useCallback)(async e=>{if(!c||n)return null;r(!0),s(null);try{let t=await vU({...c,...e});return a(t.payload),t.payload}catch(e){return s(e instanceof Error?e.message:String(e)),null}finally{r(!1)}},[n,c]),f=(0,Z.useCallback)(()=>{a(null),s(null),r(!1),l(null)},[]);return{dialogOpen:e,loading:n,result:i,error:o,pendingParams:c,createShareLink:u,confirmShareLink:d,handleOpenChange:(0,Z.useCallback)(e=>{t(e),e||f()},[f])}}async function MU(e,t){try{let n=await e();return n&&`ok`in n&&n.code===`CANCELED`?!1:n&&(`ok`in n?n.ok:n.success)?!0:(fA(`warning`,n?.error||t,void 0,{duration:4e3}),!1)}catch{return fA(`warning`,t,void 0,{duration:4e3}),!1}}function NU(e){return e.map(e=>({fileId:e.id,name:e.name,path:e.path,isDirectory:e.isDirectory,children:e.isDirectory?[]:void 0}))}function PU(e,t,n){return e.map(e=>e.path===t?{...e,children:n}:e.isDirectory&&e.children?.length?{...e,children:PU(e.children,t,n)}:e)}function FU(e,t,n){let[r,i]=(0,Z.useState)([]),[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(!1),[l,u]=(0,Z.useState)(null),d=(0,Z.useRef)(new Set),f=e.trim(),p=t?.trim()??``,m=n?.trim()??``,h=m?``:p,g=!m&&!p?f:``,_=(0,Z.useMemo)(()=>{if(m)return{projectId:m};if(h)return{sessionKey:h};if(g)return{agentId:g}},[m,h,g]);return{tree:r,rootResource:a,loading:s,error:l,loadRoot:(0,Z.useCallback)(async()=>{c(!0),u(null),d.current.clear();try{let[e,t]=await Promise.all([fH(``,_),mH(_)]);i(NU(e.entries)),o(NU([t])[0]??null),d.current.add(``)}catch(e){o(null),u(e instanceof Error?e.message:String(e))}finally{c(!1)}},[_]),loadChildren:(0,Z.useCallback)(async e=>{if(!d.current.has(e)){d.current.add(e);try{let t=NU(await pH(e,_));i(n=>PU(n,e,t))}catch{d.current.delete(e)}}},[_]),reset:(0,Z.useCallback)(()=>{i([]),o(null),u(null),d.current.clear()},[])}}var IU=`application/x-xopc-workspace-file`;function LU(e,t){e.effectAllowed=`copy`,e.setData(IU,JSON.stringify(t))}function RU(e){return!!(e&&Array.from(e.types).includes(`application/x-xopc-workspace-file`))}function zU(e){if(!e)return null;try{let t=JSON.parse(e.getData(IU)),n=typeof t.path==`string`?t.path.trim():``,r=typeof t.name==`string`?t.name.trim():``;return!n||!r?null:{path:n,name:r,...typeof t.sessionKey==`string`&&t.sessionKey.trim()?{sessionKey:t.sessionKey.trim()}:{},...typeof t.agentId==`string`&&t.agentId.trim()?{agentId:t.agentId.trim()}:{},...typeof t.projectId==`string`&&t.projectId.trim()?{projectId:t.projectId.trim()}:{}}}catch{return null}}function BU({resourceId:e,displayName:t,className:n}){let r=rt(ct(e=>e.language)).workspace,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)([]),[c,l]=(0,Z.useState)([]),[u,d]=(0,Z.useState)(!1),f=Wt(),p=f?window.electronAPI?.shell:void 0,m=f&&!!e.trim(),h=!!p?.openFileResource,g=(0,Z.useCallback)(async()=>{if(!p?.getOpenWithAppsForFileResource||!e.trim()){s([]),l([]);return}try{let t=await p.getOpenWithAppsForFileResource(e);s(t.recommended.map(e=>({name:e.name,path:e.path}))),l(t.recent.map(e=>({name:e.name,path:e.path})))}catch{s([]),l([])}},[e,p]);(0,Z.useEffect)(()=>{g()},[g]);let _=(0,Z.useCallback)(e=>{fA(`warning`,e||r.openLocationFailed,void 0,{duration:4e3})},[r.openLocationFailed]),v=(0,Z.useCallback)(async()=>{if(!(!p?.openFileResource||!e)){d(!0);try{let t=await p.openFileResource(e);t.ok===!1&&_(t.error)}finally{d(!1),a(!1)}}},[_,e,p]),y=(0,Z.useCallback)(async t=>{if(!(!p?.openFileResourceWithApp||!e)){d(!0);try{let n=await p.openFileResourceWithApp(e,t);n.ok===!1?_(n.error):g()}finally{d(!1),a(!1)}}},[g,_,e,p]),b=(0,Z.useCallback)(async()=>{if(!(!p?.chooseAppAndOpenFileResource||!e)){d(!0);try{let t=await p.chooseAppAndOpenFileResource(e);t.ok===!1&&t.code!==`CANCELED`&&_(t.error),t.ok&&g()}finally{d(!1),a(!1)}}},[g,_,e,p]),x=(0,Z.useCallback)(async()=>{if(!p?.copyFileResourcePath||!e)return;let t=await p.copyFileResourcePath(e);fA(t.ok?`success`:`warning`,t.ok?r.pathCopied:t.error||r.copyPathFailed,void 0,{duration:t.ok?2500:4e3}),a(!1)},[r.copyPathFailed,r.pathCopied,e,p]);if(!m)return null;if(!h)return(0,$.jsxs)(vt,{variant:`ghost`,className:X(`min-w-0 max-w-40 shrink rounded-md px-2 py-1.5 text-xs`,n),disabled:!0,title:r.desktopUpdateRequired,children:[(0,$.jsx)(av,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:t||r.openLocation})]});let S=`flex w-full items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-fg hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-50`,C=o[0]??c[0],w=C?o.filter(e=>e.path!==C.path):o,T=C?c.filter(e=>e.path!==C.path):c;return(0,$.jsxs)(se,{open:i,onOpenChange:e=>{a(e),e&&g()},children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(vt,{variant:`ghost`,className:X(`min-w-0 max-w-40 shrink rounded-md px-2 py-1.5 text-xs`,n),"aria-label":r.openLocation,title:r.openLocation,children:[(0,$.jsx)(av,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:C?.name??t??r.openLocation}),(0,$.jsx)(is,{className:`size-3.5 shrink-0`,"aria-hidden":!0})]})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{align:`end`,side:`bottom`,sideOffset:6,className:`z-50 w-60 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,children:[C?(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,title:C.path,onClick:()=>void y(C.path),children:[(0,$.jsx)(av,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:C.name})]}):null,(0,$.jsx)(`div`,{className:X(C&&`border-t border-edge pt-1`),children:(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,onClick:()=>void v(),children:[(0,$.jsx)(Tp,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),r.openInFileManager]})}),w.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge px-2.5 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-fg-subtle`,children:r.recommendedApps}),w.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,title:e.path,onClick:()=>void y(e.path),children:[(0,$.jsx)(av,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.name})]},e.path))]}):null,T.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`border-t border-edge px-2.5 pb-1 pt-2 text-[11px] font-medium uppercase tracking-wide text-fg-subtle`,children:r.recentApps}),T.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,title:e.path,onClick:()=>void y(e.path),children:[(0,$.jsx)(av,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.name})]},e.path))]}):null,(0,$.jsxs)(`div`,{className:`mt-1 border-t border-edge pt-1`,children:[(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,onClick:()=>void b(),children:[(0,$.jsx)(av,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),r.chooseApp]}),(0,$.jsxs)(`button`,{type:`button`,disabled:u||!p?.copyFileResourcePath,className:S,onClick:()=>void x(),children:[(0,$.jsx)(G,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),r.copyPath]})]})]})})]})}var VU=at(e=>({agentId:``,setAgentId:t=>e({agentId:t})})),HU=`xopc-web-workspace-panel-open`,UU=`xopc-web-workspace-panel-width-px`;function WU(){try{return globalThis.localStorage?.getItem(HU)===`1`}catch{return!1}}function GU(e){try{globalThis.localStorage?.setItem(HU,e?`1`:`0`)}catch{}}function KU(e){return Math.min(520,Math.max(200,Math.round(e)))}function qU(){try{let e=globalThis.localStorage?.getItem(UU);if(e==null)return 320;let t=Number.parseInt(e,10);return Number.isFinite(t)?KU(t):320}catch{return 320}}function JU(e){try{globalThis.localStorage?.setItem(UU,String(e))}catch{}}var YU=at((e,t)=>({open:WU(),setOpen:t=>{e(t?{open:t}:{open:t,sessionKeyOverride:null}),queueMicrotask(()=>GU(t))},toggleOpen:()=>{t().setOpen(!t().open)},sessionKeyOverride:null,openForSession:t=>{e({open:!0,sessionKeyOverride:t.trim()||null}),queueMicrotask(()=>GU(!0))},widthPx:qU(),setWidthPx:n=>{let r=KU(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>JU(r)))}})),XU=at(e=>({path:null,line:null,projectId:null,sessionKey:null,setPath:(t,n,r,i)=>e({path:t,line:t&&typeof n==`number`&&Number.isFinite(n)&&n>0?Math.floor(n):null,projectId:t&&r?.trim()||null,sessionKey:t&&i?.trim()||null})})),ZU=(0,Z.memo)(function({elevated:e=!1}){let t=rt(ct(e=>e.language)),{pathname:n,search:r}=l(),{sessionKey:i}=u(),a=n.startsWith(`/chat`)&&i&&i!==`new`?decodeURIComponent(i):null,o=YU(e=>e.open),s=YU(e=>e.setOpen),c=YU(e=>e.sessionKeyOverride),d=YU(e=>e.widthPx),f=YU(e=>e.setWidthPx),p=c??a,m=!p&&n.startsWith(`/chat`)?new URLSearchParams(r).get(`projectId`):null,[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(``),[x,S]=(0,Z.useState)([]),[C,w]=(0,Z.useState)(!1),[T,E]=(0,Z.useState)(null),[D,O]=(0,Z.useState)(null),k=XU(e=>e.path),A=XU(e=>e.setPath),j=VU(e=>e.agentId),{tree:M,rootResource:N,loading:P,error:F,loadRoot:I,loadChildren:L,reset:R}=FU(j,p,m),z=p?`session:${p}`:m?`project:${m}`:`agent:${j}`,B=(0,Z.useMemo)(()=>m?{projectId:m}:p==null?j.trim()?{agentId:j.trim()}:void 0:{sessionKey:p},[p,m,j]),V=y.trim(),H=Wt(),ee=(0,Z.useCallback)((e,t)=>{A(null),LU(e.dataTransfer,{name:t.name,path:t.path,...B})},[A,B]),{dialogOpen:te,loading:ne,result:U,error:W,pendingParams:re,createShareLink:ie,confirmShareLink:ae,handleOpenChange:oe}=jU(),se=(0,Z.useCallback)(e=>{if(!o)return;e.preventDefault();let t=e.currentTarget,n=t.closest(`#app-workspace-panel`);t.setPointerCapture(e.pointerId),g(!0);let r=e.clientX,i=YU.getState().widthPx,a=e.pointerId,s=0,c=i,l=i,u=()=>{s=0,l=c,n?.style.setProperty(`--workspace-panel-px`,`${l}px`)},d=e=>{c=KU(i+(r-e.clientX)),s===0&&(s=window.requestAnimationFrame(u))},p=()=>{s!==0&&(window.cancelAnimationFrame(s),u());try{t.releasePointerCapture(a)}catch{}g(!1),f(l),window.removeEventListener(`pointermove`,d),window.removeEventListener(`pointerup`,p),window.removeEventListener(`pointercancel`,p)};window.addEventListener(`pointermove`,d),window.addEventListener(`pointerup`,p),window.addEventListener(`pointercancel`,p)},[o,f]);(0,Z.useEffect)(()=>{n.startsWith(`/chat`)||s(!1)},[n,s]),(0,Z.useEffect)(()=>{if(!o){R(),A(null);return}A(null),I()},[o,z,I,R,A]),(0,Z.useEffect)(()=>{if(!o)return;let e=e=>{if(e.key===`Escape`){if(_){e.preventDefault(),e.stopPropagation(),b(``),v(!1);return}XU.getState().path||s(!1)}};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[_,o,s]),(0,Z.useEffect)(()=>{if(!o||!_||!V){S([]),w(!1),E(null);return}let e=!1;w(!0),E(null),S([]);let t=window.setTimeout(()=>{hH(V,B,50).then(t=>{e||S(t)}).catch(t=>{e||E(t instanceof Error?t.message:String(t))}).finally(()=>{e||w(!1)})},180);return()=>{e=!0,window.clearTimeout(t)}},[_,V,o,B]),(0,Z.useEffect)(()=>{if(!o||!window.matchMedia(`(max-width: 767px)`).matches)return;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[o]);let ce=(0,Z.useCallback)(e=>{L(e)},[L]),le=(0,Z.useCallback)(async(e,n,r)=>{switch(e){case`preview`:if(n.isDirectory)return;A(n.path);break;case`download`:if(n.isDirectory)return;try{let e=NH(n.path);if(IH(FH(e))!==`text`)SH(e,await(await yH(n.path,B)).arrayBuffer(),VL(e)??`application/octet-stream`);else{let{content:t}=await gH(n.path,B);xH(e,t)}}catch{}break;case`copyPath`:try{await tt(n.path)&&fA(`success`,t.workspace.pathCopied,void 0,{duration:2500})}catch{}break;case`openDefault`:await MU(()=>window.electronAPI?.shell?.openFileResource?.(n.fileId),t.workspace.openFileFailed);break;case`openWith`:await MU(()=>window.electronAPI?.shell?.chooseAppAndOpenFileResource?.(n.fileId),t.workspace.openFileFailed);break;case`openWithApp`:if(!r)return;await MU(()=>window.electronAPI?.shell?.openFileResourceWithApp?.(n.fileId,r),t.workspace.openFileFailed);break;case`revealInFolder`:await MU(()=>window.electronAPI?.shell?.showFileResourceInFolder?.(n.fileId),t.workspace.revealFileFailed);break;case`trash`:O(n);break;case`share`:await ie({path:n.path,...n.isDirectory?{kind:`directory`,directoryMode:`browse`}:{},...B});break;default:break}},[ie,t.workspace.openFileFailed,t.workspace.pathCopied,t.workspace.revealFileFailed,A,B]),ue=(0,Z.useCallback)(async()=>{let e=D;if(!e)return;let n=await window.electronAPI?.shell?.trashFileResource?.(e.fileId);if(!n?.ok){fA(`warning`,n?.error??t.workspace.trashFailed,void 0,{duration:4e3});return}k===e.path&&A(null),O(null),await I(),fA(`success`,t.workspace.trashSuccess,void 0,{duration:2500})},[I,t.workspace.trashFailed,t.workspace.trashSuccess,D,k,A]);return(0,$.jsxs)($.Fragment,{children:[o?(0,$.jsx)(`button`,{type:`button`,className:X(`fixed inset-0 bg-scrim md:hidden`,e?`z-[109]`:`z-40`),"aria-label":t.closeMenu,onClick:()=>s(!1)}):null,(0,$.jsx)(`aside`,{id:`app-workspace-panel`,"aria-label":t.workspace.title,"aria-hidden":!o,className:X(`flex min-h-0 flex-col overflow-hidden bg-surface-base`,`max-md:fixed max-md:right-0 max-md:top-0 max-md:h-[100dvh] max-md:shadow-popover`,`max-md:transition-transform max-md:duration-200 max-md:ease-out`,`motion-reduce:max-md:transition-none`,`max-md:w-[min(20rem,92vw)]`,o?`max-md:translate-x-0`:`max-md:pointer-events-none max-md:translate-x-full`,`md:relative md:h-full md:translate-x-0`,e&&o?`pointer-events-auto z-[110]`:`max-md:z-50`,`motion-reduce:md:transition-none`,!o&&`md:pointer-events-none md:w-0 md:min-w-0 md:max-w-0 md:overflow-hidden`,o&&`app-workspace-panel-expanded-width md:shrink-0`,o&&h&&`workspace-panel-rail-resizing`),style:o?{"--workspace-panel-px":`${d}px`}:void 0,children:o?(0,$.jsxs)(`div`,{className:X(`relative flex h-full min-h-0 w-full min-w-0 flex-col overflow-x-hidden overflow-y-hidden bg-surface-base`),children:[(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":t.workspace.resizeHandleAria,onPointerDown:se,className:X(`pointer-events-auto absolute left-0 top-0 z-20 hidden h-full w-2 cursor-col-resize md:block`,`before:content-[''] before:pointer-events-none before:absolute before:left-1/2 before:top-0 before:z-0 before:h-full before:w-px before:-translate-x-1/2`,`before:bg-transparent before:transition-[background-color] before:duration-150`,`hover:bg-surface-hover/20 hover:before:bg-edge/65 dark:hover:before:bg-edge/75`,h&&`bg-surface-hover/30 before:!bg-edge/80 dark:before:!bg-edge/85`,`transition-[background-color] duration-150`,`touch-none select-none`,pj)}),(0,$.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center gap-2 border-b border-edge px-4 dark:border-edge`,children:[(0,$.jsx)(`h2`,{className:`sr-only`,children:t.workspace.title}),H?N?(0,$.jsx)(BU,{resourceId:N.fileId,displayName:N.name}):null:(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(Ip,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:t.workspace.title})]}),(0,$.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:X(`size-9 shrink-0 rounded-md p-0`,_&&`bg-surface-hover text-fg`),"aria-label":t.workspace.search,title:t.workspace.search,"aria-pressed":_,onClick:()=>v(!0),children:(0,$.jsx)(Hv,{className:`size-4`,strokeWidth:1.75})}),(0,$.jsx)(qV,{className:`size-9 shrink-0 rounded-md p-0`,loading:P,label:t.cron.refresh,onClick:I}),(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`size-9 shrink-0 rounded-md p-0`,"aria-label":t.workspace.close,title:t.workspace.close,onClick:()=>s(!1),children:(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:1.75})})]})]}),_?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge bg-surface-muted/40 px-3 py-2`,children:(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 rounded-md border border-edge bg-surface-panel px-2 focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/20`,children:[(0,$.jsx)(Hv,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`input`,{type:`text`,role:`searchbox`,value:y,onChange:e=>b(e.target.value),placeholder:t.workspace.searchPlaceholder,"aria-label":t.workspace.searchPlaceholder,className:`min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,className:`flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":t.workspace.clearSearch,title:t.workspace.clearSearch,onClick:()=>{b(``),v(!1)},children:(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})]})}):null,F?(0,$.jsxs)(`p`,{className:`shrink-0 px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:[t.workspace.loadError,`: `,F]}):null,V?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-2`,children:C?(0,$.jsxs)(`div`,{className:`space-y-2 px-3 py-1`,children:[(0,$.jsx)(Ft,{className:`h-11 w-full`}),(0,$.jsx)(Ft,{className:`h-11 w-full`}),(0,$.jsx)(Ft,{className:`h-11 w-full`})]}):T?(0,$.jsxs)(`p`,{className:`px-3 py-2 text-xs text-red-600 dark:text-red-400`,children:[t.workspace.loadError,`: `,T]}):x.length===0?(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:t.workspace.noSearchResults}):x.map(e=>(0,$.jsxs)(`button`,{type:`button`,draggable:!0,className:X(`flex w-full min-w-0 cursor-grab items-center gap-2 px-3 py-2 text-left active:cursor-grabbing hover:bg-surface-hover`,k===e.path&&`bg-accent-soft text-accent-fg`),onClick:()=>A(e.path),onDragStart:t=>ee(t,e),title:e.path,children:[(0,$.jsx)(wf,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-subtle`,children:e.path})]})]},e.path))}):(0,$.jsx)(oH,{tree:M,selectedPath:k,onSelectFile:e=>A(e),onExpandDir:ce,onAction:le,onFileDragStart:ee,actionLabels:{preview:t.workspace.preview,download:t.workspace.download,copyPath:t.workspace.copyPath,share:t.workspace.shareLink,...H?{openDefault:t.workspace.openSystemApp,openDirectory:t.workspace.openInFileManager,openWith:t.workspace.chooseApp,revealInFolder:t.workspace.revealInFolder,trash:t.workspace.moveToTrash,recommendedApps:t.workspace.recommendedApps,desktopUpdateRequired:t.workspace.desktopUpdateRequired}:{}},emptyHint:t.workspace.emptyDir})]}):null}),(0,$.jsx)(hU,{open:te,onOpenChange:oe,loading:ne,error:W,result:U,pendingParams:re,onConfirm:e=>void ae(e)}),(0,$.jsx)(UV,{open:!!D,title:t.workspace.trashConfirmTitle,description:t.workspace.trashConfirmDescription.replace(`{{name}}`,D?.name??``),confirmLabel:t.workspace.moveToTrash,cancelLabel:t.workspace.cancel,destructive:!0,onConfirm:()=>void ue(),onCancel:()=>O(null)})]})});function QU(e){return e.projectId||e.contextKind!==`empty`?`hidden`:e.projectCount>0?`choose_project`:e.workDiscovery?.enabled?e.workDiscovery.state.status===`in_progress`&&e.workDiscovery.state.activeRunId?`resume_discovery`:e.workDiscovery.state.status===`not_started`?`discover_folder`:`hidden`:`hidden`}async function $U(){return J(Y(`/api/onboarding/work-discovery`))}async function eW(){await J(Y(`/api/onboarding/work-discovery`),{method:`PATCH`,body:JSON.stringify({status:`dismissed`})})}async function tW(e){return(await J(Y(`/api/work-discovery/preview`),{method:`POST`,body:JSON.stringify({rootPath:e})})).preview}async function nW(){let e=await J(Y(`/api/work-discovery/candidates`),{method:`POST`});return{candidates:e.candidates,processingTarget:e.processingTarget}}async function rW(e,t){return(await J(Y(`/api/context-sources/work-folders`),{method:`POST`,body:JSON.stringify({rootPath:e,processingPolicy:t})})).source}async function iW(e,t,n,r){return J(Y(`/api/context-sources/bootstrap`),{method:`POST`,body:JSON.stringify({items:e,processingPolicy:n,...t?{workDiscoveryRunId:t}:{},sourceCheckpoints:r})})}async function aW(e){await Promise.all(e.map(e=>J(Y(`/api/user-model/assertions/${encodeURIComponent(e.assertionId)}/status`),{method:`PATCH`,body:JSON.stringify({status:e.status===`accepted`?`active`:`rejected`})})))}async function oW(e){return(await J(Y(`/api/work-discovery/runs`),{method:`POST`,body:JSON.stringify({rootPath:e,source:`onboarding_selected_directory`,idempotencyKey:crypto.randomUUID()})})).run}async function sW(e,t){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/profile`),{method:`POST`,body:JSON.stringify({decisions:t})})).run}async function cW(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}`))).run}async function lW(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/cancel`),{method:`POST`})).run}async function uW(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/retry`),{method:`POST`})).run}async function dW(e,t,n){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/recognition-feedback`),{method:`POST`,body:JSON.stringify({decision:t,correctedIntent:n})})).run}async function fW(e,t){await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/suggestions/${encodeURIComponent(t)}/select`),{method:`POST`})}var pW={code:gl,review:hc,note:lv,task:h_,target:TS,search:Vv,folder:Tp,content:Lx,documents:zd,globe:Ae};function mW(e){let t=(0,Q.c)(5),{name:n,className:r}=e,i=pW[n]??Tp,a;t[0]===r?a=t[1]:(a=X(`size-[1.125rem] text-accent-fg sm:size-5`,r),t[0]=r,t[1]=a);let o;return t[2]!==i||t[3]!==a?(o=(0,$.jsx)(i,{className:a,strokeWidth:1.75,"aria-hidden":!0}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}var hW=(0,Z.memo)(function({spotlight:e,projectId:t,onPickPrompt:n,onRetryContext:r,onRefreshExploration:i,onSelectProject:a,compact:o=!1}){let s=e,[c,l]=(0,Z.useState)([]),[u,d]=(0,Z.useState)(null),[f,m]=(0,Z.useState)(s.contextKind!==`empty`),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(null),y=p(),b=ut(e=>e.token),x=rt(ct(e=>e.language)).onboarding.workDiscovery;(0,Z.useEffect)(()=>{if(!b||t||s.contextKind!==`empty`){m(!0),l([]),d(null);return}let e=!1;return m(!1),Promise.allSettled([AB({status:`active`,sortBy:`updatedAt`,sortOrder:`desc`,limit:5}),$U()]).then(([t,n])=>{e||(l(t.status===`fulfilled`?t.value.items:[]),d(n.status===`fulfilled`?n.value:null),m(!0))}),()=>{e=!0}},[t,s.contextKind,b]);let S=e=>{n({...e,contextKind:s.contextKind})},C=s.categories.flatMap(e=>{let t=e.scenarios[0];return t?[{category:e,scenario:t}]:[]}).slice(0,3),w=QU({contextKind:s.contextKind,projectId:t,projectCount:c.length,workDiscovery:u}),T=async e=>{if(!(!a||_)){v(e);try{await a(e),g(!1)}catch{fA(`error`,x.projectStartFailed)}finally{v(null)}}},E=X(`mt-1 inline-flex min-h-9 items-center gap-2 rounded-lg px-3 text-sm font-medium text-accent-fg hover:bg-accent-soft`,gk.transition,gk.press,gk.focusRingBase);return(0,$.jsxs)(`div`,{className:X(`flex flex-col pb-2`,o?`gap-2 pt-1`:`gap-3.5 pt-6 sm:gap-4 sm:pb-3 sm:pt-8 [@media(max-height:800px)]:pt-3 sm:[@media(max-height:800px)]:pt-4`),children:[(0,$.jsxs)(`div`,{className:X(`flex flex-col items-center gap-1.5 px-1 text-center sm:gap-2`,o?`pt-3 [@media(max-height:800px)]:pt-1`:`pt-14 sm:pt-16 [@media(max-height:800px)]:pt-6 sm:[@media(max-height:800px)]:pt-7`),children:[(0,$.jsx)(hj,{className:`size-11 shrink-0 sm:size-12`,"aria-hidden":!0}),s.contextLabel?(0,$.jsx)(`div`,{className:`max-w-full truncate rounded-full border border-edge-subtle bg-surface-base px-2.5 py-1 text-xs text-fg-muted sm:max-w-md`,title:s.contextLabel,children:s.contextLabel}):null,(0,$.jsx)(`h1`,{className:`text-balance text-lg font-semibold tracking-tight text-fg sm:text-xl`,children:s.headline}),(0,$.jsx)(`p`,{className:`max-w-md text-pretty text-sm leading-snug text-fg-muted sm:text-[0.9375rem]`,children:s.tagline}),(0,$.jsx)(`div`,{className:`min-h-7 text-xs text-fg-muted`,"aria-live":`polite`,"aria-atomic":`true`,children:s.statusLabel?(0,$.jsxs)(`span`,{className:`inline-flex flex-wrap items-center justify-center gap-1.5`,children:[(0,$.jsx)(`span`,{children:s.statusLabel}),s.contextStatus===`degraded`&&r?(0,$.jsxs)(`button`,{type:`button`,onClick:r,className:X(`inline-flex min-h-7 items-center gap-1 rounded-md px-1.5 font-medium text-accent-fg hover:bg-accent-soft`,gk.transition,gk.focusRingBase),children:[(0,$.jsx)(Fv,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),s.retryLabel]}):null]}):null}),!t&&!f&&s.contextKind===`empty`?(0,$.jsx)(Ft,{className:`mt-1 h-9 w-36 rounded-lg`}):w===`choose_project`&&a?(0,$.jsxs)(se,{open:h,onOpenChange:g,children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:E,children:[(0,$.jsx)(Tp,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),x.selectProject]})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{align:`center`,side:`bottom`,sideOffset:6,collisionPadding:12,className:`z-50 w-[min(22rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-1.5 text-left shadow-popover outline-none`,children:[(0,$.jsx)(`p`,{className:`px-2.5 pb-1.5 pt-1 text-xs font-medium text-fg-muted`,children:x.recentProjects}),c.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:_!==null,onClick:()=>void T(e.id),className:X(`flex min-h-11 w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-left hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60`,gk.transition,gk.focusRingPanel),children:[(0,$.jsx)(Tp,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:e.name}),e.description?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:e.description}):null]}),(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})]},e.id)),u?.enabled?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>{g(!1),y(`/onboarding/workspace?new=1`)},className:X(`mt-1 flex min-h-10 w-full items-center gap-2.5 border-t border-edge-subtle px-2.5 pt-2 text-left text-sm font-medium text-fg-muted hover:text-fg`,gk.transition,gk.focusRingPanel),children:[(0,$.jsx)(Tp,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),x.chooseAnotherFolder]}):null]})})]}):w===`discover_folder`?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>y(`/onboarding/workspace?new=1`),className:E,children:[(0,$.jsx)(Tp,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),x.chooseWorkFolder]}):w===`resume_discovery`?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>y(`/onboarding/workspace`),className:E,children:[(0,$.jsx)(Fv,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),x.resumeAnalysis]}):null]}),(0,$.jsx)(`section`,{className:X(o?`mt-2`:`mt-7 sm:mt-8 [@media(max-height:800px)]:mt-4 sm:[@media(max-height:800px)]:mt-5`),"aria-label":s.otherSuggestionsLabel,children:(0,$.jsx)(`ul`,{className:`grid w-full grid-cols-1 divide-y divide-edge-subtle sm:grid-cols-3 sm:divide-x sm:divide-y-0`,children:C.map(({category:e,scenario:t},n)=>{let r=e.scope===`explore`&&!!i;return(0,$.jsxs)(`li`,{className:`relative min-w-0 px-1 py-1 sm:px-2.5`,"data-welcome-suggestion-scope":e.scope,children:[(0,$.jsxs)(`button`,{type:`button`,title:t.prompt,onClick:()=>S({suggestionId:t.id??`${e.id}:${n}`,categoryId:e.id,prompt:t.prompt}),className:X(`flex min-h-12 w-full items-start gap-2.5 rounded-lg px-2 py-2 text-left hover:bg-surface-hover/70`,r&&`pe-10`,gk.transition,gk.press,gk.focusRingPanel),children:[(0,$.jsx)(mW,{name:e.icon,className:`mt-0.5 shrink-0`}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium leading-snug text-fg sm:text-[0.9375rem]`,children:e.title}),(0,$.jsx)(`div`,{className:`mt-0.5 text-xs leading-snug text-fg-muted`,children:e.description})]})]}),r?(0,$.jsx)(`button`,{type:`button`,"aria-label":s.refreshExplorationLabel,title:s.refreshExplorationLabel,onClick:i,className:X(`absolute end-3 top-2.5 inline-flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel),children:(0,$.jsx)(Fv,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}):null]},e.id)})})})]})}),gW=(0,Z.memo)(function(e){let t=(0,Q.c)(32),{showSkeleton:n,compact:r}=e,i=n===void 0?!0:n,a=r===void 0?!1:r,o=i?``:`opacity-0`,s=a?`pt-1`:`pt-6 sm:gap-4 sm:pb-3 sm:pt-8`,c;t[0]===s?c=t[1]:(c=X(`flex flex-col gap-3.5 pb-2`,s),t[0]=s,t[1]=c);let l=a?`pt-3`:`pt-14 sm:pt-16`,u;t[2]===l?u=t[3]:(u=X(`flex flex-col items-center gap-1.5 px-1 text-center sm:gap-2`,l),t[2]=l,t[3]=u);let d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(hj,{className:`size-11 shrink-0 opacity-80 sm:size-12`,"aria-hidden":!0}),t[4]=d):d=t[4];let f;t[5]===o?f=t[6]:(f=X(`h-5 w-44 max-w-full`,o),t[5]=o,t[6]=f);let p;t[7]===f?p=t[8]:(p=(0,$.jsx)(Ft,{className:f}),t[7]=f,t[8]=p);let m;t[9]===o?m=t[10]:(m=X(`h-4 w-[min(100%,24rem)]`,o),t[9]=o,t[10]=m);let h;t[11]===m?h=t[12]:(h=(0,$.jsx)(Ft,{className:m}),t[11]=m,t[12]=h);let g;t[13]===o?g=t[14]:(g=X(`h-3 w-32`,o),t[13]=o,t[14]=g);let _;t[15]===g?_=t[16]:(_=(0,$.jsx)(`div`,{className:`flex min-h-7 items-center`,children:(0,$.jsx)(Ft,{className:g})}),t[15]=g,t[16]=_);let v;t[17]!==h||t[18]!==_||t[19]!==u||t[20]!==p?(v=(0,$.jsxs)(`div`,{className:u,children:[d,p,h,_]}),t[17]=h,t[18]=_,t[19]=u,t[20]=p,t[21]=v):v=t[21];let y=a?`mt-2`:`mt-7 sm:mt-8`,b;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(b=[0,1,2],t[22]=b):b=t[22];let x;t[23]===o?x=t[24]:(x=(0,$.jsx)(`div`,{className:`grid w-full grid-cols-1 divide-y divide-edge-subtle sm:grid-cols-3 sm:divide-x sm:divide-y-0`,children:b.map(e=>(0,$.jsxs)(`div`,{className:`flex min-h-14 w-full items-start gap-2.5 px-3 py-2.5`,children:[(0,$.jsx)(Ft,{className:X(`mt-0.5 size-5 shrink-0 rounded-md`,o)}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(Ft,{className:X(`h-4 w-24`,o)}),(0,$.jsx)(Ft,{className:X(`h-3 w-32 max-w-full`,o)})]})]},e))}),t[23]=o,t[24]=x);let S;t[25]!==y||t[26]!==x?(S=(0,$.jsx)(`section`,{className:y,"aria-hidden":`true`,children:x}),t[25]=y,t[26]=x,t[27]=S):S=t[27];let C;return t[28]!==v||t[29]!==S||t[30]!==c?(C=(0,$.jsxs)(`div`,{className:c,"aria-busy":`true`,children:[v,S]}),t[28]=v,t[29]=S,t[30]=c,t[31]=C):C=t[31],C}),_W=120*1e3,vW=new Map;function yW(){return typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function bW(e){for(let[t,n]of vW)n.expiresAt<=e&&vW.delete(t)}function xW(e,t=Date.now()){bW(t);let n=yW();return vW.set(n,{file:e,name:e.name,type:e.type,expiresAt:t+_W}),n}function SW(e,t=Date.now()){let n=vW.get(e);return n?n.expiresAt<=t?(vW.delete(e),null):{name:n.name,type:n.type}:null}function CW(e,t=Date.now()){let n=vW.get(e);if(!n)return null;if(n.expiresAt<=t)return vW.delete(e),null;if(!n.file)return null;let r=n.file;return n.file=null,r}function wW(e){let t=(0,Q.c)(8),{html:n,title:r}=e,i=(0,Z.useRef)(null),a;t[0]===n?a=t[1]:(a=()=>{i.current?.contentWindow?.postMessage({type:`xopc-html-preview`,html:n},`*`)},t[0]=n,t[1]=a);let o=a,s;t[2]===o?s=t[3]:(s=[o],t[2]=o,t[3]=s),(0,Z.useEffect)(o,s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=Y(`/api/preview/html`),t[4]=c):c=t[4];let l;return t[5]!==o||t[6]!==r?(l=(0,$.jsx)(`iframe`,{ref:i,title:r,className:`min-h-0 w-full flex-1 rounded-lg border border-edge-subtle bg-white dark:border-edge dark:bg-[#1e1e1e]`,src:c,sandbox:`allow-scripts allow-popups allow-popups-to-escape-sandbox allow-downloads allow-forms allow-modals`,referrerPolicy:`no-referrer`,onLoad:o}),t[5]=o,t[6]=r,t[7]=l):l=t[7],l}var TW=()=>s(()=>import(`./markdown-split-D7V3j0vE.js`),__vite__mapDeps([114,1,4,115,26,116,117])),EW=()=>s(()=>import(`./html-workspace-editor-C3DKAkMc.js`),__vite__mapDeps([118,1,116,4,117])),DW=(0,Z.lazy)(()=>TW().then(e=>({default:e.MarkdownSplit}))),OW=(0,Z.lazy)(()=>EW().then(e=>({default:e.HtmlWorkspaceEditor})));function kW(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col px-4 py-3`,"aria-busy":!0,children:[(0,$.jsx)(`div`,{className:`h-4 w-11/12 animate-pulse rounded bg-surface-hover`}),(0,$.jsx)(`div`,{className:`mt-3 h-4 w-9/12 animate-pulse rounded bg-surface-hover`}),(0,$.jsx)(`div`,{className:`mt-3 h-4 w-10/12 animate-pulse rounded bg-surface-hover`})]}),e[0]=t):t=e[0],t}function AW(e){let t=e.lastIndexOf(`.`);return t>0?e.slice(t).toLowerCase():``}function jW(e){return{".ts":`typescript`,".tsx":`tsx`,".js":`javascript`,".jsx":`jsx`,".json":`json`,".css":`css`,".yml":`yaml`,".yaml":`yaml`,".py":`python`,".go":`go`,".rs":`rust`,".sh":`bash`}[AW(e)]??`plaintext`}function MW(e){let t=(0,Q.c)(12),{text:n,targetLine:r}=e,i=(0,Z.useRef)(null),a;if(t[0]!==n){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\r\n|\n|\r/,t[2]=e):e=t[2],a=n.split(e),t[0]=n,t[1]=a}else a=t[1];let o=a,s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{i.current?.scrollIntoView({block:`center`})},t[3]=s):s=t[3];let c;t[4]!==r||t[5]!==n?(c=[r,n],t[4]=r,t[5]=n,t[6]=c):c=t[6],(0,Z.useEffect)(s,c);let l;t[7]!==o||t[8]!==r?(l=o.map((e,t)=>{let n=t+1,a=n===r;return(0,$.jsxs)(`div`,{ref:a?i:void 0,className:a?`flex bg-accent-soft/60 text-fg`:`flex`,"data-line":n,children:[(0,$.jsx)(`span`,{className:`w-12 shrink-0 select-none pr-3 text-right text-fg-subtle`,children:n}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 whitespace-pre-wrap break-words`,children:e||` `})]},n)}),t[7]=o,t[8]=r,t[9]=l):l=t[9];let u;return t[10]===l?u=t[11]:(u=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto px-4 py-3`,children:(0,$.jsx)(`div`,{className:`min-w-max font-mono text-xs leading-relaxed text-fg`,children:l})}),t[10]=l,t[11]=u),u}function NW(e,t){let n=e.textContent??``,r=e.descriptor.context===`workspace`,i=e.workspaceEditing;return t===`markdown`?r&&i?.markdownEditMode?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(kW,{}),children:(0,$.jsx)(DW,{initialContent:n,onSave:e=>void i?.onSaveMarkdown?.(e),isDark:(i?.isDark??e.resolvedTheme===`dark`)===!0,wordWrap:i?.markdownWordWrap===!0,onToggleWordWrap:i?.onToggleMarkdownWordWrap},e.descriptor.id)})}):(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(ke,{content:n})}):t===`html`?r&&i?.htmlCodeMode?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(kW,{}),children:(0,$.jsx)(OW,{initialContent:n,onChange:e=>i?.onHtmlChange?.(e),isDark:(i?.isDark??e.resolvedTheme===`dark`)===!0},e.descriptor.id)})}):(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden px-2 pb-2 pt-1 sm:px-4`,children:(0,$.jsx)(wW,{html:n,title:e.descriptor.fileName})}):e.targetLine&&e.targetLine>0?(0,$.jsx)(MW,{text:n,targetLine:e.targetLine}):t===`code`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(ke,{content:`\`\`\`${jW(e.descriptor.fileName)}\n${n}\n\`\`\``})}):(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-3`,children:(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-xs text-fg`,children:n})})}function PW(e){return NW(e,`text`)}function FW(e){return NW(e,`markdown`)}function IW(e){return NW(e,`code`)}function LW(e){return NW(e,`html`)}function RW(){return(0,Z.createElement)(`div`,{className:`px-4 py-6 text-sm text-fg-muted`},`Loading preview...`)}function zW(e,t,n,r=`binary`){let i=(0,Z.lazy)(n);return{id:e,readMode:r,capabilities:t,render:e=>(0,Z.createElement)(Z.Suspense,{fallback:RW()},(0,Z.createElement)(i,e))}}var BW={text:{id:`text`,readMode:`text`,capabilities:[`download`],render:e=>(0,Z.createElement)(PW,e)},markdown:{id:`markdown`,readMode:`text`,capabilities:[`download`,`edit`],render:e=>(0,Z.createElement)(FW,e)},code:{id:`code`,readMode:`text`,capabilities:[`download`],render:e=>(0,Z.createElement)(IW,e)},html:{id:`html`,readMode:`text`,capabilities:[`download`,`edit`],render:e=>(0,Z.createElement)(LW,e)},image:zW(`image`,[`download`,`zoom`,`rotate`],()=>s(()=>import(`./binary-plugins-BCnyNU0C.js`).then(e=>({default:e.InteractiveImagePreview})),__vite__mapDeps([119,1,26,4,120,121,33,8,17,12,75,11]))),pdf:zW(`pdf`,[`download`,`zoom`,`rotate`,`pageNavigation`,`print`],()=>s(()=>import(`./binary-plugins-BCnyNU0C.js`).then(e=>({default:e.PdfPreviewPluginView})),__vite__mapDeps([119,1,26,4,120,121,33,8,17,12,75,11]))),docx:zW(`docx`,[`download`],()=>s(()=>import(`./binary-plugins-BCnyNU0C.js`).then(e=>({default:e.DocxPreviewPluginView})),__vite__mapDeps([119,1,26,4,120,121,33,8,17,12,75,11]))),spreadsheet:zW(`spreadsheet`,[`download`],()=>s(()=>import(`./binary-plugins-BCnyNU0C.js`).then(e=>({default:e.SpreadsheetPreviewPluginView})),__vite__mapDeps([119,1,26,4,120,121,33,8,17,12,75,11]))),pptx:zW(`pptx`,[`download`],()=>s(()=>import(`./binary-plugins-BCnyNU0C.js`).then(e=>({default:e.PptxPreviewPluginView})),__vite__mapDeps([119,1,26,4,120,121,33,8,17,12,75,11]))),audio:zW(`audio`,[`download`],()=>s(()=>import(`./media-plugins-BLaE5b1Y.js`).then(e=>({default:e.AudioPreviewPluginView})),__vite__mapDeps([122,1,4,120,121,33,8,17,12,75,11]))),video:zW(`video`,[`download`],()=>s(()=>import(`./media-plugins-BLaE5b1Y.js`).then(e=>({default:e.VideoPreviewPluginView})),__vite__mapDeps([122,1,4,120,121,33,8,17,12,75,11]))),archive:zW(`archive`,[`download`],()=>s(()=>import(`./archive-plugin-BQrilVVv.js`).then(e=>({default:e.ArchivePreviewPluginView})),__vite__mapDeps([123,1,4,124,121,33,8,17,12,75,11]))),unsupported:zW(`unsupported`,[`download`],()=>s(()=>import(`./media-plugins-BLaE5b1Y.js`).then(e=>({default:e.UnsupportedPreviewPluginView})),__vite__mapDeps([122,1,4,120,121,33,8,17,12,75,11])),`metadata`)};function VW(e){return BW[e]??BW.unsupported}function HW(e){let t=(0,Q.c)(63),{plugin:n,controls:r,onZoomIn:i,onZoomOut:a,onZoomReset:o,onRotate:s,onSearchChange:c}=e,l;t[0]===n.capabilities?l=t[1]:(l=n.capabilities.includes(`zoom`),t[0]=n.capabilities,t[1]=l);let u=l,d;t[2]===n.capabilities?d=t[3]:(d=n.capabilities.includes(`search`),t[2]=n.capabilities,t[3]=d);let f=d,p;t[4]===n.capabilities?p=t[5]:(p=n.capabilities.includes(`rotate`),t[4]=n.capabilities,t[5]=p);let m=p,h;t[6]!==r||t[7]!==n.capabilities?(h=n.capabilities.includes(`pageNavigation`)&&r.pageCount!=null&&r.pageCount>1,t[6]=r,t[7]=n.capabilities,t[8]=h):h=t[8];let g=h;if(!(u||f||m||g))return null;let _;if(t[9]!==g||t[10]!==m||t[11]!==f||t[12]!==u||t[13]!==r||t[14]!==s||t[15]!==c||t[16]!==i||t[17]!==a||t[18]!==o){let e=[];if(g){let n=r.page<=1,i;t[20]===r?i=t[21]:(i=()=>r.setPage(Math.max(1,r.page-1)),t[20]=r,t[21]=i);let a;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(Ax,{className:`size-3.5`}),t[22]=a):a=t[22];let o;t[23]!==n||t[24]!==i?(o=(0,$.jsx)(UW,{label:`Previous page`,disabled:n,onClick:i,children:a}),t[23]=n,t[24]=i,t[25]=o):o=t[25];let s;t[26]!==r.page||t[27]!==r.pageCount?(s=(0,$.jsxs)(`span`,{className:`min-w-16 px-1 text-center text-xs text-fg-muted`,children:[r.page,` / `,r.pageCount]}),t[26]=r.page,t[27]=r.pageCount,t[28]=s):s=t[28];let c=r.page>=(r.pageCount??1),l;t[29]===r?l=t[30]:(l=()=>r.setPage(Math.min(r.pageCount??r.page,r.page+1)),t[29]=r,t[30]=l);let u;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(kx,{className:`size-3.5`}),t[31]=u):u=t[31];let d;t[32]!==c||t[33]!==l?(d=(0,$.jsx)(UW,{label:`Next page`,disabled:c,onClick:l,children:u}),t[32]=c,t[33]=l,t[34]=d):d=t[34];let f;t[35]!==s||t[36]!==d||t[37]!==o?(f=(0,$.jsxs)(`div`,{className:`flex items-center gap-1 rounded-md border border-edge-subtle bg-surface-base p-0.5 dark:border-edge`,children:[o,s,d]},`page`),t[35]=s,t[36]=d,t[37]=o,t[38]=f):f=t[38],e.push(f)}if(u){let n;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(we,{className:`size-3.5`}),t[39]=n):n=t[39];let s;t[40]===a?s=t[41]:(s=(0,$.jsx)(UW,{label:`Zoom out`,onClick:a,children:n}),t[40]=a,t[41]=s);let c;t[42]===r.zoom?c=t[43]:(c=Math.round(r.zoom*100),t[42]=r.zoom,t[43]=c);let l;t[44]!==o||t[45]!==c?(l=(0,$.jsxs)(`button`,{type:`button`,className:`min-w-14 rounded px-1.5 py-1 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:o,title:`Reset zoom`,children:[c,`%`]}),t[44]=o,t[45]=c,t[46]=l):l=t[46];let u;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Me,{className:`size-3.5`}),t[47]=u):u=t[47];let d;t[48]===i?d=t[49]:(d=(0,$.jsx)(UW,{label:`Zoom in`,onClick:i,children:u}),t[48]=i,t[49]=d);let f;t[50]!==d||t[51]!==s||t[52]!==l?(f=(0,$.jsxs)(`div`,{className:`flex items-center gap-1 rounded-md border border-edge-subtle bg-surface-base p-0.5 dark:border-edge`,children:[s,l,d]},`zoom`),t[50]=d,t[51]=s,t[52]=l,t[53]=f):f=t[53],e.push(f)}if(m){let n;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(Lv,{className:`size-3.5`}),t[54]=n):n=t[54];let r;t[55]===s?r=t[56]:(r=(0,$.jsx)(UW,{label:`Rotate`,onClick:s,children:n},`rotate`),t[55]=s,t[56]=r),e.push(r)}if(f){let n;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(Hv,{className:`size-3.5`,"aria-hidden":!0}),t[57]=n):n=t[57];let i;t[58]===c?i=t[59]:(i=e=>c(e.target.value),t[58]=c,t[59]=i);let a;t[60]!==r.searchQuery||t[61]!==i?(a=(0,$.jsxs)(`label`,{className:`flex min-w-40 items-center gap-1 rounded-md border border-edge-subtle bg-surface-base px-2 py-1 text-xs text-fg-muted dark:border-edge`,children:[n,(0,$.jsx)(`input`,{className:`min-w-0 flex-1 bg-transparent text-fg outline-none placeholder:text-fg-subtle`,value:r.searchQuery,onChange:i,placeholder:`Search`})]},`search`),t[60]=r.searchQuery,t[61]=i,t[62]=a):a=t[62],e.push(a)}_=(0,$.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:e}),t[9]=g,t[10]=m,t[11]=f,t[12]=u,t[13]=r,t[14]=s,t[15]=c,t[16]=i,t[17]=a,t[18]=o,t[19]=_}else _=t[19];return _}function UW(e){let t=(0,Q.c)(6),{label:n,disabled:r,onClick:i,children:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=X(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg disabled:opacity-40`),t[0]=o):o=t[0];let s;return t[1]!==a||t[2]!==r||t[3]!==n||t[4]!==i?(s=(0,$.jsx)(`button`,{type:`button`,className:o,title:n,"aria-label":n,disabled:r,onClick:i,children:a}),t[1]=a,t[2]=r,t[3]=n,t[4]=i,t[5]=s):s=t[5],s}function WW(e){let t=(0,Q.c)(22),n;t[0]===e.type?n=t[1]:(n=VW(e.type),t[0]=e.type,t[1]=n);let r=n,[i,a]=(0,Z.useState)(1),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(1),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(``),m;t[2]===u?m=t[3]:(m=e=>{l(Math.max(1,Math.min(u??e,Math.floor(e))))},t[2]=u,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{a(1),s(0),l(1),d(null),p(``)},t[4]=g):g=t[4];let _;t[5]!==e.id||t[6]!==e.type?(_=[e.id,e.type],t[5]=e.id,t[6]=e.type,t[7]=_):_=t[7],(0,Z.useEffect)(g,_);let v;t[8]!==c||t[9]!==u||t[10]!==o||t[11]!==f||t[12]!==h||t[13]!==i?(v={zoom:i,rotation:o,page:c,pageCount:u,searchQuery:f,setPageCount:d,setPage:h},t[8]=c,t[9]=u,t[10]=o,t[11]=f,t[12]=h,t[13]=i,t[14]=v):v=t[14];let y=v,b,x,S,C;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>a(qW),x=()=>a(KW),S=()=>{a(1),s(0)},C=()=>s(GW),t[15]=b,t[16]=x,t[17]=S,t[18]=C):(b=t[15],x=t[16],S=t[17],C=t[18]);let w;return t[19]!==y||t[20]!==r?(w={plugin:r,controls:y,onZoomIn:b,onZoomOut:x,onZoomReset:S,onRotate:C,onSearchChange:p},t[19]=y,t[20]=r,t[21]=w):w=t[21],w}function GW(e){return(e+90)%360}function KW(e){return Math.max(.25,Number((e-.15).toFixed(2)))}function qW(e){return Math.min(4,Number((e+.15).toFixed(2)))}function JW(e){let t=(0,Q.c)(8),{controller:n}=e,r;return t[0]!==n.controls||t[1]!==n.onRotate||t[2]!==n.onSearchChange||t[3]!==n.onZoomIn||t[4]!==n.onZoomOut||t[5]!==n.onZoomReset||t[6]!==n.plugin?(r=(0,$.jsx)(HW,{plugin:n.plugin,controls:n.controls,onZoomIn:n.onZoomIn,onZoomOut:n.onZoomOut,onZoomReset:n.onZoomReset,onRotate:n.onRotate,onSearchChange:n.onSearchChange}),t[0]=n.controls,t[1]=n.onRotate,t[2]=n.onSearchChange,t[3]=n.onZoomIn,t[4]=n.onZoomOut,t[5]=n.onZoomReset,t[6]=n.plugin,t[7]=r):r=t[7],r}function YW(e){let t=(0,Q.c)(14),n;t[0]===e.language?n=t[1]:(n=rt(e.language),t[0]=e.language,t[1]=n);let r=n,{controller:i}=e;if(e.loading){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 px-4 py-6`,"aria-busy":`true`,children:[(0,$.jsx)(Ft,{className:`h-5 w-48 max-w-full`}),(0,$.jsx)(Ft,{className:`h-4 w-full`}),(0,$.jsx)(Ft,{className:`h-4 w-11/12`}),(0,$.jsx)(Ft,{className:`h-4 w-3/4`}),(0,$.jsx)(Ft,{className:`mt-3 min-h-48 flex-1 rounded-lg`})]}),t[2]=e):e=t[2],e}if(e.loadError){let n=(e.descriptor.context===`workspace`?r.workspace.loadError:r.chat.attachmentPreviewLoadError)+`: `+e.loadError,i;return t[3]===n?i=t[4]:(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4`,children:(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:n})}),t[3]=n,t[4]=i),i}if(e.descriptor.context===`attachment`&&e.showExtractedText&&e.descriptor.type!==`image`){let n=e.extractedText||r.chat.attachmentPreviewNoText,i;return t[5]===n?i=t[6]:(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-2 overflow-hidden`,children:(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto rounded-lg border border-edge-subtle bg-surface-hover/40 p-4 dark:border-edge`,children:(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-fg-muted`,children:n})})}),t[5]=n,t[6]=i),i}let a=`${e.descriptor.id}:${i.plugin.id}`,o;t[7]!==i.controls||t[8]!==e?(o={...e,controls:i.controls},t[7]=i.controls,t[8]=e,t[9]=o):o=t[9];let s;return t[10]!==i.plugin.render||t[11]!==a||t[12]!==o?(s=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:(0,$.jsx)(XW,{pluginRender:i.plugin.render,props:o},a)}),t[10]=i.plugin.render,t[11]=a,t[12]=o,t[13]=s):s=t[13],s}function XW(e){let t=(0,Q.c)(5),{pluginRender:n,props:r}=e,i;t[0]!==n||t[1]!==r?(i=n(r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:i}),t[3]=i,t[4]=a),a}function ZW(e){let t=(0,Q.c)(9),{label:n,active:r,disabled:i,onClick:a,children:o}=e,s=r&&`bg-surface-active text-fg`,c;t[0]===s?c=t[1]:(c=X(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg disabled:cursor-not-allowed disabled:opacity-40`,s,gk.focusRingPanel),t[0]=s,t[1]=c);let l;return t[2]!==r||t[3]!==o||t[4]!==i||t[5]!==n||t[6]!==a||t[7]!==c?(l=(0,$.jsx)(`button`,{type:`button`,className:c,title:n,"aria-label":n,"aria-pressed":r,disabled:i,onClick:a,children:o}),t[2]=r,t[3]=o,t[4]=i,t[5]=n,t[6]=a,t[7]=c,t[8]=l):l=t[8],l}function QW(e){let t=(0,Q.c)(9),{icon:n,label:r,disabled:i,onClick:a}=e,o;t[0]===n?o=t[1]:(o=(0,$.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center text-fg-muted`,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==i||t[5]!==a||t[6]!==o||t[7]!==s?(c=(0,$.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`flex h-9 w-full min-w-0 items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-fg hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:opacity-40`,disabled:i,onClick:a,children:[o,s]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c):c=t[8],c}function $W(e){let t=(0,Q.c)(36),{name:n,subtitle:r,controller:i,actions:a,expanded:o,onToggleExpanded:s,onClose:c,edit:l,wordWrap:u,editInNewChat:d,share:f,openWithSystemApp:p,chooseApp:m,recommendedApps:h,recentApps:g,onOpenWithApp:_,onRevealInFolder:v,copyPath:y,textView:b,openInBrowser:x}=e,S=h===void 0?[]:h,C=g===void 0?[]:g,w=rt(ct(nG)),T=w.workspace,E=i.plugin.id===`pdf`?w.chat.attachmentPreviewPdf:i.plugin.id===`docx`?w.chat.attachmentPreviewDocument:i.plugin.id===`spreadsheet`?w.chat.attachmentPreviewSpreadsheet:T.preview,D=Wt(),[O,k]=(0,Z.useState)(!1),A;t[0]===i.plugin.capabilities?A=t[1]:(A=i.plugin.capabilities.some(tG),t[0]=i.plugin.capabilities,t[1]=A);let j=A,M,N;t[2]===O?(M=t[3],N=t[4]):(M=()=>{if(!O)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopImmediatePropagation(),k(!1))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},N=[O],t[2]=O,t[3]=M,t[4]=N),(0,Z.useEffect)(M,N);let P;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>{k(!1),e()},t[5]=P):P=t[5];let F=P,I;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(I=X(`shrink-0 border-b border-edge px-3 py-2 dark:border-edge sm:px-4`,pj),t[6]=I):I=t[6];let L;t[7]===n?L=t[8]:(L=(0,$.jsx)(`h2`,{className:`truncate text-base font-semibold leading-tight tracking-tight text-fg`,title:n,children:n}),t[7]=n,t[8]=L);let R;t[9]===r?R=t[10]:(R=r?(0,$.jsx)(`div`,{className:`mt-0.5 flex min-w-0 items-center gap-2 text-xs leading-tight text-fg-muted`,children:r}):null,t[9]=r,t[10]=R);let z;t[11]!==L||t[12]!==R?(z=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 py-0.5`,children:[L,R]}),t[11]=L,t[12]=R,t[13]=z):z=t[13];let B;t[14]===o?B=t[15]:(B=o?(0,$.jsx)(rv,{className:`size-4`,strokeWidth:1.75}):(0,$.jsx)(xe,{className:`size-4`,strokeWidth:1.75}),t[14]=o,t[15]=B);let V;t[16]===d?.loading?V=t[17]:(V=d?.loading?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(Y_,{className:`size-4`}),t[16]=d?.loading,t[17]=V);let H;t[18]===f?.loading?H=t[19]:(H=f?.loading?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(p_,{className:`size-4`}),t[18]=f?.loading,t[19]=H);let ee;t[20]===O?ee=t[21]:(ee=O?(0,$.jsx)(`button`,{type:`button`,className:`fixed inset-0 z-40 cursor-default bg-transparent`,"aria-hidden":!0,tabIndex:-1,onPointerDown:e=>{e.preventDefault(),k(!1)}}):null,t[20]=O,t[21]=ee);let te;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(te=X(`inline-flex size-9 shrink-0 items-center justify-center rounded-md text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,gk.focusRingPanel),t[22]=te):te=t[22];let ne,U;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(ne=()=>k(eG),U=(0,$.jsx)(hd,{className:`size-4`}),t[23]=ne,t[24]=U):(ne=t[23],U=t[24]);let re;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(`div`,{className:`mx-0.5 h-5 w-px bg-edge-subtle`,"aria-hidden":!0}),t[25]=re):re=t[25];let ie;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:1.75}),t[26]=ie):ie=t[26];let ae;t[27]!==T.close||t[28]!==c?(ae=(0,$.jsx)(ZW,{label:T.close,onClick:c,children:ie}),t[27]=T.close,t[28]=c,t[29]=ae):ae=t[29];let oe;return t[30]!==i||t[31]!==j||t[32]!==w||t[33]!==E||t[34]!==b?(oe=j||b?(0,$.jsxs)(`div`,{className:`mt-2 flex items-center gap-2 overflow-x-auto pb-0.5`,children:[b?(0,$.jsx)(`div`,{className:`mr-2 flex shrink-0 rounded-lg border border-edge p-0.5`,role:`group`,"aria-label":w.chat.attachmentPreviewText,children:[{active:!1,label:E},{active:!0,label:w.chat.attachmentPreviewText}].map(e=>(0,$.jsx)(`button`,{type:`button`,"aria-pressed":b.active===e.active,className:X(`rounded-md px-2.5 py-1 text-xs font-medium`,b.active===e.active?`bg-surface-hover text-fg`:`text-fg-muted hover:text-fg`),onClick:()=>b.onChange(e.active),children:e.label},e.label))}):null,j?(0,$.jsx)(JW,{controller:i}):null]}):null,t[30]=i,t[31]=j,t[32]=w,t[33]=E,t[34]=b,t[35]=oe):oe=t[35],(0,$.jsxs)(`div`,{className:I,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[z,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[i.plugin.capabilities.includes(`edit`)?(0,$.jsx)(ZW,{label:l?.active?T.preview:T.edit,active:l?.active??!1,disabled:!l,onClick:l?.onToggle,children:l?.active?(0,$.jsx)(Dd,{className:`size-4`}):(0,$.jsx)(bv,{className:`size-4`})}):null,u?(0,$.jsx)(ZW,{label:T.wordWrap,active:u.active,onClick:u.onToggle,children:(0,$.jsx)(HS,{className:`size-4`})}):null,(0,$.jsx)(ZW,{label:o?T.collapsePreview:T.expandPreview,active:o,disabled:!s,onClick:s,children:B}),(0,$.jsx)(ZW,{label:T.editInNewChat,disabled:!d||d.disabled||d.loading,onClick:d?.onClick,children:V}),(0,$.jsx)(ZW,{label:T.shareLink,disabled:!f||f.disabled||f.loading,onClick:f?.onClick,children:H}),(0,$.jsxs)(`div`,{className:`relative shrink-0`,children:[ee,(0,$.jsx)(`button`,{type:`button`,className:te,title:T.moreActions,"aria-label":T.moreActions,"aria-haspopup":`menu`,"aria-expanded":O,onClick:ne,children:U}),O?(0,$.jsxs)(`div`,{role:`menu`,"data-file-preview-menu":!0,className:`absolute right-0 top-full z-50 mt-1 w-60 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover`,children:[x?(0,$.jsxs)(`a`,{href:x.href,target:`_blank`,rel:`noopener noreferrer`,role:`menuitem`,className:`flex h-9 w-full items-center gap-2.5 rounded-md px-2.5 text-sm text-fg hover:bg-surface-hover`,onClick:()=>k(!1),children:[(0,$.jsx)(ge,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),T.openInBrowser]}):null,p?(0,$.jsx)(QW,{icon:(0,$.jsx)(ge,{className:`size-4`}),label:T.openSystemApp,disabled:p.disabled||p.loading,onClick:()=>F(p.onClick)}):null,m?(0,$.jsx)(QW,{icon:(0,$.jsx)(hd,{className:`size-4`}),label:T.chooseApp,disabled:m.disabled,onClick:()=>F(m.onClick)}):null,_?[{label:T.recommendedApps,apps:S},{label:T.recentApps,apps:C}].map(e=>{let{label:t,apps:n}=e;return n.length>0?(0,$.jsxs)(`div`,{className:`mt-1 border-t border-edge-subtle pt-1 dark:border-edge`,children:[(0,$.jsx)(`p`,{className:`px-3 pb-1 pt-0.5 text-[11px] font-medium uppercase tracking-normal text-fg-subtle`,children:t}),n.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:`flex h-9 w-full min-w-0 items-center rounded-md px-2.5 text-left text-sm text-fg hover:bg-surface-hover`,title:e.path,onClick:()=>F(()=>_(e.path)),children:(0,$.jsx)(`span`,{className:`block truncate`,children:e.name})},e.path))]},t):null}):null,v?(0,$.jsx)(QW,{icon:(0,$.jsx)(Tp,{className:`size-4`}),label:T.revealInFolder,onClick:()=>F(v)}):null,p||m||v?(0,$.jsx)(`div`,{className:`my-1 border-t border-edge-subtle dark:border-edge`}):null,(0,$.jsx)(QW,{icon:(0,$.jsx)(he,{className:`size-4`}),label:D?T.saveCopy:T.download,disabled:!a.canDownload,onClick:()=>F(()=>void a.onDownload())}),y?(0,$.jsx)(QW,{icon:y.copied?(0,$.jsx)(W,{className:`size-4 text-emerald-500`}):(0,$.jsx)(G,{className:`size-4`}),label:y.copied?T.pathCopied:D?T.copyFilePath:T.copyWorkspacePath,onClick:()=>F(y.onClick)}):null]}):null]}),re,ae]})]}),oe]})}function eG(e){return!e}function tG(e){return[`zoom`,`search`,`rotate`,`pageNavigation`].includes(e)}function nG(e){return e.language}function rG({header:e,chat:t,...n}){let r=WW(n.descriptor),i=p(),a=rt(n.language),[o,s]=(0,Z.useState)(!1),c=async()=>{if(!(!t||o)){s(!0);try{let[n,r]=await Promise.all([t.createFile(),t.sessionKey?eV(t.sessionKey).catch(()=>null):Promise.resolve(null)]);if(n.size>33554432){fA(`warning`,a.chat.attachmentFileTooLarge,{name:n.name,maxSize:BL(VR)});return}let o=new URLSearchParams({attachmentHandoff:xW(n)}),s=t.projectId?.trim()||r?.projectId?.trim(),c=t.agentId?.trim()||r?.routing?.agentId?.trim();s&&o.set(`projectId`,s),i({pathname:`/chat/new`,search:`?${o}`},{state:{forceNewChat:!0,agentId:c||void 0}}),e.onClose()}catch{fA(`error`,a.workspace.editInNewChatFailed)}finally{s(!1)}}};return(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)($W,{...e,name:n.descriptor.fileName,controller:r,actions:n.actions,editInNewChat:t?{onClick:()=>void c(),loading:o,disabled:n.loading||!!n.loadError||t.disabled}:void 0},n.descriptor.id),(0,$.jsx)(YW,{...n,controller:r})]})}function iG(e,t){let n=(0,Q.c)(7),r=e===void 0?!0:e,i=t===void 0?!1:t,[a,o]=(0,Z.useState)(!1);!r&&a&&o(!1);let s,c;n[0]!==r||n[1]!==i||n[2]!==a?(s=()=>{if(!r||!a)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{i||e.key!==`Escape`||e.defaultPrevented||document.querySelector(`[data-file-preview-menu]`)||(e.preventDefault(),e.stopImmediatePropagation(),o(!1))};return window.addEventListener(`keydown`,t,!0),()=>{document.body.style.overflow=e,window.removeEventListener(`keydown`,t,!0)}},c=[r,a,i],n[0]=r,n[1]=i,n[2]=a,n[3]=s,n[4]=c):(s=n[3],c=n[4]),(0,Z.useEffect)(s,c);let l;return n[5]===a?l=n[6]:(l={expanded:a,setExpanded:o},n[5]=a,n[6]=l),l}function aG({open:e,attachment:t,authToken:n,sessionKey:r,layerClassName:i=`z-[81]`,onClose:a}){let o=ct(e=>e.language),s=rt(o).chat,c=VH({open:e,attachment:t,authToken:n,sessionKey:r,language:o}),l=jU(),{expanded:u,setExpanded:d}=iG(e,l.dialogOpen),[f,p]=(0,Z.useState)(!1),{preview:m,fileType:h,hasExtractedText:g}=c,_=h!==`image`&&h!==`text`&&h!==`pptx`&&g,v=m?.uri?vE(m.uri):null,y=!!(v||m?.uri?.startsWith(`media://`)&&(r||m.taskId)),b=()=>{!m?.uri||!y||l.createShareLink(v?{fileId:v,fileName:m.name}:{uri:m.uri,sessionKey:r??void 0,taskId:m.taskId,fileName:m.name})},x=!!(m&&!c.loading&&!c.loadError),S=()=>{d(!1),a()},C=()=>{if(!m||!c.downloadBuffer)return;let e=new Blob([c.downloadBuffer],{type:c.descriptor.mimeType}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=m.name??`download`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)},w=!!c.downloadBuffer,T=Wt()&&h===`spreadsheet`&&/\.xlsx?$/i.test(c.fileName)&&!!c.downloadBuffer&&!!window.electronAPI?.shell?.openTemporaryFile,E=async()=>{let e=c.downloadBuffer,t=window.electronAPI?.shell?.openTemporaryFile;if(!(!e||!t||f)){p(!0);try{(await t({fileName:c.fileName,data:new Uint8Array(e)})).ok||fA(`warning`,s.attachmentPreviewOpenLocalFailed)}catch{fA(`warning`,s.attachmentPreviewOpenLocalFailed)}finally{p(!1)}}},D={onDownload:C,canDownload:w},O=X(`min-h-0 min-w-0 flex-1 cursor-pointer border-0 p-0`,`bg-surface-base transition-colors`,`hover:bg-surface-hover/90 dark:bg-black/60 dark:hover:bg-black/70`,gk.focusRingBase);return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ne,{open:e,onOpenChange:e=>!e&&S(),children:(0,$.jsx)(H,{children:(0,$.jsxs)(ee,{"aria-describedby":void 0,className:X(`xopc-dialog-content-fullscreen fixed inset-0 flex h-[100dvh] w-full flex-row overflow-hidden`,i,`border-0 bg-transparent p-0 shadow-none outline-none`),children:[(0,$.jsx)(te,{className:`sr-only`,children:m?.name??``}),(0,$.jsx)(`button`,{type:`button`,className:O,onClick:S,"aria-label":s.attachmentPreviewClose}),(0,$.jsx)(`div`,{className:X(`flex h-full min-h-0 shrink-0 flex-col overflow-hidden`,u?`w-full`:`w-[min(100%,var(--max-width-app-main))]`,`bg-surface-panel sm:border-x sm:border-edge dark:sm:border-edge`,`shadow-float dark:shadow-elevated`),children:(0,$.jsx)(rG,{header:{expanded:u,onToggleExpanded:x?()=>d(e=>!e):void 0,onClose:S,share:y?{onClick:b,loading:l.loading}:void 0,openWithSystemApp:T?{onClick:()=>void E(),loading:f}:void 0,textView:_?{active:c.showExtractedText,onChange:e=>{c.setShowExtractedText(e),c.clearLoadError()}}:void 0},chat:c.downloadBuffer?{sessionKey:r,createFile:async()=>new File([c.downloadBuffer],c.fileName,{type:c.descriptor.mimeType})}:void 0,language:o,descriptor:c.descriptor,loading:c.loading,loadError:c.loadError,textContent:c.textContent,binaryBuffer:c.binaryBuffer,showExtractedText:c.showExtractedText,extractedText:c.extractedText,extractedTextTruncated:c.extractedTextTruncated,actions:D})}),(0,$.jsx)(`button`,{type:`button`,className:O,onClick:S,"aria-label":s.attachmentPreviewClose})]})})}),(0,$.jsx)(hU,{open:l.dialogOpen,onOpenChange:l.handleOpenChange,loading:l.loading,error:l.error,result:l.result,pendingParams:l.pendingParams,onConfirm:e=>void l.confirmShareLink(e)})]})}function oG(e,t){let n=t?.split(`;`)[0]?.trim();return!n?.startsWith(`image/`)||e.type===n?e:new Blob([e],{type:n})}function sG(e,t){let n=(0,Q.c)(29),r;n[0]!==e.mimeType||n[1]!==e.type?(r=e.type===`image`||e.mimeType?.startsWith(`image/`)===!0,n[0]=e.mimeType,n[1]=e.type,n[2]=r):r=n[2];let i=r,a;n[3]!==e||n[4]!==i?(a=i?IL(e):void 0,n[3]=e,n[4]=i,n[5]=a):a=n[5];let o=a,s;bb0:{if(!o){s=void 0;break bb0}let t=e.mimeType?.startsWith(`image/`)?e.mimeType:`image/png`,r;n[6]!==o||n[7]!==t?(r=RL(t,o),n[6]=o,n[7]=t,n[8]=r):r=n[8],s=r}let c=s,l=`${e.uri??``}\n${t.sessionKey??``}\n${e.taskId??``}`,[u,d]=(0,Z.useState)(),f;n[9]!==e.mimeType||n[10]!==e.taskId||n[11]!==e.uri||n[12]!==c||n[13]!==i||n[14]!==t.authToken||n[15]!==t.sessionKey||n[16]!==l?(f=()=>{if(c||!e.uri||!i){d(void 0);return}if(!String(t.authToken??``).trim()){d(void 0);return}let n,r=!1;return d({key:l,status:`loading`}),(async()=>{let i=await LH({uri:e.uri,sessionKey:t.sessionKey,taskId:e.taskId});if(r)return;if(!i.ok){d({key:l,status:`error`});return}let a=URL.createObjectURL(oG(i.blob,e.mimeType));n=a,d({key:l,blobUrl:a,status:`loaded`})})(),()=>{r=!0,n&&URL.revokeObjectURL(n)}},n[9]=e.mimeType,n[10]=e.taskId,n[11]=e.uri,n[12]=c,n[13]=i,n[14]=t.authToken,n[15]=t.sessionKey,n[16]=l,n[17]=f):f=n[17];let p;n[18]!==e.taskId||n[19]!==e.uri||n[20]!==c||n[21]!==i||n[22]!==t.authToken||n[23]!==t.sessionKey||n[24]!==l?(p=[c,e.taskId,e.uri,i,t.authToken,t.sessionKey,l],n[18]=e.taskId,n[19]=e.uri,n[20]=c,n[21]=i,n[22]=t.authToken,n[23]=t.sessionKey,n[24]=l,n[25]=p):p=n[25],(0,Z.useEffect)(f,p);let m=u?.key===l?u:void 0,h=c??m?.blobUrl??``,g=!c&&m?.status===`error`,_;return n[26]!==h||n[27]!==g?(_={src:h,error:g},n[26]=h,n[27]=g,n[28]=_):_=n[28],_}function cG(e){let t=(0,Q.c)(51),{attachment:n,authToken:r,sessionKey:i,showDelete:a,onDelete:o,imageSize:s,compact:c,className:l,overflowLabel:u,onOpen:d}=e,f=a===void 0?!1:a,p=s===void 0?`thumbnail`:s,m=c===void 0?!1:c,h=ct(lG),g;t[0]===h?g=t[1]:(g=rt(h),t[0]=h,t[1]=g);let _=g,v=(0,Z.useId)(),y;t[2]!==n.mimeType||t[3]!==n.type?(y=n.mimeType?.startsWith(`image/`)||n.type===`image`,t[2]=n.mimeType,t[3]=n.type,t[4]=y):y=t[4];let b=y,x;t[5]!==r||t[6]!==i?(x={authToken:r,sessionKey:i},t[5]=r,t[6]=i,t[7]=x):x=t[7];let S=sG(n,x),C;t[8]===n?C=t[9]:(C=!!n.uri&&!IL(n),t[8]=n,t[9]=C);let w=C,T;t[10]!==r||t[11]!==w?(T=w&&!String(r??``).trim(),t[10]=r,t[11]=w,t[12]=T):T=t[12];let E=T,D=n.mimeType===`application/pdf`,O;t[13]!==n.mimeType||t[14]!==n.name?(O=n.mimeType?.includes(`spreadsheetml`)||n.name?.toLowerCase().endsWith(`.xlsx`)||n.name?.toLowerCase().endsWith(`.xls`),t[13]=n.mimeType,t[14]=n.name,t[15]=O):O=t[15];let k=O,A=n.name??`file`,j=n.type===`pasted_text`,M=j&&!E,N=n.mimeType?.split(`;`,1)[0]?.trim().toLowerCase()===`text/html`?`HTML`:n.mimeType?.split(`;`,1)[0]?.trim().toLowerCase()===`application/json`?`JSON`:`TXT`,P;t[16]!==n.size||t[17]!==N?(P=typeof n.size==`number`?`${N} · ${BL(n.size)}`:N,t[16]=n.size,t[17]=N,t[18]=P):P=t[18];let F=P,I=E?`${A} — ${_.chat.attachmentPreviewMissingAuth}`:A,L=_.chat.attachmentPreviewMissingAuth,R=p===`single`?`size-full object-contain`:p===`grid-cell`?`size-full object-cover`:`max-h-16 w-full object-cover`,z=p===`single`?m?`w-36 max-w-full`:`w-44 max-w-full`:p===`grid-cell`?`min-h-0 w-full`:`max-w-[10rem]`,B=p===`grid-cell`?`relative block aspect-square w-full min-w-0 overflow-hidden rounded-md border border-edge dark:border-edge`:p===`single`?`relative block aspect-[4/3] w-full overflow-hidden rounded-md border border-edge bg-surface-hover dark:border-edge`:`block w-full overflow-hidden rounded-md border border-edge dark:border-edge`,V=p===`grid-cell`?`w-full min-h-0`:`inline-block`,H;t[19]!==l||t[20]!==V?(H=X(`group relative min-w-0`,V,l),t[19]=l,t[20]=V,t[21]=H):H=t[21];let ee;t[22]!==n||t[23]!==A||t[24]!==B||t[25]!==S||t[26]!==R||t[27]!==z||t[28]!==k||t[29]!==b||t[30]!==j||t[31]!==D||t[32]!==_.chat.attachmentPreviewLoadError||t[33]!==_.chat.pastedText||t[34]!==I||t[35]!==v||t[36]!==L||t[37]!==d||t[38]!==u||t[39]!==F||t[40]!==E||t[41]!==M?(ee=b?(0,$.jsxs)(`div`,{className:z,children:[(0,$.jsxs)(`div`,{className:`relative size-full min-h-0`,children:[(0,$.jsxs)(`button`,{type:`button`,className:X(B,gk.transition,gk.press,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),onClick:()=>d(n),title:I,"aria-label":I,"aria-describedby":E?v:void 0,children:[S.src?(0,$.jsx)(`img`,{src:S.src,alt:A,className:R,decoding:`async`}):S.error||E?(0,$.jsxs)(`span`,{className:`flex size-full flex-col items-center justify-center gap-1 bg-surface-hover px-2 text-center text-[10px] text-fg-muted`,title:E?L:_.chat.attachmentPreviewLoadError,children:[(0,$.jsx)(eg,{className:`size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:E?L:_.chat.attachmentPreviewLoadError})]}):(0,$.jsx)(`span`,{className:`block size-full animate-pulse bg-surface-active`,"aria-hidden":!0}),u?(0,$.jsx)(`span`,{className:`absolute inset-0 flex items-center justify-center bg-black/55 text-lg font-semibold text-white`,children:u}):null]}),D?(0,$.jsx)(`div`,{className:`pointer-events-none absolute bottom-1 right-1 rounded bg-black/60 px-1.5 py-0.5 text-[10px] font-semibold text-white`,"aria-hidden":!0,children:`PDF`}):null]}),E?(0,$.jsx)(`p`,{id:v,className:`mt-1 line-clamp-2 text-[10px] leading-snug text-amber-600 dark:text-amber-500`,children:L}):null]}):(0,$.jsx)(`div`,{className:X(`max-w-[14rem]`,M&&`inline-flex max-w-full`),children:(0,$.jsxs)(`button`,{type:`button`,onClick:()=>d(n),title:I,"aria-label":I,"aria-describedby":E?v:void 0,className:X(`flex min-w-0 border border-edge bg-surface-hover text-left text-xs text-fg-muted hover:bg-surface-active dark:border-edge`,M?`w-auto max-w-full items-center gap-1.5 rounded-full px-2.5 py-1`:`w-full gap-2 rounded-md px-2 py-1.5`,E?`items-start`:`items-center`,gk.transition,gk.press,gk.focusRingPanel),children:[j?(0,$.jsx)(Kd,{className:X(`shrink-0 text-accent-fg`,M?`size-3.5`:`size-8`),"aria-hidden":!0}):k?(0,$.jsx)(bf,{className:`size-8 shrink-0 text-fg-subtle`,"aria-hidden":!0}):(0,$.jsx)(wf,{className:`size-8 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:X(`truncate text-fg`,M?`inline`:`block`),children:j?_.chat.pastedText:A}),M?(0,$.jsxs)(`span`,{className:`ml-1 whitespace-nowrap text-fg-subtle`,children:[`· `,F]}):null,E?(0,$.jsx)(`span`,{id:v,className:`mt-0.5 line-clamp-2 block text-[10px] font-normal leading-snug text-amber-600 dark:text-amber-500`,children:L}):null]})]})}),t[22]=n,t[23]=A,t[24]=B,t[25]=S,t[26]=R,t[27]=z,t[28]=k,t[29]=b,t[30]=j,t[31]=D,t[32]=_.chat.attachmentPreviewLoadError,t[33]=_.chat.pastedText,t[34]=I,t[35]=v,t[36]=L,t[37]=d,t[38]=u,t[39]=F,t[40]=E,t[41]=M,t[42]=ee):ee=t[42];let te;t[43]!==_.chat.attachmentPreviewRemove||t[44]!==o||t[45]!==f?(te=f?(0,$.jsx)(`button`,{type:`button`,className:X(`absolute -right-1 -top-1 flex size-5 items-center justify-center rounded-full border border-edge bg-surface-panel text-fg-muted shadow-surface hover:text-fg dark:border-edge`,gk.transition,gk.press,gk.focusRingPanel),onClick:e=>{e.stopPropagation(),o?.()},title:_.chat.attachmentPreviewRemove,"aria-label":_.chat.attachmentPreviewRemove,children:(0,$.jsx)(Ne,{className:`size-3`})}):null,t[43]=_.chat.attachmentPreviewRemove,t[44]=o,t[45]=f,t[46]=te):te=t[46];let ne;return t[47]!==H||t[48]!==ee||t[49]!==te?(ne=(0,$.jsxs)(`div`,{className:H,children:[ee,te]}),t[47]=H,t[48]=ee,t[49]=te,t[50]=ne):ne=t[50],ne}function lG(e){return e.language}function uG(e){return typeof e==`number`&&Number.isFinite(e)&&e>0&&e!==1/0}function dG(e){if(!Number.isFinite(e)||e<0)return`0:00`;let t=Math.floor(e%60);return`${Math.floor(e/60)}:${t.toString().padStart(2,`0`)}`}function fG(e){return e.type===`voice`||e.type===`audio`||e.mimeType?.startsWith(`audio/`)===!0}function pG({att:e,align:t=`start`,variant:n=`default`,sessionKey:r}){let i=rt(ct(e=>e.language)),a=(0,Z.useRef)(null),o=(0,Z.useId)(),[s,c]=(0,Z.useState)(),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(1),p=(0,Z.useMemo)(()=>{let t=e.durationSeconds;return typeof t==`number`&&Number.isFinite(t)&&t>0?t:0},[e.durationSeconds]),[m,h]=(0,Z.useState)(p),g=(0,Z.useRef)(p);g.current!==p&&(g.current=p,h(p));let[_,v]=(0,Z.useState)(0),y=(0,Z.useCallback)(()=>{let e=a.current;if(!e)return;let t=e.duration;uG(t)&&h(t)},[]),b=`${e.uri??``}:${e.content?.length??0}:${e.mimeType??``}`,x=(0,Z.useRef)(b);x.current!==b&&(x.current=b,v(0),u(!1)),(0,Z.useEffect)(()=>{let t,n=!1;return(async()=>{let i=e.content??e.data;if(i){c(`data:${e.mimeType?.includes(`/`)?e.mimeType:`audio/mpeg`};base64,${i.replace(/\s/g,``)}`);return}if(e.uri)try{let i=await ot(Y(FL(e.uri,r,e.taskId)));if(!i.ok||n)return;let a=await i.blob(),o=URL.createObjectURL(a);t=o,c(o)}catch{}})(),()=>{n=!0,t&&URL.revokeObjectURL(t)}},[e,r]),(0,Z.useEffect)(()=>{let e=()=>a.current?.pause(),t=e=>{let t=e.detail?.id;t&&t!==o&&a.current?.pause()};return window.addEventListener(`xopc-voice-recording-start`,e),window.addEventListener(`xopc-voice-playback-start`,t),()=>{window.removeEventListener(`xopc-voice-recording-start`,e),window.removeEventListener(`xopc-voice-playback-start`,t)}},[o]);let S=(0,Z.useCallback)(()=>{let e=a.current;!e||!s||(l?e.pause():e.play().catch(()=>{}))},[l,s]);if(!fG(e))return null;let C=m>0?Math.min(100,Number.isFinite(m)?_/m*100:0):0,w=typeof m==`number`&&m>0&&Number.isFinite(m),T=!!(s&&!w),E=s?(0,$.jsxs)(`span`,{className:`tabular-nums tracking-tight text-fg-muted`,"aria-live":`polite`,children:[(0,$.jsx)(`span`,{children:dG(_)}),(0,$.jsx)(`span`,{className:`mx-0.5 text-fg-subtle`,children:`/`}),w?(0,$.jsx)(`span`,{children:dG(m)}):(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:i.chat.voiceAwaitingMeta,children:`--`})]}):(0,$.jsx)(`span`,{className:`tabular-nums tracking-tight text-fg-subtle`,children:`-- / --`}),D=s?(0,$.jsx)(`audio`,{ref:a,src:s,preload:`metadata`,className:`hidden`,onLoadedMetadata:y,onLoadedData:y,onDurationChange:y,onTimeUpdate:e=>v(e.currentTarget.currentTime),onPlay:e=>{e.currentTarget.playbackRate=d,window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:o}})),u(!0)},onPause:()=>u(!1),onEnded:()=>{u(!1),v(0)}}):(0,$.jsx)(`span`,{className:`sr-only`,children:i.chat.voiceLoading}),O=(0,$.jsx)(`button`,{type:`button`,onClick:S,disabled:!s,className:X(`flex size-8 shrink-0 items-center justify-center rounded-full border text-accent-fg`,`border-edge-subtle bg-surface-panel transition-colors`,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`motion-safe:active:scale-[0.97]`,`dark:bg-surface-panel/90 dark:border-edge`,n===`compact`&&X(`border-white/55 bg-white/92 shadow-[inset_0_1px_0_rgb(255_255_255/0.65)]`,`dark:border-white/14 dark:bg-surface-hover/98 dark:shadow-none`),!s&&`opacity-50`),"aria-label":l?i.chat.voicePause:i.chat.voicePlay,title:l?i.chat.voicePause:i.chat.voicePlay,children:l?(0,$.jsx)(_v,{className:`size-[14px]`,strokeWidth:2}):(0,$.jsx)(Ev,{className:`size-[14px] ml-px`,strokeWidth:2})}),k=X(`relative h-0.5 min-h-[2px] w-full overflow-hidden rounded-full bg-edge-subtle dark:bg-edge/65`,n===`compact`&&`bg-white/45 dark:bg-white/14`),A=X(`inline-flex min-w-0 items-center rounded-full border`,n===`compact`?`max-w-[min(220px,88vw)] gap-2 px-2 py-1.5 backdrop-blur-[2px]`:`min-w-[min(160px,80vw)] max-w-[17rem] gap-2 px-2 py-1.5`,n===`compact`?`border-white/58 bg-white/86 shadow-none dark:border-white/13 dark:bg-black/[0.22] dark:backdrop-blur-sm`:`border-edge-subtle bg-surface-panel/[0.96] shadow-surface dark:border-edge dark:bg-surface-panel/92`),j=`${i.chat.voiceAriaRegion}${e.name?` · ${e.name}`:``}`;return(0,$.jsx)(`div`,{className:X(`flex min-w-0`,t===`end`&&`justify-end`,t===`center`&&`justify-center`),children:(0,$.jsxs)(`div`,{role:`group`,"aria-label":j,className:A,children:[O,(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col justify-center gap-1 py-px`,children:[n==="default"?(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-[11px] leading-snug tracking-tight text-fg-muted`,children:[(0,$.jsx)(nv,{className:`size-3 shrink-0 opacity-90 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate font-normal`,children:i.chat.voiceMessage})]}):(0,$.jsx)(`span`,{className:`sr-only`,children:i.chat.voiceMessage}),(0,$.jsx)(`div`,{className:k,"aria-hidden":!0,children:s?T?(0,$.jsx)(`span`,{className:X(`absolute inset-y-0 left-[18%] w-[42%] max-w-[4.5rem] rounded-full bg-accent/45 motion-safe:animate-pulse`)}):(0,$.jsx)(`div`,{className:X(`h-full rounded-full bg-accent motion-safe:transition-[width] motion-safe:duration-150 motion-safe:ease-linear`),style:{width:`${C}%`}}):null}),(0,$.jsx)(`div`,{className:X(`flex justify-end text-[10px] leading-snug tracking-tight text-fg-muted`),children:E})]}),s?(0,$.jsxs)(`button`,{type:`button`,className:`shrink-0 rounded px-1 py-0.5 text-[10px] tabular-nums text-fg-muted hover:bg-surface-hover hover:text-fg`,title:i.chat.voicePlaybackSpeed,"aria-label":`${i.chat.voicePlaybackSpeed}: ${d}×`,onClick:()=>{let e=d===1?1.25:d===1.25?1.5:d===1.5?.75:1;f(e),a.current&&(a.current.playbackRate=e)},children:[d,`×`]}):null,D]})})}function mG(e){return e.type===`voice`||e.type===`audio`||e.mimeType?.startsWith(`audio/`)===!0}var hG=9;function gG(e,t){let n=t?`max-w-[11rem]`:`max-w-52`,r=`gap-1`;return e===1?{container:`grid grid-cols-1 ${n} ${r}`,tileSize:`single`}:e===2?{container:`grid grid-cols-2 ${n} ${r}`,tileSize:`grid-cell`}:e===3?{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`}:e===4?{container:`grid grid-cols-2 ${n} ${r}`,tileSize:`grid-cell`}:e<=hG?{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`}:{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`,overflowCount:e-(hG-1)}}function _G(e){let t=(0,Q.c)(29),{attachments:n,authToken:r,sessionKey:i,projectId:a,layout:o,centerUserVoiceRow:s}=e,c=o===void 0?`assistant`:o,l=s===void 0?!1:s,[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(null),m=XU(bG),h;t[0]!==c||t[1]!==a||t[2]!==i||t[3]!==m?(h=e=>{if(c===`assistant`&&e.workspaceRelativePath?.trim()&&(a?.trim()||i?.trim())){m(e.workspaceRelativePath.trim(),null,a,i);return}p(e),d(!0)},t[0]=c,t[1]=a,t[2]=i,t[3]=m,t[4]=h):h=t[4];let g=h;if(!n?.length)return null;let _,v,y,b;if(t[5]!==n||t[6]!==r||t[7]!==l||t[8]!==c||t[9]!==g||t[10]!==i){let e=n.filter(yG),a=n.filter(mG),o=n.filter(vG);_=`flex flex-col gap-2`,v=e.length>0?(()=>{let t=gG(e.length,c===`user`),n=t.overflowCount==null?e:e.slice(0,hG-1);return(0,$.jsxs)(`div`,{className:X(`w-full min-w-0`,t.container),children:[n.map((e,n)=>(0,$.jsx)(cG,{attachment:e,authToken:r,sessionKey:i,imageSize:t.tileSize,compact:c===`user`,onOpen:g},e.id??`${e.name}-${n}`)),t.overflowCount==null?null:(0,$.jsx)(cG,{attachment:e[hG-1],authToken:r,sessionKey:i,imageSize:`grid-cell`,compact:c===`user`,overflowLabel:`+${t.overflowCount}`,onOpen:g},e[hG-1]?.id??`overflow-${hG-1}`)]})})():null,y=a.length>0?(0,$.jsx)(`div`,{className:X(`flex flex-col gap-2`,c===`user`&&(l?`items-center`:`items-end`)),children:a.map((e,t)=>(0,$.jsx)(pG,{att:e,sessionKey:i,align:c===`user`?l?`center`:`end`:`start`,variant:c===`user`?`compact`:`default`},e.id??`${e.name}-${t}`))}):null,b=o.length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:o.map((e,t)=>(0,$.jsx)(cG,{attachment:e,authToken:r,sessionKey:i,onOpen:g},e.id??`${e.name}-${t}`))}):null,t[5]=n,t[6]=r,t[7]=l,t[8]=c,t[9]=g,t[10]=i,t[11]=_,t[12]=v,t[13]=y,t[14]=b}else _=t[11],v=t[12],y=t[13],b=t[14];let x;t[15]!==_||t[16]!==v||t[17]!==y||t[18]!==b?(x=(0,$.jsxs)(`div`,{className:_,children:[v,y,b]}),t[15]=_,t[16]=v,t[17]=y,t[18]=b,t[19]=x):x=t[19];let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{d(!1),p(null)},t[20]=S):S=t[20];let C;t[21]!==f||t[22]!==r||t[23]!==u||t[24]!==i?(C=(0,$.jsx)(aG,{open:u,attachment:f,authToken:r,sessionKey:i,onClose:S}),t[21]=f,t[22]=r,t[23]=u,t[24]=i,t[25]=C):C=t[25];let w;return t[26]!==C||t[27]!==x?(w=(0,$.jsxs)($.Fragment,{children:[x,C]}),t[26]=C,t[27]=x,t[28]=w):w=t[28],w}function vG(e){return e.type!==`image`&&!e.mimeType?.startsWith(`image/`)&&!mG(e)}function yG(e){return e.type===`image`||e.mimeType?.startsWith(`image/`)}function bG(e){return e.setPath}var xG=`fill-chat-composer`;function SG(e,t,n){window.dispatchEvent(new CustomEvent(xG,{detail:{text:e,attachments:t,contextRefs:n}}))}function CG(e,t){let n=e.source?.data?.trim();if(!n)return null;let r=n.match(/^data:([^;]+);base64,([\s\S]+)$/i);if(r?.[1]&&r[2]){let e=r[2].replace(/\s/g,``);return{name:`image-${t+1}`,mimeType:r[1],type:`image`,content:e,data:e}}if(n.startsWith(`data:`))return{name:`image-${t+1}`,mimeType:`image/png`,type:`image`,content:n,data:n};let i=n.replace(/\s/g,``);return{name:`image-${t+1}`,mimeType:`image/png`,type:`image`,content:i,data:i}}function wG(e){return e?.length?e.flatMap((e,t)=>{let n=CG(e,t);return n?[n]:[]}):[]}var TG=160;function EG(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function DG(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n];if(r==="`"&&!EG(e,n)){let r=n+1;for(;e[r]==="`";)r+=1;let i=r-n;t===0?t=i:t===i&&(t=0),n=r-1;continue}if(!(t>0||EG(e,n))){if(r===`
|
|
22
|
+
`||r===`。`||r===`!`||r===`?`||r===`!`||r===`?`)return n;if(r===`.`){let t=e[n+1];if(t===void 0||/[\s"')\]}\u2019\u201d]/u.test(t))return n}}}return-1}function OG(e){return e.presentation===`pending`||e.presentation===`narration`}function kG(e){let t=e.trim();if(!t)return``;let n=DG(t);if(n>=0&&n<TG){let e=t[n];return t.slice(0,n+(e===`
|
|
23
|
+
`?0:1)).trim()}return t.length<=TG?t:`${t.slice(0,TG).trimEnd()}…`}function AG(e){return OG(e)?kG(e.text):e.text}function jG(e){let t=[],n=!1;for(let r of e)if(!(r.type===`thinking`||r.type===`tool_use`))if(r.type===`text`){if(OG(r)){if(n)continue;n=!0}t.push(AG(r))}else r.type===`image`&&t.push(`[image]`);return t.join(`
|
|
24
|
+
|
|
25
|
+
`).trim()}function MG(e){if(!e.trim())return``;let t=Ce.parse(e,{gfm:!0,breaks:!1});return new DOMParser().parseFromString(`<div>${t}</div>`,`text/html`).body.textContent?.trim()??``}function NG(e){let t=[],n=!1;for(let r of e)if(!(r.type===`thinking`||r.type===`tool_use`))if(r.type===`text`){if(OG(r)){if(n)continue;n=!0}t.push(MG(AG(r)))}else r.type===`image`&&t.push(`[image]`);return t.join(`
|
|
26
|
+
|
|
27
|
+
`).trim()}function PG(e){if(e===void 0)return``;try{return JSON.stringify(JSON.parse(e),null,2)}catch{try{return JSON.stringify(e,null,2)}catch{return String(e)}}}function FG(e){if(e==null)return null;try{return typeof e==`string`?JSON.parse(e):e}catch{return null}}function IG(e){let t=FG(e),n=t?.query??t?.q??t?.query_string??t?.search_term??t?.searchQuery;return typeof n==`string`?n:typeof n==`number`?String(n):``}function LG(e){let t=FG(e),n=t?.path??t?.file_path??t?.filepath??t?.file??t?.qualified_name??t?.function_name;return typeof n==`string`?n:``}function RG(e){let t=FG(e),n=t?.url??t?.href??t?.uri??t?.website;return typeof n==`string`?n:``}function zG(e){let t=FG(e),n=t?.command??t?.cmd??t?.shell??t?.script;return typeof n==`string`?n:``}var BG=120;function VG(e){if(e==null)return``;let t=FG(e);if(!t)return typeof e==`string`?e.trim():``;let n=[t.command,t.cmd,t.shell,t.script,t.path,t.file_path,t.filepath,t.file,t.url,t.href,t.uri,t.website,t.query,t.q,t.query_string,t.search_term,t.searchQuery,t.qualified_name,t.function_name,t.name_pattern,t.qn_pattern,t.file_pattern];for(let e of n){if(typeof e==`string`&&e.trim()){let t=e.trim();return t.length>BG?`${t.slice(0,BG)}…`:t}if(typeof e==`number`&&Number.isFinite(e))return String(e)}return``}var HG=120,UG=240,WG=3,GG=[`readFile`,`editFile`,`writeFile`,`runCommand`,`memorySearch`,`codeSearch`,`webSearch`,`search`,`fetchUrl`,`openUrl`,`listDir`,`other`];function KG(e,t){return Tk(e,t)}function qG(e){let t=new Map;for(let n of e){if(n.type!==`tool_use`)continue;let e=KG(n.name,n.activity),r=t.get(e)??{total:0,running:0};r.total+=1,n.status===`running`&&(r.running+=1),t.set(e,r)}return t}function JG(e,t,n){return n[t===1?`${e}_one`:`${e}_other`].replace(/\{\{count\}\}/g,String(t))}function YG(e,t){switch(e){case`webSearch`:return t.webSearch;case`memorySearch`:return t.memorySearch;case`codeSearch`:return t.codeSearch;case`search`:return t.search;case`readFile`:return t.readFile;case`editFile`:return t.editFile;case`writeFile`:return t.writeFile;case`runCommand`:return t.runCommand;case`listDir`:return t.listDir;case`openUrl`:return t.openUrl;case`fetchUrl`:return t.fetchUrl;case`other`:return t.other}}function XG(e){let t=[];for(let n of GG)e.has(n)&&t.push(n);return t}function ZG(e,t){return e.length===0?``:e.length===1?e[0]:e.length===2?`${e[0]}${t.joinFinal}${e[1]}`:`${e.slice(0,-1).join(t.join)}${t.joinFinal}${e[e.length-1]}`}function QG(e,t){return e.length>t?`${e.slice(0,t)}…`:e}function $G(e,t,n,r){let i=e.input,a=``;return a=t===`memorySearch`?``:t===`webSearch`||t===`codeSearch`||t===`search`?IG(i).trim():t===`runCommand`?zG(i).trim():t===`readFile`||t===`editFile`||t===`writeFile`?LG(i).trim():t===`fetchUrl`||t===`openUrl`?RG(i).trim():VG(i).trim(),a?QG(`${JG(t,1,n)}${r===`zh`?`:`:`: `}${QG(a,HG)}`,UG):null}function eK(e,t,n,r){let i=qG(e);if(i.size===0)return null;let a=i.size===1?[...i.keys()][0]:null;if(a&&i.get(a).total===1){let n=e.find(e=>e.type===`tool_use`&&KG(e.name,e.activity)===a);if(n){let e=$G(n,a,t,r);if(e)return e}}let o=XG(i),s=o.slice(0,WG),c=o.length-s.length,l=ZG(s.map(e=>JG(e,i.get(e).total,t)),n);return c>0&&(l=`${l}${n.moreSuffix}`),QG(l,UG)}function tK(e,t){let n=qG(e),r=[];for(let e of GG){let t=n.get(e);t&&t.running>0&&r.push(e)}return r.length===1?YG(r[0],t):r.length>1?t.mixed:e.some(e=>e.type===`thinking`&&e.streaming)?t.thinking:n.size>0?t.mixed:null}function nK(e){return e.filter(e=>e.type!==`thinking`||!!e.text?.trim()||!!e.streaming)}function rK(e,t){return(e===1?t.viewSteps_one:t.viewSteps_other).replace(/\{\{count\}\}/g,String(e))}function iK(e,t,n,r,i){return eK(e,t,n,r)??i}function aK(e,t){return tK(e,t)}function oK(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function sK(e){if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}}function cK(e){let t=oK(sK(e));if(!t)return[];let n=oK(t.details)?.results??t.results;if(Array.isArray(n))return n.map(oK).filter(e=>e!==null);let r=Array.isArray(t.content)?t.content:[];for(let e of r){let t=oK(e)?.text,n=oK(sK(t));if(Array.isArray(n?.results))return n.results.map(oK).filter(e=>e!==null)}return[]}function lK(e,t){return e.replace(/\{\{count\}\}/g,String(t))}function uK(e,t){if(e.status===`running`||e.activity?.status===`running`)return{title:t.running,purpose:t.purpose};if(e.status===`error`||e.activity?.status===`failed`)return{title:t.failed,purpose:t.purpose};let n=cK(e.result),r=e.activity?.count??n.length;return{title:r===0?t.empty:lK(r===1?t.found_one:t.found_other,r),purpose:t.purpose}}function dK(e){return e.startsWith(`@@`)?`hunk`:e.startsWith(`+++`)||e.startsWith(`---`)||e.startsWith(`diff `)||e.startsWith(`index `)?`meta`:e.startsWith(`+`)?`add`:e.startsWith(`-`)?`del`:`context`}function fK(e){let t=e.details?.diff;if(typeof t!=`string`||t.length===0)return null;let n=t.split(`
|
|
28
|
+
`),r=[],i=0,a=0;for(let e of n){let t=dK(e);t===`add`&&!e.startsWith(`+++`)&&i++,t===`del`&&!e.startsWith(`---`)&&a++,r.push({kind:t,text:e})}return{raw:t,lines:r,added:i,removed:a}}function pK(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function mK(e){if(typeof e==`string`)return e;if(!Array.isArray(e))return``;let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n;e.type===`text`&&typeof e.text==`string`&&t.push(e.text)}return t.join(`
|
|
29
|
+
`)}function hK(e){if(e==null)return{details:null,text:``,isStructured:!1};if(typeof e==`object`&&!Array.isArray(e)){let t=e;return`content`in t||`details`in t?{details:pK(t.details),text:mK(t.content),isStructured:!0}:{details:null,text:``,isStructured:!1}}if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`))try{let e=pK(JSON.parse(t));if(e&&(`content`in e||`details`in e))return{details:pK(e.details),text:mK(e.content),isStructured:!0}}catch{}return{details:null,text:e,isStructured:!1}}return{details:null,text:String(e),isStructured:!1}}var gK=`inline-flex max-w-full min-w-0 items-center gap-1 rounded-md bg-accent-soft/40 px-1.5 py-0.5 text-[11px] font-medium text-fg-muted [overflow-wrap:anywhere] dark:bg-accent-soft/25`,_K=`inline-flex max-w-full min-w-0 items-center break-words rounded-md bg-surface-hover/60 px-1.5 py-0.5 font-mono text-xs text-fg [overflow-wrap:anywhere] dark:bg-surface-hover/35`,vK=`max-h-72 w-full min-w-0 max-w-full overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-surface-hover/60 p-2 font-mono text-xs text-fg-muted [overflow-wrap:anywhere] dark:bg-surface-hover/35`,yK=`cursor-pointer select-none text-xs text-fg-subtle underline-offset-2 hover:text-fg-muted group-open:text-fg-muted`;function bK(e){let t=(0,Q.c)(5),{children:n,tone:r}=e,i=r===void 0?`neutral`:r,a=i===`positive`?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:i===`negative`?`bg-red-500/15 text-red-700 dark:text-red-300`:i===`warning`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:i===`accent`?`bg-accent-soft/70 text-accent-fg dark:bg-accent-soft/50`:``,o;t[0]===a?o=t[1]:(o=X(gK,a),t[0]=a,t[1]=o);let s;return t[2]!==n||t[3]!==o?(s=(0,$.jsx)(`span`,{className:o,children:n}),t[2]=n,t[3]=o,t[4]=s):s=t[4],s}function xK(e){let t=(0,Q.c)(3),{children:n,title:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,$.jsx)(`code`,{className:_K,title:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var SK=(0,Z.memo)(function(e){let t=(0,Q.c)(11),{text:n,label:r,copiedLabel:i}=e,[a,o]=(0,Z.useState)(!1),s;t[0]===n?s=t[1]:(s=async e=>{e.preventDefault(),e.stopPropagation(),await tt(n)&&(o(!0),window.setTimeout(()=>o(!1),1200))},t[0]=n,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=X(`inline-flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),t[2]=c):c=t[2];let l;t[3]!==a||t[4]!==i||t[5]!==r?(l=a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(W,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(G,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`hidden sm:inline`,children:r})]}),t[3]=a,t[4]=i,t[5]=r,t[6]=l):l=t[6];let u;return t[7]!==r||t[8]!==s||t[9]!==l?(u=(0,$.jsx)(`button`,{type:`button`,onClick:s,className:c,"aria-label":r,title:r,children:l}),t[7]=r,t[8]=s,t[9]=l,t[10]=u):u=t[10],u});function CK(e){let t=(0,Q.c)(8),{summary:n,children:r,defaultOpen:i}=e,a=i===void 0?!1:i,o;t[0]===n?o=t[1]:(o=(0,$.jsx)(`summary`,{className:yK,children:n}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,$.jsx)(`div`,{className:`mt-1.5 min-w-0`,children:r}),t[2]=r,t[3]=s);let c;return t[4]!==a||t[5]!==o||t[6]!==s?(c=(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,open:a,children:[o,s]}),t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function wK(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(`pre`,{className:vK,children:n}),t[0]=n,t[1]=r),r}function TK(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let r=t[n];return r==null?``:String(r)})}function EK(e){return e.details??{}}var DK=/\[(\d+)\/(\d+) lines\]\s*$/;function OK(e){let t=e.match(DK);if(!t)return null;let n=Number(t[1]),r=Number(t[2]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{shown:n,total:r}}function kK(e){return e.replace(DK,``).trimEnd()}var AK=(0,Z.memo)(function(e){let t=(0,Q.c)(32),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=LG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=hK(n.result),t[2]=n.result,t[3]=o);let s=o.text,c;t[4]===s?c=t[5]:(c=OK(s),t[4]=s,t[5]=c);let l=c,u;t[6]===s?u=t[7]:(u=kK(s),t[6]=s,t[7]=u);let d=u,f;bb0:{if(l){f=l.total;break bb0}if(!d){f=0;break bb0}let e;t[8]===d?e=t[9]:(e=d.split(`
|
|
30
|
+
`),t[8]=d,t[9]=e),f=e.length}let p=f,m;if(t[10]!==d){bb1:{if(!d){m=``;break bb1}let e=d.split(`
|
|
31
|
+
`);if(e.length<=12){m=d;break bb1}m=`${e.slice(0,12).join(`
|
|
32
|
+
`)}\n…`}t[10]=d,t[11]=m}else m=t[11];let h=m,g;t[12]===a?g=t[13]:(g=a?(0,$.jsx)(xK,{title:a,children:a}):null,t[12]=a,t[13]=g);let _;t[14]!==r||t[15]!==l||t[16]!==p?(_=p>0?(0,$.jsx)(bK,{children:l&&l.shown<l.total?TK(r.linesPartial,{shown:l.shown,total:l.total}):TK(r.linesBadge,{count:p})}):null,t[14]=r,t[15]=l,t[16]=p,t[17]=_):_=t[17];let v;t[18]!==r||t[19]!==a?(v=a?(0,$.jsx)(SK,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[18]=r,t[19]=a,t[20]=v):v=t[20];let y;t[21]!==g||t[22]!==_||t[23]!==v?(y=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[g,_,v]}),t[21]=g,t[22]=_,t[23]=v,t[24]=y):y=t[24];let b;t[25]!==d||t[26]!==r||t[27]!==h?(b=d?(0,$.jsx)(CK,{summary:r.viewContent,children:(0,$.jsx)(wK,{children:h})}):null,t[25]=d,t[26]=r,t[27]=h,t[28]=b):b=t[28];let x;return t[29]!==y||t[30]!==b?(x=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[y,b]}),t[29]=y,t[30]=b,t[31]=x):x=t[31],x});function jK(e){let t=(0,Q.c)(4),{lines:n}=e,r;t[0]===n?r=t[1]:(r=n.map(MK),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,$.jsx)(`pre`,{className:`max-h-80 w-full min-w-0 max-w-full overflow-auto rounded-md bg-surface-hover/60 p-2 font-mono text-xs leading-snug text-fg-muted dark:bg-surface-hover/35`,children:r}),t[2]=r,t[3]=i),i}function MK(e,t){return(0,$.jsx)(`div`,{className:X(`whitespace-pre-wrap break-words [overflow-wrap:anywhere]`,e.kind===`add`&&`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`,e.kind===`del`&&`bg-red-500/15 text-red-700 dark:text-red-300`,e.kind===`hunk`&&`text-fg-subtle`,e.kind===`meta`&&`text-fg-disabled`),children:e.text||`\xA0`},t)}var NK=(0,Z.memo)(function(e){let t=(0,Q.c)(25),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=LG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=hK(n.result),t[2]=n.result,t[3]=o);let s=o,c;t[4]===s?c=t[5]:(c=fK(s),t[4]=s,t[5]=c);let l=c,u;t[6]===a?u=t[7]:(u=a?(0,$.jsx)(xK,{title:a,children:a}):null,t[6]=a,t[7]=u);let d;t[8]!==l||t[9]!==r?(d=l?(0,$.jsx)(bK,{tone:`accent`,children:TK(r.diffStats,{added:l.added,removed:l.removed})}):null,t[8]=l,t[9]=r,t[10]=d):d=t[10];let f;t[11]!==r||t[12]!==a?(f=a?(0,$.jsx)(SK,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[11]=r,t[12]=a,t[13]=f):f=t[13];let p;t[14]!==u||t[15]!==d||t[16]!==f?(p=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[u,d,f]}),t[14]=u,t[15]=d,t[16]=f,t[17]=p):p=t[17];let m;t[18]!==l||t[19]!==r||t[20]!==s?(m=l?(0,$.jsx)(CK,{summary:r.viewDiff,defaultOpen:!0,children:(0,$.jsx)(jK,{lines:l.lines})}):s.text?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted [overflow-wrap:anywhere]`,children:s.text}):null,t[18]=l,t[19]=r,t[20]=s,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h});function PK(e){return!Number.isFinite(e)||e<0?``:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var FK=(0,Z.memo)(function(e){let t=(0,Q.c)(20),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=LG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=hK(n.result),t[2]=n.result,t[3]=o);let s=o,c,l,u;if(t[4]!==r||t[5]!==s||t[6]!==a){let e=EK(s),n=typeof e.size==`number`?e.size:null;c=`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,t[10]===a?l=t[11]:(l=a?(0,$.jsx)(xK,{title:a,children:a}):null,t[10]=a,t[11]=l),u=n==null?null:(0,$.jsx)(bK,{children:TK(r.sizeBadge,{size:PK(n)})}),t[4]=r,t[5]=s,t[6]=a,t[7]=c,t[8]=l,t[9]=u}else c=t[7],l=t[8],u=t[9];let d;t[12]!==r||t[13]!==a?(d=a?(0,$.jsx)(SK,{text:a,label:r.copyPath,copiedLabel:r.copied}):null,t[12]=r,t[13]=a,t[14]=d):d=t[14];let f;return t[15]!==c||t[16]!==l||t[17]!==u||t[18]!==d?(f=(0,$.jsxs)(`div`,{className:c,children:[l,u,d]}),t[15]=c,t[16]=l,t[17]=u,t[18]=d,t[19]=f):f=t[19],f}),IK=12;function LK(e){if(!e)return{preview:``,truncated:!1};let t=e.split(`
|
|
33
|
+
`);return t.length<=IK?{preview:e,truncated:!1}:{preview:`${t.slice(0,IK).join(`
|
|
34
|
+
`)}\n…`,truncated:!0}}var RK=(0,Z.memo)(function({block:e,labels:t}){let n=zG(e.input),r=(0,Z.useMemo)(()=>hK(e.result),[e.result]),i=(e.details&&typeof e.details==`object`&&!Array.isArray(e.details)?e.details:null)??EK(r),a=typeof i.exitCode==`number`?i.exitCode:null,o=!!i.timedOut,s=!!i.truncated,c=e.status===`running`,l=e.status===`error`,u=typeof i.aggregatedOutput==`string`&&i.aggregatedOutput.length>0?i.aggregatedOutput:r.text,{preview:d}=(0,Z.useMemo)(()=>LK(u),[u]),f=c?(0,$.jsxs)(bK,{children:[(0,$.jsx)(je,{className:`size-3 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:t.exitCodeUnknown})]}):o?(0,$.jsx)(bK,{tone:`warning`,children:t.timedOut}):a===0?(0,$.jsx)(bK,{tone:`positive`,children:t.exitCodeOk}):a==null?l?(0,$.jsx)(bK,{tone:`negative`,children:t.exitCodeUnknown}):null:(0,$.jsx)(bK,{tone:`negative`,children:TK(t.exitCodeNonZero,{code:a})});return(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[n?(0,$.jsxs)(xK,{title:n,children:[(0,$.jsx)(`span`,{className:`mr-1 text-fg-disabled`,children:`$`}),n]}):null,f,s?(0,$.jsx)(bK,{tone:`warning`,children:t.truncatedBadge}):null,n?(0,$.jsx)(SK,{text:n,label:t.copyCommand,copiedLabel:t.copied}):null]}),u?(0,$.jsx)(CK,{summary:t.viewOutput,children:(0,$.jsx)(wK,{children:d})}):c?null:(0,$.jsx)(`p`,{className:`text-xs text-fg-disabled`,children:t.noOutput})]})}),zK=(0,Z.memo)(function(e){let t=(0,Q.c)(27),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=RG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=hK(n.result),t[2]=n.result,t[3]=o);let s=o,c,l,u,d,f;if(t[4]!==r||t[5]!==s||t[6]!==a){let e=EK(s),n=typeof e.extractedLength==`number`?e.extractedLength:null,i;if(t[12]!==s.text){bb0:{if(!s.text){i=``;break bb0}let e=s.text.split(`
|
|
35
|
+
`);if(e.length<=12){i=s.text;break bb0}i=`${e.slice(0,12).join(`
|
|
36
|
+
`)}\n…`}t[12]=s.text,t[13]=i}else i=t[13];c=i,f=`space-y-1.5`,l=`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,t[14]===a?u=t[15]:(u=a?(0,$.jsx)(`a`,{href:a,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex max-w-full min-w-0 items-center break-words rounded-md bg-surface-hover/60 px-1.5 py-0.5 font-mono text-xs text-accent-fg underline-offset-2 hover:underline [overflow-wrap:anywhere] dark:bg-surface-hover/35`,title:a,children:a}):null,t[14]=a,t[15]=u),d=n!=null&&n>0?(0,$.jsx)(bK,{children:TK(r.linesBadge,{count:n})}):null,t[4]=r,t[5]=s,t[6]=a,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f}else c=t[7],l=t[8],u=t[9],d=t[10],f=t[11];let p;t[16]!==l||t[17]!==u||t[18]!==d?(p=(0,$.jsxs)(`div`,{className:l,children:[u,d]}),t[16]=l,t[17]=u,t[18]=d,t[19]=p):p=t[19];let m;t[20]!==r||t[21]!==c?(m=c?(0,$.jsx)(CK,{summary:r.viewContent,children:(0,$.jsx)(wK,{children:c})}):null,t[20]=r,t[21]=c,t[22]=m):m=t[22];let h;return t[23]!==f||t[24]!==p||t[25]!==m?(h=(0,$.jsxs)(`div`,{className:f,children:[p,m]}),t[23]=f,t[24]=p,t[25]=m,t[26]=h):h=t[26],h}),BK=at(wt(e=>({showRawToolData:!1,setShowRawToolData:t=>e({showRawToolData:t})}),{name:`xopc-web-dev-view`}));function VK(e,t){if(!Number.isFinite(e)||e<=0)return t===`zh`?`不到1秒`:`<1s`;let n=Math.floor(e/1e3);if(n===0)return t===`zh`?`不到1秒`:`<1s`;let r=Math.floor(n/60),i=n%60;return t===`zh`?r===0?`${i}秒`:i===0?`${r}分`:`${r}分${i}秒`:r===0?`${i}s`:i===0?`${r}m`:`${r}m ${i}s`}var HK={extension:Av,local:iv,cloakbrowser:Xv,cdp:kS,cloud:fl};function UK(e){let t=(0,Q.c)(29),{payload:n}=e,r=p(),i=ct(WK),a;t[0]===i?a=t[1]:(a=rt(i),t[0]=i,t[1]=a);let o=a.chat,s=HK[n.backend]??Ae,c=o.browserSetupRequiredTitle,l=o.browserSetupRequiredReasons[n.reason]??o.browserSetupRequiredReasons.generic,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=X(`mt-2 flex flex-col gap-2 rounded-xl border border-amber-300/60 bg-amber-50/70 p-3`,`dark:border-amber-500/30 dark:bg-amber-500/10`),t[2]=u):u=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=X(`flex size-8 shrink-0 items-center justify-center rounded-lg`,`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`),t[3]=d):d=t[3];let f;t[4]===s?f=t[5]:(f=(0,$.jsx)(`span`,{className:d,"aria-hidden":!0,children:(0,$.jsx)(s,{className:`size-4`,strokeWidth:1.75})}),t[4]=s,t[5]=f);let m;t[6]===c?m=t[7]:(m=(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-amber-900 dark:text-amber-100`,children:c}),t[6]=c,t[7]=m);let h;t[8]===l?h=t[9]:(h=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:l}),t[8]=l,t[9]=h);let g;t[10]!==m||t[11]!==h?(g=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[m,h]}),t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==f||t[14]!==g?(_=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[f,g]}),t[13]=f,t[14]=g,t[15]=_):_=t[15];let v;t[16]!==r||t[17]!==n.deepLink?(v=()=>r(n.deepLink),t[16]=r,t[17]=n.deepLink,t[18]=v):v=t[18];let y;t[19]!==o.browserSetupRequiredCta||t[20]!==v?(y=(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`h-8 px-3 py-1.5 text-xs`,onClick:v,children:o.browserSetupRequiredCta})}),t[19]=o.browserSetupRequiredCta,t[20]=v,t[21]=y):y=t[21];let b;t[22]!==o.browserSetupRequiredDetailToggle||t[23]!==n.detail?(b=n.detail?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-amber-800/80 underline-offset-2 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`,children:o.browserSetupRequiredDetailToggle}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-amber-100/60 p-2 font-mono text-[11px] text-amber-900 dark:bg-amber-500/15 dark:text-amber-100 [overflow-wrap:anywhere]`,children:n.detail})]}):null,t[22]=o.browserSetupRequiredDetailToggle,t[23]=n.detail,t[24]=b):b=t[24];let x;return t[25]!==y||t[26]!==b||t[27]!==_?(x=(0,$.jsxs)(`section`,{role:`status`,"aria-live":`polite`,className:u,children:[_,y,b]}),t[25]=y,t[26]=b,t[27]=_,t[28]=x):x=t[28],x}function WK(e){return e.language}var GK=new Set([`extension`,`local`,`cloakbrowser`,`cdp`,`cloud`]),KK=new Set([`extension_not_installed`,`extension_bridge_offline`,`extension_not_connected`,`local_chromium_missing`,`cloakbrowser_not_installed`,`cdp_unreachable`,`cloud_api_key_missing`]);function qK(e){if(!e?.trim())return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!=`object`)return null;let n=t;if(n.kind!==`browser_setup_required`)return null;let r=n.backend,i=n.reason,a=n.deepLink;return typeof r!=`string`||!GK.has(r)||typeof i!=`string`||!KK.has(i)||typeof a!=`string`||!a.startsWith(`/settings/`)?null:{kind:`browser_setup_required`,backend:r,reason:i,deepLink:a,detail:typeof n.detail==`string`?n.detail:void 0,message:typeof n.message==`string`?n.message:void 0}}function JK(e){return e.split(`/`).filter(Boolean).map(e=>encodeURIComponent(e)).join(`/`)}function YK(e,t){let n=JK(t);return Y(`/api/extensions/${encodeURIComponent(e)}/assets/${n}`)}var XK={theme:`Read theme (light / dark)`,"agent.send":`Send messages to the assistant`,"agent.subscribe":`Receive live agent stream events for a chat`,"session.read":`List and open chat sessions`,"session.write":`Modify chat sessions`,"config.read":`Read extension configuration`,"config.write":`Write extension configuration`,storage:`Read and write extension storage`,notification:`Show in-app notifications`,clipboard:`Use the clipboard`,"workspace.read":`Read workspace files`,"workspace.write":`Write workspace files`},ZK={theme:`读取主题(浅色/深色)`,"agent.send":`向助手发送消息`,"agent.subscribe":`接收会话的实时助手流式事件`,"session.read":`列出并打开聊天会话`,"session.write":`修改聊天会话`,"config.read":`读取扩展配置`,"config.write":`写入扩展配置`,storage:`读写扩展存储`,notification:`显示应用内通知`,clipboard:`使用剪贴板`,"workspace.read":`读取工作区文件`,"workspace.write":`写入工作区文件`};function QK(e,t){let n=XK[e];return t===`zh`&&ZK[e]?ZK[e]:n??e}function $K(e){let t=(0,Q.c)(58),{open:n,onOpenChange:r,extensionId:i,extensionName:a,permissions:o,onConfirm:s}=e,c=ct(tq),l,u,d,f,p,m,h,g,_,v,y,b;t[0]!==a||t[1]!==c||t[2]!==r||t[3]!==n?(p=rt(c).extensionUi,f=ne,y=n,b=r,d=H,t[16]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[130] bg-scrim`}),t[16]=v):v=t[16],u=ee,g=`fixed left-1/2 top-1/2 z-[131] w-[min(28rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-5 shadow-elevated`,_=eq,l=te,m=`text-base font-semibold text-fg`,h=p.permissionTitle.replace(`{{name}}`,a),t[0]=a,t[1]=c,t[2]=r,t[3]=n,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_,t[13]=v,t[14]=y,t[15]=b):(l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12],v=t[13],y=t[14],b=t[15]);let x;t[17]!==l||t[18]!==m||t[19]!==h?(x=(0,$.jsx)(l,{className:m,children:h}),t[17]=l,t[18]=m,t[19]=h,t[20]=x):x=t[20];let S;t[21]===i?S=t[22]:(S=(0,$.jsxs)(`span`,{className:`font-mono text-xs text-fg-muted`,title:i,children:[`(`,i,`)`]}),t[21]=i,t[22]=S);let C;t[23]!==p.permissionSubtitle||t[24]!==S?(C=(0,$.jsxs)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:[p.permissionSubtitle,` `,S]}),t[23]=p.permissionSubtitle,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==c||t[27]!==o||t[28]!==p.permissionsNone?(w=o.length===0?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-fg-muted`,children:p.permissionsNone}):(0,$.jsx)(`ul`,{className:`mt-4 max-h-48 list-inside list-disc space-y-1 overflow-y-auto text-sm text-fg`,children:o.map(e=>(0,$.jsx)(`li`,{children:QK(e,c)},e))}),t[26]=c,t[27]=o,t[28]=p.permissionsNone,t[29]=w):w=t[29];let T;t[30]===p.deny?T=t[31]:(T=(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg border border-edge px-3 py-2 text-sm text-fg hover:bg-surface-muted`,children:p.deny})}),t[30]=p.deny,t[31]=T);let E;t[32]!==s||t[33]!==r?(E=()=>{s(),r(!1)},t[32]=s,t[33]=r,t[34]=E):E=t[34];let D;t[35]!==p.allow||t[36]!==E?(D=(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg bg-accent px-3 py-2 text-sm font-medium text-white hover:opacity-90`,onClick:E,children:p.allow}),t[35]=p.allow,t[36]=E,t[37]=D):D=t[37];let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[T,D]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;t[41]!==u||t[42]!==C||t[43]!==w||t[44]!==O||t[45]!==g||t[46]!==_||t[47]!==x?(k=(0,$.jsxs)(u,{className:g,onOpenAutoFocus:_,children:[x,C,w,O]}),t[41]=u,t[42]=C,t[43]=w,t[44]=O,t[45]=g,t[46]=_,t[47]=x,t[48]=k):k=t[48];let A;t[49]!==d||t[50]!==k||t[51]!==v?(A=(0,$.jsxs)(d,{children:[v,k]}),t[49]=d,t[50]=k,t[51]=v,t[52]=A):A=t[52];let j;return t[53]!==f||t[54]!==A||t[55]!==y||t[56]!==b?(j=(0,$.jsx)(f,{open:y,onOpenChange:b,children:A}),t[53]=f,t[54]=A,t[55]=y,t[56]=b,t[57]=j):j=t[57],j}function eq(e){return e.preventDefault()}function tq(e){return e.language}async function nq(e){let{grant:t}=await J(Y(`/api/extensions/${encodeURIComponent(e)}/ui-grant`));return t}async function rq(e){return(await J(Y(`/api/extensions/${encodeURIComponent(e)}/ui-grant`),{method:`POST`})).grant}var iq=48,aq=2e3,oq=`allow-scripts allow-forms allow-popups`;function sq(e){let t=(0,Q.c)(79),{extensionId:n,extensionName:r,entrypoint:i,permissions:a,title:o,className:s,fixedHeight:c,maxHeight:l,minHeight:u,initialData:d}=e,f=l===void 0?aq:l,p=u===void 0?iq:u,m=ct(lq),h;t[0]===m?h=t[1]:(h=rt(m),t[0]=m,t[1]=h);let g=h.extensionUi,_=TI(),v=(0,Z.useRef)(null),y=Et(cq),b;t[2]!==n||t[3]!==r?(b=r?.trim()||n,t[2]=n,t[3]=r,t[4]=b):b=t[4];let x=b,S;t[5]!==n||t[6]!==o?(S=o?.trim()||`Extension ${n}`,t[5]=n,t[6]=o,t[7]=S):S=t[7];let C=S,w;t[8]===a?w=t[9]:(w=JSON.stringify(Array.from(a??[]).toSorted()),t[8]=a,t[9]=w);let T=w,E;t[10]===T?E=t[11]:(E=JSON.parse(T),t[10]=T,t[11]=E);let D=E,O=c??Math.min(f,Math.max(p,320)),k;t[12]===O?k=t[13]:(k={allowed:!1,dialogOpen:!1,reloadKey:0,loadError:!1,dynamicHeight:O,grantResolved:!1,grantError:null},t[12]=O,t[13]=k);let[A,j]=(0,Z.useReducer)(pB,k),{allowed:M,dialogOpen:N,reloadKey:P,loadError:F,dynamicHeight:I,grantResolved:L,grantError:R}=A,z;t[14]===n?z=t[15]:(z=()=>{let e=!0;return j({type:`patch`,patch:{allowed:!1,dialogOpen:!1,grantResolved:!1,grantError:null}}),nq(n).then(t=>{e&&j({type:`patch`,patch:{allowed:t.granted,dialogOpen:!t.granted,grantResolved:!0}})}).catch(t=>{e&&j({type:`patch`,patch:{allowed:!1,dialogOpen:!0,grantResolved:!0,grantError:t instanceof Error?t.message:String(t)}})}),()=>{e=!1}},t[14]=n,t[15]=z);let B;t[16]!==n||t[17]!==D?(B=[n,D],t[16]=n,t[17]=D,t[18]=B):B=t[18],(0,Z.useEffect)(z,B);let V;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>j({type:`patch`,patch:{dialogOpen:e}}),t[19]=V):V=t[19];let H=V,ee;t[20]!==i||t[21]!==n?(ee=YK(n,i),t[20]=i,t[21]=n,t[22]=ee):ee=t[22];let te=ee,ne,U;t[23]!==M||t[24]!==n||t[25]!==c||t[26]!==f||t[27]!==p||t[28]!==D||t[29]!==_?(ne=()=>{if(!M)return;let e=v.current;if(!e)return;_.registerIframe(n,e,D);let t=_.subscribeExtensionEvents(n,e=>{if(e.event!==`ui.resize`||!e.data||typeof e.data!=`object`||e.data===null)return;let t=Number(e.data.height);Number.isFinite(t)&&c===void 0&&j({type:`patch`,patch:{dynamicHeight:Math.min(f,Math.max(p,t))}})});return()=>{t(),_.unregisterIframe(n)}},U=[M,n,c,f,p,D,_],t[23]=M,t[24]=n,t[25]=c,t[26]=f,t[27]=p,t[28]=D,t[29]=_,t[30]=ne,t[31]=U):(ne=t[30],U=t[31]),(0,Z.useLayoutEffect)(ne,U);let W,re;t[32]!==M||t[33]!==n||t[34]!==y||t[35]!==_?(W=()=>{if(!M)return;let e=pI(y);_.sendEvent(n,`theme.changed`,e)},re=[M,n,y,_],t[32]=M,t[33]=n,t[34]=y,t[35]=_,t[36]=W,t[37]=re):(W=t[36],re=t[37]),(0,Z.useEffect)(W,re);let ie;t[38]!==I||t[39]!==c?(ie=c===void 0?{width:`100%`,height:I,border:`none`}:{width:`100%`,height:c,border:`none`},t[38]=I,t[39]=c,t[40]=ie):ie=t[40];let ae=ie,oe;t[41]===n?oe=t[42]:(oe=()=>{rq(n).then(e=>{if(!e.granted)throw Error(`Permission grant was not persisted`);j({type:`patch`,patch:{allowed:!0,grantError:null}})}).catch(e=>{j({type:`patch`,patch:{allowed:!1,grantError:e instanceof Error?e.message:String(e)}})})},t[41]=n,t[42]=oe);let se=oe;if(!L){let e=`${s??``} min-h-32 animate-pulse rounded-lg bg-surface-muted`,n;return t[43]===e?n=t[44]:(n=(0,$.jsx)(`div`,{className:e}),t[43]=e,t[44]=n),n}if(!M){let e;t[45]!==N||t[46]!==x||t[47]!==n||t[48]!==se||t[49]!==D?(e=(0,$.jsx)($K,{open:N,onOpenChange:H,extensionId:n,extensionName:x,permissions:D,onConfirm:se}),t[45]=N,t[46]=x,t[47]=n,t[48]=se,t[49]=D,t[50]=e):e=t[50];let r;t[51]!==s||t[52]!==N||t[53]!==R||t[54]!==g?(r=N?null:(0,$.jsxs)(`div`,{className:s?`${s} rounded-lg border border-edge border-dashed bg-surface-base p-4 text-sm text-fg-muted`:`rounded-lg border border-edge border-dashed bg-surface-base p-4 text-sm text-fg-muted`,children:[R?(0,$.jsx)(`p`,{className:`mb-2 text-danger`,children:R}):null,(0,$.jsx)(`p`,{children:g.deniedHint}),(0,$.jsx)(`button`,{type:`button`,className:`mt-2 text-sm font-medium text-accent underline-offset-2 hover:underline`,onClick:()=>j({type:`patch`,patch:{dialogOpen:!0}}),children:g.reviewPermissions})]}),t[51]=s,t[52]=N,t[53]=R,t[54]=g,t[55]=r):r=t[55];let i;return t[56]!==e||t[57]!==r?(i=(0,$.jsxs)($.Fragment,{children:[e,r]}),t[56]=e,t[57]=r,t[58]=i):i=t[58],i}let ce;t[59]!==F||t[60]!==P||t[61]!==g?(ce=F?(0,$.jsxs)(`div`,{className:`mb-2 rounded-lg border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-sm text-fg`,children:[(0,$.jsx)(`p`,{children:g.loadFailed}),(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:g.loadFailedConnectionHint}),(0,$.jsx)(`button`,{type:`button`,className:`mt-2 font-medium text-accent underline-offset-2 hover:underline`,onClick:()=>{j({type:`patch`,patch:{loadError:!1,reloadKey:P+1}})},children:g.retryLoad})]}):null,t[59]=F,t[60]=P,t[61]=g,t[62]=ce):ce=t[62];let le=`${n}-${i}-${P}`,ue;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>j({type:`patch`,patch:{loadError:!0}}),t[63]=ue):ue=t[63];let de;t[64]!==n||t[65]!==d||t[66]!==m||t[67]!==_?(de=()=>{j({type:`patch`,patch:{loadError:!1}}),_.sendInit(n,pI(Et.getState().resolved),m),d!==void 0&&_.sendEvent(n,`widget.data`,d)},t[64]=n,t[65]=d,t[66]=m,t[67]=_,t[68]=de):de=t[68];let fe;t[69]!==s||t[70]!==C||t[71]!==te||t[72]!==ae||t[73]!==le||t[74]!==de?(fe=(0,$.jsx)(`iframe`,{ref:v,className:s,title:C,src:te,style:ae,sandbox:oq,referrerPolicy:`no-referrer`,onError:ue,onLoad:de},le),t[69]=s,t[70]=C,t[71]=te,t[72]=ae,t[73]=le,t[74]=de,t[75]=fe):fe=t[75];let pe;return t[76]!==ce||t[77]!==fe?(pe=(0,$.jsxs)(`div`,{className:`flex flex-1 min-h-0 min-w-0 flex-col`,children:[ce,fe]}),t[76]=ce,t[77]=fe,t[78]=pe):pe=t[78],pe}function cq(e){return e.resolved}function lq(e){return e.language}function uq(e){let t=(0,Q.c)(8),{extensionId:n,extensionName:r,entrypoint:i,title:a,toolResult:o,maxHeight:s,interactive:c,permissions:l}=e,u=s===void 0?400:s,d;return t[0]!==i||t[1]!==n||t[2]!==r||t[3]!==u||t[4]!==l||t[5]!==a||t[6]!==o?(d=(0,$.jsx)(`div`,{className:`mt-2 w-full min-w-0 overflow-hidden rounded-xl border border-edge bg-surface-base`,children:(0,$.jsx)(sq,{extensionId:n,extensionName:r,entrypoint:i,permissions:l,title:a,className:`w-full`,minHeight:80,maxHeight:u,initialData:o})}),t[0]=i,t[1]=n,t[2]=r,t[3]=u,t[4]=l,t[5]=a,t[6]=o,t[7]=d):d=t[7],d}function dq(e){let t=DI();return(0,Z.useMemo)(()=>{for(let n of t){let t=n.ui?.contributions?.chatWidgets;if(t){for(let r of t)if(r.match.toolName&&r.match.toolName===e)return{...r,extensionId:n.id}}}return null},[t,e])}var fq={task:TS,project:xp,note:cv,workflow_definition:BT,workflow_run:Ev,automation:Qi,local_app:Gn,file:wf,session:Z_,settings:Kv},pq={task:{en:`Task`,zh:`结果`},project:{en:`Project`,zh:`项目`},note:{en:`Note`,zh:`笔记`},workflow_definition:{en:`Workflow`,zh:`工作流`},workflow_run:{en:`Workflow run`,zh:`工作流运行`},automation:{en:`Automation`,zh:`自动化`},local_app:{en:`Local app`,zh:`本地应用`},file:{en:`File`,zh:`文件`},session:{en:`Conversation`,zh:`对话`},settings:{en:`Settings`,zh:`设置`}},mq={created:{en:`Created`,zh:`已创建`},updated:{en:`Updated`,zh:`已更新`},opened:{en:`Ready`,zh:`已就绪`},started:{en:`Started`,zh:`已启动`},completed:{en:`Completed`,zh:`已完成`},failed:{en:`Failed`,zh:`失败`}};function hq(e,t){return t===`zh`?`继续处理${pq[e.kind].zh}「${e.title}」(ID: ${e.id}):`:`Continue working on ${pq[e.kind].en.toLowerCase()} "${e.title}" (ID: ${e.id}): `}function gq(e){let t=(0,Q.c)(63),{delivery:n}=e,r=n.primary,i=p(),a=l(),o=ct(_q)===`zh`?`zh`:`en`;if(!r)return null;let s=fq[r.kind],c;t[0]===r?c=t[1]:(c=Ke(r),t[0]=r,t[1]=c);let u=c,d;t[2]!==r.capabilities||t[3]!==u?(d=u&&r.capabilities.includes(`open`),t[2]=r.capabilities,t[3]=u,t[4]=d):d=t[4];let f=!!d,m;t[5]===r.capabilities?m=t[6]:(m=r.capabilities.includes(`continue_in_chat`),t[5]=r.capabilities,t[6]=m);let h=m,g=n.operation===`failed`,_;t[7]!==a||t[8]!==i||t[9]!==u?(_=()=>{u&&i(ye(u,`${a.pathname}${a.search}`))},t[7]=a,t[8]=i,t[9]=u,t[10]=_):_=t[10];let v=_,y=g?`border-red-300/70 dark:border-red-500/35`:`border-edge`,b;t[11]===y?b=t[12]:(b=X(`mt-2 overflow-hidden rounded-xl border bg-surface-raised`,y),t[11]=y,t[12]=b);let x=`${mq[n.operation][o]} ${pq[r.kind][o]}`,S=f?v:void 0,C=!f,w=f&&`transition-colors hover:bg-surface-hover/60`,T=!f&&`cursor-default`,E;t[13]!==w||t[14]!==T?(E=X(`flex w-full items-start gap-3 p-3 text-left`,w,T),t[13]=w,t[14]=T,t[15]=E):E=t[15];let D=g?`bg-red-100 text-red-700 dark:bg-red-500/15 dark:text-red-300`:`bg-accent-soft text-accent-fg`,O;t[16]===D?O=t[17]:(O=X(`flex size-9 shrink-0 items-center justify-center rounded-lg`,D),t[16]=D,t[17]=O);let k;t[18]===s?k=t[19]:(k=(0,$.jsx)(s,{className:`size-4.5`,strokeWidth:1.75}),t[18]=s,t[19]=k);let A;t[20]!==O||t[21]!==k?(A=(0,$.jsx)(`span`,{className:O,"aria-hidden":!0,children:k}),t[20]=O,t[21]=k,t[22]=A):A=t[22];let j;t[23]===r.title?j=t[24]:(j=(0,$.jsx)(`span`,{className:`truncate text-sm font-semibold text-fg`,children:r.title}),t[23]=r.title,t[24]=j);let M=pq[r.kind][o],N;t[25]===M?N=t[26]:(N=(0,$.jsx)(`span`,{className:`rounded-full border border-edge px-1.5 py-0.5 text-[10px] font-medium text-fg-muted`,children:M}),t[25]=M,t[26]=N);let P;t[27]!==j||t[28]!==N?(P=(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-1.5`,children:[j,N]}),t[27]=j,t[28]=N,t[29]=P):P=t[29];let F=mq[n.operation][o],I;t[30]===F?I=t[31]:(I=(0,$.jsx)(`span`,{children:F}),t[30]=F,t[31]=I);let L;t[32]===r.status?L=t[33]:(L=r.status?(0,$.jsxs)(`span`,{children:[`· `,r.status]}):null,t[32]=r.status,t[33]=L);let R;t[34]!==I||t[35]!==L?(R=(0,$.jsxs)(`span`,{className:`mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-fg-muted`,children:[I,L]}),t[34]=I,t[35]=L,t[36]=R):R=t[36];let z;t[37]===r.summary?z=t[38]:(z=r.summary?(0,$.jsx)(`span`,{className:`mt-1.5 line-clamp-2 block text-xs leading-relaxed text-fg-subtle`,children:r.summary}):null,t[37]=r.summary,t[38]=z);let B;t[39]!==P||t[40]!==R||t[41]!==z?(B=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[P,R,z]}),t[39]=P,t[40]=R,t[41]=z,t[42]=B):B=t[42];let V;t[43]===f?V=t[44]:(V=f?(0,$.jsx)(cs,{className:`mt-2 size-4 shrink-0 text-fg-disabled`,"aria-hidden":!0}):null,t[43]=f,t[44]=V);let H;t[45]!==E||t[46]!==A||t[47]!==B||t[48]!==V||t[49]!==S||t[50]!==C?(H=(0,$.jsxs)(`button`,{type:`button`,onClick:S,disabled:C,className:E,children:[A,B,V]}),t[45]=E,t[46]=A,t[47]=B,t[48]=V,t[49]=S,t[50]=C,t[51]=H):H=t[51];let ee;t[52]!==h||t[53]!==f||t[54]!==o||t[55]!==v||t[56]!==r?(ee=f||h?(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-edge px-3 py-2`,children:[h?(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`h-8 px-3 py-1.5 text-xs`,onClick:()=>SG(hq(r,o)),children:o===`zh`?`在对话中继续`:`Continue in chat`}):null,f?(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`h-8 px-3 py-1.5 text-xs`,onClick:v,children:o===`zh`?`打开`:`Open`}):null]}):null,t[52]=h,t[53]=f,t[54]=o,t[55]=v,t[56]=r,t[57]=ee):ee=t[57];let te;return t[58]!==H||t[59]!==ee||t[60]!==b||t[61]!==x?(te=(0,$.jsxs)(`section`,{className:b,"aria-label":x,children:[H,ee]}),t[58]=H,t[59]=ee,t[60]=b,t[61]=x,t[62]=te):te=t[62],te}function _q(e){return e.language}function vq(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function yq(e){let t=vq(e);return t?Je(t.delivery)??Je(vq(t.details)?.delivery)??Je(e):null}function bq(e){let t=yq(e.details);if(t)return t;let n=hK(e.result),r=yq(n.details);if(r)return r;let i=qe(n.text);if(i)return i;if(typeof e.result==`string`)try{return yq(JSON.parse(e.result))}catch{return null}return yq(e.result)}function xq(e){if(e.scrollHeight<=e.clientHeight)return!1;let t=window.getComputedStyle(e).overflowY;return t===`auto`||t===`scroll`}function Sq(e,t,n){let r=[],i=e instanceof HTMLElement?e:t;for(;i&&i!==t;)xq(i)&&r.push(i),i=i.parentElement;return t.scrollHeight>t.clientHeight&&r.push(t),n!==t&&r.push(n),r}function Cq(e,t){let n=e;for(let e of t){let t=Math.max(0,e.scrollHeight-e.clientHeight),r=Math.min(t,Math.max(0,e.scrollTop+n)),i=r-e.scrollTop;if(i!==0&&(e.scrollTop=r),n-=i,Math.abs(n)<.01)break}}function wq(e,t){if(e.defaultPrevented||e.ctrlKey||e.deltaY===0||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let n=t.closest(`.chat-messages`);if(!n)return;let r=t.clientHeight||n.clientHeight,i=e.deltaMode===WheelEvent.DOM_DELTA_LINE?16:e.deltaMode===WheelEvent.DOM_DELTA_PAGE?r:1,a=Sq(e.target,t,n);e.preventDefault(),Cq(e.deltaY*i,a)}var Tq=`workflow`;function Eq(e){return e.name===Tq}function Dq(e){if(e.result!=null){let t=Oq(hK(e.result).details);if(t)return t}return Oq(e.details)}function Oq(e){if(!e||typeof e!=`object`)return null;let t=e;return typeof t.name!=`string`||!Array.isArray(t.agents)?null:e}function kq(e){return e.status===`running`?`running`:Aq(e)||e.status===`error`?`failed`:`completed`}function Aq(e){if(e.status===`error`)return!0;let t=Iq(e).toLowerCase().trim();return!!(t.startsWith(`workflow failed`)||t.includes(`workflow graph validation failed`)||t.includes(`workflow aborted`)||t.includes(`timed out`)||Mq(e))}function jq(e){let t=Dq(e),n=Iq(e).trim(),r=Mq(e);return{headline:Nq(n,r),detailLines:Pq(n,r,t),snapshot:t,logs:t?.logs??[],failedAgents:t?.agents.filter(e=>e.status===`error`||e.status===`skipped`||!!e.error?.trim())??[]}}function Mq(e){if(e.details!=null&&typeof e.details==`object`){let t=e.details.error;if(typeof t==`string`&&t.trim())return t.trim()}if(e.result!=null){let t=hK(e.result).details?.error;if(typeof t==`string`&&t.trim())return t.trim()}return``}function Nq(e,t){let n=t||e;if(!n)return`workflow failed`;let r=n.replace(/^workflow failed:\s*/i,``).trim();return r&&r!==n?r:n.length>140?`${n.slice(0,137)}…`:n}function Pq(e,t,n){let r=[],i=e=>{let t=e.trim();t&&!r.includes(t)&&r.push(t)};e&&i(e),t&&t!==e&&i(t);for(let e of n?.logs??[])i(e);for(let e of n?.agents??[])e.error?.trim()?i(`${e.label}: ${e.error.trim()}`):e.status===`error`?i(`${e.label}: subagent failed`):e.status===`skipped`&&i(`${e.label}: skipped`);return r}function Fq(e){let t=Iq(e);if(!t)return`runtime_error`;let n=t.toLowerCase();return n.includes(`workflow graph`)||n.includes(`workflow definition`)||n.includes(`validation`)?`validation_error`:n.includes(`abort`)?`aborted`:n.includes(`timed out`)||n.includes(`timeout`)?`timeout`:`runtime_error`}function Iq(e){let t=Mq(e);if(t)return t;if(e.result==null)return``;let n=hK(e.result);return n.text?n.text:typeof e.result==`string`?e.result:``}function Lq(e){let t=e.agents.map(e=>e.phase).filter(e=>!!e),n=[],r=new Set;for(let i of[e.phases,t,e.currentPhase?[e.currentPhase]:[]])for(let e of i)r.has(e)||(r.add(e),n.push(e));let i=[],a=new Set;for(let t of n){let n=e.agents.filter(e=>e.phase===t);if(!(n.length===0&&e.currentPhase!==t)){for(let e of n)a.add(e.id);i.push(Rq(t,n))}}let o=e.agents.filter(e=>!a.has(e.id));return{phases:i,unphased:o.length>0?Rq(`unphased`,o):null}}function Rq(e,t){let n=0,r=0,i=0,a=0;for(let e of t)e.status===`done`?n++:e.status===`running`?r++:e.status===`error`?i++:e.status===`skipped`&&a++;let o=t.length>0&&n+i+a===t.length;return{title:e,agents:t,done:n,running:r,errored:i,skipped:a,complete:o}}function zq(e){if(!Number.isFinite(e)||e<0)return``;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;if(n<60)return r?`${n}m ${r}s`:`${n}m`;let i=Math.floor(n/60),a=n%60;return a?`${i}h ${a}m`:`${i}h`}function Bq(e,t=Date.now()){return e.durationMs!=null&&Number.isFinite(e.durationMs)?e.durationMs:e.status===`running`&&e.startedAtMs!=null?Math.max(0,t-e.startedAtMs):null}function Vq(e,t=Date.now()){let n=Bq(e,t);return n==null?``:zq(n)}function Hq(e){let t=String(e??``).toLowerCase();return t===`high`||t===`critical`||t===`h`?`high`:t===`med`||t===`medium`||t===`m`?`med`:t===`low`||t===`l`?`low`:`neutral`}function Uq(e,t){switch(e.status){case`queued`:return t.statusQueued;case`running`:return t.statusRunning;case`done`:return t.statusDone;case`error`:return t.statusError;case`skipped`:return t.statusSkipped;default:return e.status}}function Wq(e){return e===`done`?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`error`?`bg-rose-500/10 text-rose-700 dark:text-rose-300`:e===`running`?`bg-accent-soft text-accent-fg`:`bg-surface-hover text-fg-subtle`}var Gq=(0,Z.memo)(function(e){let t=(0,Q.c)(96),{agent:n,snapshot:r,labels:i,className:a,onClose:o}=e;if(!n)return null;let s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(t[0]!==n||t[1]!==a||t[2]!==i||t[3]!==r?.logs){let e=Vq(n);l=n.error||n.resultPreview||n.currentStep||i.runningPlaceholder;let o;t[18]===r?.logs?o=t[19]:(o=r?.logs??[],t[18]=r?.logs,t[19]=o),c=o;let x;t[20]!==n.prompt||t[21]!==c?(x=!!n.prompt?.trim()||c.length>0,t[20]=n.prompt,t[21]=c,t[22]=x):x=t[22],s=x,d=!0,t[23]===a?f=t[24]:(f=X(`min-w-0 rounded-xl border border-edge-subtle bg-surface-base/55 p-3`,a),t[23]=a,t[24]=f),b=`flex min-w-0 items-start justify-between gap-3`,v=`min-w-0`;let S;t[25]===n.label?S=t[26]:(S=(0,$.jsx)(`h4`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:n.label}),t[25]=n.label,t[26]=S);let C;t[27]===n.status?C=t[28]:(C=X(`shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium`,Wq(n.status)),t[27]=n.status,t[28]=C);let w;t[29]!==n||t[30]!==i?(w=Uq(n,i),t[29]=n,t[30]=i,t[31]=w):w=t[31];let T;t[32]!==C||t[33]!==w?(T=(0,$.jsx)(`span`,{className:C,children:w}),t[32]=C,t[33]=w,t[34]=T):T=t[34],t[35]!==S||t[36]!==T?(y=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[S,T]}),t[35]=S,t[36]=T,t[37]=y):y=t[37],g=`mt-1 flex min-w-0 flex-wrap gap-x-3 gap-y-1 text-xs text-fg-subtle`;let E=n.phase||`-`,D;t[38]===E?D=t[39]:(D=(0,$.jsx)(`span`,{className:`text-fg-muted`,children:E}),t[38]=E,t[39]=D),t[40]!==i.phaseHeading||t[41]!==D?(_=(0,$.jsxs)(`span`,{children:[i.phaseHeading,`: `,D]}),t[40]=i.phaseHeading,t[41]=D,t[42]=_):_=t[42],m=i.elapsedHeading,h=`: `,u=`tabular-nums text-fg-muted`,p=e?i.workedFor(e):`-`,t[0]=n,t[1]=a,t[2]=i,t[3]=r?.logs,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=_,t[15]=v,t[16]=y,t[17]=b}else s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13],_=t[14],v=t[15],y=t[16],b=t[17];let x;t[43]!==u||t[44]!==p?(x=(0,$.jsx)(`span`,{className:u,children:p}),t[43]=u,t[44]=p,t[45]=x):x=t[45];let S;t[46]!==x||t[47]!==m||t[48]!==h?(S=(0,$.jsxs)(`span`,{children:[m,h,x]}),t[46]=x,t[47]=m,t[48]=h,t[49]=S):S=t[49];let C;t[50]!==S||t[51]!==g||t[52]!==_?(C=(0,$.jsxs)(`div`,{className:g,children:[_,S]}),t[50]=S,t[51]=g,t[52]=_,t[53]=C):C=t[53];let w;t[54]!==C||t[55]!==v||t[56]!==y?(w=(0,$.jsxs)(`div`,{className:v,children:[y,C]}),t[54]=C,t[55]=v,t[56]=y,t[57]=w):w=t[57];let T;t[58]!==i.close||t[59]!==o?(T=o?(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),"aria-label":i.close,onClick:o,children:(0,$.jsx)(Ne,{className:`size-3.5`,"aria-hidden":!0})}):null,t[58]=i.close,t[59]=o,t[60]=T):T=t[60];let E;t[61]!==w||t[62]!==T||t[63]!==b?(E=(0,$.jsxs)(`div`,{className:b,children:[w,T]}),t[61]=w,t[62]=T,t[63]=b,t[64]=E):E=t[64];let D;t[65]!==n.currentStep||t[66]!==i.currentStepHeading?(D=n.currentStep?(0,$.jsxs)(`div`,{className:`mt-3 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.currentStepHeading}),(0,$.jsx)(`div`,{className:`mt-1 wrap-break-word text-sm text-fg-muted`,children:n.currentStep})]}):null,t[65]=n.currentStep,t[66]=i.currentStepHeading,t[67]=D):D=t[67];let O;t[68]===i.outputHeading?O=t[69]:(O=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.outputHeading}),t[68]=i.outputHeading,t[69]=O);let k=n.error?`font-mono text-rose-600 dark:text-rose-400`:`text-fg-muted`,A;t[70]===k?A=t[71]:(A=X(`mt-1 max-h-44 overflow-y-auto whitespace-pre-wrap wrap-break-word text-sm leading-6`,k),t[70]=k,t[71]=A);let j;t[72]!==l||t[73]!==A?(j=(0,$.jsx)(`div`,{className:A,children:l}),t[72]=l,t[73]=A,t[74]=j):j=t[74];let M;t[75]!==O||t[76]!==j?(M=(0,$.jsxs)(`div`,{className:`mt-3 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2`,children:[O,j]}),t[75]=O,t[76]=j,t[77]=M):M=t[77];let N;t[78]!==n.steps||t[79]!==i.stepsHeading?(N=n.steps?.length?(0,$.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.stepsHeading}),n.steps.map(Kq)]}):null,t[78]=n.steps,t[79]=i.stepsHeading,t[80]=N):N=t[80];let P;t[81]!==n.prompt||t[82]!==s||t[83]!==i.executionHeading||t[84]!==i.logsHeading||t[85]!==i.promptHeading||t[86]!==c?(P=s?(0,$.jsxs)(`details`,{className:`group mt-3 rounded-lg border border-edge-subtle bg-surface-panel`,children:[(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-2 px-2.5 py-2 text-xs font-medium text-fg-muted`,children:[i.executionHeading,(0,$.jsx)(is,{className:`size-3.5 shrink-0 text-fg-subtle transition-transform group-open:rotate-180`,"aria-hidden":!0})]}),(0,$.jsxs)(`div`,{className:`space-y-3 border-t border-edge-subtle p-2.5`,children:[n.prompt?.trim()?(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.promptHeading}),(0,$.jsx)(`pre`,{className:`mt-1 max-h-40 min-w-0 overflow-y-auto whitespace-pre-wrap wrap-break-word rounded-md bg-surface-hover/45 p-2 font-mono text-xs leading-5 text-fg-muted`,children:n.prompt})]}):null,c.length>0?(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:i.logsHeading}),(0,$.jsx)(`div`,{className:`mt-1 max-h-36 space-y-0.5 overflow-y-auto rounded-md bg-surface-hover/45 p-2 font-mono text-xs leading-5 text-fg-subtle`,children:c.map(qq)})]}):null]})]}):null,t[81]=n.prompt,t[82]=s,t[83]=i.executionHeading,t[84]=i.logsHeading,t[85]=i.promptHeading,t[86]=c,t[87]=P):P=t[87];let F;return t[88]!==d||t[89]!==f||t[90]!==E||t[91]!==D||t[92]!==M||t[93]!==N||t[94]!==P?(F=(0,$.jsxs)(`section`,{"data-workflow-inline-detail":d,className:f,children:[E,D,M,N,P]}),t[88]=d,t[89]=f,t[90]=E,t[91]=D,t[92]=M,t[93]=N,t[94]=P,t[95]=F):F=t[95],F});function Kq(e){return(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-panel px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate text-xs font-medium text-fg`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-[10px] text-fg-subtle`,children:e.status})]}),e.detail||e.resultPreview||e.error?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap wrap-break-word text-xs leading-5 text-fg-muted`,children:e.error||e.resultPreview||e.detail}):null]},e.id)}function qq(e){return(0,$.jsx)(`div`,{className:`wrap-break-word`,children:e},e)}var Jq=(0,Z.memo)(function(e){let t=(0,Q.c)(38),{name:n,description:r,status:i,doneCount:a,totalCount:o,durationText:s,metaText:c,collapsed:l,onToggleCollapsed:u,actions:d,labels:f}=e,p=o>0?`${a}/${o}`:i===`running`?`…`:`0`,m;t[0]!==p||t[1]!==s||t[2]!==f||t[3]!==c||t[4]!==i?(m=c??(i===`running`?f.runningMeta(p,s):i===`completed`?f.completedMeta(p,s):f.failedMeta),t[0]=p,t[1]=s,t[2]=f,t[3]=c,t[4]=i,t[5]=m):m=t[5];let h=m,g=i===`failed`&&`border-rose-300/40`,_;t[6]===g?_=t[7]:(_=X(`flex min-w-0 items-center gap-2 border-b border-edge-subtle px-3 py-2`,g),t[6]=g,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,$.jsx)(`span`,{"aria-hidden":!0,className:`shrink-0 text-fg-subtle`,children:i===`running`?(0,$.jsx)(je,{className:`size-4 animate-spin text-accent-fg`}):(0,$.jsx)(Fh,{className:`size-4`})}),t[8]=i,t[9]=v);let y;t[10]===n?y=t[11]:(y=(0,$.jsx)(`div`,{className:`min-w-0 shrink truncate text-base font-semibold tracking-tight text-fg`,children:n}),t[10]=n,t[11]=y);let b;t[12]===h?b=t[13]:(b=(0,$.jsx)(`div`,{className:`min-w-0 flex-1 truncate text-xs tabular-nums text-fg-subtle`,children:h}),t[12]=h,t[13]=b);let x;t[14]!==y||t[15]!==b?(x=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[y,b]}),t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;t[17]===r?S=t[18]:(S=r?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-1 text-xs text-fg-subtle`,children:r}):null,t[17]=r,t[18]=S);let C;t[19]!==x||t[20]!==S?(C=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[x,S]}),t[19]=x,t[20]=S,t[21]=C):C=t[21];let w;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(w=X(`inline-flex size-7 items-center justify-center rounded-md`,`text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),t[22]=w):w=t[22];let T=l?f.expand:f.collapse,E=l?f.expand:f.collapse,D;t[23]===l?D=t[24]:(D=l?(0,$.jsx)(is,{className:`size-4`}):(0,$.jsx)(ls,{className:`size-4`}),t[23]=l,t[24]=D);let O;t[25]!==u||t[26]!==T||t[27]!==E||t[28]!==D?(O=(0,$.jsx)(`button`,{type:`button`,onClick:u,className:w,"aria-label":T,title:E,children:D}),t[25]=u,t[26]=T,t[27]=E,t[28]=D,t[29]=O):O=t[29];let k;t[30]!==d||t[31]!==O?(k=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[d,O]}),t[30]=d,t[31]=O,t[32]=k):k=t[32];let A;return t[33]!==k||t[34]!==_||t[35]!==v||t[36]!==C?(A=(0,$.jsxs)(`div`,{className:_,children:[v,C,k]}),t[33]=k,t[34]=_,t[35]=v,t[36]=C,t[37]=A):A=t[37],A}),Yq={queued:(0,$.jsx)(Fs,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),running:(0,$.jsx)(je,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}),done:(0,$.jsx)(me,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}),error:(0,$.jsx)(xs,{className:`size-3.5 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),skipped:(0,$.jsx)(ic,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0})},Xq=(0,Z.memo)(function(e){let t=(0,Q.c)(39),{agent:n,labels:r,selected:i,onSelect:a}=e,[,o]=(0,Z.useState)(0),s;t[0]!==n.status||t[1]!==o?(s=()=>{if(n.status!==`running`)return;let e=window.setInterval(()=>o(Zq),1e3);return()=>window.clearInterval(e)},t[0]=n.status,t[1]=o,t[2]=s):s=t[2];let c;t[3]!==n.startedAtMs||t[4]!==n.status?(c=[n.status,n.startedAtMs],t[3]=n.startedAtMs,t[4]=n.status,t[5]=c):c=t[5],(0,Z.useEffect)(s,c);let l;t[6]===n.status?l=t[7]:(l=Yq[n.status]??(0,$.jsx)(zs,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[6]=n.status,t[7]=l);let u=l,d;t[8]===n?d=t[9]:(d=Vq(n),t[8]=n,t[9]=d);let f=d,p=n.status===`queued`?r.queued:n.status===`running`&&!n.currentStep?r.running:n.currentStep,m;t[10]!==n||t[11]!==a?(m=()=>a?.(n),t[10]=n,t[11]=a,t[12]=m):m=t[12];let h=`${r.openDetail}: ${n.label}`,g=i?`true`:void 0,_=i&&`bg-surface-hover/80 ring-1 ring-edge-subtle`,v;t[13]===_?v=t[14]:(v=X(`flex w-full min-w-0 flex-col gap-0.5 rounded-md px-1.5 py-0.5 text-left`,`text-sm leading-6 text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,_,gk.transition,gk.focusRingPanel),t[13]=_,t[14]=v);let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(cs,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),t[15]=y):y=t[15];let b;t[16]!==n.id||t[17]!==r?(b=r.agentNumber(n.id),t[16]=n.id,t[17]=r,t[18]=b):b=t[18];let x;t[19]===b?x=t[20]:(x=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-disabled`,children:b}),t[19]=b,t[20]=x);let S;t[21]===n.label?S=t[22]:(S=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-fg`,children:n.label}),t[21]=n.label,t[22]=S);let C;t[23]===f?C=t[24]:(C=f?(0,$.jsx)(`span`,{className:`shrink-0 text-[10px] tabular-nums text-fg-disabled`,children:f}):null,t[23]=f,t[24]=C);let w;t[25]!==u||t[26]!==x||t[27]!==S||t[28]!==C?(w=(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[y,u,x,S,C]}),t[25]=u,t[26]=x,t[27]=S,t[28]=C,t[29]=w):w=t[29];let T;t[30]===p?T=t[31]:(T=p?(0,$.jsx)(`span`,{className:`ml-7 truncate text-xs text-fg-subtle`,children:p}):null,t[30]=p,t[31]=T);let E;return t[32]!==w||t[33]!==T||t[34]!==m||t[35]!==h||t[36]!==g||t[37]!==v?(E=(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsxs)(`button`,{type:`button`,onClick:m,"aria-label":h,"aria-current":g,className:v,children:[w,T]})}),t[32]=w,t[33]=T,t[34]=m,t[35]=h,t[36]=g,t[37]=v,t[38]=E):E=t[38],E});function Zq(e){return e+1}var Qq=(0,Z.memo)(function(e){let t=(0,Q.c)(69),{kind:n,reason:r,detailLines:i,logs:a,failedAgents:o,snapshot:s,selectedAgentId:c,onSelectAgent:l,labels:u,className:d}=e,f=n===`validation_error`?u.titleValidation:n===`aborted`?u.titleAbort:n===`timeout`?u.titleTimeout:u.titleRuntime,p;t[0]===r?p=t[1]:(p=r.trim()||`workflow failed`,t[0]=r,t[1]=p);let m=p,h;t[2]===a?h=t[3]:(h=a??[],t[2]=a,t[3]=h);let g=h,_;t[4]===o?_=t[5]:(_=o??[],t[4]=o,t[5]=_);let v=_;s?.agents;let y;t[6]===s?.agents?y=t[7]:(y=s?.agents??[],t[6]=s?.agents,t[7]=y);let b=y,x;if(t[8]!==i||t[9]!==m){x=[];let e=e=>{let t=e.trim();t&&!x.includes(t)&&x.push(t)};e(m);for(let t of i??[])e(t);t[8]=i,t[9]=m,t[10]=x}else x=t[10];let S=x.join(`
|
|
37
|
+
`),C;t[11]!==n||t[12]!==u.recoveryActions?(C=u.recoveryActions[n]??[],t[11]=n,t[12]=u.recoveryActions,t[13]=C):C=t[13];let w=C,T=s?.doneCount??0,E=s?.agentCount??0,D=v.length||s?.errorCount||0,O=!!S||w.length>0||g.length>0||b.length>0,[k,A]=(0,Z.useState)(!1),[j,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)(!1),F=!k,I;t[14]!==S||t[15]!==m?(I=async()=>{await tt(S||m)&&(P(!0),window.setTimeout(()=>P(!1),1500))},t[14]=S,t[15]=m,t[16]=I):I=t[16];let L=I,R=$q[n],z;t[17]===f?z=t[18]:(z=(0,$.jsx)(`span`,{className:`shrink-0 text-sm font-semibold tracking-tight text-fg`,children:f}),t[17]=f,t[18]=z);let B;t[19]===m?B=t[20]:(B=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm text-fg-muted`,children:m}),t[19]=m,t[20]=B);let V;t[21]!==z||t[22]!==B?(V=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[z,B]}),t[21]=z,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==O||t[25]!==k||t[26]!==u.expandHint?(H=k&&O?(0,$.jsx)(`div`,{className:`mt-0.5 text-xs text-fg-subtle`,children:u.expandHint}):null,t[24]=O,t[25]=k,t[26]=u.expandHint,t[27]=H):H=t[27];let ee;t[28]!==V||t[29]!==H?(ee=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[V,H]}),t[28]=V,t[29]=H,t[30]=ee):ee=t[30];let te;t[31]===F?te=t[32]:(te=(0,$.jsx)(`span`,{className:`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,"aria-hidden":!0,children:F?(0,$.jsx)(ls,{className:`size-4`}):(0,$.jsx)(is,{className:`size-4`})}),t[31]=F,t[32]=te);let ne;t[33]!==ee||t[34]!==te||t[35]!==R?(ne=(0,$.jsxs)($.Fragment,{children:[R,ee,te]}),t[33]=ee,t[34]=te,t[35]=R,t[36]=ne):ne=t[36];let U=ne,re;t[37]===d?re=t[38]:(re=X(`min-w-0 rounded-xl border border-edge bg-surface-panel shadow-surface`,d),t[37]=d,t[38]=re);let ie;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(ie=()=>A(eJ),t[39]=ie):ie=t[39];let ae=F?u.collapse:u.expand,oe=F?`rounded-t-xl border-b border-edge-subtle`:`rounded-xl`,se;t[40]===oe?se=t[41]:(se=X(`flex w-full min-w-0 items-center gap-2 px-3 py-2 text-left`,oe,`hover:bg-surface-hover`,gk.transition,gk.focusRingPanel),t[40]=oe,t[41]=se);let ce;t[42]!==U||t[43]!==F||t[44]!==ae||t[45]!==se?(ce=(0,$.jsx)(`button`,{type:`button`,onClick:ie,"aria-expanded":F,"aria-label":ae,className:se,children:U}),t[42]=U,t[43]=F,t[44]=ae,t[45]=se,t[46]=ce):ce=t[46];let le;t[47]!==O||t[48]!==N||t[49]!==S||t[50]!==T||t[51]!==D||t[52]!==L||t[53]!==F||t[54]!==u||t[55]!==g||t[56]!==l||t[57]!==j||t[58]!==w||t[59]!==c||t[60]!==E||t[61]!==m||t[62]!==b?(le=F?(0,$.jsxs)(`div`,{className:`space-y-3 px-3 py-2.5`,children:[(0,$.jsxs)(`section`,{className:`min-w-0 rounded-lg bg-surface-hover/35 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`mb-1 flex min-w-0 items-center justify-between gap-2`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>M(tJ),"aria-expanded":j,className:X(`inline-flex min-w-0 flex-1 items-center gap-1 text-left text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,`hover:text-fg-muted`,gk.transition,gk.focusRingPanel),children:[(0,$.jsx)(`span`,{className:`truncate`,children:u.detailsHeading}),j?(0,$.jsx)(ls,{className:`size-3`}):(0,$.jsx)(is,{className:`size-3`})]}),(0,$.jsxs)(`button`,{type:`button`,onClick:L,className:X(`inline-flex h-6 shrink-0 items-center gap-1 rounded-md px-1.5 text-xs text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),"aria-label":N?u.copyReasonDone:u.copyReason,title:N?u.copyReasonDone:u.copyReason,children:[N?(0,$.jsx)(W,{className:`size-3.5`}):(0,$.jsx)(G,{className:`size-3.5`}),(0,$.jsx)(`span`,{children:N?u.copyReasonDone:u.copyReason})]})]}),j?(0,$.jsx)(`pre`,{className:`max-h-36 min-w-0 overflow-y-auto whitespace-pre-wrap break-words rounded-md bg-surface-panel/60 p-2 font-sans text-sm leading-6 text-fg-muted`,children:S||m}):(0,$.jsx)(`div`,{className:`truncate text-sm text-fg-muted`,title:m,children:m})]}),E>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.impactHeading}),(0,$.jsx)(`div`,{className:`text-sm text-fg-muted`,children:u.impactTpl(T,E,D)})]}):null,w.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.recoveryHeading}),(0,$.jsx)(`ul`,{className:`space-y-0.5 text-sm text-fg-muted`,children:w.map(nJ)})]}):null,b.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.executedAgentsHeading}),(0,$.jsx)(`div`,{className:`space-y-0.5`,children:b.map(e=>(0,$.jsx)(Xq,{agent:e,labels:u.phase,selected:c===e.id,onSelect:l},e.id))})]}):null,g.length>0?(0,$.jsxs)(`section`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:u.logsHeading}),(0,$.jsx)(`pre`,{className:`max-h-48 min-w-0 overflow-y-auto whitespace-pre-wrap break-words rounded-md bg-surface-hover/60 p-2 font-mono text-xs text-fg-muted dark:bg-surface-hover/35`,children:g.join(`
|
|
38
|
+
`)})]}):null,O?null:(0,$.jsx)(`div`,{className:`text-xs text-fg-disabled`,children:u.noExtraDetails})]}):null,t[47]=O,t[48]=N,t[49]=S,t[50]=T,t[51]=D,t[52]=L,t[53]=F,t[54]=u,t[55]=g,t[56]=l,t[57]=j,t[58]=w,t[59]=c,t[60]=E,t[61]=m,t[62]=b,t[63]=le):le=t[63];let ue;return t[64]!==re||t[65]!==ce||t[66]!==le||t[67]!==f?(ue=(0,$.jsxs)(`div`,{className:re,role:`group`,"aria-label":f,children:[ce,le]}),t[64]=re,t[65]=ce,t[66]=le,t[67]=f,t[68]=ue):ue=t[68],ue}),$q={validation_error:(0,$.jsx)(uv,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),aborted:(0,$.jsx)(uc,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),timeout:(0,$.jsx)(aC,{className:`size-4 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),runtime_error:(0,$.jsx)(IC,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0})};function eJ(e){return!e}function tJ(e){return!e}function nJ(e){return(0,$.jsxs)(`li`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:`•`}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:e})]},e)}var rJ=(0,Z.memo)(function(e){let t=(0,Q.c)(49),{rollup:n,isCurrent:r,labels:i,selectedAgentId:a,onSelectAgent:o}=e,[s,c]=(0,Z.useState)(r||n.running>0||n.errored>0||n.skipped>0||!n.complete),l,u;t[0]===r?(l=t[1],u=t[2]):(l=()=>{r&&c(!0)},u=[r],t[0]=r,t[1]=l,t[2]=u),(0,Z.useEffect)(l,u);let d=n.agents.length,f;t[3]!==n.complete||t[4]!==n.running?(f=n.running>0?(0,$.jsx)(je,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}):n.complete?(0,$.jsx)(me,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}):(0,$.jsx)(dc,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),t[3]=n.complete,t[4]=n.running,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>c(iJ),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=X(`flex w-full min-w-0 items-center gap-2 rounded-md p-1 text-left`,`text-sm font-medium text-fg`,`hover:bg-surface-hover`,gk.transition,gk.focusRingPanel),t[7]=h):h=t[7];let g=s&&`rotate-90`,_;t[8]===g?_=t[9]:(_=X(`size-3.5 shrink-0 text-fg-subtle transition-transform duration-150`,g),t[8]=g,t[9]=_);let v;t[10]===_?v=t[11]:(v=(0,$.jsx)(cs,{className:_,"aria-hidden":!0}),t[10]=_,t[11]=v);let y;t[12]===n.title?y=t[13]:(y=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.title}),t[12]=n.title,t[13]=y);let b;t[14]!==i||t[15]!==n.done||t[16]!==d?(b=i.countTpl(n.done,d),t[14]=i,t[15]=n.done,t[16]=d,t[17]=b):b=t[17];let x;t[18]===b?x=t[19]:(x=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-subtle`,children:b}),t[18]=b,t[19]=x);let S;t[20]!==i||t[21]!==n.running?(S=n.running>0?(0,$.jsx)(`span`,{className:`text-accent-fg`,children:i.runningTag(n.running)}):null,t[20]=i,t[21]=n.running,t[22]=S):S=t[22];let C;t[23]!==i||t[24]!==n.errored?(C=n.errored>0?(0,$.jsx)(`span`,{className:`text-rose-600 dark:text-rose-400`,children:i.errorsTag(n.errored)}):null,t[23]=i,t[24]=n.errored,t[25]=C):C=t[25];let w;t[26]!==i||t[27]!==n.skipped?(w=n.skipped>0?(0,$.jsx)(`span`,{children:i.skippedTag(n.skipped)}):null,t[26]=i,t[27]=n.skipped,t[28]=w):w=t[28];let T;t[29]!==S||t[30]!==C||t[31]!==w?(T=(0,$.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs text-fg-disabled`,children:[S,C,w]}),t[29]=S,t[30]=C,t[31]=w,t[32]=T):T=t[32];let E;t[33]!==s||t[34]!==p||t[35]!==x||t[36]!==T||t[37]!==v||t[38]!==y?(E=(0,$.jsxs)(`button`,{type:`button`,onClick:m,"aria-expanded":s,className:h,children:[v,p,y,x,T]}),t[33]=s,t[34]=p,t[35]=x,t[36]=T,t[37]=v,t[38]=y,t[39]=E):E=t[39];let D;t[40]!==i||t[41]!==o||t[42]!==s||t[43]!==n.agents||t[44]!==a?(D=s?(0,$.jsxs)(`div`,{className:`ml-4 mt-0.5 space-y-0.5 border-l border-edge-subtle pl-2`,children:[n.agents.map(e=>(0,$.jsx)(Xq,{agent:e,labels:i,selected:a===e.id,onSelect:o},e.id)),n.agents.length===0?(0,$.jsx)(`div`,{className:`px-1.5 py-0.5 text-xs text-fg-disabled`,children:`…`}):null]}):null,t[40]=i,t[41]=o,t[42]=s,t[43]=n.agents,t[44]=a,t[45]=D):D=t[45];let O;return t[46]!==E||t[47]!==D?(O=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[E,D]}),t[46]=E,t[47]=D,t[48]=O):O=t[48],O});function iJ(e){return!e}function aJ(e){let t=(0,Q.c)(44),{snapshot:n,labels:r,logsExpanded:i,onToggleLogs:a,selectedAgentId:o,onSelectAgent:s}=e,c;t[0]===n.agents?c=t[1]:(c=n.agents.filter(lJ),t[0]=n.agents,t[1]=c);let l=c,u;t[2]===n.agents?u=t[3]:(u=n.agents.filter(cJ),t[2]=n.agents,t[3]=u);let d=u,f;t[4]===n.agents?f=t[5]:(f=n.agents.filter(sJ),t[4]=n.agents,t[5]=f);let p=f,m;t[6]===n.agents?m=t[7]:(m=n.agents.filter(oJ),t[6]=n.agents,t[7]=m);let h=m,g;t[8]!==r.phase||t[9]!==r.runningAgentsHeading||t[10]!==s||t[11]!==l||t[12]!==o?(g=(0,$.jsx)(uJ,{heading:r.runningAgentsHeading,agents:l,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[8]=r.phase,t[9]=r.runningAgentsHeading,t[10]=s,t[11]=l,t[12]=o,t[13]=g):g=t[13];let _;t[14]!==d||t[15]!==r.failedAgentsHeading||t[16]!==r.phase||t[17]!==s||t[18]!==o?(_=(0,$.jsx)(uJ,{heading:r.failedAgentsHeading,agents:d,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[14]=d,t[15]=r.failedAgentsHeading,t[16]=r.phase,t[17]=s,t[18]=o,t[19]=_):_=t[19];let v;t[20]!==p||t[21]!==r.completedAgentsHeading||t[22]!==r.phase||t[23]!==s||t[24]!==o?(v=(0,$.jsx)(uJ,{heading:r.completedAgentsHeading,agents:p,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[20]=p,t[21]=r.completedAgentsHeading,t[22]=r.phase,t[23]=s,t[24]=o,t[25]=v):v=t[25];let y;t[26]!==r.phase||t[27]!==r.queuedAgentsHeading||t[28]!==s||t[29]!==h||t[30]!==o?(y=(0,$.jsx)(uJ,{heading:r.queuedAgentsHeading,agents:h,labels:r.phase,selectedAgentId:o,onSelectAgent:s}),t[26]=r.phase,t[27]=r.queuedAgentsHeading,t[28]=s,t[29]=h,t[30]=o,t[31]=y):y=t[31];let b;t[32]!==r.recentLogsHeading||t[33]!==r.showAllLogs||t[34]!==i||t[35]!==a||t[36]!==n.logs?(b=(0,$.jsx)(dJ,{recentLogs:n.logs,recentLogsHeading:r.recentLogsHeading,showAllLogsLabel:r.showAllLogs,logsExpanded:i,onToggleLogs:a}),t[32]=r.recentLogsHeading,t[33]=r.showAllLogs,t[34]=i,t[35]=a,t[36]=n.logs,t[37]=b):b=t[37];let x;return t[38]!==g||t[39]!==_||t[40]!==v||t[41]!==y||t[42]!==b?(x=(0,$.jsxs)(`div`,{className:`space-y-3`,children:[g,_,v,y,b]}),t[38]=g,t[39]=_,t[40]=v,t[41]=y,t[42]=b,t[43]=x):x=t[43],x}function oJ(e){return e.status===`queued`}function sJ(e){return e.status===`done`}function cJ(e){return e.status===`error`||e.status===`skipped`}function lJ(e){return e.status===`running`}function uJ(e){let t=(0,Q.c)(16),{heading:n,agents:r,labels:i,selectedAgentId:a,onSelectAgent:o}=e;if(r.length===0)return null;let s;t[0]===n?s=t[1]:(s=(0,$.jsx)(`div`,{className:`mb-1 text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[0]=n,t[1]=s);let c;if(t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==a){let e;t[7]!==i||t[8]!==o||t[9]!==a?(e=e=>(0,$.jsx)(Xq,{agent:e,labels:i,selected:a===e.id,onSelect:o},e.id),t[7]=i,t[8]=o,t[9]=a,t[10]=e):e=t[10],c=r.map(e),t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c}else c=t[6];let l;t[11]===c?l=t[12]:(l=(0,$.jsx)(`div`,{className:`space-y-0.5`,children:c}),t[11]=c,t[12]=l);let u;return t[13]!==s||t[14]!==l?(u=(0,$.jsxs)(`section`,{className:`min-w-0`,children:[s,l]}),t[13]=s,t[14]=l,t[15]=u):u=t[15],u}function dJ(e){let t=(0,Q.c)(19),{recentLogs:n,recentLogsHeading:r,showAllLogsLabel:i,logsExpanded:a,onToggleLogs:o}=e,s;t[0]!==a||t[1]!==n?(s=a||n.length<=2?n:n.slice(-2),t[0]=a,t[1]=n,t[2]=s):s=t[2];let c=s;if(n.length===0)return null;let l;t[3]===r?l=t[4]:(l=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:r}),t[3]=r,t[4]=l);let u;t[5]!==o||t[6]!==n.length||t[7]!==i?(u=n.length>2?(0,$.jsx)(`button`,{type:`button`,onClick:o,className:`text-[10px] text-accent-fg hover:underline`,children:i}):null,t[5]=o,t[6]=n.length,t[7]=i,t[8]=u):u=t[8];let d;t[9]!==l||t[10]!==u?(d=(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11];let f;t[12]===c?f=t[13]:(f=c.map(fJ),t[12]=c,t[13]=f);let p;t[14]===f?p=t[15]:(p=(0,$.jsx)(`div`,{className:`space-y-0.5`,children:f}),t[14]=f,t[15]=p);let m;return t[16]!==d||t[17]!==p?(m=(0,$.jsxs)(`div`,{className:`border-t border-edge-subtle pt-2`,children:[d,p]}),t[16]=d,t[17]=p,t[18]=m):m=t[18],m}function fJ(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}function pJ(e){let t=(0,Q.c)(29),{rollup:n,currentPhase:r,labels:i,recentLogs:a,recentLogsHeading:o,showAllLogsLabel:s,logsExpanded:c,onToggleLogs:l,selectedAgentId:u,onSelectAgent:d}=e,f;t[0]!==c||t[1]!==a?(f=c||a.length<=2?a:a.slice(-2),t[0]=c,t[1]=a,t[2]=f):f=t[2];let p=f,m;if(t[3]!==r||t[4]!==i||t[5]!==d||t[6]!==n.phases||t[7]!==u){let e;t[9]!==r||t[10]!==i||t[11]!==d||t[12]!==u?(e=e=>(0,$.jsx)(rJ,{rollup:e,isCurrent:e.title===r,labels:i,selectedAgentId:u,onSelectAgent:d},e.title),t[9]=r,t[10]=i,t[11]=d,t[12]=u,t[13]=e):e=t[13],m=n.phases.map(e),t[3]=r,t[4]=i,t[5]=d,t[6]=n.phases,t[7]=u,t[8]=m}else m=t[8];let h;t[14]!==i||t[15]!==d||t[16]!==n.unphased||t[17]!==u?(h=n.unphased?(0,$.jsx)(rJ,{rollup:n.unphased,isCurrent:!1,labels:i,selectedAgentId:u,onSelectAgent:d}):null,t[14]=i,t[15]=d,t[16]=n.unphased,t[17]=u,t[18]=h):h=t[18];let g;t[19]!==l||t[20]!==a.length||t[21]!==o||t[22]!==s||t[23]!==p?(g=a.length>0?(0,$.jsxs)(`div`,{className:`mt-2 border-t border-edge-subtle pt-2`,children:[(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:o}),a.length>2?(0,$.jsx)(`button`,{type:`button`,onClick:l,className:`text-[10px] text-accent-fg hover:underline`,children:s}):null]}),(0,$.jsx)(`div`,{className:`space-y-0.5`,children:p.map(mJ)})]}):null,t[19]=l,t[20]=a.length,t[21]=o,t[22]=s,t[23]=p,t[24]=g):g=t[24];let _;return t[25]!==m||t[26]!==h||t[27]!==g?(_=(0,$.jsxs)(`div`,{className:`space-y-1`,children:[m,h,g]}),t[25]=m,t[26]=h,t[27]=g,t[28]=_):_=t[28],_}function mJ(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}var hJ=5,gJ=(0,Z.memo)(function(e){let t=(0,Q.c)(17),{result:n,labels:r}=e;if(!n){let e;return t[0]===r.emptyResult?e=t[1]:(e=(0,$.jsx)(`div`,{className:`text-sm text-fg-disabled`,children:r.emptyResult}),t[0]=r.emptyResult,t[1]=e),e}let i;t[2]===n.title?i=t[3]:(i=n.title?(0,$.jsx)(`h3`,{className:`text-base font-semibold text-fg`,children:n.title}):null,t[2]=n.title,t[3]=i);let a;t[4]===n.summary?a=t[5]:(a=(0,$.jsx)(ke,{content:n.summary,className:`workflow-result-markdown`}),t[4]=n.summary,t[5]=a);let o;t[6]===n.sections?o=t[7]:(o=n.sections??[],t[6]=n.sections,t[7]=o);let s;if(t[8]!==r||t[9]!==o){let e;t[11]===r?e=t[12]:(e=(e,t)=>(0,$.jsx)(_J,{section:e,labels:r},`${e.kind}:${e.title}:${t}`),t[11]=r,t[12]=e),s=o.map(e),t[8]=r,t[9]=o,t[10]=s}else s=t[10];let c;return t[13]!==i||t[14]!==a||t[15]!==s?(c=(0,$.jsxs)(`article`,{className:`min-w-0 space-y-6`,children:[i,a,s]}),t[13]=i,t[14]=a,t[15]=s,t[16]=c):c=t[16],c});function _J(e){let t=(0,Q.c)(23),{section:n,labels:r}=e;if(n.kind===`text`){let e;return t[0]!==n.content||t[1]!==n.title?(e=(0,$.jsx)(vJ,{heading:n.title,text:n.content}),t[0]=n.content,t[1]=n.title,t[2]=e):e=t[2],e}if(n.kind===`findings`){let e;t[3]!==r||t[4]!==n.items||t[5]!==n.title?(e=n.title||r.topFindingsHeading(n.items.length),t[3]=r,t[4]=n.items,t[5]=n.title,t[6]=e):e=t[6];let i;return t[7]!==r.moreSuffix||t[8]!==n.items||t[9]!==e?(i=(0,$.jsx)(xJ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[7]=r.moreSuffix,t[8]=n.items,t[9]=e,t[10]=i):i=t[10],i}if(n.kind===`risks`){let e;t[11]!==r||t[12]!==n.items||t[13]!==n.title?(e=n.title||r.topRisksHeading(n.items.length),t[11]=r,t[12]=n.items,t[13]=n.title,t[14]=e):e=t[14];let i;return t[15]!==r.moreSuffix||t[16]!==n.items||t[17]!==e?(i=(0,$.jsx)(CJ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[15]=r.moreSuffix,t[16]=n.items,t[17]=e,t[18]=i):i=t[18],i}if(n.kind===`questions`){let e=n.title||r.openQuestionsHeading,i;return t[19]!==r.moreSuffix||t[20]!==n.items||t[21]!==e?(i=(0,$.jsx)(yJ,{heading:e,items:n.items,moreSuffix:r.moreSuffix}),t[19]=r.moreSuffix,t[20]=n.items,t[21]=e,t[22]=i):i=t[22],i}}function vJ(e){let t=(0,Q.c)(7),{heading:n,text:r}=e,i;t[0]===n?i=t[1]:(i=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,$.jsx)(ke,{content:r,compact:!0,className:`mt-2`}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsxs)(`section`,{className:`min-w-0`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function yJ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,hJ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-1 space-y-1 text-sm text-fg-muted`,o=l.map(bJ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-1 pl-4 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function bJ(e,t){return(0,$.jsxs)(`li`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:`-`}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:e})]},`${e}:${t}`)}function xJ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,hJ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-2 space-y-2`,o=l.map(SJ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-2 pl-1 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function SJ(e,t){return(0,$.jsx)(TJ,{item:e},`${e.title}:${e.file??``}:${t}`)}function CJ(e){let t=(0,Q.c)(21),{heading:n,items:r,moreSuffix:i}=e,a,o,s,c,l;t[0]!==n||t[1]!==r?(l=r.slice(0,hJ),s=`min-w-0`,t[7]===n?c=t[8]:(c=(0,$.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wide text-fg-subtle`,children:n}),t[7]=n,t[8]=c),a=`mt-2 space-y-2`,o=l.map(wJ),t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l):(a=t[2],o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[9]!==a||t[10]!==o?(u=(0,$.jsx)(`ul`,{className:a,children:o}),t[9]=a,t[10]=o,t[11]=u):u=t[11];let d;t[12]!==r.length||t[13]!==i||t[14]!==l.length?(d=r.length>l.length?(0,$.jsx)(`div`,{className:`mt-2 pl-1 text-xs text-fg-disabled`,children:i(r.length-l.length)}):null,t[12]=r.length,t[13]=i,t[14]=l.length,t[15]=d):d=t[15];let f;return t[16]!==s||t[17]!==c||t[18]!==u||t[19]!==d?(f=(0,$.jsxs)(`section`,{className:s,children:[c,u,d]}),t[16]=s,t[17]=c,t[18]=u,t[19]=d,t[20]=f):f=t[20],f}function wJ(e,t){return(0,$.jsx)(TJ,{item:{title:e.title,severity:e.severity,detail:e.impact,recommendation:e.mitigation}},`${e.title}:${t}`)}function TJ(e){let t=(0,Q.c)(19),{item:n}=e,r=Hq(n.severity),i=r===`high`?`bg-rose-500/15 text-rose-700 dark:text-rose-300`:r===`med`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:`bg-surface-hover text-fg-muted`,a=n.file?n.line==null?n.file:`${n.file}:${n.line}`:``,o;t[0]!==n.severity||t[1]!==i?(o=n.severity?(0,$.jsx)(`span`,{className:X(`rounded px-1.5 py-0.5 text-[10px] font-medium uppercase`,i),children:n.severity}):null,t[0]=n.severity,t[1]=i,t[2]=o):o=t[2];let s;t[3]===n.title?s=t[4]:(s=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-words text-sm font-medium text-fg`,children:n.title}),t[3]=n.title,t[4]=s);let c;t[5]!==o||t[6]!==s?(c=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===a?l=t[9]:(l=a?(0,$.jsx)(`div`,{className:`mt-1 break-all font-mono text-xs text-fg-subtle`,children:a}):null,t[8]=a,t[9]=l);let u;t[10]===n.detail?u=t[11]:(u=n.detail?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-5 text-fg-muted`,children:n.detail}):null,t[10]=n.detail,t[11]=u);let d;t[12]===n.recommendation?d=t[13]:(d=n.recommendation?(0,$.jsx)(`div`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-5 text-fg-muted`,children:n.recommendation}):null,t[12]=n.recommendation,t[13]=d);let f;return t[14]!==c||t[15]!==l||t[16]!==u||t[17]!==d?(f=(0,$.jsxs)(`li`,{className:`min-w-0 rounded-lg border border-edge-subtle bg-surface-base/45 px-3 py-2`,children:[c,l,u,d]}),t[14]=c,t[15]=l,t[16]=u,t[17]=d,t[18]=f):f=t[18],f}function EJ(e){return e?e.toLowerCase().startsWith(`zh`)?`zh`:`en`:`default`}var DJ={default:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}),en:new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`}),zh:new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`})},OJ={default:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}),en:new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`}),zh:new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`})},kJ={default:new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),en:new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),zh:new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})},AJ={default:new Intl.DateTimeFormat(void 0,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),en:new Intl.DateTimeFormat(`en-US`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),zh:new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})},jJ={en:new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`}),zh:new Intl.RelativeTimeFormat(`zh-CN`,{numeric:`auto`})};function MJ(e,t){return DJ[EJ(t)].format(e)}function NJ(e,t){return OJ[EJ(t)].format(e)}function PJ(e,t){return kJ[EJ(t)].format(e)}function FJ(e,t){return AJ[EJ(t)].format(e)}function IJ(e,t,n){return jJ[EJ(n)===`zh`?`zh`:`en`].format(e,t)}function LJ(e){return e===`zh`?`zh`:`en`}function RJ(e,t){let n=LJ(t),r=n===`en`?void 0:e.metadata.i18n?.[n],i=r?.examplePrompts&&r.examplePrompts.length>0?r.examplePrompts:e.metadata.examplePrompts??[];return{description:BJ(r?.description,e.description),whenToUse:VJ(r?.whenToUse,e.metadata.whenToUse),examplePrompts:i}}function zJ(e){return[e.name,e.title,e.description,e.metadata.whenToUse??``,...(e.metadata.examplePrompts??[]).map(e=>e.text),...Object.values(e.metadata.i18n??{}).flatMap(e=>[e.description??``,e.whenToUse??``,...(e.examplePrompts??[]).map(e=>e.text)]),...e.metadata.tags].join(` `).toLowerCase()}function BJ(e,t){return e?.trim()||t}function VJ(e,t){return e?.trim()||t?.trim()||void 0}function HJ(e,t,n){if(e.field===`goal`){t(e.text);return}n(t=>({...t,[e.field]:e.text}))}var UJ=[`all`,`code-review`,`planning`,`research`,`writing`,`productivity`];new Set(UJ);var WJ=[`all`,`builtin`,`user`];new Set(WJ);var GJ=`agent`,KJ=`layout`,qJ=`status`,JJ=`trigger`,YJ=new Set([`runs`,`library`]),XJ=new Set([`list`,`board`]),ZJ=new Set([`all`,`attention`,`running`,`queued`,`succeeded`]);new Set([`result`,`process`,`diagnostics`,`artifacts`,`debug`]);var QJ={"code-review":[`code-review`,`pr`,`release`],planning:[`planning`,`implementation`,`architecture`,`decision`,`review`],research:[`research`,`investigation`,`debug`,`incident`,`troubleshooting`],writing:[`writing`,`content`,`communication`,`email`,`document`],productivity:[`productivity`,`meeting`,`comparison`,`brainstorm`,`decision-making`]},$J={research:[{key:`question`,labelKey:`argQuestion`,placeholderKey:`argQuestionPlaceholder`,required:!0,multiline:!0}],multi_perspective_review:[{key:`target`,labelKey:`argTarget`,placeholderKey:`argTargetPlaceholder`,multiline:!0}],pr_review:[{key:`target`,labelKey:`argDiff`,placeholderKey:`argDiffPlaceholder`,multiline:!0}],debug_incident:[{key:`error`,labelKey:`argError`,placeholderKey:`argErrorPlaceholder`,required:!0,multiline:!0},{key:`context`,labelKey:`argContext`,placeholderKey:`argContextPlaceholder`,multiline:!0}],implementation_plan:[{key:`request`,labelKey:`argRequest`,placeholderKey:`argRequestPlaceholder`,required:!0,multiline:!0},{key:`scope`,labelKey:`argScope`,placeholderKey:`argScopePlaceholder`}],release_check:[{key:`target`,labelKey:`argTarget`,placeholderKey:`argReleaseTargetPlaceholder`,multiline:!0}],content_draft:[{key:`topic`,labelKey:`argTopic`,placeholderKey:`argTopicPlaceholder`,required:!0,multiline:!0},{key:`audience`,labelKey:`argAudience`,placeholderKey:`argAudiencePlaceholder`},{key:`format`,labelKey:`argFormat`,placeholderKey:`argFormatPlaceholder`}],decision_compare:[{key:`question`,labelKey:`argDecisionQuestion`,placeholderKey:`argDecisionQuestionPlaceholder`,required:!0,multiline:!0},{key:`options`,labelKey:`argOptions`,placeholderKey:`argOptionsPlaceholder`,multiline:!0},{key:`criteria`,labelKey:`argCriteria`,placeholderKey:`argCriteriaPlaceholder`,multiline:!0}],meeting_prep:[{key:`meeting_topic`,labelKey:`argMeetingTopic`,placeholderKey:`argMeetingTopicPlaceholder`,required:!0,multiline:!0},{key:`attendees`,labelKey:`argAttendees`,placeholderKey:`argAttendeesPlaceholder`},{key:`goal`,labelKey:`argMeetingGoal`,placeholderKey:`argMeetingGoalPlaceholder`,multiline:!0}],weekly_review:[{key:`wins`,labelKey:`argWins`,placeholderKey:`argWinsPlaceholder`,required:!0,multiline:!0},{key:`blockers`,labelKey:`argBlockers`,placeholderKey:`argBlockersPlaceholder`,multiline:!0},{key:`carryover`,labelKey:`argCarryover`,placeholderKey:`argCarryoverPlaceholder`,multiline:!0}],client_proposal:[{key:`client_brief`,labelKey:`argClientBrief`,placeholderKey:`argClientBriefPlaceholder`,required:!0,multiline:!0},{key:`offer`,labelKey:`argOffer`,placeholderKey:`argOfferPlaceholder`,multiline:!0},{key:`budget_hint`,labelKey:`argBudgetHint`,placeholderKey:`argBudgetHintPlaceholder`}],content_repurpose:[{key:`source`,labelKey:`argSource`,placeholderKey:`argSourcePlaceholder`,required:!0,multiline:!0},{key:`platforms`,labelKey:`argPlatforms`,placeholderKey:`argPlatformsPlaceholder`,multiline:!0}],competitor_scan:[{key:`market`,labelKey:`argMarket`,placeholderKey:`argMarketPlaceholder`,required:!0,multiline:!0},{key:`competitors`,labelKey:`argCompetitors`,placeholderKey:`argCompetitorsPlaceholder`,multiline:!0},{key:`focus`,labelKey:`argFocus`,placeholderKey:`argFocusPlaceholder`}],offer_design:[{key:`skills`,labelKey:`argSkills`,placeholderKey:`argSkillsPlaceholder`,required:!0,multiline:!0},{key:`audience`,labelKey:`argOfferAudience`,placeholderKey:`argOfferAudiencePlaceholder`,multiline:!0},{key:`constraints`,labelKey:`argConstraints`,placeholderKey:`argConstraintsPlaceholder`,multiline:!0}],inbox_triage:[{key:`inbox`,labelKey:`argInbox`,placeholderKey:`argInboxPlaceholder`,required:!0,multiline:!0},{key:`priorities`,labelKey:`argPriorities`,placeholderKey:`argPrioritiesPlaceholder`,multiline:!0}]},eY=new Set([`queued`,`running`]);function tY(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function nY(e,t){return e?FJ(e,t):`—`}function rY(e){if(!e||!Number.isFinite(e))return`—`;let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;if(n<60)return r?`${n}m ${r}s`:`${n}m`;let i=Math.floor(n/60),a=n%60;return a?`${i}h ${a}m`:`${i}h`}function iY(e){return e===`succeeded`?`bg-emerald-500/15 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`bg-red-500/15 text-red-700 dark:text-red-300`:e===`cancelled`?`bg-amber-500/15 text-amber-700 dark:text-amber-300`:`bg-accent-soft text-accent-fg`}function aY(e,t){if(t===`all`)return!0;let n=e.metadata.tags.map(e=>e.toLowerCase());return QJ[t].some(e=>n.includes(e))}function oY(e,t){return t===`all`?!0:t===`builtin`?e.metadata.builtIn:e.metadata.source===`user`}function sY(e,t,n,r){let i=t.trim().toLowerCase();return e.filter(e=>!aY(e,n)||!oY(e,r)?!1:i?zJ(e).includes(i):!0)}function cY(e){let t=[e.summary.trim()];for(let n of e.sections??[]){let e=n.title.trim()?`## ${n.title.trim()}`:``;if(n.kind===`text`){t.push([e,n.content.trim()].filter(Boolean).join(`
|
|
39
|
+
|
|
40
|
+
`));continue}if(n.kind===`questions`){t.push([e,...n.items.map(e=>`- ${e}`)].filter(Boolean).join(`
|
|
41
|
+
`));continue}if(n.kind===`findings`){t.push([e,...n.items.map(e=>[`### ${e.title}`,e.severity?`**Severity:** ${e.severity}`:``,e.file?`**Location:** \`${e.file}${e.line==null?``:`:${e.line}`}\``:``,e.detail??``,e.recommendation??``].filter(Boolean).join(`
|
|
42
|
+
|
|
43
|
+
`))].filter(Boolean).join(`
|
|
44
|
+
|
|
45
|
+
`));continue}t.push([e,...n.items.map(e=>[`### ${e.title}`,e.severity?`**Severity:** ${e.severity}`:``,e.impact??``,e.mitigation??``].filter(Boolean).join(`
|
|
46
|
+
|
|
47
|
+
`))].filter(Boolean).join(`
|
|
48
|
+
|
|
49
|
+
`))}return t.filter(Boolean).join(`
|
|
50
|
+
|
|
51
|
+
`)}function lY(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:typeof e.summary==`string`}function uY(e){return lY(e)?e:null}function dY(e){let t=e.run.metadata?.sessionKey?.trim();return t&&/^agent:[^:]+:webchat:/i.test(t)?t:null}function fY(e,t){let n=`/chat/${encodeURIComponent(e)}`,r=t?.trim();return r?`${n}?${new URLSearchParams({draft:r}).toString()}`:n}function pY(e,t){let n=e.trim(),r=new URLSearchParams({run:n}),i=t?.ownerAgentId?.trim();return i&&r.set(`agent`,i),`/workflows?${r.toString()}`}function mY(e){let t=e.source;return t&&typeof t==`object`&&`kind`in t&&typeof t.kind==`string`?t.kind:e.metadata?.triggerSource?.trim()||`unknown`}function hY(e,t){let n=t.trim();return!n||n===`all`?!0:mY(e)===n}function gY(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.trim();e&&(t[n]=e)}return Object.keys(t).length>0?t:void 0}function _Y(e){let t=[];e.run.error&&t.push({key:`run-error`,kind:`run_error`,severity:e.run.error.recoverable?`warning`:`error`,code:e.run.error.code,message:e.run.error.message,detail:e.run.error.detail});for(let n of e.agents){n.status===`error`?t.push({key:`agent-error:${n.id}`,kind:`agent_error`,severity:`error`,agentId:n.id,agentLabel:n.label,message:n.error,detail:n.resultPreview}):n.status===`skipped`&&t.push({key:`agent-skipped:${n.id}`,kind:`agent_skipped`,severity:`warning`,agentId:n.id,agentLabel:n.label,message:n.error});for(let e of n.steps??[])e.status===`error`&&t.push({key:`step-error:${n.id}:${e.id}`,kind:`step_error`,severity:`error`,agentId:n.id,agentLabel:n.label,stepId:e.id,stepLabel:e.label,message:e.error,detail:e.resultPreview??e.detail})}return t}var vY=(0,Z.memo)(function({block:e,startedAt:t,labels:n,className:r}){let i=kq(e),a=(0,Z.useMemo)(()=>Dq(e),[e]),o=p(),s=i===`failed`?Fq(e):null,c=i===`failed`?Iq(e):``,[l,u]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{i===`completed`&&u(!0),(i===`running`||i===`failed`)&&u(!1)},[i]);let[d,f]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=(0,Z.useMemo)(()=>m==null||!a?null:a.agents.find(e=>e.id===m)??null,[m,a]),_=(0,Z.useCallback)(e=>{h(e.id)},[]),v=(0,Z.useCallback)(()=>{h(null)},[]);(0,Z.useEffect)(()=>{h(null)},[a?.runId,i]);let[,y]=(0,Z.useState)(0);(0,Z.useEffect)(()=>{if(i!==`running`)return;let e=window.setInterval(()=>y(e=>e+1),1e3);return()=>window.clearInterval(e)},[i]);let b=(0,Z.useMemo)(()=>i===`running`?t?zq(Date.now()-t):``:a?.durationMs==null?``:zq(a.durationMs),[i,t,a?.durationMs]),[x,S]=(0,Z.useState)(!1),C=(0,Z.useCallback)(async()=>{!a||!lY(a.result)||await tt(cY(a.result))&&(S(!0),window.setTimeout(()=>S(!1),1500))},[a]),w=(0,Z.useCallback)(()=>{let e=a?.runId?.trim();if(e){o(pY(e));return}let t=a?.name?.trim();t&&o(`/workflows?def=${encodeURIComponent(t)}`)},[o,a?.name,a?.runId]),T=(0,Z.useCallback)(()=>{let e=a?.name?.trim();e&&o(`/workflows?def=${encodeURIComponent(e)}©=1`)},[o,a?.name]),E=(0,Z.useCallback)(e=>{let t=a?.runId?.trim();if(!t)return;let n=e.target;n instanceof Element&&n.closest(`button,a,input,textarea,select,summary,[role="button"],[data-workflow-inline-detail]`)||o(pY(t))},[o,a?.runId]);if(Aq(e)||i===`completed`&&!a){let t=s??Fq(e),i=jq(e),a=i.snapshot,o=m==null||!a?null:a.agents.find(e=>e.id===m)??null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qq,{kind:t,reason:i.headline||c||`workflow failed`,detailLines:i.detailLines,logs:i.logs,failedAgents:i.failedAgents,snapshot:a,selectedAgentId:m,onSelectAgent:_,labels:n.error,className:r}),(0,$.jsx)(Gq,{agent:o,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})}let D=a?.agentCount??0,O=a?.doneCount??0,k=a?Lq(a):{phases:[],unphased:null},A=i===`running`&&a?n.currentProgressTpl(a.currentPhase,a.runningCount,a.doneCount,a.agentCount):void 0,j=(0,$.jsx)($.Fragment,{children:i===`completed`&&a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,onClick:C,className:X(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),"aria-label":x?n.copyDoneAria:n.copyAria,title:x?n.copyDoneAria:n.copyAria,children:x?(0,$.jsx)(W,{className:`size-4 text-emerald-600 dark:text-emerald-400`}):(0,$.jsx)(G,{className:`size-4`})}),a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:T,className:X(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),"aria-label":n.saveAria,title:n.saveTitle,children:(0,$.jsx)(Rv,{className:`size-4`})}):null,a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:w,className:X(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.focusRingPanel),"aria-label":n.openInWorkflowsAria,title:n.openInWorkflowsTitle,children:(0,$.jsx)(fm,{className:`size-4`})}):null]}):null});return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{onClick:E,className:X(`min-w-0 rounded-xl border border-edge bg-surface-panel shadow-surface`,a?.runId&&`cursor-pointer hover:bg-surface-hover/35`,r),role:`group`,"aria-label":a?`Workflow ${a.name}`:`Workflow`,children:[(0,$.jsx)(Jq,{name:a?.name??e.name,description:a?.description,status:i,doneCount:O,totalCount:D,durationText:b,metaText:A,collapsed:l,onToggleCollapsed:()=>u(e=>!e),actions:j,labels:n.header}),l?null:(0,$.jsxs)(`div`,{className:`space-y-3 px-3 py-2.5`,children:[i===`completed`&&a?(0,$.jsx)(gJ,{result:lY(a.result)?a.result:null,labels:n.result}):null,i===`running`&&a?(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-base/45 px-3 py-2.5`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:a.currentPhase??n.live.activeFallback}),(0,$.jsx)(`span`,{className:`shrink-0 tabular-nums`,children:n.live.progress(a.doneCount,a.agentCount)})]}),a.agentCount>0?(0,$.jsx)(`div`,{className:`mt-2 h-1.5 overflow-hidden rounded-full bg-surface-hover`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-accent transition-all`,style:{width:`${Math.round(a.doneCount/a.agentCount*100)}%`}})}):null,(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:X(`rounded-md px-2 py-1 text-xs font-medium text-accent-fg hover:bg-accent-soft`,gk.focusRingPanel),onClick:w,children:n.live.details})})]}):null,i===`running`&&!a?(0,$.jsxs)(`div`,{className:`py-1 text-sm text-fg-subtle`,children:[(0,$.jsx)(`span`,{className:`inline-block size-2 animate-pulse rounded-full bg-accent align-middle`}),(0,$.jsx)(`span`,{className:`ml-2 align-middle`,children:n.viewSubagentsHeading})]}):null,i===`completed`&&a&&(k.phases.length>0||k.unphased)?(0,$.jsxs)(`details`,{className:`group`,open:d,onToggle:e=>f(e.target.open),children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-xs text-fg-subtle underline-offset-2 hover:text-fg-muted`,children:n.viewSubagentsHeading}),(0,$.jsxs)(`div`,{className:`mt-2`,children:[(0,$.jsx)(pJ,{rollup:k,currentPhase:void 0,labels:n.phase,recentLogs:[],recentLogsHeading:n.recentLogsHeading,showAllLogsLabel:n.showAllLogs,logsExpanded:!1,onToggleLogs:()=>{},selectedAgentId:m,onSelectAgent:_}),(0,$.jsx)(Gq,{agent:g,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})]}):null]})]})})}),yY=(0,Z.memo)(function(e){let t=(0,Q.c)(3),{active:n,failed:r}=e;if(n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(je,{className:`mt-0.5 size-4 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}),t[0]=e):e=t[0],e}if(r){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(uc,{className:`mt-0.5 size-4 shrink-0 text-red-600 dark:text-red-400`,"aria-hidden":!0}),t[1]=e):e=t[1],e}let i;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(me,{className:`mt-0.5 size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),t[2]=i):i=t[2],i});function bY(e){let t=(0,Q.c)(7),{kind:n}=e;switch(n){case`webSearch`:case`memorySearch`:case`codeSearch`:case`search`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Hv,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[0]=e):e=t[0],e}case`runCommand`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(px,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[1]=e):e=t[1],e}case`readFile`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Hi,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[2]=e):e=t[2],e}case`editFile`:case`writeFile`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(lf,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[3]=e):e=t[3],e}case`listDir`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Tp,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[4]=e):e=t[4],e}case`openUrl`:case`fetchUrl`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(cd,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[5]=e):e=t[5],e}case`other`:{let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(me,{className:`size-4 text-fg-muted`,"aria-hidden":!0}),t[6]=e):e=t[6],e}}}var xY=(0,Z.memo)(function(e){let t=(0,Q.c)(14),{active:n,startedAt:r,frozenMs:i,language:a,className:o}=e,[,s]=(0,Z.useState)(0),c;t[0]!==n||t[1]!==s?(c=()=>{if(!n)return;let e=window.setInterval(()=>s(kY),500);return()=>window.clearInterval(e)},t[0]=n,t[1]=s,t[2]=c):c=t[2];let l;t[3]===n?l=t[4]:(l=[n],t[3]=n,t[4]=l),(0,Z.useEffect)(c,l);let u=n&&r!=null?Math.max(0,Date.now()-r):0,d;t[5]!==n||t[6]!==u||t[7]!==i||t[8]!==a||t[9]!==r?(d=n&&r!=null?VK(u,a):i==null?null:VK(i,a),t[5]=n,t[6]=u,t[7]=i,t[8]=a,t[9]=r,t[10]=d):d=t[10];let f=d;if(!f)return null;let p;return t[11]!==o||t[12]!==f?(p=(0,$.jsx)(`span`,{className:o,children:f}),t[11]=o,t[12]=f,t[13]=p):p=t[13],p});function SY(e){let t=(0,Q.c)(83),{activity:n,toolLabels:r,stepLabels:i,clusterLabels:a,cardLabels:o,sessionKey:s,workflowOptions:c}=e,l=ct(CY),u=n.blocks,d=u.length,f=n.active,p=n.failedCount,m=n.expandedByDefault,[h,g]=(0,Z.useState)(null),_=h??m,v=n.startedAt??null,y=n.durationMs??null,b;bb0:{if(f){b=``;break bb0}let e;t[0]!==a.done||t[1]!==a.join||t[2]!==l||t[3]!==d||t[4]!==i||t[5]!==u?(e=iK(u,a.done,a.join,l,rK(d,i)),t[0]=a.done,t[1]=a.join,t[2]=l,t[3]=d,t[4]=i,t[5]=u,t[6]=e):e=t[6];let r=e;if(p>0){let e;if(t[7]!==p||t[8]!==i.activityFailedCount){let n;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(n=/\{\{count\}\}/g,t[10]=n):n=t[10],e=i.activityFailedCount.replace(n,String(p)),t[7]=p,t[8]=i.activityFailedCount,t[9]=e}else e=t[9];b=e;break bb0}b=n.hasTool?r:i.activityAnalysisComplete}let x=b,S;bb1:{if(!f){S=null;break bb1}let e;t[11]!==a.ing||t[12]!==u?(e=aK(u,a.ing),t[11]=a.ing,t[12]=u,t[13]=e):e=t[13],S=e}let C=S;if(d===0)return null;let w;t[14]!==i.editFile||t[15]!==i.fetchUrl||t[16]!==i.listDirectory||t[17]!==i.memoryActivity||t[18]!==i.openUrl||t[19]!==i.rawThinking||t[20]!==i.readFile||t[21]!==i.runCommand||t[22]!==i.searched||t[23]!==i.searchedCode||t[24]!==i.searchedMemory||t[25]!==i.searchedWeb||t[26]!==i.stepDetails||t[27]!==i.thoughts||t[28]!==i.thoughtsStreaming||t[29]!==i.toolError||t[30]!==i.toolFailedImpact||t[31]!==i.toolRunning||t[32]!==i.unknownTool||t[33]!==i.writeFile?(w={thoughts:i.thoughts,thoughtsStreaming:i.thoughtsStreaming,searchedWeb:i.searchedWeb,searchedMemory:i.searchedMemory,searchedCode:i.searchedCode,searched:i.searched,readFile:i.readFile,stepDetails:i.stepDetails,runCommand:i.runCommand,listDirectory:i.listDirectory,writeFile:i.writeFile,editFile:i.editFile,openUrl:i.openUrl,fetchUrl:i.fetchUrl,unknownTool:i.unknownTool,toolFailedImpact:i.toolFailedImpact,rawThinking:i.rawThinking,toolRunning:i.toolRunning,toolError:i.toolError,memoryActivity:i.memoryActivity},t[14]=i.editFile,t[15]=i.fetchUrl,t[16]=i.listDirectory,t[17]=i.memoryActivity,t[18]=i.openUrl,t[19]=i.rawThinking,t[20]=i.readFile,t[21]=i.runCommand,t[22]=i.searched,t[23]=i.searchedCode,t[24]=i.searchedMemory,t[25]=i.searchedWeb,t[26]=i.stepDetails,t[27]=i.thoughts,t[28]=i.thoughtsStreaming,t[29]=i.toolError,t[30]=i.toolFailedImpact,t[31]=i.toolRunning,t[32]=i.unknownTool,t[33]=i.writeFile,t[34]=w):w=t[34];let T=w,E;t[35]!==f||t[36]!==x||t[37]!==v||t[38]!==l||t[39]!==d||t[40]!==i||t[41]!==C?(E=f?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:C??rK(d,i)}),(0,$.jsx)(xY,{active:f,startedAt:v,frozenMs:null,language:l,className:`ml-1.5 tabular-nums text-fg-muted`})]}):(0,$.jsx)($.Fragment,{children:(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:x})}),t[35]=f,t[36]=x,t[37]=v,t[38]=l,t[39]=d,t[40]=i,t[41]=C,t[42]=E):E=t[42];let D=E,O;t[43]!==f||t[44]!==y||t[45]!==v||t[46]!==l?(O=f?null:(0,$.jsx)(xY,{active:!1,startedAt:v,frozenMs:y,language:l,className:`mt-0.5 tabular-nums text-xs text-fg-muted`}),t[43]=f,t[44]=y,t[45]=v,t[46]=l,t[47]=O):O=t[47];let k=O,A=_?`w-full`:`w-fit max-w-full`,j;t[48]===A?j=t[49]:(j=X(`my-1 min-w-0`,A),t[48]=A,t[49]=j);let M;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(M=X(`flex w-fit max-w-full min-w-0 items-start gap-2 rounded-lg px-1 py-1.5 text-left text-sm text-fg-muted`,gk.transition,`hover:bg-surface-hover/70 hover:text-fg dark:hover:bg-surface-hover/40`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),t[50]=M):M=t[50];let N;t[51]===m?N=t[52]:(N=()=>g(e=>!(e??m)),t[51]=m,t[52]=N);let P=p>0,F;t[53]!==f||t[54]!==P?(F=(0,$.jsx)(yY,{active:f,failed:P}),t[53]=f,t[54]=P,t[55]=F):F=t[55];let I;t[56]===D?I=t[57]:(I=(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,$.jsx)(`span`,{className:`inline-flex max-w-full flex-wrap items-baseline`,children:D})}),t[56]=D,t[57]=I);let L;t[58]===k?L=t[59]:(L=(0,$.jsx)(`span`,{className:`flex shrink-0 items-start justify-end`,children:k}),t[58]=k,t[59]=L);let R=_&&`rotate-180`,z;t[60]===R?z=t[61]:(z=X(`mt-0.5 size-4 shrink-0 text-fg-muted transition-transform`,R),t[60]=R,t[61]=z);let B;t[62]===z?B=t[63]:(B=(0,$.jsx)(is,{className:z,"aria-hidden":!0}),t[62]=z,t[63]=B);let V;t[64]!==_||t[65]!==F||t[66]!==I||t[67]!==L||t[68]!==B||t[69]!==N?(V=(0,$.jsxs)(`button`,{type:`button`,className:M,onClick:N,"aria-expanded":_,children:[F,I,L,B]}),t[64]=_,t[65]=F,t[66]=I,t[67]=L,t[68]=B,t[69]=N,t[70]=V):V=t[70];let H;t[71]!==o||t[72]!==_||t[73]!==s||t[74]!==T||t[75]!==r||t[76]!==u||t[77]!==c?(H=_?(0,$.jsx)(`div`,{className:`mt-1 w-full min-w-0 pb-1 pl-1`,children:(0,$.jsx)(wY,{blocks:u,toolLabels:r,stepLabels:T,cardLabels:o,sessionKey:s,workflowOptions:c,className:`assistant-steps-scroll max-h-[min(60vh,28rem)] overflow-y-auto pr-1 [scrollbar-gutter:stable]`})}):null,t[71]=o,t[72]=_,t[73]=s,t[74]=T,t[75]=r,t[76]=u,t[77]=c,t[78]=H):H=t[78];let ee;return t[79]!==V||t[80]!==H||t[81]!==j?(ee=(0,$.jsxs)(`div`,{className:j,children:[V,H]}),t[79]=V,t[80]=H,t[81]=j,t[82]=ee):ee=t[82],ee}function CY(e){return e.language}function wY(e){let t=(0,Q.c)(23),{blocks:n,toolLabels:r,stepLabels:i,cardLabels:a,className:o,sessionKey:s,workflowOptions:c}=e,l=(0,Z.useRef)(null),u=n.length>0,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{let e=l.current;if(!e)return;let t=t=>{wq(t,e)};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},t[0]=d):d=t[0];let f;if(t[1]===u?f=t[2]:(f=[u],t[1]=u,t[2]=f),(0,Z.useEffect)(d,f),!u)return null;let p;t[3]===o?p=t[4]:(p=X(`min-w-0 overflow-x-hidden`,o),t[3]=o,t[4]=p);let m;if(t[5]!==n||t[6]!==a||t[7]!==s||t[8]!==i||t[9]!==r||t[10]!==c){let e;t[12]!==a||t[13]!==s||t[14]!==i||t[15]!==r||t[16]!==c?(e=(e,t)=>(0,$.jsx)(DY,{block:e,toolLabels:r,stepLabels:i,cardLabels:a,sessionKey:s,workflowOptions:c},e.type===`tool_use`?e.id:`thinking-${t}`),t[12]=a,t[13]=s,t[14]=i,t[15]=r,t[16]=c,t[17]=e):e=t[17],m=n.map(e),t[5]=n,t[6]=a,t[7]=s,t[8]=i,t[9]=r,t[10]=c,t[11]=m}else m=t[11];let h;t[18]===m?h=t[19]:(h=(0,$.jsx)(`div`,{className:`min-w-0 space-y-2.5`,children:m}),t[18]=m,t[19]=h);let g;return t[20]!==p||t[21]!==h?(g=(0,$.jsx)(`div`,{ref:l,className:p,children:h}),t[20]=p,t[21]=h,t[22]=g):g=t[22],g}function TY(e){let t=(0,Q.c)(15),{toolName:n,toolResult:r}=e,i=DI(),a=dq(n);if(!a||i.length===0)return null;let o;if(t[0]!==i||t[1]!==a.extensionId){let e;t[3]===a.extensionId?e=t[4]:(e=e=>e.id===a.extensionId,t[3]=a.extensionId,t[4]=e),o=i.find(e),t[0]=i,t[1]=a.extensionId,t[2]=o}else o=t[2];let s=o,c=s?.name??a.extensionId,l=a.maxHeight??400,u=a.interactive??!1,d=s?.ui?.permissions,f;return t[5]!==c||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==r||t[10]!==a.entrypoint||t[11]!==a.extensionId||t[12]!==a.id||t[13]!==a.title?(f=(0,$.jsx)(uq,{extensionId:a.extensionId,extensionName:c,widgetId:a.id,entrypoint:a.entrypoint,title:a.title,toolResult:r,maxHeight:l,interactive:u,permissions:d}),t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=r,t[10]=a.entrypoint,t[11]=a.extensionId,t[12]=a.id,t[13]=a.title,t[14]=f):f=t[14],f}var EY=new Set([`readFile`,`editFile`,`writeFile`,`runCommand`,`fetchUrl`]);function DY(e){let t=(0,Q.c)(110),{block:n,toolLabels:r,stepLabels:i,cardLabels:a,sessionKey:o,workflowOptions:s}=e,c=BK(OY),l;bb0:{if(n.type!==`tool_use`){l=``;break bb0}if(n.status===`running`){l=``;break bb0}let e=n.result;if(e==null){l=``;break bb0}if(typeof e==`string`){let n;t[0]===e?n=t[1]:(n=e.trim(),t[0]=e,t[1]=n),l=n;break bb0}try{let n;t[2]===e?n=t[3]:(n=JSON.stringify(e,null,2),t[2]=e,t[3]=n),l=n}catch{l=String(e)}}let u=l,d;bb1:{if(n.type!==`tool_use`||n.status===`running`){d=null;break bb1}if(n.name!==`browser_use`){d=null;break bb1}let e;t[4]===u?e=t[5]:(e=qK(u),t[4]=u,t[5]=e),d=e}let f=d,p;t[6]===n?p=t[7]:(p=n.type===`tool_use`?bq(n):null,t[6]=n,t[7]=p);let m=p,h=m&&m.primary?.kind!==`workflow_run`&&m.primary?.kind!==`file`?m:null;if(n.type===`thinking`){let e=!!n.streaming,r;t[8]===n.text?r=t[9]:(r=n.text?.trim()??``,t[8]=n.text,t[9]=r);let a=r;if(!a&&!e)return null;let o;t[10]===e?o=t[11]:(o=(0,$.jsx)(`div`,{className:`mt-0.5 shrink-0`,children:e?(0,$.jsx)(je,{className:`size-4 animate-spin text-fg-muted`,"aria-hidden":!0}):(0,$.jsx)(me,{className:`size-4 text-fg-muted`,"aria-hidden":!0})}),t[10]=e,t[11]=o);let s=e?i.thoughtsStreaming:i.thoughts,l;t[12]===s?l=t[13]:(l=(0,$.jsx)(`span`,{className:`inline-flex max-w-full min-w-0 break-words text-sm text-fg-muted [overflow-wrap:anywhere]`,children:s}),t[12]=s,t[13]=l);let u;t[14]!==c||t[15]!==i.rawThinking||t[16]!==e||t[17]!==a?(u=c&&a?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle underline-offset-2 hover:text-fg-muted`,children:i.rawThinking}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-pre-wrap break-words text-xs leading-relaxed text-fg-muted [overflow-wrap:anywhere]`,children:a})]}):e?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:`…`}):null,t[14]=c,t[15]=i.rawThinking,t[16]=e,t[17]=a,t[18]=u):u=t[18];let d;t[19]!==l||t[20]!==u?(d=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[l,u]}),t[19]=l,t[20]=u,t[21]=d):d=t[21];let f;return t[22]!==o||t[23]!==d?(f=(0,$.jsxs)(`div`,{className:`flex min-w-0 gap-2.5`,children:[o,d]}),t[22]=o,t[23]=d,t[24]=f):f=t[24],f}if(Eq(n)){let e;return t[25]!==n||t[26]!==o||t[27]!==s.labels?(e=(0,$.jsx)(vY,{block:n,startedAt:n.startedAt,sessionKey:o,labels:s.labels}),t[25]=n,t[26]=o,t[27]=s.labels,t[28]=e):e=t[28],e}let g=n.status===`running`,_=n.status===`error`||n.activity?.status===`failed`,v=u,b=g&&n.details&&typeof n.details==`object`&&!Array.isArray(n.details)&&typeof n.details.text==`string`?n.details.text:``,x=v??``;if(x)try{let e;t[29]===x?e=t[30]:(e=JSON.stringify(JSON.parse(x),null,2),t[29]=x,t[30]=e),x=e}catch{}let S,C;t[31]!==n.activity||t[32]!==n.name?(S=KG(n.name,n.activity),C=EY.has(S),t[31]=n.activity,t[32]=n.name,t[33]=S,t[34]=C):(S=t[33],C=t[34]);let w=C,T;t[35]!==n||t[36]!==S||t[37]!==i?(T=S===`memorySearch`?uK(n,i.memoryActivity):null,t[35]=n,t[36]=S,t[37]=i,t[38]=T):T=t[38];let E=T,D;t[39]!==n.activity||t[40]!==n.name||t[41]!==E?.title||t[42]!==i?(D=E?.title??Ek(n.name,{searchedWeb:i.searchedWeb,searchedMemory:i.searchedMemory,searchedCode:i.searchedCode,searched:i.searched,readFile:i.readFile,runCommand:i.runCommand,listDirectory:i.listDirectory,writeFile:i.writeFile,editFile:i.editFile,openUrl:i.openUrl,fetchUrl:i.fetchUrl,unknownTool:i.unknownTool},n.activity),t[39]=n.activity,t[40]=n.name,t[41]=E?.title,t[42]=i,t[43]=D):D=t[43];let O=D,k;t[44]!==n.input||t[45]!==E?(k=E?``:VG(n.input),t[44]=n.input,t[45]=E,t[46]=k):k=t[46];let A=k,j;t[47]===n.input?j=t[48]:(j=n.input===void 0?``:PG(n.input),t[47]=n.input,t[48]=j);let M=j,N;t[49]!==n||t[50]!==a||t[51]!==w||t[52]!==S?(N=w?S===`readFile`?(0,$.jsx)(AK,{block:n,labels:a}):S===`editFile`?(0,$.jsx)(NK,{block:n,labels:a}):S===`writeFile`?(0,$.jsx)(FK,{block:n,labels:a}):S===`runCommand`?(0,$.jsx)(RK,{block:n,labels:a}):S===`fetchUrl`?(0,$.jsx)(zK,{block:n,labels:a}):null:null,t[49]=n,t[50]=a,t[51]=w,t[52]=S,t[53]=N):N=t[53];let P=N,F=!g&&c,I;t[54]!==_||t[55]!==g||t[56]!==S?(I=(0,$.jsx)(`div`,{className:`mt-0.5 shrink-0`,children:g?(0,$.jsx)(je,{className:`size-4 animate-spin text-fg-muted`,"aria-hidden":!0}):_?(0,$.jsx)(uc,{className:`size-4 text-red-600 dark:text-red-400`,"aria-hidden":!0}):(0,$.jsx)(bY,{kind:S})}),t[54]=_,t[55]=g,t[56]=S,t[57]=I):I=t[57];let L;t[58]===O?L=t[59]:(L=(0,$.jsx)(`span`,{className:`inline-flex max-w-full min-w-0 break-words text-sm text-fg-muted [overflow-wrap:anywhere]`,children:O}),t[58]=O,t[59]=L);let R;t[60]!==_||t[61]!==g||t[62]!==i?(R=g?(0,$.jsx)(`span`,{className:`text-xs text-fg-disabled`,children:i.toolRunning}):_?(0,$.jsx)(`span`,{className:`text-xs text-red-600 dark:text-red-400`,children:i.toolError}):null,t[60]=_,t[61]=g,t[62]=i,t[63]=R):R=t[63];let z;t[64]!==L||t[65]!==R?(z=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[L,R]}),t[64]=L,t[65]=R,t[66]=z):z=t[66];let B;t[67]!==E||t[68]!==i?(B=E?(0,$.jsxs)(`div`,{className:`space-y-1 text-xs text-fg-muted`,children:[(0,$.jsx)(`p`,{children:E.purpose}),(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-x-3 gap-y-1`,children:[(0,$.jsx)(y,{className:`font-medium text-accent-fg hover:underline`,to:`/user-model`,children:i.memoryActivity.manage}),(0,$.jsx)(y,{className:`font-medium text-accent-fg hover:underline`,to:`/user-model`,children:i.memoryActivity.privacy})]}),(0,$.jsxs)(`details`,{children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle hover:text-fg-muted`,children:i.memoryActivity.why}),(0,$.jsx)(`div`,{className:`mt-1.5 rounded-md bg-surface-hover/60 px-2 py-1.5 dark:bg-surface-hover/35`,children:(0,$.jsx)(`p`,{children:i.memoryActivity.explanation})})]})]}):null,t[67]=E,t[68]=i,t[69]=B):B=t[69];let V;t[70]!==_||t[71]!==i?(V=_?(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-red-600 dark:text-red-400`,children:i.toolFailedImpact}):null,t[70]=_,t[71]=i,t[72]=V):V=t[72];let H;t[73]===h?H=t[74]:(H=h?(0,$.jsx)(gq,{delivery:h}):null,t[73]=h,t[74]=H);let ee;t[75]!==A||t[76]!==w?(ee=!w&&A?(0,$.jsx)(`p`,{className:`min-w-0 break-words text-xs text-fg-muted [overflow-wrap:anywhere]`,children:A}):null,t[75]=A,t[76]=w,t[77]=ee):ee=t[77];let te;t[78]===b?te=t[79]:(te=b?(0,$.jsx)(`pre`,{className:`max-h-48 min-w-0 overflow-y-auto overflow-x-hidden rounded-md bg-surface-hover/60 p-2 whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-fg-muted [overflow-wrap:anywhere] dark:bg-surface-hover/35`,children:b}):null,t[78]=b,t[79]=te);let ne;t[80]!==a||t[81]!==w||t[82]!==x||t[83]!==M||t[84]!==F||t[85]!==i||t[86]!==r?(ne=F?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-fg-subtle underline-offset-2 hover:text-fg-muted group-open:text-fg-muted`,children:w?a.rawDetails:i.stepDetails}),(0,$.jsxs)(`div`,{className:`mt-2 max-h-48 w-full min-w-0 max-w-full overflow-y-auto overflow-x-hidden rounded-md bg-surface-hover/60 p-2 font-mono dark:bg-surface-hover/35`,children:[M?(0,$.jsxs)(`div`,{className:`mb-2 min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-0.5 text-[10px] uppercase tracking-wide text-fg-disabled`,children:r.input}),(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words text-fg-muted [overflow-wrap:anywhere]`,children:M})]}):null,(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`mb-0.5 text-[10px] uppercase tracking-wide text-fg-disabled`,children:r.output}),(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words text-fg-muted [overflow-wrap:anywhere]`,children:x||r.noOutput})]})]})]}):null,t[80]=a,t[81]=w,t[82]=x,t[83]=M,t[84]=F,t[85]=i,t[86]=r,t[87]=ne):ne=t[87];let U;t[88]!==n.name||t[89]!==n.result||t[90]!==_||t[91]!==g?(U=!g&&!_?(0,$.jsx)(TY,{toolName:n.name,toolResult:n.result}):null,t[88]=n.name,t[89]=n.result,t[90]=_,t[91]=g,t[92]=U):U=t[92];let W;t[93]!==f||t[94]!==g?(W=!g&&f?(0,$.jsx)(UK,{payload:f}):null,t[93]=f,t[94]=g,t[95]=W):W=t[95];let re;t[96]!==P||t[97]!==z||t[98]!==B||t[99]!==V||t[100]!==H||t[101]!==ee||t[102]!==te||t[103]!==ne||t[104]!==U||t[105]!==W?(re=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1.5`,children:[z,P,B,V,H,ee,te,ne,U,W]}),t[96]=P,t[97]=z,t[98]=B,t[99]=V,t[100]=H,t[101]=ee,t[102]=te,t[103]=ne,t[104]=U,t[105]=W,t[106]=re):re=t[106];let ie;return t[107]!==I||t[108]!==re?(ie=(0,$.jsxs)(`div`,{className:`flex min-w-0 gap-2.5`,children:[I,re]}),t[107]=I,t[108]=re,t[109]=ie):ie=t[109],ie}function OY(e){return e.showRawToolData}function kY(e){return e+1}var AY=String.raw`a-zA-Z0-9_./\-\p{L}\p{N}`,jY=`[${AY}]+`,MY=String.raw`(?:[^"\\]|\\.)*`,NY=String.raw`((?:[^"\\]|\\.)*)`,PY=RegExp(`^[${AY}]+$`,`u`);function FY(e){return e.replace(/\\(.)/g,(e,t)=>t)}var IY=RegExp(`@file:(?:"${NY}"|(${jY}))`,`gu`),LY=RegExp(`(@file:(?:"${MY}"|${jY}))$`,`u`),RY=RegExp(`(@file:(?:"${MY}"|${jY}))([ \\t\\f\\v]*)$`,`u`),zY=`(?:"${MY}"|${jY})`;function BY(e){let t=e.lastIndexOf(`@file:`);return t===-1?!1:RegExp(`^@file:${zY}$`,`u`).test(e.slice(t))}function VY(e){let t=e[2];if(t!=null&&t!==``)return t;let n=e[1];return n==null?``:FY(n)}function HY(e){return PY.test(e)?e:`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function UY(){return new RegExp(IY.source,`gu`)}var WY=RegExp(`^@file:(?:"${NY}"|(${jY}))`,`u`),GY=RegExp(`^\\/skill:(${oL})`),KY=[],qY=new Map;function JY(e){let t=new Set;for(let n of e??[]){n?.name&&t.add(n.name);for(let e of n.aliases??[])typeof e==`string`&&e.length>0&&t.add(e)}KY=Array.from(t).toSorted((e,t)=>t.length-e.length).map(e=>({key:e})),qY.clear()}function YY(e,t){if(t>=e.length)return!0;let n=e[t];return!/[a-zA-Z0-9_-]/.test(n)}function XY(e,t){return!(e[t]!==`/`||t>0&&!/\s/.test(e[t-1]))}function ZY(e,t){if(!XY(e,t)||KY.length===0)return null;let n=e.slice(t);if(n.startsWith(`/skill:`))return null;for(let{key:e}of KY){let t=`/${e}`;if(n.startsWith(t)&&YY(n,t.length))return{len:t.length,matchedKey:e}}return null}function QY(e){let t=[],n=0;for(;n<e.length;){if(e[n]!==`/`){n+=1;continue}let r=e.slice(n).match(GY);if(r?.[0]){n+=r[0].length;continue}let i=ZY(e,n);i?(t.push({start:n,end:n+i.len}),n+=i.len):n+=1}return t}function $Y(e){for(let t=e.length-1;t>=0;--t){if(e[t]!==`/`||e.startsWith(`/skill:`,t))continue;let n=ZY(e,t);if(n&&t+n.len===e.length)return!0}return!1}function eX(e){if(!e.startsWith(`/`)||KY.length===0||e.startsWith(`/skill:`))return!1;let t=ZY(e,0);return t?e.length===t.len||!/[a-zA-Z0-9_-]/.test(e[t.len]):!1}function tX(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function nX(e){let t=qY.get(e);return t||(t=RegExp(`(${tX(e)})([ \\t\\f\\v]*)$`),qY.set(e,t)),t}function rX(e){for(let{key:t}of KY){let n=`/${t}`;if(!e.endsWith(n))continue;let r=e.length-n.length;if(ZY(e,r))return{tokenStart:r}}return null}function iX(e){for(let{key:t}of KY){let n=`/${t}`,r=e.match(nX(n));if(!r)continue;let i=e.length-r[0].length;if(ZY(e,i))return{tokenStart:i}}return null}function aX(e){let t=[],n=(n,r)=>{let i=new RegExp(n.source,n.flags),a;for(;(a=i.exec(e))!==null;)t.push({start:a.index,end:a.index+a[0].length,seg:r(a)})};n(cL(),e=>({kind:`skill`,name:e[1]??``})),n(UY(),e=>({kind:`file`,path:VY(e)}));for(let n of QY(e))t.push({start:n.start,end:n.end,seg:{kind:`command`,name:e.slice(n.start+1,n.end)}});t.sort((e,t)=>e.start===t.start?t.end-e.end:e.start-t.start);let r=[],i=0;for(let n of t)n.start<i||(n.start>i&&r.push({kind:`text`,text:e.slice(i,n.start)}),r.push(n.seg),i=n.end);return i<e.length&&r.push({kind:`text`,text:e.slice(i)}),r.length===0&&r.push({kind:`text`,text:e}),r}function oX(e){let t=e.replace(/\/$/,``);return`@${t.split(`/`).pop()??t}`}function sX(e){return e.kind===`text`?`t:${e.text}`:e.kind===`skill`?`s:${e.name}`:e.kind===`file`?`f:${e.path}`:`c:${e.name}`}var cX=(0,Z.memo)(function(e){let t=(0,Q.c)(10),{text:n}=e,r;t[0]===n?r=t[1]:(r=aX(n),t[0]=n,t[1]=r);let i=r,a;if(t[2]!==i){let e=new Map;a=i.map(t=>{let n=sX(t),r=e.get(n)??0;return e.set(n,r+1),{part:t,key:`${n}#${String(r)}`}}),t[2]=i,t[3]=a}else a=t[3];let o=a;if(!i.some(lX)){let e;return t[4]===n?e=t[5]:(e=(0,$.jsx)(`div`,{className:`markdown-content min-w-0`,children:(0,$.jsx)(ke,{content:n,compact:!0,breaks:!0})}),t[4]=n,t[5]=e),e}let s;t[6]===o?s=t[7]:(s=o.map(uX),t[6]=o,t[7]=s);let c;return t[8]===s?c=t[9]:(c=(0,$.jsx)(`span`,{className:`inline-flex max-w-full flex-wrap items-baseline gap-x-1.5 gap-y-1 [text-align:inherit]`,children:s}),t[8]=s,t[9]=c),c});function lX(e){return e.kind!==`text`}function uX(e){let{part:t,key:n}=e;return t.kind===`skill`?(0,$.jsxs)(`span`,{className:`chat-skill-pill max-w-full shrink-0`,"data-skill":t.name,children:[`/`,t.name]},n):t.kind===`command`?(0,$.jsxs)(`span`,{className:`chat-command-pill max-w-full shrink-0`,"data-slash-command":t.name,children:[`/`,t.name]},n):t.kind===`file`?(0,$.jsx)(`span`,{className:`chat-file-pill max-w-full shrink-0`,"data-file":t.path,children:oX(t.path)},n):t.text?(0,$.jsx)(`div`,{className:`chat-user-message-segment markdown-content inline-block min-w-0 max-w-full align-baseline text-fg`,children:(0,$.jsx)(ke,{content:t.text,compact:!0,breaks:!0})},n):null}function dX(e,t){switch(e.code){case`provider_setup_required`:return{title:t.providerSetupRequiredTitle,body:t.providerSetupRequiredBody.replace(`{{provider}}`,e.provider??t.agentRunErrorUnknownProvider),cta:t.providerSetupRequiredCta,deepLink:`/settings/capabilities/models`};case`provider_auth_invalid`:return{title:t.agentRunErrorAuthInvalidTitle,body:t.agentRunErrorAuthInvalidBody.replace(`{{provider}}`,e.provider??t.agentRunErrorUnknownProvider),cta:t.agentRunErrorCtaProviders,deepLink:`/settings/capabilities/models`};case`rate_limit`:return{title:t.agentRunErrorRateLimitTitle,body:t.agentRunErrorRateLimitBody};case`timeout`:return{title:t.agentRunErrorTimeoutTitle,body:t.agentRunErrorTimeoutBody};case`billing`:return{title:t.agentRunErrorBillingTitle,body:t.agentRunErrorBillingBody};case`model_quota_exhausted`:return{title:t.xopcQuotaExhaustedTitle,body:t.xopcQuotaExhaustedBody};case`platform_token_limit_exceeded`:return{title:t.xopcPlatformLimitTitle,body:t.xopcPlatformLimitBody,cta:t.xopcPlatformLimitCta,deepLink:`/settings/capabilities/models?add=1`};case`send_failed`:return{title:t.agentRunErrorSendFailedTitle,body:t.agentRunErrorSendFailedBody};case`session_not_found`:return{title:t.sessionNotFoundTitle,body:t.sessionNotFoundBody,cta:t.sessionNotFoundCta,deepLink:`/chat/new`};default:return{title:t.agentRunErrorUnknownTitle,body:t.agentRunErrorUnknownBody}}}function fX(e){let t=(0,Q.c)(4),{code:n}=e;switch(n){case`provider_setup_required`:case`provider_auth_invalid`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(bg,{className:`size-4`,strokeWidth:1.75}),t[0]=e):e=t[0],e}case`rate_limit`:case`timeout`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Gc,{className:`size-4`,strokeWidth:1.75}),t[1]=e):e=t[1],e}case`billing`:case`model_quota_exhausted`:case`platform_token_limit_exceeded`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(sT,{className:`size-4`,strokeWidth:1.75}),t[2]=e):e=t[2],e}default:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(xs,{className:`size-4`,strokeWidth:1.75}),t[3]=e):e=t[3],e}}}function pX(e){return e===`provider_setup_required`||e===`provider_auth_invalid`||e===`rate_limit`||e===`timeout`||e===`billing`||e===`model_quota_exhausted`||e===`platform_token_limit_exceeded`||e===`session_not_found`?`amber`:`red`}function mX(e){let t=(0,Q.c)(46),{payload:n}=e,r=p(),i=ct(gX),a,o;t[0]!==i||t[1]!==n?(a=rt(i).chat,o=dX(n,a),t[0]=i,t[1]=n,t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s=o,c=pX(n.code),l=c===`amber`?`border-amber-300/60 bg-amber-50 dark:border-amber-500/30 dark:bg-amber-950`:`border-red-300/60 bg-red-50 dark:border-red-500/30 dark:bg-red-950`,u=c===`amber`?`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`:`bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-300`,d=c===`amber`?`text-amber-900 dark:text-amber-100`:`text-red-900 dark:text-red-100`,f=c===`amber`?`text-amber-900/85 dark:text-amber-100/80`:`text-red-900/85 dark:text-red-100/80`,m=c===`amber`?`text-amber-800/80 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`:`text-red-800/80 hover:text-red-900 dark:text-red-200/80 dark:hover:text-red-100`,h=c===`amber`?`bg-amber-100/60 text-amber-900 dark:bg-amber-500/15 dark:text-amber-100`:`bg-red-100/60 text-red-900 dark:bg-red-500/15 dark:text-red-100`,g=c===`amber`?`bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-500 dark:text-amber-950 dark:hover:bg-amber-400`:`bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:text-red-950 dark:hover:bg-red-400`,_=n.code===`model_quota_exhausted`,v=hX,y;t[4]===l?y=t[5]:(y=X(`flex flex-col gap-2 rounded-xl border p-3`,l),t[4]=l,t[5]=y);let b;t[6]===u?b=t[7]:(b=X(`flex size-8 shrink-0 items-center justify-center rounded-lg`,u),t[6]=u,t[7]=b);let x;t[8]===n.code?x=t[9]:(x=(0,$.jsx)(fX,{code:n.code}),t[8]=n.code,t[9]=x);let S;t[10]!==b||t[11]!==x?(S=(0,$.jsx)(`span`,{className:b,"aria-hidden":!0,children:x}),t[10]=b,t[11]=x,t[12]=S):S=t[12];let C;t[13]===d?C=t[14]:(C=X(`text-sm font-semibold`,d),t[13]=d,t[14]=C);let w;t[15]!==s.title||t[16]!==C?(w=(0,$.jsx)(`h3`,{className:C,children:s.title}),t[15]=s.title,t[16]=C,t[17]=w):w=t[17];let T;t[18]===f?T=t[19]:(T=X(`mt-1 text-xs leading-relaxed`,f),t[18]=f,t[19]=T);let E;t[20]!==s.body||t[21]!==T?(E=(0,$.jsx)(`p`,{className:T,children:s.body}),t[20]=s.body,t[21]=T,t[22]=E):E=t[22];let D;t[23]!==w||t[24]!==E?(D=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[w,E]}),t[23]=w,t[24]=E,t[25]=D):D=t[25];let O;t[26]!==D||t[27]!==S?(O=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[S,D]}),t[26]=D,t[27]=S,t[28]=O):O=t[28];let k;t[29]!==s.cta||t[30]!==s.deepLink||t[31]!==g||t[32]!==a||t[33]!==r||t[34]!==_?(k=_?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium transition-colors`,g),onClick:()=>v(`/models/billing`),children:a.xopcQuotaPurchaseCta}),(0,$.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-lg border border-current px-3 py-1.5 text-xs font-medium transition-colors hover:bg-amber-500/10`,onClick:()=>v(`/models/quota/request`),children:a.xopcQuotaRequestCta}),(0,$.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-lg border border-current px-3 py-1.5 text-xs font-medium transition-colors hover:bg-amber-500/10`,onClick:()=>r(`/settings/capabilities/models?add=1`),children:a.xopcQuotaOwnProviderCta})]}):s.cta&&s.deepLink?(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500/50`,g),onClick:()=>r(s.deepLink),children:s.cta})}):null,t[29]=s.cta,t[30]=s.deepLink,t[31]=g,t[32]=a,t[33]=r,t[34]=_,t[35]=k):k=t[35];let A;t[36]!==m||t[37]!==h||t[38]!==a||t[39]!==n.message?(A=n.message?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:X(`cursor-pointer select-none underline-offset-2`,m),children:a.agentRunErrorDetailToggle}),(0,$.jsx)(`pre`,{className:X(`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md p-2 font-mono text-[11px] [overflow-wrap:anywhere]`,h),children:n.message})]}):null,t[36]=m,t[37]=h,t[38]=a,t[39]=n.message,t[40]=A):A=t[40];let j;return t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==y?(j=(0,$.jsxs)(`section`,{role:`alert`,"aria-live":`polite`,className:y,children:[O,k,A]}),t[41]=O,t[42]=k,t[43]=A,t[44]=y,t[45]=j):j=t[45],j}function hX(e){return window.open(`https://console.xopc.ai${e}`,`_blank`,`noopener,noreferrer`)}function gX(e){return e.language}function _X(e){let t=(0,Q.c)(8),{errorText:n}=e,r;t[0]===n?r=t[1]:(r=wL(n),t[0]=n,t[1]=r);let i=r;if(!i)return null;let a;t[2]===i?a=t[3]:(a=TL(i),t[2]=i,t[3]=a);let o=a;if(o){let e;return t[4]===o?e=t[5]:(e=(0,$.jsx)(`div`,{className:`mb-4`,children:(0,$.jsx)(vX,{payload:o})}),t[4]=o,t[5]=e),e}let s;return t[6]===i?s=t[7]:(s=(0,$.jsx)(`div`,{className:`mb-4`,children:(0,$.jsx)(mX,{payload:i})}),t[6]=i,t[7]=s),s}function vX(e){let t=(0,Q.c)(32),{payload:n}=e,r=p(),i=ct(yX),a,o,s,c;t[0]!==i||t[1]!==n.kind||t[2]!==n.provider?(o=rt(i).chat,a=n.kind===`provider_auth_invalid`,c=a?o.agentRunErrorAuthInvalidTitle:o.providerSetupRequiredTitle,s=(a?o.agentRunErrorAuthInvalidBody:o.providerSetupRequiredBody).replace(`{{provider}}`,n.provider),t[0]=i,t[1]=n.kind,t[2]=n.provider,t[3]=a,t[4]=o,t[5]=s,t[6]=c):(a=t[3],o=t[4],s=t[5],c=t[6]);let l=s,u=a?o.agentRunErrorCtaProviders:o.providerSetupRequiredCta,d=a?o.agentRunErrorDetailToggle:o.providerSetupRequiredDetailToggle,f=a?`alert`:`status`,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=X(`flex flex-col gap-2 rounded-xl border border-amber-300/60 bg-amber-50 p-3`,`dark:border-amber-500/30 dark:bg-amber-950`),t[7]=m):m=t[7];let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=X(`flex size-8 shrink-0 items-center justify-center rounded-lg`,`bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300`),t[8]=h):h=t[8];let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`span`,{className:h,"aria-hidden":!0,children:(0,$.jsx)(bg,{className:`size-4`,strokeWidth:1.75})}),t[9]=g):g=t[9];let _;t[10]===c?_=t[11]:(_=(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-amber-900 dark:text-amber-100`,children:c}),t[10]=c,t[11]=_);let v;t[12]===l?v=t[13]:(v=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:l}),t[12]=l,t[13]=v);let y;t[14]!==_||t[15]!==v?(y=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[g,(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v]})]}),t[14]=_,t[15]=v,t[16]=y):y=t[16];let b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=X(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium`,`bg-amber-600 text-white hover:bg-amber-700`,`dark:bg-amber-500 dark:text-amber-950 dark:hover:bg-amber-400`,`transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-500/50`),t[17]=b):b=t[17];let x;t[18]!==r||t[19]!==n.deepLink?(x=()=>r(n.deepLink),t[18]=r,t[19]=n.deepLink,t[20]=x):x=t[20];let S;t[21]!==u||t[22]!==x?(S=(0,$.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:(0,$.jsx)(`button`,{type:`button`,className:b,onClick:x,children:u})}),t[21]=u,t[22]=x,t[23]=S):S=t[23];let C;t[24]!==d||t[25]!==n.message?(C=n.message?(0,$.jsxs)(`details`,{className:`group min-w-0 text-xs`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none text-amber-800/80 underline-offset-2 hover:text-amber-900 dark:text-amber-200/80 dark:hover:text-amber-100`,children:d}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-40 w-full min-w-0 overflow-y-auto overflow-x-hidden whitespace-pre-wrap break-words rounded-md bg-amber-100/60 p-2 font-mono text-[11px] text-amber-900 dark:bg-amber-500/15 dark:text-amber-100 [overflow-wrap:anywhere]`,children:n.message})]}):null,t[24]=d,t[25]=n.message,t[26]=C):C=t[26];let w;return t[27]!==S||t[28]!==C||t[29]!==f||t[30]!==y?(w=(0,$.jsxs)(`section`,{role:f,"aria-live":`polite`,className:m,children:[y,S,C]}),t[27]=S,t[28]=C,t[29]=f,t[30]=y,t[31]=w):w=t[31],w}function yX(e){return e.language}var bX=/^No API key found for (\S+)/i;function xX(e){let t=e.trim();if(t.startsWith(`{`))try{let e=JSON.parse(t);return e.kind!==`provider_setup_required`||typeof e.provider!=`string`||!e.provider||typeof e.deepLink!=`string`||!e.deepLink.startsWith(`/settings/`)?null:{kind:`provider_setup_required`,provider:e.provider,deepLink:e.deepLink,message:typeof e.message==`string`?e.message:void 0}}catch{return null}let n=bX.exec(t);return n?{kind:`provider_setup_required`,provider:n[1].replace(/[.,]$/,``),deepLink:`/settings/capabilities/models`,message:t}:null}function SX(e){let t=e.replace(/\r$/,``),n=``,r=t,i=r.match(/^\s{0,3}/)?.[0]??``;for(n+=i,r=r.slice(i.length);r.startsWith(`>`);){n+=`>`,r=r.slice(1),r.startsWith(` `)&&(n+=` `,r=r.slice(1));let e=r.match(/^\s{0,3}/)?.[0]??``;n+=e,r=r.slice(e.length)}return n}function CX(e){let t=e.replace(/\r$/,``);return t.slice(SX(t).length)}function wX(e){return CX(e).trim().replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim())}function TX(e){return(CX(e).match(/\|/g)??[]).length}function EX(e){let t=CX(e).trim();return t?t.startsWith(`|`)?wX(e).length>=2:TX(e)>=2:!1}function DX(e){let t=CX(e).trim();return t.includes(`-`)&&/^[\s|:-]+$/.test(t)}function OX(e){let t=CX(e).trim();return t.length>0&&/^[\s|:]+$/.test(t)}function kX(e){return wX(e).filter(e=>e.includes(`-`)).length}function AX(e,t=``){return`${t}| ${Array.from({length:e},()=>`---`).join(` | `)} |`}function jX(e,t){let n=wX(e);for(;n.length<t;)n.push(``);return`${SX(e)}| ${n.slice(0,t).join(` | `)} |`}function MX(e){return(e.match(/^\s*(```|~~~)/gm)??[]).length%2==1}function NX(e){if(!e.includes(`|`)||MX(e))return e;let t=e.split(`
|
|
52
|
+
`),n=t.length-1;for(;n>0&&t[n-1]?.trim();)n--;let r=t.slice(n).findIndex(e=>EX(e));if(r<0)return e;let i=n+r,a=t[i]??``,o=wX(a).length;if(o<2)return e;let s=SX(a),c=i+1,l=t[c];if(l===void 0)return`${e}${e.endsWith(`
|
|
53
|
+
`)?``:`
|
|
54
|
+
`}${AX(o,s)}`;if(!CX(l).trim()){let e=[...t];return e[c]=AX(o,s),e.join(`
|
|
55
|
+
`)}if(DX(l)&&kX(l)<o||OX(l)){let e=[...t];return e[c]=AX(o,s),e.join(`
|
|
56
|
+
`)}if(!DX(l))return e;let u=t.length-1,d=t[u]??``;if(u>c&&EX(d)&&!DX(d)&&!d.trim().endsWith(`|`)){let e=[...t];return e[u]=jX(d,o),e.join(`
|
|
57
|
+
`)}return e}function PX(e){let t=[];for(let n of e){let e=t[t.length-1];if(n.type===`text`&&e?.type===`text`&&n.segmentId===e.segmentId&&n.presentation===e.presentation){e.text=`${e.text??``}${n.text??``}`;continue}t.push({...n})}return t}var FX=/^\s*\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)+\|?\s*$/m,IX=/^\s{0,3}(?:[-+*]|\d+[.)])\s+/m,LX=/^\s{0,3}```/gm;function RX(e){return(e.match(LX)?.length??0)%2==1?`code`:FX.test(e)?`table`:IX.test(e)?`list`:e.length>=4096?`long_text`:`plain`}var zX={plain:32,long_text:48,list:40,table:72,code:64},BX=48,VX=16,HX=6,UX=512;function WX({tailKind:e,latestParseMs:t}){let n=zX[e];return!Number.isFinite(t)||t<=16?n:Math.min(120,Math.max(n,Math.ceil(t*2)))}function GX({intervalMs:e,elapsedMs:t,firstCommit:n}){return n?Math.max(BX,e):Math.max(0,e-t)}function KX({visibleLength:e,pendingContent:t}){if(e>=t.length)return t.length;let n=Math.min(UX,Math.max(HX,Math.ceil(t.length/VX))),r=Math.min(t.length,e+n),i=t.charCodeAt(r-1),a=t.charCodeAt(r);return i>=55296&&i<=56319&&a>=56320&&a<=57343&&(r+=1),r}function qX(e,t,n,r,i){let a=(0,Q.c)(11),o=r===void 0?!1:r,s;a[0]===e?s=a[1]:(s=()=>e,a[0]=e,a[1]=s);let[c,l]=(0,Z.useState)(s),u=(0,Z.useRef)(e),d=(0,Z.useRef)(c),f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),m=(0,Z.useRef)(t||o),h=(0,Z.useRef)(!1),g,_;a[2]!==e||a[3]!==n||a[4]!==i||a[5]!==t||a[6]!==c?(g=()=>{if(u.current=e,t&&(m.current=!0,h.current=!1,_e(n,e.length)),!m.current){d.current=e,l(e);return}if(c===e){t||(m.current=!1,p.current=null,h.current||(h.current=!0,i?.()));return}if(!e.startsWith(c)){d.current=e,l(e);return}if(f.current!==null)return;let r=WX({tailKind:RX(e.slice(-8192)),latestParseMs:De(n)}),a=performance.now(),o=p.current,s=GX({intervalMs:r,elapsedMs:o===null?0:a-o,firstCommit:o===null});f.current=window.setTimeout(()=>{f.current=null;let e=u.current,t=KX({visibleLength:d.current.length,pendingContent:e}),r=e.slice(0,t);d.current=r,p.current=performance.now(),Se(n,r.length),l(r)},s)},_=[e,n,i,t,c],a[2]=e,a[3]=n,a[4]=i,a[5]=t,a[6]=c,a[7]=g,a[8]=_):(g=a[7],_=a[8]),(0,Z.useEffect)(g,_);let v,y;return a[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>()=>{f.current!==null&&(window.clearTimeout(f.current),f.current=null)},y=[],a[9]=v,a[10]=y):(v=a[9],y=a[10]),(0,Z.useEffect)(v,y),c}function JX(e,t){let n=e.filter(e=>e.type===`tool_use`),r=n.map(e=>e.startedAt).filter(e=>Number.isFinite(e)),i=n.map(e=>e.completedAt).filter(e=>Number.isFinite(e)),a=r.length>0?Math.min(...r):void 0,o=[...i,...Number.isFinite(t)?[t]:[]],s=o.length>0?Math.max(...o):void 0;return{startedAt:a,completedAt:s,durationMs:a!=null&&s!=null?Math.max(0,s-a):void 0}}function YX(e){if(!e.filePath)return``;if(!e.lineStart)return e.filePath;let t=e.lineEnd&&e.lineEnd!==e.lineStart?`-${e.lineEnd}`:``;return`${e.filePath}:${e.lineStart}${t}`}function XX(e){let t=(0,Q.c)(37),{review:n}=e,r=n.status===`preparing`||n.status===`reviewing`,i=n.status===`preparing`,a=n.source===`local`&&n.overallCorrectness===`unknown`,o=n.overallCorrectness===`patch is incorrect`?`border-red-500/30 bg-red-500/5 text-red-700 dark:text-red-300`:n.overallCorrectness===`patch is correct`?`border-emerald-500/30 bg-emerald-500/5 text-emerald-700 dark:text-emerald-300`:`border-edge bg-surface-muted text-fg-secondary`,s;t[0]===r?s=t[1]:(s=r?(0,$.jsx)(je,{className:`size-4 animate-spin text-accent`,"aria-hidden":!0}):null,t[0]=r,t[1]=s);let c=r?`Reviewing changes`:`Code review finished`,l;t[2]===c?l=t[3]:(l=(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg-primary`,children:c}),t[2]=c,t[3]=l);let u;t[4]!==o||t[5]!==i||t[6]!==r||t[7]!==n.overallCorrectness?(u=r?(0,$.jsx)(`div`,{className:`rounded-md border border-edge bg-surface-muted px-1.5 py-0.5 text-[11px] font-medium text-fg-secondary`,children:i?`Collecting changes`:`Review assistant`}):(0,$.jsx)(`div`,{className:X(`rounded-md border px-1.5 py-0.5 text-[11px] font-medium`,o),children:n.overallCorrectness}),t[4]=o,t[5]=i,t[6]=r,t[7]=n.overallCorrectness,t[8]=u):u=t[8];let d;t[9]!==s||t[10]!==l||t[11]!==u?(d=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[s,l,u]}),t[9]=s,t[10]=l,t[11]=u,t[12]=d):d=t[12];let f;t[13]===n.target?f=t[14]:(f=(0,$.jsxs)(`div`,{className:`mt-1 text-xs text-fg-tertiary`,children:[`Based on `,n.target]}),t[13]=n.target,t[14]=f);let p;t[15]!==i||t[16]!==r||t[17]!==n.analysisMarkdown?(p=r&&!n.analysisMarkdown?(0,$.jsx)(`div`,{className:`mt-3 text-sm text-fg-secondary`,children:i?`Preparing an isolated review context…`:`The review assistant is checking the changes…`}):null,t[15]=i,t[16]=r,t[17]=n.analysisMarkdown,t[18]=p):p=t[18];let m;t[19]===n.analysisMarkdown?m=t[20]:(m=n.analysisMarkdown?(0,$.jsxs)(`div`,{className:`mt-3 rounded-md border border-edge-subtle bg-surface px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-xs font-medium text-fg-secondary`,children:`Review assistant`}),(0,$.jsx)(ke,{content:n.analysisMarkdown,compact:!0})]}):null,t[19]=n.analysisMarkdown,t[20]=m);let h;t[21]!==n.errorMessage||t[22]!==n.status?(h=n.status===`error`&&n.errorMessage?(0,$.jsxs)(`div`,{className:`mt-3 rounded-md border border-warning/30 bg-warning/5 px-2.5 py-2 text-sm text-warning`,children:[`The review assistant could not complete: `,n.errorMessage]}):null,t[21]=n.errorMessage,t[22]=n.status,t[23]=h):h=t[23];let g;t[24]!==r||t[25]!==a||t[26]!==n.findings||t[27]!==n.overallExplanation||t[28]!==n.summary?(g=r?null:(0,$.jsxs)($.Fragment,{children:[n.summary?(0,$.jsx)(`div`,{className:`mt-3 text-sm text-fg-secondary`,children:n.summary}):null,(0,$.jsx)(`div`,{className:`mt-3 space-y-2`,children:n.findings.length===0?(0,$.jsx)(`div`,{className:`text-sm text-fg-secondary`,children:a?`No model findings were produced.`:`No findings.`}):n.findings.map(ZX)}),n.overallExplanation?(0,$.jsx)(`div`,{className:`mt-3 whitespace-pre-wrap text-sm text-fg-secondary`,children:n.overallExplanation}):null]}),t[24]=r,t[25]=a,t[26]=n.findings,t[27]=n.overallExplanation,t[28]=n.summary,t[29]=g):g=t[29];let _;return t[30]!==g||t[31]!==d||t[32]!==f||t[33]!==p||t[34]!==m||t[35]!==h?(_=(0,$.jsxs)(`div`,{className:`min-w-0 rounded-lg border border-edge bg-surface-subtle p-3`,children:[d,f,p,m,h,g]}),t[30]=g,t[31]=d,t[32]=f,t[33]=p,t[34]=m,t[35]=h,t[36]=_):_=t[36],_}function ZX(e,t){let n=YX(e);return(0,$.jsxs)(`div`,{className:`rounded-md border border-edge bg-surface p-2`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsxs)(`span`,{className:`rounded border border-edge bg-surface-muted px-1.5 py-0.5 text-[11px] font-semibold text-fg-secondary`,children:[`P`,e.priority]}),(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium text-fg-primary`,children:e.title})]}),n?(0,$.jsx)(`div`,{className:`mt-1 break-all text-xs text-fg-tertiary`,children:n}):null,e.body?(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-secondary`,children:e.body}):null]},`${e.title}-${t}`)}function QX({resolution:e,sessionKey:t,onClose:n}){let r=ct(e=>e.language),i=rt(r).chat.fileReference,[a,o]=(0,Z.useState)(!1),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(!1),d=Wt()&&!!window.electronAPI?.shell,f=e.target.path,p=e.status===`ready`?e.ref:null,m=p?.displayName??f.split(/[\\/]/).pop()??f,h=p?.absolutePath??p?.workspaceRelativePath??f,g=(0,Z.useCallback)(()=>{tt(h).then(e=>{e&&(o(!0),window.setTimeout(()=>o(!1),2e3))})},[h]),_=async e=>{let n=window.electronAPI?.shell;if(!(!p?.fileRefId||!d||!n||l)){c(``),u(!0);try{let r=await vH(p.fileRefId,e,{sessionKey:t?.trim()||void 0});if(e===`openExternal`){let e=await n.openPath(r.absolutePath);e.ok||c(e.error)}else (await n.showItemInFolder(r.absolutePath)).success||c(i.resolveFailedDescription)}catch(e){c(e instanceof Error?e.message:String(e))}finally{u(!1)}}};return(0,$.jsxs)(`div`,{className:X(`mt-2 flex max-w-xl min-w-0 flex-col gap-1.5 rounded-lg border px-2.5 py-2 text-xs`,e.status===`ready`&&e.ref.exists&&e.ref.scope!==`missing`?`border-edge-subtle bg-surface-panel`:`border-warning/30 bg-warning/5`),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[e.status===`loading`?(0,$.jsx)(je,{className:`size-3.5 shrink-0 animate-spin text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):e.status===`error`||p?.scope===`missing`||p?.scope===`invalid`?(0,$.jsx)(xs,{className:`size-3.5 shrink-0 text-warning`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Nf,{className:`size-3.5 shrink-0 text-accent`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:m}),(0,$.jsx)(`button`,{type:`button`,onClick:n,className:X(`ml-auto inline-flex size-5 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.focusRingPanel),"aria-label":i.closeActions,children:(0,$.jsx)(Ne,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0})})]}),(0,$.jsx)(`p`,{className:`line-clamp-2 break-all text-[11px] leading-snug text-fg-muted`,children:e.status===`loading`?i.resolvingDescription:e.status===`error`?e.message:p?.scope===`missing`?i.missingDescription:p?.scope===`invalid`?i.invalidDescription:d?i.externalDescription:i.browserExternalDescription}),(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1 pt-0.5`,children:[d&&p?.capabilities.includes(`openExternal`)?(0,$.jsxs)(`button`,{type:`button`,className:$X,disabled:l,onClick:()=>void _(`openExternal`),children:[(0,$.jsx)(ge,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.openExternal})]}):null,d&&p?.capabilities.includes(`revealInFolder`)?(0,$.jsxs)(`button`,{type:`button`,className:$X,disabled:l,onClick:()=>void _(`revealInFolder`),children:[(0,$.jsx)(Tp,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.revealInFolder})]}):null,p?.manageRoute?(0,$.jsxs)(`a`,{className:$X,href:`#${p.manageRoute}`,children:[(0,$.jsx)(Kv,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:rt(r).nav.settings})]}):null,(0,$.jsxs)(`button`,{type:`button`,className:$X,onClick:g,children:[(0,$.jsx)(G,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:a?rt(r).chat.messageCopied:i.copyPath})]})]}),s?(0,$.jsx)(`p`,{role:`alert`,className:`text-warning`,children:s}):null]})}var $X=X(`inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,gk.focusRingPanel,gk.press);function eZ(e){let t=(0,Q.c)(35),{content:n,compact:r,sessionKey:i,projectId:a,streaming:o,animateInitialContent:s,onProgressiveRenderComplete:c}=e,l=o===void 0?!1:o,u=s===void 0?!1:s,d=`assistant-markdown-${(0,Z.useId)()}`,f=qX(n,l,d,u,c),[p,m]=(0,Z.useState)(l||u),h,g;t[0]===l?(h=t[1],g=t[2]):(h=()=>{l&&m(!0)},g=[l],t[0]=l,t[1]=h,t[2]=g),(0,Z.useEffect)(h,g);let _=l||f!==n,v=l||p,y=f,b;t[3]===y?b=t[4]:(b=ve(y),t[3]=y,t[4]=b);let x=b,S,C;t[5]!==d||t[6]!==_?(S=()=>{if(_)return Oe(d),()=>Te(d)},C=[d,_],t[5]=d,t[6]=_,t[7]=S,t[8]=C):(S=t[7],C=t[8]),(0,Z.useEffect)(S,C);let w,T;t[9]!==d||t[10]!==v||t[11]!==x?(w=()=>{if(!v)return;let e=x.at(-1);Ee(d,Math.max(0,x.length-1),e?.content.length??0)},T=[d,v,x],t[9]=d,t[10]=v,t[11]=x,t[12]=w,t[13]=T):(w=t[12],T=t[13]),(0,Z.useEffect)(w,T);let E=XU(nZ),D=ct(tZ),O;t[14]===D?O=t[15]:(O=rt(D),t[14]=D,t[15]=O);let k=O.chat.fileReference,[A,j]=(0,Z.useState)(null),M;t[16]!==k.resolveFailedDescription||t[17]!==a||t[18]!==i||t[19]!==E?(M=e=>{if(e.kind===`workspace-relative`){E(e.path,e.line,a,i),j(null);return}j({status:`loading`,target:e}),_H(e.path,{projectId:a?.trim()||void 0,sessionKey:i?.trim()||void 0}).then(t=>{if(!t){j({status:`error`,target:e,message:k.resolveFailedDescription});return}if(t.scope===`workspace`&&t.workspaceRelativePath){E(t.workspaceRelativePath,e.line,a,i),j(null);return}j({status:`ready`,target:e,ref:t})}).catch(t=>{j({status:`error`,target:e,message:t instanceof Error?t.message:String(t)})})},t[16]=k.resolveFailedDescription,t[17]=a,t[18]=i,t[19]=E,t[20]=M):M=t[20];let N=M,P;t[21]!==r||t[22]!==n||t[23]!==d||t[24]!==N||t[25]!==v||t[26]!==_||t[27]!==x?(P=v?(0,$.jsx)(`div`,{className:`markdown-stream-blocks`,children:x.map(e=>(0,$.jsx)(ke,{content:_&&e.isTail?NX(e.content):e.content,compact:r,className:X(`markdown-stream-block`,e.isTail&&`markdown-stream-tail`),onWorkspaceFileOpen:N,renderMermaid:!_||!e.isTail,mermaidActions:!0,streamingMetricsKey:d},e.key))}):(0,$.jsx)(ke,{content:n,compact:r,onWorkspaceFileOpen:N,mermaidActions:!0}),t[21]=r,t[22]=n,t[23]=d,t[24]=N,t[25]=v,t[26]=_,t[27]=x,t[28]=P):P=t[28];let F;t[29]!==A||t[30]!==i?(F=A?(0,$.jsx)(QX,{resolution:A,sessionKey:i,onClose:()=>j(null)}):null,t[29]=A,t[30]=i,t[31]=F):F=t[31];let I;return t[32]!==P||t[33]!==F?(I=(0,$.jsxs)($.Fragment,{children:[P,F]}),t[32]=P,t[33]=F,t[34]=I):I=t[34],I}function tZ(e){return e.language}function nZ(e){return e.setPath}function rZ(e,t,n,r,i,a,o,s,c,l,u){if(e.type===`text`){if(n)return(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(cX,{text:rR(e.text??``)})},t);let i=AG(e),a=xX(i??``);return a?(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(vX,{payload:a})},t):(0,$.jsx)(`div`,{className:`assistant-markdown-content markdown-content min-w-0`,children:(0,$.jsx)(eZ,{content:i,compact:!0,sessionKey:s,projectId:c,streaming:r,animateInitialContent:l,onProgressiveRenderComplete:u})},t)}if(e.type===`image`&&e.source?.data){let n=o??0;return a?(0,$.jsx)(`button`,{type:`button`,className:X(`inline-block max-w-full rounded-lg p-0 text-left`,gk.press,gk.focusRingPanel,`cursor-pointer`),onClick:()=>a(e,n),title:i,"aria-label":i,children:(0,$.jsx)(`img`,{src:e.source.data,className:`max-h-48 max-w-64 rounded-lg align-top object-contain`,alt:``})},t):(0,$.jsx)(`img`,{src:e.source.data,className:`max-h-48 max-w-64 rounded-lg object-contain`,alt:``},t)}return e.type===`review`?(0,$.jsx)(XX,{review:e},t):null}function iZ(e,t,n){let r=e.filter(e=>e.type===`tool_use`),i=t.active&&n;return{blocks:e,active:i,failedCount:r.filter(e=>e.status===`error`||e.activity?.status===`failed`).length,hasTool:r.length>0,expandedByDefault:t.expandedByDefault&&i,...JX(e,n?t.completedAt:void 0)}}function aZ(e){let t=(0,Q.c)(20),{content:n,isUser:r,isAssistantMessageStreaming:i,toolLabels:a,stepLabels:o,clusterLabels:s,cardLabels:c,imagePreviewLabel:l,onImagePreview:u,sessionKey:d,projectId:f,workflowOptions:p,assistantActivity:m,progressiveRender:h,onProgressiveRenderComplete:g}=e,_=h===void 0?!1:h,v;if(t[0]!==m||t[1]!==c||t[2]!==s||t[3]!==n||t[4]!==l||t[5]!==i||t[6]!==r||t[7]!==u||t[8]!==g||t[9]!==_||t[10]!==f||t[11]!==d||t[12]!==o||t[13]!==a||t[14]!==p){let e=r?n:PX(n),h=[],y,b;t[16]!==m?.blocks||t[17]!==r?(y=r?[]:m?.blocks??[],b=new Set(y.filter(cZ).map(sZ)),t[16]=m?.blocks,t[17]=r,t[18]=y,t[19]=b):(y=t[18],b=t[19]);let x=b,S=y.some(oZ),C=0,w=y.length,T=0,E=0;for(;T<e.length;){let t=e[T];if(t.type===`thinking`||t.type===`tool_use`){let t=[];for(;T<e.length;){let n=e[T];if(n.type!==`thinking`&&n.type!==`tool_use`)break;(n.type===`tool_use`&&x.has(n.id)||n.type===`thinking`&&S&&(n.text?.trim()||n.streaming))&&t.push(n),T++}!r&&m&&t.length>0&&(w-=t.length,h.push((0,$.jsx)(SY,{activity:iZ(t,m,w===0),toolLabels:a,stepLabels:o,clusterLabels:s,cardLabels:c,sessionKey:d,workflowOptions:p},`turn-activity-${C}`)),C++)}else{let e=t.type===`image`?E++:0,n=rZ(t,`block-${T}`,r,i,l,u,t.type===`image`?e:T,d,f,_,g);n&&h.push(n),T++}}v=(0,$.jsx)($.Fragment,{children:h}),t[0]=m,t[1]=c,t[2]=s,t[3]=n,t[4]=l,t[5]=i,t[6]=r,t[7]=u,t[8]=g,t[9]=_,t[10]=f,t[11]=d,t[12]=o,t[13]=a,t[14]=p,t[15]=v}else v=t[15];return v}function oZ(e){return e.type===`thinking`}function sZ(e){return e.id}function cZ(e){return e.type===`tool_use`}function lZ(e){return e?new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):``}function uZ(e){return e===`zh`?mZ():pZ()}function dZ(){return{close:`Close`,statusQueued:`Queued`,statusRunning:`Running`,statusDone:`Completed`,statusError:`Failed`,statusSkipped:`Skipped`,workedFor:e=>`Worked for ${e}`,statusHeading:`Status`,phaseHeading:`Phase`,elapsedHeading:`Elapsed`,currentStepHeading:`Current step`,executionHeading:`Execution process`,outputHeading:`Output`,stepsHeading:`Steps`,transcriptHeading:`Transcript`,promptHeading:`Prompt`,logsHeading:`Workflow logs`,runningPlaceholder:`Waiting for check updates…`}}function fZ(){return{close:`关闭`,statusQueued:`排队中`,statusRunning:`运行中`,statusDone:`已完成`,statusError:`失败`,statusSkipped:`已跳过`,workedFor:e=>`已运行 ${e}`,statusHeading:`状态`,phaseHeading:`阶段`,elapsedHeading:`耗时`,currentStepHeading:`当前步骤`,executionHeading:`执行过程`,outputHeading:`产出`,stepsHeading:`步骤`,transcriptHeading:`Transcript`,promptHeading:`输入`,logsHeading:`工作流日志`,runningPlaceholder:`等待检查项更新…`}}function pZ(){return{header:{collapse:`Collapse`,expand:`Expand`,runningMeta:(e,t)=>t?`${e} · ${t}`:`${e}`,completedMeta:(e,t)=>t?`✓ ${e} · ${t}`:`✓ ${e}`,failedMeta:`failed`},phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} running`,errorsTag:e=>`· ${e} errors`,skippedTag:e=>`· ${e} skipped`,showPrompt:`Show prompt`,hidePrompt:`Hide prompt`,promptHeading:`Prompt`,resultPreviewHeading:`Result`,errorHeading:`Error`,emptyPreview:`(no preview)`,agentNumber:e=>`Check ${e}`,queued:`Queued`,running:`Running…`,openDetail:`View check details`},checkDetail:dZ(),result:{topFindingsHeading:e=>`Top findings (${e})`,topRisksHeading:e=>`Top risks (${e})`,openQuestionsHeading:`Open questions`,moreSuffix:e=>`${e} more…`,emptyResult:`(no result)`},error:{titleValidation:`Workflow setup needs attention`,titleAbort:`Workflow aborted`,titleTimeout:`Workflow timed out`,titleRuntime:`Workflow failed`,expand:`Expand details`,collapse:`Collapse details`,expandHint:`Click to see error details`,detailsHeading:`Failure reason`,impactHeading:`Impact`,recoveryHeading:`Recommended actions`,recoveryActions:{validation_error:[`Open the workflow and review the highlighted steps.`,`Reconnect any step that cannot reach the final result.`],aborted:[`The run was stopped. Start it again if you still need the result.`],timeout:[`Retry the workflow.`,`If it times out again, reduce concurrency or check model/API availability.`],runtime_error:[`Review the failed check first.`,`Use completed check results if they are still relevant.`,`Copy the error details if you want to continue diagnosis.`]},logsHeading:`Technical logs`,failedAgentsHeading:`Check status`,executedAgentsHeading:`Check status`,progressHeading:`Execution process`,noExtraDetails:`No additional details recorded.`,copyReason:`Copy`,copyReasonDone:`Copied`,impactTpl:(e,t,n)=>`${e}/${t} checks completed · ${n} need attention`,phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} running`,errorsTag:e=>`· ${e} errors`,skippedTag:e=>`· ${e} skipped`,showPrompt:`Show prompt`,hidePrompt:`Hide prompt`,promptHeading:`Prompt`,resultPreviewHeading:`Result`,errorHeading:`Error`,emptyPreview:`(no preview)`,agentNumber:e=>`Check ${e}`,queued:`Queued`,running:`Running…`,openDetail:`View check details`}},saveAria:`Copy and edit workflow…`,saveTitle:`Open a copied workflow draft in the Workflows center`,copyAria:`Copy result`,copyDoneAria:`Copied`,openInWorkflowsAria:`Open task details`,openInWorkflowsTitle:`Open this task in the task center`,viewSubagentsHeading:`View checks`,runningProgressHeading:`Current progress`,runningAgentsHeading:`Running checks`,completedAgentsHeading:`Completed checks`,queuedAgentsHeading:`Queued checks`,failedAgentsHeading:`Needs attention`,currentProgressTpl:(e,t,n,r)=>`${e?`Step: ${e}`:`Task is running`} · ${t} running · ${n}/${r} completed`,recentLogsHeading:`Recent updates`,showAllLogs:`Show all`,live:{details:`Details`,openRun:`Open run`,stop:`Stop`,close:`Close workflow details`,title:`Task`,overview:`Overview`,agents:`Checks`,logs:`Logs`,result:`Result`,currentState:`Current state`,runId:`Run ID`,elapsed:`Elapsed`,progress:(e,t)=>`${e}/${t} checks`,activeFallback:`Task is running`,noResult:`No result recorded yet.`,status:{queued:`Queued`,running:`Running`,succeeded:`Completed`,failed:`Failed`,cancelled:`Cancelled`,timeout:`Timed out`}}}}function mZ(){return{header:{collapse:`收起`,expand:`展开`,runningMeta:(e,t)=>t?`${e} · ${t}`:`${e}`,completedMeta:(e,t)=>t?`✓ ${e} · ${t}`:`✓ ${e}`,failedMeta:`失败`},phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} 运行中`,errorsTag:e=>`· ${e} 失败`,skippedTag:e=>`· ${e} 已跳过`,showPrompt:`查看 prompt`,hidePrompt:`收起 prompt`,promptHeading:`Prompt`,resultPreviewHeading:`结果预览`,errorHeading:`错误`,emptyPreview:`(暂无预览)`,agentNumber:e=>`检查 ${e}`,queued:`排队中`,running:`运行中…`,openDetail:`查看检查项详情`},checkDetail:fZ(),result:{topFindingsHeading:e=>`主要发现(${e})`,topRisksHeading:e=>`主要风险(${e})`,openQuestionsHeading:`待解决的问题`,moreSuffix:e=>`还有 ${e} 条…`,emptyResult:`(无结果)`},error:{titleValidation:`工作流配置需要处理`,titleAbort:`工作流已中止`,titleTimeout:`工作流超时`,titleRuntime:`工作流执行失败`,expand:`展开详情`,collapse:`收起详情`,expandHint:`点击查看错误详情`,detailsHeading:`失败原因`,impactHeading:`影响范围`,recoveryHeading:`建议处理`,recoveryActions:{validation_error:[`打开工作流并查看高亮的问题步骤。`,`重新连接无法到达最终结果的步骤。`],aborted:[`本次执行已停止。如仍需要结果,可以重新运行。`],timeout:[`重新运行工作流。`,`如果仍然超时,建议降低并发或检查模型/API 可用性。`],runtime_error:[`优先查看失败检查项。`,`已完成检查项的结果仍可按需参考。`,`需要继续诊断时,可以复制错误详情。`]},logsHeading:`技术日志`,failedAgentsHeading:`检查项状态`,executedAgentsHeading:`检查项状态`,progressHeading:`执行过程`,noExtraDetails:`没有更多诊断信息。`,copyReason:`复制`,copyReasonDone:`已复制`,impactTpl:(e,t,n)=>`已完成 ${e}/${t} 个检查项 · ${n} 个需要关注`,phase:{countTpl:(e,t)=>`${e}/${t}`,runningTag:e=>`· ${e} 运行中`,errorsTag:e=>`· ${e} 失败`,skippedTag:e=>`· ${e} 已跳过`,showPrompt:`查看 prompt`,hidePrompt:`收起 prompt`,promptHeading:`Prompt`,resultPreviewHeading:`结果预览`,errorHeading:`错误`,emptyPreview:`(暂无预览)`,agentNumber:e=>`检查 ${e}`,queued:`排队中`,running:`运行中…`,openDetail:`查看检查项详情`}},saveAria:`复制并编辑工作流…`,saveTitle:`在工作流中心打开复制草案`,copyAria:`复制结果`,copyDoneAria:`已复制`,openInWorkflowsAria:`打开任务详情`,openInWorkflowsTitle:`在任务中心查看此任务`,viewSubagentsHeading:`查看检查项`,runningProgressHeading:`当前进展`,runningAgentsHeading:`正在检查`,completedAgentsHeading:`已完成检查`,queuedAgentsHeading:`等待检查`,failedAgentsHeading:`需要关注`,currentProgressTpl:(e,t,n,r)=>`${e?`正在执行 ${e}`:`任务正在执行`} · ${t} 个运行中 · 已完成 ${n}/${r}`,recentLogsHeading:`最近更新`,showAllLogs:`显示全部`,live:{details:`详情`,openRun:`打开运行`,stop:`停止`,close:`关闭工作流详情`,title:`任务`,overview:`概览`,agents:`检查项`,logs:`日志`,result:`结果`,currentState:`当前状态`,runId:`运行 ID`,elapsed:`耗时`,progress:(e,t)=>`${e}/${t} 个检查项`,activeFallback:`任务正在执行`,noResult:`暂无结果。`,status:{queued:`排队中`,running:`运行中`,succeeded:`已完成`,failed:`失败`,cancelled:`已取消`,timeout:`超时`}}}}var hZ=`xopc-attachment`,gZ=/^xopc-attachment:\/\/notes\/([^/]+)\/([^/?#]+)$/i,_Z=/^\/api\/notes\/([^/]+)\/media\/([^/?#]+)$/i;function vZ(e,t){return`${hZ}://notes/${encodeURIComponent(e)}/${encodeURIComponent(t)}`}function yZ(e,t){let n=e.trim();if(!n)return null;let r=n.split(`?`)[0],i=r.match(gZ),a=r.match(_Z),o=i??a;if(!o)return null;let s=decodeURIComponent(o[1]),c=decodeURIComponent(o[2]);return t&&s!==t?null:{noteId:s,attachmentId:c}}function bZ(e,t){return`/api/notes/${encodeURIComponent(e)}/media/${encodeURIComponent(t)}`}var xZ=new Map,SZ=``;function CZ(e,t,n){return`${n}:${e}:${t}`}function wZ(){let e=ut.getState().token??``;if(e!==SZ){for(let e of xZ.values())e.objectUrl&&URL.revokeObjectURL(e.objectUrl);xZ.clear(),SZ=e}}async function TZ(e,t){wZ();let n=CZ(e,t,ut.getState().token??``),r=xZ.get(n);return r||(r={blob:(async()=>{let n=await ot(Y(bZ(e,t)));if(n.status===401&&ut.getState().onUnauthorized(),!n.ok)throw Error(`HTTP ${n.status}`);return n.blob()})(),objectUrl:null,refCount:0},xZ.set(n,r)),r.blob}async function EZ(e,t){wZ();let n=CZ(e,t,ut.getState().token??``),r=xZ.get(n);if(r||(r={blob:TZ(e,t),objectUrl:null,refCount:0},xZ.set(n,r)),!r.objectUrl){let e=await r.blob;r.objectUrl=URL.createObjectURL(e)}return r.refCount+=1,r.objectUrl}function DZ(e,t){wZ();let n=CZ(e,t,ut.getState().token??``),r=xZ.get(n);r&&(r.refCount=Math.max(0,r.refCount-1),r.refCount===0&&r.objectUrl&&(URL.revokeObjectURL(r.objectUrl),r.objectUrl=null,xZ.delete(n)))}var OZ={noteId:null,attachmentId:null,playing:!1,currentTime:0,duration:0,loading:!1},kZ=null,AZ=null,jZ=null,MZ=null;function NZ(){return kZ||(kZ=new Audio,kZ.addEventListener(`timeupdate`,()=>{FZ.setState({currentTime:kZ.currentTime})}),kZ.addEventListener(`loadedmetadata`,()=>{let e=kZ.duration;Number.isFinite(e)&&FZ.setState({duration:e})}),kZ.addEventListener(`ended`,()=>{FZ.setState({playing:!1,currentTime:0}),kZ.currentTime=0}),kZ.addEventListener(`pause`,()=>{FZ.setState({playing:!1})}),kZ.addEventListener(`play`,()=>{FZ.setState({playing:!0})})),kZ}function PZ(){jZ&&MZ&&DZ(jZ,MZ),AZ=null,jZ=null,MZ=null}var FZ=at()((e,t)=>({...OZ,play:async(n,r,i)=>{let a=NZ(),o=t();if(o.noteId===n&&o.attachmentId===r&&AZ){a.play();return}a.pause(),PZ(),e({noteId:n,attachmentId:r,playing:!1,currentTime:0,duration:i??0,loading:!0});try{let t=await EZ(n,r);AZ=t,jZ=n,MZ=r,a.src=t,await a.play(),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:`note:${n}:${r}`}})),e({loading:!1})}catch{e({loading:!1,playing:!1}),PZ()}},pause:()=>{NZ().pause()},toggle:(e,n,r)=>{let i=t();i.noteId===e&&i.attachmentId===n&&i.playing?t().pause():t().play(e,n,r)},seek:t=>{let n=NZ();n.currentTime=t,e({currentTime:t})},reset:()=>{NZ().pause(),NZ().src=``,PZ(),e(OZ)}})),IZ=/```[\s\S]*?```|~~~[\s\S]*?~~~/g,LZ=/[^。!?!?\.\n]+[。!?!?\.]?|\n+/g;function RZ(e){return e.replace(IZ,`
|
|
58
|
+
`).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/^#{1,6}\s+/gm,``).replace(/^\s*[-*+]\s+/gm,``).replace(/^\s*\d+[.)]\s+/gm,``).replace(/[|`*_~>]/g,` `).replace(/<[^>]+>/g,` `)}function zZ(e){if(!e.trim())return``;let t=e.replace(IZ,`
|
|
59
|
+
`),n;if(typeof DOMParser>`u`)n=RZ(t);else{let e=Ce.parse(t,{gfm:!0,breaks:!1}),r=new DOMParser().parseFromString(`<main>${e}</main>`,`text/html`);r.querySelectorAll(`pre, script, style`).forEach(e=>e.remove()),r.querySelectorAll(`img`).forEach(e=>e.replaceWith(e.alt||``)),r.querySelectorAll(`br, p, h1, h2, h3, h4, h5, h6, li, tr`).forEach(e=>{e.append(r.createTextNode(`
|
|
60
|
+
`))}),n=r.body.textContent??``}return n.replace(/https?:\/\/\S+/gi,``).replace(/[\t ]+/g,` `).replace(/ *\n */g,`
|
|
61
|
+
`).replace(/\n{3,}/g,`
|
|
62
|
+
|
|
63
|
+
`).trim()}function BZ(e,t=420){let n=e.trim();if(!n)return[];let r=Math.max(20,t),i=n.match(LZ)??[n],a=[],o=``,s=()=>{let e=o.trim();e&&a.push(e),o=``};for(let e of i){let t=e.trim();if(t){if(t.length>r){s();for(let e=0;e<t.length;e+=r)a.push(t.slice(e,e+r).trim());continue}o&&o.length+t.length>r&&s(),o+=t}}return s(),a}function VZ(e,t){let n=(e.match(/[\u3400-\u9fff]/g)??[]).length,r=(e.match(/[A-Za-z]/g)??[]).length;return n===0&&r===0?t===`zh`?`zh-CN`:`en-US`:n*2>=r?`zh-CN`:`en-US`}var HZ=`xopc:read-aloud-online-consent:v1`,UZ=`read-aloud`,WZ={source:null,status:`idle`,currentChunkIndex:0,chunkCount:0,currentTime:0,duration:0,rate:1,error:null,consentRequired:!1},GZ=null,KZ=null,qZ=null,JZ=[],YZ=[],XZ=[],ZZ=new Map,QZ=null,$Z=0,eQ=!1;function tQ(){if(eQ)return!0;try{return localStorage.getItem(HZ)===`accepted`}catch{return!1}}function nQ(){for(let e of YZ)e&&URL.revokeObjectURL(e);YZ=[],XZ=[],ZZ.clear()}function rQ(e){return XZ.slice(0,e).reduce((e,t)=>e+(t||0),0)}async function iQ(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:t.error?.message||`Speech request failed (${e.status})`}async function aQ(e,t){let n=YZ[e];if(n)return n;let r=ZZ.get(e);if(r)return r;let i=KZ;if(!i||!JZ[e])throw Error(`Speech chunk is unavailable`);let a=(async()=>{let n=await ot(Y(`/api/voice/speech`),{method:`POST`,signal:QZ?.signal,body:JSON.stringify({text:JZ[e],language:i.language})});if(!n.ok)throw Error(await iQ(n));let r=await n.blob();if(!r.size)throw Error(`Speech service returned empty audio`);if(t!==$Z)throw new DOMException(`Stale speech request`,`AbortError`);let a=URL.createObjectURL(r);return YZ[e]=a,a})();ZZ.set(e,a);try{return await a}finally{ZZ.delete(e)}}async function oQ(e,t){let n=sQ();uQ.setState({status:`preparing`,currentChunkIndex:e,error:null});try{let r=await aQ(e,t);if(t!==$Z||(n.src=r,n.playbackRate=uQ.getState().rate,await n.play(),t!==$Z))return;uQ.setState({status:`playing`}),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:UZ}})),e+1<JZ.length&&aQ(e+1,t).catch(()=>void 0)}catch(e){if(t!==$Z||e instanceof DOMException&&e.name===`AbortError`)return;let n=e instanceof Error?e.message:String(e);uQ.setState({status:`error`,error:n})}}function sQ(){return GZ||(GZ=new Audio,GZ.preload=`metadata`,GZ.addEventListener(`loadedmetadata`,()=>{if(!GZ)return;let e=uQ.getState().currentChunkIndex;Number.isFinite(GZ.duration)&&(XZ[e]=GZ.duration),uQ.setState({duration:XZ.reduce((e,t)=>e+(t||0),0)})}),GZ.addEventListener(`timeupdate`,()=>{if(!GZ)return;let e=uQ.getState().currentChunkIndex;uQ.setState({currentTime:rQ(e)+GZ.currentTime})}),GZ.addEventListener(`pause`,()=>{uQ.getState().status===`playing`&&uQ.setState({status:`paused`})}),GZ.addEventListener(`ended`,()=>{let e=uQ.getState().currentChunkIndex+1;e<JZ.length?oQ(e,$Z):(uQ.setState({status:`paused`,currentTime:0,currentChunkIndex:0}),GZ&&(GZ.currentTime=0))}),GZ.addEventListener(`error`,()=>{uQ.getState().status!==`idle`&&uQ.setState({status:`error`,error:`Audio playback failed`})}),window.addEventListener(`xopc-voice-recording-start`,()=>uQ.getState().pause()),window.addEventListener(`xopc-voice-playback-start`,e=>{let t=e.detail?.id;t&&t!==UZ&&uQ.getState().pause()}),GZ)}function cQ(){$Z+=1,QZ?.abort(),QZ=null,GZ&&(GZ.pause(),GZ.removeAttribute(`src`),GZ.load()),nQ(),JZ=[],KZ=null,uQ.setState({...WZ,rate:uQ.getState().rate})}function lQ(e){cQ();let t=BZ(e.text);if(!t.length){uQ.setState({status:`error`,error:`There is no readable text`});return}KZ=e,JZ=t,YZ=Array.from({length:JZ.length},()=>null),XZ=Array.from({length:JZ.length},()=>0),QZ=new AbortController;let n=$Z;FZ.getState().pause(),uQ.setState({source:e.source,status:`preparing`,currentChunkIndex:0,chunkCount:JZ.length,currentTime:0,duration:0,error:null,consentRequired:!1}),oQ(0,n)}var uQ=at()((e,t)=>({...WZ,requestStart:n=>{let r=t(),i=r.source?.type===n.source.type&&r.source.id===n.source.id;if(i&&r.status===`playing`&&KZ?.text===n.text){t().pause();return}if(i&&r.status===`paused`&&KZ?.text===n.text){t().resume();return}if(!tQ()){qZ=n,e({consentRequired:!0});return}lQ(n)},acceptConsent:()=>{eQ=!0;try{localStorage.setItem(HZ,`accepted`)}catch{}let t=qZ;qZ=null,e({consentRequired:!1}),t&&lQ(t)},declineConsent:()=>{qZ=null,e({consentRequired:!1})},pause:()=>{if(t().status===`preparing`){cQ();return}GZ&&!GZ.paused&&GZ.pause()},resume:()=>{let n=t();if(!(!n.source||!KZ)){if(GZ?.src&&GZ.currentTime>0){GZ.playbackRate=n.rate,GZ.play().then(()=>e({status:`playing`})).catch(t=>{e({status:`error`,error:t instanceof Error?t.message:String(t)})});return}QZ=new AbortController,oQ(n.currentChunkIndex,$Z)}},stop:cQ,setRate:t=>{let n=[.75,1,1.25,1.5,2].includes(t)?t:1;GZ&&(GZ.playbackRate=n),e({rate:n})}}));function dQ(e){let t=(0,Q.c)(25),{input:n,labels:r,className:i,showLabel:a,disabled:o}=e,s=a===void 0?!1:a,c=o===void 0?!1:o,l;t[0]===n?l=t[1]:(l=typeof n==`function`?n():n,t[0]=n,t[1]=l);let u=l,d=uQ(mQ),f=uQ(pQ),p=uQ(fQ),m=d?.type===u.source.type&&d.id===u.source.id,h=m?f:`idle`,g=h===`preparing`?r.preparing:h===`playing`?r.pause:h===`paused`?r.resume:h===`error`?r.retry:r.read,_;t[2]!==n||t[3]!==p?(_=()=>p(typeof n==`function`?n():n),t[2]=n,t[3]=p,t[4]=_):_=t[4];let v;t[5]!==c||t[6]!==u.text?(v=c||!u.text.trim(),t[5]=c,t[6]=u.text,t[7]=v):v=t[7];let y=m&&(h===`playing`||h===`paused`),b=s?`h-8 gap-1.5 px-2.5 text-xs font-medium`:`size-9`,x=m&&`bg-surface-active text-accent`,S;t[8]!==i||t[9]!==b||t[10]!==x?(S=X(`inline-flex shrink-0 items-center justify-center rounded-lg text-fg-muted transition-colors transition-transform duration-150 ease-out`,`hover:bg-surface-hover hover:text-fg active:scale-95 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,b,x,i),t[8]=i,t[9]=b,t[10]=x,t[11]=S):S=t[11];let C;t[12]===h?C=t[13]:(C=h===`preparing`?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):h===`playing`?(0,$.jsx)(_v,{className:`size-4`,"aria-hidden":!0}):h===`paused`?(0,$.jsx)(Ev,{className:`size-4`,"aria-hidden":!0}):h===`error`?(0,$.jsx)(Iv,{className:`size-4`,"aria-hidden":!0}):(0,$.jsx)(eT,{className:`size-4`,"aria-hidden":!0}),t[12]=h,t[13]=C);let w;t[14]!==g||t[15]!==s?(w=s?(0,$.jsx)(`span`,{children:g}):null,t[14]=g,t[15]=s,t[16]=w):w=t[16];let T;return t[17]!==g||t[18]!==C||t[19]!==w||t[20]!==_||t[21]!==v||t[22]!==y||t[23]!==S?(T=(0,$.jsxs)(`button`,{type:`button`,onClick:_,disabled:v,title:g,"aria-label":g,"aria-pressed":y,className:S,children:[C,w]}),t[17]=g,t[18]=C,t[19]=w,t[20]=_,t[21]=v,t[22]=y,t[23]=S,t[24]=T):T=t[24],T}function fQ(e){return e.requestStart}function pQ(e){return e.status}function mQ(e){return e.source}function hQ(e){return e.filter(e=>e.type===`thinking`||e.type===`tool_use`)}function gQ(e){return e.some(e=>e.type===`text`&&e.presentation!==`pending`&&e.presentation!==`narration`&&!!e.text?.trim())}function _Q(e){let t=Ye(e,`running`);return t.category===`web`&&t.action===`search`}function vQ(e){let t=[];for(let n of e)if(!(!_Q(n.name)||n.result==null))try{let e=typeof n.result==`string`?JSON.parse(n.result):n.result,r=Array.isArray(e)?e:e?.results??[];for(let e of r)e.url&&t.push({url:e.url,title:e.title??e.url,snippet:e.snippet})}catch{}return t}function yQ({message:e,isStreaming:t,reasoningLevel:n}){let r=(e.content??[]).filter(e=>n===`off`?e.type===`thinking`?!1:e.type!==`text`||e.presentation!==`pending`&&e.presentation!==`narration`:!0),i=r.filter(e=>e.type!==`image`),a=nK(hQ(e.content??[])),o=n===`off`?a.filter(e=>e.type===`tool_use`):a,s=gQ(i),c=a.filter(e=>e.type===`tool_use`),l=[...c].reverse().find(e=>e.status===`running`||e.activity?.status===`running`),u=c.filter(e=>e.status===`error`||e.activity?.status===`failed`).length,d=t&&a.length>0,f=JX(a,t?void 0:e.completedAt??e.timestamp),p=(e.content??[]).filter(e=>e.type===`image`&&!!e.source?.data),m=new Set(e.outcome?.deliverables.map(e=>e.artifactId)),h=new Set(e.outcome?.deliverables.flatMap(e=>e.uri?[e.uri]:[])),g=[...wG(p),...e.attachments??[]].filter(e=>!(e.id&&m.has(e.id)||e.uri&&h.has(e.uri))),_;return _=t?l?`using_tool`:a.some(e=>e.type===`thinking`&&!!e.streaming)?`reasoning`:s?`answering`:`starting`:u>0?`partial`:`completed`,{displayContent:r,flowContent:i,activity:{blocks:o,active:d,failedCount:u,hasTool:c.length>0,expandedByDefault:n===`stream`&&t&&!s,...f},answer:{started:s,showStreamingCursor:t&&(o.length===0||_===`answering`)},lifecycle:{state:_,activeTool:_===`using_tool`?l:void 0},outcome:e.outcome,attachments:g,sources:vQ(c)}}function bQ(e){let t=(0,Q.c)(10),{blocks:n,sources:r,className:i}=e,a=n===void 0?[]:n,o=i===void 0?`mt-6`:i,s=rt(ct(CQ)),c=a.filter(SQ),l=r??vQ(c);if(l.length===0)return null;let u=s.chat.searchSourcesHeading.replace(`{{count}}`,String(l.length)),d;t[0]===u?d=t[1]:(d=(0,$.jsx)(`p`,{className:`mb-3 text-xs font-medium text-fg-muted`,children:u}),t[0]=u,t[1]=d);let f;t[2]===l?f=t[3]:(f=l.map(xQ),t[2]=l,t[3]=f);let p;t[4]===f?p=t[5]:(p=(0,$.jsx)(`ol`,{className:`space-y-3`,children:f}),t[4]=f,t[5]=p);let m;return t[6]!==o||t[7]!==d||t[8]!==p?(m=(0,$.jsxs)(`div`,{className:o,children:[d,p]}),t[6]=o,t[7]=d,t[8]=p,t[9]=m):m=t[9],m}function xQ(e,t){let n=(()=>{try{return new URL(e.url).hostname}catch{return``}})(),r=n?`https://www.google.com/s2/favicons?domain=${n}&sz=16`:void 0;return(0,$.jsxs)(`li`,{className:`flex min-w-0 gap-2.5`,children:[(0,$.jsxs)(`span`,{className:`mt-0.5 shrink-0 text-xs text-fg-disabled`,children:[t+1,`.`]}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-start gap-1.5`,children:[r?(0,$.jsx)(`img`,{src:r,alt:``,className:`mt-0.5 size-3.5 shrink-0 rounded-sm`,"aria-hidden":!0}):null,(0,$.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`min-w-0 flex-1 break-words text-xs font-medium text-accent-fg [overflow-wrap:anywhere] hover:underline`,children:e.title})]}),e.snippet?(0,$.jsx)(`p`,{className:`mt-0.5 line-clamp-4 text-xs break-words text-fg-muted [overflow-wrap:anywhere]`,children:e.snippet}):null]})]},e.url)}function SQ(e){return e.type===`tool_use`}function CQ(e){return e.language}function wQ(e){return e===void 0?null:e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function TQ(e){return e.uri?{id:e.artifactId,name:e.title,type:e.kind,mimeType:e.mimeType,size:e.sizeBytes,uri:e.uri,workspaceRelativePath:e.workspaceRelativePath}:null}function EQ(e){let t=(0,Q.c)(23),{outcome:n,authToken:r,sessionKey:i,projectId:a}=e,o=rt(ct(PQ)).chat.turnOutcome,s;t[0]!==n.changeSet||t[1]!==n.deliverables.length||t[2]!==n.evidence.length?(s=[],n.deliverables.length>0&&s.push(`deliverables`),n.changeSet&&s.push(`changes`),n.evidence.length>0&&s.push(`evidence`),t[0]=n.changeSet,t[1]=n.deliverables.length,t[2]=n.evidence.length,t[3]=s):s=t[3];let c=s,[l,u]=(0,Z.useState)(c[0]??`changes`),d=c.includes(l)?l:c[0],[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(!1);if(!d)return null;let g=n.evidence.filter(NQ).length,_=n.evidence.filter(MQ).length,v=n.status===`succeeded`?o.statusSucceeded:n.status===`failed`?o.statusFailed:o.statusPartial,y=n.status===`succeeded`?W:uc,b=m?n.deliverables:n.deliverables.slice(0,3),x=b.map(TQ).filter(jQ),S=b.filter(AQ),C=b.filter(kQ),w=e=>e===`deliverables`?`${o.deliverables} ${n.deliverables.length}`:e===`changes`?`${o.changes} ${n.changeSet?.files.length??0}`:`${o.evidence} ${n.evidence.length}`,T=o.heading,E=v?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{className:n.status===`succeeded`?`grid size-5 place-items-center rounded-full bg-success/10 text-success`:`grid size-5 place-items-center rounded-full bg-danger/10 text-danger`,children:(0,$.jsx)(y,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0})}),(0,$.jsx)(`span`,{children:v})]}):null,D=`${v?`mt-1 `:``}text-xs leading-5 text-fg-muted`,O=[n.deliverables.length>0?o.deliverableCount.replace(`{{count}}`,String(n.deliverables.length)):null,n.changeSet?o.changedFileCount.replace(`{{count}}`,String(n.changeSet.files.length)):null,g>0?o.passedCount.replace(`{{count}}`,String(g)):null,_>0?o.failedCount.replace(`{{count}}`,String(_)):null].filter(Boolean).join(` · `),k;t[4]!==D||t[5]!==O?(k=(0,$.jsx)(`p`,{className:D,children:O}),t[4]=D,t[5]=O,t[6]=k):k=t[6];let A;t[7]!==E||t[8]!==k?(A=(0,$.jsx)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 px-3.5 py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0`,children:[E,k]})}),t[7]=E,t[8]=k,t[9]=A):A=t[9];let j;t[10]!==d||t[11]!==c||t[12]!==w?(j=c.length>1?(0,$.jsx)(`div`,{className:`flex min-w-0 overflow-x-auto border-y border-edge-subtle/70 bg-surface-subtle/55 px-2`,role:`tablist`,children:c.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":d===e,onClick:()=>u(e),className:d===e?`shrink-0 border-b-2 border-accent px-3 py-2 text-xs font-medium text-fg`:`shrink-0 border-b-2 border-transparent px-3 py-2 text-xs text-fg-muted transition-colors hover:text-fg`,children:w(e)},e))}):null,t[10]=d,t[11]=c,t[12]=w,t[13]=j):j=t[13];let M=d===`deliverables`?(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[x.length>0?(0,$.jsx)(_G,{attachments:x,authToken:r,sessionKey:i,projectId:a,layout:`assistant`}):null,S.map(e=>(0,$.jsxs)(`a`,{href:e.shareUrl,target:`_blank`,rel:`noreferrer`,className:`flex min-h-12 items-center gap-2.5 rounded-lg px-2 py-2 text-left transition-colors hover:bg-surface-hover`,children:[(0,$.jsx)(`span`,{className:`grid size-8 shrink-0 place-items-center rounded-lg bg-accent/10 text-accent`,children:(0,$.jsx)(ge,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:e.title}),(0,$.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:e.kind===`site`?o.site:o.sharedFile})]}),(0,$.jsx)(`span`,{className:`text-xs font-medium text-accent`,children:o.open})]},e.artifactId)),C.map(e=>(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-2.5 px-2 py-2`,children:[(0,$.jsx)(`span`,{className:`grid size-8 shrink-0 place-items-center rounded-lg bg-surface-hover text-fg-muted`,children:(0,$.jsx)(wf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:e.title}),(0,$.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:[e.mimeType,wQ(e.sizeBytes),o.location[e.location],e.availability===`available`?null:o.availability[e.availability]].filter(Boolean).join(` · `)||e.kind})]})]},e.artifactId)),n.deliverables.length>3?(0,$.jsx)(`button`,{type:`button`,className:`w-fit rounded-md px-2 py-1.5 text-xs font-medium text-accent transition-colors hover:bg-accent/10`,onClick:()=>h(OQ),"aria-expanded":m,children:m?o.showLess:o.showAll.replace(`{{count}}`,String(n.deliverables.length))}):null]}):null,N=d===`changes`&&n.changeSet?(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 px-1 py-1.5`,children:[(0,$.jsx)(`span`,{className:`grid size-8 shrink-0 place-items-center rounded-lg bg-accent/10 text-accent`,children:(0,$.jsx)(hm,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:o.changeSetTitle}),(0,$.jsx)(`div`,{className:`text-xs text-fg-muted`,children:`${o.changeStats.replace(`{{files}}`,String(n.changeSet.files.length)).replace(`{{added}}`,String(n.changeSet.added)).replace(`{{removed}}`,String(n.changeSet.removed))} · ${o.environment[n.changeSet.environment]}`})]}),n.changeSet.diff?(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1.5 text-xs font-medium text-accent transition-colors hover:bg-accent/10`,onClick:()=>p(DQ),"aria-expanded":f,children:f?o.hideDiff:o.viewDiff}):null]}),(0,$.jsxs)(`div`,{className:`mt-2 border-t border-edge-subtle/70 pt-2`,children:[n.changeSet.files.slice(0,8).map(e=>(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 px-1 py-1 text-xs`,children:[(0,$.jsx)(`span`,{className:`w-14 shrink-0 text-fg-subtle`,children:e.status?o.fileStatus[e.status]:o.fileStatus.modified}),(0,$.jsx)(`code`,{className:`min-w-0 truncate text-fg-muted`,children:e.path})]},e.path)),n.changeSet.files.length>8?(0,$.jsx)(`div`,{className:`px-1 pt-1 text-xs text-fg-subtle`,children:o.moreFiles.replace(`{{count}}`,String(n.changeSet.files.length-8))}):null]}),f?(0,$.jsxs)(`div`,{className:`mt-2`,children:[n.changeSet.diffTruncated?(0,$.jsx)(`p`,{className:`mb-2 text-xs text-warning`,children:o.diffTruncated}):null,(0,$.jsx)(`pre`,{className:`max-h-72 overflow-auto rounded-lg bg-surface-subtle p-3 text-xs leading-5 text-fg-muted`,children:(0,$.jsx)(`code`,{children:n.changeSet.diff})})]}):null]}):null,P=d===`evidence`?(0,$.jsx)(`div`,{className:`flex flex-col`,children:n.evidence.map(e=>(0,$.jsxs)(`div`,{className:`flex min-h-11 items-center gap-2.5 border-b border-edge-subtle/60 px-1 py-2 last:border-b-0`,children:[(0,$.jsx)(h_,{className:e.status===`passed`?`size-4 shrink-0 text-success`:e.status===`failed`?`size-4 shrink-0 text-danger`:`size-4 shrink-0 text-warning`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate text-xs font-medium text-fg`,children:e.label}),e.revision?(0,$.jsxs)(`div`,{className:`text-xs text-fg-subtle`,title:e.revision,children:[o.checkedRevision,` `,(0,$.jsx)(`code`,{children:e.revision.slice(0,12)})]}):null,e.logPath?(0,$.jsxs)(`details`,{className:`text-xs text-fg-subtle`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer`,children:o.commandLog}),(0,$.jsx)(`code`,{className:`break-all`,children:e.logPath})]}):null,e.durationMs===void 0?null:(0,$.jsx)(`div`,{className:`text-xs text-fg-subtle`,children:o.duration.replace(`{{ms}}`,String(e.durationMs))})]}),(0,$.jsx)(`span`,{className:e.status===`passed`?`text-xs font-medium text-success`:e.status===`failed`?`text-xs font-medium text-danger`:`text-xs font-medium text-warning`,children:e.status===`passed`?o.passed:e.status===`failed`?o.failed:o.warning})]},e.evidenceId))}):null,F;t[14]!==M||t[15]!==N||t[16]!==P?(F=(0,$.jsxs)(`div`,{className:`px-3 py-2.5`,children:[M,N,P]}),t[14]=M,t[15]=N,t[16]=P,t[17]=F):F=t[17];let I;return t[18]!==o||t[19]!==F||t[20]!==A||t[21]!==j?(I=(0,$.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge-subtle/80 bg-surface-elevated/25`,"aria-label":T,children:[A,j,F]}),t[18]=o,t[19]=F,t[20]=A,t[21]=j,t[22]=I):I=t[22],I}function DQ(e){return!e}function OQ(e){return!e}function kQ(e){return!e.uri&&!e.shareUrl}function AQ(e){return e.shareUrl}function jQ(e){return e!==null}function MQ(e){return e.status===`failed`}function NQ(e){return e.status===`passed`}function PQ(e){return e.language}function FQ(e){let t=(0,Q.c)(11),{view:n,authToken:r,sessionKey:i,projectId:a,sourcesLabel:o}=e,s;t[0]!==r||t[1]!==a||t[2]!==i||t[3]!==n.outcome?(s=n.outcome?(0,$.jsx)(EQ,{outcome:n.outcome,authToken:r,sessionKey:i,projectId:a}):null,t[0]=r,t[1]=a,t[2]=i,t[3]=n.outcome,t[4]=s):s=t[4];let c;t[5]!==o||t[6]!==n.sources?(c=n.sources.length>0?(0,$.jsx)(`section`,{className:`rounded-lg border border-edge-subtle/60 bg-surface-elevated/10 px-3 py-2.5`,"aria-label":o,children:(0,$.jsx)(bQ,{sources:n.sources,className:``})}):null,t[5]=o,t[6]=n.sources,t[7]=c):c=t[7];let l;return t[8]!==s||t[9]!==c?(l=(0,$.jsxs)($.Fragment,{children:[s,c]}),t[8]=s,t[9]=c,t[10]=l):l=t[10],l}function IQ(e){let t=(0,Q.c)(5),{attachments:n,authToken:r,sessionKey:i,projectId:a}=e;if(!n?.length)return null;let o;return t[0]!==n||t[1]!==r||t[2]!==a||t[3]!==i?(o=(0,$.jsx)(_G,{attachments:n,authToken:r,sessionKey:i,projectId:a,layout:`assistant`}),t[0]=n,t[1]=r,t[2]=a,t[3]=i,t[4]=o):o=t[4],o}function LQ(e){let t=(0,Q.c)(14),{refs:n,groupLabel:r,noteLabel:i,truncatedLabel:a,onOpen:o}=e;if(n.length===0)return null;let s;if(t[0]!==r||t[1]!==i||t[2]!==o||t[3]!==n||t[4]!==a){let e;t[6]!==r||t[7]!==i||t[8]!==o||t[9]!==a?(e=e=>(0,$.jsxs)(`button`,{type:`button`,className:`group flex w-64 max-w-full items-center gap-2.5 rounded-lg border border-edge-subtle bg-surface-panel/80 px-2.5 py-2 text-left transition-colors hover:border-accent/40 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":`${r}: ${e.title}`,title:e.truncated?a:e.title,onClick:()=>o(e),children:[(0,$.jsx)(`span`,{className:`inline-flex size-8 shrink-0 items-center justify-center rounded-md bg-accent-soft text-accent-fg`,children:(0,$.jsx)(cv,{className:`size-4`,"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block text-[11px] leading-4 text-fg-muted`,children:i}),(0,$.jsx)(`span`,{className:`block truncate text-xs font-medium text-fg`,children:e.title})]}),(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-disabled transition-transform group-hover:translate-x-0.5 group-hover:text-fg-muted`,"aria-hidden":!0})]},`${e.kind}:${e.sourceId}`),t[6]=r,t[7]=i,t[8]=o,t[9]=a,t[10]=e):e=t[10],s=n.map(e),t[0]=r,t[1]=i,t[2]=o,t[3]=n,t[4]=a,t[5]=s}else s=t[5];let c;return t[11]!==r||t[12]!==s?(c=(0,$.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,"aria-label":r,children:s}),t[11]=r,t[12]=s,t[13]=c):c=t[13],c}var RQ=X(`inline-flex size-9 shrink-0 items-center justify-center rounded-lg`,`text-fg-muted transition-colors transition-transform duration-150 ease-out`,`hover:bg-surface-hover hover:text-fg active:scale-95`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,gk.disabled),zQ=[`misunderstood_intent`,`incorrect`,`did_not_act`,`tone_mismatch`,`too_verbose`,`other`],BQ=X(`inline-flex h-8 shrink-0 items-center justify-center gap-1 rounded-md px-2 text-xs text-fg-muted transition-colors`,`hover:bg-surface-hover hover:text-fg active:scale-[0.98]`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,gk.disabled),VQ=(0,Z.memo)(function(e){let t=(0,Q.c)(340),{message:n,authToken:r,sessionKey:i,projectId:a,isStreaming:o,progress:s,reasoningLevel:c,messageIndex:u,onDeleteRound:d,onRetryUserMessageRound:f,userMessageCanRetry:m,deleteRoundDisabled:h,onSaveAssistantAsNote:g,onSaveAssistantToSourceNote:_,onExtractAssistantTask:v,onForkAssistantTurn:y,readonly:b,density:x,suppressAssistantActions:S,onEditUserMessage:C,userMessageCanEdit:w,responseFeedbackEnabled:T}=e,E=c===void 0?`on`:c,D=m===void 0?!1:m,O=h===void 0?!1:h,k=b===void 0?!1:b,A=x===void 0?`normal`:x,j=S===void 0?!1:S,M=w===void 0?!0:w,N=T===void 0?!0:T,P=ct(HQ),F;t[0]===P?F=t[1]:(F=rt(P),t[0]=P,t[1]=F);let I=F,L=p(),R=l(),z=n.role===`user`,B=n.role===`assistant`,V=z?I.chat.you:B?I.chat.assistant:I.chat.tool,H;t[2]!==R.pathname||t[3]!==R.search||t[4]!==L?(H=e=>{let t=`${R.pathname}${R.search}`;L(ye(`/notes/${encodeURIComponent(e)}`,t))},t[2]=R.pathname,t[3]=R.search,t[4]=L,t[5]=H):H=t[5];let ee=H,te;t[6]!==I.chat.noOutput||t[7]!==I.chat.toolInput||t[8]!==I.chat.toolOutput?(te={input:I.chat.toolInput,output:I.chat.toolOutput,noOutput:I.chat.noOutput},t[6]=I.chat.noOutput,t[7]=I.chat.toolInput,t[8]=I.chat.toolOutput,t[9]=te):te=t[9];let ne=te,U;t[10]!==I.chat.activityAnalysisComplete||t[11]!==I.chat.activityCompleted||t[12]!==I.chat.activityFailedCount||t[13]!==I.chat.memoryActivity||t[14]!==I.chat.rawThinking||t[15]!==I.chat.stepDetails||t[16]!==I.chat.stepEditFile||t[17]!==I.chat.stepFetchUrl||t[18]!==I.chat.stepListDirectory||t[19]!==I.chat.stepOpenUrl||t[20]!==I.chat.stepReadFile||t[21]!==I.chat.stepRunCommand||t[22]!==I.chat.stepSearched||t[23]!==I.chat.stepSearchedCode||t[24]!==I.chat.stepSearchedMemory||t[25]!==I.chat.stepSearchedWeb||t[26]!==I.chat.stepUnknownTool||t[27]!==I.chat.stepWriteFile||t[28]!==I.chat.thoughts||t[29]!==I.chat.thoughtsStreaming||t[30]!==I.chat.toolError||t[31]!==I.chat.toolFailedImpact||t[32]!==I.chat.toolRunning||t[33]!==I.chat.viewSteps_one||t[34]!==I.chat.viewSteps_other?(U={thoughts:I.chat.thoughts,thoughtsStreaming:I.chat.thoughtsStreaming,viewSteps_one:I.chat.viewSteps_one,viewSteps_other:I.chat.viewSteps_other,searchedWeb:I.chat.stepSearchedWeb,searchedMemory:I.chat.stepSearchedMemory,searchedCode:I.chat.stepSearchedCode,searched:I.chat.stepSearched,readFile:I.chat.stepReadFile,stepDetails:I.chat.stepDetails,runCommand:I.chat.stepRunCommand,listDirectory:I.chat.stepListDirectory,writeFile:I.chat.stepWriteFile,editFile:I.chat.stepEditFile,openUrl:I.chat.stepOpenUrl,fetchUrl:I.chat.stepFetchUrl,unknownTool:I.chat.stepUnknownTool,activityCompleted:I.chat.activityCompleted,activityFailedCount:I.chat.activityFailedCount,activityAnalysisComplete:I.chat.activityAnalysisComplete,toolFailedImpact:I.chat.toolFailedImpact,rawThinking:I.chat.rawThinking,toolRunning:I.chat.toolRunning,toolError:I.chat.toolError,memoryActivity:I.chat.memoryActivity},t[10]=I.chat.activityAnalysisComplete,t[11]=I.chat.activityCompleted,t[12]=I.chat.activityFailedCount,t[13]=I.chat.memoryActivity,t[14]=I.chat.rawThinking,t[15]=I.chat.stepDetails,t[16]=I.chat.stepEditFile,t[17]=I.chat.stepFetchUrl,t[18]=I.chat.stepListDirectory,t[19]=I.chat.stepOpenUrl,t[20]=I.chat.stepReadFile,t[21]=I.chat.stepRunCommand,t[22]=I.chat.stepSearched,t[23]=I.chat.stepSearchedCode,t[24]=I.chat.stepSearchedMemory,t[25]=I.chat.stepSearchedWeb,t[26]=I.chat.stepUnknownTool,t[27]=I.chat.stepWriteFile,t[28]=I.chat.thoughts,t[29]=I.chat.thoughtsStreaming,t[30]=I.chat.toolError,t[31]=I.chat.toolFailedImpact,t[32]=I.chat.toolRunning,t[33]=I.chat.viewSteps_one,t[34]=I.chat.viewSteps_other,t[35]=U):U=t[35];let ie=U,ae;t[36]!==I.chat.stepsClusterJoin||t[37]!==I.chat.stepsClusterJoinFinal||t[38]!==I.chat.stepsClusterMoreSuffix?(ae={join:I.chat.stepsClusterJoin,joinFinal:I.chat.stepsClusterJoinFinal,moreSuffix:I.chat.stepsClusterMoreSuffix},t[36]=I.chat.stepsClusterJoin,t[37]=I.chat.stepsClusterJoinFinal,t[38]=I.chat.stepsClusterMoreSuffix,t[39]=ae):ae=t[39];let oe;t[40]!==I.chat.stepsClusterDone||t[41]!==I.chat.stepsClusterIng||t[42]!==ae?(oe={done:I.chat.stepsClusterDone,ing:I.chat.stepsClusterIng,join:ae},t[40]=I.chat.stepsClusterDone,t[41]=I.chat.stepsClusterIng,t[42]=ae,t[43]=oe):oe=t[43];let ce=oe,ue=I.chat.toolCard,fe=E===`off`,me;t[44]!==B||t[45]!==o||t[46]!==n||t[47]!==E?(me=B?yQ({message:n,isStreaming:o,reasoningLevel:E}):null,t[44]=B,t[45]=o,t[46]=n,t[47]=E,t[48]=me):me=t[48];let he=me,ge;t[49]!==he?.displayContent||t[50]!==n.content?(ge=he?.displayContent??n.content??[],t[49]=he?.displayContent,t[50]=n.content,t[51]=ge):ge=t[51];let _e=ge,ve;t[52]!==he?.flowContent||t[53]!==_e||t[54]!==z?(ve=he?.flowContent??(z?_e.filter(UQ):_e),t[52]=he?.flowContent,t[53]=_e,t[54]=z,t[55]=ve):ve=t[55];let be=ve,xe;bb0:{if(he){xe=he.attachments;break bb0}xe=n.attachments}let Se=xe,Ce=!!he?.activity.blocks.length,we=fe||B&&Ce?null:s,Te;t[56]!==n.content||t[57]!==fe?(Te=fe?!1:!!n.content?.some(WQ),t[56]=n.content,t[57]=fe,t[58]=Te):Te=t[58];let Ee=Te,De=B?!!he?.answer.showStreamingCursor:o,Oe=!!n.timestamp||!!we?.message||o&&!Ee,ke=B&&!k&&!o&&!j,Ae;t[59]!==ke||t[60]!==n.content?(Ae=ke?jG(n.content??[]):``,t[59]=ke,t[60]=n.content,t[61]=Ae):Ae=t[61];let je=Ae,Me;t[62]!==ke||t[63]!==je||t[64]!==n.content?(Me=ke&&je?NG(n.content??[]):``,t[62]=ke,t[63]=je,t[64]=n.content,t[65]=Me):Me=t[65];let Ne=Me,Pe;t[66]!==ke||t[67]!==je?(Pe=ke&&je?zZ(je):``,t[66]=ke,t[67]=je,t[68]=Pe):Pe=t[68];let Fe=Pe,Ie=`${i??`chat`}:${n.timestamp??u??je.length}`,Le;t[69]!==I.chat.messageReadAloudTitle||t[70]!==Ie?(Le={type:`chat-message`,id:Ie,title:I.chat.messageReadAloudTitle},t[69]=I.chat.messageReadAloudTitle,t[70]=Ie,t[71]=Le):Le=t[71];let Re;t[72]!==P||t[73]!==Fe?(Re=VZ(Fe,P),t[72]=P,t[73]=Fe,t[74]=Re):Re=t[74];let ze;t[75]!==Fe||t[76]!==Le||t[77]!==Re?(ze={source:Le,text:Fe,language:Re},t[75]=Fe,t[76]=Le,t[77]=Re,t[78]=ze):ze=t[78];let Be=ze,Ve;bb1:{if(!z){Ve=``;break bb1}let e;t[79]===n.content?e=t[80]:(e=jR(n.content),t[79]=n.content,t[80]=e),Ve=e}let K=Ve,[He,Ue]=(0,Z.useState)(null),[We,Ge]=(0,Z.useState)(null),[q,Ke]=(0,Z.useState)(null),[qe,Je]=(0,Z.useState)(!1),[Ye,Xe]=(0,Z.useState)(null),[Ze,Qe]=(0,Z.useState)(!1),[$e,et]=(0,Z.useState)(!1),[nt,it]=(0,Z.useState)(!1),[at,ot]=(0,Z.useState)(!1),[st,lt]=(0,Z.useState)(null),ut;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(ut=[],t[81]=ut):ut=t[81];let[dt,ft]=(0,Z.useState)(ut),[pt,mt]=(0,Z.useState)(!1),[ht,gt]=(0,Z.useState)(!1),[_t,vt]=(0,Z.useState)(null),[yt,bt]=(0,Z.useState)(!1),[xt,St]=(0,Z.useState)(!1),Ct=(0,Z.useRef)(null),wt;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(wt=(e,t)=>{let n=CG(e,t);n&&vt(n)},t[82]=wt):wt=t[82];let Tt=wt,Et;t[83]!==n.renderKey||t[84]!==i?(Et=()=>{!i||!n.renderKey||Kz.getState().completeProgressiveRender(i,n.renderKey)},t[83]=n.renderKey,t[84]=i,t[85]=Et):Et=t[85];let Dt=Et,Ot;t[86]===Ne?Ot=t[87]:(Ot=()=>{Ne&&tt(Ne).then(e=>{e&&(Ue(`plain`),window.setTimeout(()=>Ue(GQ),2e3))})},t[86]=Ne,t[87]=Ot);let kt=Ot,At;t[88]===je?At=t[89]:(At=()=>{je&&tt(je).then(e=>{e&&(Ue(`markdown`),window.setTimeout(()=>Ue(KQ),2e3))})},t[88]=je,t[89]=At);let jt=At,Mt;t[90]!==q||t[91]!==je||t[92]!==g?(Mt=()=>{!je||!g||q||(Ke(`create-note`),Promise.resolve(g(je)).then(()=>{Ge(`create-note`),window.setTimeout(()=>Ge(wse),2e3)}).catch(qQ).finally(()=>Ke(null)))},t[90]=q,t[91]=je,t[92]=g,t[93]=Mt):Mt=t[93];let Nt=Mt,Pt;t[94]!==q||t[95]!==je||t[96]!==_?(Pt=()=>{!je||!_||q||(Ke(`save-source-note`),Promise.resolve(_(je)).then(()=>{Ge(`save-source-note`),window.setTimeout(()=>Ge(JQ),2e3)}).catch(YQ).finally(()=>Ke(null)))},t[94]=q,t[95]=je,t[96]=_,t[97]=Pt):Pt=t[97];let Ft=Pt,It;t[98]!==q||t[99]!==je||t[100]!==Ne||t[101]!==v?(It=()=>{!Ne&&!je||!v||q||(Ke(`extract-task`),Promise.resolve(v(Ne||je)).then(()=>{Ge(`extract-task`),window.setTimeout(()=>Ge(XQ),2e3)}).catch(ZQ).finally(()=>Ke(null)))},t[98]=q,t[99]=je,t[100]=Ne,t[101]=v,t[102]=It):It=t[102];let Lt=It,Rt;t[103]===K?Rt=t[104]:(Rt=()=>{K&&tt(K).then(e=>{e&&(Ue(`user`),window.setTimeout(()=>Ue(QQ),2e3))})},t[103]=K,t[104]=Rt);let zt=Rt,Bt;t[105]!==qe||t[106]!==n.turnId||t[107]!==y?(Bt=()=>{!n.turnId||!y||qe||(Je(!0),Promise.resolve(y(n.turnId)).catch($Q).finally(()=>Je(!1)))},t[105]=qe,t[106]=n.turnId,t[107]=y,t[108]=Bt):Bt=t[108];let Vt=Bt,Ht;t[109]!==n.turnId||t[110]!==$e?(Ht=(e,t)=>{!n.turnId||$e||(et(!0),Qe(!0),it(!1),J(Y(`/api/turns/${encodeURIComponent(n.turnId)}/execution-context/feedback`),{method:`POST`,body:JSON.stringify({rating:e===`helpful`?`helpful`:`irrelevant`,reason:t})}).then(()=>{Xe(e),lt(t??null),ot(!1)}).catch(()=>it(!0)).finally(()=>et(!1)))},t[109]=n.turnId,t[110]=$e,t[111]=Ht):Ht=t[111];let Ut=Ht,Wt;t[112]!==I.chat.messageFeedbackRepairPrompts||t[113]!==st?(Wt=()=>{st&&SG(I.chat.messageFeedbackRepairPrompts[st])},t[112]=I.chat.messageFeedbackRepairPrompts,t[113]=st,t[114]=Wt):Wt=t[114];let Gt=Wt,Kt;t[115]!==n.turnId||t[116]!==$e||t[117]!==Ze?(Kt=()=>{!n.turnId||Ze||$e||(et(!0),J(Y(`/api/turns/${encodeURIComponent(n.turnId)}/execution-context`)).then(e=>{ft(e.resolvedItems.filter(e$).map(t$))}).catch(n$).finally(()=>{Qe(!0),et(!1)}))},t[115]=n.turnId,t[116]=$e,t[117]=Ze,t[118]=Kt):Kt=t[118];let qt=Kt,Jt;t[119]!==u||t[120]!==d?(Jt=()=>{u==null||!d||gt(!0)},t[119]=u,t[120]=d,t[121]=Jt):Jt=t[121];let Yt=Jt,Xt;t[122]!==u||t[123]!==d?(Xt=()=>{u==null||!d||(d(u),gt(!1))},t[122]=u,t[123]=d,t[124]=Xt):Xt=t[124];let Zt=Xt,Qt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(Qt=()=>{gt(!1)},t[125]=Qt):Qt=t[125];let $t=Qt,en;t[126]===z?en=t[127]:(en=()=>{if(!z)return;let e=Ct.current;if(!e)return;let t=()=>{let t=window.getComputedStyle(e),n=Number.parseFloat(t.lineHeight),r=Number.parseFloat(t.fontSize)||14,i=Number.isFinite(n)?n:r*1.625;St(e.scrollHeight>i*10+1)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},t[126]=z,t[127]=en);let tn;t[128]!==be||t[129]!==z||t[130]!==K?(tn=[z,be,K],t[128]=be,t[129]=z,t[130]=K,t[131]=tn):tn=t[131],(0,Z.useLayoutEffect)(en,tn);let nn;t[132]===Symbol.for(`react.memo_cache_sentinel`)?(nn=()=>{bt(!1)},t[132]=nn):nn=t[132];let rn;t[133]!==z||t[134]!==K?(rn=[z,K],t[133]=z,t[134]=K,t[135]=rn):rn=t[135],(0,Z.useLayoutEffect)(nn,rn);let an=O||!D,on=z?`justify-end`:`justify-start`,sn;t[136]===on?sn=t[137]:(sn=X(`group/msg flex w-full min-w-0`,on),t[136]=on,t[137]=sn);let cn=z?`flex w-full max-w-[min(78%,var(--max-width-chat-user))] flex-col items-end`:`w-full max-w-[var(--max-width-chat-reading)]`,ln=k&&`max-w-full`,un;t[138]!==cn||t[139]!==ln?(un=X(`min-w-0`,cn,ln),t[138]=cn,t[139]=ln,t[140]=un):un=t[140];let dn;t[141]===V?dn=t[142]:(dn=(0,$.jsx)(`span`,{className:`sr-only`,children:V}),t[141]=V,t[142]=dn);let fn;t[143]!==o||t[144]!==z||t[145]!==I.chat.thinkingLabel||t[146]!==n.timestamp||t[147]!==we||t[148]!==Oe||t[149]!==Ee?(fn=z&&Oe?(0,$.jsxs)(`div`,{className:`mb-2 flex w-full min-w-0 flex-wrap items-center justify-end gap-x-2 gap-y-0.5 text-xs`,children:[n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`shrink-0 tabular-nums text-fg-disabled`,dateTime:new Date(n.timestamp).toISOString(),children:lZ(n.timestamp)}):null,we?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:we.detail??``,children:we.message}):null,o&&!Ee&&!we?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:I.chat.thinkingLabel}):null]}):null,t[143]=o,t[144]=z,t[145]=I.chat.thinkingLabel,t[146]=n.timestamp,t[147]=we,t[148]=Oe,t[149]=Ee,t[150]=fn):fn=t[150];let pn;t[151]!==o||t[152]!==z||t[153]!==I.chat.thinkingLabel||t[154]!==n.timestamp||t[155]!==we||t[156]!==Oe||t[157]!==Ee?(pn=!z&&Oe?(0,$.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs text-fg-disabled`,children:[n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`tabular-nums`,dateTime:new Date(n.timestamp).toISOString(),children:lZ(n.timestamp)}):null,we?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:we.detail??``,children:we.message}):null,o&&!Ee&&!we?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:I.chat.thinkingLabel}):null]}):null,t[151]=o,t[152]=z,t[153]=I.chat.thinkingLabel,t[154]=n.timestamp,t[155]=we,t[156]=Oe,t[157]=Ee,t[158]=pn):pn=t[158];let mn=z?`ltr`:void 0,hn=z&&`chat-user-message`,gn=A===`compact`?`text-sm leading-relaxed`:z?`text-[0.9375rem] leading-[1.6667]`:`text-base leading-[1.6875]`,_n=z&&`w-fit max-w-full rounded-2xl bg-surface-hover/80 px-4 py-3 text-left dark:bg-surface-hover/50`,vn;t[159]!==hn||t[160]!==gn||t[161]!==_n?(vn=X(`min-w-0 text-fg`,hn,gn,_n),t[159]=hn,t[160]=gn,t[161]=_n,t[162]=vn):vn=t[162];let yn;t[163]!==z||t[164]!==I.chat.commandPalette||t[165]!==n.contextRefs||t[166]!==ee?(yn=z&&n.contextRefs?.length?(0,$.jsx)(LQ,{refs:n.contextRefs,groupLabel:I.chat.commandPalette.noteContextLabel,noteLabel:I.chat.commandPalette.notesSection,truncatedLabel:I.chat.commandPalette.contextTruncated,onOpen:e=>ee(e.sourceId)}):null,t[163]=z,t[164]=I.chat.commandPalette,t[165]=n.contextRefs,t[166]=ee,t[167]=yn):yn=t[167];let bn;t[168]!==he?.activity||t[169]!==ue||t[170]!==ce||t[171]!==Dt||t[172]!==be||t[173]!==B||t[174]!==o||t[175]!==z||t[176]!==P||t[177]!==I.chat.attachmentPreviewImage||t[178]!==I.chat.userMessageCollapse||t[179]!==I.chat.userMessageExpand||t[180]!==n.progressiveRender||t[181]!==a||t[182]!==i||t[183]!==De||t[184]!==ie||t[185]!==ne||t[186]!==xt||t[187]!==yt?(bn=(be?.length??0)>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{ref:z?Ct:void 0,className:X(`min-w-0`,z&&`flex flex-col gap-2`,z&&!yt&&`overflow-hidden`),style:z&&!yt?{maxHeight:`calc(10lh)`}:void 0,children:(0,$.jsx)(aZ,{content:be,isUser:z,isAssistantMessageStreaming:B&&o,toolLabels:ne,stepLabels:ie,clusterLabels:ce,cardLabels:ue,imagePreviewLabel:I.chat.attachmentPreviewImage,onImagePreview:Tt,sessionKey:i,projectId:a,workflowOptions:{labels:uZ(P)},assistantActivity:he?.activity,progressiveRender:!!n.progressiveRender,onProgressiveRenderComplete:Dt})}),z&&xt?(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex w-fit items-center gap-1 rounded-md px-1.5 py-1 text-xs font-medium text-accent transition-colors hover:bg-accent/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:()=>bt(r$),"aria-expanded":yt,children:[yt?(0,$.jsx)(ls,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(is,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:yt?I.chat.userMessageCollapse:I.chat.userMessageExpand})]}):null,De?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent align-middle`}):null]}):De?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent`}):null,t[168]=he?.activity,t[169]=ue,t[170]=ce,t[171]=Dt,t[172]=be,t[173]=B,t[174]=o,t[175]=z,t[176]=P,t[177]=I.chat.attachmentPreviewImage,t[178]=I.chat.userMessageCollapse,t[179]=I.chat.userMessageExpand,t[180]=n.progressiveRender,t[181]=a,t[182]=i,t[183]=De,t[184]=ie,t[185]=ne,t[186]=xt,t[187]=yt,t[188]=bn):bn=t[188];let xn;t[189]!==he||t[190]!==r||t[191]!==I.chat.searchSourcesHeading||t[192]!==a||t[193]!==i?(xn=he?(0,$.jsx)(FQ,{view:he,authToken:r,sessionKey:i,projectId:a,sourcesLabel:I.chat.searchSourcesHeading.replace(`{{count}}`,String(he.sources.length))}):null,t[189]=he,t[190]=r,t[191]=I.chat.searchSourcesHeading,t[192]=a,t[193]=i,t[194]=xn):xn=t[194];let Sn;t[195]!==Se||t[196]!==r||t[197]!==z||t[198]!==a||t[199]!==i||t[200]!==K?(Sn=Se?.length?z?(0,$.jsx)(_G,{attachments:Se,authToken:r,sessionKey:i,layout:`user`,centerUserVoiceRow:K.length===0}):(0,$.jsx)(IQ,{attachments:Se,authToken:r,sessionKey:i,projectId:a}):null,t[195]=Se,t[196]=r,t[197]=z,t[198]=a,t[199]=i,t[200]=K,t[201]=Sn):Sn=t[201];let Cn;t[202]!==yn||t[203]!==bn||t[204]!==xn||t[205]!==Sn?(Cn=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[yn,bn,xn,Sn]}),t[202]=yn,t[203]=bn,t[204]=xn,t[205]=Sn,t[206]=Cn):Cn=t[206];let wn;t[207]!==mn||t[208]!==vn||t[209]!==Cn?(wn=(0,$.jsx)(`div`,{dir:mn,className:vn,children:Cn}),t[207]=mn,t[208]=vn,t[209]=Cn,t[210]=wn):wn=t[210];let Tn;t[211]!==He||t[212]!==O||t[213]!==zt||t[214]!==o||t[215]!==z||t[216]!==I.chat.messageCopied||t[217]!==I.chat.userMessageActionsWait||t[218]!==I.chat.userMessageCopy||t[219]!==I.chat.userMessageDelete||t[220]!==I.chat.userMessageEdit||t[221]!==I.chat.userMessageEditDisabledHint||t[222]!==I.chat.userMessageRetry||t[223]!==I.chat.userMessageRetryDisabledHint||t[224]!==n||t[225]!==u||t[226]!==d||t[227]!==C||t[228]!==f||t[229]!==Yt||t[230]!==k||t[231]!==an||t[232]!==K||t[233]!==M||t[234]!==D?(Tn=z&&!o&&!k?(0,$.jsx)(`div`,{className:`mt-1.5 flex h-8 w-full min-w-0 shrink-0 justify-end`,children:(0,$.jsxs)(`div`,{className:X(`flex h-full max-w-full items-center justify-end gap-0.5 sm:gap-2`,`pointer-events-none opacity-0 transition-opacity duration-150 ease-out`,`group-hover/msg:pointer-events-auto group-hover/msg:opacity-100`,`group-focus-within/msg:pointer-events-auto group-focus-within/msg:opacity-100`,`[@media(hover:none)_and_(pointer:coarse)]:pointer-events-auto [@media(hover:none)_and_(pointer:coarse)]:opacity-100`),children:[f&&u!=null?(0,$.jsxs)(`button`,{type:`button`,className:X(BQ,an&&`opacity-40`),onClick:()=>f(u),disabled:an,title:O?I.chat.userMessageActionsWait:D?I.chat.userMessageRetry:I.chat.userMessageRetryDisabledHint,"aria-label":I.chat.userMessageRetry,children:[(0,$.jsx)(Fv,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`max-w-[4.5rem] truncate sm:max-w-none`,children:I.chat.userMessageRetry})]}):null,(0,$.jsx)(`button`,{type:`button`,className:X(BQ,`size-8 px-0`),onClick:()=>{if(C&&u!=null){C(n,u);return}SG(K,NR(n.attachments))},disabled:!K&&!n.attachments?.length||!M,title:M?I.chat.userMessageEdit:I.chat.userMessageEditDisabledHint,"aria-label":I.chat.userMessageEdit,children:(0,$.jsx)(bv,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,className:X(BQ,`size-8 px-0`),onClick:zt,disabled:!K,title:He===`user`?I.chat.messageCopied:I.chat.userMessageCopy,"aria-label":He===`user`?I.chat.messageCopied:I.chat.userMessageCopy,children:He===`user`?(0,$.jsx)(W,{className:`size-3.5 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(G,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),d&&u!=null&&!O?(0,$.jsx)(`button`,{type:`button`,className:X(BQ,`size-8 px-0 hover:text-red-500 dark:hover:text-red-400`),onClick:Yt,title:I.chat.userMessageDelete,"aria-label":I.chat.userMessageDelete,children:(0,$.jsx)(DC,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}):null]})}):null,t[211]=He,t[212]=O,t[213]=zt,t[214]=o,t[215]=z,t[216]=I.chat.messageCopied,t[217]=I.chat.userMessageActionsWait,t[218]=I.chat.userMessageCopy,t[219]=I.chat.userMessageDelete,t[220]=I.chat.userMessageEdit,t[221]=I.chat.userMessageEditDisabledHint,t[222]=I.chat.userMessageRetry,t[223]=I.chat.userMessageRetryDisabledHint,t[224]=n,t[225]=u,t[226]=d,t[227]=C,t[228]=f,t[229]=Yt,t[230]=k,t[231]=an,t[232]=K,t[233]=M,t[234]=D,t[235]=Tn):Tn=t[235];let En;t[236]!==q||t[237]!==We||t[238]!==ke||t[239]!==He||t[240]!==je||t[241]!==Ne||t[242]!==qe||t[243]!==jt||t[244]!==kt||t[245]!==Lt||t[246]!==Vt||t[247]!==Ut||t[248]!==Nt||t[249]!==Ft||t[250]!==qt||t[251]!==I.chat.messageCopied||t[252]!==I.chat.messageCopyMarkdown||t[253]!==I.chat.messageCopyPlainText||t[254]!==I.chat.messageExtractTask||t[255]!==I.chat.messageFeedbackUnavailable||t[256]!==I.chat.messageForkCreating||t[257]!==I.chat.messageForkFromHere||t[258]!==I.chat.messageHelpful||t[259]!==I.chat.messageMoreActions||t[260]!==I.chat.messageNotHelpful||t[261]!==I.chat.messageReadAloud||t[262]!==I.chat.messageReadAloudPause||t[263]!==I.chat.messageReadAloudPreparing||t[264]!==I.chat.messageReadAloudResume||t[265]!==I.chat.messageReadAloudRetry||t[266]!==I.chat.messageSaveToNote||t[267]!==I.chat.messageSaveToSourceNote||t[268]!==I.chat.messageSavedToNote||t[269]!==I.chat.messageSavedToSourceNote||t[270]!==I.chat.messageTaskExtracted||t[271]!==I.chat.messageWhyThisAnswer||t[272]!==n.timestamp||t[273]!==n.turnId||t[274]!==v||t[275]!==y||t[276]!==g||t[277]!==_||t[278]!==Be||t[279]!==Ye||t[280]!==$e||t[281]!==N||t[282]!==nt||t[283]!==dt||t[284]!==i?(En=ke&&je?(0,$.jsxs)(`div`,{className:`mt-2 flex shrink-0 flex-wrap items-center gap-2 overflow-visible`,onPointerEnter:qt,onFocusCapture:qt,children:[(0,$.jsx)(`button`,{type:`button`,className:RQ,onClick:kt,disabled:!Ne,title:He===`plain`?I.chat.messageCopied:I.chat.messageCopyPlainText,"aria-label":He===`plain`?I.chat.messageCopied:I.chat.messageCopyPlainText,children:He===`plain`?(0,$.jsx)(W,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(G,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(dQ,{input:Be,labels:{read:I.chat.messageReadAloud,preparing:I.chat.messageReadAloudPreparing,pause:I.chat.messageReadAloudPause,resume:I.chat.messageReadAloudResume,retry:I.chat.messageReadAloudRetry}}),y&&n.turnId?(0,$.jsx)(`button`,{type:`button`,className:RQ,onClick:Vt,disabled:qe,title:qe?I.chat.messageForkCreating:I.chat.messageForkFromHere,"aria-label":qe?I.chat.messageForkCreating:I.chat.messageForkFromHere,children:(0,$.jsx)(_m,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}):null,g?(0,$.jsx)(`button`,{type:`button`,className:RQ,onClick:Nt,disabled:q!==null,title:We===`create-note`?I.chat.messageSavedToNote:I.chat.messageSaveToNote,"aria-label":We===`create-note`?I.chat.messageSavedToNote:I.chat.messageSaveToNote,children:We===`create-note`?(0,$.jsx)(W,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(ff,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}):null,N&&i&&n.timestamp?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,className:X(RQ,Ye===`helpful`&&`bg-surface-active text-fg`),onClick:()=>Ut(`helpful`),disabled:$e,title:I.chat.messageHelpful,"aria-label":I.chat.messageHelpful,"aria-pressed":Ye===`helpful`,children:(0,$.jsx)(JS,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,className:X(RQ,Ye===`not_helpful`&&`bg-surface-active text-fg`),onClick:()=>ot(i$),disabled:$e,title:I.chat.messageNotHelpful,"aria-label":I.chat.messageNotHelpful,"aria-pressed":Ye===`not_helpful`,children:(0,$.jsx)(qS,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),nt?(0,$.jsx)(`span`,{className:`text-xs text-danger`,role:`status`,children:I.chat.messageFeedbackUnavailable}):null]}):null,(0,$.jsxs)(se,{children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:RQ,title:I.chat.messageMoreActions,"aria-label":I.chat.messageMoreActions,children:(0,$.jsx)(hd,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{side:`bottom`,align:`start`,sideOffset:6,className:`z-[70] w-56 rounded-xl border border-edge bg-surface-panel p-1.5 shadow-popover outline-none`,children:[(0,$.jsx)(le,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:jt,children:[He===`markdown`?(0,$.jsx)(W,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Kd,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),He===`markdown`?I.chat.messageCopied:I.chat.messageCopyMarkdown]})}),dt.length>0?(0,$.jsx)(le,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:()=>mt(a$),children:[(0,$.jsx)(nc,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),I.chat.messageWhyThisAnswer]})}):null,_?(0,$.jsx)(le,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-40`,onClick:Ft,disabled:!je||q!==null,children:[We===`save-source-note`?(0,$.jsx)(W,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(wf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),We===`save-source-note`?I.chat.messageSavedToSourceNote:I.chat.messageSaveToSourceNote]})}):null,v?(0,$.jsx)(le,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:`flex h-9 w-full items-center gap-2 rounded-lg px-2.5 text-left text-xs text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-40`,onClick:Lt,disabled:!Ne&&!je||q!==null,children:[We===`extract-task`?(0,$.jsx)(W,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(j_,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),We===`extract-task`?I.chat.messageTaskExtracted:I.chat.messageExtractTask]})}):null]})})]})]}):null,t[236]=q,t[237]=We,t[238]=ke,t[239]=He,t[240]=je,t[241]=Ne,t[242]=qe,t[243]=jt,t[244]=kt,t[245]=Lt,t[246]=Vt,t[247]=Ut,t[248]=Nt,t[249]=Ft,t[250]=qt,t[251]=I.chat.messageCopied,t[252]=I.chat.messageCopyMarkdown,t[253]=I.chat.messageCopyPlainText,t[254]=I.chat.messageExtractTask,t[255]=I.chat.messageFeedbackUnavailable,t[256]=I.chat.messageForkCreating,t[257]=I.chat.messageForkFromHere,t[258]=I.chat.messageHelpful,t[259]=I.chat.messageMoreActions,t[260]=I.chat.messageNotHelpful,t[261]=I.chat.messageReadAloud,t[262]=I.chat.messageReadAloudPause,t[263]=I.chat.messageReadAloudPreparing,t[264]=I.chat.messageReadAloudResume,t[265]=I.chat.messageReadAloudRetry,t[266]=I.chat.messageSaveToNote,t[267]=I.chat.messageSaveToSourceNote,t[268]=I.chat.messageSavedToNote,t[269]=I.chat.messageSavedToSourceNote,t[270]=I.chat.messageTaskExtracted,t[271]=I.chat.messageWhyThisAnswer,t[272]=n.timestamp,t[273]=n.turnId,t[274]=v,t[275]=y,t[276]=g,t[277]=_,t[278]=Be,t[279]=Ye,t[280]=$e,t[281]=N,t[282]=nt,t[283]=dt,t[284]=i,t[285]=En):En=t[285];let Dn;t[286]!==ke||t[287]!==I.chat.messageContextOrigins||t[288]!==I.chat.messageWhyThisAnswer||t[289]!==I.chat.messageWhyThisAnswerHint||t[290]!==pt||t[291]!==dt?(Dn=ke&&pt&&dt.length>0?(0,$.jsxs)(`div`,{className:`mt-2 w-full max-w-xl rounded-xl border border-edge-subtle bg-surface-elevated p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:I.chat.messageWhyThisAnswer}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:I.chat.messageWhyThisAnswerHint}),(0,$.jsx)(`div`,{className:`mt-2 space-y-2`,children:dt.map(e=>(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-panel px-3 py-2`,children:[(0,$.jsx)(`p`,{className:`text-xs leading-5 text-fg`,children:e.statement}),(0,$.jsx)(`p`,{className:`mt-1 text-[11px] text-fg-subtle`,children:e.origin===`connected_source`?I.chat.messageContextOrigins.connected_source.replace(`{{source}}`,e.sourceName):I.chat.messageContextOrigins[e.origin]})]},e.id))})]}):null,t[286]=ke,t[287]=I.chat.messageContextOrigins,t[288]=I.chat.messageWhyThisAnswer,t[289]=I.chat.messageWhyThisAnswerHint,t[290]=pt,t[291]=dt,t[292]=Dn):Dn=t[292];let On;t[293]!==ke||t[294]!==Ut||t[295]!==I.chat.messageFeedbackReasonHint||t[296]!==I.chat.messageFeedbackReasonTitle||t[297]!==I.chat.messageFeedbackReasons||t[298]!==$e||t[299]!==at?(On=ke&&at?(0,$.jsxs)(`div`,{className:`mt-2 w-full max-w-xl rounded-xl border border-edge-subtle bg-surface-elevated p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:I.chat.messageFeedbackReasonTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:I.chat.messageFeedbackReasonHint}),(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:zQ.map(e=>(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg border border-edge bg-surface-panel px-2.5 py-1.5 text-xs font-medium text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,disabled:$e,onClick:()=>Ut(`not_helpful`,e),children:I.chat.messageFeedbackReasons[e]},e))})]}):null,t[293]=ke,t[294]=Ut,t[295]=I.chat.messageFeedbackReasonHint,t[296]=I.chat.messageFeedbackReasonTitle,t[297]=I.chat.messageFeedbackReasons,t[298]=$e,t[299]=at,t[300]=On):On=t[300];let kn;t[301]!==ke||t[302]!==I.chat.messageFeedbackRepair||t[303]!==Gt||t[304]!==Ye||t[305]!==st?(kn=ke&&Ye===`not_helpful`&&st?(0,$.jsxs)(`button`,{type:`button`,className:`mt-2 inline-flex w-fit items-center gap-1.5 rounded-lg bg-accent-soft px-3 py-1.5 text-xs font-medium text-accent-fg hover:bg-accent-soft/80`,onClick:Gt,children:[(0,$.jsx)(Fv,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),I.chat.messageFeedbackRepair]}):null,t[301]=ke,t[302]=I.chat.messageFeedbackRepair,t[303]=Gt,t[304]=Ye,t[305]=st,t[306]=kn):kn=t[306];let An;t[307]!==un||t[308]!==dn||t[309]!==fn||t[310]!==pn||t[311]!==wn||t[312]!==Tn||t[313]!==En||t[314]!==Dn||t[315]!==On||t[316]!==kn?(An=(0,$.jsxs)(`div`,{className:un,children:[dn,fn,pn,wn,Tn,En,Dn,On,kn]}),t[307]=un,t[308]=dn,t[309]=fn,t[310]=pn,t[311]=wn,t[312]=Tn,t[313]=En,t[314]=Dn,t[315]=On,t[316]=kn,t[317]=An):An=t[317];let jn;t[318]!==Zt||t[319]!==ht||t[320]!==z||t[321]!==I.chat.userMessageDeleteCancel||t[322]!==I.chat.userMessageDeleteConfirm||t[323]!==I.chat.userMessageDeleteConfirmTitle||t[324]!==I.chat.userMessageDeleteOk||t[325]!==u||t[326]!==d||t[327]!==k?(jn=z&&d&&u!=null&&!k?(0,$.jsx)(UV,{open:ht,title:I.chat.userMessageDeleteConfirmTitle,description:I.chat.userMessageDeleteConfirm,confirmLabel:I.chat.userMessageDeleteOk,cancelLabel:I.chat.userMessageDeleteCancel,destructive:!0,onConfirm:Zt,onCancel:$t}):null,t[318]=Zt,t[319]=ht,t[320]=z,t[321]=I.chat.userMessageDeleteCancel,t[322]=I.chat.userMessageDeleteConfirm,t[323]=I.chat.userMessageDeleteConfirmTitle,t[324]=I.chat.userMessageDeleteOk,t[325]=u,t[326]=d,t[327]=k,t[328]=jn):jn=t[328];let Mn=_t!==null,Nn;t[329]===Symbol.for(`react.memo_cache_sentinel`)?(Nn=()=>vt(null),t[329]=Nn):Nn=t[329];let Pn;t[330]!==r||t[331]!==_t||t[332]!==i||t[333]!==Mn?(Pn=(0,$.jsx)(aG,{open:Mn,attachment:_t,authToken:r,sessionKey:i,onClose:Nn}),t[330]=r,t[331]=_t,t[332]=i,t[333]=Mn,t[334]=Pn):Pn=t[334];let Fn;return t[335]!==sn||t[336]!==An||t[337]!==jn||t[338]!==Pn?(Fn=(0,$.jsxs)(`article`,{className:sn,children:[An,jn,Pn]}),t[335]=sn,t[336]=An,t[337]=jn,t[338]=Pn,t[339]=Fn):Fn=t[339],Fn});function HQ(e){return e.language}function UQ(e){return e.type!==`image`}function WQ(e){return e.type===`thinking`&&e.streaming}function GQ(e){return e===`plain`?null:e}function KQ(e){return e===`markdown`?null:e}function wse(e){return e===`create-note`?null:e}function qQ(){}function JQ(e){return e===`save-source-note`?null:e}function YQ(){}function XQ(e){return e===`extract-task`?null:e}function ZQ(){}function QQ(e){return e===`user`?null:e}function $Q(){}function e$(e){return e.included}function t$(e){return{id:`${e.objectType}:${e.objectId}`,statement:e.content,origin:e.origin,sourceName:e.sourceLabel}}function n$(){}function r$(e){return!e}function i$(e){return!e}function a$(e){return!e}function o$(e,t){return e.renderKey??`${e.timestamp??`n`}-${t}`}var s$=(0,Z.memo)(function(e){let t=(0,Q.c)(42),{messages:n,authToken:r,sessionKey:i,projectId:a,streaming:o,progress:s,reasoningLevel:c,registerListContentRef:l,onPickWelcomePrompt:u,welcomeSpotlight:d,onRetryWelcomeContext:f,onRefreshWelcomeExploration:p,onSelectWelcomeProject:m,welcomeOverlay:h,compactWelcome:g,onDeleteRound:_,onRetryUserMessageRound:v,deleteRoundDisabled:y,onSaveAssistantAsNote:b,onSaveAssistantToSourceNote:x,onExtractAssistantTask:S,onForkAssistantTurn:C,onEditUserMessage:w,editLatestUserOnly:T,editRequiresTurnId:E,responseFeedbackEnabled:D}=e,O=g===void 0?!1:g,k=T===void 0?!1:T,A=E===void 0?!1:E,j=ct(c$),M;t[0]===j?M=t[1]:(M=rt(j),t[0]=j,t[1]=M);let N=M;if(n.length===0&&!o){if(h){let e;return t[2]===h?e=t[3]:(e=(0,$.jsx)(`div`,{className:`pb-1.5`,children:h}),t[2]=h,t[3]=e),e}if(u&&d){let e;return t[4]!==O||t[5]!==u||t[6]!==p||t[7]!==f||t[8]!==m||t[9]!==a||t[10]!==d?(e=(0,$.jsx)(`div`,{className:`pb-1.5`,children:(0,$.jsx)(hW,{spotlight:d,projectId:a,onPickPrompt:u,onRetryContext:f,onRefreshExploration:p,onSelectProject:m,compact:O})}),t[4]=O,t[5]=u,t[6]=p,t[7]=f,t[8]=m,t[9]=a,t[10]=d,t[11]=e):e=t[11],e}let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`div`,{className:`text-4xl`,"aria-hidden":!0,children:`🤖`}),t[12]=e):e=t[12];let n;t[13]===N.chat.welcomeTitle?n=t[14]:(n=(0,$.jsx)(`div`,{className:`text-xl font-semibold tracking-tight text-fg`,children:N.chat.welcomeTitle}),t[13]=N.chat.welcomeTitle,t[14]=n);let r;t[15]===N.chat.welcomeDescription?r=t[16]:(r=(0,$.jsx)(`div`,{className:`max-w-sm text-sm leading-relaxed text-fg-muted`,children:N.chat.welcomeDescription}),t[15]=N.chat.welcomeDescription,t[16]=r);let i;return t[17]!==n||t[18]!==r?(i=(0,$.jsx)(`div`,{className:`flex flex-col gap-10 pb-8`,children:(0,$.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 py-20 text-center`,children:[e,n,r]})}),t[17]=n,t[18]=r,t[19]=i):i=t[19],i}let P;t[20]!==r||t[21]!==y||t[22]!==k||t[23]!==A||t[24]!==n||t[25]!==_||t[26]!==w||t[27]!==S||t[28]!==C||t[29]!==v||t[30]!==b||t[31]!==x||t[32]!==s||t[33]!==a||t[34]!==c||t[35]!==D||t[36]!==i||t[37]!==o?(P=n.map((e,t)=>{let l=t===n.length-1,u=!!(o&&l&&e.role===`assistant`),d=MR(n,t),f=o$(e,t);return(0,$.jsx)(`div`,{id:`chat-message-${t}`,className:`scroll-mt-4`,"data-chat-message-index":t,children:(0,$.jsx)(VQ,{message:e,authToken:r,sessionKey:i,projectId:a,isStreaming:u,progress:u?s:null,reasoningLevel:c,messageIndex:t,onDeleteRound:_,onRetryUserMessageRound:v,userMessageCanRetry:!!v&&d,deleteRoundDisabled:!!(y&&d),onSaveAssistantAsNote:b,onSaveAssistantToSourceNote:x,onExtractAssistantTask:S,onForkAssistantTurn:C,suppressAssistantActions:u,onEditUserMessage:w,userMessageCanEdit:(!k||d)&&(!A||!!e.turnId),responseFeedbackEnabled:D})},f)}),t[20]=r,t[21]=y,t[22]=k,t[23]=A,t[24]=n,t[25]=_,t[26]=w,t[27]=S,t[28]=C,t[29]=v,t[30]=b,t[31]=x,t[32]=s,t[33]=a,t[34]=c,t[35]=D,t[36]=i,t[37]=o,t[38]=P):P=t[38];let F;return t[39]!==l||t[40]!==P?(F=(0,$.jsx)(`div`,{ref:l,className:`flex w-full min-w-0 flex-col gap-8 pb-8`,children:P}),t[39]=l,t[40]=P,t[41]=F):F=t[41],F});function c$(e){return e.language}var l$=(0,Z.memo)(function(e){let t=(0,Q.c)(11),{visible:n,onClick:r,contained:i}=e,a=i===void 0?!1:i,o=ct(u$),s;t[0]===o?s=t[1]:(s=rt(o),t[0]=o,t[1]=s);let c=s;if(!n)return null;let l=a?`absolute bottom-4 right-4 z-20 size-9 border border-edge bg-surface-panel shadow-float`:`size-11`,u;t[2]===l?u=t[3]:(u=X(`flex shrink-0 items-center justify-center rounded-full text-fg-subtle`,l,`hover:bg-surface-hover hover:text-fg dark:border-edge dark:shadow-none`,gk.transition,gk.press,gk.focusRingPanel),t[2]=l,t[3]=u);let d=a?`size-5`:`size-6`,f;t[4]===d?f=t[5]:(f=(0,$.jsx)(is,{className:d,"aria-hidden":!0}),t[4]=d,t[5]=f);let p;return t[6]!==c.chat.scrollToBottom||t[7]!==r||t[8]!==u||t[9]!==f?(p=(0,$.jsx)(`button`,{type:`button`,className:u,onClick:r,title:c.chat.scrollToBottom,"aria-label":c.chat.scrollToBottom,children:f}),t[6]=c.chat.scrollToBottom,t[7]=r,t[8]=u,t[9]=f,t[10]=p):p=t[10],p});function u$(e){return e.language}function d$(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function f$(e,t=48){return d$(e)<=t}function p$(e){e.scrollTop=e.scrollHeight}function m$(e){return e.webkitDirectionInvertedFromDevice===!0?e.deltaY>0:e.deltaY<0}function h$({hasToken:e,showSessionLoading:t,sessionKey:n,sending:r,chatMessages:i,hasMore:a,loadingMore:o,loadMoreMessages:s}){let c=(0,Z.useRef)(null),l=(0,Z.useRef)(null),u=(0,Z.useRef)(!0),d=(0,Z.useRef)(null),[f,p]=(0,Z.useState)(!0),m=(0,Z.useRef)(!0),h=(0,Z.useRef)(!1),g=(0,Z.useRef)(0),_=(0,Z.useRef)({first:void 0,len:0,scrollHeight:0}),v=(0,Z.useCallback)(e=>{u.current=e,p(t=>t===e?t:e)},[]),y=(0,Z.useCallback)(e=>{let t=c.current;if(t&&!(!e?.force&&!u.current)){if(e?.force&&v(!0),e?.smooth){t.scrollTo({top:t.scrollHeight,behavior:`smooth`});return}p$(t)}},[v]),b=(0,Z.useCallback)(()=>{v(!1)},[v]),x=(0,Z.useCallback)(e=>{if(l.current===e||(d.current?.disconnect(),d.current=null,l.current=e,!e))return;let t=new ResizeObserver(()=>{y()});t.observe(e),d.current=t},[y]);(0,Z.useEffect)(()=>()=>{d.current?.disconnect()},[]);let S=(0,Z.useCallback)(()=>{let e=c.current;if(!e)return;let t=f$(e);v(t),e.scrollTop<100&&!t&&a&&!o&&s()},[v,a,o,s]),C=(0,Z.useCallback)((e=!0)=>{y({force:!0,smooth:e})},[y]);(0,Z.useLayoutEffect)(()=>{if(e){if(t){m.current=!0;return}m.current===!0&&(m.current=!1,v(!0),y({force:!0}))}},[t,e,v,y]),(0,Z.useLayoutEffect)(()=>{!e||t||(_.current={first:void 0,len:0,scrollHeight:0},g.current=0,v(!0),y({force:!0}))},[n,e,t,v,y]);let w=e&&r&&!h.current&&!t;return(0,Z.useLayoutEffect)(()=>{h.current=r,w&&(v(!0),y({force:!0}))},[w,r,v,y]),(0,Z.useLayoutEffect)(()=>{if(t)return;let e=i.length,n=g.current;g.current=e,e>n&&u.current&&y()},[i.length,t,y]),(0,Z.useLayoutEffect)(()=>{let e=c.current;if(!e||t)return;let n=_.current,r=i[0],a=i.length,o=e.scrollHeight;a>n.len&&n.len>0&&r!==void 0&&r!==n.first&&n.scrollHeight>0&&(e.scrollTop+=o-n.scrollHeight),_.current={first:r,len:a,scrollHeight:o}},[i,t]),(0,Z.useLayoutEffect)(()=>{if(!e||t)return;let n=c.current;if(!n)return;let r=e=>{Math.abs(e.deltaY)<Math.abs(e.deltaX)||Math.abs(e.deltaY)<.25||m$(e)&&b()},i=0,a=e=>{e.touches.length===1&&(i=e.touches[0].clientY)},o=e=>{if(e.touches.length!==1)return;let t=e.touches[0].clientY,n=t-i;i=t,n>2&&b()},s=e=>{if(e.button!==0)return;let t=n.offsetWidth-n.clientWidth;if(t<=0)return;let r=n.getBoundingClientRect();e.clientX>=r.right-t&&b()};return n.addEventListener(`wheel`,r,{passive:!0}),n.addEventListener(`pointerdown`,s),n.addEventListener(`touchstart`,a,{passive:!0}),n.addEventListener(`touchmove`,o,{passive:!0}),()=>{n.removeEventListener(`wheel`,r),n.removeEventListener(`pointerdown`,s),n.removeEventListener(`touchstart`,a),n.removeEventListener(`touchmove`,o)}},[e,t,b]),{scrollRef:c,atBottom:f,registerListContentRef:x,scrollToBottom:C,onScroll:S}}var g$=256*1024,_$=new TextEncoder;function v$(e){return _$.encode(e).byteLength}function y$(e){return v$(e)<=262144?e:new TextDecoder().decode(_$.encode(e).subarray(0,g$),{stream:!0})}function b$(e){let t=512*1024,n=e.length>20,r=[];for(let i of e.slice(-20).reverse()){let e=i.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
64
|
+
`);if((i.content.some(e=>e.type!==`text`)||i.attachments?.length)&&(n=!0),!e)continue;if(t<=256){n=!0;continue}let a=_$.encode(e),o=a.byteLength+256>t?new TextDecoder().decode(a.subarray(0,t-256),{stream:!0}):e;o!==e&&(n=!0);let s=v$(o)+256;t-=s,r.unshift({role:i.role,content:[{type:`text`,text:o}],timestamp:i.timestamp,renderKey:i.renderKey?.slice(0,128)})}return{messages:r,truncated:n,bytes:512*1024-t}}var x$=`xopc:side-chat-panes:v2`;function S$(e){return Math.min(760,Math.max(360,Math.round(e)))}function C$(){return{panes:{},tabs:[],widthPx:520}}function w$(){try{let e=JSON.parse(sessionStorage.getItem(x$)||`{}`),t=Array.isArray(e.tabs)?e.tabs.filter(e=>!!(e?.id&&e.parentSessionKey)):[],n=e.panes&&typeof e.panes==`object`?e.panes:{},r=Object.fromEntries(Object.entries(n).map(([e,n])=>{let r=t.filter(t=>t.parentSessionKey===e),i=typeof n?.activeId==`string`&&r.some(e=>e.id===n.activeId)?n.activeId:r.at(-1)?.id??null;return[e,{open:n?.open===!0&&r.length>0,activeId:i}]}));for(let e of t)r[e.parentSessionKey]??={open:!1,activeId:e.id};return{panes:r,tabs:t,widthPx:S$(typeof e.widthPx==`number`?e.widthPx:520)}}catch{return C$()}}function T$(e){try{sessionStorage.setItem(x$,JSON.stringify(e))}catch{}}var E$=w$(),D$=at((e,t)=>{let n=n=>{e(n),queueMicrotask(()=>{let e=t();T$({panes:e.panes,tabs:e.tabs,widthPx:e.widthPx})})},r=(e,r)=>{let i=t().panes[e]??{open:!1,activeId:null};n({panes:{...t().panes,[e]:{...i,...r}}})};return{...E$,drafts:{},readings:{},setDraft:(n,r)=>e({drafts:{...t().drafts,[n]:r}}),rememberMessages:(n,r)=>{let i={...t().readings};delete i[n],i[n]=b$(r),i[n].truncated||=t().readings[n]?.truncated??!1;let a=Object.values(i).reduce((e,t)=>e+t.bytes,0);for(;Object.keys(i).length>5||a>2097152;){let e=Object.keys(i)[0];a-=i[e].bytes,delete i[e]}e({readings:i})},markEnded:(e,r)=>n({tabs:t().tabs.map(t=>t.id===e?{...t,ended:r,runId:void 0}:t)}),replaceTab:(r,i)=>{let a=t();if(!a.tabs.some(e=>e.id===r))return;let o={...a.drafts,[i.id]:a.drafts[r]??``},s={...a.readings};delete o[r],delete s[r],e({drafts:o,readings:s}),n({tabs:a.tabs.map(e=>e.id===r?{...i,fresh:!0}:e),panes:{...a.panes,[i.parentSessionKey]:{open:a.panes[i.parentSessionKey]?.open??!1,activeId:a.panes[i.parentSessionKey]?.activeId===r?i.id:a.panes[i.parentSessionKey]?.activeId??i.id}}})},reset:()=>{e({drafts:{},readings:{},pendingCreate:null}),n({panes:{},tabs:[]})},pendingCreate:null,requestCreate:(t,n=[])=>{e({pendingCreate:{requestId:crypto.randomUUID(),parentSessionKey:t,selections:n}}),r(t,{open:!0})},claimPendingCreate:(n,r)=>{let i=t().pendingCreate;return!i||i.parentSessionKey!==n||i.requestId!==r?null:(e({pendingCreate:null}),i)},addTab:e=>{let r=[...t().tabs.filter(t=>t.id!==e.id),e],i=t().panes[e.parentSessionKey]??{open:!1,activeId:null};n({tabs:r,panes:{...t().panes,[e.parentSessionKey]:{...i,activeId:e.id,open:!0}}})},removeTab:r=>{let i=t().tabs.find(e=>e.id===r);if(!i)return;let a={...t().drafts},o={...t().readings};delete a[r],delete o[r],e({drafts:a,readings:o});let s=t().tabs.filter(e=>e.id!==r),c=s.filter(e=>e.parentSessionKey===i.parentSessionKey),l=t().panes[i.parentSessionKey]??{open:!1,activeId:null},u=l.activeId===r?c.at(-1)?.id??null:l.activeId;n({tabs:s,panes:{...t().panes,[i.parentSessionKey]:{open:c.length>0&&l.open,activeId:u}}})},setActive:e=>{let n=t().tabs.find(t=>t.id===e);n&&r(n.parentSessionKey,{activeId:e,open:!0})},setTabRunId:(e,r)=>n({tabs:t().tabs.map(t=>t.id===e?{...t,runId:r}:t)}),setOpen:(e,t)=>r(e,{open:t}),setWidthPx:e=>n({widthPx:S$(e)})}});ut.subscribe((e,t)=>{if(e.baseUrl!==t.baseUrl||t.token!==void 0&&e.token!==t.token){D$.getState().reset();try{sessionStorage.removeItem(`xopc:side-chat-client-id`)}catch{}}});function O$(e,t){return vZ(e,t)}function k$(e){if(e<60)return`Voice · ${e}s`;let t=Math.floor(e/60),n=e%60;return`Voice · ${t}:${String(n).padStart(2,`0`)}`}async function A$(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:`HTTP ${e.status}`}async function j$(e,t,n){let r=ut.getState().token,i=new Headers;n&&i.set(`Idempotency-Key`,n),r&&i.set(`Authorization`,`Bearer ${r}`);let a=await fetch(e,{method:`POST`,headers:i,body:t});if(a.status===401&&ut.getState().onUnauthorized(),!a.ok)throw Error(await A$(a));return a.json()}function M$(e){let t=(0,Q.c)(39),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({src:s,expectedNoteId:r,alt:c,className:n,onClick:i,onLoadFailed:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?``:c,u;t[8]!==r||t[9]!==s?(u=yZ(s,r),t[8]=r,t[9]=s,t[10]=u):u=t[10];let d=u,[f,p]=(0,Z.useState)(d?null:s),[m,h]=(0,Z.useState)(!1),g,_;if(t[11]!==a||t[12]!==d||t[13]!==s?(g=()=>{if(h(!1),!d){p(s);return}let e=!1;return p(null),EZ(d.noteId,d.attachmentId).then(t=>{e||p(t)}).catch(()=>{e||(h(!0),a?.())}),()=>{e=!0,DZ(d.noteId,d.attachmentId)}},_=[s,d,a],t[11]=a,t[12]=d,t[13]=s,t[14]=g,t[15]=_):(g=t[14],_=t[15]),(0,Z.useEffect)(g,_),m){let e;t[16]===n?e=t[17]:(e=X(`flex items-center justify-center bg-surface-hover text-fg-muted`,n),t[16]=n,t[17]=e);let r=!l,i;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(eg,{className:`size-5`}),t[18]=i):i=t[18];let a;return t[19]!==e||t[20]!==r?(a=(0,$.jsx)(`div`,{className:e,"aria-hidden":r,children:i}),t[19]=e,t[20]=r,t[21]=a):a=t[21],a}if(!f){let e;t[22]===n?e=t[23]:(e=X(`animate-pulse bg-surface-hover`,n),t[22]=n,t[23]=e);let r=!l,i;return t[24]!==e||t[25]!==r?(i=(0,$.jsx)(`div`,{className:e,"aria-hidden":r}),t[24]=e,t[25]=r,t[26]=i):i=t[26],i}let v;t[27]!==f||t[28]!==i?(v=i?()=>i(f):void 0,t[27]=f,t[28]=i,t[29]=v):v=t[29];let y;t[30]===a?y=t[31]:(y=()=>{h(!0),a?.()},t[30]=a,t[31]=y);let b;return t[32]!==l||t[33]!==n||t[34]!==f||t[35]!==o||t[36]!==v||t[37]!==y?(b=(0,$.jsx)(`img`,{...o,src:f,alt:l,className:n,onClick:v,onError:y}),t[32]=l,t[33]=n,t[34]=f,t[35]=o,t[36]=v,t[37]=y,t[38]=b):b=t[38],b}function N$(e){return e.replace(/xopc-attachment:\/\/notes\/([^/]+)\/([^)\s]+)/gi,`/api/notes/$1/media/$2`)}function P$(e,t){let n=[];return e.querySelectorAll(`.markdown-body img`).forEach(e=>{let r=yZ(e.getAttribute(`src`)??``,t);if(!r)return;let i=!1;EZ(r.noteId,r.attachmentId).then(t=>{i||(e.src=t)}).catch(()=>{e.classList.add(`note-media-load-failed`)}),n.push(()=>{i=!0,DZ(r.noteId,r.attachmentId)})}),e.querySelectorAll(`.markdown-body a`).forEach(e=>{let r=yZ(e.getAttribute(`href`)??``,t);if(!r)return;let i=document.createElement(`audio`);i.controls=!0,i.className=`note-media-audio mt-2 w-full max-w-md`,e.replaceWith(i);let a=!1;EZ(r.noteId,r.attachmentId).then(e=>{a||(i.src=e)}).catch(()=>{i.remove()}),n.push(()=>{a=!0,DZ(r.noteId,r.attachmentId)})}),()=>{for(let e of n)e()}}function F$(e){let t=(0,Q.c)(17),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({content:n,noteId:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(0,Z.useRef)(null),o;t[4]===r?o=t[5]:(o=()=>{let e=a.current;if(e)return P$(e,r)},t[4]=r,t[5]=o);let s;t[6]!==n||t[7]!==r?(s=[n,r],t[6]=n,t[7]=r,t[8]=s):s=t[8],(0,Z.useLayoutEffect)(o,s);let c;t[9]===n?c=t[10]:(c=N$(n),t[9]=n,t[10]=c);let l;t[11]===i.className?l=t[12]:(l=[`markdown-note`,i.className].filter(Boolean),t[11]=i.className,t[12]=l);let u=l.join(` `),d;return t[13]!==i||t[14]!==c||t[15]!==u?(d=(0,$.jsx)(`div`,{ref:a,children:(0,$.jsx)(ke,{content:c,mermaidActions:!0,...i,className:u})}),t[13]=i,t[14]=c,t[15]=u,t[16]=d):d=t[16],d}async function I$(){return J(Y(`/api/notes/project-summaries`))}async function L$(e={}){let t=new URLSearchParams;e.status&&t.set(`status`,e.status),e.kind&&t.set(`kind`,e.kind),e.tag&&t.set(`tag`,e.tag),e.projectId&&t.set(`projectId`,e.projectId),e.unassigned&&t.set(`unassigned`,`true`),e.agentEdited&&t.set(`agentEdited`,`true`),e.pinned!==void 0&&t.set(`pinned`,String(e.pinned)),e.search&&t.set(`search`,e.search),e.limit&&t.set(`limit`,String(e.limit)),e.offset&&t.set(`offset`,String(e.offset)),e.sortBy&&t.set(`sortBy`,e.sortBy),e.sortOrder&&t.set(`sortOrder`,e.sortOrder);let n=t.toString();return J(Y(`/api/notes${n?`?${n}`:``}`))}async function R$(e,t=`web`){return(await J(Y(`/api/notes/quick-capture`),{method:`POST`,body:JSON.stringify({text:e,channel:t})})).note}async function z$(e,t){return(await J(Y(`/api/notes`),{method:`POST`,...t?{headers:{"Idempotency-Key":t}}:{},body:JSON.stringify({markdown:e.markdown,title:e.title,kind:e.kind,tags:e.tags,projectId:e.projectId,pinned:e.pinned,channel:e.channel??`web`})})).note}async function B$(e){let t=await ot(Y(`/api/notes/${encodeURIComponent(e)}`));if(t.status===404)return null;let n=await t.json();if(!t.ok)throw Error(n.error||`HTTP ${t.status}`);return n.note??null}async function V$(e,t){return(await J(Y(`/api/notes/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})).note}async function H$(e){await J(Y(`/api/notes/${encodeURIComponent(e)}`),{method:`DELETE`})}async function U$(e){return J(Y(`/api/notes/${encodeURIComponent(e)}/shares`))}async function W$(e,t){return J(Y(`/api/notes/${encodeURIComponent(e)}/shares`),{method:`POST`,body:JSON.stringify(t)})}async function G$(e,t,n){await J(Y(`/api/notes/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/refresh`),{method:`POST`,body:JSON.stringify(n)})}async function K$(e){return J(Y(`/api/notes/${encodeURIComponent(e)}/catalyze`),{method:`POST`})}async function q$(e,t){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/catalysis-feedback`),{method:`POST`,body:JSON.stringify({feedback:t})})).note}async function J$(e,t={}){return J(Y(`/api/notes/${encodeURIComponent(e)}/chat`),{method:`POST`,body:JSON.stringify(t)})}async function Y$(e){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/threads`))).items}async function X$(e){return J(Y(`/api/notes/${encodeURIComponent(e)}/context-status`))}async function Z$(e){return J(Y(`/api/notes/${encodeURIComponent(e)}/context-rebuild`),{method:`POST`})}async function Q$(e,t,n){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/append`),{method:`POST`,body:JSON.stringify({content:t,heading:n})})).note}async function $$(e,t={}){return(await J(Y(`/api/notes/task`),{method:`POST`,body:JSON.stringify({title:e,channel:`web`,priority:t.priority,sourceSessionKey:t.sourceSessionKey||void 0,sourceNoteId:t.sourceNoteId||void 0})})).note}async function e1(e,t,n){let r=new FormData;return r.append(`file`,t),(await j$(Y(`/api/notes/${encodeURIComponent(e)}/media`),r,n)).attachment}async function t1(e,t){let n=new FormData;return n.append(`file`,e),t?.markdown&&n.append(`markdown`,t.markdown),n.append(`channel`,t?.channel??`web`),t?.kind&&n.append(`kind`,t.kind),t?.duration!==void 0&&n.append(`duration`,String(t.duration)),(await j$(Y(`/api/notes`),n)).note}async function n1(e,t=`web`){let n=await t1(e,{channel:t}),r=n.attachments?.find(e=>e.type===`image`)??n.attachments?.[0];if(!r)return n;let i=`})`;return n.markdown!==i&&(n=await V$(n.id,{markdown:i})),n}async function r1(e,t,n=`web`){let r=await t1(e,{channel:n,kind:`voice`,duration:t}),i=r.attachments?.find(e=>e.type===`audio`)??r.attachments?.[0];if(!i)return r;let a=`[${k$(t)}](${O$(r.id,i.id)})`;return r.markdown!==a&&(r=await V$(r.id,{markdown:a,kind:`voice`})),r}async function i1(e){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/history`))).entries}async function a1(e,t){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/history/${t}`))).snapshot}async function o1(e,t){return(await J(Y(`/api/notes/${encodeURIComponent(e)}/history/restore`),{method:`POST`,body:JSON.stringify({timestamp:t})})).note}var s1=`xopc:side-chat-client-id`;function c1(){let e=sessionStorage.getItem(s1);if(e)return e;let t=crypto.randomUUID();return sessionStorage.setItem(s1,t),t}function l1(){return{"x-xopc-client-instance-id":c1()}}async function u1(e,t){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/side-chats`),{method:`POST`,headers:l1(),body:JSON.stringify({clientInstanceId:c1(),selections:t})})).sideChat}async function d1(e){return(await J(Y(`/api/side-chats/${e}`),{headers:l1()})).sideChat}async function f1(e){return(await J(Y(`/api/side-chats/${e}/messages`),{headers:l1()})).messages}async function p1(e,t){return(await J(Y(`/api/side-chats/${e}/inputs`),{method:`POST`,headers:l1(),body:JSON.stringify({content:t})})).payload.runId}async function m1(e,t){await J(Y(`/api/side-chats/${e}/abort`),{method:`POST`,headers:l1(),body:JSON.stringify({runId:t})})}async function h1(e,t,n){await J(Y(`/api/side-chats/${e}/clarify/${t}`),{method:`POST`,headers:l1(),body:JSON.stringify({answer:n})})}async function g1(e){await J(Y(`/api/side-chats/${e}`),{method:`DELETE`,headers:l1()})}async function _1(e){return(await J(Y(`/api/side-chats/${e}/heartbeat`),{method:`POST`,headers:l1()})).sideChat}async function v1(e){return(await J(Y(`/api/side-chats/${e}/extend`),{method:`POST`,headers:l1()})).sideChat}var y1=`xopc:side-chat-close-confirm-disabled:v1`,b1=()=>{};function x1(){try{return localStorage.getItem(y1)===`true`}catch{return!1}}function S1(){try{localStorage.setItem(y1,`true`)}catch{}}function C1(e){return e.role===`user`?e.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
65
|
+
`).trim():``}function w1(e,t){let n=e?.body?.code;return n===`INVALID_REQUEST`?t.errorInvalidRequest:n===`NOT_FOUND`?t.errorNotFound:n===`CONFLICT`?t.errorConflict:n===`LIMIT_REACHED`?t.errorLimitReached:n===`CAPACITY_REACHED`?t.errorCapacity:n===`PARENT_NOT_FOUND`?t.parentMissing:n===`INTERNAL_ERROR`?t.failed:e instanceof Error?e.message:String(e)}function T1(e,t){let n=[...e];for(let[e,r]of t){let i=C1(r),a=r.timestamp??0;if(n.some(e=>e.role===`user`&&C1(e)===i&&Math.abs((e.timestamp??a)-a)<6e4)){t.delete(e);continue}let o=n.findIndex(e=>(e.timestamp??1/0)>a);o<0?n.push(r):n.splice(o,0,r)}return n}function E1(e){let t=(0,Q.c)(121),{parentSessionKey:n}=e,r=ct(V1),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.sideChat,o;t[2]===n?o=t[3]:(o=e=>e.panes[n]?.open===!0,t[2]=n,t[3]=o);let s=D$(o),c=D$(B1),l;if(t[4]!==c||t[5]!==n){let e;t[7]===n?e=t[8]:(e=e=>e.parentSessionKey===n,t[7]=n,t[8]=e),l=c.filter(e),t[4]=c,t[5]=n,t[6]=l}else l=t[6];let u=l,d;t[9]===n?d=t[10]:(d=e=>e.panes[n]?.activeId??null,t[9]=n,t[10]=d);let f=D$(d),p=D$(z1),m=D$(R1),h=D$(L1),g=D$(I1),_=D$(F1),v=D$(P1),y=D$(N1),b=D$(M1),x=D$(j1),S=D$(A1),C=ut(k1),w;t[11]!==f||t[12]!==u?(w=u.find(e=>e.id===f)??null,t[11]=f,t[12]=u,t[13]=w):w=t[13];let T=w,[E,D]=(0,Z.useState)(!1),[O,k]=(0,Z.useState)(null),[A,j]=(0,Z.useState)(!1),[M,N]=(0,Z.useState)(null),[P,F]=(0,Z.useState)(!1),I,L;t[14]!==g||t[15]!==h||t[16]!==a||t[17]!==n||t[18]!==p?(I=()=>{if(!p||p.parentSessionKey!==n)return;let e=h(n,p.requestId);if(!e)return;D(!0),k(null);let t=ut.getState();u1(e.parentSessionKey,e.selections).then(e=>{ut.getState().token!==t.token||ut.getState().baseUrl!==t.baseUrl||g({id:e.id,parentSessionKey:e.parentSessionKey,title:`Side chat`})}).catch(e=>{k(w1(e,a))}).finally(()=>{D(!1)})},L=[g,h,a,n,p],t[14]=g,t[15]=h,t[16]=a,t[17]=n,t[18]=p,t[19]=I,t[20]=L):(I=t[19],L=t[20]),(0,Z.useEffect)(I,L);let R;t[21]===_?R=t[22]:(R=e=>{_(e),g1(e).catch(O1)},t[21]=_,t[22]=R);let z=R,B;t[23]===z?B=t[24]:(B=e=>{let t=D$.getState(),n=t.tabs.find(t=>t.id===e),r=t.readings[e];if(r&&!r.messages.length&&!r.truncated&&!t.drafts[e]?.trim()&&!n?.runId||x1()){z(e);return}F(!1),N(e)},t[23]=z,t[24]=B);let V=B,H;t[25]===x?H=t[26]:(H=e=>{e.preventDefault();let t=e.clientX,n=D$.getState().widthPx,r=e.pointerId;e.currentTarget.setPointerCapture(r),j(!0);let i=e=>{let r=Math.min(760,Math.max(360,n+t-e.clientX));document.getElementById(`app-side-chat-panel`)?.style.setProperty(`--side-chat-panel-px`,`${r}px`)},a=e=>{x(Math.min(760,Math.max(360,n+t-e.clientX))),j(!1),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,a)};window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,a)},t[25]=x,t[26]=H);let ee=H;if(!s)return null;let te=a.paneAria,ne=A&&`side-chat-panel-resizing`,U;t[27]===ne?U=t[28]:(U=X(`relative flex min-h-0 shrink-0 flex-col overflow-hidden border-l border-edge bg-surface-base`,`max-md:fixed max-md:inset-y-0 max-md:right-0 max-md:z-50 max-md:w-[min(92vw,34rem)] max-md:shadow-popover`,`app-side-chat-expanded-width`,ne),t[27]=ne,t[28]=U);let W=`${b}px`,re;t[29]===W?re=t[30]:(re={"--side-chat-panel-px":W},t[29]=W,t[30]=re);let ie=re,ae;t[31]!==a.resizeAria||t[32]!==ee?(ae=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":a.resizeAria,onPointerDown:ee,className:`absolute left-0 top-0 z-20 hidden h-full w-2 cursor-col-resize touch-none md:block`}),t[31]=a.resizeAria,t[32]=ee,t[33]=ae):ae=t[33];let oe;if(t[34]!==f||t[35]!==a.closeAria||t[36]!==a.endedLabel||t[37]!==a.title||t[38]!==V||t[39]!==v||t[40]!==u){let e;t[42]!==f||t[43]!==a.closeAria||t[44]!==a.endedLabel||t[45]!==a.title||t[46]!==V||t[47]!==v?(e=e=>(0,$.jsxs)(`div`,{className:X(`flex h-8 shrink-0 items-center rounded-lg pl-3 text-sm`,e.id===f?`bg-surface-hover text-fg`:`text-fg-muted`),children:[(0,$.jsxs)(`button`,{type:`button`,className:`max-w-40 truncate`,onClick:()=>v(e.id),children:[e.title===`Side chat`?a.title:e.title,e.ended?` · ${a.endedLabel}`:``]}),(0,$.jsx)(`button`,{type:`button`,className:`flex size-8 items-center justify-center rounded-md hover:bg-surface-active`,"aria-label":a.closeAria,onClick:()=>V(e.id),children:(0,$.jsx)(Ne,{className:`size-3.5`})})]},e.id),t[42]=f,t[43]=a.closeAria,t[44]=a.endedLabel,t[45]=a.title,t[46]=V,t[47]=v,t[48]=e):e=t[48],oe=u.map(e),t[34]=f,t[35]=a.closeAria,t[36]=a.endedLabel,t[37]=a.title,t[38]=V,t[39]=v,t[40]=u,t[41]=oe}else oe=t[41];let se;t[49]!==n||t[50]!==m?(se=()=>m(n),t[49]=n,t[50]=m,t[51]=se):se=t[51];let ce;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(Me,{className:`size-4`}),t[52]=ce):ce=t[52];let le;t[53]!==E||t[54]!==a.newAria||t[55]!==se?(le=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`size-8 shrink-0 p-0`,"aria-label":a.newAria,title:a.newAria,disabled:E,onClick:se,children:ce}),t[53]=E,t[54]=a.newAria,t[55]=se,t[56]=le):le=t[56];let ue;t[57]!==n||t[58]!==y?(ue=()=>y(n,!1),t[57]=n,t[58]=y,t[59]=ue):ue=t[59];let de;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsx)(cs,{className:`size-4`}),t[60]=de):de=t[60];let fe;t[61]!==a.closePaneAria||t[62]!==ue?(fe=(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`ml-auto size-8 shrink-0 p-0`,"aria-label":a.closePaneAria,onClick:ue,children:de}),t[61]=a.closePaneAria,t[62]=ue,t[63]=fe):fe=t[63];let pe;t[64]!==oe||t[65]!==le||t[66]!==fe?(pe=(0,$.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center gap-1 overflow-x-auto border-b border-edge px-2`,children:[oe,le,fe]}),t[64]=oe,t[65]=le,t[66]=fe,t[67]=pe):pe=t[67];let me;t[68]!==T||t[69]!==c||t[70]!==O||t[71]!==a.title||t[72]!==v?(me=O&&T?(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge px-4 py-2 text-xs text-fg-muted`,role:`status`,children:[(0,$.jsx)(`p`,{children:O}),c.filter(D1).map(e=>(0,$.jsx)(`button`,{type:`button`,className:`mr-2 mt-1 rounded border border-edge px-2 py-1`,onClick:()=>{v(e.id),window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{sessionKey:e.parentSessionKey}}))},children:e.title===`Side chat`?a.title:e.title},e.id))]}):null,t[68]=T,t[69]=c,t[70]=O,t[71]=a.title,t[72]=v,t[73]=me):me=t[73];let G;t[74]!==T||t[75]!==O||t[76]!==E||t[77]!==a.temporaryDescription||t[78]!==a.title||t[79]!==n||t[80]!==S||t[81]!==C?(G=T?(0,$.jsx)(H1,{sideChatId:T.id,token:C??void 0,initialRunId:T.runId,onRunIdChange:S,parentSessionKey:n},`${T.id}:${C??``}`):(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center justify-center px-8 text-center`,children:[(0,$.jsx)(Y_,{className:`mb-4 size-10 text-fg-muted`,strokeWidth:1.5}),(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:a.title}),(0,$.jsx)(`p`,{className:`mt-2 max-w-sm text-sm leading-6 text-fg-muted`,children:a.temporaryDescription}),E?(0,$.jsx)(Ft,{className:`mt-4 h-4 w-32`}):null,O?(0,$.jsx)(`p`,{className:`mt-4 text-xs text-red-600 dark:text-red-400`,children:O}):null]}),t[74]=T,t[75]=O,t[76]=E,t[77]=a.temporaryDescription,t[78]=a.title,t[79]=n,t[80]=S,t[81]=C,t[82]=G):G=t[82];let he=M!==null,ge;t[83]!==a.closeConfirmTitle||t[84]!==a.stopCloseTitle||t[85]!==M||t[86]!==u?(ge=u.find(e=>e.id===M)?.runId?a.stopCloseTitle:a.closeConfirmTitle,t[83]=a.closeConfirmTitle,t[84]=a.stopCloseTitle,t[85]=M,t[86]=u,t[87]=ge):ge=t[87];let _e;t[88]!==a.closeConfirmDescription||t[89]!==a.stopCloseDescription||t[90]!==M||t[91]!==u?(_e=u.find(e=>e.id===M)?.runId?a.stopCloseDescription:a.closeConfirmDescription,t[88]=a.closeConfirmDescription,t[89]=a.stopCloseDescription,t[90]=M,t[91]=u,t[92]=_e):_e=t[92];let ve;t[93]!==a.closeConfirmAction||t[94]!==a.stopCloseAction||t[95]!==M||t[96]!==u?(ve=u.find(e=>e.id===M)?.runId?a.stopCloseAction:a.closeConfirmAction,t[93]=a.closeConfirmAction,t[94]=a.stopCloseAction,t[95]=M,t[96]=u,t[97]=ve):ve=t[97];let ye;t[98]!==z||t[99]!==P||t[100]!==M?(ye=()=>{let e=M;e&&(P&&S1(),N(null),F(!1),z(e))},t[98]=z,t[99]=P,t[100]=M,t[101]=ye):ye=t[101];let be;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(be=()=>{N(null),F(!1)},t[102]=be):be=t[102];let xe;t[103]!==P||t[104]!==a.closeConfirmCancel||t[105]!==a.closeConfirmDontAskAgain||t[106]!==he||t[107]!==ge||t[108]!==_e||t[109]!==ve||t[110]!==ye?(xe=(0,$.jsx)(UV,{open:he,title:ge,description:_e,confirmLabel:ve,cancelLabel:a.closeConfirmCancel,checkboxLabel:a.closeConfirmDontAskAgain,checkboxChecked:P,onCheckboxCheckedChange:F,destructive:!0,onConfirm:ye,onCancel:be}),t[103]=P,t[104]=a.closeConfirmCancel,t[105]=a.closeConfirmDontAskAgain,t[106]=he,t[107]=ge,t[108]=_e,t[109]=ve,t[110]=ye,t[111]=xe):xe=t[111];let Se;return t[112]!==a.paneAria||t[113]!==U||t[114]!==ie||t[115]!==ae||t[116]!==pe||t[117]!==me||t[118]!==G||t[119]!==xe?(Se=(0,$.jsxs)(`aside`,{id:`app-side-chat-panel`,"aria-label":te,className:U,style:ie,children:[ae,pe,me,G,xe]}),t[112]=a.paneAria,t[113]=U,t[114]=ie,t[115]=ae,t[116]=pe,t[117]=me,t[118]=G,t[119]=xe,t[120]=Se):Se=t[120],Se}function D1(e){return!e.ended}function O1(){}function k1(e){return e.token}function A1(e){return e.setTabRunId}function j1(e){return e.setWidthPx}function M1(e){return e.widthPx}function N1(e){return e.setOpen}function P1(e){return e.setActive}function F1(e){return e.removeTab}function I1(e){return e.addTab}function L1(e){return e.claimPendingCreate}function R1(e){return e.requestCreate}function z1(e){return e.pendingCreate}function B1(e){return e.tabs}function V1(e){return e.language}function H1({sideChatId:e,token:t,initialRunId:n,onRunIdChange:r,parentSessionKey:i}){let[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(()=>D$.getState().readings[e]?.messages??[]),l=D$(t=>t.drafts[e]??``),u=(0,Z.useCallback)(t=>D$.getState().setDraft(e,t),[e]),[d,f]=(0,Z.useState)(()=>D$.getState().tabs.find(t=>t.id===e)?.ended),[p,m]=(0,Z.useState)(!d),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(!1),[C,w]=(0,Z.useState)(``),[T,E]=(0,Z.useState)(Date.now),[D,O]=(0,Z.useState)(0),[k,A]=(0,Z.useState)(!1),j=D$(t=>t.tabs.find(t=>t.id===e)?.fresh),M=D$(t=>t.readings[e]?.truncated??!1),N=(0,Z.useRef)(!0),P=(0,Z.useRef)(d),F=(0,Z.useRef)(ut.getState()),I=(0,Z.useCallback)(()=>F.current.token===ut.getState().token&&F.current.baseUrl===ut.getState().baseUrl,[]),L=(0,Z.useCallback)(()=>N.current&&I(),[I]);(0,Z.useEffect)(()=>(N.current=!0,()=>{N.current=!1}),[]);let[R,z]=(0,Z.useState)(!!n),[B,V]=(0,Z.useState)(n),[H,ee]=(0,Z.useState)(null),[te,ne]=(0,Z.useState)(null),[U,W]=(0,Z.useState)(!1),[re,ie]=(0,Z.useState)(null),ae=(0,Z.useRef)(null),oe=(0,Z.useRef)(0),se=(0,Z.useRef)(0),ce=(0,Z.useRef)(!1),le=(0,Z.useRef)(new Map),ue=rt(ct(e=>e.language)),de=ue.sideChat,{scrollRef:fe,atBottom:pe,registerListContentRef:me,scrollToBottom:G,onScroll:he}=h$({hasToken:!0,showSessionLoading:!1,sessionKey:e,sending:R,chatMessages:s,hasMore:!1,loadingMore:!1,loadMoreMessages:b1});(0,Z.useEffect)(()=>{L()&&(s.length||!p)&&D$.getState().rememberMessages(e,s)},[s,p,e,L]);let ge=(0,Z.useCallback)(t=>{!L()||P.current||(P.current=t,oe.current+=1,f(t),z(!1),V(void 0),ne(null),o(null),w(``),ee(null),g(!1),m(!1),c(e=>b$(e).messages),D$.getState().markEnded(e,t))},[L,e]),_e=(0,Z.useCallback)(e=>{if(!L())return;let t=e;t.body?.code===`EXPIRED`||t.status===410?ge(t.body?.reason===`waiting`?`waiting`:`idle`):t.status===404||t.body?.code===`NOT_FOUND`?ge(`unavailable`):g(!0),m(!1)},[ge,L]),ve=(0,Z.useCallback)(t=>{if(!L()||P.current)return;let n=t.serverNow?Date.parse(t.serverNow):0;n&&n<se.current||(se.current=n,o(t),g(!1),t.serverNow&&O(Date.parse(t.serverNow)-Date.now()),E(Date.now()),z(t.status!==`idle`),V(t.runId),r(e,t.runId),ne(t.clarification??null))},[L,r,e]),ye=(0,Z.useCallback)(async()=>{let t=oe.current;try{let[n,r]=await Promise.all([d1(e),f1(e)]);if(!L()||P.current)return;oe.current===t&&(ve(n),c(T1(oR(r),le.current))),m(!1)}catch(e){_e(e)}},[ve,_e,L,e]);(0,Z.useEffect)(()=>{if(d)return;ye();let t=!1,n=async()=>{if(t||P.current)return;t=!0;let n=oe.current;try{let t=await _1(e);t&&n===oe.current&&ve(t)}catch(e){_e(e)}finally{t=!1}},r=window.setInterval(()=>{E(Date.now()),n()},3e4),i=()=>{document.visibilityState!==`hidden`&&ye()};return window.addEventListener(`online`,i),window.addEventListener(`pageshow`,i),document.addEventListener(`visibilitychange`,i),()=>{window.clearInterval(r),window.removeEventListener(`online`,i),window.removeEventListener(`pageshow`,i),document.removeEventListener(`visibilitychange`,i)}},[d,ye,ve,_e,e]),(0,Z.useEffect)(()=>{if(!d)return ZF(`side-chat:${c1()}:${e}`,{onEvent:e=>{e.event===`expired`&&ge(e.data?.reason===`waiting`?`waiting`:`idle`)},onGap:()=>ye()})},[d,ge,ye,e]),(0,Z.useEffect)(()=>{if(!C)return;let e=window.setTimeout(()=>w(``),5e3);return()=>window.clearTimeout(e)},[C]);let be=a?.expiresAt?Date.parse(a.expiresAt)-(T+D):1/0,xe=!d&&!h&&be<=5*6e4,Se=async()=>{if(!(_||P.current)){v(!0);try{let t=await v1(e);if(!L()||P.current)return;ve(t),ee(null),w(de.extended)}catch(e){let t=e.status;(t===404||t===410)&&_e(e),P.current||ee(de.extendFailed)}finally{v(!1)}}},Ce=async()=>{let t=i??D$.getState().tabs.find(t=>t.id===e)?.parentSessionKey;if(!(!t||y)){b(!0),ee(null);try{let n=await u1(t,[]);if(!I())return;D$.getState().replaceTab(e,{id:n.id,parentSessionKey:t,title:`Side chat`})}catch(e){if(!L())return;e.body?.code===`PARENT_NOT_FOUND`&&S(!0),ee(w1(e,de))}finally{b(!1)}}},we=!!te,Te=(0,Z.useRef)(we);(0,Z.useLayoutEffect)(()=>{let e=Te.current;if(Te.current=we,d||e===we)return;G(!1);let t=requestAnimationFrame(()=>G(!1));return()=>cancelAnimationFrame(t)},[we,G,d]);let Ee=(0,Z.useCallback)(e=>{oe.current+=1,c(t=>{let n=structuredClone(t),r=n.at(-1);return r?.role!==`assistant`&&(r={role:`assistant`,content:[],timestamp:Date.now()},n.push(r)),e(r),n})},[]);(0,Z.useEffect)(()=>{if(!(!B||d))return ZF(`run:${B}`,{onEvent:t=>{if(!L()||P.current)return;let n=t.data?.payload??{};t.event===`assistant_message_start`?Ee(()=>{}):t.event===`assistant_delta`?Ee(e=>xz(e.content,String(n.delta??``),String(n.messageId??``))):t.event===`thinking_delta`?Ee(e=>_z(e.content,String(n.delta??``),!0)):t.event===`thinking_end`?Ee(e=>vz(e.content)):t.event===`tool_start`?Ee(e=>kz(e.content,String(n.toolName??`tool`),n.args,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`tool_end`?Ee(e=>Az(e.content,String(n.toolName??`tool`),n.status===`error`,n.result,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`clarify_request`?(ne({requestId:String(n.requestId??``),question:String(n.question??``),choices:Array.isArray(n.choices)?n.choices.filter(e=>typeof e==`string`):void 0}),ie(null),ye()):t.event===`error`?ee(String(n.message??de.failed)):t.event===`run_end`&&(z(!1),V(void 0),r(e,void 0),ne(null),ye())},onGap:()=>ye()})},[d,L,Ee,r,ye,B,e,de.failed]);let De=()=>{let t=l.trim();if(!t||R||ce.current||P.current||h)return;if(v$(t)>262144){ee(de.draftTooLong);return}let n=l;ce.current=!0,u(``),ee(null),oe.current+=1;let i=crypto.randomUUID(),a={role:`user`,content:[{type:`text`,text:t}],timestamp:Date.now(),renderKey:`side-chat-user:${i}`};le.current.set(i,a),c(e=>[...e,a]),z(!0),p1(e,t).then(t=>{!I()||P.current||(D$.getState().setTabRunId(e,t),L()&&(V(t),r(e,t)))}).catch(t=>{if(!I())return;let r=D$.getState();if(!L()&&!r.tabs.some(t=>t.id===e))return;let o=D$.getState().drafts[e]??``;u(o?`${n}\n${o}`:n),le.current.delete(i);let s=r.readings[e];if(s&&r.rememberMessages(e,s.messages.filter(e=>e.renderKey!==a.renderKey)),!L())return;c(e=>e.filter(e=>e.renderKey!==a.renderKey)),z(!1);let l=t.status;l===404||l===410?_e(t):ee(w1(t,de))}).finally(()=>{ce.current=!1})},Oe=async t=>{if(!(!te||P.current)){W(!0),ie(null);try{await h1(e,te.requestId,t),ne(null),ye()}catch(e){e.status===410?_e(e):ie(w1(e,de))}finally{W(!1)}}},ke=async()=>{try{await m1(e,B),L()&&ne(null)}catch(e){if(!L())return;let t=e.status;t===404||t===410?_e(e):ee(w1(e,de))}},Ae=(0,Z.useCallback)(e=>{u(e),requestAnimationFrame(()=>{let t=ae.current;t?.focus(),t?.setSelectionRange(e.length,e.length)})},[u]),je=(0,Z.useCallback)(async e=>{try{let t=await R$(e.trim(),`web`);fA(`success`,ue.chat.messageSavedToNote,void 0,{href:`/notes/${encodeURIComponent(t.id)}`})}catch(e){throw fA(`error`,e instanceof Error?e.message:ue.notes.quickCaptureFailed),e}},[ue.chat.messageSavedToNote,ue.notes.quickCaptureFailed]);return(0,$.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 px-5 pt-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`button`,{type:`button`,className:`rounded px-1 py-1 hover:bg-surface-hover`,"aria-expanded":k,onClick:()=>A(e=>!e),children:de.temporaryLabel}),k?(0,$.jsx)(`p`,{className:`mt-1`,children:de.temporaryDescription}):null]}),(0,$.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[(0,$.jsxs)(`div`,{ref:fe,"data-side-chat-scroll-viewport":!0,onScroll:he,className:`chat-messages h-full overflow-y-auto overflow-x-hidden px-5 py-4 [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,children:[p&&!s.length?(0,$.jsxs)(`div`,{className:`space-y-5`,"aria-busy":`true`,"aria-label":de.creating,children:[(0,$.jsx)(Ft,{className:`ml-auto h-12 w-3/4`}),(0,$.jsx)(Ft,{className:`h-4 w-full`}),(0,$.jsx)(Ft,{className:`h-4 w-4/5`})]}):s.length?(0,$.jsx)(s$,{messages:s,authToken:t,sessionKey:e,streaming:R,progress:null,reasoningLevel:`on`,registerListContentRef:me,deleteRoundDisabled:R||!!d,onSaveAssistantAsNote:je,onEditUserMessage:d?void 0:e=>Ae(C1(e)),responseFeedbackEnabled:!1}):d?null:(0,$.jsxs)(`div`,{className:`flex min-h-64 flex-col items-center justify-center text-center`,children:[(0,$.jsx)(Y_,{className:`mb-4 size-9 text-fg-muted`,strokeWidth:1.5}),(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:de.title}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:j?de.freshContext:de.emptyDescription})]}),M&&d?(0,$.jsx)(`p`,{className:`mt-3 text-xs text-fg-muted`,children:de.partialReading}):null]}),(0,$.jsx)(l$,{visible:!pe,onClick:()=>G(!0),contained:!0})]}),h&&!d?(0,$.jsx)(`p`,{role:`status`,className:`shrink-0 px-4 py-2 text-xs text-fg-muted`,children:de.connectionLost}):null,C?(0,$.jsx)(`p`,{role:`status`,className:`shrink-0 px-4 py-2 text-xs text-fg-muted`,children:C}):null,xe?(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 border-t border-edge px-4 py-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:be<=0?de.verifying:de.expiring.replace(`{{minutes}}`,String(Math.max(1,Math.ceil(be/6e4))))}),(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`ml-auto h-8 text-xs`,disabled:_||be<=0,onClick:()=>void Se(),children:de.keepAlive})]}):null,te&&!d?(0,$.jsx)(`div`,{className:`shrink-0 border-t border-edge px-3 pt-3`,children:(0,$.jsx)(xk,{prompt:te,submitting:U,submitError:re,labels:ue.chat,onSubmit:Oe,onCancel:ke})}):null,H?(0,$.jsx)(`p`,{className:`border-t border-edge px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:H}):null,d?(0,$.jsx)(`div`,{className:`shrink-0 border-t border-edge p-3`,children:(0,$.jsxs)(`div`,{className:`rounded-xl border border-edge bg-surface-panel p-4`,children:[(0,$.jsx)(`h2`,{className:`text-base font-semibold`,"aria-live":`polite`,children:d===`unavailable`?de.unavailableTitle:de.expiredTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:x?de.parentMissing:d===`waiting`?de.waitExpired:s.length?de.expiredDescription:de.unavailableDescription}),l?(0,$.jsxs)(`div`,{className:`mt-3`,children:[(0,$.jsx)(`label`,{htmlFor:`side-chat-draft-${e}`,className:`text-xs text-fg-muted`,children:de.unsentDraft}),(0,$.jsx)(`textarea`,{id:`side-chat-draft-${e}`,value:l,onChange:e=>u(y$(e.target.value)),rows:3,className:`mt-1 w-full resize-y rounded-lg border border-edge bg-surface-base p-2 text-sm`})]}):null,(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`mt-4`,disabled:y,onClick:()=>{x?i&&D$.getState().setOpen(i,!1):Ce()},children:x?de.closePaneAria:y?de.creating:l.trim()?de.newWithDraft:de.newAria}),s.length&&!x?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:de.replaceHint}):null]})}):(0,$.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),De()},className:`shrink-0 border-t border-edge p-3`,children:(0,$.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-panel p-3 focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/15`,children:[a?.context.selections.length?(0,$.jsxs)(`div`,{className:`mb-2 inline-flex h-8 max-w-full items-center gap-1.5 rounded-lg border border-edge bg-surface-base px-2.5 text-xs font-medium text-fg-muted`,title:a.context.selections.map(e=>e.label||e.text).join(`
|
|
66
|
+
`),children:[(0,$.jsx)(Z_,{className:`size-3.5 shrink-0`}),(0,$.jsx)(`span`,{className:`truncate`,children:(a.context.selections.length===1?de.selectionCount_one:de.selectionCount_other).replace(`{{count}}`,String(a.context.selections.length))})]}):null,(0,$.jsx)(`textarea`,{ref:ae,value:l,onChange:e=>{let t=e.target.value;v$(t)>262144&&ee(de.draftTooLong),u(y$(t))},onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),De())},rows:3,placeholder:ue.chat.typeMessage,className:`w-full resize-none bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between`,children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5 truncate text-xs text-fg-muted`,title:de.parentPermissionsHint,children:[(0,$.jsx)(Yv,{className:`size-3.5 shrink-0`}),(0,$.jsx)(`span`,{className:`truncate`,children:de.parentPermissions.replace(`{{model}}`,a?.config.modelRef??``)})]}),R?(0,$.jsx)(vt,{type:`button`,className:`size-9 rounded-full p-0`,"aria-label":ue.chat.abort,onClick:()=>void ke(),children:(0,$.jsx)(_x,{className:`size-3.5 fill-current`})}):(0,$.jsx)(vt,{type:`submit`,className:`size-9 rounded-full p-0`,disabled:!l.trim()||h||v$(l)>262144,"aria-label":ue.chat.sendMessage,children:(0,$.jsx)(Uv,{className:`size-4`})})]})]})})]})}function U1(e){SG(e)}var W1=32e3,G1=264,K1=10;function q1(){let e=(0,Q.c)(36),{pathname:t}=l(),n;e[0]===t?n=e[1]:(n=t.startsWith(`/chat/`)?t.slice(6):``,e[0]=t,e[1]=n);let r=n,i=ct(Q1),a;e[2]===i?a=e[3]:(a=rt(i),e[2]=i,e[3]=a);let o=a.sideChat,s=D$(Z1),c=D$(X1),u=YU(Y1),[d,f]=(0,Z.useState)(null),p;e[4]!==c||e[5]!==r?(p=()=>{if(!r||r===`new`||c){f(null);return}let e=window.getSelection(),t=e?.toString().trim()??``;if(!e||e.rangeCount===0||!t||t.length>W1){f(null);return}let n=e.getRangeAt(0),i=$1(e.anchorNode),a=$1(e.focusNode),o=document.getElementById(`app-main-content`),s=document.getElementById(`app-side-chat-panel`),l=!!(s?.contains(i)&&s?.contains(a));if(!i||!a||!l&&(!o?.contains(i)||!o.contains(a))||!i.closest(`[data-chat-message-index]`)||!a.closest(`[data-chat-message-index]`)){f(null);return}let u=n.getBoundingClientRect();if(u.width===0&&u.height===0){f(null);return}let d=Math.min(window.innerWidth-G1-K1,Math.max(K1,u.left+u.width/2-G1/2)),p=u.bottom+8;f({text:t,left:d,top:p+38<window.innerHeight?p:Math.max(K1,u.top-42),fromSide:l})},e[4]=c,e[5]=r,e[6]=p):p=e[6];let m=p,h,g;if(e[7]!==m||e[8]!==t?(h=()=>{if(!t.startsWith(`/chat/`)){f(null);return}let e=()=>window.requestAnimationFrame(m),n=()=>f(null);return document.addEventListener(`pointerup`,e),document.addEventListener(`keyup`,e),window.addEventListener(`scroll`,n,!0),window.addEventListener(`resize`,n),()=>{document.removeEventListener(`pointerup`,e),document.removeEventListener(`keyup`,e),window.removeEventListener(`scroll`,n,!0),window.removeEventListener(`resize`,n)}},g=[m,t],e[7]=m,e[8]=t,e[9]=h,e[10]=g):(h=e[9],g=e[10]),(0,Z.useEffect)(h,g),!d||!r||r===`new`)return null;let _=d.fromSide?G1/2:G1,v;e[11]!==d.left||e[12]!==d.top||e[13]!==_?(v={left:d.left,top:d.top,width:_},e[11]=d.left,e[12]=d.top,e[13]=_,e[14]=v):v=e[14];let y;e[15]===d.text?y=e[16]:(y=()=>{U1(d.text),window.getSelection()?.removeAllRanges(),f(null)},e[15]=d.text,e[16]=y);let b;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Me,{className:`size-3.5 shrink-0`}),e[17]=b):b=e[17];let x;e[18]===o.addToChat?x=e[19]:(x=(0,$.jsx)(`span`,{className:`whitespace-nowrap`,children:o.addToChat}),e[18]=o.addToChat,e[19]=x);let S;e[20]!==y||e[21]!==x?(S=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex flex-1 items-center justify-center gap-1.5 px-3 transition-colors hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:y,children:[b,x]}),e[20]=y,e[21]=x,e[22]=S):S=e[22];let C;e[23]!==o.askInSideChat||e[24]!==o.selectedText||e[25]!==d.fromSide||e[26]!==d.text||e[27]!==s||e[28]!==r||e[29]!==u?(C=d.fromSide?null:(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex flex-1 items-center justify-center gap-1.5 border-l border-edge px-3 transition-colors hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:()=>{let e=decodeURIComponent(r);u(!1),s(e,[{id:crypto.randomUUID(),type:`text`,text:d.text,label:o.selectedText}]),window.getSelection()?.removeAllRanges(),f(null)},children:[(0,$.jsx)(Y_,{className:`size-3.5 shrink-0`}),(0,$.jsx)(`span`,{className:`whitespace-nowrap`,children:o.askInSideChat})]}),e[23]=o.askInSideChat,e[24]=o.selectedText,e[25]=d.fromSide,e[26]=d.text,e[27]=s,e[28]=r,e[29]=u,e[30]=C):C=e[30];let w;return e[31]!==o.selectedTextActionsAria||e[32]!==S||e[33]!==C||e[34]!==v?(w=(0,$.jsxs)(`div`,{role:`group`,"aria-label":o.selectedTextActionsAria,className:`fixed z-[70] flex h-9 overflow-hidden rounded-lg border border-edge bg-surface-panel text-xs font-medium text-fg shadow-popover`,style:v,onPointerDown:J1,children:[S,C]}),e[31]=o.selectedTextActionsAria,e[32]=S,e[33]=C,e[34]=v,e[35]=w):w=e[35],w}function J1(e){return e.preventDefault()}function Y1(e){return e.setOpen}function X1(e){return e.pendingCreate}function Z1(e){return e.requestCreate}function Q1(e){return e.language}function $1(e){return e?e.nodeType===Node.ELEMENT_NODE?e:e.parentElement:null}function e0(){let e=(0,Q.c)(28),t=(0,Z.useRef)(null),n=ut(s0),r=ut(o0),i=ut(a0),a=ut(i0),o=ut(r0),s=ut(n0),c=ct(t0),l;e[0]===c?l=e[1]:(l=rt(c),e[0]=c,e[1]=l);let u=l.token,d=!!s&&!i,f;e[2]!==d||e[3]!==o?(f=e=>{!e&&!d||e||o()},e[2]=d,e[3]=o,e[4]=f):f=e[4];let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(R,{className:X(`fixed inset-0 bg-scrim backdrop-blur-[2px]`,Rt)}),e[5]=p):p=e[5];let m,h;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=X(`fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,It,`dark:border-edge`),h=e=>{e.preventDefault(),t.current?.focus()},e[6]=m,e[7]=h):(m=e[6],h=e[7]);let g;e[8]===u.title?g=e[9]:(g=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:u.title}),e[8]=u.title,e[9]=g);let _;e[10]===u.description?_=e[11]:(_=(0,$.jsx)(B,{className:`mt-1 text-sm text-fg-muted`,children:u.description}),e[10]=u.description,e[11]=_);let v;e[12]!==d||e[13]!==o||e[14]!==c?(v=d?(0,$.jsx)(vt,{type:`button`,variant:`ghost`,onClick:()=>o(),children:c===`zh`?`取消`:`Cancel`}):void 0,e[12]=d,e[13]=o,e[14]=c,e[15]=v):v=e[15];let y;e[16]!==r||e[17]!==a||e[18]!==v?(y=(0,$.jsx)(Fj,{className:`mt-4`,baseUrl:r,tokenInputRef:t,onSubmit:a,footerLeft:v}),e[16]=r,e[17]=a,e[18]=v,e[19]=y):y=e[19];let b;e[20]!==g||e[21]!==_||e[22]!==y?(b=(0,$.jsxs)(H,{children:[p,(0,$.jsxs)(ee,{className:m,onOpenAutoFocus:h,children:[g,_,y]})]}),e[20]=g,e[21]=_,e[22]=y,e[23]=b):b=e[23];let x;return e[24]!==n||e[25]!==f||e[26]!==b?(x=(0,$.jsx)(ne,{open:n,onOpenChange:f,children:b}),e[24]=n,e[25]=f,e[26]=b,e[27]=x):x=e[27],x}function t0(e){return e.language}function n0(e){return e.token}function r0(e){return e.closeTokenDialog}function i0(e){return e.setGatewayToken}function a0(e){return e.tokenExpired}function o0(e){return e.baseUrl}function s0(e){return e.tokenDialogOpen}function c0(e){let t=e+`CollectionProvider`,[n,r]=T(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=Z.useRef(null),a=Z.useRef(new Map).current;return(0,$.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=L(s),l=Z.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,$.jsx)(c,{ref:I(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=L(u),p=Z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=Z.useRef(null),s=I(t,o),c=a(u,n);return Z.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,$.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return Z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var l0=Z.createContext(void 0);function u0(e){let t=Z.useContext(l0);return e||t||`ltr`}var d0=!1;function f0(){let[e,t]=Z.useState(d0);return Z.useEffect(()=>{d0||(d0=!0,t(!0))},[]),e}var p0=Z.useSyncExternalStore;function m0(){return()=>{}}function h0(){return p0(m0,()=>!0,()=>!1)}var g0=typeof p0==`function`?h0:f0,_0=`rovingFocusGroup.onEntryFocus`,v0={bubbles:!1,cancelable:!0},y0=`RovingFocusGroup`,[b0,x0,S0]=c0(y0),[C0,w0]=T(y0,[S0]),[T0,E0]=C0(y0),D0=Z.forwardRef((e,t)=>(0,$.jsx)(b0.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(b0.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(O0,{...e,ref:t})})}));D0.displayName=y0;var O0=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=Z.useRef(null),p=I(t,f),m=u0(a),[h,g]=C({prop:o,defaultProp:s??null,onChange:c,caller:y0}),[_,v]=Z.useState(!1),y=D(l),b=x0(n),x=Z.useRef(!1),[S,T]=Z.useState(0);return Z.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(_0,y),()=>e.removeEventListener(_0,y)},[y]),(0,$.jsx)(T0,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:Z.useCallback(e=>g(e),[g]),onItemShiftTab:Z.useCallback(()=>v(!0),[]),onFocusableItemAdd:Z.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:Z.useCallback(()=>T(e=>e-1),[]),children:(0,$.jsx)(F.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:w(e.onMouseDown,()=>{x.current=!0}),onFocus:w(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(_0,v0);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);P0([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:w(e.onBlur,()=>v(!1))})})}),k0=`RovingFocusGroupItem`,A0=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=j(),l=a||c,u=E0(k0,n),d=u.currentTabStopId===l,f=x0(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=g0();return O(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),Z.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,$.jsx)(b0.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,$.jsx)(F.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:w(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:w(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:w(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=N0(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?F0(n,r+1):n.slice(r+1)}setTimeout(()=>P0(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});A0.displayName=k0;var j0={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function M0(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function N0(e,t,n){let r=M0(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return j0[r]}function P0(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function F0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var I0=D0,L0=A0,R0=[`Enter`,` `],z0=[`ArrowDown`,`PageUp`,`Home`],B0=[`ArrowUp`,`PageDown`,`End`],V0=[...z0,...B0],H0={ltr:[...R0,`ArrowRight`],rtl:[...R0,`ArrowLeft`]},U0={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},W0=`Menu`,[G0,K0,q0]=c0(W0),[J0,Y0]=T(W0,[q0,At,w0]),X0=At(),Z0=w0(),[Q0,$0]=J0(W0),[e2,t2]=J0(W0),n2=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=X0(t),[c,l]=Z.useState(null),u=Z.useRef(!1),d=D(a),f=u0(i);return Z.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),Z.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,$.jsx)(jt,{...s,children:(0,$.jsx)(Q0,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,$.jsx)(e2,{scope:t,onClose:Z.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};n2.displayName=W0;var r2=`MenuAnchor`,i2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=X0(n);return(0,$.jsx)(Pt,{...i,...r,ref:t})});i2.displayName=r2;var a2=`MenuPortal`,[o2,s2]=J0(a2,{forceMount:void 0}),c2=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=$0(a2,t);return(0,$.jsx)(o2,{scope:t,forceMount:n,children:(0,$.jsx)(E,{present:n||a.open,children:(0,$.jsx)(x,{asChild:!0,container:i,children:r})})})};c2.displayName=a2;var l2=`MenuContent`,[u2,d2]=J0(l2),f2=Z.forwardRef((e,t)=>{let n=s2(l2,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=$0(l2,e.__scopeMenu),o=t2(l2,e.__scopeMenu);return(0,$.jsx)(G0.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(E,{present:r||a.open,children:(0,$.jsx)(G0.Slot,{scope:e.__scopeMenu,children:o.modal?(0,$.jsx)(p2,{...i,ref:t}):(0,$.jsx)(m2,{...i,ref:t})})})})}),p2=Z.forwardRef((e,t)=>{let n=$0(l2,e.__scopeMenu),r=Z.useRef(null),i=I(t,r);return Z.useEffect(()=>{let e=r.current;if(e)return P(e)},[]),(0,$.jsx)(g2,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:w(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),m2=Z.forwardRef((e,t)=>{let n=$0(l2,e.__scopeMenu);return(0,$.jsx)(g2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),h2=L(`MenuContent.ScrollLock`),g2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=$0(l2,n),_=t2(l2,n),v=X0(n),y=Z0(n),b=K0(n),[x,S]=Z.useState(null),C=Z.useRef(null),T=I(t,C,g.onContentChange),E=Z.useRef(0),D=Z.useRef(``),O=Z.useRef(0),j=Z.useRef(null),P=Z.useRef(`right`),F=Z.useRef(0),L=m?k:Z.Fragment,R=m?{as:h2,allowPinchZoom:!0}:void 0,z=e=>{let t=D.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Mse(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};Z.useEffect(()=>()=>window.clearTimeout(E.current),[]),M();let B=Z.useCallback(e=>P.current===j.current?.side&&Pse(e,j.current?.area),[]);return(0,$.jsx)(u2,{scope:n,searchRef:D,onItemEnter:Z.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:Z.useCallback(e=>{B(e)||(C.current?.focus(),S(null))},[B]),onTriggerLeave:Z.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:O,onPointerGraceIntentChange:Z.useCallback(e=>{j.current=e},[]),children:(0,$.jsx)(L,{...R,children:(0,$.jsx)(A,{asChild:!0,trapped:i,onMountAutoFocus:w(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,$.jsx)(N,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,$.jsx)(I0,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:w(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,$.jsx)(Nt,{role:`menu`,"aria-orientation":`vertical`,"data-state":W2(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:w(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&z(e.key));let i=C.current;if(e.target!==i||!V0.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);B0.includes(e.key)&&a.reverse(),Ase(a)}),onBlur:w(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:w(e.onPointerMove,q2(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(P.current=e.clientX>F.current?`right`:`left`,F.current=e.clientX)}))})})})})})})});f2.displayName=l2;var _2=`MenuGroup`,v2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(F.div,{role:`group`,...r,ref:t})});v2.displayName=_2;var y2=`MenuLabel`,b2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(F.div,{...r,ref:t})});b2.displayName=y2;var x2=`MenuItem`,S2=`menu.itemSelect`,C2=Z.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=Z.useRef(null),o=t2(x2,e.__scopeMenu),s=d2(x2,e.__scopeMenu),c=I(t,a),l=Z.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(S2,{bubbles:!0,cancelable:!0});e.addEventListener(S2,e=>r?.(e),{once:!0}),S(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,$.jsx)(w2,{...i,ref:c,disabled:n,onClick:w(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:w(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:w(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||R0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});C2.displayName=x2;var w2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=d2(x2,n),s=Z0(n),c=Z.useRef(null),l=I(t,c),[u,d]=Z.useState(!1),[f,p]=Z.useState(``);return Z.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,$.jsx)(G0.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,$.jsx)(L0,{asChild:!0,...s,focusable:!r,children:(0,$.jsx)(F.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:w(e.onPointerMove,q2(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:w(e.onPointerLeave,q2(e=>o.onItemLeave(e))),onFocus:w(e.onFocus,()=>d(!0)),onBlur:w(e.onBlur,()=>d(!1))})})})}),T2=`MenuCheckboxItem`,E2=Z.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,$.jsx)(P2,{scope:e.__scopeMenu,checked:n,children:(0,$.jsx)(C2,{role:`menuitemcheckbox`,"aria-checked":G2(n)?`mixed`:n,...i,ref:t,"data-state":K2(n),onSelect:w(i.onSelect,()=>r?.(G2(n)?!0:!n),{checkForDefaultPrevented:!1})})})});E2.displayName=T2;var D2=`MenuRadioGroup`,[O2,k2]=J0(D2,{value:void 0,onValueChange:()=>{}}),A2=Z.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=D(r);return(0,$.jsx)(O2,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,$.jsx)(v2,{...i,ref:t})})});A2.displayName=D2;var j2=`MenuRadioItem`,M2=Z.forwardRef((e,t)=>{let{value:n,...r}=e,i=k2(j2,e.__scopeMenu),a=n===i.value;return(0,$.jsx)(P2,{scope:e.__scopeMenu,checked:a,children:(0,$.jsx)(C2,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":K2(a),onSelect:w(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});M2.displayName=j2;var N2=`MenuItemIndicator`,[P2,Tse]=J0(N2,{checked:!1}),F2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Tse(N2,n);return(0,$.jsx)(E,{present:r||G2(a.checked)||a.checked===!0,children:(0,$.jsx)(F.span,{...i,ref:t,"data-state":K2(a.checked)})})});F2.displayName=N2;var Ese=`MenuSeparator`,I2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(F.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});I2.displayName=Ese;var Dse=`MenuArrow`,L2=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=X0(n);return(0,$.jsx)(Mt,{...i,...r,ref:t})});L2.displayName=Dse;var R2=`MenuSub`,[Ose,z2]=J0(R2),kse=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=$0(R2,t),o=X0(t),[s,c]=Z.useState(null),[l,u]=Z.useState(null),d=D(i);return Z.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,$.jsx)(jt,{...o,children:(0,$.jsx)(Q0,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,$.jsx)(Ose,{scope:t,contentId:j(),triggerId:j(),trigger:s,onTriggerChange:c,children:n})})})};kse.displayName=R2;var B2=`MenuSubTrigger`,V2=Z.forwardRef((e,t)=>{let n=$0(B2,e.__scopeMenu),r=t2(B2,e.__scopeMenu),i=z2(B2,e.__scopeMenu),a=d2(B2,e.__scopeMenu),o=Z.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=Z.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);Z.useEffect(()=>u,[u]),Z.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=I(t,i.onTriggerChange);return(0,$.jsx)(i2,{asChild:!0,...l,children:(0,$.jsx)(w2,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":W2(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:w(e.onPointerMove,q2(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:w(e.onPointerLeave,q2(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:w(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||H0[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});V2.displayName=B2;var H2=`MenuSubContent`,U2=Z.forwardRef((e,t)=>{let n=s2(l2,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=$0(l2,e.__scopeMenu),s=t2(l2,e.__scopeMenu),c=z2(H2,e.__scopeMenu),l=Z.useRef(null),u=I(t,l);return(0,$.jsx)(G0.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(E,{present:r||o.open,children:(0,$.jsx)(G0.Slot,{scope:e.__scopeMenu,children:(0,$.jsx)(g2,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:w(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:w(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:w(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=U0[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});U2.displayName=H2;function W2(e){return e?`open`:`closed`}function G2(e){return e===`indeterminate`}function K2(e){return G2(e)?`indeterminate`:e?`checked`:`unchecked`}function Ase(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Mse(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=jse(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Nse(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Pse(e,t){return t?Nse({x:e.clientX,y:e.clientY},t):!1}function q2(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Fse=n2,Ise=i2,Lse=c2,Rse=f2,zse=v2,Bse=b2,Vse=C2,Hse=E2,Use=A2,Wse=M2,Gse=F2,Kse=I2,qse=L2,Jse=V2,Yse=U2,J2=`DropdownMenu`,[Xse,Zse]=T(J2,[Y0]),Y2=Y0(),[Qse,X2]=Xse(J2),Z2=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Y2(t),l=Z.useRef(null),[u,d]=C({prop:i,defaultProp:a??!1,onChange:o,caller:J2});return(0,$.jsx)(Qse,{scope:t,triggerId:j(),triggerRef:l,contentId:j(),open:u,onOpenChange:d,onOpenToggle:Z.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,$.jsx)(Fse,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};Z2.displayName=J2;var Q2=`DropdownMenuTrigger`,$2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=X2(Q2,n),o=Y2(n),s=I(t,a.triggerRef);return(0,$.jsx)(Ise,{asChild:!0,...o,children:(0,$.jsx)(F.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:w(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:w(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});$2.displayName=Q2;var $se=`DropdownMenuPortal`,e4=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Y2(t);return(0,$.jsx)(Lse,{...r,...n})};e4.displayName=$se;var t4=`DropdownMenuContent`,n4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=X2(t4,n),a=Y2(n),o=Z.useRef(!1);return(0,$.jsx)(Rse,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:w(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:w(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});n4.displayName=t4;var ece=`DropdownMenuGroup`,tce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(zse,{...i,...r,ref:t})});tce.displayName=ece;var nce=`DropdownMenuLabel`,rce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Bse,{...i,...r,ref:t})});rce.displayName=nce;var ice=`DropdownMenuItem`,r4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Vse,{...i,...r,ref:t})});r4.displayName=ice;var ace=`DropdownMenuCheckboxItem`,oce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Hse,{...i,...r,ref:t})});oce.displayName=ace;var sce=`DropdownMenuRadioGroup`,cce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Use,{...i,...r,ref:t})});cce.displayName=sce;var lce=`DropdownMenuRadioItem`,uce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Wse,{...i,...r,ref:t})});uce.displayName=lce;var dce=`DropdownMenuItemIndicator`,fce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Gse,{...i,...r,ref:t})});fce.displayName=dce;var pce=`DropdownMenuSeparator`,i4=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Kse,{...i,...r,ref:t})});i4.displayName=pce;var mce=`DropdownMenuArrow`,hce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(qse,{...i,...r,ref:t})});hce.displayName=mce;var gce=`DropdownMenuSubTrigger`,_ce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Jse,{...i,...r,ref:t})});_ce.displayName=gce;var vce=`DropdownMenuSubContent`,yce=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Y2(n);return(0,$.jsx)(Yse,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});yce.displayName=vce;var a4=Z2,o4=$2,s4=e4,c4=n4,l4=r4,u4=i4;function bce(){return Wt()&&window.electronAPI?.platform===`darwin`}function d4(){return Wt()&&window.electronAPI?.platform===`win32`}function xce(e){return e?e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `):null}function Sce(e){let t=(0,Q.c)(15),{item:n,onInvoke:r}=e;if(n.type===`separator`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(u4,{className:`my-1 h-px bg-edge-subtle`}),t[0]=e):e=t[0],e}let i;t[1]===n.accelerator?i=t[2]:(i=xce(n.accelerator),t[1]=n.accelerator,t[2]=i);let a=i,o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=X(`flex min-h-7 cursor-default select-none items-center gap-6 rounded-md px-2 py-1.5 text-xs text-fg outline-none`,`data-[highlighted]:bg-surface-hover data-[highlighted]:text-fg`),t[3]=o):o=t[3];let s;t[4]!==n.id||t[5]!==r?(s=()=>r(n.id),t[4]=n.id,t[5]=r,t[6]=s):s=t[6];let c;t[7]===n.label?c=t[8]:(c=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.label}),t[7]=n.label,t[8]=c);let l;t[9]===a?l=t[10]:(l=a?(0,$.jsx)(`span`,{className:`shrink-0 whitespace-nowrap font-mono text-[11px] text-fg-subtle`,children:a}):null,t[9]=a,t[10]=l);let u;return t[11]!==s||t[12]!==c||t[13]!==l?(u=(0,$.jsxs)(l4,{className:o,onSelect:s,children:[c,l]}),t[11]=s,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Cce(e){let t=(0,Q.c)(6),{groups:n}=e,r=wce,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=X(`windows-titlebar-interactive flex min-w-0 items-center gap-1`,pj),t[0]=i):i=t[0];let a;if(t[1]!==n){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>(0,$.jsxs)(a4,{modal:!1,children:[(0,$.jsx)(o4,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex h-8 shrink-0 items-center rounded-md px-3 text-sm font-normal text-fg-muted`,`outline-none transition-colors hover:bg-surface-hover hover:text-fg`,`focus-visible:ring-2 focus-visible:ring-accent/60 data-[state=open]:bg-surface-hover data-[state=open]:text-fg`,pj),role:`menuitem`,children:e.label})}),(0,$.jsx)(s4,{children:(0,$.jsx)(c4,{align:`start`,sideOffset:4,className:X(`windows-titlebar-interactive z-[90] min-w-52 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,pj),children:e.items.map((t,n)=>(0,$.jsx)(Sce,{item:t,onInvoke:r},t.type===`item`?t.id:`${e.id}-separator-${n}`))})})]},e.id),t[3]=e):e=t[3],a=n.map(e),t[1]=n,t[2]=a}else a=t[2];let o;return t[4]===a?o=t[5]:(o=(0,$.jsx)(`div`,{className:i,role:`menubar`,children:a}),t[4]=a,t[5]=o),o}function wce(e){window.electronAPI?.menu?.invoke(e)}var f4=(0,Z.memo)(function(){let e=(0,Q.c)(11),t=ct(Tce),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],e[0]=n):n=e[0];let[r,i]=(0,Z.useState)(n),a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{if(!d4())return;let e=!1;return window.electronAPI?.menu?.getModel().then(t=>{e||i(t)}).catch(()=>{e||i([])}),()=>{e=!0}},e[1]=a):a=e[1];let o;if(e[2]===t?o=e[3]:(o=[t],e[2]=t,e[3]=o),(0,Z.useEffect)(a,o),!d4())return null;let s,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=X(`windows-titlebar flex h-9 min-w-0 shrink-0 items-center gap-2 border-b border-edge-subtle`),c=(0,$.jsx)(`div`,{className:X(`windows-titlebar-interactive flex shrink-0 items-center gap-0.5`,pj),children:(0,$.jsx)(RM,{sidebarToggleVariant:`main`})}),e[4]=s,e[5]=c):(s=e[4],c=e[5]);let l;e[6]===r?l=e[7]:(l=(0,$.jsx)(Cce,{groups:r}),e[6]=r,e[7]=l);let u;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`div`,{className:X(`min-w-8 flex-1 self-stretch`,fj),"aria-hidden":!0}),e[8]=u):u=e[8];let d;return e[9]===l?d=e[10]:(d=(0,$.jsxs)(`header`,{className:s,children:[c,l,u]}),e[9]=l,e[10]=d),d});function Tce(e){return e.language}function Ece(){let e=(0,Q.c)(16),t=ct(Dce),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n.electron,[i,a]=(0,Z.useState)(null),o,s;if(e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{if(!Wt())return;let e=window.electronAPI?.gateway;if(e?.onExited)return e.onExited(e=>a(e))},s=[],e[2]=o,e[3]=s):(o=e[2],s=e[3]),(0,Z.useEffect)(o,s),!i)return null;let c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=X(`shrink-0 border-b border-danger/35 bg-danger/10 px-4 py-3 text-sm text-fg shadow-surface`),e[4]=c):c=e[4];let l;e[5]===r.gatewayExitTitle?l=e[6]:(l=(0,$.jsx)(`p`,{className:`font-semibold`,children:r.gatewayExitTitle}),e[5]=r.gatewayExitTitle,e[6]=l);let u;e[7]===r.gatewayExitBody?u=e[8]:(u=(0,$.jsx)(`p`,{className:`mt-1 text-fg-muted`,children:r.gatewayExitBody}),e[7]=r.gatewayExitBody,e[8]=u);let d=i.code??`—`,f=i.signal??`—`,p;e[9]!==d||e[10]!==f?(p=(0,$.jsxs)(`p`,{className:`mt-2 font-mono text-xs text-fg-muted`,children:[`exit `,d,` · signal `,f]}),e[9]=d,e[10]=f,e[11]=p):p=e[11];let m;return e[12]!==l||e[13]!==u||e[14]!==p?(m=(0,$.jsxs)(`div`,{className:c,role:`alert`,children:[l,u,p]}),e[12]=l,e[13]=u,e[14]=p,e[15]=m):m=e[15],m}function Dce(e){return e.language}function p4(e){return{content:[{type:`text`,text:e}]}}function m4(e,t,n){if(Object.keys(e).length!==1||typeof e[t]!=`string`)throw TypeError(`Expected exactly one string argument: ${t}`);let r=e[t];if(!r||r.length>n)throw TypeError(`Invalid ${t}`);return r}function Oce(e){let t=globalThis.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return n}function h4(){let e=window.electronAPI;if(!e)throw Error(`Desktop bridge is unavailable`);return e}var kce=[{descriptor:{name:`desktop.file.pick`,title:`Choose a local file`,description:`Ask the user to choose one local file and make it available to the agent.`,inputSchema:{type:`object`,additionalProperties:!1,properties:{}},outputSchema:hF,policyId:`personal.foreground-read`,sensitivity:`personal`,effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-read`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`file`]},async execute(e,t){if(Object.keys(e).length!==0)throw TypeError(`Expected no arguments`);let n=await h4().file.pickEndpointFile();if(!n)throw new DOMException(`File selection cancelled`,`AbortError`);let r=Oce(n.dataBase64);if(r.byteLength!==n.size||r.byteLength>26214400)throw Error(`Selected file payload is invalid`);return{content:[await t.uploadFile({name:n.name,mimeType:n.mimeType,bytes:r})]}}},{descriptor:{name:`desktop.file.save`,title:`Save a text file`,description:`Ask the user where to save UTF-8 text generated by the agent.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`suggestedName`,`content`],properties:{suggestedName:{type:`string`,minLength:1,maxLength:255},content:{type:`string`,maxLength:2e5}}},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-write`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},async execute(e){let t=e.suggestedName,n=e.content;if(Object.keys(e).length!==2||typeof t!=`string`||!t||t.length>255||typeof n!=`string`||n.length>2e5||new TextEncoder().encode(n).byteLength>200*1024)throw TypeError(`Invalid file save arguments`);let r=await h4().file.saveEndpointText({suggestedName:t,content:n});if(!r.saved)throw new DOMException(`File save cancelled`,`AbortError`);return p4(`Saved ${r.name}`)}},{descriptor:{name:`desktop.notification.show`,title:`Show a notification`,description:`Show a bounded native desktop notification after user confirmation.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`title`,`body`],properties:{title:{type:`string`,minLength:1,maxLength:120},body:{type:`string`,minLength:1,maxLength:500}}},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`notifications`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},async execute(e){let t=e.title,n=e.body;if(Object.keys(e).length!==2||typeof t!=`string`||!t.trim()||t.length>120||typeof n!=`string`||!n.trim()||n.length>500)throw TypeError(`Invalid notification arguments`);let r=h4().system;if(!r)throw Error(`Desktop notifications are unavailable`);let i=await r.showEndpointNotification({title:t,body:n});if(!i.ok)throw i.error===`PERMISSION_DENIED`||i.error===`NOTIFICATIONS_DISABLED`?new DOMException(`Desktop notification permission is not granted`,`NotAllowedError`):Error(`Desktop notification failed: ${i.error}`);return p4(`Notification shown.`)}},{descriptor:{name:`desktop.clipboard.read`,title:`Read the clipboard`,description:`Read plain text from the desktop clipboard.`,inputSchema:{type:`object`,additionalProperties:!1,properties:{}},outputSchema:mF,policyId:`personal.foreground-read`,sensitivity:`personal`,effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-read`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},async execute(e){if(Object.keys(e).length!==0)throw TypeError(`Expected no arguments`);let t=h4().clipboard;if(!t?.readText)throw Error(`Clipboard read is unavailable`);return p4(await t.readText())}},{descriptor:{name:`desktop.clipboard.write`,title:`Write to the clipboard`,description:`Replace the desktop clipboard with plain text.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`text`],properties:{text:{type:`string`,minLength:1,maxLength:1e5}}},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-write`],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},async execute(e){let t=m4(e,`text`,1e5),n=h4().clipboard;if(!n?.writeText||!await n.writeText(t))throw Error(`Clipboard write failed`);return p4(`Clipboard updated.`)}},{descriptor:{name:`desktop.app.open_external`,title:`Open an external URL`,description:`Open an HTTP or HTTPS URL in the default desktop application.`,inputSchema:{type:`object`,additionalProperties:!1,required:[`url`],properties:{url:{type:`string`,minLength:1,maxLength:2048}}},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`open-external-url`],timeoutMs:15e3,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},async execute(e){let t=m4(e,`url`,2048),n=new URL(t);if(n.protocol!==`http:`&&n.protocol!==`https:`)throw TypeError(`Only HTTP and HTTPS URLs are allowed`);let r=h4().shell;if(!r?.openExternalUrl)throw Error(`External URL opening is unavailable`);let i=await r.openExternalUrl(n.href);if(!i.ok)throw Error(i.error);return p4(`Opened ${n.href}`)}}],g4=600,_4=[],v4=new Set;function y4(){for(let e of v4)e()}function b4(){return _4[0]}function Ace(e){return v4.add(e),()=>v4.delete(e)}function jce(e){let t=JSON.stringify(e,null,2);return t.length<=g4?t:`${t.slice(0,g4)}\n…`}function Mce(e){return e.deadlineAt<=Date.now()?Promise.resolve(!1):new Promise(t=>{let n=window.setTimeout(()=>x4(e.invocationId,!1),e.deadlineAt-Date.now());_4.push({invocationId:e.invocationId,title:e.title,argumentsPreview:jce(e.args),resolve:t,timeout:n}),y4()})}function x4(e,t){let n=_4.findIndex(t=>t.invocationId===e);if(n<0)return;let[r]=_4.splice(n,1);window.clearTimeout(r.timeout),r.resolve(t),y4()}function S4(){let e=_4;_4=[];for(let t of e)window.clearTimeout(t.timeout),t.resolve(!1);y4()}function Nce(){return(0,Z.useSyncExternalStore)(Ace,b4,b4)}function Pce(){let e=(0,Q.c)(38),t=Nce(),n=ct(Fce)===`zh`,r=!!t,i;e[0]===t?i=e[1]:(i=e=>{!e&&t&&x4(t.invocationId,!1)},e[0]=t,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(R,{className:`fixed inset-0 z-[140] bg-scrim backdrop-blur-[2px]`}),e[2]=a):a=e[2];let o=n?`允许端侧工具执行?`:`Allow endpoint tool?`,s;e[3]===o?s=e[4]:(s=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:o}),e[3]=o,e[4]=s);let c=t?.title??``,l;e[5]===c?l=e[6]:(l=(0,$.jsx)(B,{className:`mt-1 text-sm text-fg-muted`,children:c}),e[5]=c,e[6]=l);let u;e[7]!==s||e[8]!==l?(u=(0,$.jsxs)(`div`,{className:`border-b border-edge-subtle px-5 py-4`,children:[s,l]}),e[7]=s,e[8]=l,e[9]=u):u=e[9];let d=n?`实际参数`:`Arguments`,f;e[10]===d?f=e[11]:(f=(0,$.jsx)(`div`,{className:`mb-2 text-xs font-medium uppercase tracking-wide text-fg-subtle`,children:d}),e[10]=d,e[11]=f);let p=t?.argumentsPreview??`{}`,m;e[12]===p?m=e[13]:(m=(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap break-words rounded-lg border border-edge bg-surface-base p-3 font-mono text-xs leading-5 text-fg`,children:p}),e[12]=p,e[13]=m);let h;e[14]!==m||e[15]!==f?(h=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:[f,m]}),e[14]=m,e[15]=f,e[16]=h):h=e[16];let g;e[17]===t?g=e[18]:(g=()=>t&&x4(t.invocationId,!1),e[17]=t,e[18]=g);let _=n?`拒绝`:`Deny`,v;e[19]!==g||e[20]!==_?(v=(0,$.jsx)(vt,{onClick:g,children:_}),e[19]=g,e[20]=_,e[21]=v):v=e[21];let y;e[22]===t?y=e[23]:(y=()=>t&&x4(t.invocationId,!0),e[22]=t,e[23]=y);let b=n?`允许`:`Allow`,x;e[24]!==y||e[25]!==b?(x=(0,$.jsx)(vt,{variant:`primary`,onClick:y,children:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let S;e[27]!==v||e[28]!==x?(S=(0,$.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[v,x]}),e[27]=v,e[28]=x,e[29]=S):S=e[29];let C;e[30]!==h||e[31]!==S||e[32]!==u?(C=(0,$.jsxs)(H,{children:[a,(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[150] flex h-[min(26rem,calc(100vh-2rem))] w-[min(32rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[u,h,S]})]}),e[30]=h,e[31]=S,e[32]=u,e[33]=C):C=e[33];let w;return e[34]!==r||e[35]!==i||e[36]!==C?(w=(0,$.jsx)(ne,{open:r,onOpenChange:i,children:C}),e[34]=r,e[35]=i,e[36]=C,e[37]=w):w=e[37],w}function Fce(e){return e.language}function Ice(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function C4(e,...t){if(!Ice(e))throw Error(`Uint8Array expected`);if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length `+t+`, got length=`+e.length)}function w4(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Lce(e,t){C4(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function T4(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function E4(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function D4(e,t){return e<<32-t|e>>>t}function Rce(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function O4(e){return typeof e==`string`&&(e=Rce(e)),C4(e),e}var zce=class{};function Bce(e){let t=t=>e().update(O4(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Vce(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}function Hce(e,t,n){return e&t^~e&n}function Uce(e,t,n){return e&t^e&n^t&n}var Wce=class extends zce{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=E4(this.buffer)}update(e){w4(this),e=O4(e),C4(e);let{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=E4(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){w4(this),Lce(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,T4(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;Vce(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=E4(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen should be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}},k4=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Gce=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),A4=new Uint32Array(64),Kce=class extends Wce{constructor(e=32){super(64,e,8,!1),this.A=k4[0]|0,this.B=k4[1]|0,this.C=k4[2]|0,this.D=k4[3]|0,this.E=k4[4]|0,this.F=k4[5]|0,this.G=k4[6]|0,this.H=k4[7]|0}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)A4[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=A4[e-15],n=A4[e-2],r=D4(t,7)^D4(t,18)^t>>>3;A4[e]=(D4(n,17)^D4(n,19)^n>>>10)+A4[e-7]+r+A4[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=D4(o,6)^D4(o,11)^D4(o,25),u=l+t+Hce(o,s,c)+Gce[e]+A4[e]|0,d=(D4(n,2)^D4(n,13)^D4(n,22))+Uce(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){T4(A4)}destroy(){this.set(0,0,0,0,0,0,0,0),T4(this.buffer)}},qce=Bce(()=>new Kce),j4=class extends Error{code;constructor(e,t){super(t),this.code=e,this.name=`EndpointToolClientError`}};function Jce(e){return[...qce(new TextEncoder().encode(gF(e)))].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Yce=class{tools=new Map;constructor(e){for(let t of e){let e=t.descriptor.name;if(this.tools.has(e))throw Error(`Duplicate endpoint tool: ${e}`);this.tools.set(e,{definition:t,revision:Jce(t.descriptor)})}}descriptors(){return[...this.tools.values()].map(({definition:e})=>e.descriptor)}get(e){return this.tools.get(e)}},Xce=class{options;active=new Map;now;sendMessage;generation=0;constructor(e){this.options=e,this.now=e.now??Date.now}connect(e){this.disconnect(),this.sendMessage=e}disconnect(){this.generation+=1,this.sendMessage=void 0;for(let e of this.active.values())e.controller.abort();this.active.clear()}publishAvailability(){this.send(`endpoint.availability_changed`,{availability:this.options.getAvailability()})}async handleMessage(e){if(e.type===`tool.cancel`){this.cancel(e.payload.invocationId);return}await this.invoke(e)}async invoke(e){let{invocationId:t,toolName:n,arguments:r,descriptorRevision:i,confirmationRequired:a,deadlineAt:o,uploadGrant:s}=e.payload;if(this.active.has(t)){this.sendError(t,`PROTOCOL_ERROR`,`Endpoint invocation is already running`);return}this.send(`tool.received`,{invocationId:t});let c=this.options.registry.get(n);if(!c){this.sendError(t,`TOOL_NOT_FOUND`,`Endpoint tool is not registered`);return}if(c.revision!==i){this.sendError(t,`TOOL_REVISION_MISMATCH`,`Endpoint tool contract changed`);return}let l=c.definition.descriptor,u=l.confirmation===`always`||l.effect!==`read`;if(a!==u){this.sendError(t,`PROTOCOL_ERROR`,`Endpoint confirmation policy mismatch`);return}let d={controller:new AbortController,generation:this.generation};this.active.set(t,d);try{if(this.assertExecutable(t,d,l,o),u){this.send(`tool.progress`,{invocationId:t,message:`Waiting for approval`});let e=await this.options.confirm({invocationId:t,descriptor:l,arguments:r,deadlineAt:o,signal:d.controller.signal});if(this.assertExecutable(t,d,l,o),!e)throw new j4(`USER_DENIED`,`User denied the endpoint tool call`)}let e=await c.definition.execute(r,{invocationId:t,signal:d.controller.signal,reportProgress:e=>{this.isCurrent(t,d)&&this.send(`tool.progress`,{invocationId:t,...e})},uploadFile:e=>this.options.uploadFile(s,e)});this.assertExecutable(t,d,l,o);let n=lF.array().min(1).max(20).parse(e.content);if(this.send(`tool.result`,{invocationId:t,content:n,...e.details?{details:e.details}:{}}),this.active.delete(t),e.afterSend){let t=d.generation;setTimeout(()=>{this.generation===t&&this.now()<o&&(!l.requiresForeground||this.options.getAvailability()===`foreground`)&&e.afterSend?.()},this.options.afterSendDelayMs??50)}}catch(e){if(!this.isCurrent(t,d))return;this.active.delete(t);let n=this.normalizeError(e);this.sendError(t,n.code,n.message)}}cancel(e){let t=this.active.get(e);t&&(this.active.delete(e),t.controller.abort(),this.send(`tool.cancelled`,{invocationId:e}))}assertExecutable(e,t,n,r){if(!this.isCurrent(e,t)||t.controller.signal.aborted)throw new j4(`TOOL_CANCELLED`,`Endpoint tool call was cancelled`);if(this.now()>=r)throw new j4(`TOOL_TIMEOUT`,`Endpoint tool deadline expired`);if(n.requiresForeground&&this.options.getAvailability()!==`foreground`)throw new j4(`ENDPOINT_NOT_FOREGROUND`,`Endpoint is not foreground`)}isCurrent(e,t){return this.active.get(e)===t&&t.generation===this.generation&&this.sendMessage!==void 0}normalizeError(e){return e instanceof j4?e:e instanceof TypeError?new j4(`INVALID_ARGUMENTS`,e.message):e instanceof Error&&e.name===`AbortError`?new j4(`USER_DENIED`,e.message):e instanceof Error&&e.name===`NotAllowedError`?new j4(`PERMISSION_DENIED`,e.message):new j4(`PROTOCOL_ERROR`,e instanceof Error?e.message:String(e))}sendError(e,t,n){this.send(`tool.error`,{invocationId:e,code:t,message:n})}send(e,t){this.sendMessage?.({protocolVersion:2,messageId:this.options.createMessageId(),type:e,sentAt:this.now(),payload:t})}},Zce=`xopc-endpoint-tools`,M4=`identity`,N4=`xopc.endpoint-tools.endpoint-id`,P4;function Qce(e){if(P4?.startsWith(`${e}:`))return P4;let t=sessionStorage.getItem(N4);return t?.startsWith(`${e}:`)?(P4=t,t):(P4=`${e}:${crypto.randomUUID()}`,sessionStorage.setItem(N4,P4),P4)}function F4(e){let t=String.fromCharCode(...new Uint8Array(e));return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/u,``)}function I4(){return new Promise((e,t)=>{let n=indexedDB.open(Zce,1);n.onupgradeneeded=()=>n.result.createObjectStore(M4),n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Endpoint identity database failed`))})}async function $ce(e){let t=await I4();try{return await new Promise((n,r)=>{let i=t.transaction(M4).objectStore(M4).get(e);i.onsuccess=()=>n(i.result),i.onerror=()=>r(i.error??Error(`Endpoint identity read failed`))})}finally{t.close()}}async function ele(e,t){let n=await I4();try{await new Promise((r,i)=>{let a=n.transaction(M4,`readwrite`);a.objectStore(M4).put(t,e),a.oncomplete=()=>r(),a.onerror=()=>i(a.error??Error(`Endpoint identity write failed`))})}finally{n.close()}}async function tle(e){let t=await I4();try{await new Promise((n,r)=>{let i=t.transaction(M4,`readwrite`);i.objectStore(M4).delete(e),i.oncomplete=()=>n(),i.onerror=()=>r(i.error??Error(`Endpoint identity deletion failed`))})}finally{t.close()}}async function L4(e){let t=await $ce(e);if(t)return t;let n=await crypto.subtle.generateKey({name:`ECDSA`,namedCurve:`P-256`},!0,[`sign`,`verify`]),r=F4(await crypto.subtle.exportKey(`spki`,n.publicKey)),i=await crypto.subtle.importKey(`pkcs8`,await crypto.subtle.exportKey(`pkcs8`,n.privateKey),{name:`ECDSA`,namedCurve:`P-256`},!1,[`sign`]),a={principalId:crypto.randomUUID(),publicKey:r,privateKey:i};return await ele(e,a),a}async function nle(e){return await tle(e),P4=void 0,sessionStorage.removeItem(N4),L4(e)}async function rle(e,t){return F4(await crypto.subtle.sign({name:`ECDSA`,hash:`SHA-256`},e,new TextEncoder().encode(t)))}var ile=2e3;function R4(){return document.visibilityState===`visible`&&document.hasFocus()?`foreground`:`background`}async function ale(e){if(e.signal.aborted)return!1;let t=()=>x4(e.invocationId,!1);e.signal.addEventListener(`abort`,t,{once:!0});try{return await Mce({invocationId:e.invocationId,title:e.descriptor.title,args:e.arguments,deadlineAt:e.deadlineAt})}finally{e.signal.removeEventListener(`abort`,t)}}var ole=class{config;reconnectTimer;connectPromise;detachRealtime;stopped=!1;registrationBlocked=!1;endpointId;turnToken;registry;controller;constructor(e){this.config=e,this.registry=new Yce(e.definitions),this.controller=new Xce({registry:this.registry,getAvailability:R4,confirm:ale,uploadFile:(e,t)=>this.uploadFile(e,t),createMessageId:()=>crypto.randomUUID()})}async start(){this.stopped=!1,this.registrationBlocked=!1,document.addEventListener(`visibilitychange`,this.onVisibilityChange),window.addEventListener(`token-saved`,this.onTokenSaved),await this.connect()}stop(){this.stopped=!0,document.removeEventListener(`visibilitychange`,this.onVisibilityChange),window.removeEventListener(`token-saved`,this.onTokenSaved),window.clearTimeout(this.reconnectTimer),this.detachRealtime?.(),this.detachRealtime=void 0,this.controller.disconnect(),uI(this.turnToken),this.turnToken=void 0,this.endpointId=void 0,S4()}onTokenSaved=()=>{this.registrationBlocked=!1,this.connect()};onVisibilityChange=()=>{this.controller.publishAvailability()};connect(e=!0){if(this.connectPromise)return this.connectPromise;let t=this.connectOnce(e).finally(()=>{this.connectPromise===t&&(this.connectPromise=void 0)});return this.connectPromise=t,t}async connectOnce(e){if(!(this.stopped||this.registrationBlocked)){window.clearTimeout(this.reconnectTimer);try{let t=await L4(this.config.kind);if(this.stopped)return;let n=await ot(Y(`/api/endpoint-tools/principals`),{method:`POST`,body:JSON.stringify({principalId:t.principalId,displayName:this.config.displayName,kind:this.config.kind,platform:this.config.platform,publicKey:t.publicKey})});if(!n.ok){if((await n.json().catch(()=>null))?.error?.code===`PRINCIPAL_REVOKED`){if(!e){this.registrationBlocked=!0;return}let t=await this.config.confirmReenrollment();if(this.stopped)return;if(!t){this.registrationBlocked=!0;return}await nle(this.config.kind),this.stopped||await this.connectOnce(!1);return}if(n.status>=400&&n.status<500){this.registrationBlocked=!0;return}throw Error(`Endpoint registration failed: ${n.status}`)}if(this.stopped)return;let r={createHello:()=>this.createHello(t),onReady:({endpointId:e,turnToken:t})=>{this.endpointId=e,this.turnToken=t,lI(e,t),this.controller.connect(YF)},onMessage:e=>{this.controller.handleMessage(e)},onDisconnected:()=>{this.controller.disconnect(),uI(this.turnToken),this.turnToken=void 0,S4()}};this.detachRealtime?.(),this.detachRealtime=JF(r)}catch{this.scheduleReconnect()}}}scheduleReconnect(){this.stopped||this.reconnectTimer!==void 0||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},ile))}async createHello(e){let t=Qce(e.principalId);this.endpointId=t;let n={principalId:e.principalId,endpointId:t,connectionInstanceId:crypto.randomUUID(),displayName:this.config.displayName,kind:this.config.kind,platform:this.config.platform,appVersion:this.config.appVersion,availability:R4(),nonce:crypto.randomUUID(),signedAt:Date.now(),signature:`pending`,tools:this.registry.descriptors()},r=await rle(e.privateKey,_F(n));return{...n,signature:r}}async uploadFile(e,t){if(!e||!this.endpointId)throw Error(`Endpoint file upload grant is unavailable`);if(!t.name||t.name.length>255||!t.mimeType||t.mimeType.length>255||t.bytes.byteLength>e.maxBytes||e.expiresAt<=Date.now())throw TypeError(`Endpoint file is invalid`);let n=new URL(Y(e.path),window.location.href);n.searchParams.set(`name`,t.name);let r=t.bytes.buffer.slice(t.bytes.byteOffset,t.bytes.byteOffset+t.bytes.byteLength),i=await ot(n,{method:`POST`,headers:{"Content-Type":t.mimeType,"x-endpoint-id":this.endpointId,"x-endpoint-upload-token":e.token},body:r}),a=await i.json().catch(()=>null);if(!i.ok)throw Error(a?.error?.message??`Endpoint file upload failed: ${i.status}`);let o=lF.safeParse(a?.payload);if(!o.success||o.data.type!==`file`)throw Error(`Endpoint file upload returned an invalid response`);return o.data}},z4,B4=new Set;function V4(){for(let e of B4)e()}function sle(e){return B4.add(e),()=>B4.delete(e)}function H4(){return!!z4}function U4(){return z4?Promise.resolve(!1):new Promise(e=>{z4={resolve:e},V4()})}function W4(e){let t=z4;t&&(z4=void 0,t.resolve(e),V4())}function cle(){return(0,Z.useSyncExternalStore)(sle,H4,H4)}function lle(){let e=(0,Q.c)(21),t=cle(),n=ct(ple)===`zh`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(R,{className:`fixed inset-0 z-[140] bg-scrim backdrop-blur-[2px]`}),e[0]=r):r=e[0];let i=n?`重新注册此端?`:`Re-enroll this endpoint?`,a;e[1]===i?a=e[2]:(a=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:i}),e[1]=i,e[2]=a);let o=n?`此端身份已被撤销。继续会删除旧密钥并生成一个新的端身份,然后重新连接 Gateway。`:`This endpoint identity was revoked. Continuing deletes the old key, creates a new endpoint identity, and reconnects to the Gateway.`,s;e[3]===o?s=e[4]:(s=(0,$.jsx)(B,{className:`mt-3 text-sm leading-6 text-fg-muted`,children:o}),e[3]=o,e[4]=s);let c;e[5]!==a||e[6]!==s?(c=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-5`,children:[a,s]}),e[5]=a,e[6]=s,e[7]=c):c=e[7];let l=n?`取消`:`Cancel`,u;e[8]===l?u=e[9]:(u=(0,$.jsx)(vt,{onClick:dle,children:l}),e[8]=l,e[9]=u);let d=n?`生成新身份`:`Create new identity`,f;e[10]===d?f=e[11]:(f=(0,$.jsx)(vt,{variant:`primary`,onClick:ule,children:d}),e[10]=d,e[11]=f);let p;e[12]!==u||e[13]!==f?(p=(0,$.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[u,f]}),e[12]=u,e[13]=f,e[14]=p):p=e[14];let m;e[15]!==p||e[16]!==c?(m=(0,$.jsxs)(H,{children:[r,(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[150] flex h-[min(22rem,calc(100vh-2rem))] w-[min(30rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-float focus:outline-none`,children:[c,p]})]}),e[15]=p,e[16]=c,e[17]=m):m=e[17];let h;return e[18]!==t||e[19]!==m?(h=(0,$.jsx)(ne,{open:t,onOpenChange:fle,children:m}),e[18]=t,e[19]=m,e[20]=h):h=e[20],h}function ule(){return W4(!0)}function dle(){return W4(!1)}function fle(e){return!e&&W4(!1)}function ple(e){return e.language}function G4(e){return{content:[{type:`text`,text:e}]}}function K4(){if(!navigator.userActivation?.isActive)throw new DOMException(`A current user gesture is required`,`NotAllowedError`)}function q4(e){return new DOMException(e,`AbortError`)}function mle(e){let t=e.suggestedName,n=e.content;if(Object.keys(e).length!==2||typeof t!=`string`||!t||t===`.`||t===`..`||t.length>255||t.includes(`/`)||t.includes(`\\`)||typeof n!=`string`||n.length>2e5||new TextEncoder().encode(n).byteLength>200*1024)throw TypeError(`Invalid file download arguments`);return{suggestedName:t,content:n}}function hle(){return K4(),new Promise((e,t)=>{let n=document.createElement(`input`);n.type=`file`,n.multiple=!1,n.onchange=()=>{let r=n.files?.[0];r?e(r):t(q4(`File selection cancelled`))},n.oncancel=()=>t(q4(`File selection cancelled`)),n.click()})}function J4(e,t){let n=e[t];if(typeof n!=`string`||n.length===0)throw TypeError(`${t} must be a non-empty string`);return n}function Y4(e,t){let n=Object.keys(e).toSorted(),r=t.toSorted();if(n.length!==r.length||n.some((e,t)=>e!==r[t]))throw TypeError(`arguments must contain exactly: ${r.join(`, `)||`no fields`}`)}var gle=[{descriptor:{name:`web.file.pick`,title:`Choose a local file`,description:`Ask the user to choose one browser-accessible file and make it available to the agent.`,inputSchema:{type:`object`,properties:{},additionalProperties:!1},outputSchema:hF,policyId:`personal.foreground-read`,sensitivity:`personal`,effect:`read`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-read`],timeoutMs:12e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`file`]},async execute(e,t){Y4(e,[]);let n=await hle();if(n.size>26214400)throw TypeError(`Selected file exceeds ${GP} bytes`);let r=new Uint8Array(await n.arrayBuffer());if(r.byteLength!==n.size||r.byteLength>26214400)throw Error(`Selected file payload is invalid`);return{content:[await t.uploadFile({name:n.name,mimeType:n.type||`application/octet-stream`,bytes:r})]}}},{descriptor:{name:`web.file.download`,title:`Download a text file`,description:`Download bounded UTF-8 text generated by the agent through this browser.`,inputSchema:{type:`object`,properties:{suggestedName:{type:`string`,minLength:1,maxLength:255},content:{type:`string`,maxLength:2e5}},required:[`suggestedName`,`content`],additionalProperties:!1},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`file-download`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},async execute(e){let{suggestedName:t,content:n}=mle(e);K4();let r=URL.createObjectURL(new Blob([n],{type:`text/plain;charset=utf-8`}));try{let e=document.createElement(`a`);e.href=r,e.download=t,e.click()}finally{URL.revokeObjectURL(r)}return G4(`Download started: ${t}`)}},{descriptor:{name:`web.page.get_selection`,title:`Read selected text`,description:`Read the text currently selected in this browser tab.`,inputSchema:{type:`object`,properties:{},additionalProperties:!1},outputSchema:mF,policyId:`public.foreground-read`,sensitivity:`public`,effect:`read`,confirmation:`never`,requiresForeground:!0,requiredPermissions:[],timeoutMs:1e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},async execute(e){return Y4(e,[]),G4(window.getSelection()?.toString()??``)}},{descriptor:{name:`web.clipboard.write`,title:`Write clipboard`,description:`Write text to the clipboard from this browser tab.`,inputSchema:{type:`object`,properties:{text:{type:`string`,maxLength:1e5}},required:[`text`],additionalProperties:!1},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`write`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`clipboard-write`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!0,resultKinds:[`text`]},async execute(e){if(Y4(e,[`text`]),!navigator.clipboard||!document.hasFocus())throw new DOMException(`Clipboard access requires a focused browser tab`,`NotAllowedError`);let t=J4(e,`text`);if(t.length>1e5)throw TypeError(`text exceeds 100000 characters`);return await navigator.clipboard.writeText(t),G4(`Clipboard updated.`)}},{descriptor:{name:`web.page.navigate`,title:`Navigate page`,description:`Navigate this browser tab to an HTTP or HTTPS URL.`,inputSchema:{type:`object`,properties:{url:{type:`string`,maxLength:4096}},required:[`url`],additionalProperties:!1},outputSchema:mF,policyId:`user.foreground-write`,sensitivity:`personal`,effect:`destructive`,confirmation:`always`,requiresForeground:!0,requiredPermissions:[`navigation`],timeoutMs:3e4,maxConcurrency:1,supportsCancellation:!1,idempotent:!1,resultKinds:[`text`]},async execute(e){Y4(e,[`url`]);let t=J4(e,`url`);if(t.length>4096)throw TypeError(`url exceeds 4096 characters`);let n=new URL(t,window.location.href);if(n.protocol!==`http:`&&n.protocol!==`https:`)throw TypeError(`url must use HTTP or HTTPS`);return{content:[{type:`text`,text:`Navigating to ${n.href}`}],afterSend:()=>window.location.assign(n.href)}}}];function X4(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Z.useEffect)(_le,t);let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Pce,{}),(0,$.jsx)(lle,{})]}),e[1]=n):n=e[1],n}function _le(){let e=new ole(Wt()?{kind:`desktop`,platform:window.electronAPI?.platform??`desktop`,displayName:`xopc Desktop`,appVersion:`1`,definitions:kce,confirmReenrollment:U4}:{kind:`web`,platform:`web`,displayName:`Web browser`,appVersion:`1`,definitions:gle,confirmReenrollment:U4});return e.start(),()=>{W4(!1),e.stop()}}function Z4(){let e=(0,Q.c)(3),t=p(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{if(!Wt())return;let e=window.electronAPI;if(!e?.menu)return;let n=e.menu.onNavigate(e=>{t(e)}),r=e.menu.onTogglePalette(ble),i=e.menu.onQuickCapture(yle),a=e.menu.onToggleSidebar(vle),o=e.menu.onHistoryNavigate(e=>{t(e)});return()=>{n(),r(),i(),a(),o()}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function vle(){NM.getState().toggleCollapsed()}function yle(){AI()}function ble(){window.dispatchEvent(new CustomEvent(`toggle-command-palette`))}var xle=1500,Sle=9e4;function Cle(){let e=(0,Q.c)(16),t=ct(Ele),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n.updatePanel,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1),c=(0,Z.useRef)(0),l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=c.current+=1;a(!0),s(!1),(async()=>{await new Promise(Tle);let t=Date.now()+Sle;for(;e===c.current&&Date.now()<t;){try{if((await fetch(Y(`/api/health`),{signal:AbortSignal.timeout(3e3)})).ok){window.location.reload();return}}catch{}await new Promise(wle)}e===c.current&&s(!0)})()},e[2]=l):l=e[2];let u=l,d,f;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{let e=()=>u();return window.addEventListener(`gateway-restart-initiated`,e),()=>{c.current+=1,window.removeEventListener(`gateway-restart-initiated`,e)}},f=[u],e[3]=d,e[4]=f):(d=e[3],f=e[4]),(0,Z.useEffect)(d,f);let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{u()},e[5]=p):p=e[5];let m=p;if(!i)return null;let h=o?`border-red-500/20 bg-red-500/10 text-red-800 dark:text-red-200`:`border-amber-500/25 bg-amber-500/10 text-amber-900 dark:text-amber-100`,g;e[6]===h?g=e[7]:(g=X(`flex min-h-10 w-full items-center justify-center gap-2 border-b px-4 py-2 text-sm`,h),e[6]=h,e[7]=g);let _;e[8]!==r.restartPollRetry||e[9]!==r.restartPollTimeout||e[10]!==r.restartPolling||e[11]!==o?(_=o?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{children:r.restartPollTimeout}),(0,$.jsx)(`button`,{type:`button`,onClick:m,className:`ml-2 rounded bg-accent px-2 py-0.5 text-xs font-medium text-white hover:bg-accent/90`,children:r.restartPollRetry})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.restartPolling})]}),e[8]=r.restartPollRetry,e[9]=r.restartPollTimeout,e[10]=r.restartPolling,e[11]=o,e[12]=_):_=e[12];let v;return e[13]!==g||e[14]!==_?(v=(0,$.jsx)(`div`,{className:g,children:_}),e[13]=g,e[14]=_,e[15]=v):v=e[15],v}function wle(e){return setTimeout(e,xle)}function Tle(e){return setTimeout(e,2e3)}function Ele(e){return e.language}async function Q4(){if(Wt()&&window.electronAPI?.gateway?.restart){let e=await window.electronAPI.gateway.restart();return e.ok&&e.token&&ut.getState().setGatewayToken(e.token),e}let e=await J(Y(`/api/gateway/restart`),{method:`POST`,body:JSON.stringify({})});return e.ok===!1?{ok:!1,message:e.message??e.error??`Gateway restart failed`}:{ok:!0}}function Dle({reminder:e,compact:t}){let n=ct(e=>e.language),r=rt(n).updatePanel,{show:i,dismiss:a,electronQuitAndInstall:o,runNpmUpdate:s,npmUpdateRunning:c}=e,[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(null),p=(0,Z.useCallback)(async()=>{u(!0),f(null);try{let e=await Q4();if(e.ok){window.dispatchEvent(new Event(`gateway-restart-initiated`));return}f(e.message??`Gateway restart failed`)}catch(e){f(e instanceof Error?e.message:String(e))}finally{u(!1)}},[]),m=(0,Z.useCallback)(async()=>{let e=rt(n).updatePanel;f(null);let t=await s();if(t.ok){Tt({tone:`success`,title:e.updateSuccess,message:iN(t.result)?e.updateSuccessAutoRestartDetail:e.updateSuccessDetail,source:n===`zh`?`系统更新`:`System update`,dedupeKey:`system-update`});return}f(`${t.error===`git-checkout`?e.updateErrorGit:t.error===`busy`?e.updateErrorBusy:e.updateErrorFailed}: ${t.message}`)},[s,n]);if(i.kind===`none`)return null;let h=X(`absolute right-2 top-1/2 z-[1] flex -translate-y-1/2 items-center gap-1 sm:right-3`,pj);return i.kind===`electron-ready`?(0,$.jsxs)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 px-10 py-2 text-sm sm:px-12`,fj,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-[min(100%,48rem)] items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(he,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0`,children:r.reminderElectronReady.replace(`{{version}}`,i.version)})]}),(0,$.jsxs)(`div`,{className:h,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:o,className:`rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90`,children:[(0,$.jsx)(Fv,{className:`mr-1 inline size-3`}),r.restartToUpdate]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:`rounded p-1 text-fg-muted hover:text-fg`,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Ne,{className:`size-4`})})]})]}):i.kind===`electron-error`?(0,$.jsxs)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-red-500/20 bg-red-500/10 px-10 py-2 text-sm text-fg sm:px-12`,fj,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-[min(100%,52rem)] items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(xs,{className:`size-4 shrink-0 text-red-500 dark:text-red-400`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 break-words`,children:r.reminderElectronUpdateError.replace(`{{detail}}`,i.message)})]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Ne,{className:`size-4`})})]}):i.kind===`electron-downloading`?(0,$.jsxs)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 flex-col items-center justify-center gap-2 border-b border-edge bg-surface-secondary px-10 py-2 text-sm text-fg-muted sm:flex-row sm:gap-4 sm:px-12`,fj,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-full items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(he,{className:`size-4 shrink-0 animate-pulse`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.reminderDownloading.replace(`{{percent}}`,String(i.percent))})]}),(0,$.jsx)(`div`,{className:`h-1.5 w-full max-w-xs rounded-full bg-surface-tertiary sm:max-w-[12rem]`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-accent transition-all`,style:{width:`${i.percent}%`}})}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:X(h,`sm:right-2`),"aria-label":r.dismissAria,children:(0,$.jsx)(Ne,{className:`size-4`})})]}):i.kind===`npm-restart-required`?(0,$.jsxs)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-amber-500/25 bg-amber-500/10 py-2 text-sm`,fj,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-[min(100%,52rem)] flex-wrap items-center justify-center gap-x-2 gap-y-1 px-10 pr-14 text-center sm:px-12 sm:pr-16`,children:[(0,$.jsx)(`span`,{children:r.restartRequired.replace(`{{version}}`,i.version)}),(0,$.jsxs)(`button`,{type:`button`,onClick:p,disabled:l,className:X(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,pj),children:[l?(0,$.jsx)(je,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(Fv,{className:`size-3 shrink-0`,"aria-hidden":!0}),r.restartGateway]}),d?(0,$.jsx)(`span`,{className:`w-full text-xs text-danger`,role:`alert`,children:d}):null]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Ne,{className:`size-4`})})]}):i.kind===`npm-restarting`?(0,$.jsx)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 py-2 text-sm`,fj,t&&`text-xs`),children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-[min(100%,52rem)] items-center justify-center gap-2 px-10 pr-14 text-center sm:px-12 sm:pr-16`,children:[(0,$.jsx)(je,{className:`size-4 shrink-0 animate-spin text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:r.restartingAutomatically.replace(`{{version}}`,i.version)})]})}):i.kind===`npm`?(0,$.jsxs)(`div`,{className:X(`relative flex min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 py-2 text-sm`,fj,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:X(`mx-auto flex max-w-[min(100%,52rem)] flex-wrap items-center justify-center gap-x-2 gap-y-1 px-10 pr-14 text-center sm:px-12 sm:pr-16`),children:[(0,$.jsxs)(`span`,{children:[r.reminderNpm.replace(`{{version}}`,i.version),i.channel&&i.channel!==`latest`?` (${i.channel})`:``]}),(0,$.jsxs)(`button`,{type:`button`,onClick:m,disabled:c,className:X(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-white hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,pj),children:[c?(0,$.jsx)(je,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(Fv,{className:`size-3 shrink-0`,"aria-hidden":!0}),c?r.updateRunning:r.updateNow]}),d?(0,$.jsx)(`span`,{className:`w-full text-xs text-danger`,role:`alert`,children:d}):null]}),(0,$.jsx)(`button`,{type:`button`,onClick:a,className:h,"aria-label":r.dismissAria,title:r.dismissHint,children:(0,$.jsx)(Ne,{className:`size-4`})})]}):null}function Ole(e,t,n){let r=rt(e),i=r.commandPalette.actions,a=r.commandPalette.groups.actions;return[{kind:`action`,id:`action:local-app:create`,title:i.createLocalApp,subtitle:i.createLocalAppSubtitle,groupLabel:a,keywords:[`app`,`local app`,`create app`,`tool`,`workshop`,`coder`,`应用`,`创建应用`,`工具`,`工坊`],run:()=>{n(),t(`/local-apps/new`)}},{kind:`action`,id:`action:automation:create`,title:`Create automation`,subtitle:`Open automations to create a trigger and action`,groupLabel:a,keywords:[`automation`,`schedule`,`trigger`,`action`,`timer`],run:()=>{n(),t(`/automations?action=create`)}},{kind:`action`,id:`action:automation:manage`,title:`Manage automations`,subtitle:`View automations and run history`,groupLabel:a,keywords:[`automation`,`schedule`,`tasks`,`runs`],run:()=>{n(),t(`/automations`)}},{kind:`action`,id:`action:skills:manage`,title:i.manageSkills,subtitle:i.manageSkillsSubtitle,groupLabel:a,keywords:[`skills`,`skill`,`catalog`],run:()=>{n(),t(`/skills`)}},{kind:`action`,id:`action:skills:reload`,title:i.reloadSkills,subtitle:i.reloadSkillsSubtitle,groupLabel:a,keywords:[`skills`,`reload`,`refresh`],run:()=>{n(),s(async()=>{let{reloadSkills:e}=await import(`./skill-reload-api-ghzAQKna.js`).then(e=>e.n);return{reloadSkills:e}},__vite__mapDeps([53,1,10,4,11])).then(({reloadSkills:e})=>e())}}]}function kle(e){if(e)return e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `)}async function Ale(e,t){let n=window.electronAPI?.menu;if(!n)return[];try{let r=await n.getModel(),i=rt(e).commandPalette.groups.actions;return r.flatMap(e=>e.items.flatMap(r=>{if(r.type!==`item`||r.id.startsWith(`role.`))return[];let a=kle(r.accelerator);return[{kind:`action`,id:`desktop-menu:${r.id}`,title:r.label,subtitle:[e.label,a].filter(Boolean).join(` · `)||void 0,groupLabel:i,keywords:[r.id,e.id,e.label,r.accelerator??``],run:()=>{t(),n.invoke(r.id)}}]}))}catch{return[]}}function $4(e){return rt(e).commandPalette.groups}function jle(e){let t=$4(e);return{[t.navigate]:0,[t.projects]:1,[t.quickSettings]:2,[t.extensions]:3,[t.sessions]:4,[t.files]:5,[t.commands]:6,[t.skills]:7,[t.actions]:8}}function Mle(e){let t=$4(e);return{[t.navigate]:12,[t.projects]:8,[t.quickSettings]:12,[t.actions]:8,[t.extensions]:8,[t.sessions]:8,[t.files]:10,[t.commands]:6,[t.skills]:6}}function e3(e,t){return jle(e)[t]??10}function t3(e){return e.trim().toLowerCase()}function Nle(e,t){let n=t3(e),r=t3(t);if(!r)return 0;if(!n)return null;if(n===r)return 0;if(n.startsWith(r))return 1;let i=n.indexOf(r);return i>=0?2+Math.min(i,50)/100:null}function Ple(e,t){let n=t.trim();if(!n)return 0;let r=[{text:e.title,weight:1},{text:e.subtitle??``,weight:1.75}];for(let t of e.keywords??[])r.push({text:t,weight:1.25});let i=null;for(let e of r){let t=Nle(e.text,n);if(t===null)continue;let r=t*e.weight;i=i===null?r:Math.min(i,r)}if(i===null)return null;let a=e.kind===`route`?-.15:e.kind===`project`?-.12:e.kind===`file`?-.1:e.kind===`session`?-.05:e.kind===`setting`||e.kind===`action`?-.02:0;return Math.max(0,i+a)}function Fle(e){return e.toSorted((e,t)=>e.rank===t.rank?e.groupLabel===t.groupLabel?e.title.localeCompare(t.title):e.groupLabel.localeCompare(t.groupLabel):e.rank-t.rank)}var Ile=new Set([`settingsTunnel`,`settingsShares`,`settingsHeartbeat`,`logs`]),Lle=[`/settings/remote-access`,`/settings/tunnel`,`/settings/shares`,`/settings/heartbeat`,`/settings/logs`,`/settings/extensions/debug`,`/settings/ext/`];function n3(e,t){return t===`advanced`?!0:!Ile.has(e)}function r3(e,t){return t===`advanced`?!0:!Lle.some(t=>e===t||e.startsWith(t))}var i3=`/channels`;function a3(e){return`${i3}/${encodeURIComponent(e.trim().toLowerCase())}`}function Rle(e){return e?.trim().toLowerCase()||null}var o3=at(wt(e=>({mode:`simple`,setMode:t=>e({mode:t}),setShowAdvanced:t=>e({mode:t?`advanced`:`simple`})}),{name:`xopc-web-settings-mode`}));function zle(){return o3(Ble)}function Ble(e){return e.mode===`advanced`}var Vle=[`settingsAgentBrowser`],Hle={settingsAgentBrowser:[`browser`,`playwright`,`automation`]};function Ule(e,t){let n=rt(e).commandPalette.routes.agentsSubtitle;return Vle.filter(e=>n3(e,t)).map(t=>({id:`route:settings:agent:${t}`,title:nt(e,t),subtitle:n,path:aM(t),keywords:[`agent`,`manifest`,`preset`,`config`,...Hle[t]??[]]}))}function Wle(e,t){return e.filter(e=>r3(e.path.split(`?`)[0]??e.path,t))}function Gle(e){let t=rt(e),n=t.commandPalette.routes,r=t.capabilitiesSettings,i=t.channelsSettings,a=o3.getState().mode;return Wle([{id:`route:chat`,title:t.nav.chat,subtitle:n.chatSubtitle,path:`/chat`,keywords:[`chat`,`new`,`compose`,`assistant`]},{id:`route:agents`,title:t.nav.agents,subtitle:n.agentsSubtitle,path:`/agents`,keywords:[`agent`,`persona`,`switch`]},{id:`route:extensions`,title:t.nav.extensions,subtitle:n.extensionsSubtitle,path:`/extensions`,keywords:[`extension`,`plugin`,`addon`]},{id:`route:local-apps`,title:t.nav.localApps,subtitle:n.localAppsSubtitle,path:`/local-apps`,keywords:[`app`,`apps`,`local app`,`tool`,`workshop`,`coder`,`应用`,`本地应用`,`工具`,`工坊`]},{id:`route:sessions`,title:t.nav.sessions,subtitle:n.sessionsSubtitle,path:`/settings/sessions`,keywords:[`history`,`archive`,`pin`]},{id:`route:logs`,title:t.nav.logs,subtitle:n.logsSubtitle,path:`/settings/logs`,keywords:[`debug`,`errors`]},{id:`route:skills`,title:t.nav.skills,subtitle:n.skillsSubtitle,path:`/skills`,keywords:[`tools`,`catalog`]},{id:`route:connectors`,title:t.nav.connectors,subtitle:n.connectorsSubtitle,path:`/connectors`,keywords:[`connector`,`mcp`,`registry`,`integration`,`tools`]},{id:`route:channels`,title:t.nav.channels,subtitle:n.channelsSubtitle,path:`/channels`,keywords:[`telegram`,`weixin`,`feishu`,`channel`]},{id:`route:channels:telegram`,title:`Telegram`,subtitle:n.channelsSubtitle,path:a3(`telegram`),keywords:[`telegram`,`bot`,`channel`,`pairing`]},{id:`route:channels:weixin`,title:`Weixin`,subtitle:n.channelsSubtitle,path:a3(`weixin`),keywords:[`weixin`,`wechat`,`channel`,`qr`]},{id:`route:channels:feishu`,title:`Feishu/Lark`,subtitle:n.channelsSubtitle,path:a3(`feishu`),keywords:[`feishu`,`lark`,`channel`]},{id:`route:channels:telegram:pairing`,title:`Telegram — ${i.hubPairingButton}`,subtitle:n.channelsSubtitle,path:a3(`telegram`),keywords:[`telegram`,`pairing`,`approve`,`dm`]},{id:`route:automations`,title:`Automations`,subtitle:`Triggers, actions, and run history`,path:`/automations`,keywords:[`automation`,`automations`,`schedule`,`tasks`,`history`,`scheduler`]},{id:`route:settings`,title:t.nav.settings,subtitle:n.settingsSubtitle,path:`/settings/overview`,keywords:[`config`,`status`,`providers`,`models`,`agents`,`search`,`preferences`]},{id:`route:settings:capabilities`,title:t.nav.settingsCapabilities,subtitle:n.capabilitiesSubtitle,path:sM(`models`),keywords:[`api`,`key`,`credentials`,`oauth`,`token`,`models`,`providers`,`image`,`voice`,`search`,`模型与服务`,`模型与能力`,`密钥`,`服务商`,`图片`,`语音`,`网络搜索`]},{id:`route:settings:capabilities:models`,title:r.tabs.models,subtitle:n.modelsSubtitle,path:sM(`models`),keywords:[`api`,`key`,`provider`,`openai`,`anthropic`,`google`,`gpt`,`claude`,`gemini`,`llm`,`模型`,`模型服务`,`服务商`,`密钥`]},{id:`route:settings:capabilities:image`,title:r.tabs.image,subtitle:n.imageModelsSubtitle,path:sM(`image`),keywords:[`image`,`vision`,`generate`,`picture`,`图片`,`图像`,`视觉`,`生成图片`]},{id:`route:settings:capabilities:voice`,title:r.tabs.voice,subtitle:n.voiceSubtitle,path:sM(`voice`),keywords:[`tts`,`stt`,`speech`,`microphone`,`语音`,`语音识别`,`语音合成`]},{id:`route:settings:capabilities:search`,title:r.tabs.search,subtitle:n.searchSubtitle,path:sM(`search`),keywords:[`search`,`web`,`tavily`,`serper`,`brave`,`搜索`,`网络搜索`,`联网搜索`]},{id:`route:settings:gateway`,title:t.nav.settingsGateway,subtitle:n.gatewaySubtitle,path:`/settings/gateway`,keywords:[`server`,`port`,`auth`,`token`]},...Ule(e,a)],a)}async function Kle(e,t={}){let n=new URLSearchParams;return n.set(`q`,e.trim()),t.types?.length&&n.set(`types`,t.types.join(`,`)),t.limit&&n.set(`limit`,String(t.limit)),(await J(Y(`/api/search?${n.toString()}`))).hits}function s3(e){Et.getState().setPreference(e)}function c3(e){ct.getState().setLanguage(e)}function qle(e,t){let n=rt(e),r=n.commandPalette.quickSettings,i=n.commandPalette.groups.quickSettings;return[{kind:`setting`,id:`setting:model`,title:r.switchModel,subtitle:r.switchModelSubtitle,groupLabel:i,keywords:[`model`,`default model`,`默认模型`,`gpt`,`claude`,`gemini`,`llm`,`模型`],run:()=>t.openModelPalette()},{kind:`setting`,id:`setting:agent`,title:r.switchAgent,subtitle:r.switchAgentSubtitle,groupLabel:i,keywords:[`agent`,`persona`,`bot`],run:()=>t.openAgentPalette()},{kind:`setting`,id:`setting:theme:light`,title:r.themeLight,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`light`,`appearance`],run:()=>{s3(`light`),t.closePalette()}},{kind:`setting`,id:`setting:theme:dark`,title:r.themeDark,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`dark`,`night`],run:()=>{s3(`dark`),t.closePalette()}},{kind:`setting`,id:`setting:theme:system`,title:r.themeSystem,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`system`,`auto`],run:()=>{s3(`system`),t.closePalette()}},{kind:`setting`,id:`setting:lang:en`,title:r.languageEn,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`english`,`language`,`locale`],run:()=>{c3(`en`),t.closePalette()}},{kind:`setting`,id:`setting:lang:zh`,title:r.languageZh,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`chinese`,`中文`,`language`],run:()=>{c3(`zh`),t.closePalette()}}]}function Jle(e){let t=e===`zh`;return[{id:`field:gateway:port`,title:t?`网关端口`:`Gateway Port`,subtitle:t?`设置 HTTP 网关监听端口`:`HTTP gateway listen port`,path:`/settings/gateway`,keywords:[`port`,`listen`,`http`,`server`,`端口`]},{id:`field:gateway:host`,title:t?`网关绑定地址`:`Gateway Host`,subtitle:t?`设置绑定的网络接口`:`Network interface to bind`,path:`/settings/gateway`,keywords:[`host`,`bind`,`interface`,`localhost`,`地址`]},{id:`field:gateway:auth`,title:t?`网关认证令牌`:`Gateway Auth Token`,subtitle:t?`访问网关所需的 Bearer token`:`Bearer token for gateway access`,path:`/settings/gateway`,keywords:[`auth`,`token`,`bearer`,`password`,`security`,`认证`,`令牌`]},{id:`field:agent-defaults:models`,title:t?`Agent 全局模型`:`Global agent models`,subtitle:t?`设置所有 Agent 继承的模型与回退`:`Set inherited models and fallbacks`,path:`/settings/agent-defaults`,keywords:[`agent defaults`,`model intents`,`fallbacks`,`llm`,`全局默认`,`模型意图`]},{id:`field:agent-defaults:skills`,title:t?`Agent 全局技能`:`Global agent skills`,subtitle:t?`设置所有 Agent 默认可用或排除的技能`:`Set skills enabled or excluded for every agent`,path:`/settings/agent-defaults`,keywords:[`agent defaults`,`skills`,`inherit`,`全局默认`,`技能`,`继承`]},{id:`field:agent-defaults:tools`,title:t?`Agent 全局工具权限`:`Global agent tool permissions`,subtitle:t?`设置所有 Agent 继承的 allow、ask 或 deny 策略`:`Set inherited allow, ask, or deny policies`,path:`/settings/agent-defaults`,keywords:[`agent defaults`,`tools`,`permissions`,`allow`,`ask`,`deny`,`工具权限`]},{id:`field:agent-defaults:runtime`,title:t?`Agent 全局运行限制`:`Global agent runtime limits`,subtitle:t?`设置继承的轮次、超时和默认工作流`:`Set inherited turn, timeout, and workflow limits`,path:`/settings/agent-defaults`,keywords:[`agent defaults`,`runtime`,`turns`,`timeout`,`workflow`,`运行限制`]},{id:`field:agent:profile`,title:t?`Agent 个性`:`Agent personality`,subtitle:t?`设置名称、个性指令和可选覆盖`:`Set the name, personality, and optional overrides`,path:`/agents`,keywords:[`agent`,`profile`,`personality`,`instructions`,`agent 个性`,`指令`]},{id:`field:agent:workspace`,title:t?`Agent 工作目录`:`Agent workspace`,subtitle:t?`按需覆盖该 Agent 的自动工作目录`:`Optionally override the automatic workspace`,path:`/agents`,keywords:[`workspace`,`directory`,`folder`,`path`,`cwd`,`工作目录`]},{id:`field:agent:browser`,title:t?`浏览器自动化`:`Browser automation`,subtitle:t?`启用 browser_use 工具`:`Enable browser_use tools`,path:`/settings/agent-browser`,keywords:[`browser`,`browser_use`,`automation`,`浏览器`]},{id:`field:agent:browser-extension`,title:t?`Chrome 扩展连接`:`Chrome extension bridge`,subtitle:t?`安装扩展并启动 WebSocket 桥接`:`Install extension and start the bridge`,path:`/settings/agent-browser`,keywords:[`extension`,`chrome`,`bridge`,`websocket`,`扩展`,`桥接`]},{id:`field:agent:browser-playwright`,title:t?`安装 Playwright Chromium`:`Install Playwright Chromium`,subtitle:t?`本地 Playwright 后端就绪检查`:`Local Playwright backend setup`,path:`/settings/agent-browser`,keywords:[`playwright`,`chromium`,`install`,`local`,`安装`]},{id:`field:agent:browser-cloak`,title:t?`CloakBrowser 配置`:`CloakBrowser settings`,subtitle:t?`反指纹浏览器下载与高级选项`:`Stealth browser download and fingerprint options`,path:`/settings/agent-browser`,keywords:[`cloak`,`cloakbrowser`,`fingerprint`,`stealth`,`反指纹`]},{id:`field:agent:browser-headless`,title:t?`浏览器无头模式`:`Browser headless mode`,subtitle:t?`隐藏浏览器窗口`:`Run without a visible window`,path:`/settings/agent-browser`,keywords:[`headless`,`window`,`visible`,`无头`]},{id:`field:agent:browser-private-urls`,title:t?`允许内网 URL`:`Allow private URLs`,subtitle:t?`浏览器导航安全限制`:`Browser navigation security policy`,path:`/settings/agent-browser`,keywords:[`private`,`internal`,`localhost`,`security`,`内网`,`安全`]},{id:`field:voice:sttProvider`,title:t?`STT 语音识别提供商`:`STT Provider`,subtitle:t?`语音转文字服务商`:`Speech-to-text service provider`,path:`/settings/capabilities/voice`,keywords:[`stt`,`speech`,`recognition`,`whisper`,`deepgram`,`语音识别`]},{id:`field:voice:ttsProvider`,title:t?`TTS 语音合成提供商`:`TTS Provider`,subtitle:t?`文字转语音服务商`:`Text-to-speech service provider`,path:`/settings/capabilities/voice`,keywords:[`tts`,`speech`,`synthesis`,`voice`,`elevenlabs`,`语音合成`]},{id:`field:search:engine`,title:t?`搜索引擎`:`Web Search Engine`,subtitle:t?`联网搜索使用的引擎`:`Engine for web search tool`,path:`/settings/capabilities/search`,keywords:[`search`,`engine`,`tavily`,`serper`,`brave`,`bing`,`搜索引擎`]},{id:`field:automations:enabled`,title:t?`自动化`:`Automations`,subtitle:t?`创建和管理自动化`:`Create and manage automations`,path:`/automations`,keywords:[`automation`,`automations`,`scheduler`,`timer`,`自动化`,`调度`]},{id:`field:automations:runs`,title:t?`自动化运行记录`:`Automation Runs`,subtitle:t?`查看自动化执行历史`:`Review automation run history`,path:`/automations`,keywords:[`automation`,`runs`,`history`,`自动化`,`历史`]},{id:`field:channels:telegram`,title:`Telegram Bot Token`,subtitle:t?`配置 Telegram 频道连接`:`Configure Telegram channel connection`,path:`/channels`,keywords:[`telegram`,`bot`,`token`,`channel`,`频道`]},{id:`field:channels:dmPolicy`,title:t?`私聊接入策略`:`DM Access Policy`,subtitle:t?`Telegram 私聊白名单/配对策略`:`Telegram DM allowlist/pairing policy`,path:`/channels`,keywords:[`dm`,`policy`,`pairing`,`allowlist`,`access`,`私聊`,`策略`]},{id:`field:mcp:servers`,title:t?`MCP 服务器配置`:`MCP Servers`,subtitle:t?`外部 MCP 工具服务器列表`:`External MCP tool server registry`,path:`/connectors`,keywords:[`mcp`,`server`,`tools`,`external`,`stdio`,`服务器`,`connector`]},{id:`field:heartbeat:interval`,title:t?`心跳间隔`:`Heartbeat Interval`,subtitle:t?`网关存活检测频率`:`Gateway keep-alive check frequency`,path:`/settings/heartbeat`,keywords:[`heartbeat`,`interval`,`keepalive`,`alive`,`心跳`]},{id:`field:tunnel:enabled`,title:t?`公网隧道`:`Public Tunnel`,subtitle:t?`FRP 远程访问隧道开关`:`FRP remote access tunnel toggle`,path:`/settings/remote-access`,keywords:[`tunnel`,`frp`,`remote`,`public`,`ngrok`,`隧道`,`远程`]}]}function Yle(e,t,n,r){return Jle(e).map(e=>({kind:`setting`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:r,keywords:e.keywords,run:()=>{n(),t(e.path)}}))}async function l3(e){let t=await e.json().catch(()=>({}));if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;if(typeof e==`string`)return e}return`HTTP ${e.status}`}async function u3(){let e=await ot(Y(`/api/skills`),{cache:`no-store`});if(!e.ok)throw Error(await l3(e));let t=await e.json();if(!t.payload)throw Error(`Invalid response`);return t.payload}async function d3(e){let t=await e.json().catch(()=>({}));if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;if(typeof e==`string`)return e}return`HTTP ${e.status}`}async function Xle(){let e=await ot(Y(`/api/commands`));if(!e.ok)throw Error(await d3(e));return(await e.json()).payload?.commands??[]}var f3=6e4,p3=null,m3=0,h3=null,g3=null,_3=0,v3=null,y3=0,b3=new Map,x3=new Map,S3=0;function Zle(e,t){return`${e?.trim()||`main`}\u0000${t?.trim()||``}`}async function C3(e=!1){return!e&&p3&&Date.now()<m3?(JY(p3),p3):h3||(h3=Xle().then(e=>(p3=e,m3=Date.now()+f3,JY(e),e)).catch(e=>{throw JY([]),e}).finally(()=>{h3=null}),h3)}async function w3(e,t,n=!1){let r=Zle(e,t),i=Date.now(),a=b3.get(r);if(!n&&a&&i<a.expiry)return a.payload;let o=x3.get(r);if(o)return o;let s=S3,c=new URLSearchParams({agentId:e?.trim()||`main`});t?.trim()&&c.set(`sessionKey`,t.trim());let l=ot(Y(`/api/chat/skills?${c.toString()}`)).then(async e=>{if(!e.ok)throw Error(await d3(e));let t=await e.json();if(!t.payload||!Array.isArray(t.payload.skills))throw Error(`Invalid /api/chat/skills response`);return s===S3&&b3.set(r,{payload:t.payload,expiry:Date.now()+f3}),t.payload}).finally(()=>{x3.delete(r)});return x3.set(r,l),l}async function Qle(e,t,n){let r=e?.trim()||`main`,i=await w3(r,n,!0),a=new Set(i.effectiveAllowlist??i.agentAllowlist??[]);a.add(t);let o=await ot(Y(`/api/agents/${encodeURIComponent(r)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({skills:[...a].sort((e,t)=>e.localeCompare(t))})});if(!o.ok)throw Error(await d3(o));T3(r)}function T3(e){if(S3+=1,e){let t=`${e.trim()}\u0000`;for(let e of b3.keys())e.startsWith(t)&&b3.delete(e);for(let e of x3.keys())e.startsWith(t)&&x3.delete(e);return}b3.clear(),x3.clear()}async function $le(e){let t=await ot(Y(`/api/chat/workspace-trust?${new URLSearchParams({sessionKey:e}).toString()}`));if(!t.ok)throw Error(await d3(t));let n=await t.json();if(!n.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return n.payload}async function eue(e,t){let n=await ot(Y(`/api/chat/workspace-trust`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({sessionKey:e,trusted:t})});if(!n.ok)throw Error(await d3(n));let r=await n.json();if(!r.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return E3(),r.payload}function E3(e){T3(e),e||(y3+=1,g3=null,_3=0,v3=null)}async function tue(e=!1){if(!e&&g3&&Date.now()<_3)return g3;if(v3)return v3;let t=y3;return v3=u3().then(e=>(t===y3&&(g3=e,_3=Date.now()+f3),e)).finally(()=>{v3=null}),v3}function D3(e){return e.acceptsArgs?`/${e.name} `:`/${e.name}`}var nue=3e4,O3=null;function k3(e){return e.trim()}function rue(e){return e.map(e=>({kind:`file`,name:e.name,relativePath:e.path,isDirectory:e.isDirectory}))}async function A3(e,t){let n=t.sessionKey?.trim(),r=t.agentId?.trim(),i=t.limit??15,a=e.trim();if(n&&a.length===0){let e=k3(n),t=Date.now();if(O3&&O3.key===e&&t-O3.at<nue)return O3.items}let o={sessionKey:n,agentId:r},s=rue(a.length===0?await pH(``,o):await hH(a,o,i));return n&&a.length===0&&(O3={key:k3(n),at:Date.now(),items:s}),s}async function iue(e,t){return pH(e,{sessionKey:t.sessionKey,agentId:t.agentId})}async function j3(){let e=await J(Y(`/api/agents`));if(!e.payload?.defaultId||!Array.isArray(e.payload.agents))throw Error(`Invalid /api/agents response`);return e.payload}async function aue(e){let t=await J(Y(`/api/agents/${encodeURIComponent(e)}/effective-config`));if(!t.payload?.config||!t.payload.sources)throw Error(`Invalid effective agent config response`);return t.payload}async function M3(e){let{mutate:t}=await s(async()=>{let{mutate:e}=await import(`./vendor-swr-BIWyz7Rc.js`).then(e=>e.r);return{mutate:e}},__vite__mapDeps([6,1,4]));await Promise.all([t(`settings-gateway-agents`,e,{revalidate:!1}),t(`setup-checklist-agents`,e,{revalidate:!1}),xt()])}async function oue(e){let t=await J(Y(`/api/agents`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.payload?.agentId||!t.payload.agents)throw Error(`Invalid create agent response`);return await M3(t.payload.agents),{...t.payload.agents,createdAgentId:t.payload.agentId}}async function sue(e,t){let n=await J(Y(`/api/agents/${encodeURIComponent(e)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.payload)throw Error(`Invalid update agent response`);return await M3(n.payload),n.payload}async function cue(e,t=!1){let n=await J(Y(`/api/agents/${encodeURIComponent(e)}${t?`?purge=1`:``}`),{method:`DELETE`});if(!n.payload?.agents)throw Error(`Invalid delete agent response`);return await M3(n.payload.agents),n.payload.agents}var lue={main:{key:`assistant`,defaultNames:[`main`,`Main`,`Smart Assistant`],defaultDescriptions:[`General assistant`,`General-purpose personal assistant.`,`Your personal intelligent assistant for answering questions, handling everyday tasks, and chatting with you anytime.`]},coder:{key:`coding`,defaultNames:[`coder`,`Coder`,`Coding Expert`],defaultDescriptions:[`Software development, debugging, refactoring, and tests.`,`Software engineering agent for repository understanding, implementation, debugging, refactoring, tests, and review.`]},writer:{key:`writing`,defaultNames:[`writer`,`Writer`,`Writing Assistant`],defaultDescriptions:[`Drafting, editing, rewriting, and audience-aware content.`]},researcher:{key:`research`,defaultNames:[`researcher`,`Researcher`,`Research Assistant`],defaultDescriptions:[`Deep research, source comparison, and fact synthesis.`]},"data-analyst":{key:`data`,defaultNames:[`data-analyst`,`Data Analyst`],defaultDescriptions:[`Data cleaning, analysis, visualization, and reproducible reports.`]},creative:{key:`creative`,defaultNames:[`creative`,`Creative`,`Creative Assistant`],defaultDescriptions:[`Visual direction, image prompts, design critique, and creative options.`]}};function N3(e){return e?.trim().toLowerCase()??``}function P3(e,t){let n=N3(e);return!!n&&t.some(e=>N3(e)===n)}function F3(e){return lue[N3(e)]}function I3(e,t){let n=e.name?.trim(),r=F3(e.id);return r&&(!n||P3(n,r.defaultNames))?t.builtInAgents[r.key].name:n||e.id}function L3(e,t){let n=e.description?.trim(),r=F3(e.id);return r&&(!n||P3(n,r.defaultDescriptions))?t.builtInAgents[r.key].description:n||``}async function R3(){let e=await J(Y(`/api/global-defaults`));if(!e.payload?.defaults||!Array.isArray(e.payload.builtinTools))throw Error(`Invalid global defaults response`);return e.payload}async function z3(e){let t=await J(Y(`/api/global-defaults`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({defaults:e})});if(!t.payload?.defaults||!Array.isArray(t.payload.builtinTools))throw Error(`Invalid global defaults response`);let{mutate:n}=await s(async()=>{let{mutate:e}=await import(`./vendor-swr-BIWyz7Rc.js`).then(e=>e.r);return{mutate:e}},__vite__mapDeps([6,1,4]));return await Promise.all([n(`settings-gateway-agents`),xt()]),t.payload}function uue(){let{pathname:e}=l(),{sessionKey:t}=u();if(!e.startsWith(`/chat`)||!t)return;let n=decodeURIComponent(t);return n&&n!==`new`?n:void 0}async function B3(e){let{defaults:t}=await R3();await z3({...t,models:{...t.models,chat:{primary:e,fallbacks:[]}}})}function V3(e,t,n,r){let i=e.trim().toLowerCase();i&&(EB(i),t.startsWith(`/chat`)?window.dispatchEvent(new CustomEvent(`xopc-set-chat-agent`,{detail:{agentId:i}})):n(`/chat/new?projectScope=none`,{state:{agentId:i}}),r())}function due(e){switch(e.kind){case`extension`:return(0,$.jsx)(Av,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`route`:return(0,$.jsx)(Tp,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`project`:return(0,$.jsx)(xp,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`session`:return(0,$.jsx)(Tp,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`file`:return(0,$.jsx)(Nf,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`command`:return(0,$.jsx)(kS,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`skill`:return(0,$.jsx)(Wy,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});case`setting`:return(0,$.jsx)(Kv,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`action`:return(0,$.jsx)(GT,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});default:return null}}function H3(e,t,n,r){if(r(),t.startsWith(`/chat`)){SG(e);return}let i=e.match(/^\/skill:(\S+)\s*$/),a=e.match(/^\/(\S+)\s*$/);i?n(`/chat/new?skill=${encodeURIComponent(i[1])}`):a?n(`/chat/new?slash=${encodeURIComponent(a[1])}`):(n(`/chat/new`),requestAnimationFrame(()=>{requestAnimationFrame(()=>{SG(e)})}))}function fue(e){let t=[];for(let n of e.uiExtensions){let r=n.ui?.contributions?.commands;if(Array.isArray(r))for(let i of r)!i||typeof i.id!=`string`||typeof i.title!=`string`||t.push({kind:`extension`,id:`ext:${n.id}:${i.id}`,title:i.title,subtitle:n.name,groupLabel:e.extensionsGroupLabel,keywords:[n.id,n.name,i.id],run:()=>{e.close(),i.opensPanel!==void 0&&i.opensPanel!==``?e.navigate(`/extensions/${encodeURIComponent(n.id)}`):window.dispatchEvent(new CustomEvent(`extension-command`,{detail:{extensionId:n.id,commandId:i.id}}))}})}return t}function pue(e,t){switch(t.type){case`setQuery`:return{...e,query:t.value};case`setSelectedIndex`:{let n=typeof t.value==`function`?t.value(e.selectedIndex):t.value;return{...e,selectedIndex:n}}case`setLayer`:return{...e,paletteLayer:t.layer,query:``,selectedIndex:0};case`resetMain`:return{query:``,selectedIndex:0,paletteLayer:`main`}}}var mue={query:``,selectedIndex:0,paletteLayer:`main`};async function hue(){let e=await J(Y(`/api/registry`)),t=[];for(let n of e.payload?.providers??[])for(let e of n.models??[])e.available!==!1&&t.push({id:e.ref,title:e.name||e.ref,subtitle:e.ref});return t.sort((e,t)=>e.title.localeCompare(t.title)),t}async function gue(e){let t=await j3(),n=rt(e).agentsSettings;return t.agents.map(e=>({id:e.id,title:I3(e,n),subtitle:e.id}))}function _ue({onClose:e}){let t=(0,Z.useRef)(null),n=(0,Z.useRef)(null),r=p(),{pathname:i}=l(),a=ct(e=>e.language),o=DI(),s=uue(),c=VU(e=>e.agentId),u=XU(e=>e.setPath),[d,f]=(0,Z.useReducer)(pue,mue),[m,h]=(0,Z.useState)(0),{query:g,selectedIndex:_,paletteLayer:v}=d,y=(0,Z.useMemo)(()=>Gle(a),[a]),[b]=WH(g,120);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&t.section===`skills`&&h(e=>e+1)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[]);let x=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`models`})},[]),S=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`agents`})},[]),C=SN(async()=>v===`models`?hue():v===`agents`?gue(a):[],[v,a],{enabled:v===`models`||v===`agents`,initial:[],errorData:[]}),w=SN(async()=>{let t=b.trim(),n=e,l=rt(a).commandPalette.groups,d=y.map(e=>({kind:`route`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:l.navigate,keywords:[...e.keywords??[],e.path],run:()=>{n(),r(e.path)}})),f=qle(a,{closePalette:n,openModelPalette:x,openAgentPalette:S}),p=Ole(a,r,n),m=fue({query:t,close:n,navigate:r,uiExtensions:o,extensionsGroupLabel:l.extensions}),[h,g,_,v,C,w]=await Promise.all([C3(),tue(),t?Kle(t,{types:[`project`],limit:8}).catch(()=>[]):[],ZB({search:t||void 0,limit:8,offset:0}).catch(()=>({items:[]})),(async()=>{let e=s?.trim(),n=c.trim();return!e&&!n?[]:await A3(t,{sessionKey:e||void 0,agentId:e?void 0:n||void 0,limit:10}).catch(()=>[])})(),Ale(a,n)]),T=_.map(e=>({kind:`project`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:l.projects,keywords:[e.payload.project.slug,e.payload.project.workspaceRoot??``,e.payload.project.defaultAgentId??``,e.payload.project.brief??``],run:()=>{n(),r(e.href)}})),E=h.map(e=>({kind:`command`,id:`cmd:${e.id}`,title:`/${e.name}`,subtitle:e.description,groupLabel:l.commands,keywords:[e.id,...e.aliases??[],e.category??``],run:()=>{H3(D3(e),i,r,n)}})),D=g.catalog.flatMap(e=>!e.enabled||e.disableModelInvocation?[]:[{kind:`skill`,id:`skill:${e.name}`,title:`/skill:${e.name}`,subtitle:e.description,groupLabel:l.skills,keywords:[e.source??``,`skill`],run:()=>{H3(`/skill:${e.name} `,i,r,n)}}]),O=(v.items??[]).map(e=>({kind:`session`,id:`session:${e.key}`,title:e.name?.trim()||e.key,subtitle:e.key,groupLabel:l.sessions,keywords:[e.key,...e.tags??[],e.sourceChannel??``],run:()=>{n(),r(`/chat/${encodeURIComponent(e.key)}`)}})),k=C.flatMap(e=>e.isDirectory?[]:[{kind:`file`,id:`file:${e.relativePath}`,title:e.name,subtitle:e.relativePath,groupLabel:l.files,keywords:[e.relativePath],run:()=>{n();let t=e.relativePath.replace(/\\/g,`/`).replace(/^\/+/,``),a=()=>u(t);if(i.startsWith(`/chat`)){a();return}r(`/chat`),window.setTimeout(()=>a(),0)}}]),A=Yle(a,r,n,l.navigate),j=[...d,...f,...p,...w,...m,...A,...T,...O,...k,...E,...D],M=[];for(let e of j){let n=Ple(e,t);n!==null&&M.push({...e,rank:n})}let N=Mle(a),P=Fle(M),F=[],I={};for(let e of P){let t=(I[e.groupLabel]??0)+1;if(!(t>(N[e.groupLabel]??6))&&(I[e.groupLabel]=t,F.push(e),F.length>=36))break}return F.sort((e,t)=>e3(a,e.groupLabel)-e3(a,t.groupLabel)||e.rank-t.rank||e.title.localeCompare(t.title)),F},[b,y,o,r,s,c,i,u,a,x,S,e,m],{enabled:v===`main`,initial:[],errorData:[]}),T=w.data,E=w.loading,D=w.error,O=(0,Z.useMemo)(()=>{let e=g.trim().toLowerCase(),t=C.data;return e?t.filter(t=>t.title.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||(t.subtitle?.toLowerCase().includes(e)??!1)):t},[C.data,g]),k=`${v}|${g}|${String(O.length)}|${String(T.length)}`,A=(0,Z.useRef)(k);if(A.current!==k){A.current=k;let e=v===`main`?Math.max(0,T.length-1):Math.max(0,O.length);_>e&&f({type:`setSelectedIndex`,value:e})}(0,Z.useEffect)(()=>{let e=window.setTimeout(()=>t.current?.focus(),50);return()=>window.clearTimeout(e)},[]);let j=(0,Z.useEffectEvent)(t=>{if(t.key===`Escape`){if(t.preventDefault(),v!==`main`){f({type:`resetMain`});return}e();return}let n=v===`main`?Math.max(0,T.length-1):Math.max(0,O.length);if(t.key===`ArrowDown`){t.preventDefault(),f({type:`setSelectedIndex`,value:e=>Math.min(e+1,n)});return}if(t.key===`ArrowUp`){t.preventDefault(),f({type:`setSelectedIndex`,value:e=>Math.max(0,e-1)});return}if(t.key===`Enter`){if(t.preventDefault(),v===`models`){if(_===0){f({type:`resetMain`});return}let t=O[_-1];if(!t)return;(async()=>{await B3(t.id),xt(),LF(),e(),f({type:`resetMain`})})();return}if(v===`agents`){if(_===0){f({type:`resetMain`});return}let t=O[_-1];if(!t)return;V3(t.id,i,r,e),f({type:`resetMain`});return}let n=T[_];n&&n.run()}});(0,Z.useEffect)(()=>{let e=e=>{j(e)};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[]),(0,Z.useLayoutEffect)(()=>{let e=n.current;e&&e.querySelector(`[data-global-palette-index="${String(_)}"]`)?.scrollIntoView({block:`nearest`,inline:`nearest`})},[_,T,v,O.length]);let M=a===`zh`?`返回`:`Back`;if(v===`models`||v===`agents`){let o=O,s=C.loading;return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"aria-label":a===`zh`?`选择模型或智能体`:`Model or agent picker`,onMouseDown:t=>{t.target===t.currentTarget&&e()},children:(0,$.jsxs)(`div`,{className:`flex w-full max-w-2xl flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[(0,$.jsx)(`input`,{ref:t,type:`search`,value:g,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:v===`models`?a===`zh`?`搜索模型…`:`Search models…`:a===`zh`?`搜索智能体…`:`Search agents…`,className:`border-b border-edge bg-transparent px-4 py-3 text-sm text-fg outline-none placeholder:text-fg-muted`,autoComplete:`off`,autoCorrect:`off`}),(0,$.jsxs)(`ul`,{ref:n,className:`max-h-[min(60vh,26rem)] overflow-y-auto p-2 text-sm [scrollbar-gutter:stable]`,role:`listbox`,children:[(0,$.jsx)(`li`,{children:(0,$.jsxs)(`button`,{type:`button`,"data-global-palette-index":0,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left text-fg-muted`,_===0?`bg-surface-hover`:`hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:0}),onClick:()=>f({type:`resetMain`}),children:[`← `,M]})}),s?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:a===`zh`?`加载中…`:`Loading…`}):o.length===0?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:a===`zh`?`无结果`:`No results`}):o.map((t,n)=>{let a=n+1;return(0,$.jsx)(`li`,{children:(0,$.jsx)(`button`,{type:`button`,"data-global-palette-index":a,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left`,_===a?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:a}),onClick:()=>{v===`models`?(async()=>{await B3(t.id),xt(),LF(),e(),f({type:`resetMain`})})():(V3(t.id,i,r,e),f({type:`resetMain`}))},children:(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`min-w-0 truncate font-medium`,children:t.title}),t.subtitle?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-2 text-xs text-fg-muted`,children:t.subtitle}):null]})})},t.id)})]})]})})}let N=``;return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"aria-label":`Global search`,onMouseDown:t=>{t.target===t.currentTarget&&e()},children:(0,$.jsxs)(`div`,{className:`flex w-full max-w-2xl flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[(0,$.jsx)(`input`,{ref:t,type:`search`,value:g,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:a===`zh`?`搜索…(会话 / 文件 / 设置 / 命令)`:`Search… (sessions, files, settings, commands)`,className:`border-b border-edge bg-transparent px-4 py-3 text-sm text-fg outline-none placeholder:text-fg-muted`,autoComplete:`off`,autoCorrect:`off`}),(0,$.jsx)(`ul`,{ref:n,className:`max-h-[min(60vh,26rem)] overflow-y-auto p-2 text-sm [scrollbar-gutter:stable]`,role:`listbox`,"aria-activedescendant":T[_]?`global-hit-${T[_].id}`:void 0,children:T.length===0?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:E?a===`zh`?`搜索中…`:`Searching…`:D?D instanceof Error?D.message:String(D):a===`zh`?`无结果`:`No results`}):T.map((e,t)=>{let n=e.groupLabel===N?``:e.groupLabel;return N=e.groupLabel,(0,$.jsxs)(`li`,{children:[n?(0,$.jsx)(`div`,{className:`px-3 pb-1 pt-2 text-[10px] font-semibold uppercase tracking-wide text-fg-muted`,children:n}):null,(0,$.jsxs)(`button`,{id:`global-hit-${e.id}`,"data-global-palette-index":t,type:`button`,className:[`flex w-full items-start gap-2 rounded-lg px-3 py-2 text-left`,t===_?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-muted`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:t}),onClick:()=>e.run(),children:[(0,$.jsx)(`span`,{className:`mt-0.5`,children:due(e)}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`min-w-0 truncate font-medium`,children:e.title}),e.subtitle?(0,$.jsx)(`div`,{className:`mt-0.5 line-clamp-2 text-xs text-fg-muted`,children:e.subtitle}):null]})]})]},e.id)})})]})})}function vue(){let e=(0,Q.c)(7),[t,n]=(0,Z.useState)(!1),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),n(bue))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,Z.useEffect)(r,i);let a,o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=()=>n(!0);return window.addEventListener(`open-command-palette`,e),()=>window.removeEventListener(`open-command-palette`,e)},o=[],e[2]=a,e[3]=o):(a=e[2],o=e[3]),(0,Z.useEffect)(a,o);let s,c;if(e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>n(yue);return window.addEventListener(`toggle-command-palette`,e),()=>window.removeEventListener(`toggle-command-palette`,e)},c=[],e[4]=s,e[5]=c):(s=e[4],c=e[5]),(0,Z.useEffect)(s,c),!t)return null;let l;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(_ue,{onClose:()=>n(!1)}),e[6]=l):l=e[6],l}function yue(e){return!e}function bue(e){return!e}function U3(e,t){let n=t.trim();if(!n)return e;let r=e.trim();return r?`${r} ${n}`:n}var W3=X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),G3=(0,Z.memo)(function(e){let t=(0,Q.c)(35),{phase:n,elapsedLabel:r,audioLevel:i,partialTranscript:a,finalTranscript:o,disabled:s,chat:c,onCancel:l,onConfirm:u,onRetry:d}=e,f=n===`transcribing`,p=n===`requesting`,m=n===`starting`,h=n===`error`,g=h?c.voiceTranscribeFailed:a||o||(p?c.voiceRequestingMicrophone:m?c.voiceStartingMicrophone:f?c.voiceTranscribing:c.voiceRecordingStatus),_;t[0]!==i||t[1]!==h||t[2]!==n?(_=n===`recording`?(0,$.jsx)(`div`,{className:`flex h-5 shrink-0 items-center gap-0.5`,"aria-hidden":!0,children:Array.from({length:9},(e,t)=>{let n=.35+(t%4+1)*.16;return(0,$.jsx)(`span`,{className:`w-0.5 rounded-full bg-red-500 transition-[height] duration-75`,style:{height:Math.max(3,Math.round(18*Math.min(1,i*n+.08)))}},t)})}):(0,$.jsx)(je,{className:X(`size-4 shrink-0`,!h&&`animate-spin`,h&&`text-red-500`),"aria-hidden":!0}),t[0]=i,t[1]=h,t[2]=n,t[3]=_):_=t[3];let v;t[4]===g?v=t[5]:(v=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg-muted`,children:g}),t[4]=g,t[5]=v);let y=n===`recording`?r:``,b;t[6]===y?b=t[7]:(b=(0,$.jsx)(`span`,{className:`shrink-0 tabular-nums text-sm text-fg-subtle`,"aria-live":`polite`,children:y}),t[6]=y,t[7]=b);let x;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Ne,{className:`size-4`}),t[8]=x):x=t[8];let S;t[9]!==s||t[10]!==c.voiceInputCancel||t[11]!==l?(S=(0,$.jsx)(`button`,{type:`button`,className:W3,disabled:s,title:c.voiceInputCancel,"aria-label":c.voiceInputCancel,onClick:l,children:x}),t[9]=s,t[10]=c.voiceInputCancel,t[11]=l,t[12]=S):S=t[12];let C;t[13]!==s||t[14]!==h||t[15]!==c.voiceRetry||t[16]!==d?(C=h?(0,$.jsx)(`button`,{type:`button`,className:X(W3,`text-fg`),disabled:s,title:c.voiceRetry,"aria-label":c.voiceRetry,onClick:d,children:(0,$.jsx)(Iv,{className:`size-4`})}):null,t[13]=s,t[14]=h,t[15]=c.voiceRetry,t[16]=d,t[17]=C):C=t[17];let w;t[18]!==s||t[19]!==h||t[20]!==o||t[21]!==c.voiceInputConfirm||t[22]!==u||t[23]!==n?(w=n===`recording`||h&&o?(0,$.jsx)(`button`,{type:`button`,className:X(W3,`text-fg`),disabled:s,title:c.voiceInputConfirm,"aria-label":c.voiceInputConfirm,onClick:u,children:(0,$.jsx)(W,{className:`size-4`})}):null,t[18]=s,t[19]=h,t[20]=o,t[21]=c.voiceInputConfirm,t[22]=u,t[23]=n,t[24]=w):w=t[24];let T;t[25]!==S||t[26]!==C||t[27]!==w?(T=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[S,C,w]}),t[25]=S,t[26]=C,t[27]=w,t[28]=T):T=t[28];let E;return t[29]!==c.voiceInput||t[30]!==_||t[31]!==v||t[32]!==b||t[33]!==T?(E=(0,$.jsxs)(`div`,{className:`flex min-h-10 w-full items-center gap-2 py-2`,role:`region`,"aria-label":c.voiceInput,children:[_,v,b,T]}),t[29]=c.voiceInput,t[30]=_,t[31]=v,t[32]=b,t[33]=T,t[34]=E):E=t[34],E}),K3=`xopc-voice-input-toggle`,q3=`xopc-voice-input-cancel`,J3=`app-shortcut-recording`,Y3=!1;function X3(e,t){let n=new CustomEvent(e,{cancelable:!0,detail:{target:t}});return window.dispatchEvent(n),n.defaultPrevented}function Z3(){Y3=!0}function xue(){Y3=!1}function Sue(){return Y3?(Y3=!1,!0):!1}function Q3(){return typeof navigator>`u`?!1:navigator.platform?.includes(`Mac`)??navigator.userAgent.includes(`Mac`)}function $3(e,t=Q3()){return t6(e).split(`+`).map(e=>e===`control`?`Ctrl`:e===`meta`?t?`⌘`:`Win`:e===`alt`?t?`Option`:`Alt`:e===`shift`?`Shift`:e===`space`?`Space`:e.length===1?e.toUpperCase():e)}function e6(e=Q3()){return e?`meta+.`:`control+.`}function t6(e){return e.split(`+`).map(r6).filter(Boolean).join(`+`)}function Cue(e){if(e.key===`Escape`||[`Meta`,`Control`,`Alt`,`Shift`].includes(e.key))return null;let t=e.key===` `?`space`:r6(e.key);return t?[...[e.metaKey?`meta`:``,e.ctrlKey?`control`:``,e.altKey?`alt`:``,e.shiftKey?`shift`:``].filter(Boolean),t].join(`+`):null}var n6=at(wt(e=>({shortcut:e6(),setShortcut:t=>e({shortcut:t6(t)||e6()})}),{name:`xopc-quick-capture-shortcut`,version:2,migrate:e=>{let t=e;return!Q3()&&t.shortcut===`meta+.`?{...t,shortcut:e6(!1)}:{...t,shortcut:t6(t.shortcut??``)||e6()}}})),wue={cmd:`meta`,command:`meta`,ctrl:`control`,ctl:`control`,opt:`alt`,option:`alt`};function r6(e){let t=e.toLowerCase().trim();return wue[t]??t}function i6(e,t){let n=t6(t).split(`+`),r=new Set(n.filter(e=>[`meta`,`control`,`alt`,`shift`].includes(e))),i=n.find(e=>!r.has(e));return!i||r.has(`meta`)!==e.metaKey||r.has(`control`)!==e.ctrlKey||r.has(`alt`)!==e.altKey||r.has(`shift`)!==e.shiftKey?!1:e.key.toLowerCase()===i||e.code.toLowerCase()===i}function a6(e=Q3()){return e?`meta+shift+m`:`control+shift+m`}var o6=at(wt(e=>({shortcut:a6(),setShortcut:t=>e({shortcut:t6(t)||a6()})}),{name:`xopc-voice-input-shortcut`,version:1}));function Tue(e){let t=(0,Q.c)(98),{onClose:n}=e,r=p(),i=ct(Due),a;t[0]===i?a=t[1]:(a=rt(i),t[0]=i,t[1]=a);let o=a.notes,s;t[2]===i?s=t[3]:(s=rt(i),t[2]=i,t[3]=s);let c=s.chat,l=o6(Eue),[u,d]=(0,Z.useState)(``),[f,m]=(0,Z.useState)(!1),h=(0,Z.useRef)(null),g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d(t=>U3(t,e)),window.setTimeout(()=>h.current?.focus(),0)},t[4]=g):g=t[4];let _;t[5]!==c||t[6]!==f?(_={disabled:f,chat:c,onTranscript:g},t[5]=c,t[6]=f,t[7]=_):_=t[7];let v=nj(_),{phase:y,voiceActive:b,startVoiceInput:x,cancelVoiceInput:S,confirmVoiceInput:C}=v,w,T;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=window.setTimeout(()=>h.current?.focus(),50);return()=>window.clearTimeout(e)},T=[],t[8]=w,t[9]=T):(w=t[8],T=t[9]),(0,Z.useEffect)(w,T);let E,D;t[10]!==S||t[11]!==C||t[12]!==f||t[13]!==x||t[14]!==b||t[15]!==y?(E=()=>{let e=e=>{e.detail?.target===`note`&&(e.preventDefault(),!f&&(y===`recording`?C():(y===`idle`||y===`error`)&&x()))},t=e=>{e.detail?.target!==`note`||!b||(e.preventDefault(),S(),h.current?.focus())};return window.addEventListener(K3,e),window.addEventListener(q3,t),()=>{window.removeEventListener(K3,e),window.removeEventListener(q3,t)}},D=[S,C,f,x,b,y],t[10]=S,t[11]=C,t[12]=f,t[13]=x,t[14]=b,t[15]=y,t[16]=E,t[17]=D):(E=t[16],D=t[17]),(0,Z.useEffect)(E,D);let O;t[18]!==r||t[19]!==n||t[20]!==f||t[21]!==u?(O=async e=>{let t=u.trim();if(!(!t||f)){m(!0);try{let i=await R$(t,`web`);n(),e&&r(`/notes/${i.id}`)}catch{m(!1)}}},t[18]=r,t[19]=n,t[20]=f,t[21]=u,t[22]=O):O=t[22];let k=O,A;t[23]!==k||t[24]!==n?(A=e=>{if(e.key===`Escape`){e.preventDefault(),n();return}if(e.key===`Enter`&&!e.shiftKey){e.preventDefault(),k(!0);return}e.key===`Enter`&&e.shiftKey&&(e.preventDefault(),k(!1))},t[23]=k,t[24]=n,t[25]=A):A=t[25];let j=A,M=o.quickCapturePlaceholder,N;t[26]===n?N=t[27]:(N=e=>{e.target===e.currentTarget&&n()},t[26]=n,t[27]=N);let P;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,$.jsx)(Lx,{className:`size-4 text-accent`}),t[28]=P):P=t[28];let F;t[29]===o.quickCapturePlaceholder?F=t[30]:(F=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-edge px-4 py-3`,children:[P,(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:o.quickCapturePlaceholder})]}),t[29]=o.quickCapturePlaceholder,t[30]=F);let I;t[31]!==c||t[32]!==j||t[33]!==o.quickCapturePlaceholder||t[34]!==f||t[35]!==u||t[36]!==v.audioLevel||t[37]!==v.cancelVoiceInput||t[38]!==v.confirmVoiceInput||t[39]!==v.elapsedLabel||t[40]!==v.finalTranscript||t[41]!==v.partialTranscript||t[42]!==v.phase||t[43]!==v.retryVoiceInput||t[44]!==v.voiceActive?(I=v.voiceActive?(0,$.jsx)(`div`,{className:`px-4 py-3`,children:(0,$.jsx)(G3,{phase:v.phase,elapsedLabel:v.elapsedLabel,audioLevel:v.audioLevel,partialTranscript:v.partialTranscript,finalTranscript:v.finalTranscript,disabled:f,chat:c,onCancel:v.cancelVoiceInput,onConfirm:v.confirmVoiceInput,onRetry:v.retryVoiceInput})}):(0,$.jsx)(`textarea`,{ref:h,value:u,onChange:e=>d(e.target.value),onKeyDown:j,placeholder:o.quickCapturePlaceholder,disabled:f,rows:4,className:`resize-none border-none bg-transparent px-4 py-3 text-sm leading-relaxed text-fg placeholder:text-fg-muted focus:outline-none disabled:opacity-60`,style:{fieldSizing:`content`,minHeight:`6rem`,maxHeight:`40vh`}}),t[31]=c,t[32]=j,t[33]=o.quickCapturePlaceholder,t[34]=f,t[35]=u,t[36]=v.audioLevel,t[37]=v.cancelVoiceInput,t[38]=v.confirmVoiceInput,t[39]=v.elapsedLabel,t[40]=v.finalTranscript,t[41]=v.partialTranscript,t[42]=v.phase,t[43]=v.retryVoiceInput,t[44]=v.voiceActive,t[45]=I):I=t[45];let L=f||v.voiceActive,R;t[46]===n?R=t[47]:(R=()=>{n(),AI()},t[46]=n,t[47]=R);let z;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(Wr,{className:`size-3.5`,"aria-hidden":!0}),t[48]=z):z=t[48];let B;t[49]===o.discussionCapture.title?B=t[50]:(B=(0,$.jsx)(`span`,{children:o.discussionCapture.title}),t[49]=o.discussionCapture.title,t[50]=B);let V;t[51]!==L||t[52]!==R||t[53]!==B?(V=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-md px-1.5 py-1 text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-50`,disabled:L,onClick:R,children:[z,B]}),t[51]=L,t[52]=R,t[53]=B,t[54]=V):V=t[54];let H=f||v.voiceActive,ee=c.voiceInput,te;t[55]===l?te=t[56]:(te=$3(l).join(`+`),t[55]=l,t[56]=te);let ne=`${ee} (${te})`,U=c.voiceInput,W;t[57]===l?W=t[58]:(W=$3(l).join(`+`),t[57]=l,t[58]=W);let re=`${U} (${W})`,ie;t[59]===v?ie=t[60]:(ie=()=>void v.startVoiceInput(),t[59]=v,t[60]=ie);let ae;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(nv,{className:`size-3.5`,"aria-hidden":!0}),t[61]=ae):ae=t[61];let oe;t[62]===c.voiceInput?oe=t[63]:(oe=(0,$.jsx)(`span`,{children:c.voiceInput}),t[62]=c.voiceInput,t[63]=oe);let se;t[64]!==H||t[65]!==ne||t[66]!==re||t[67]!==ie||t[68]!==oe?(se=(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-md px-1.5 py-1 text-fg-muted hover:bg-surface-hover hover:text-fg disabled:opacity-50`,disabled:H,title:ne,"aria-label":re,onClick:ie,children:[ae,oe]}),t[64]=H,t[65]=ne,t[66]=re,t[67]=ie,t[68]=oe,t[69]=se):se=t[69];let ce;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Enter`}),t[70]=ce):ce=t[70];let le;t[71]===o.quickCaptureHintEnter?le=t[72]:(le=(0,$.jsxs)(`span`,{children:[ce,` `,o.quickCaptureHintEnter]}),t[71]=o.quickCaptureHintEnter,t[72]=le);let ue;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Shift+Enter`}),t[73]=ue):ue=t[73];let de;t[74]===o.quickCaptureHintShift?de=t[75]:(de=(0,$.jsxs)(`span`,{children:[ue,` `,o.quickCaptureHintShift]}),t[74]=o.quickCaptureHintShift,t[75]=de);let fe;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Esc`}),t[76]=fe):fe=t[76];let pe;t[77]===o.quickCaptureHintEsc?pe=t[78]:(pe=(0,$.jsxs)(`span`,{children:[fe,` `,o.quickCaptureHintEsc]}),t[77]=o.quickCaptureHintEsc,t[78]=pe);let me;t[79]!==V||t[80]!==se||t[81]!==le||t[82]!==de||t[83]!==pe?(me=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-[11px] text-fg-muted`,children:[V,se,le,de,pe]}),t[79]=V,t[80]=se,t[81]=le,t[82]=de,t[83]=pe,t[84]=me):me=t[84];let G;t[85]===f?G=t[86]:(G=f&&(0,$.jsx)(`div`,{className:`size-4 animate-spin rounded-full border-2 border-accent border-t-transparent`}),t[85]=f,t[86]=G);let he;t[87]!==me||t[88]!==G?(he=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-t border-edge-subtle px-4 py-2`,children:[me,G]}),t[87]=me,t[88]=G,t[89]=he):he=t[89];let ge;t[90]!==F||t[91]!==I||t[92]!==he?(ge=(0,$.jsxs)(`div`,{className:`flex w-full max-w-lg flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,children:[F,I,he]}),t[90]=F,t[91]=I,t[92]=he,t[93]=ge):ge=t[93];let _e;return t[94]!==o.quickCapturePlaceholder||t[95]!==N||t[96]!==ge?(_e=(0,$.jsx)(`div`,{className:`fixed inset-0 z-[120] flex items-start justify-center bg-black/40 p-4 pt-[min(18vh,7rem)]`,role:`dialog`,"aria-modal":`true`,"data-voice-input-scope":`note`,"aria-label":M,onMouseDown:N,children:ge}),t[94]=o.quickCapturePlaceholder,t[95]=N,t[96]=ge,t[97]=_e):_e=t[97],_e}function Eue(e){return e.shortcut}function Due(e){return e.language}function Oue(){let e=(0,Q.c)(11),[t,n]=(0,Z.useState)(!1),[r,i]=(0,Z.useState)(!1),a=ut(jue),o=n6(Aue),s,c;e[0]!==r||e[1]!==o||e[2]!==a?(s=()=>{let e=e=>{r||i6(e,o)&&(e.preventDefault(),a&&n(kue))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},c=[r,o,a],e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=c):(s=e[3],c=e[4]),(0,Z.useEffect)(s,c);let l,u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=e=>{i(!!e.detail?.active)};return window.addEventListener(`quick-capture-shortcut-recording`,e),window.addEventListener(J3,e),()=>{window.removeEventListener(`quick-capture-shortcut-recording`,e),window.removeEventListener(J3,e)}},u=[],e[5]=l,e[6]=u):(l=e[5],u=e[6]),(0,Z.useEffect)(l,u);let d,f;if(e[7]===a?(d=e[8],f=e[9]):(d=()=>{let e=()=>{a&&n(!0)};return window.addEventListener(`open-quick-capture`,e),()=>window.removeEventListener(`open-quick-capture`,e)},f=[a],e[7]=a,e[8]=d,e[9]=f),(0,Z.useEffect)(d,f),!t)return null;let p;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(Tue,{onClose:()=>n(!1)}),e[10]=p):p=e[10],p}function kue(e){return!e}function Aue(e){return e.shortcut}function jue(e){return e.token}function s6(){return J(Y(`/api/discussion-capture/settings`))}function Mue(e){return J(Y(`/api/discussion-capture/settings`),{method:`PUT`,body:JSON.stringify({consentPolicyVersion:e})})}async function c6(e){return J(Y(`/api/discussions`),{method:`POST`,body:JSON.stringify(e)})}function l6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}`))}async function Nue(e){try{return await J(Y(`/api/discussions/by-note/${encodeURIComponent(e)}`))}catch(e){if(e.status===404)return null;throw e}}function Pue(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/transcript`))}function Fue(e,t,n){let r=new FormData;return r.set(`file`,n.blob,`segment-${t}.wav`),r.set(`startedAtMs`,String(n.startedAtMs)),r.set(`endedAtMs`,String(n.endedAtMs)),r.set(`sha256`,n.sha256),J(Y(`/api/discussions/${encodeURIComponent(e)}/segments/${t}`),{method:`PUT`,body:r})}function u6(e,t,n){return J(Y(`/api/discussions/${encodeURIComponent(e)}/stop`),{method:`POST`,body:JSON.stringify({lastSequence:t,durationMs:n})})}function Iue(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/cancel`),{method:`POST`})}function Lue(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/project`),{method:`DELETE`})}function d6(e,t,n,r){return new Promise((i,a)=>{let o=new XMLHttpRequest;o.open(`PUT`,Y(`/api/discussions/${encodeURIComponent(e)}/recording`));let s=ut.getState().token;s&&o.setRequestHeader(`Authorization`,`Bearer ${s}`),o.responseType=`json`,o.upload.onprogress=e=>{e.lengthComputable&&e.total>0&&r(Math.min(100,Math.round(e.loaded/e.total*100)))},o.onerror=()=>a(Error(`Network error while uploading discussion audio`)),o.onload=()=>{if(o.status===401&&ut.getState().onUnauthorized(),o.status>=200&&o.status<300){r(100),i(o.response);return}let e=o.response;a(Error(st(o.status,o.statusText,e?.error)))};let c=new FormData;c.set(`file`,t),c.set(`durationMs`,String(Math.round(n))),o.send(c)})}var Rue=`xopc-discussion-drafts`,f6=2,p6=`drafts`,m6=`chunks`,h6=`segments`;function g6(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error??Error(`IndexedDB request failed`))})}function _6(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onabort=()=>n(e.error??Error(`IndexedDB transaction aborted`)),e.onerror=()=>n(e.error??Error(`IndexedDB transaction failed`))})}function v6(){return typeof indexedDB>`u`?Promise.reject(Error(`Local recording storage is unavailable`)):new Promise((e,t)=>{let n=indexedDB.open(Rue,f6);n.onupgradeneeded=e=>{let t=n.result;t.objectStoreNames.contains(p6)||t.createObjectStore(p6,{keyPath:`id`}),t.objectStoreNames.contains(m6)||t.createObjectStore(m6,{keyPath:[`draftId`,`index`]}).createIndex(`draftId`,`draftId`),t.objectStoreNames.contains(h6)||t.createObjectStore(h6,{keyPath:[`draftId`,`sequence`]}).createIndex(`draftId`,`draftId`),e.oldVersion>0&&e.oldVersion<f6&&(n.transaction?.objectStore(p6).clear(),n.transaction?.objectStore(m6).clear())},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Could not open local recording storage`))})}async function y6(e){let t=await v6();try{let n=t.transaction(p6,`readwrite`);n.objectStore(p6).put(e),await _6(n)}finally{t.close()}}async function zue(e){let t=await v6();try{let n=t.transaction(m6,`readwrite`);n.objectStore(m6).put(e),await _6(n)}finally{t.close()}}async function Bue(){let e=await v6();try{let t=e.transaction(p6,`readonly`),n=_6(t),r=await g6(t.objectStore(p6).getAll());return await n,r.sort((e,t)=>t.updatedAt-e.updatedAt)}finally{e.close()}}async function Vue(e){let t=await v6();try{let n=t.transaction(m6,`readonly`),r=_6(n),i=await g6(n.objectStore(m6).index(`draftId`).getAll(e));return await r,i.sort((e,t)=>e.index-t.index)}finally{t.close()}}async function Hue(e){let t=await v6();try{let n=t.transaction(h6,`readwrite`);n.objectStore(h6).put(e),await _6(n)}finally{t.close()}}async function b6(e){let t=await v6();try{let n=t.transaction(h6,`readonly`),r=_6(n),i=await g6(n.objectStore(h6).index(`draftId`).getAll(e));return await r,i.sort((e,t)=>e.sequence-t.sequence)}finally{t.close()}}async function Uue(e,t){let n=await v6();try{let r=n.transaction(h6,`readwrite`);r.objectStore(h6).delete([e,t]),await _6(r)}finally{n.close()}}async function Wue(e){let t=await v6();try{let n=t.transaction([p6,m6,h6],`readwrite`);n.objectStore(p6).delete(e);let r=n.objectStore(m6),i=r.index(`draftId`).openKeyCursor(IDBKeyRange.only(e));i.onsuccess=()=>{let e=i.result;e&&(r.delete(e.primaryKey),e.continue())};let a=n.objectStore(h6),o=a.index(`draftId`).openKeyCursor(IDBKeyRange.only(e));o.onsuccess=()=>{let e=o.result;e&&(a.delete(e.primaryKey),e.continue())},await _6(n)}finally{t.close()}}var x6=3e4;function Gue(e,t){let n=e?.retryAfterMs;return typeof n==`number`&&Number.isFinite(n)?Math.min(x6,Math.max(0,n)):Math.min(x6,1e3*2**Math.min(t,5))}function Kue(e){let t=e?.status;return typeof t!=`number`||t===408||t===429||t>=500}function que(e,t){return t.throwIfAborted(),new Promise((n,r)=>{let i=()=>{globalThis.clearTimeout(a),r(t.reason??new DOMException(`Aborted`,`AbortError`))},a=globalThis.setTimeout(()=>{t.removeEventListener(`abort`,i),n()},e);t.addEventListener(`abort`,i,{once:!0})})}async function Jue(e,t,n){let r=0;for(;!n.aborted;){let i=await t.list(e.draftId);t.onPendingCount?.(i.length);let a=i[0];if(!a)return;try{let n=await t.upload(e.discussionId,a);await t.remove(e.draftId,a),t.onTranscript?.(n),r=0}catch(e){if(n.aborted)throw n.reason??e;if(!Kue(e))throw e;await que(Gue(e,r),n),r+=1}}}var Yue=4,S6=15,Xue=.6,Zue=.5,Que=.5,C6=.015;function $ue(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Float32Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}async function ede(e){let t=await crypto.subtle.digest(`SHA-256`,await e.arrayBuffer());return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var tde=class{sampleRate;chunks=[];bufferedSamples=0;segmentStartSample=0;sequence=0;silenceSamples=0;hasSpeech=!1;constructor(e){this.sampleRate=e}add(e){if(e.length===0)return[];this.chunks.push(e),this.bufferedSamples+=e.length,HA(e)>=C6?(this.hasSpeech=!0,this.silenceSamples=0):this.silenceSamples+=e.length;let t=this.sampleRate*S6;return this.bufferedSamples>=t?this.hasSpeech?[this.emit(`max`)]:(this.discardBuffered(),[]):this.hasSpeech&&this.bufferedSamples>=this.sampleRate*Yue&&this.silenceSamples>=this.sampleRate*Xue?[this.emit(`silence`)]:[]}finish(){return!this.hasSpeech||this.bufferedSamples<this.sampleRate*Que?(this.discardBuffered(),[]):[this.emit(`final`)]}cancel(){this.chunks=[],this.bufferedSamples=0}get lastSequence(){return this.sequence-1}emit(e){let t=$ue(this.chunks),n=e===`max`?Math.min(t.length,this.sampleRate*S6):t.length,r=t.slice(0,n),i=e===`max`?Math.min(n,this.sampleRate*Zue):0,a=t.slice(n-i),o=Math.round(this.segmentStartSample/this.sampleRate*1e3),s=Math.round((this.segmentStartSample+n)/this.sampleRate*1e3),c={sequence:this.sequence++,samples:r,startedAtMs:o,endedAtMs:s};return this.segmentStartSample+=n-i,this.chunks=a.length?[a]:[],this.bufferedSamples=a.length,this.hasSpeech=a.length>0&&HA(a)>=C6,this.silenceSamples=this.hasSpeech?0:a.length,c}discardBuffered(){this.segmentStartSample+=this.bufferedSamples,this.chunks=[],this.bufferedSamples=0,this.silenceSamples=0,this.hasSpeech=!1}},nde=class e{capture;accumulator;emitState;onSegment;stopped=!1;constructor(e,t,n,r){this.capture=e,this.accumulator=t,this.emitState=n,this.onSegment=r}static async start(t,n){let r={pending:new Set},i,a=[],o=await YA.start(t,{onSamples:e=>{if(!i){a.push(e);return}for(let t of i.accumulator.add(e))i.emit(t)}});i=new e(o,new tde(o.sampleRate),r,n);for(let e of a)for(let t of i.accumulator.add(e))i.emit(t);return i}pause(){this.capture.pause()}resume(){this.capture.resume()}async stop(){if(this.stopped)return this.accumulator.lastSequence;this.stopped=!0,await this.capture.stop();for(let e of this.accumulator.finish())this.emit(e);if(await Promise.all(this.emitState.pending),this.emitState.error)throw this.emitState.error;return this.accumulator.lastSequence}cancel(){this.stopped||(this.stopped=!0,this.capture.cancel(),this.accumulator.cancel())}emit(e){let t=UA(e.samples,this.capture.sampleRate),n=new Blob([WA(t)],{type:`audio/wav`}),r=(async()=>{await this.onSegment({sequence:e.sequence,blob:n,startedAtMs:e.startedAtMs,endedAtMs:e.endedAtMs,sha256:await ede(n)})})().catch(e=>{this.emitState.error??=e});this.emitState.pending.add(r),r.then(()=>this.emitState.pending.delete(r))}},w6=1800*1e3,rde=30*1024*1024;function ide(){if(!(typeof MediaRecorder>`u`))return[`audio/webm;codecs=opus`,`audio/mp4`,`audio/ogg;codecs=opus`,`audio/webm`].find(e=>MediaRecorder.isTypeSupported(e))}function ade(e){return e.includes(`mp4`)?`m4a`:e.includes(`ogg`)?`ogg`:`webm`}function ode(){let[e,t]=(0,Z.useState)(`idle`),[n,r]=(0,Z.useState)(null),[i,a]=(0,Z.useState)([]),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(!0),f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=(0,Z.useRef)(0),_=(0,Z.useRef)(0),v=(0,Z.useRef)(0),y=(0,Z.useRef)(Promise.resolve()),b=(0,Z.useRef)(null),x=(0,Z.useRef)(null),S=(0,Z.useCallback)(async()=>{try{a(await Bue())}catch{a([])}},[]);(0,Z.useEffect)(()=>{S()},[S]);let C=(0,Z.useCallback)(()=>{b.current!=null&&window.clearInterval(b.current),x.current!=null&&window.clearTimeout(x.current),b.current=null,x.current=null,m.current?.getTracks().forEach(e=>e.stop()),m.current=null,f.current=null},[]);(0,Z.useEffect)(()=>()=>{p.current?.cancel(),C()},[C]);let w=(0,Z.useCallback)(e=>{let t=h.current;if(!t||e.size===0)return;let n=g.current++;y.current=y.current.then(async()=>{await zue({draftId:t.id,index:n,blob:e,createdAt:Date.now()});let i=h.current;if(!i||i.id!==t.id)return;let a={...i,chunkCount:Math.max(i.chunkCount,n+1),durationMs:Math.max(i.durationMs,_.current+(v.current?Date.now()-v.current:0)),updatedAt:Date.now()};h.current=a,r(a),await y6(a)})},[]),T=(0,Z.useCallback)(async()=>{let e=f.current;if(!e||e.state===`inactive`)return h.current;t(`stopping`),e.state===`recording`&&v.current&&(_.current+=Date.now()-v.current,v.current=0);let n=p.current?await p.current.stop().catch(()=>-1):-1;p.current=null,await new Promise(t=>{e.addEventListener(`stop`,()=>t(),{once:!0}),e.stop()}),await y.current;let i=h.current;if(!i)return C(),t(`error`),l(`The recording draft could not be recovered.`),null;let a={...i,state:`stopped`,lastSequence:n,durationMs:Math.min(w6,Math.max(1e3,_.current)),updatedAt:Date.now()};return await y6(a),h.current=a,r(a),s(a.durationMs),C(),t(`stopped`),await S(),a},[S,C]),E=(0,Z.useCallback)(async e=>{if(!navigator.mediaDevices?.getUserMedia||typeof MediaRecorder>`u`)return l(`Audio recording is not supported in this environment.`),t(`error`),null;l(null),t(`requesting_permission`);try{let n=await navigator.storage?.estimate?.();if(n?.quota!=null&&n.usage!=null&&n.quota-n.usage<rde)throw Error(`Not enough local storage for a discussion recording.`);let i=await navigator.mediaDevices.getUserMedia({audio:!0});m.current=i;let a=ide(),o=a?new MediaRecorder(i,{mimeType:a,audioBitsPerSecond:64e3}):new MediaRecorder(i,{audioBitsPerSecond:64e3}),c=Date.now(),u={id:crypto.randomUUID(),...e.projectId?{projectId:e.projectId}:{},mimeType:o.mimeType||a||`audio/webm`,startedAt:c,updatedAt:c,durationMs:0,chunkCount:0,lastSequence:-1,state:`recording`};await y6(u),f.current=o,h.current=u,g.current=0,_.current=0,v.current=c,y.current=Promise.resolve(),o.ondataavailable=e=>w(e.data),o.onerror=()=>l(`The microphone stopped unexpectedly. Finish to save the recording.`),o.start(5e3);try{p.current=await nde.start(i,t=>e.onLiveSegment(u.id,t)),d(!0)}catch{p.current=null,d(!1)}return r(u),s(0),t(`recording`),b.current=window.setInterval(()=>{s(_.current+(v.current?Date.now()-v.current:0))},1e3),x.current=window.setTimeout(()=>void T(),w6),u}catch(e){return p.current?.cancel(),p.current=null,C(),l(e instanceof Error?e.message:`Microphone permission was denied.`),t(`error`),null}},[w,T,C]),D=(0,Z.useCallback)(()=>{f.current?.state===`recording`&&(v.current&&(_.current+=Date.now()-v.current,v.current=0,s(_.current)),f.current.pause(),p.current?.pause(),t(`paused`))},[]),O=(0,Z.useCallback)(()=>{f.current?.state===`paused`&&(v.current=Date.now(),f.current.resume(),p.current?.resume(),t(`recording`))},[]),k=(0,Z.useCallback)(async e=>{let t=h.current;if(!t)return;let n={...t,serverDiscussionId:e,updatedAt:Date.now()};h.current=n,r(n),await y6(n)},[]);return{phase:e,draft:n,recoverableDrafts:i,elapsedMs:o,error:c,liveTranscriptionAvailable:u,start:E,pause:D,resume:O,stop:T,restore:(0,Z.useCallback)(async e=>{let n={...e,state:`stopped`,updatedAt:Date.now()};await y6(n),h.current=n,_.current=n.durationMs,v.current=0,r(n),s(n.durationMs),l(null),t(`stopped`)},[]),discard:(0,Z.useCallback)(async e=>{await Wue(e),h.current?.id===e&&(h.current=null,r(null),s(0),t(`idle`)),await S()},[S]),buildFile:(0,Z.useCallback)(async()=>{let e=h.current;if(!e)return null;let t=await Vue(e.id);if(t.length===0)return null;let n=new Blob(t.map(e=>e.blob),{type:e.mimeType});return new File([n],`discussion-${e.startedAt}.${ade(e.mimeType)}`,{type:e.mimeType})},[]),markUploadFailed:(0,Z.useCallback)(async()=>{let e=h.current;if(!e)return;let t={...e,state:`upload_failed`,updatedAt:Date.now()};await y6(t),h.current=t,r(t),await S()},[S]),reset:(0,Z.useCallback)(()=>{h.current=null,_.current=0,v.current=0,r(null),s(0),l(null),t(`idle`)},[]),setServerDiscussionId:k,refreshRecoverableDrafts:S}}function sde(e){let t=Math.max(0,Math.floor(e/1e3));return`${String(Math.floor(t/60)).padStart(2,`0`)}:${String(t%60).padStart(2,`0`)}`}function cde(){let e=p(),t=ut(e=>e.token),n=rt(ct(e=>e.language)).notes.discussionCapture,r=ode(),[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(),[u,d]=(0,Z.useState)(null),[f,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(0),[C,w]=(0,Z.useState)(0),[T,E]=(0,Z.useState)(null),D=(0,Z.useRef)(null),O=(0,Z.useRef)(null),k=(0,Z.useRef)(null),A=(0,Z.useRef)(null),j=(0,Z.useRef)(()=>{}),M=(0,Z.useCallback)(()=>{let e=A.current;if(e)return e;let t=O.current;if(!t)return Promise.resolve();let r=new AbortController;k.current=r;let i=Jue(t,{list:b6,upload:(e,t)=>Fue(e,t.sequence,t),remove:(e,t)=>Uue(e,t.sequence),onTranscript:m,onPendingCount:w},r.signal).finally(()=>{A.current===i&&(A.current=null,k.current===r&&(k.current=null))});return A.current=i,i.then(()=>{window.setTimeout(()=>j.current(),0)}).catch(e=>{r.signal.aborted||E(e instanceof Error?e.message:n.saveFailed)}),i},[]);j.current=()=>{let e=O.current;!e||A.current||b6(e.draftId).then(e=>{w(e.length),e.length>0&&M()})};let N=(0,Z.useCallback)((e,t)=>{let n=O.current;return n&&(n.draftId!==e||n.discussionId!==t)&&(k.current?.abort(),A.current=null),O.current={draftId:e,discussionId:t},M()},[M]),P=(0,Z.useCallback)(async(e,t)=>{for(O.current={draftId:e,discussionId:t};;){await M();let t=await b6(e);if(w(t.length),t.length===0)return}},[M]),F=(0,Z.useCallback)(async(e,t)=>{await Hue({draftId:e,...t,createdAt:Date.now()}),w(e=>e+1),M()},[M]),I=(0,Z.useCallback)(async(e,t)=>{s(null),l(void 0),a(!0),E(null),m(null),d(null),S(0);let i=await r.start({...e?{projectId:e}:{},onLiveSegment:F});if(!i)return;let o=c6({clientRequestId:i.id,...e?{contextProjectId:e}:{},consentPolicyVersion:t,source:Wt()?`electron`:`web`});D.current=o;try{let e=await o;d(e),await r.setServerDiscussionId(e.discussion.id),N(i.id,e.discussion.id)}catch(e){E(e instanceof Error?e.message:n.saveFailed)}},[N,n.saveFailed,r,F]);(0,Z.useEffect)(()=>()=>k.current?.abort(),[]);let L=(0,Z.useCallback)(async e=>{if(!(!t||r.phase===`recording`||r.phase===`paused`||h)){a(!0),E(null);try{let t=await s6();if(t.consentAcknowledgedAt==null){l(e),s(t.consentPolicyVersion);return}await I(e,t.consentPolicyVersion)}catch(e){E(e instanceof Error?e.message:n.saveFailed)}}},[I,n.saveFailed,h,r.phase,t]);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.projectId;L(t)};return window.addEventListener(kI,e),()=>window.removeEventListener(kI,e)},[L]);let R=(0,Z.useCallback)(async()=>{let e=u?.discussion.id;if(!e)return;let[t,n]=await Promise.all([l6(e),Pue(e)]);d(t),m(n)},[u?.discussion.id]);(0,Z.useEffect)(()=>{let e=()=>void R();return window.addEventListener(`discussion-segment-updated`,e),window.addEventListener(`discussion-updated`,e),()=>{window.removeEventListener(`discussion-segment-updated`,e),window.removeEventListener(`discussion-updated`,e)}},[R]);let z=async()=>{if(o!=null)try{await Mue(o),await I(c,o)}catch(e){E(e instanceof Error?e.message:n.saveFailed)}},B=async()=>{if(!h){g(!0),E(null);try{let e=await r.stop();if(!e)throw Error(n.emptyRecording);let t=await D.current;if(!t)throw Error(n.saveFailed);d(await u6(t.discussion.id,e.lastSequence,e.durationMs)),v(!0),a(!1),(async()=>{try{let i=await r.buildFile();if(!i||i.size===0)throw Error(n.emptyRecording);await Promise.all([P(e.id,t.discussion.id),d6(t.discussion.id,i,e.durationMs,S)]),await r.discard(e.id),O.current=null,w(0),v(!1)}catch(e){await r.markUploadFailed(),v(!1),E(e instanceof Error?e.message:n.saveFailed),a(!0)}})()}catch(e){await r.markUploadFailed(),E(e instanceof Error?e.message:n.saveFailed)}finally{g(!1)}}},V=()=>{u&&e(`/notes/${encodeURIComponent(u.note.id)}`)},H=async()=>{if(u)try{d(await Lue(u.discussion.id))}catch(e){E(e instanceof Error?e.message:n.saveFailed)}},ee=async()=>{let e=r.recoverableDrafts[0];if(!(!e||y)){b(!0),a(!0),E(null),S(0);try{await r.restore(e);let t=await s6();if(t.consentAcknowledgedAt==null)throw Error(n.consent);let i=e.serverDiscussionId?await l6(e.serverDiscussionId).catch(()=>null):null;if(i||=await c6({clientRequestId:e.id,...e.projectId?{contextProjectId:e.projectId}:{},consentPolicyVersion:t.consentPolicyVersion,source:Wt()?`electron`:`web`}),D.current=Promise.resolve(i),d(i),await r.setServerDiscussionId(i.discussion.id),[`stopping`,`sealing`,`organizing`,`completed`].includes(i.discussion.status)){if(i.discussion.status===`stopping`&&!i.discussion.audioAttachmentId){let t=await r.buildFile();if(!t||t.size===0)throw Error(n.emptyRecording);await P(e.id,i.discussion.id),await d6(i.discussion.id,t,e.durationMs,S)}await r.discard(e.id);return}if(i.discussion.status!==`recording`)throw Error(i.discussion.failureMessage??n.saveFailed);let a=(await b6(e.id)).reduce((e,t)=>Math.max(e,t.sequence),e.lastSequence),o=Math.max(1e3,e.durationMs);d(await u6(i.discussion.id,a,o));let s=P(e.id,i.discussion.id),c=await r.buildFile();if(!c||c.size===0)throw Error(n.emptyRecording);await Promise.all([s,d6(i.discussion.id,c,o,S)]),await r.discard(e.id)}catch(e){await r.markUploadFailed(),E(e instanceof Error?e.message:n.saveFailed)}finally{b(!1)}}},te=async()=>{let e=r.recoverableDrafts[0];e&&(e.serverDiscussionId&&await Iue(e.serverDiscussionId).catch(()=>void 0),await r.discard(e.id))};if(!i)return _?(0,$.jsxs)(`aside`,{className:`fixed bottom-5 right-5 z-[125] w-[min(24rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-4 shadow-elevated`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.finalizing}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:C>0?n.syncingSegments.replace(`{{count}}`,String(C)):n.saved}),(0,$.jsx)(`div`,{className:`mt-3 h-1.5 overflow-hidden rounded-full bg-surface-hover`,children:(0,$.jsx)(`div`,{className:`h-full bg-accent transition-[width]`,style:{width:`${x}%`}})}),u?(0,$.jsx)(`div`,{className:`mt-3 flex justify-end`,children:(0,$.jsxs)(vt,{variant:`ghost`,onClick:V,children:[(0,$.jsx)(wf,{className:`size-4`,"aria-hidden":!0}),n.openNote]})}):null]}):r.recoverableDrafts[0]?(0,$.jsxs)(`aside`,{className:`fixed bottom-5 right-5 z-[125] w-[min(24rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-4 shadow-elevated`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.recoveredTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:n.recoveredDescription}),(0,$.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2`,children:[(0,$.jsx)(vt,{variant:`ghost`,disabled:y,onClick:()=>void te(),children:n.discard}),(0,$.jsx)(vt,{variant:`primary`,disabled:y,onClick:()=>void ee(),children:y?n.recovering:n.recover})]})]}):null;if(o!=null)return(0,$.jsx)(`div`,{className:`fixed inset-0 z-[130] flex items-center justify-center bg-black/45 p-4`,role:`dialog`,"aria-modal":`true`,children:(0,$.jsxs)(`div`,{className:`w-[min(28rem,calc(100vw-2rem))] rounded-xl border border-edge bg-surface-panel p-5 shadow-elevated`,children:[(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h2`,{className:`text-base font-semibold text-fg`,children:n.consentTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n.consent})]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-2 text-fg-muted hover:bg-surface-hover`,onClick:()=>a(!1),children:(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0})})]}),T?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-danger`,children:T}):null,(0,$.jsxs)(vt,{variant:`primary`,className:`mt-5 w-full`,onClick:()=>void z(),children:[(0,$.jsx)(nv,{className:`size-4`,"aria-hidden":!0}),n.consentAction]})]})});let ne=r.phase===`recording`||r.phase===`paused`||r.phase===`requesting_permission`,U=u?.discussion.projectId&&u.discussion.projectInferenceSource!==`context`,W=(f?.stats.uploaded??0)+(f?.stats.transcribing??0);return(0,$.jsxs)(`aside`,{className:`fixed bottom-5 right-5 z-[125] flex w-[min(26rem,calc(100vw-2rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-elevated`,"aria-label":n.title,children:[(0,$.jsxs)(`header`,{className:`flex items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`size-2 shrink-0 rounded-full ${ne?`animate-pulse bg-danger`:`bg-accent`}`}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:u?.note.title??n.title}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:h?n.finalizing:r.phase===`paused`?n.paused:r.phase===`requesting_permission`?n.requesting:n.recording})]})]}),!ne&&!h?(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg p-2 text-fg-muted hover:bg-surface-hover`,"aria-label":n.close,onClick:()=>a(!1),children:(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0})}):null]}),(0,$.jsxs)(`div`,{className:`grid gap-3 px-4 py-4`,children:[(0,$.jsx)(`p`,{className:`font-mono text-3xl tabular-nums text-fg`,children:sde(r.elapsedMs)}),(0,$.jsxs)(`section`,{className:`max-h-40 overflow-y-auto rounded-lg border border-edge bg-surface-subtle p-3`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3 text-xs font-medium text-fg-muted`,children:[(0,$.jsx)(`span`,{children:n.liveTranscript}),C>0?(0,$.jsx)(`span`,{children:n.syncingSegments.replace(`{{count}}`,String(C))}):W>0?(0,$.jsx)(`span`,{children:n.processingSegments.replace(`{{count}}`,String(W))}):null]}),(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:f?.text||(r.liveTranscriptionAvailable?n.waitingTranscript:n.liveUnavailable)})]}),U?(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg bg-accent-soft px-3 py-2 text-xs text-accent-fg`,children:[(0,$.jsx)(`span`,{children:n.projectLinked}),(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 font-medium`,onClick:()=>void H(),children:[(0,$.jsx)(cw,{className:`size-3`,"aria-hidden":!0}),` `,n.undo]})]}):null,h&&x>0?(0,$.jsx)(`div`,{className:`h-1.5 overflow-hidden rounded-full bg-surface-hover`,children:(0,$.jsx)(`div`,{className:`h-full bg-accent transition-[width]`,style:{width:`${x}%`}})}):null,T||r.error?(0,$.jsx)(`p`,{className:`text-sm text-danger`,children:T??r.error}):null]}),(0,$.jsxs)(`footer`,{className:`flex items-center justify-between gap-2 border-t border-edge px-4 py-3`,children:[(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:n.maxDuration}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[u?(0,$.jsxs)(vt,{variant:`ghost`,onClick:V,children:[(0,$.jsx)(wf,{className:`size-4`,"aria-hidden":!0}),n.openNote]}):null,r.phase===`recording`?(0,$.jsxs)(vt,{onClick:r.pause,children:[(0,$.jsx)(_v,{className:`size-4`,"aria-hidden":!0}),n.pause]}):null,r.phase===`paused`?(0,$.jsxs)(vt,{onClick:r.resume,children:[(0,$.jsx)(Ev,{className:`size-4`,"aria-hidden":!0}),n.resume]}):null,r.phase===`recording`||r.phase===`paused`?(0,$.jsxs)(vt,{variant:`primary`,disabled:h,onClick:()=>void B(),children:[(0,$.jsx)(_x,{className:`size-4`,"aria-hidden":!0}),n.stop]}):null]})]})]})}var lde=4e3;function T6(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=typeof t.sessionKey==`string`?t.sessionKey.trim():``,r=typeof t.runId==`string`?t.runId.trim():``;return n&&r?{sessionKey:n,runId:r}:null}function ude(e){let t=T6(e);if(!t||!e||typeof e!=`object`)return null;let n=e.status;return n!==`success`&&n!==`error`&&n!==`cancelled`&&n!==`suspended`?null:{...t,status:n}}async function dde(){let e=await ot(Y(`/api/session-runs`));if(!e.ok)throw Error(`Active session runs failed (${e.status})`);let t=await e.json();if(!Array.isArray(t.payload?.runs))throw Error(`Active session runs response is invalid`);return t.payload.runs.map(T6).filter(e=>!!e)}function E6(e){window.dispatchEvent(new CustomEvent(`session-transcript-updated`,{detail:{key:e}}))}function fde(){let e=!1,t,n,r=new Map,i=({sessionKey:e,runId:t})=>`${e}\u0000${t}`,a=({sessionKey:e,runId:t},n=!1)=>{r.has(i({sessionKey:e,runId:t}))||(YR(e)!==t&&XR(e,t),lz.setResumeRunId(e,t),eB(e),n&&window.dispatchEvent(new CustomEvent(`run-started`,{detail:{sessionKey:e,runId:t}})))},o=({sessionKey:e,runId:t})=>{let n=lz.reconcileInactive(e,t),r=$R(e,t);!n&&r&&Kz.getState().clearStreamingState(e),(n||r)&&(rB(e),E6(e))},s=({sessionKey:e,runId:t,status:n})=>{r.set(i({sessionKey:e,runId:t}),Date.now());let a=lz.reconcileTerminal(e,t,n),o=$R(e,t);if(!a&&o){Kz.getState().clearStreamingState(e);let t=Kz.getState().focusedSessionKey===e;n===`error`?nB(e,!t):n===`suspended`?iB(e):n===`success`?tB(e,!t):rB(e),E6(e)}},c=()=>{e||t!==void 0||ez().length===0||(t=window.setTimeout(()=>{t=void 0,l()},lde))},l=()=>{if(n)return n;let t=ez();return n=dde().then(n=>{if(e)return;let i=Date.now()-10*6e4;for(let[e,t]of r)t<i&&r.delete(e);let s=new Map(n.map(e=>[e.sessionKey,e.runId])),c=new Map(t.map(e=>[e.sessionKey,e.runId]));for(let e of n){let t=YR(e.sessionKey),n=c.get(e.sessionKey);t&&t!==n&&t!==e.runId||a(e,!0)}for(let e of t)s.get(e.sessionKey)!==e.runId&&o(e)}).catch(()=>{}).finally(()=>{n=void 0,c()}),n},u=e=>{let t=T6(e.detail);t&&(a(t),c())},d=e=>{let t=ude(e.detail);t&&s(t)},f=()=>void l();return window.addEventListener(`run-started`,u),window.addEventListener(`run-completed`,d),window.addEventListener(`agent-run-ended`,d),window.addEventListener(`gateway-realtime-connected`,f),l(),()=>{e=!0,t!==void 0&&window.clearTimeout(t),window.removeEventListener(`run-started`,u),window.removeEventListener(`run-completed`,d),window.removeEventListener(`agent-run-ended`,d),window.removeEventListener(`gateway-realtime-connected`,f)}}function pde(){let e=(0,Q.c)(4),t=ut(_de),n,r;e[0]===t?(n=e[1],r=e[2]):(n=()=>qF(t),r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r);let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],e[3]=i):i=e[3],(0,Z.useEffect)(mde,i)}function mde(){let e=gde,t=hde;return window.addEventListener(`online`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`online`,e),document.removeEventListener(`visibilitychange`,t)}}function hde(){document.visibilityState===`visible`&&XF()}function gde(){return XF()}function _de(e){return e.token}function D6(){let e=(0,Q.c)(5);pde();let{mutate:t}=pt(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],e[0]=n):n=e[0],(0,Z.useEffect)(xde,n);let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],e[1]=r):r=e[1],(0,Z.useEffect)(bde,r);let i,a;return e[2]===t?(i=e[3],a=e[4]):(i=()=>{let e=yde,n=e=>{let n=e.detail?.topic;(n===`gateway`||n===`sessions`)&&t(vde)};return window.addEventListener(`config-reload`,e),window.addEventListener(`realtime-gap`,n),()=>{window.removeEventListener(`config-reload`,e),window.removeEventListener(`realtime-gap`,n)}},a=[t],e[2]=t,e[3]=i,e[4]=a),(0,Z.useEffect)(i,a),null}function vde(){return!0}function yde(e){let t=bt(e.detail);t===`skills`?E3():t===`agents`&&T3()}function bde(){return fde()}function xde(){return iI()}var O6=`xopc.browser-notifications.v1`,k6={enabled:!1,completed:!0,failed:!0};function A6(){try{let e=JSON.parse(localStorage.getItem(O6)??`{}`);return{enabled:typeof e.enabled==`boolean`?e.enabled:k6.enabled,completed:typeof e.completed==`boolean`?e.completed:k6.completed,failed:typeof e.failed==`boolean`?e.failed:k6.failed}}catch{return{...k6}}}function Sde(e){let t={...A6(),...e};try{localStorage.setItem(O6,JSON.stringify(t))}catch{}return t}var j6=`xopc.notification-delivery.v1`,Cde=200;function M6(){try{let e=JSON.parse(localStorage.getItem(j6)??`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function N6(e){return M6().includes(e)}function P6(e){try{let t=[e,...M6().filter(t=>t!==e)].slice(0,Cde);localStorage.setItem(j6,JSON.stringify(t))}catch{}}function F6(e){return e.preferences.enabled?e.notification.status===`success`&&!e.preferences.completed||e.notification.status===`error`&&!e.preferences.failed?{notify:!1,reason:`status-disabled`}:e.permissionGranted?e.appFocused?{notify:!1,reason:`focused`}:e.alreadyDelivered?{notify:!1,reason:`duplicate`}:{notify:!0}:{notify:!1,reason:`permission`}:{notify:!1,reason:`disabled`}}function I6(){return!Wt()&&typeof Notification<`u`&&`serviceWorker`in navigator&&window.isSecureContext}async function L6(){let e=await navigator.serviceWorker.register(`/notification-sw.js`);return await navigator.serviceWorker.ready,e}async function wde(e){if(!I6()||!F6({notification:e,preferences:A6(),permissionGranted:Notification.permission===`granted`,appFocused:document.visibilityState===`visible`&&document.hasFocus(),alreadyDelivered:N6(e.id)}).notify)return!1;try{return await(await L6()).showNotification(e.title,{body:e.body,tag:e.id,icon:`/pwa-192x192.png`,data:{route:e.route}}),P6(e.id),!0}catch{return!1}}async function Tde(){if(!I6())return`unsupported`;let e=Notification.permission==="default"?await Notification.requestPermission():Notification.permission;return e===`granted`&&await L6(),e}async function Ede(e,t){if(!I6()||Notification.permission!==`granted`)return!1;try{return await(await L6()).showNotification(e,{body:t,tag:`xopc-notification-test`,icon:`/pwa-192x192.png`,data:{route:`/chat/new`}}),!0}catch{return!1}}async function Dde(e){let t=window.electronAPI?.system;if(!Wt()||!t?.showProductNotification)return!1;let n=await t.getBehavior().catch(()=>null);if(!n||!F6({notification:e,preferences:{enabled:n.notifyEnabled,completed:!0,failed:!0},permissionGranted:!0,appFocused:!1,alreadyDelivered:N6(e.id)}).notify)return!1;let r=await t.showProductNotification({id:e.id,title:e.title,body:e.body,target:e.target}).catch(()=>null);return r?.ok&&r.outcome===`shown`?(P6(e.id),!0):!1}var R6=`xopc.notifications.cursor.v1`,z6=`xopc.notifications.consumer.v1`;function B6(e){try{return window.localStorage.getItem(e)}catch{return null}}function V6(e,t){try{window.localStorage.setItem(e,t)}catch{}}function Ode(){return B6(R6)}function H6(e){V6(R6,e)}function kde(){let e=B6(z6);if(e)return e;let t=globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`;return V6(z6,t),t}async function Ade(){let e=[],t=Ode();for(let n=0;n<10;n+=1){let n=new URLSearchParams({since:String(Date.now()-5*6e4),limit:`100`});t&&n.set(`after`,t);let r=await ot(`/api/notifications?${n}`);if(!r.ok)break;let i=await r.json().catch(()=>null);if(!Array.isArray(i?.items))break;let a=i.items.flatMap(e=>{let t=FO.safeParse(e);return t.success?[t.data]:[]});if(e.push(...a),t=a.at(-1)?.id??t,i.items.length<100||a.length===0)break}return e}async function jde(e){await ot(`/api/notifications/${encodeURIComponent(e)}/ack`,{method:`POST`,body:JSON.stringify({consumerId:kde(),surface:Wt()?`electron`:`web`})}).catch(()=>null)}function Mde(e){let t=FO.safeParse(e);return t.success?t.data:null}function Nde(e,t){let n=IO(e,t),r=e.type===`chat.failed`||e.type===`task.blocked`||e.type===`task.failed`||e.type===`task.needs_input`||e.type===`automation.failed`,i=e.target.kind===`automation_run`?`automation`:e.target.kind===`insight`?`insight`:e.target.kind;return{id:e.id,title:n.localizedTitle,body:n.localizedBody??n.localizedTitle,route:LO(e.target,`web`),target:e.target,status:r?`error`:`success`,source:i}}function U6(){let e=(0,Q.c)(3),t=ct(Fde),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=!0,n=null,r=new Set,i=(e,n,i)=>{let a=n===void 0?!0:n,o=i===void 0?!0:i,s=Mde(e);if(!s)return;if(r.has(s.id)){o&&H6(s.id);return}r.add(s.id);let c=Nde(s,t);Tt({tone:c.status===`success`?`success`:`error`,title:c.title,message:c.body,source:c.source,href:c.route,dedupeKey:c.id}),a&&(Dde(c),wde(c)),o&&H6(s.id),jde(s.id)},a=()=>n||(n=Ade().then(t=>{if(e){let e=Date.now()-3e5;t.forEach(t=>i(t,t.createdAt>=e))}}).finally(()=>{n=null}),n),o=e=>{i(e.detail,!0,!1),a().then(()=>a())},s=()=>void a();window.addEventListener(`notification-created`,o),window.addEventListener(`realtime-gap`,s),a();let c=Pde;return navigator.serviceWorker?.addEventListener(`message`,c),()=>{e=!1,window.removeEventListener(`notification-created`,o),window.removeEventListener(`realtime-gap`,s),navigator.serviceWorker?.removeEventListener(`message`,c)}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function Pde(e){let t=e.data;t?.type!==`xopc:notification-click`||typeof t.route!=`string`||t.route.startsWith(`/`)&&!t.route.startsWith(`//`)&&(window.location.hash=t.route)}function Fde(e){return e.language}async function W6(e){let t=await J(Y(`/api/support/report`),{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)});return{report:t.report,investigationPrompt:t.investigationPrompt}}function Ide(e){let t=new Date(e.capturedAt).toISOString().replace(/[:.]/g,`-`),n=new Blob([JSON.stringify(e,null,2)],{type:`application/json`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`xopc-diagnostics-${t}.json`,i.click(),URL.revokeObjectURL(r)}function G6(e,t){let n=6e3,r=e.markdown.length<=n?e.markdown:`${e.markdown.slice(0,n)}\n\n---\n${t}`;return`https://github.com/xopcai/xopc/issues/new?${new URLSearchParams({title:e.title,body:r}).toString()}`}async function K6(e){let t=window.electronAPI?.shell?.openExternalUrl;if(t)try{return(await t(e)).ok}catch{return!1}return window.open(e,`_blank`,`noopener,noreferrer`)!==null}function Lde(e){let t=new TextEncoder().encode(e),n=``,r=32768;for(let e=0;e<t.length;e+=r)n+=String.fromCharCode(...t.subarray(e,e+r));return{type:`file`,mimeType:`text/markdown`,data:btoa(n),name:`xopc-diagnostics.md`,size:t.byteLength}}async function Rde(e,t,n={}){let r=n.fetch??J,i=n.getTurnClaim??dI,a=n.randomUUID??(()=>crypto.randomUUID()),o=(await r(Y(`/api/sessions`),{method:`POST`,body:JSON.stringify({channel:`webchat`,agentId:`main`})})).session.key.trim();if(!o)throw Error(`Session create did not return a session key`);await r(Y(`/api/sessions/${encodeURIComponent(o)}`),{method:`PATCH`,body:JSON.stringify({name:e.title,tags:[`support`],replaceTags:!0,customData:{genericNewChatShell:!0,kind:`support-investigation`,supportReportCapturedAt:e.capturedAt}})}).catch(()=>void 0);let s=await i();return await r(Y(`/api/sessions/${encodeURIComponent(o)}/inputs`),{method:`POST`,body:JSON.stringify({clientMessageId:a(),delivery:`next`,content:t,attachments:[Lde(e.markdown)],origin:s})}),o}function zde({open:e,onOpenChange:t,seed:n}){let r=rt(ct(e=>e.language)).supportReport,i=(0,Z.useRef)(null),[a,o]=(0,Z.useState)(``),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(``),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(null);(0,Z.useEffect)(()=>{e&&(o(n?.problem??``),c(n?.reproduction??``),u(n?.expected??``),f(null),m(``),g(!1),v(!1),b(null),S(null))},[e,n]);async function C(){let e=a.trim();if(!e){b(r.problemRequired);return}g(!0),b(null),S(null);try{let t=await W6({...n,problem:e,reproduction:s.trim()||void 0,expected:l.trim()||void 0,occurredAt:n?.occurredAt??new Date().toISOString(),clientContext:{currentPage:window.location.href,surface:window.electronAPI?`electron`:`web`,userAgent:navigator.userAgent,...n?.clientContext}});f(t.report),m(t.investigationPrompt)}catch(e){b(e instanceof Error?e.message:r.collectFailed)}finally{g(!1)}}async function w(){if(!d)return!1;let e=await tt(d.markdown);return S(e?r.copied:r.copyFailed),e||(i.current?.focus(),i.current?.select()),e}async function T(){d&&(d.markdown.length>6e3&&await w(),await K6(G6(d,r.githubTruncated))||b(r.openFailed))}async function E(){if(!(!d||!p)){v(!0),b(null);try{let e=await Rde(d,p);t(!1),window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{sessionKey:e}}))}catch(e){b(e instanceof Error?e.message:r.sessionFailed)}finally{v(!1)}}}return(0,$.jsx)(ne,{open:e,onOpenChange:t,children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[220] bg-scrim`}),(0,$.jsxs)(ee,{className:X(`xopc-dialog-content fixed left-1/2 top-1/2 z-[221] flex h-[min(42rem,calc(100vh-2rem))] w-[min(42rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden`,`rounded-2xl border border-edge bg-surface-panel shadow-popover dark:border-edge`),children:[(0,$.jsxs)(`header`,{className:`flex shrink-0 items-start justify-between gap-4 border-b border-edge px-5 py-4`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:r.title}),(0,$.jsx)(B,{className:`mt-1 text-sm text-fg-muted`,children:r.subtitle})]}),(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,"aria-label":r.close,children:(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0})})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:[h?(0,$.jsxs)(`div`,{className:`space-y-4`,"aria-label":r.collecting,children:[(0,$.jsx)(Ft,{className:`h-20 w-full`}),(0,$.jsx)(Ft,{className:`h-24 w-full`}),(0,$.jsx)(Ft,{className:`h-32 w-full`})]}):d?(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl bg-accent-soft px-3 py-2.5 text-sm text-accent-fg`,children:[(0,$.jsx)(Yv,{className:`mt-0.5 size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`font-medium`,children:r.ready}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs leading-5`,children:r.readyDetail.replace(`{{checks}}`,String(d.doctor.length)).replace(`{{logs}}`,String(d.logs.length)).replace(`{{redactions}}`,String(d.redaction.replacements))})]})]}),(0,$.jsxs)(`label`,{className:`block`,htmlFor:`support-report-preview`,children:[(0,$.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-fg-muted`,children:r.preview}),(0,$.jsx)(`textarea`,{ref:i,id:`support-report-preview`,value:d.markdown,readOnly:!0,className:`h-96 w-full resize-none rounded-xl border border-edge bg-surface-base p-3 font-mono text-xs leading-5 text-fg outline-none focus:border-accent`})]}),(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(Wy,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`,"aria-hidden":!0}),r.investigationHint]})]}):(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`label`,{className:`block`,htmlFor:`support-problem`,children:[(0,$.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-fg-muted`,children:r.problem}),(0,$.jsx)(`textarea`,{id:`support-problem`,value:a,onChange:e=>o(e.target.value),placeholder:r.problemPlaceholder,className:`min-h-28 w-full resize-y rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none placeholder:text-fg-subtle focus:border-accent`,autoFocus:!0})]}),(0,$.jsxs)(`label`,{className:`block`,htmlFor:`support-reproduction`,children:[(0,$.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-fg-muted`,children:r.reproduction}),(0,$.jsx)(`textarea`,{id:`support-reproduction`,value:s,onChange:e=>c(e.target.value),placeholder:r.reproductionPlaceholder,className:`min-h-20 w-full resize-y rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none placeholder:text-fg-subtle focus:border-accent`})]}),(0,$.jsxs)(`label`,{className:`block`,htmlFor:`support-expected`,children:[(0,$.jsx)(`span`,{className:`mb-1.5 block text-xs font-medium text-fg-muted`,children:r.expected}),(0,$.jsx)(`textarea`,{id:`support-expected`,value:l,onChange:e=>u(e.target.value),placeholder:r.expectedPlaceholder,className:`min-h-20 w-full resize-y rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm text-fg outline-none placeholder:text-fg-subtle focus:border-accent`})]}),(0,$.jsxs)(`p`,{className:`flex items-start gap-2 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(Yv,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`,"aria-hidden":!0}),r.privacy]})]}),y?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-warning`,role:`alert`,children:y}):null,x?(0,$.jsxs)(`p`,{className:`mt-4 flex items-center gap-2 text-sm text-accent-fg`,role:`status`,children:[(0,$.jsx)(W,{className:`size-4`,"aria-hidden":!0}),x]}):null]}),(0,$.jsx)(`footer`,{className:`flex shrink-0 flex-wrap justify-end gap-2 border-t border-edge px-5 py-3`,children:d?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(vt,{variant:`ghost`,disabled:_,onClick:()=>{f(null),m(``)},children:r.back}),(0,$.jsxs)(vt,{onClick:()=>void w(),children:[(0,$.jsx)(Ec,{className:`size-4`,"aria-hidden":!0}),r.copy]}),(0,$.jsxs)(vt,{onClick:()=>Ide(d),children:[(0,$.jsx)(he,{className:`size-4`,"aria-hidden":!0}),r.download]}),(0,$.jsxs)(vt,{onClick:()=>void T(),children:[(0,$.jsx)(ge,{className:`size-4`,"aria-hidden":!0}),r.submit]}),(0,$.jsxs)(vt,{variant:`primary`,disabled:_,onClick:()=>void E(),children:[_?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(Wy,{className:`size-4`,"aria-hidden":!0}),_?r.startingInvestigation:r.startInvestigation]})]}):(0,$.jsxs)(vt,{variant:`primary`,disabled:h,onClick:()=>void C(),children:[h?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,h?r.collecting:r.collect]})})]})]})})}function Bde(e){if(!e.startsWith(`/chat/`)||e.startsWith(`/chat/task/`))return;let t=e.slice(6);if(!(!t||t===`new`))try{return decodeURIComponent(t)}catch{return}}function Vde(){let e=(0,Q.c)(6),{pathname:t}=l(),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(),o,s;e[0]===t?(o=e[1],s=e[2]):(o=()=>{let e=e=>{let n=e.detail??{};a({sessionKey:Bde(t),...n}),r(!0)};return window.addEventListener(BN,e),()=>window.removeEventListener(BN,e)},s=[t],e[0]=t,e[1]=o,e[2]=s),(0,Z.useEffect)(o,s);let c;return e[3]!==n||e[4]!==i?(c=(0,$.jsx)(zde,{open:n,onOpenChange:r,seed:i}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}var Hde=new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),Ude=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function Wde(e,t){return(t===`zh`?Hde:Ude).format(new Date(e))}function q6({filePath:e,onClose:t,targetLine:n,projectId:r,sessionKey:i,agentId:a}){let o=ct(e=>e.language),s=rt(o),c=Et(e=>e.resolved),l=YH({filePath:e,projectId:r,sessionKey:i,agentId:a}),{dialogOpen:u,loading:d,result:f,error:p,pendingParams:m,createShareLink:h,confirmShareLink:g,handleOpenChange:_}=jU(),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),{expanded:S,setExpanded:C}=iG(!!e,u),w=e?MH(e):``,T=e?NH(e):``,E=w===`.md`,D=w===`.html`||w===`.htm`,O=(0,Z.useCallback)(async()=>{if(e){if(await tt(e)){y(!0),fA(`success`,s.workspace.pathCopied,void 0,{duration:2500}),window.setTimeout(()=>y(!1),2e3);return}fA(`warning`,s.clipboard.copyFailed,void 0,{duration:4e3})}},[e,s.clipboard.copyFailed,s.workspace.pathCopied]),k=(0,Z.useCallback)(()=>{l.fileResourceId&&h({fileId:l.fileResourceId,fileName:T})},[h,T,l.fileResourceId]),A=(0,Z.useCallback)(async()=>{await MU(()=>l.onOpenWithSystemApp(),s.chat.attachmentPreviewOpenLocalFailed)},[s.chat.attachmentPreviewOpenLocalFailed,l.onOpenWithSystemApp]),j=(0,Z.useCallback)(async()=>{await MU(()=>l.onChooseOpenWithApp(),s.workspace.openFileFailed)},[s.workspace.openFileFailed,l.onChooseOpenWithApp]),M=(0,Z.useCallback)(async e=>{await MU(()=>l.onOpenWithRecentApp(e),s.workspace.openFileFailed)},[s.workspace.openFileFailed,l.onOpenWithRecentApp]),N=(0,Z.useCallback)(async()=>{await MU(()=>l.onRevealInFolder(),s.workspace.revealFileFailed)},[s.workspace.revealFileFailed,l.onRevealInFolder]),P=(0,Z.useCallback)(()=>{C(!1),t()},[t]),F=!!(e&&!l.loading&&!l.loadError),I={onDownload:()=>void l.onDownload(),canDownload:l.canDownload,onOpenWithSystemApp:()=>void A(),canOpenWithSystemApp:l.canOpenWithSystemApp,onChooseOpenWithApp:()=>void l.onChooseOpenWithApp(),canChooseOpenWithApp:l.canChooseOpenWithApp};if(!e)return null;let L=(0,$.jsx)(`div`,{className:X(`flex h-full min-h-0 flex-col bg-surface-panel`,S&&`fixed inset-0 z-[65] h-[100dvh] w-screen`),children:(0,$.jsx)(rG,{header:{subtitle:(0,$.jsxs)($.Fragment,{children:[!l.loading&&l.mtimeMs!=null?(0,$.jsxs)(`p`,{suppressHydrationWarning:!0,className:`min-w-0 truncate`,title:new Date(l.mtimeMs).toISOString(),children:[s.workspace.lastModified,`: `,Wde(l.mtimeMs,o),n?` · Line ${n}`:``]}):null,l.loading?(0,$.jsx)(Ft,{className:`h-3.5 w-32`}):null,(E||D&&l.htmlCodeMode)&&l.saveStatus!==`idle`?(0,$.jsx)(`span`,{className:X(`shrink-0`,l.saveStatus===`error`&&`text-red-600 dark:text-red-400`),children:l.saveStatus===`saving`?s.workspace.saving:l.saveStatus===`error`?s.workspace.saveFailed:s.workspace.saved}):null]}),expanded:S,onToggleExpanded:F?()=>C(e=>!e):void 0,onClose:P,edit:E?{active:l.markdownEditMode,onToggle:()=>l.setMarkdownEditMode(e=>!e)}:D?{active:l.htmlCodeMode,onToggle:()=>l.setHtmlCodeMode(e=>!e)}:void 0,wordWrap:E&&l.markdownEditMode?{active:b,onToggle:()=>x(e=>!e)}:void 0,share:{onClick:k,loading:d,disabled:!l.fileResourceId||l.loading||!!l.loadError},openWithSystemApp:l.canOpenWithSystemApp?{onClick:()=>void A()}:void 0,chooseApp:l.canChooseOpenWithApp?{onClick:()=>void j()}:void 0,recommendedApps:l.recommendedOpenWithApps,recentApps:l.recentOpenWithApps,onOpenWithApp:e=>void M(e),onRevealInFolder:l.canRevealInFolder?()=>void N():void 0,copyPath:{copied:v,onClick:()=>void O()}},chat:{createFile:l.createAttachmentFile,projectId:r,sessionKey:i,agentId:a,disabled:l.saveStatus===`saving`},language:o,resolvedTheme:c,descriptor:l.descriptor,loading:l.loading,loadError:l.loadError,textContent:l.textContent,binaryBuffer:l.binaryBuffer,fileResourceId:l.fileResourceId,mtimeMs:l.mtimeMs,targetLine:n,extractedText:l.extractedText,extractedTextTruncated:l.extractedTextTruncated,workspaceEditing:{markdownEditMode:l.markdownEditMode,onSaveMarkdown:l.onSaveMarkdown,markdownWordWrap:b,onToggleMarkdownWordWrap:()=>x(e=>!e),htmlCodeMode:l.htmlCodeMode,onHtmlChange:l.onHtmlChange,isDark:c===`dark`},actions:I})});return(0,$.jsxs)($.Fragment,{children:[S?(0,en.createPortal)(L,document.body):L,(0,$.jsx)(hU,{open:u,onOpenChange:_,loading:d,error:p,result:f,pendingParams:m,onConfirm:e=>void g(e)})]})}var J6=(0,Z.memo)(function(e){let t=(0,Q.c)(34),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{allowOutsideChat:r,sessionKey:i}=n,a=r===void 0?!1:r,{pathname:o,search:s}=l(),{sessionKey:c}=u(),d=YU(Gde),f=XU(Kde),p;t[2]!==o||t[3]!==f||t[4]!==i||t[5]!==c||t[6]!==d?(p=f??i??d??(o.startsWith(`/chat`)&&c&&c!==`new`?decodeURIComponent(c):void 0),t[2]=o,t[3]=f,t[4]=i,t[5]=c,t[6]=d,t[7]=p):p=t[7];let m=p,h=XU(qde),g=XU(Jde),_=XU(Yde),v;t[8]!==m||t[9]!==o||t[10]!==_||t[11]!==s?(v=_??(!m&&o.startsWith(`/chat`)?new URLSearchParams(s).get(`projectId`):null),t[8]=m,t[9]=o,t[10]=_,t[11]=s,t[12]=v):v=t[12];let y=v,b=XU(Xde),x=VU(Zde),S,C;t[13]!==a||t[14]!==o||t[15]!==b||t[16]!==d?(S=()=>{!a&&!d&&!o.startsWith(`/chat`)&&b(null)},C=[a,o,b,d],t[13]=a,t[14]=o,t[15]=b,t[16]=d,t[17]=S,t[18]=C):(S=t[17],C=t[18]),(0,Z.useEffect)(S,C);let w,T;if(t[19]!==h||t[20]!==b?(w=()=>{if(!h)return;let e=e=>{e.key!==`Escape`||e.defaultPrevented||(b(null),e.stopPropagation())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},T=[h,b],t[19]=h,t[20]=b,t[21]=w,t[22]=T):(w=t[21],T=t[22]),(0,Z.useEffect)(w,T),!h)return null;let E=y??void 0,D;t[23]===x?D=t[24]:(D=x.trim()||void 0,t[23]=x,t[24]=D);let O;t[25]===b?O=t[26]:(O=()=>b(null),t[25]=b,t[26]=O);let k;return t[27]!==m||t[28]!==g||t[29]!==h||t[30]!==D||t[31]!==O||t[32]!==E?(k=(0,$.jsx)(`div`,{role:`region`,"aria-label":`File preview`,className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden border border-edge bg-surface-panel dark:border-edge`,children:(0,$.jsx)(q6,{filePath:h,targetLine:g,projectId:E,sessionKey:m,agentId:D,onClose:O})}),t[27]=m,t[28]=g,t[29]=h,t[30]=D,t[31]=O,t[32]=E,t[33]=k):k=t[33],k});function Gde(e){return e.sessionKeyOverride}function Kde(e){return e.sessionKey}function qde(e){return e.path}function Jde(e){return e.line}function Yde(e){return e.projectId}function Xde(e){return e.setPath}function Zde(e){return e.agentId}function Qde(e,t,n,r=12){let i=Math.max(r,n.width-t.width-r),a=Math.max(r,n.height-t.height-r);return{x:Math.min(i,Math.max(r,e.x)),y:Math.min(a,Math.max(r,e.y))}}function Y6(e){return!Number.isFinite(e)||e<0?`0:00`:`${Math.floor(e/60)}:${String(Math.floor(e%60)).padStart(2,`0`)}`}function $de(){let e=(0,Q.c)(26),t=ct(tfe),n=uQ(),r=t===`zh`,i=n.source&&n.status!==`idle`,a=n.duration>0?Math.min(100,n.currentTime/n.duration*100):0,o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[.75,1,1.25,1.5,2],e[0]=o):o=e[0];let s=o,c=s[(s.indexOf(n.rate)+1)%s.length]??1,l=(0,Z.useRef)(null),u=(0,Z.useRef)(null),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!1),h=efe,g;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{if(e.button!==0||!(e.target instanceof Element)||e.target.closest(`button, a, input, select, textarea, [role="button"]`))return;let t=l.current;if(!t)return;let n=t.getBoundingClientRect();u.current={pointerId:e.pointerId,offsetX:e.clientX-n.left,offsetY:e.clientY-n.top,width:n.width,height:n.height},f(h({x:n.left,y:n.top},n.width,n.height)),m(!0),t.setPointerCapture(e.pointerId),e.preventDefault()},e[1]=g):g=e[1];let _=g,v;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{let t=u.current;!t||t.pointerId!==e.pointerId||f(h({x:e.clientX-t.offsetX,y:e.clientY-t.offsetY},t.width,t.height))},e[2]=v):v=e[2];let y=v,b;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{let t=u.current;!t||t.pointerId!==e.pointerId||(u.current=null,m(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},e[3]=b):b=e[3];let x=b,S,C;e[4]===i?(S=e[5],C=e[6]):(S=()=>{if(!i)return;let e=()=>{let e=l.current?.getBoundingClientRect();e&&f(t=>t&&h(t,e.width,e.height))};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},C=[h,i],e[4]=i,e[5]=S,e[6]=C),(0,Z.useEffect)(S,C);let w;e[7]!==p||e[8]!==c||e[9]!==d||e[10]!==a||e[11]!==n||e[12]!==i||e[13]!==r?(w=i?(0,$.jsx)(`div`,{className:`pointer-events-none fixed inset-0 z-50`,children:(0,$.jsxs)(`div`,{ref:l,className:X(`pointer-events-auto isolate absolute flex w-[min(20rem,calc(100%-1.5rem))] touch-none items-center gap-2 rounded-xl border border-edge-strong bg-surface-panel p-2.5 shadow-popover`,!d&&`bottom-3 left-1/2 -translate-x-1/2 sm:bottom-5`,p?`cursor-grabbing select-none`:`cursor-grab`),style:d?{left:d.x,top:d.y}:void 0,onPointerDown:_,onPointerMove:y,onPointerUp:x,onPointerCancel:x,children:[(0,$.jsx)(`div`,{className:`flex shrink-0 items-center self-stretch text-fg-subtle`,title:r?`拖动可移动播放器`:`Drag to move the player`,children:(0,$.jsx)(Gm,{className:`size-4`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,onClick:n.status===`playing`?n.pause:n.resume,disabled:n.status===`preparing`,className:`inline-flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition-transform active:scale-95 disabled:opacity-70`,"aria-label":n.status===`playing`?r?`暂停朗读`:`Pause reading`:r?`继续朗读`:`Resume reading`,children:n.status===`preparing`?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):n.status===`playing`?(0,$.jsx)(_v,{className:`size-4`,"aria-hidden":!0}):(0,$.jsx)(Ev,{className:`ml-0.5 size-4`,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(eT,{className:`size-3.5 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate text-xs font-medium text-fg`,children:n.source?.title}),(0,$.jsxs)(`span`,{className:`shrink-0 text-[10px] text-fg-subtle`,children:[n.currentChunkIndex+1,`/`,n.chunkCount]})]}),(0,$.jsx)(`div`,{className:`mt-1.5 h-1 overflow-hidden rounded-full bg-surface-active`,children:(0,$.jsx)(`div`,{className:X(`h-full rounded-full bg-accent transition-[width] duration-200`,n.status===`preparing`&&`animate-pulse`),style:{width:`${a}%`}})}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between text-[10px] tabular-nums text-fg-subtle`,children:[(0,$.jsx)(`span`,{children:n.error??`${Y6(n.currentTime)} / ${n.duration?Y6(n.duration):`—`}`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>n.setRate(c),className:`rounded px-1 py-0.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":r?`切换播放速度`:`Change playback speed`,children:[n.rate,`×`]})]})]}),(0,$.jsx)(`button`,{type:`button`,onClick:n.stop,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":r?`停止朗读`:`Stop reading`,children:(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0})})]})}):null,e[7]=p,e[8]=c,e[9]=d,e[10]=a,e[11]=n,e[12]=i,e[13]=r,e[14]=w):w=e[14];let T=r?`使用在线朗读`:`Use online read aloud`,E=r?`朗读默认使用 Microsoft Edge 在线语音服务,待朗读文本会发送至 Microsoft 进行语音合成。`:`Read aloud uses Microsoft Edge online speech by default. The text will be sent to Microsoft for speech synthesis.`,D=r?`同意并朗读`:`Agree and read`,O=r?`取消`:`Cancel`,k;e[15]!==n.acceptConsent||e[16]!==n.consentRequired||e[17]!==n.declineConsent||e[18]!==O||e[19]!==T||e[20]!==E||e[21]!==D?(k=(0,$.jsx)(UV,{open:n.consentRequired,title:T,description:E,confirmLabel:D,cancelLabel:O,onConfirm:n.acceptConsent,onCancel:n.declineConsent}),e[15]=n.acceptConsent,e[16]=n.consentRequired,e[17]=n.declineConsent,e[18]=O,e[19]=T,e[20]=E,e[21]=D,e[22]=k):k=e[22];let A;return e[23]!==k||e[24]!==w?(A=(0,$.jsxs)($.Fragment,{children:[w,k]}),e[23]=k,e[24]=w,e[25]=A):A=e[25],A}function efe(e,t,n){return Qde(e,{width:t,height:n},{width:window.innerWidth,height:window.innerHeight})}function tfe(e){return e.language}function nfe(){let e=(0,Q.c)(11),t=p(),n=ut(ife),r=o6(rfe),i=(0,Z.useRef)(!1),a=(0,Z.useRef)(!1),o,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{let e=e=>{i.current=!!e.detail?.active};return window.addEventListener(J3,e),()=>window.removeEventListener(J3,e)},s=[],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Z.useEffect)(o,s);let c,l;e[2]!==t||e[3]!==n?(c=()=>{let e=window.electronAPI?.voiceInputHotkey;if(typeof e?.onEvent!=`function`)return;let r=e.onEvent(e=>{if(e===`press`){if(i.current||!n)return;a.current=!0}else{if(!a.current)return;a.current=!1}X3(`xopc-voice-input-toggle`,document.querySelector(`[data-voice-input-scope="note"]`)?`note`:`chat`)||(e===`press`?(Z3(),t(`/chat`)):xue())});return()=>{a.current=!1,r()}},l=[t,n],e[2]=t,e[3]=n,e[4]=c,e[5]=l):(c=e[4],l=e[5]),(0,Z.useEffect)(c,l);let u,d;return e[6]!==t||e[7]!==r||e[8]!==n?(u=()=>{let e=e=>{if(i.current||e.repeat||e.isComposing)return;let a=document.querySelector(`[data-voice-input-scope="note"]`)?`note`:`chat`;if(e.key===`Escape`){X3(`xopc-voice-input-cancel`,a)&&(e.preventDefault(),e.stopPropagation());return}i6(e,r)&&(e.preventDefault(),e.stopPropagation(),n&&(X3(`xopc-voice-input-toggle`,a)||(Z3(),t(`/chat`))))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},d=[t,r,n],e[6]=t,e[7]=r,e[8]=n,e[9]=u,e[10]=d):(u=e[9],d=e[10]),(0,Z.useEffect)(u,d),null}function rfe(e){return e.shortcut}function ife(e){return e.token}var X6=`inline-flex items-center gap-px rounded-pill border border-edge bg-surface-hover p-1 dark:border-edge`,Z6=`inline-flex shrink-0 items-center justify-center rounded-pill text-xs font-medium leading-none transition-[color,background-color,box-shadow] duration-150 ease-out text-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel active:scale-100`,Q6=`bg-surface-panel shadow-sm dark:bg-surface-panel dark:shadow-sm dark:ring-1 dark:ring-edge-strong/40`,afe=[{value:`en`,label:`EN`},{value:`zh`,label:`中文`}];function ofe(e){let t=(0,Q.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=afe.map(e=>{let t=e.value===n;return(0,$.jsx)(`button`,{type:`button`,"aria-pressed":t,className:X(Z6,`h-9 min-w-11 px-2`,t?X(Q6,`text-fg`):`text-fg-subtle hover:text-fg`),onClick:()=>r(e.value),children:e.label},e.value)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,$.jsx)(`div`,{className:X6,role:`group`,"aria-label":`Language / 语言`,children:i}),t[3]=i,t[4]=a),a}var sfe=new Set([`anthropic`,`deepseek`,`google`,`kimi-coding`,`minimax`,`openai`,`xopc-cloud`]);function cfe(e){return sfe.has(e)}function $6(e){let t=(0,Q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=X(`shrink-0`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,$.jsx)(`svg`,{viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function lfe(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#5786FE`,d:`M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)($6,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function ufe(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#E73562`,d:`M11.43 3.92a.86.86 0 1 0-1.718 0v14.236a1.999 1.999 0 0 1-3.997 0V9.022a.86.86 0 1 0-1.718 0v3.87a1.999 1.999 0 0 1-3.997 0V11.49a.57.57 0 0 1 1.139 0v1.404a.86.86 0 0 0 1.719 0V9.022a1.999 1.999 0 0 1 3.997 0v9.134a.86.86 0 0 0 1.719 0V3.92a1.998 1.998 0 1 1 3.996 0v11.788a.57.57 0 1 1-1.139 0zm10.572 3.105a2 2 0 0 0-1.999 1.997v7.63a.86.86 0 0 1-1.718 0V3.923a1.999 1.999 0 0 0-3.997 0v16.16a.86.86 0 0 1-1.719 0V18.08a.57.57 0 1 0-1.138 0v2a1.998 1.998 0 0 0 3.996 0V3.92a.86.86 0 0 1 1.719 0v12.73a1.999 1.999 0 0 0 3.996 0V9.023a.86.86 0 1 1 1.72 0v6.686a.57.57 0 0 0 1.138 0V9.022a2 2 0 0 0-1.998-1.997`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)($6,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function e8(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`m1.053 16.91 9.538 2.55a21 20.981 0 0 0 .06 2.031l5.956 1.592a12 11.99 0 0 1-15.554-6.172m-1.02-5.79 11.352 3.035a21 20.981 0 0 0-.469 2.01l10.817 2.89a12 11.99 0 0 1-1.845 2.004L.658 15.918a12 11.99 0 0 1-.625-4.796m1.593-5.146L13.573 9.17a21 20.981 0 0 0-1.01 1.874l11.297 3.02a21 20.981 0 0 1-.67 2.362l-11.55-3.087L.125 10.26a12 11.99 0 0 1 1.499-4.285ZM6.067 1.58l11.285 3.016a21 20.981 0 0 0-1.688 1.719l7.824 2.091a21 20.981 0 0 1 .513 2.664L2.107 5.218a12 11.99 0 0 1 3.96-3.638M21.68 4.866 7.222 1.003A12 11.99 0 0 1 21.68 4.866`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)($6,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function dfe(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`currentColor`,d:`M22.28 9.82a5.98 5.98 0 0 0-.516-4.91 6.04 6.04 0 0 0-6.51-2.9A6.06 6.06 0 0 0 4.98 4.18a5.98 5.98 0 0 0-3.99 2.9 6.04 6.04 0 0 0 .743 7.09 5.98 5.98 0 0 0 .511 4.91 6.05 6.05 0 0 0 6.51 2.9A5.98 5.98 0 0 0 13.26 24a6.05 6.05 0 0 0 5.77-4.20 5.98 5.98 0 0 0 3.99-2.9 6.05 6.05 0 0 0-.748-7.07zm-9.02 12.60a4.47 4.47 0 0 1-2.87-1.04l.142-.08 4.77-2.75a.795.79 0 0 0 .393-.681v-6.73l2.02 1.16a.071.07 0 0 1 .038.05v5.58a4.50 4.50 0 0 1-4.49 4.49zm-9.66-4.12a4.47 4.47 0 0 1-.535-3.01l.142.08 4.78 2.75a.771.77 0 0 0 .781 0l5.84-3.36v2.33a.08.08 0 0 1-.033.06L9.74 19.95a4.49 4.49 0 0 1-6.14-1.64zM2.34 7.89a4.48 4.48 0 0 1 2.36-1.97V11.6a.766.76 0 0 0 .388.67l5.81 3.35-2.02 1.16a.076.07 0 0 1-.071 0l-4.83-2.78A4.50 4.50 0 0 1 2.34 7.87zm16.59 3.85L13.10 8.36 15.11 7.2a.076.07 0 0 1 .071 0l4.83 2.79a4.49 4.49 0 0 1-.677 8.10v-5.67a.79.79 0 0 0-.407-.667zm2.01-3.02-.142-.085-4.77-2.78a.776.77 0 0 0-.785 0L9.40 9.23V6.89a.066.06 0 0 1 .028-.062l4.83-2.78a4.49 4.49 0 0 1 6.68 4.66zM8.30 12.86l-2.02-1.16a.08.08 0 0 1-.038-.057V6.07a4.49 4.49 0 0 1 7.37-3.45l-.142.08L8.70 5.45a.795.79 0 0 0-.393.68zm1.09-2.36 2.60-1.5 2.60 1.5v2.99l-2.59 1.5-2.60-1.5Z`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)($6,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function ffe(e){let t=(0,Q.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`path`,{fill:`#D4A27F`,d:`M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z`}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,$.jsx)($6,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function pfe(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`defs`,{children:(0,$.jsxs)(`linearGradient`,{id:`gemini-grad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,$.jsx)(`stop`,{offset:`0%`,stopColor:`#4285F4`}),(0,$.jsx)(`stop`,{offset:`50%`,stopColor:`#9B72CB`}),(0,$.jsx)(`stop`,{offset:`100%`,stopColor:`#D96570`})]})}),a=(0,$.jsx)(`path`,{fill:`url(#gemini-grad)`,d:`M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81`}),t[3]=i,t[4]=a):(i=t[3],a=t[4]);let o;return t[5]!==n||t[6]!==r?(o=(0,$.jsxs)($6,{className:n,...r,children:[i,a]}),t[5]=n,t[6]=r,t[7]=o):o=t[7],o}function t8(e){let t=(0,Q.c)(22),{providerId:n,className:r}=e,i;t[0]===r?i=t[1]:(i={className:r,"aria-hidden":!0},t[0]=r,t[1]=i);let a=i;switch(n){case`xopc-cloud`:{let e;return t[2]===r?e=t[3]:(e=(0,$.jsx)(hj,{className:r,"aria-hidden":!0}),t[2]=r,t[3]=e),e}case`deepseek`:{let e;return t[4]===a?e=t[5]:(e=(0,$.jsx)(lfe,{...a}),t[4]=a,t[5]=e),e}case`minimax`:{let e;return t[6]===a?e=t[7]:(e=(0,$.jsx)(ufe,{...a}),t[6]=a,t[7]=e),e}case`kimi-coding`:{let e;return t[8]===a?e=t[9]:(e=(0,$.jsx)(e8,{...a}),t[8]=a,t[9]=e),e}case`moonshotai`:case`moonshotai-cn`:{let e;return t[10]===a?e=t[11]:(e=(0,$.jsx)(e8,{...a}),t[10]=a,t[11]=e),e}case`openai`:{let e;return t[12]===a?e=t[13]:(e=(0,$.jsx)(dfe,{...a}),t[12]=a,t[13]=e),e}case`anthropic`:{let e;return t[14]===a?e=t[15]:(e=(0,$.jsx)(ffe,{...a}),t[14]=a,t[15]=e),e}case`google`:{let e;return t[16]===a?e=t[17]:(e=(0,$.jsx)(pfe,{...a}),t[16]=a,t[17]=e),e}default:{let e;t[18]===r?e=t[19]:(e=X(`flex items-center justify-center text-2xl`,r),t[18]=r,t[19]=e);let n;return t[20]===e?n=t[21]:(n=(0,$.jsx)(`span`,{className:e,children:`🤖`}),t[20]=e,t[21]=n),n}}}var n8=`models-json-config`,r8=`model-catalog`,i8=`capability-readiness`;async function a8(){await Promise.all([xt(),gt(Y(`/api/providers/meta`)),gt(n8),gt(r8),gt(i8),Qt()])}function mfe(e){return Cj(e)}async function o8(){return(await J(Y(`/api/providers/meta`))).payload?.providers??[]}function hfe(e){if(!e||typeof e!=`object`||!(`providers`in e))return{};let t=e.providers;if(!t||typeof t!=`object`||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&(n[e]=r);return n}function gfe(e,t,n){let r=new Set(n.map(e=>e.provider));return e.map(e=>({...e,configured:e.configured||r.has(e.id),apiKey:t[e.id]??(e.activeKeySource===`extension`?``:e.configured||r.has(e.id)?`••••••••••••`:``)}))}async function s8(e){await J(Y(`/api/config`),{method:`PATCH`,body:JSON.stringify({providers:e})}),await a8()}async function _fe(e){await J(Y(`/api/providers/${encodeURIComponent(e)}/key`),{method:`DELETE`}),await a8()}async function vfe(e){let t=await J(Y(`/api/providers/${encodeURIComponent(e)}/reveal-api-key`),{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`});if(!t.ok||!t.payload)throw Error(t.error?.message??`Reveal failed`);return t.payload}var c8={id:`xopc-cloud`,name:`XOPC Cloud`,category:`common`,supportsOAuth:!0,supportsApiKey:!1,configured:!1,onboardingFeatured:!0,hint:`Connect your XOPC account. No API key required.`},l8=[{id:`deepseek`,name:`DeepSeek`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`openai`,name:`OpenAI`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`anthropic`,name:`Anthropic`,category:`common`,supportsOAuth:!0,supportsApiKey:!0,configured:!1,onboardingFeatured:!0},{id:`google`,name:`Google AI`,category:`common`,supportsOAuth:!1,supportsApiKey:!0,configured:!1,onboardingFeatured:!0}],u8=new Map([c8,...l8].map((e,t)=>[e.id,t]));function yfe(e,t){let n=e?.filter(e=>e.onboardingFeatured&&cfe(e.id)),r=n?.length?n:l8;return(t?[e?.find(e=>e.id===`xopc-cloud`)??c8,...r.filter(e=>e.id!==`google`&&e.id!==`xopc-cloud`)]:r).slice().sort((e,t)=>(u8.get(e.id)??999)-(u8.get(t.id)??999)).slice(0,5)}function bfe(e){let t=e.recommendedModels?.map(e=>e.name||e.id).filter(Boolean).slice(0,2);return t?.length?t.join(`, `):e.hint}function xfe(e){let t=(0,Q.c)(13),{onSelect:n}=e,r=ct(Cfe),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.onboarding.providerRecommended,[o,s]=(0,Z.useState)(!1),c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c={revalidateOnFocus:!1},t[2]=c):c=t[2];let{data:l}=mt(`onboarding-provider-meta`,o8,c),u,d;if(t[3]!==l||t[4]!==r||t[5]!==n||t[6]!==a||t[7]!==o){let e=yfe(l,Wt()),i=e[0],c=e.slice(1);u=i?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>n(i.id),className:`group flex w-full items-center gap-4 rounded-2xl border border-accent/35 bg-accent-soft/55 p-4 text-left shadow-elevated transition-[transform,border-color,box-shadow] duration-300 hover:-translate-y-0.5 hover:border-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent motion-reduce:transform-none`,children:[(0,$.jsx)(`span`,{className:`flex size-12 shrink-0 items-center justify-center rounded-2xl border border-edge bg-surface-panel shadow-surface`,children:(0,$.jsx)(t8,{providerId:i.id,className:`size-8`})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`text-base font-semibold text-fg`,children:i.name}),(0,$.jsx)(`span`,{className:`rounded-full bg-accent px-2 py-0.5 text-[10px] font-semibold text-white`,children:a})]}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:bfe(i)})]}),(0,$.jsx)(cs,{className:`size-5 shrink-0 text-accent-fg transition-transform duration-200 group-hover:translate-x-0.5 motion-reduce:transform-none`,"aria-hidden":!0})]}):null,d=c.length?(0,$.jsxs)(`div`,{className:`mt-4`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center gap-1.5 text-sm font-medium text-fg-muted transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-expanded":o,onClick:()=>s(Sfe),children:[r===`zh`?`使用其他模型服务`:`Use another model service`,(0,$.jsx)(is,{className:X(`size-4 transition-transform duration-200`,o&&`rotate-180`),"aria-hidden":!0})]}),o?(0,$.jsx)(`div`,{className:`xopc-onboarding-provider-options mt-3 grid grid-cols-2 gap-2 sm:grid-cols-4`,children:c.map(e=>(0,$.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),className:`flex min-h-24 flex-col items-center justify-center gap-2 rounded-xl border border-edge bg-surface-panel p-3 text-center transition-[transform,border-color,background-color] duration-200 hover:-translate-y-0.5 hover:border-accent/45 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent motion-reduce:transform-none`,children:[(0,$.jsx)(t8,{providerId:e.id,className:`size-7`}),(0,$.jsx)(`span`,{className:`text-xs font-medium text-fg`,children:e.name})]},e.id))}):null]}):null,t[3]=l,t[4]=r,t[5]=n,t[6]=a,t[7]=o,t[8]=u,t[9]=d}else u=t[8],d=t[9];let f;return t[10]!==u||t[11]!==d?(f=(0,$.jsxs)(`div`,{children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function Sfe(e){return!e}function Cfe(e){return e.language}function wfe(){if(!Wt())return;let e=window.location.hash.startsWith(`#/`)?window.location.hash.slice(1):`/`;return e.length<=2048?e:`/`}async function d8(e){let t=await ot(Y(`/api/auth/oauth-async/start`),{method:`POST`,body:JSON.stringify({provider:e,client:Wt()?`desktop`:`web`,returnPath:wfe()})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||`OAuth start failed: ${t.status}`)}return(await t.json()).payload}async function f8(e){let t=await ot(Y(`/api/auth/oauth-async/${encodeURIComponent(e)}/status`));if(!t.ok)throw Error(`OAuth status: ${t.status}`);return(await t.json()).payload}async function Tfe(e,t){let n=await ot(Y(`/api/auth/oauth-async/${encodeURIComponent(e)}/code`),{method:`POST`,body:JSON.stringify({code:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error||`Submit code failed: ${n.status}`)}}async function Efe(e){let t=await ot(Y(`/api/auth/oauth-async/${encodeURIComponent(e)}/cancel`),{method:`POST`});if(!t.ok)throw Error(`Cancel OAuth failed: ${t.status}`)}async function p8(e){let t=await ot(Y(`/api/auth/oauth-async/${encodeURIComponent(e)}`),{method:`DELETE`});if(!t.ok)throw Error(`Cleanup session failed: ${t.status}`)}async function Dfe(e){let t=await ot(Y(`/api/auth/oauth/${encodeURIComponent(e)}`),{method:`DELETE`});if(!t.ok)throw Error(`Revoke OAuth failed: ${t.status}`)}function m8({providerId:e,displayName:t,connected:n,onConnected:r}){let i=ct(e=>e.language)===`zh`,[a,o]=(0,Z.useState)(`idle`),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(null),d=(0,Z.useRef)(!1),f=(0,Z.useRef)(null);(0,Z.useEffect)(()=>()=>{d.current=!0,f.current?.close(),f.current=null},[]);let p=async()=>{d.current=!1,c(null),u(null),o(`waiting`);let t=Wt();t||(f.current?.close(),f.current=window.open(`about:blank`,`xopc-oauth`),f.current&&(f.current.opener=null));let n=null,a=null;try{for(n=(await d8(e)).sessionId;!d.current;){if(await new Promise(e=>window.setTimeout(e,1e3)),d.current)return;let e=await f8(n);if(e.authUrl&&e.authUrl!==a)if(a=e.authUrl,u(e.authUrl),t){let t=await window.electronAPI?.shell?.openExternalUrl(e.authUrl);if(!t?.ok)throw Error(t?.error??`Could not open the system browser.`)}else f.current&&!f.current.closed&&f.current.location.replace(e.authUrl);if(e.status===`failed`||e.status===`cancelled`)throw Error(e.error??e.message??`OAuth authorization failed`);if(e.status===`completed`){await a8(),f.current?.close(),f.current=null,o(`connected`),r?.();return}}}catch(e){f.current?.close(),f.current=null,d.current||(o(`idle`),c(e instanceof Error?e.message:i?`连接失败`:`Connection failed`))}finally{n&&p8(n).catch(()=>{})}},m=n||a===`connected`;return(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-2xl border border-accent/25 bg-accent/5 p-4 sm:flex-row sm:items-center sm:justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,$.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-accent`,children:(0,$.jsx)(fl,{className:`size-5`,"aria-hidden":!0})}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:t}),m?(0,$.jsx)(me,{className:`size-4 text-emerald-500`,"aria-label":i?`已连接`:`Connected`}):null]}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:a===`waiting`?i?`请在浏览器中完成 OAuth 授权。`:`Complete OAuth authorization in your browser.`:m?i?`已通过 OAuth 连接。`:`Connected with OAuth.`:i?`使用 OAuth 连接,无需 API Key。`:`Connect with OAuth. No API key is required.`}),a===`waiting`&&l?(0,$.jsx)(`a`,{className:`mt-1 inline-flex text-sm text-accent hover:underline`,href:l,target:`_blank`,rel:`noreferrer`,children:i?`打开授权页面`:`Open authorization page`}):null,s?(0,$.jsx)(`p`,{className:`mt-1 text-sm text-danger`,children:s}):null]})]}),(0,$.jsxs)(vt,{type:`button`,variant:m?`secondary`:`primary`,disabled:a===`waiting`,onClick:()=>void p(),children:[a===`waiting`?(0,$.jsx)(je,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,a===`waiting`?i?`等待授权…`:`Waiting…`:m?i?`重新授权`:`Reauthorize`:i?`授权`:`Authorize`]})]})}var h8={ollama:{label:`Ollama`,providerId:`ollama`,config:{baseUrl:`http://localhost:11434/v1`,api:`openai-completions`,apiKey:`ollama`}},lmstudio:{label:`LM Studio`,providerId:`lmstudio`,config:{baseUrl:`http://localhost:1234/v1`,api:`openai-completions`,apiKey:`lmstudio`}},openrouter:{label:`OpenRouter`,providerId:`openrouter`,config:{baseUrl:`https://openrouter.ai/api/v1`,api:`openai-completions`,apiKey:``}},zhipuCn:{label:`Zhipu GLM China`,providerId:`zhipu-cn`,config:{baseUrl:`https://open.bigmodel.cn/api/paas/v4`,api:`openai-completions`,apiKey:`ZHIPU_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},zaiGeneral:{label:`Zhipu GLM International`,providerId:`zai`,config:{baseUrl:`https://api.z.ai/api/paas/v4`,api:`openai-completions`,apiKey:`ZAI_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},dashscopeCn:{label:`Alibaba Bailian / DashScope China`,providerId:`dashscope-cn`,description:`China OpenAI-compatible Qwen endpoint`,config:{baseUrl:`https://dashscope.aliyuncs.com/compatible-mode/v1`,api:`openai-completions`,apiKey:`DASHSCOPE_API_KEY`,models:[{id:`qwen3.7-max`,name:`Qwen3.7 Max`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.7-plus`,name:`Qwen3.7 Plus`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.6-flash`,name:`Qwen3.6 Flash`,contextWindow:1e6,input:[`text`]}]}},dashscopeIntl:{label:`Alibaba Bailian / DashScope International`,providerId:`dashscope-intl`,description:`International OpenAI-compatible Qwen endpoint`,config:{baseUrl:`https://dashscope-intl.aliyuncs.com/compatible-mode/v1`,api:`openai-completions`,apiKey:`DASHSCOPE_API_KEY`,models:[{id:`qwen3.7-max`,name:`Qwen3.7 Max`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.7-plus`,name:`Qwen3.7 Plus`,contextWindow:1e6,input:[`text`,`image`]},{id:`qwen3.6-flash`,name:`Qwen3.6 Flash`,contextWindow:1e6,input:[`text`]}]}},volcengineArk:{label:`Volcengine Ark`,providerId:`volcengine-ark`,description:`Use your Ark endpoint id as the model id`,config:{baseUrl:`https://ark.cn-beijing.volces.com/api/v3`,api:`openai-completions`,apiKey:`ARK_API_KEY`,models:[{id:`ep-your-endpoint-id`,name:`Ark endpoint ID`,contextWindow:128e3,input:[`text`]}]}},volcenginePlan:{label:`Volcengine Doubao Coding Plan`,providerId:`volcengine-plan`,description:`Doubao coding-plan endpoint on Volcengine Ark`,config:{baseUrl:`https://ark.cn-beijing.volces.com/api/coding/v3`,api:`openai-completions`,apiKey:`ARK_API_KEY`,models:[{id:`ark-code-latest`,name:`Ark Coding Plan`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-code`,name:`Doubao Seed 2.0 Code`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-pro`,name:`Doubao Seed 2.0 Pro`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-lite`,name:`Doubao Seed 2.0 Lite`,contextWindow:256e3,maxTokens:4096,input:[`text`]}]}},byteplusPlan:{label:`BytePlus Doubao Coding Plan`,providerId:`byteplus-plan`,description:`Doubao coding-plan endpoint on BytePlus`,config:{baseUrl:`https://ark.ap-southeast.bytepluses.com/api/coding/v3`,api:`openai-completions`,apiKey:`BYTEPLUS_API_KEY`,models:[{id:`ark-code-latest`,name:`Ark Coding Plan`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-code`,name:`Doubao Seed 2.0 Code`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-pro`,name:`Doubao Seed 2.0 Pro`,contextWindow:256e3,maxTokens:4096,input:[`text`]},{id:`doubao-seed-2.0-lite`,name:`Doubao Seed 2.0 Lite`,contextWindow:256e3,maxTokens:4096,input:[`text`]}]}},deepseek:{label:`DeepSeek`,providerId:`deepseek`,config:{baseUrl:`https://api.deepseek.com`,api:`openai-completions`,apiKey:`DEEPSEEK_API_KEY`,models:[{id:`deepseek-v4-pro`,name:`DeepSeek V4 Pro`,contextWindow:1e6,maxTokens:393216,reasoning:!0,input:[`text`]},{id:`deepseek-v4-flash`,name:`DeepSeek V4 Flash`,contextWindow:1e6,maxTokens:393216,reasoning:!0,input:[`text`]}]}},moonshotCn:{label:`Kimi / Moonshot China`,providerId:`moonshotai-cn`,config:{baseUrl:`https://api.moonshot.cn/v1`,api:`openai-completions`,apiKey:`MOONSHOT_API_KEY`,models:[{id:`kimi-k2.7-code`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-k2.6`,name:`Kimi K2.6`,contextWindow:128e3,input:[`text`]}]}},moonshotIntl:{label:`Kimi / Moonshot International`,providerId:`moonshotai`,config:{baseUrl:`https://api.moonshot.ai/v1`,api:`openai-completions`,apiKey:`MOONSHOT_API_KEY`,models:[{id:`kimi-k2.7-code`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-k2.6`,name:`Kimi K2.6`,contextWindow:128e3,input:[`text`]}]}},kimiCoding:{label:`Kimi Coding`,providerId:`kimi-coding`,description:`Dedicated Kimi coding endpoint`,config:{baseUrl:`https://api.kimi.com/coding`,api:`anthropic-messages`,apiKey:`KIMI_API_KEY`,headers:{"User-Agent":`KimiCLI/1.5`},models:[{id:`k2p7`,name:`Kimi K2.7 Code`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]},{id:`kimi-for-coding`,name:`Kimi For Coding`,contextWindow:262144,maxTokens:32768,reasoning:!0,input:[`text`,`image`]}]}},stepfunIntl:{label:`StepFun International`,providerId:`stepfun-intl`,config:{baseUrl:`https://api.stepfun.ai/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunCn:{label:`StepFun China`,providerId:`stepfun-cn`,config:{baseUrl:`https://api.stepfun.com/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunPlanIntl:{label:`StepFun Step Plan International`,providerId:`stepfun-plan-intl`,config:{baseUrl:`https://api.stepfun.ai/step_plan/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},stepfunPlanCn:{label:`StepFun Step Plan China`,providerId:`stepfun-plan-cn`,config:{baseUrl:`https://api.stepfun.com/step_plan/v1`,api:`openai-completions`,apiKey:`STEPFUN_API_KEY`,models:[{id:`step-3.7-flash`,name:`Step 3.7 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash-2603`,name:`Step 3.5 Flash 2603`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`step-3.5-flash`,name:`Step 3.5 Flash`,contextWindow:1e6,reasoning:!0,input:[`text`]}]}},xiaomi:{label:`Xiaomi MiMo`,providerId:`xiaomi`,config:{baseUrl:`https://api.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanCn:{label:`Xiaomi MiMo Token Plan China`,providerId:`xiaomi-token-plan-cn`,config:{baseUrl:`https://token-plan-cn.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_CN_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanAms:{label:`Xiaomi MiMo Token Plan Amsterdam`,providerId:`xiaomi-token-plan-ams`,config:{baseUrl:`https://token-plan-ams.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},xiaomiTokenPlanSgp:{label:`Xiaomi MiMo Token Plan Singapore`,providerId:`xiaomi-token-plan-sgp`,config:{baseUrl:`https://token-plan-sgp.xiaomimimo.com/v1`,api:`openai-completions`,apiKey:`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,models:[{id:`mimo-v2.5-pro`,name:`MiMo V2.5 Pro`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5-pro-ultraspeed`,name:`MiMo V2.5 Pro UltraSpeed`,contextWindow:1e6,reasoning:!0,input:[`text`]},{id:`mimo-v2.5`,name:`MiMo V2.5`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]}]}},minimax:{label:`MiniMax`,providerId:`minimax`,description:`Anthropic-compatible endpoint preferred for agent workflows`,config:{baseUrl:`https://api.minimax.io/anthropic`,api:`anthropic-messages`,apiKey:`MINIMAX_API_KEY`,authHeader:!0,models:[{id:`MiniMax-M3`,name:`MiniMax M3`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`MiniMax-M2.7-highspeed`,name:`MiniMax M2.7 Highspeed`,contextWindow:204800,input:[`text`]},{id:`MiniMax-M2.7`,name:`MiniMax M2.7`,contextWindow:204800,input:[`text`]}]}},zhipuCodingCn:{label:`Zhipu GLM Coding Plan China`,providerId:`zhipu-coding-cn`,config:{baseUrl:`https://open.bigmodel.cn/api/coding/paas/v4`,api:`openai-completions`,apiKey:`ZHIPU_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},zaiCodingGlobal:{label:`Zhipu GLM Coding Plan International`,providerId:`zai-coding-global`,config:{baseUrl:`https://api.z.ai/api/coding/paas/v4`,api:`openai-completions`,apiKey:`ZAI_API_KEY`,models:[{id:`glm-5.2`,name:`GLM 5.2`,contextWindow:1e6,maxTokens:65536,reasoning:!0,input:[`text`]}]}},minimaxCn:{label:`MiniMax China`,providerId:`minimax-cn`,config:{baseUrl:`https://api.minimaxi.com/anthropic`,api:`anthropic-messages`,apiKey:`MINIMAX_CN_API_KEY`,authHeader:!0,models:[{id:`MiniMax-M3`,name:`MiniMax M3`,contextWindow:1e6,reasoning:!0,input:[`text`,`image`]},{id:`MiniMax-M2.7-highspeed`,name:`MiniMax M2.7 Highspeed`,contextWindow:204800,input:[`text`]},{id:`MiniMax-M2.7`,name:`MiniMax M2.7`,contextWindow:204800,input:[`text`]}]}}},g8=Object.entries(h8).map(([e,t])=>({key:e,...t}));function Ofe(e){return h8[e]?.providerId??e}function kfe(e){return g8.find(t=>t.providerId===e)?.key}var Afe=new Set([`dashscope-cn`,`dashscope-intl`,`volcengine-ark`,`volcengine-plan`,`byteplus-plan`,`stepfun-cn`,`stepfun-intl`,`stepfun-plan-cn`,`stepfun-plan-intl`,`zhipu-cn`,`zai-coding-global`,`zhipu-coding-cn`]);function _8(e){if(Afe.has(e))return kfe(e)}function jfe(e,t){let n=_8(e);if(!n)return;let r=h8[n];if(r)return{providerId:r.providerId,config:{...r.config,apiKey:t?.trim()||r.config.apiKey,models:r.config.models?.map(e=>({...e}))}}}var Mfe=[{value:`text`,labelKey:`inputTextOnly`},{value:`text,image`,labelKey:`inputTextVision`}];function Nfe(){return X(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,bj,`dark:border-edge`)}function Pfe(){return X(_j,gj)}function Ffe(e){return(e.input||[`text`]).includes(`image`)?`text,image`:`text`}function Ife(e){return e===`text,image`?[`text`,`image`]:[`text`]}var Lfe=[{value:`openai-completions`,label:`OpenAI Completions`},{value:`openai-responses`,label:`OpenAI Responses`},{value:`anthropic-messages`,label:`Anthropic Messages`},{value:`google-generative-ai`,label:`Google Generative AI`},{value:`azure-openai-responses`,label:`Azure OpenAI`},{value:`bedrock-converse-stream`,label:`AWS Bedrock`},{value:`openai-codex-responses`,label:`OpenAI Codex`},{value:`google-gemini-cli`,label:`Google Gemini CLI`},{value:`google-vertex`,label:`Google Vertex AI`}];function v8(e){if(!e||typeof e!=`object`)return;let t=e;if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&`message`in t.error){let e=t.error.message;return typeof e==`string`?e:void 0}}function y8(e){if(!e||typeof e!=`object`)return{providers:{}};let t=e,n=t.providers;return n&&typeof n==`object`&&!Array.isArray(n)?e:{...t,providers:{}}}async function b8(){let e=await ot(Y(`/api/models-json`)),t=await e.json().catch(()=>({}));if(!e.ok||!t.ok||!t.payload)throw Error(v8(t)||`HTTP ${e.status}`);return{...t.payload,config:y8(t.payload.config)}}async function x8(e){let t=await ot(Y(`/api/models-json`),{method:`PATCH`,body:JSON.stringify({config:e})}),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(v8(n)||`HTTP ${t.status}`);return await a8(),n.payload}async function Rfe(e){let t=await ot(Y(`/api/models-json/discover-models`),{method:`POST`,body:JSON.stringify(e)}),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(v8(n)||`HTTP ${t.status}`);return n.payload.models}function zfe(e,t,n){return{id:e,name:t||e,input:[`text`],contextWindow:128e3,maxTokens:16384,cost:{input:0,output:0,cacheRead:0,cacheWrite:0},...n}}function S8(){return J(Y(`/api/user-model`))}async function Bfe(){let e=await S8();return{profile:{callName:typeof e.profile.callName==`string`?e.profile.callName:``,role:typeof e.profile.role==`string`?e.profile.role:``,pronouns:typeof e.profile.pronouns==`string`?e.profile.pronouns:``,timezone:typeof e.profile.timezone==`string`?e.profile.timezone:``,locale:typeof e.profile.locale==`string`?e.profile.locale:``}}}async function C8(e){let t=await J(Y(`/api/user-model/profile`),{method:`PATCH`,body:JSON.stringify(e)});return{callName:t.profile.callName??``,role:t.profile.role??``,pronouns:t.profile.pronouns??``,timezone:t.profile.timezone??``,locale:t.profile.locale??``}}function w8(){return Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`}function Vfe(e,t){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}/status`),{method:`PATCH`,body:JSON.stringify({status:t})})}function T8(e,t){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify({statement:t})})}function Hfe(e,t){return J(Y(`/api/user-model/rules/${encodeURIComponent(e)}/status`),{method:`PATCH`,body:JSON.stringify({status:t})})}function Ufe(e,t){return J(Y(`/api/knowledge-memory/${encodeURIComponent(e)}/status`),{method:`PATCH`,body:JSON.stringify({status:t})})}function Wfe(e,t){return e===`single`?t.getApiKey:e===`intl`?t.getApiKeyIntl:t.getApiKeyCn}var E8={openai:{apiKeyUrl:`https://platform.openai.com/api-keys`,pricingUrl:`https://openai.com/pricing`,docsUrl:`https://platform.openai.com/docs`,description:`The most widely used LLM provider. Powers ChatGPT.`,descriptionZh:`最广泛使用的 LLM 服务商,ChatGPT 背后的技术。`,bestFor:[`general`,`coding`,`vision`],freeTier:!1,freeTierNote:`Pay-as-you-go; new accounts may receive trial credits.`,aliases:[`chatgpt`,`gpt`,`gpt-4`,`gpt4`,`gpt-4o`,`gpt4o`],envVars:[`OPENAI_API_KEY`]},anthropic:{apiKeyUrl:`https://console.anthropic.com/settings/keys`,pricingUrl:`https://www.anthropic.com/pricing`,docsUrl:`https://docs.anthropic.com`,description:`Anthropic model access. Available models are loaded from the gateway catalog.`,descriptionZh:`Anthropic 模型服务。可用模型由网关目录动态加载。`,bestFor:[`long context`,`coding`,`reasoning`],freeTier:!1,aliases:[`claude`,`claude 3`,`claude sonnet`,`claude opus`,`claude haiku`],envVars:[`ANTHROPIC_OAUTH_TOKEN`,`ANTHROPIC_API_KEY`]},google:{apiKeyUrl:`https://aistudio.google.com/app/apikey`,pricingUrl:`https://ai.google.dev/pricing`,docsUrl:`https://ai.google.dev/docs`,description:`Google AI model access. Available models are loaded from the gateway catalog.`,descriptionZh:`Google AI 模型服务。可用模型由网关目录动态加载。`,bestFor:[`multimodal`,`long context`,`general`],freeTier:!0,freeTierNote:`Free tier available via Google AI Studio.`,aliases:[`gemini`,`google gemini`,`bard`,`google ai`],envVars:[`GEMINI_API_KEY`,`GOOGLE_API_KEY`]},"google-vertex":{apiKeyUrl:`https://console.cloud.google.com/apis/credentials`,pricingUrl:`https://cloud.google.com/vertex-ai/pricing`,docsUrl:`https://cloud.google.com/vertex-ai/docs`,description:`Google Vertex AI — enterprise-grade model hosting on GCP.`,descriptionZh:`Google Vertex AI,企业级 GCP 托管模型服务。`,bestFor:[`enterprise`,`multimodal`,`compliance`],freeTier:!1,aliases:[`vertex`,`vertex ai`,`gcp`,`google cloud`],envVars:[`GOOGLE_CLOUD_API_KEY`,`GOOGLE_CLOUD_PROJECT`,`GOOGLE_CLOUD_LOCATION`]},"google-gemini-cli":{apiKeyUrl:`https://aistudio.google.com/app/apikey`,pricingUrl:`https://ai.google.dev/pricing`,docsUrl:`https://ai.google.dev/docs`,description:`Gemini via CLI token — for users authenticated with the Gemini CLI tool.`,descriptionZh:`通过 Gemini CLI 令牌访问 Gemini,适合已安装 CLI 工具的用户。`,bestFor:[`general`,`multimodal`],freeTier:!0,freeTierNote:`Uses your existing Gemini CLI authentication.`,aliases:[`gemini cli`,`gemini-cli`],envVars:[`GEMINI_CLI_TOKEN`,`GOOGLE_TOKEN`]},"google-antigravity":{apiKeyUrl:`https://console.cloud.google.com/apis/credentials`,pricingUrl:`https://cloud.google.com/pricing`,docsUrl:`https://cloud.google.com/docs`,description:`Google Antigravity — internal/experimental Google AI endpoint.`,descriptionZh:`Google Antigravity,Google 内部/实验性 AI 端点。`,bestFor:[`experimental`],freeTier:!1,aliases:[`antigravity`,`google antigravity`],envVars:[`ANTIGRAVITY_API_KEY`]},groq:{apiKeyUrl:`https://console.groq.com/keys`,pricingUrl:`https://groq.com/pricing/`,docsUrl:`https://console.groq.com/docs`,description:`Extremely fast inference — ideal for latency-sensitive applications.`,descriptionZh:`推理速度极快,适合对延迟敏感的场景。`,bestFor:[`speed`,`cheap`],freeTier:!0,freeTierNote:`Generous free tier with rate limits.`,aliases:[`groq`,`llama on groq`,`mixtral on groq`],envVars:[`GROQ_API_KEY`]},deepseek:{apiKeyUrl:`https://platform.deepseek.com/api_keys`,pricingUrl:`https://api-docs.deepseek.com/quick_start/pricing/`,docsUrl:`https://platform.deepseek.com/api-docs/`,description:`DeepSeek model access through an OpenAI-compatible API.`,descriptionZh:`通过 OpenAI 兼容 API 访问 DeepSeek 模型。`,bestFor:[`reasoning`,`cheap`,`coding`],freeTier:!0,freeTierNote:`Free credits may be available for new accounts.`,aliases:[`deepseek`,`deep seek`,`deepseek v4`,`deepseek-v4`,`r1`],envVars:[`DEEPSEEK_API_KEY`]},"volcengine-ark":{apiKeyUrl:`https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey`,pricingUrl:`https://www.volcengine.com/docs/82379/1099320`,docsUrl:`https://www.volcengine.com/docs/82379/1302008`,description:`Volcengine Ark — OpenAI-compatible access to Doubao and custom Ark endpoints.`,descriptionZh:`火山方舟,通过 OpenAI 兼容接口访问豆包与自定义方舟 endpoint。`,bestFor:[`chinese`,`general`,`enterprise`],aliases:[`volcengine`,`ark`,`doubao`,`volces`,`火山方舟`,`豆包`],envVars:[`ARK_API_KEY`,`VOLCENGINE_API_KEY`]},"volcengine-plan":{apiKeyUrl:`https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey`,pricingUrl:`https://www.volcengine.com/docs/82379/1099320`,docsUrl:`https://www.volcengine.com/docs/82379/1302008`,description:`Volcengine Doubao Coding Plan — Ark coding endpoint.`,descriptionZh:`火山方舟豆包 Coding Plan,使用 Ark coding endpoint。`,bestFor:[`coding`,`chinese`],aliases:[`volcengine plan`,`ark coding`,`doubao coding`,`火山方舟 coding`],envVars:[`ARK_API_KEY`,`VOLCENGINE_API_KEY`]},"byteplus-plan":{apiKeyUrl:`https://console.byteplus.com/ark/region:ark+ap-southeast-1/apiKey`,pricingUrl:`https://docs.byteplus.com/en/docs/ModelArk`,docsUrl:`https://docs.byteplus.com/en/docs/ModelArk/OpenAI`,description:`BytePlus Doubao Coding Plan — international Ark coding endpoint.`,descriptionZh:`BytePlus 豆包 Coding Plan,国际区 Ark coding endpoint。`,bestFor:[`coding`,`chinese`],aliases:[`byteplus`,`byteplus plan`,`doubao coding international`],envVars:[`BYTEPLUS_API_KEY`,`ARK_API_KEY`]},xai:{apiKeyUrl:`https://console.x.ai/`,pricingUrl:`https://x.ai/api`,docsUrl:`https://docs.x.ai/`,description:`xAI model access. Available models are loaded from the gateway catalog.`,descriptionZh:`xAI 模型服务。可用模型由网关目录动态加载。`,bestFor:[`reasoning`,`real-time`],freeTier:!1,aliases:[`grok`,`xai`,`x.ai`],envVars:[`XAI_API_KEY`]},cerebras:{apiKeyUrl:`https://cloud.cerebras.ai/platform/`,pricingUrl:`https://cloud.cerebras.ai/platform/`,docsUrl:`https://inference-docs.cerebras.ai/`,description:`Ultra-fast inference on custom AI chips. Fastest Llama inference available.`,descriptionZh:`基于专用 AI 芯片的超快推理,Llama 推理速度业界最快。`,bestFor:[`speed`],freeTier:!0,freeTierNote:`Free tier available.`,aliases:[`cerebras`],envVars:[`CEREBRAS_API_KEY`]},mistral:{apiKeyUrl:`https://console.mistral.ai/api-keys/`,pricingUrl:`https://mistral.ai/technology/#pricing`,docsUrl:`https://docs.mistral.ai/`,description:`European open-weight models. Good balance of quality and cost.`,descriptionZh:`欧洲开源模型,质量与成本平衡好。`,bestFor:[`general`,`cheap`,`coding`],freeTier:!1,aliases:[`mistral`,`mixtral`,`codestral`],envVars:[`MISTRAL_API_KEY`]},openrouter:{apiKeyUrl:`https://openrouter.ai/keys`,pricingUrl:`https://openrouter.ai/models`,docsUrl:`https://openrouter.ai/docs`,description:`API gateway to 100+ models from many providers with a single key.`,descriptionZh:`统一 API 网关,一个 Key 访问 100+ 模型。`,bestFor:[`general`,`flexibility`],freeTier:!0,freeTierNote:`Some models are free; pay-per-use for others.`,aliases:[`openrouter`,`open router`],envVars:[`OPENROUTER_API_KEY`]},"azure-openai-responses":{apiKeyUrl:`https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/OpenAI`,pricingUrl:`https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/`,docsUrl:`https://learn.microsoft.com/en-us/azure/ai-services/openai/`,description:`OpenAI models hosted on Azure. Enterprise SLA and data residency.`,descriptionZh:`Azure 托管的 OpenAI 模型,企业级 SLA 和数据合规。`,bestFor:[`enterprise`,`compliance`,`coding`],freeTier:!1,aliases:[`azure`,`azure openai`,`aoai`],envVars:[`AZURE_OPENAI_API_KEY`,`AZURE_OPENAI_BASE_URL`]},"amazon-bedrock":{apiKeyUrl:`https://console.aws.amazon.com/iam/home#/security_credentials`,pricingUrl:`https://aws.amazon.com/bedrock/pricing/`,docsUrl:`https://docs.aws.amazon.com/bedrock/`,description:`AWS Bedrock hosted model access with enterprise controls.`,descriptionZh:`AWS Bedrock 托管模型服务,提供企业级控制能力。`,bestFor:[`enterprise`,`compliance`],freeTier:!1,aliases:[`bedrock`,`aws`,`amazon`],envVars:[`AWS_ACCESS_KEY_ID`,`AWS_SECRET_ACCESS_KEY`,`AWS_REGION`]},minimax:{apiKeyUrl:`https://platform.minimax.io/user-center/basic-information/interface-key`,pricingUrl:`https://platform.minimax.io/docs/guides/models-intro`,docsUrl:`https://platform.minimax.io/docs/guides/quickstart-preparation`,description:`MiniMax — Chinese multimodal model with strong text and audio capabilities.`,descriptionZh:`MiniMax,国产多模态模型,文本和音频能力强。`,bestFor:[`multimodal`,`chinese`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`minimax`,`mini max`,`abab`],envVars:[`MINIMAX_API_KEY`]},"minimax-cn":{apiKeyUrl:`https://platform.minimaxi.com/user-center/basic-information/interface-key`,pricingUrl:`https://platform.minimaxi.com/document/Price`,docsUrl:`https://platform.minimaxi.com/document/Announcement`,description:`MiniMax (China endpoint) — domestic access for Chinese users.`,descriptionZh:`MiniMax 国内端点,国内用户直连访问。`,bestFor:[`multimodal`,`chinese`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`minimax cn`,`minimax china`,`abab`],envVars:[`MINIMAX_CN_API_KEY`,`MINIMAX_API_KEY`]},stepfun:{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun OpenAI-compatible endpoint.`,descriptionZh:`阶跃星辰 StepFun OpenAI 兼容端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun`,`step`,`阶跃星辰`],envVars:[`STEPFUN_API_KEY`]},"stepfun-cn":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun China — OpenAI-compatible chat endpoint.`,descriptionZh:`阶跃星辰 StepFun 中国区 OpenAI 兼容对话端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun cn`,`step cn`,`阶跃星辰`],envVars:[`STEPFUN_API_KEY`]},"stepfun-intl":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun International — OpenAI-compatible chat endpoint.`,descriptionZh:`阶跃星辰 StepFun 国际区 OpenAI 兼容对话端点。`,bestFor:[`chinese`,`reasoning`,`general`],aliases:[`stepfun intl`,`step international`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan`,`step plan`,`阶跃 plan`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan-cn":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan China — coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan 中国区 coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan cn`,`step plan cn`,`阶跃 plan`],envVars:[`STEPFUN_API_KEY`]},"stepfun-plan-intl":{apiKeyUrl:`https://platform.stepfun.com/interface-key`,pricingUrl:`https://platform.stepfun.com/docs/pricing`,docsUrl:`https://platform.stepfun.com/docs`,description:`StepFun Step Plan International — coding/planning endpoint.`,descriptionZh:`阶跃星辰 Step Plan 国际区 coding/planning 专用端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`stepfun plan intl`,`step plan international`],envVars:[`STEPFUN_API_KEY`]},"kimi-coding":{apiKeyUrl:`https://platform.kimi.com/console/api-keys`,pricingUrl:`https://platform.kimi.com/docs/pricing/chat`,docsUrl:`https://platform.kimi.com/docs`,description:`Kimi Coding — dedicated Anthropic-compatible coding endpoint.`,descriptionZh:`Kimi Coding,Anthropic 兼容的专用 coding 端点。`,bestFor:[`coding`,`chinese`,`vision`],freeTier:!0,freeTierNote:`注册赠送免费额度。`,aliases:[`kimi coding`,`moonshot coding`,`kimi code`],envVars:[`KIMI_API_KEY`,`MOONSHOT_API_KEY`]},moonshotai:{apiKeyUrl:`https://platform.moonshot.ai/console/api-keys`,pricingUrl:`https://platform.moonshot.ai/docs/pricing`,docsUrl:`https://platform.moonshot.ai/docs`,description:`Moonshot Kimi — international API (api.moonshot.ai).`,descriptionZh:`月之暗面 Kimi 国际版 API(api.moonshot.ai)。`,bestFor:[`coding`,`chinese`,`long context`],freeTier:!0,aliases:[`moonshot`,`kimi`,`moonshot ai`],envVars:[`MOONSHOT_API_KEY`]},"moonshotai-cn":{apiKeyUrl:`https://platform.moonshot.cn/console/api-keys`,pricingUrl:`https://platform.moonshot.cn/docs/pricing/chat`,docsUrl:`https://platform.moonshot.cn/docs`,description:`Moonshot Kimi — China region endpoint.`,descriptionZh:`月之暗面 Kimi 中国区域端点。`,bestFor:[`coding`,`chinese`,`long context`],freeTier:!0,aliases:[`moonshot cn`,`kimi cn`],envVars:[`MOONSHOT_API_KEY`]},fal:{apiKeyUrl:`https://fal.ai/dashboard/keys`,pricingUrl:`https://fal.ai/pricing`,docsUrl:`https://fal.ai/docs`,description:`fal — serverless image and media generation APIs.`,descriptionZh:`fal:无服务器图像与媒体生成 API。`,bestFor:[`image`,`video`],freeTier:!0,aliases:[`fal ai`,`fal.ai`],envVars:[`FAL_KEY`,`FAL_API_KEY`]},fireworks:{apiKeyUrl:`https://fireworks.ai/account/api-keys`,pricingUrl:`https://fireworks.ai/pricing`,docsUrl:`https://docs.fireworks.ai`,description:`Fireworks AI — fast inference for open and proprietary models.`,descriptionZh:`Fireworks AI,多种开源与商业模型的高速推理服务。`,bestFor:[`speed`,`coding`,`open weights`],freeTier:!0,aliases:[`fireworks ai`,`fireworks`],envVars:[`FIREWORKS_API_KEY`]},together:{apiKeyUrl:`https://api.together.xyz/settings/api-keys`,pricingUrl:`https://www.together.ai/pricing`,docsUrl:`https://docs.together.ai`,description:`Together AI — hosted Llama, Qwen, DeepSeek, and more.`,descriptionZh:`Together AI,托管 Llama、Qwen、DeepSeek 等模型。`,bestFor:[`open source`,`flexibility`],freeTier:!0,aliases:[`together ai`,`together.xyz`],envVars:[`TOGETHER_API_KEY`]},"cloudflare-workers-ai":{apiKeyUrl:`https://dash.cloudflare.com/?to=/:account/ai/workers-ai`,pricingUrl:`https://developers.cloudflare.com/workers-ai/platform/pricing/`,docsUrl:`https://developers.cloudflare.com/workers-ai/`,description:`Cloudflare Workers AI — models at the edge via Cloudflare API.`,descriptionZh:`Cloudflare Workers AI,通过 Cloudflare API 在边缘运行模型。`,bestFor:[`edge`,`latency`],freeTier:!0,aliases:[`workers ai`,`cf workers ai`],envVars:[`CLOUDFLARE_API_KEY`]},"cloudflare-ai-gateway":{apiKeyUrl:`https://dash.cloudflare.com/?to=/:account/ai/ai-gateway`,pricingUrl:`https://developers.cloudflare.com/ai-gateway/pricing/`,docsUrl:`https://developers.cloudflare.com/ai-gateway/`,description:`Cloudflare AI Gateway — unified OpenAI/Anthropic-compatible routing.`,descriptionZh:`Cloudflare AI Gateway,统一 OpenAI/Anthropic 兼容路由。`,bestFor:[`routing`,`observability`,`enterprise`],freeTier:!0,aliases:[`cf ai gateway`,`cloudflare gateway`],envVars:[`CLOUDFLARE_API_KEY`]},xiaomi:{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo — API billing through the MiMo open platform; endpoint api.xiaomimimo.com.`,descriptionZh:`小米 MiMo 按量计费线路,在开放平台创建密钥;接口域名为 api.xiaomimimo.com。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi`,`mimo`,`小米`,`xiaomimimo`],envVars:[`XIAOMI_API_KEY`]},"xiaomi-token-plan-cn":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — China region (token-plan-cn.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 中国区(token-plan-cn.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token cn`,`mimo token cn`],envVars:[`XIAOMI_TOKEN_PLAN_CN_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"xiaomi-token-plan-ams":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — Amsterdam region (token-plan-ams.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 阿姆斯特丹(token-plan-ams.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token ams`,`mimo token ams`],envVars:[`XIAOMI_TOKEN_PLAN_AMS_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"xiaomi-token-plan-sgp":{apiKeyUrl:`https://platform.xiaomimimo.com/#/console/api-keys`,pricingUrl:`https://mimo.mi.com/`,docsUrl:`https://platform.xiaomimimo.com/`,description:`Xiaomi MiMo Token Plan — Singapore region (token-plan-sgp.xiaomimimo.com).`,descriptionZh:`小米 MiMo Token 套餐 · 新加坡(token-plan-sgp.xiaomimimo.com)。`,bestFor:[`general`,`coding`],freeTier:!1,aliases:[`xiaomi token sgp`,`mimo token sgp`],envVars:[`XIAOMI_TOKEN_PLAN_SGP_API_KEY`,`XIAOMI_TOKEN_PLAN_API_KEY`]},"ant-ling":{apiKeyUrl:`https://ling.tbox.cn/`,docsUrl:`https://ling.tbox.cn/`,description:`Ant Ling — domestic OpenAI-compatible access to Ling and Ring models.`,descriptionZh:`蚂蚁 Ling,国内 OpenAI 兼容服务,提供 Ling 与 Ring 系列模型。`,bestFor:[`chinese`,`reasoning`,`coding`],aliases:[`ant ling`,`ling`,`ring`,`蚂蚁 ling`,`蚂蚁灵`],envVars:[`ANT_LING_API_KEY`,`LING_API_KEY`]},"zai-coding-global":{apiKeyUrl:`https://z.ai/manage-apikey/apikey-list`,pricingUrl:`https://z.ai/manage-apikey/billing`,docsUrl:`https://docs.z.ai/guides/overview/quick-start`,description:`Zhipu GLM Coding Plan — international z.ai endpoint.`,descriptionZh:`智谱 GLM Coding Plan 国际区 z.ai 端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zai coding`,`zhipu coding global`,`glm coding global`],envVars:[`ZAI_API_KEY`,`Z_AI_API_KEY`]},"zai-coding-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM Coding Plan — China endpoint from the pi-ai provider catalog.`,descriptionZh:`智谱 GLM Coding Plan 中国区,来自 pi-ai 内置 provider 目录。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zai coding cn`,`zhipu coding cn`,`glm coding cn`,`智谱 coding`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`,`ZAI_API_KEY`]},"zhipu-coding-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM Coding Plan — China BigModel endpoint.`,descriptionZh:`智谱 GLM Coding Plan 中国区 BigModel 端点。`,bestFor:[`coding`,`reasoning`,`chinese`],aliases:[`zhipu coding`,`glm coding cn`,`智谱 coding`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`,`ZAI_API_KEY`]},"zhipu-cn":{apiKeyUrl:`https://bigmodel.cn/usercenter/proj-mgmt/apikeys`,pricingUrl:`https://bigmodel.cn/pricing`,docsUrl:`https://docs.bigmodel.cn/cn/guide/start/model-overview`,description:`Zhipu GLM China — BigModel OpenAI-compatible endpoint.`,descriptionZh:`智谱 GLM 中国区,通过 BigModel OpenAI 兼容接口访问。`,bestFor:[`chinese`,`reasoning`,`general`],freeTier:!0,aliases:[`zhipu`,`glm`,`bigmodel`,`智谱`,`z.ai cn`],envVars:[`ZHIPU_API_KEY`,`BIGMODEL_API_KEY`]},huggingface:{apiKeyUrl:`https://huggingface.co/settings/tokens`,pricingUrl:`https://huggingface.co/pricing`,docsUrl:`https://huggingface.co/docs/api-inference/`,description:`Access thousands of open-source models via Hugging Face Inference API.`,descriptionZh:`通过 Hugging Face 访问数千个开源模型。`,bestFor:[`open source`,`flexibility`],freeTier:!0,freeTierNote:`Free tier with rate limits.`,aliases:[`huggingface`,`hugging face`,`hf`],envVars:[`HF_TOKEN`,`HUGGINGFACE_TOKEN`]},opencode:{apiKeyUrl:`https://opencode.ai/auth`,pricingUrl:`https://opencode.ai/docs`,docsUrl:`https://opencode.ai/docs/providers/`,description:`OpenCode — AI coding assistant provider.`,descriptionZh:`OpenCode,AI 代码助手服务商。`,bestFor:[`coding`],freeTier:!1,aliases:[`opencode`,`open code`],envVars:[`OPENCODE_API_KEY`]},"opencode-go":{apiKeyUrl:`https://opencode.ai/auth`,pricingUrl:`https://opencode.ai/docs`,docsUrl:`https://opencode.ai/docs/providers/`,description:`OpenCode Go — AI coding assistant provider (Go variant).`,descriptionZh:`OpenCode Go,AI 代码助手服务商(Go 版本)。`,bestFor:[`coding`],freeTier:!1,aliases:[`opencode go`,`opencode-go`],envVars:[`OPENCODE_API_KEY`]},zai:{apiKeyUrl:`https://z.ai/manage-apikey/apikey-list`,pricingUrl:`https://z.ai/manage-apikey/billing`,docsUrl:`https://docs.z.ai/guides/overview/quick-start`,description:`Zhipu GLM International — z.ai OpenAI-compatible endpoint.`,descriptionZh:`智谱 GLM 国际区,通过 z.ai OpenAI 兼容接口访问。`,bestFor:[`general`,`reasoning`,`chinese`],freeTier:!1,aliases:[`zai`,`z.ai`,`zhipu global`,`glm global`,`智谱`],envVars:[`ZAI_API_KEY`,`Z_AI_API_KEY`]},dashscope:{apiKeyUrl:`https://dashscope.console.aliyun.com/apiKey`,pricingUrl:`https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-thousand-questions-metering-and-billing`,docsUrl:`https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope service provider.`,descriptionZh:`阿里百炼 / DashScope 服务 provider。`,bestFor:[`chinese`,`coding`,`image`,`speech`],freeTier:!0,aliases:[`dash scope`,`alibaba dashscope`,`qwen`,`tongyi`,`阿里百炼`,`通义千问`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"dashscope-cn":{apiKeyUrl:`https://dashscope.console.aliyun.com/apiKey`,pricingUrl:`https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-thousand-questions-metering-and-billing`,docsUrl:`https://help.aliyun.com/zh/model-studio/developer-reference/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope China — Qwen LLMs through the China endpoint.`,descriptionZh:`阿里百炼 / DashScope 中国区:通过国内端点访问通义千问 LLM。`,bestFor:[`chinese`,`coding`,`image`],freeTier:!0,aliases:[`dash scope cn`,`alibaba dashscope cn`,`qwen cn`,`tongyi cn`,`阿里百炼`,`通义千问`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"dashscope-intl":{apiKeyUrl:`https://modelstudio.console.alibabacloud.com/`,pricingUrl:`https://www.alibabacloud.com/help/en/model-studio/billing-for-tongyi-qianwen`,docsUrl:`https://www.alibabacloud.com/help/en/model-studio/compatibility-of-openai-with-dashscope`,description:`Alibaba Bailian / DashScope International — Qwen LLMs through the international endpoint.`,descriptionZh:`阿里百炼 / DashScope 国际区:通过国际端点访问通义千问 LLM。`,bestFor:[`chinese`,`coding`,`image`],freeTier:!0,aliases:[`dash scope intl`,`alibaba cloud dashscope`,`qwen intl`,`tongyi intl`],envVars:[`DASHSCOPE_API_KEY`,`QWEN_API_KEY`]},"vercel-ai-gateway":{apiKeyUrl:`https://vercel.com/account/tokens`,pricingUrl:`https://vercel.com/pricing`,docsUrl:`https://vercel.com/docs/ai/ai-gateway`,description:`Vercel AI Gateway — route requests to multiple LLM providers via Vercel.`,descriptionZh:`Vercel AI Gateway,通过 Vercel 路由请求到多个 LLM 服务商。`,bestFor:[`flexibility`,`enterprise`],freeTier:!1,aliases:[`vercel gateway`,`vercel ai gateway`],envVars:[`AI_GATEWAY_API_KEY`,`VERCEL_AI_GATEWAY_API_KEY`]},"github-copilot":{apiKeyUrl:`https://github.com/settings/tokens`,pricingUrl:`https://github.com/features/copilot#pricing`,docsUrl:`https://docs.github.com/en/copilot`,description:`GitHub Copilot — use your GitHub token to access Copilot models.`,descriptionZh:`使用 GitHub 令牌访问 Copilot 模型。`,bestFor:[`coding`],freeTier:!0,freeTierNote:`Free for verified students and open-source maintainers.`,aliases:[`github copilot`,`copilot`,`github`],envVars:[`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`,`GITHUB_COPILOT_TOKEN`]}};function Gfe(e,t){let n=E8[e];return n&&n.apiKeyUrl?[{href:n.apiKeyUrl,kind:`single`}]:[]}var Kfe={step:`callName`,selectedProvider:null,apiKey:``,busy:!1,error:null,callName:``,profileLoading:!0};function qfe(e,t){switch(t.type){case`patch`:return{...e,...t.patch};case`prefillCallName`:return e.callName.trim()?e:{...e,callName:t.value}}}var D8=[`callName`,`provider`,`apiKey`],O8=e=>D8.indexOf(e)+1;function Jfe({onComplete:e,onDismiss:t,canDismiss:n=!0}){let r=ct(e=>e.language),i=ct(e=>e.setLanguage),a=rt(r).onboarding,[o,s]=(0,Z.useReducer)(qfe,Kfe),{step:c,selectedProvider:l,apiKey:u,busy:d,error:f,callName:p,profileLoading:m}=o,h=(0,Z.useMemo)(()=>a.stepOf.replace(`{{current}}`,String(O8(c))).replace(`{{total}}`,String(D8.length)),[a.stepOf,c]),g=(0,Z.useCallback)(async e=>{s({type:`patch`,patch:{error:null}});try{return(await Zt(!0)).filter(t=>t.provider===e).sort((e,t)=>e.recommended===t.recommended?(e.name||e.id).localeCompare(t.name||t.id,void 0,{sensitivity:`base`}):e.recommended?-1:1)[0]??null}catch(e){return s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}}),null}},[]);(0,Z.useEffect)(()=>{let e=!1,t;return(async()=>{for(let n=0;n<3;n+=1)try{let{profile:t,suggestedCallName:n}=await Bfe();if(e)return;let r=t.callName.trim()||n?.trim();r&&s({type:`prefillCallName`,value:r}),s({type:`patch`,patch:{profileLoading:!1}});return}catch{n<2&&await new Promise(e=>{t=setTimeout(e,250*(n+1))})}e||s({type:`patch`,patch:{profileLoading:!1}})})(),()=>{e=!0,t!==void 0&&clearTimeout(t)}},[]);let _=async()=>{let e=p.trim();s({type:`patch`,patch:{busy:!0,error:null}});try{await C8({callName:e,timezone:w8()}),s({type:`patch`,patch:{step:`provider`}})}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}},v=(0,Z.useCallback)(async t=>{let n=await R3();if((await z3({...n.defaults,models:{...n.defaults.models,chat:{primary:t,fallbacks:[]}}})).defaults.models.chat.primary!==t)throw Error(r===`zh`?`默认模型未能保存,请重试。`:`The default model could not be saved. Try again.`);xt(),Qt(),LF(),await C8({...p.trim()?{callName:p.trim()}:{},timezone:w8()}),await e()},[p,r,e]),b=async()=>{if(!(!l||!u.trim())){s({type:`patch`,patch:{busy:!0,error:null}});try{let e=jfe(l,u.trim());if(e){let t=await b8(),n=t.config.providers[e.providerId]??{};await x8({...t.config,providers:{...t.config.providers,[e.providerId]:{...n,...e.config}}})}else await s8({[l]:u.trim()});let t=await g(l);if(!t)throw Error(r===`zh`?`没有找到可用模型,请检查密钥或前往“模型与服务”进行高级配置。`:`No available model was found. Check the key or open Models & services for advanced setup.`);await v(t.id)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}}},x=async()=>{s({type:`patch`,patch:{busy:!0,error:null}});try{let e=await g(`xopc-cloud`);if(!e)throw Error(r===`zh`?`XOPC Cloud 已连接,但没有找到可用模型,请稍后重试。`:`XOPC Cloud connected, but no available model was found. Try again shortly.`);await v(e.id)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}};return(0,$.jsxs)(`div`,{className:`xopc-onboarding-experience relative flex h-full min-h-0 w-full flex-col overflow-hidden bg-surface-base`,"data-step":c,children:[(0,$.jsx)(`div`,{className:`xopc-onboarding-ambient pointer-events-none absolute inset-0`,"aria-hidden":!0}),(0,$.jsx)(`header`,{className:`relative z-20 flex h-18 shrink-0 items-center justify-end px-5 sm:px-8 lg:px-10`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`div`,{className:`mr-2 hidden items-center gap-1.5 sm:flex`,"aria-label":h,children:D8.map((e,t)=>(0,$.jsx)(`span`,{className:X(`h-1.5 w-5 rounded-full transition-[transform,background-color,opacity] duration-500 motion-reduce:transition-none`,t===O8(c)-1?`scale-x-100 bg-accent`:t<O8(c)?`scale-x-[.35] bg-accent/45`:`scale-x-[.35] bg-edge-strong`),"aria-hidden":!0},e))}),(0,$.jsx)(ofe,{value:r,onChange:e=>{s({type:`patch`,patch:{error:null}}),i(e)}}),n?(0,$.jsx)(`button`,{type:`button`,"aria-label":a.skipSetup,className:`inline-flex size-10 items-center justify-center rounded-xl text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,onClick:t,children:(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0})}):null]})}),(0,$.jsxs)(`main`,{className:`relative z-10 grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(16rem,0.65fr)_minmax(32rem,1.35fr)]`,children:[(0,$.jsx)(`section`,{className:`xopc-onboarding-visual relative hidden min-h-0 items-center justify-center overflow-hidden lg:flex`,children:(0,$.jsxs)(`div`,{className:`xopc-onboarding-orbit relative flex size-72 items-center justify-center`,"aria-hidden":!0,children:[(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-glow absolute inset-[14%] rounded-full`}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-ring xopc-onboarding-orbit-ring--outer absolute inset-0 rounded-full`}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-ring xopc-onboarding-orbit-ring--middle absolute inset-[17%] rounded-full`}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-ring xopc-onboarding-orbit-ring--inner absolute inset-[31%] rounded-full`}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-sweep absolute inset-[8%] rounded-full`}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-satellite xopc-onboarding-orbit-satellite--one absolute inset-[8%] rounded-full`,children:(0,$.jsx)(`i`,{})}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-satellite xopc-onboarding-orbit-satellite--two absolute inset-[24%] rounded-full`,children:(0,$.jsx)(`i`,{})}),(0,$.jsxs)(`span`,{className:`xopc-onboarding-orbit-particles absolute inset-0`,children:[(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{})]}),(0,$.jsx)(`span`,{className:`xopc-onboarding-orbit-core relative flex size-24 items-center justify-center rounded-full`,children:(0,$.jsx)(hj,{className:`size-12 lg:size-14`})})]})}),(0,$.jsx)(`section`,{className:`flex min-h-[30rem] items-center border-t border-edge-subtle bg-surface-panel/80 px-5 py-10 backdrop-blur-2xl sm:px-10 lg:min-h-0 lg:border-l lg:border-t-0 lg:px-[clamp(3rem,6vw,7rem)]`,children:(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage w-full max-w-[36rem]`,children:[c===`callName`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-accent-fg`,children:r===`zh`?`先认识彼此`:`First, let’s meet`}),(0,$.jsx)(`h1`,{className:`mt-3 text-3xl font-semibold tracking-[-0.04em] text-fg sm:text-4xl`,children:a.step0Title}),(0,$.jsx)(`p`,{className:`mt-3 text-sm leading-7 text-fg-muted`,children:a.step0Subtitle}),(0,$.jsxs)(`label`,{className:`mt-10 block`,children:[(0,$.jsx)(`span`,{className:`sr-only`,children:a.profileCallNameLabel}),m?(0,$.jsx)(Ft,{className:`h-24 w-full rounded-3xl`}):(0,$.jsxs)(`span`,{className:`xopc-onboarding-name-envelope group relative flex min-h-24 w-full items-center gap-4 overflow-hidden rounded-3xl border border-edge bg-surface-panel px-5 py-4 shadow-surface`,children:[(0,$.jsx)(`span`,{className:`xopc-onboarding-name-envelope-fold pointer-events-none absolute inset-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`xopc-onboarding-name-envelope-icon relative z-10 flex size-11 shrink-0 items-center justify-center rounded-2xl border border-edge bg-surface-panel text-accent-fg shadow-surface`,"aria-hidden":!0,children:(0,$.jsx)(W_,{className:`size-5`,strokeWidth:1.6})}),(0,$.jsxs)(`span`,{className:`relative z-10 min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block text-[0.68rem] font-semibold uppercase tracking-[0.16em] text-fg-subtle`,children:a.profileCallNameLabel}),(0,$.jsx)(`input`,{autoFocus:!0,autoComplete:`name`,value:p,onChange:e=>s({type:`patch`,patch:{callName:e.target.value}}),onKeyDown:e=>{e.key===`Enter`&&!d&&_()},placeholder:a.profileCallNamePlaceholder,className:`mt-1.5 h-8 w-full bg-transparent text-lg font-medium tracking-[-0.01em] text-fg outline-none placeholder:font-normal placeholder:text-fg-subtle`})]}),(0,$.jsx)(`span`,{className:`xopc-onboarding-name-envelope-seal relative z-10 hidden size-9 shrink-0 items-center justify-center rounded-full border border-accent/25 bg-accent-soft sm:flex`,"aria-hidden":!0,children:(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-accent shadow-[0_0_0_4px_color-mix(in_oklab,var(--color-accent)_12%,transparent)]`})})]})]}),f?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,role:`alert`,children:f}):null,(0,$.jsx)(`div`,{className:`mt-10 flex items-center justify-end gap-3`,children:(0,$.jsxs)(vt,{className:`h-11 bg-accent px-5 text-white hover:bg-accent-hover`,disabled:d||m,onClick:()=>void _(),children:[d?a.savingProfile:a.continue,(0,$.jsx)(cs,{className:`size-4`,"aria-hidden":!0})]})})]}):null,c===`provider`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-accent-fg`,children:r===`zh`?`配置智能模型`:`Configure intelligence`}),(0,$.jsx)(`h1`,{className:`mt-3 text-3xl font-semibold tracking-[-0.04em] text-fg sm:text-4xl`,children:r===`zh`?`选择模型服务`:`Choose an AI service`}),(0,$.jsx)(`p`,{className:`mt-3 text-sm leading-7 text-fg-muted`,children:p.trim()?r===`zh`?`${p.trim()},选择一个服务,我们会为你配置推荐模型。你可以稍后在设置中进行调整。`:`${p.trim()}, choose a service and we’ll configure its recommended model. You can adjust it later in Settings.`:a.step1Subtitle}),(0,$.jsx)(`div`,{className:`mt-8`,children:(0,$.jsx)(xfe,{onSelect:e=>s({type:`patch`,patch:{selectedProvider:e,step:`apiKey`,apiKey:``,error:null}})})}),(0,$.jsxs)(`div`,{className:`mt-8 flex flex-wrap items-center justify-between gap-3`,children:[(0,$.jsx)(vt,{variant:`ghost`,onClick:()=>s({type:`patch`,patch:{step:`callName`,error:null}}),children:a.back}),(0,$.jsx)(y,{to:`/settings/capabilities/models`,className:`text-xs font-medium text-fg-muted hover:text-accent-fg hover:underline`,children:r===`zh`?`打开高级模型设置`:`Open advanced model settings`})]})]}):null,c===`apiKey`?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-accent-fg`,children:r===`zh`?`最后一步`:`One last step`}),(0,$.jsx)(`h1`,{className:`mt-3 text-3xl font-semibold tracking-[-0.04em] text-fg sm:text-4xl`,children:l===`xopc-cloud`?r===`zh`?`连接 XOPC Cloud`:`Connect XOPC Cloud`:r===`zh`?`连接 ${l??``}`:`Connect ${l??``}`}),(0,$.jsx)(`p`,{className:`mt-3 text-sm leading-7 text-fg-muted`,children:l===`xopc-cloud`?r===`zh`?`登录后会自动同步可用模型,不需要填写 API Key。`:`Sign in to sync available models automatically. No API key is required.`:a.step2Subtitle}),(0,$.jsx)(`div`,{className:`mt-9`,children:l===`xopc-cloud`?(0,$.jsx)(m8,{providerId:`xopc-cloud`,displayName:`XOPC Model Service`,connected:!1,onConnected:()=>void x()}):(0,$.jsxs)($.Fragment,{children:[l&&E8[l]?.apiKeyUrl?(0,$.jsxs)(`a`,{href:E8[l].apiKeyUrl,target:`_blank`,rel:`noopener noreferrer`,className:`mb-4 inline-flex items-center gap-1.5 text-sm font-medium text-accent-fg hover:underline`,children:[r===`zh`?`获取 API Key`:`Get an API key`,(0,$.jsx)(ge,{className:`size-3.5`})]}):null,(0,$.jsxs)(`label`,{className:`block`,children:[(0,$.jsx)(`span`,{className:`sr-only`,children:a.step2Placeholder}),(0,$.jsx)(kj,{value:u,onChange:e=>s({type:`patch`,patch:{apiKey:e}}),placeholder:a.step2Placeholder,labels:jj(rt(r).providersSettings),inputClassName:`h-14 rounded-2xl bg-surface-panel px-4 text-base ring-accent focus:border-accent focus:ring-4 focus:ring-accent/10`})]}),(0,$.jsxs)(`div`,{className:`mt-4 flex items-center gap-2 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(Yv,{className:`size-4 text-accent-fg`}),a.step2SecurityNote.replace(`🔒 `,``)]})]})}),d&&l===`xopc-cloud`?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-fg-muted`,children:r===`zh`?`正在应用推荐模型…`:`Applying the recommended model…`}):null,f?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,role:`alert`,children:f}):null,(0,$.jsxs)(`div`,{className:`mt-10 flex items-center justify-between gap-3`,children:[(0,$.jsx)(vt,{variant:`ghost`,disabled:d,onClick:()=>s({type:`patch`,patch:{step:`provider`,error:null}}),children:a.back}),l===`xopc-cloud`?null:(0,$.jsxs)(vt,{className:`h-11 bg-accent px-5 text-white hover:bg-accent-hover`,disabled:d||!u.trim(),onClick:()=>void b(),children:[d?a.continue:r===`zh`?`接入我的工作`:`Connect my work`,(0,$.jsx)(cs,{className:`size-4`,"aria-hidden":!0})]})]})]}):null]},c)})]})]})}function k8(e){return e?.enabled===!0&&(e.state.status===`not_started`||e.state.status===`in_progress`)}function Yfe(e){let t=e.needsModelSetup&&!e.modelGuideDismissed,n=!e.needsModelSetup&&k8(e.workDiscovery);return{open:e.authenticated&&!e.settingsRoute&&e.modelSetupReady&&!e.closed&&(t||n),stage:t?`setup`:`work`}}var Xfe=new Set([`completed`,`failed`,`canceled`]);function Zfe(){return new Promise(e=>window.setTimeout(e,1200))}async function Qfe(e,t){let n=[],r=t.wait??Zfe;for(let i=0;i<e.length&&!t.shouldStop?.();i+=1){let a=e[i];if(a)try{await t.grantDirectory(a.rootPath);let o=await t.startRun(a.rootPath);for(t.onRun(o,i,e.length);!Xfe.has(o.status)&&!t.shouldStop?.();)await r(),o=await t.fetchRun(o.id),t.onRun(o,i,e.length);if(n.push(o),o.status===`canceled`||t.shouldStop?.())break}catch(e){if(t.onError?.(e,a,i),t.shouldStop?.())break}}return n}function $fe(e,t){let n=e.result?.conversationStarter?.trim();if(n)return n;let r=e.result?.suggestions.find(t=>t.id===e.result?.primarySuggestionId)??e.result?.suggestions[0];if(r?.actionPrompt.trim())return r.actionPrompt.trim();let i=e.rootPath.split(/[\\/]/).filter(Boolean).at(-1)??e.rootPath;return t===`zh`?`请先结合 ${i} 当前目录和最近变更,帮我说明这个项目在做什么、现在最值得关注什么,以及建议我下一步从哪里开始。`:`Help me understand ${i}: explain what this project is doing, what matters most right now, and where I should start next.`}var epe={zh:{eyebrow:`待确认`,summaryTitle:`这是我目前的理解`,summaryQuestion:`是否准确?`,matches:`准确`,adjust:`修改`,why:`查看依据`,evidenceHint:`这些内容只用于本次判断。`,current:`当前`,ongoing:`持续`,longTerm:`长期`,correctionTitle:`告诉我正确的重点`,correctionPlaceholder:`你现在真正想推进什么?`,continueWithCorrection:`按此继续`,starterTitle:`从这里开始`,starterHint:`可以修改后直接开始对话。`,startConversation:`进入对话`,cancel:`取消`,memoryEyebrow:`长期理解`,memoryTitle:`要记住这条信息吗?`,remember:`记住`,sessionOnly:`不记住`,edit:`修改`,saveEdit:`保存并记住`,source:`查看依据`,focusEyebrow:`当前关注`,focusTitle:`要持续关注吗?`,focusHint:`只用于排序和提醒,不会自动执行。`,activateFocus:`加入关注`,notNow:`暂时不用`,trustNote:`之后可以随时修改。`,sourcesFinishing:`其他来源还在处理,完成后继续。`},en:{eyebrow:`Review`,summaryTitle:`Here is what I understand so far`,summaryQuestion:`Is this right?`,matches:`Accurate`,adjust:`Edit`,why:`View sources`,evidenceHint:`These sources are only used for this assessment.`,current:`Current`,ongoing:`Ongoing`,longTerm:`Long term`,correctionTitle:`Tell me the right focus`,correctionPlaceholder:`What do you want to move forward right now?`,continueWithCorrection:`Continue`,starterTitle:`Start here`,starterHint:`Edit this if needed, then start the conversation.`,startConversation:`Start conversation`,cancel:`Cancel`,memoryEyebrow:`Lasting understanding`,memoryTitle:`Remember this information?`,remember:`Remember`,sessionOnly:`Do not remember`,edit:`Edit`,saveEdit:`Save and remember`,source:`View sources`,focusEyebrow:`Current focus`,focusTitle:`Keep this in focus?`,focusHint:`This only affects sorting and reminders. It never acts automatically.`,activateFocus:`Add to focus`,notNow:`Not now`,trustNote:`You can change this anytime.`,sourcesFinishing:`Other sources are still processing. Review will continue when ready.`}},A8={high:3,medium:2,low:1};function tpe({run:e,sourceMemories:t,activityRunning:n,language:r,busy:i,error:a,onReviewMemory:o,onFinish:s,onStartConversation:c}){let l=epe[r],u=e.result?.lowConfidence===!0,d=(0,Z.useMemo)(()=>$fe(e,r),[r,e]),[f,p]=(0,Z.useState)(`summary`),[m,h]=(0,Z.useState)(`confirmed`),[g,_]=(0,Z.useState)(u),[v,y]=(0,Z.useState)(u?d:``),[b,x]=(0,Z.useState)(!1),[S,C]=(0,Z.useState)(!1),[w,T]=(0,Z.useState)(!1),[E,D]=(0,Z.useState)(!1),[O,k]=(0,Z.useState)(``),A=(0,Z.useMemo)(()=>{let n=new Map;for(let r of[...e.result?.profileCandidates??[],...t])r.status===`pending`&&n.set(r.assertionId??r.id,r);return[...n.values()].sort((e,t)=>A8[t.confidence]-A8[e.confidence])[0]},[e.result?.profileCandidates,t]),j=e.result?.workThreads?.slice(0,3)??[],M=e.result?.suggestions.find(t=>t.id===e.result?.primarySuggestionId)??e.result?.suggestions[0];(0,Z.useEffect)(()=>{D(!1),k(A?.statement??``)},[A?.id,A?.statement]);let N=(e=m,t=v.trim())=>s(e,e===`corrected`?t:void 0),P=async e=>{h(e),x(!0),!n&&(A?p(`memory`):await N(e,v.trim()))},F=async()=>{let e=v.trim();e&&(C(!0),await c(e,`corrected`)||C(!1))};(0,Z.useEffect)(()=>{!b||n||f!==`summary`||(A?p(`memory`):N())},[n,A,f,b]);let I=async(e,t)=>{A&&await o(A,e,t)&&await N()};return(0,$.jsxs)(`section`,{className:`xopc-understanding-reveal flex min-h-full flex-1 flex-col`,"aria-live":`polite`,children:[f===`summary`?(0,$.jsxs)(`div`,{className:`xopc-reveal-scene mx-auto flex w-full max-w-[40rem] flex-1 flex-col justify-center py-8 text-center sm:py-12`,children:[(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.2em] text-accent-fg`,children:l.eyebrow}),(0,$.jsx)(`h1`,{className:`mx-auto mt-4 max-w-[34rem] text-3xl font-semibold tracking-[-0.035em] text-fg sm:text-[2.25rem]`,children:l.summaryTitle}),(0,$.jsxs)(`div`,{className:`xopc-understanding-hero-card relative mt-8 overflow-hidden rounded-[1.75rem] border border-edge bg-surface-panel px-6 py-7 text-left shadow-elevated sm:px-8`,children:[(0,$.jsx)(npe,{}),(0,$.jsx)(`p`,{className:`relative text-lg font-medium leading-8 text-fg sm:text-xl`,children:e.result?.projectSummary}),e.result?.currentState||j.length||M?.evidence.length?(0,$.jsxs)(`div`,{className:`relative mt-5 border-t border-edge-subtle pt-4`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-xs font-medium text-fg-muted hover:text-fg`,onClick:()=>T(e=>!e),children:[l.why,(0,$.jsx)(is,{className:X(`size-3.5 transition-transform`,w&&`rotate-180`)})]}),w?(0,$.jsxs)(`div`,{className:`mt-3 space-y-3 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(`p`,{className:`text-fg-subtle`,children:l.evidenceHint}),e.result?.currentState?(0,$.jsx)(`p`,{children:e.result.currentState}):null,j.length?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:j.map(e=>(0,$.jsxs)(`span`,{className:`rounded-full bg-surface-muted px-2.5 py-1`,children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:e.title}),` · `,e.horizon===`current`?l.current:e.horizon===`ongoing`?l.ongoing:l.longTerm]},e.id))}):null,M?.evidence.slice(0,3).map((e,t)=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(fm,{className:`mt-0.5 size-3.5 shrink-0 text-accent-fg`}),(0,$.jsxs)(`span`,{children:[e.path?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`code`,{className:`font-mono text-fg`,children:e.path}),`: `]}):null,e.observation]})]},`${t}-${e.path??e.observation}`))]}):null]}):null]}),g?(0,$.jsxs)(`div`,{className:`xopc-reveal-calibration mx-auto mt-7 w-full max-w-xl rounded-2xl border border-edge bg-surface-panel/80 p-5 text-left shadow-surface backdrop-blur-xl`,children:[(0,$.jsx)(`label`,{className:`text-sm font-semibold text-fg`,htmlFor:`understanding-correction`,children:u?l.starterTitle:l.correctionTitle}),u?(0,$.jsx)(`p`,{className:`mt-1.5 text-xs leading-5 text-fg-muted`,children:l.starterHint}):null,(0,$.jsx)(`textarea`,{id:`understanding-correction`,value:v,onChange:e=>y(e.target.value),placeholder:l.correctionPlaceholder,className:`mt-3 min-h-24 w-full resize-y rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-sm leading-6 text-fg outline-none placeholder:text-fg-subtle focus:border-accent focus:ring-2 focus:ring-accent/15`}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[u?null:(0,$.jsx)(vt,{variant:`ghost`,disabled:b,onClick:()=>_(!1),children:l.cancel}),(0,$.jsx)(vt,{variant:`primary`,disabled:i||S||!v.trim(),onClick:()=>void F(),children:u?l.startConversation:l.continueWithCorrection})]})]}):(0,$.jsxs)(`div`,{className:`mx-auto mt-8 w-full max-w-sm`,children:[(0,$.jsx)(`p`,{className:`text-base font-medium text-fg`,children:l.summaryQuestion}),(0,$.jsxs)(`div`,{className:`mt-4 flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsx)(vt,{className:`h-11 flex-1`,variant:`primary`,disabled:b,onClick:()=>void P(`confirmed`),children:l.matches}),(0,$.jsx)(vt,{className:`h-11 flex-1`,variant:`secondary`,disabled:b,onClick:()=>_(!0),children:l.adjust})]})]}),b&&n?(0,$.jsxs)(`p`,{className:`mx-auto mt-5 flex items-center gap-2 text-xs text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-3.5 animate-spin motion-reduce:animate-none`}),l.sourcesFinishing]}):null,a?(0,$.jsx)(`p`,{className:`mt-5 text-sm text-danger`,role:`alert`,children:a}):null]}):null,f===`memory`&&A?(0,$.jsxs)(`div`,{className:`xopc-reveal-scene mx-auto flex w-full max-w-[38rem] flex-1 flex-col justify-center py-10 text-center`,children:[(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.2em] text-accent-fg`,children:l.memoryEyebrow}),(0,$.jsx)(`h1`,{className:`mt-4 text-3xl font-semibold tracking-[-0.035em] text-fg`,children:l.memoryTitle}),(0,$.jsxs)(`article`,{className:`xopc-understanding-review-card mt-7 rounded-[1.75rem] border border-edge bg-surface-panel p-6 text-left shadow-elevated sm:p-8`,children:[(0,$.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,$.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-2xl bg-accent-soft text-accent-fg`,children:(0,$.jsx)(Wy,{className:`size-5`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[E?(0,$.jsx)(`textarea`,{autoFocus:!0,value:O,onChange:e=>k(e.target.value),className:`min-h-28 w-full resize-y rounded-xl border border-edge bg-surface-base px-3 py-2.5 text-base leading-7 text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/15`}):(0,$.jsx)(`p`,{className:`text-lg font-medium leading-8 text-fg`,children:A.statement}),A.evidence.length?(0,$.jsxs)(`details`,{className:`group mt-5 border-t border-edge-subtle pt-4`,children:[(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 text-xs font-medium text-fg-muted marker:content-none`,children:[l.source,(0,$.jsx)(is,{className:`size-3.5 transition-transform group-open:rotate-180`})]}),(0,$.jsx)(`ul`,{className:`mt-3 space-y-2 text-xs leading-5 text-fg-muted`,children:A.evidence.slice(0,3).map(e=>(0,$.jsxs)(`li`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`mt-2 size-1 shrink-0 rounded-full bg-accent/70`}),e]},e))})]}):null]})]}),E?(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsxs)(vt,{variant:`primary`,disabled:i||!O.trim(),onClick:()=>void I(`edited`,O.trim()),children:[i?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(W,{className:`size-4`}),l.saveEdit]}),(0,$.jsx)(vt,{variant:`ghost`,disabled:i,onClick:()=>D(!1),children:l.cancel})]}):(0,$.jsxs)(`div`,{className:`mt-7 flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsxs)(vt,{variant:`primary`,disabled:i,onClick:()=>void I(`accepted`),children:[i?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(W,{className:`size-4`}),l.remember]}),(0,$.jsx)(vt,{variant:`secondary`,disabled:i,onClick:()=>void I(`rejected`),children:l.sessionOnly}),(0,$.jsxs)(vt,{variant:`ghost`,disabled:i,onClick:()=>D(!0),children:[(0,$.jsx)(bv,{className:`size-4`}),l.edit]})]})]}),(0,$.jsx)(`p`,{className:`mt-5 text-xs leading-5 text-fg-muted`,children:l.trustNote}),a?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,role:`alert`,children:a}):null]}):null]})}function npe(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{className:`pointer-events-none absolute -right-10 -top-12 size-52 opacity-45`,"aria-hidden":!0,children:[(0,$.jsx)(`span`,{className:`absolute inset-[12%] rounded-full border border-accent/15`}),(0,$.jsx)(`span`,{className:`absolute inset-[28%] rounded-full border border-accent/20`}),(0,$.jsx)(`span`,{className:`xopc-constellation-core absolute left-[45%] top-[45%] size-[10%] rounded-full bg-accent`}),(0,$.jsx)(`span`,{className:`absolute left-[12%] top-[36%] size-2.5 rounded-full bg-accent/55`}),(0,$.jsx)(`span`,{className:`absolute right-[14%] top-[24%] size-2 rounded-full bg-accent/45`}),(0,$.jsx)(`span`,{className:`absolute bottom-[15%] right-[30%] size-2.5 rounded-full bg-accent/35`})]}),e[0]=t):t=e[0],t}function j8(e,t){return Object.fromEntries(e.map(e=>[e,t]))}function rpe(e,t){let n=j8(t,`running`);for(let t of e)n[t.sourceId]=t.status;return n}async function ipe(e){if(!e)return;let t=Date.now()+75e3;for(;Date.now()<t;){try{let t=await cW(e);if(N8.getState().updateDirectoryRun(t),t.status===`completed`||t.status===`failed`||t.status===`canceled`)return}catch{}await new Promise(e=>window.setTimeout(e,800))}}var M8={status:`idle`,drawerOpen:!1,directoryStatus:`idle`,directoryRun:null,sources:{},itemCounts:{},memories:[],threads:[],error:void 0},N8=at((e,t)=>({...M8,setDrawerOpen:n=>{!n&&t().status===`completed`?e({...M8}):e({drawerOpen:n})},finish:()=>e({...M8}),updateDirectoryRun:n=>{let r=n.status===`completed`?`completed`:n.status===`failed`||n.status===`canceled`?`failed`:`running`,i=Object.values(t().sources).every(e=>e!==`running`&&e!==`idle`),a=Object.values(t().sources).some(e=>e===`denied`||e===`failed`||e===`partial`),o=t().memories.some(e=>e.status===`pending`);e({directoryStatus:r,directoryRun:n,status:r===`completed`&&i?!n.feedback?.recognitionDecision||o?`review_ready`:a?`partial`:`completed`:r===`failed`&&i?`partial`:`running`})},collectSources:async(n,r,i)=>{let a=window.electronAPI?.understandingSources?.collect;if(!(!a||!r.length)){e({status:`running`,sources:j8(r,`running`),itemCounts:Object.fromEntries(r.map(e=>[e,0])),memories:[],threads:[],error:void 0});try{let o=await a(r),s=rpe(o,r),c=Object.fromEntries(o.map(e=>[e.sourceId,e.items.length]));e({sources:s,itemCounts:c});let l=o.flatMap(e=>e.status===`completed`?e.items:[]),u=Object.fromEntries(o.flatMap(e=>e.checkpoint?[[e.sourceId,e.checkpoint]]:[]));l.length&&await ipe(n);let d=l.length?await iW(l,n,i,u):{profileCandidates:[],workThreads:[],knowledgeCandidates:[],sourceStatuses:[]};for(let e of d.sourceStatuses)s[e.sourceId]=e.status;let f=d.profileCandidates,p=Object.values(s).some(e=>e===`denied`||e===`failed`||e===`partial`),m=d.sourceStatuses.flatMap(e=>e.error?[e.error]:[]),h=!n||t().directoryStatus===`completed`;e({sources:s,itemCounts:c,memories:f,threads:d.workThreads,...m.length?{error:m.join(`; `)}:{},status:h?f.some(e=>e.status===`pending`)?`review_ready`:p?`partial`:`completed`:`running`})}catch(t){e(e=>({status:`partial`,sources:Object.fromEntries(Object.entries(e.sources).map(([e,t])=>[e,t===`running`?`failed`:t])),error:t instanceof Error?t.message:String(t)}))}}},reviewMemory:async(t,n,r)=>{try{r?await T8(t,r):await aW([{assertionId:t,status:n?`accepted`:`rejected`}]),e(e=>{let i=e.memories.map(e=>e.assertionId===t?{...e,...r?{statement:r}:{},status:r?`edited`:n?`accepted`:`rejected`}:e);return{memories:i,status:i.some(e=>e.status===`pending`)?`review_ready`:Object.values(e.sources).some(e=>e===`denied`||e===`failed`||e===`partial`)?`partial`:`completed`,error:void 0}})}catch(t){throw e({error:t instanceof Error?t.message:String(t)}),t}}})),ape={folder:Tp,file:wf,recent:Gd,git:fm,calendar:za,task:j_,note:Vi,mail:W_,message:ev,service:Tv,data:gu},P8=[{x:`-13.5rem`,y:`-6.8rem`,delay:`-0.2s`},{x:`-2.5rem`,y:`-9.1rem`,delay:`-1.15s`},{x:`11.8rem`,y:`-6.2rem`,delay:`-2.05s`},{x:`13.8rem`,y:`4.3rem`,delay:`-3s`},{x:`3.5rem`,y:`8.8rem`,delay:`-3.95s`},{x:`-12.2rem`,y:`6.5rem`,delay:`-4.9s`}];function ope(e){let t=(0,Q.c)(27),{signals:n,ariaLabel:r,centerLabel:i}=e,a,o,s,c,l,u,d;if(t[0]!==r||t[1]!==n){let e=n.slice(0,P8.length);a=`xopc-source-convergence relative mx-auto h-[19rem] w-full max-w-[34rem]`,o=`img`,s=r,t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(`div`,{className:`xopc-source-convergence-field absolute inset-0`,"aria-hidden":!0}),l=(0,$.jsx)(`span`,{className:`xopc-source-convergence-orbit xopc-source-convergence-orbit--outer absolute left-1/2 top-1/2 rounded-full border border-accent/10`,"aria-hidden":!0}),u=(0,$.jsx)(`span`,{className:`xopc-source-convergence-orbit xopc-source-convergence-orbit--inner absolute left-1/2 top-1/2 rounded-full border border-accent/15`,"aria-hidden":!0}),t[9]=c,t[10]=l,t[11]=u):(c=t[9],l=t[10],u=t[11]),d=e.map(lpe),t[0]=r,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=d}else a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8];let f,p;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(`span`,{className:`xopc-source-convergence-core-glow absolute -inset-10 rounded-full`}),p=(0,$.jsx)(hj,{className:`relative size-16`}),t[12]=f,t[13]=p):(f=t[12],p=t[13]);let m;t[14]===i?m=t[15]:(m=(0,$.jsxs)(`div`,{className:`xopc-source-convergence-core absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center`,"aria-hidden":!0,children:[f,p,(0,$.jsx)(`span`,{className:`relative mt-3 text-[11px] font-semibold tracking-[0.16em] text-accent-fg`,children:i})]}),t[14]=i,t[15]=m);let h;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(`div`,{className:`xopc-source-convergence-particles pointer-events-none absolute inset-0`,"aria-hidden":!0,children:Array.from({length:12}).map(cpe)}),t[16]=h):h=t[16];let g;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`xopc-source-convergence-meteors pointer-events-none absolute inset-0`,"aria-hidden":!0,children:Array.from({length:6}).map(spe)}),t[17]=g):g=t[17];let _;return t[18]!==a||t[19]!==m||t[20]!==o||t[21]!==s||t[22]!==c||t[23]!==l||t[24]!==u||t[25]!==d?(_=(0,$.jsxs)(`div`,{className:a,role:o,"aria-label":s,children:[c,l,u,d,m,h,g]}),t[18]=a,t[19]=m,t[20]=o,t[21]=s,t[22]=c,t[23]=l,t[24]=u,t[25]=d,t[26]=_):_=t[26],_}function spe(e,t){return(0,$.jsx)(`i`,{},t)}function cpe(e,t){return(0,$.jsx)(`i`,{},t)}function lpe(e,t){let n=P8[t]??P8[0],r=ape[e.kind];return(0,$.jsx)(`span`,{className:`xopc-source-convergence-signal absolute left-1/2 top-1/2`,style:{"--xopc-source-x":n.x,"--xopc-source-y":n.y,"--xopc-source-delay":n.delay},"data-position":t,"aria-hidden":!0,children:(0,$.jsxs)(`span`,{className:`xopc-source-convergence-chip flex max-w-44 items-center gap-2 rounded-xl border border-edge bg-surface-panel/95 px-3 py-2 text-fg shadow-elevated backdrop-blur-md`,children:[(0,$.jsx)(r,{className:`size-3.5 shrink-0 text-accent-fg`}),(0,$.jsxs)(`span`,{className:`min-w-0`,title:e.detail,children:[(0,$.jsx)(`span`,{className:`block truncate text-xs font-medium`,children:e.label}),e.meta?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-[10px] font-normal text-fg-muted`,children:e.meta}):null]})]})},e.id)}var upe={sm:{frame:`size-9 rounded-lg`,image:`size-6`,fallback:`size-4`},md:{frame:`size-10 rounded-xl`,image:`size-7`,fallback:`size-5`},lg:{frame:`size-12 rounded-xl`,image:`size-8`,fallback:`size-5`}};function F8(e){let t=(0,Q.c)(18),{connector:n,size:r,className:i}=e,a=r===void 0?`md`:r,o=n?.branding?.logoUrl,[s,c]=(0,Z.useState)(!1),l=upe[a],u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{c(!1)},t[0]=u):u=t[0];let d;t[1]===o?d=t[2]:(d=[o],t[1]=o,t[2]=d),(0,Z.useEffect)(u,d);let f;t[3]!==i||t[4]!==l.frame?(f=X(`flex shrink-0 items-center justify-center overflow-hidden border border-edge bg-surface-base`,l.frame,i),t[3]=i,t[4]=l.frame,t[5]=f):f=t[5];let p;t[6]===n?p=t[7]:(p=n?.branding?.backgroundColor?{backgroundColor:n.branding.backgroundColor}:void 0,t[6]=n,t[7]=p);let m=n?.displayName,h;t[8]!==l.fallback||t[9]!==l.image||t[10]!==s||t[11]!==o?(h=o&&!s?(0,$.jsx)(`img`,{src:o,alt:``,loading:`lazy`,draggable:!1,className:X(`object-contain`,l.image),onError:()=>c(!0)}):(0,$.jsx)(dv,{className:X(`text-fg-muted`,l.fallback),"aria-hidden":!0}),t[8]=l.fallback,t[9]=l.image,t[10]=s,t[11]=o,t[12]=h):h=t[12];let g;return t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h?(g=(0,$.jsx)(`span`,{className:f,style:p,title:m,children:h}),t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g):g=t[17],g}function I8(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,n),e)}var L8=X(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,bj),dpe=X(L8,`min-h-28 font-mono`);function fpe(e,t){return e?t.healthStatusLabels[e]??e:t.healthStatusPending}function ppe(e,t){let n=t.trim();return e===`json`?n?JSON.parse(n):void 0:e===`number`?n?Number(n):void 0:e===`boolean`?n===`true`:n||void 0}function R8(e){let t=(0,Q.c)(12),{title:n,items:r}=e;if(r.length===0)return null;let i;t[0]===n?i=t[1]:(i=(0,$.jsx)(`div`,{className:`border-b border-edge px-3 py-2 text-xs font-semibold text-fg`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=r.slice(0,12).map(mpe),t[2]=r,t[3]=a);let o;t[4]===r.length?o=t[5]:(o=r.length>12?(0,$.jsxs)(`div`,{className:`px-3 py-2 text-xs text-fg-subtle`,children:[`+`,r.length-12]}):null,t[4]=r.length,t[5]=o);let s;t[6]!==a||t[7]!==o?(s=(0,$.jsxs)(`div`,{className:`max-h-40 overflow-y-auto`,children:[a,o]}),t[6]=a,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==i||t[10]!==s?(c=(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge bg-surface-panel`,children:[i,s]}),t[9]=i,t[10]=s,t[11]=c):c=t[11],c}function mpe(e){return(0,$.jsxs)(`div`,{className:`border-b border-edge-subtle px-3 py-2 last:border-b-0`,children:[(0,$.jsx)(`div`,{className:`break-words font-mono text-xs font-medium text-fg`,children:e.title}),e.description?(0,$.jsx)(`div`,{className:`mt-1 line-clamp-2 text-xs leading-5 text-fg-muted`,children:e.description}):null]},e.id)}function z8({draft:e,onChange:t,onClose:n,onInstalled:r,t:i}){let{connector:a}=e,o=a.runtime.type===`composio`&&a.runtime.role===`toolkit`,s=a.runtime.type===`composio`&&a.runtime.role===`toolkit`?a.runtime.toolkit:null,c=a.understanding!=null,[l,u]=(0,Z.useState)(!o),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(o),[h,g]=(0,Z.useState)(``),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(!1),[C,w]=(0,Z.useState)(c);(0,Z.useEffect)(()=>{if(!o)return;let e=!1;return Ik().then(t=>{e||(f(t),u(t.configured))}).catch(t=>{e||v(t instanceof Error?t.message:String(t))}).finally(()=>{e||m(!1)}),()=>{e=!0}},[a.id,o]),(0,Z.useEffect)(()=>{if(!s||!l)return;let e=!1;return S(!0),Wk(s).then(t=>{e||b(t)}).catch(t=>{e||v(t instanceof Error?t.message:String(t))}).finally(()=>{e||S(!1)}),()=>{e=!0}},[l,s]);let T=e.result?`complete`:e.installing?`health`:`configure`,E=[{id:`configure`,label:i.connectStepConfigure},{id:`health`,label:i.connectStepVerify},{id:`complete`,label:i.connectStepReady}],D=(0,Z.useCallback)(async()=>{let n=Wt(),d=a.runtime.type===`mcp`&&a.auth.mode===`oauth`,p=(o||d)&&!n?window.open(``,`_blank`):null;p&&(p.opener=null),v(null),t({...e,installing:!0,error:null,result:null,health:null});try{if(o&&!l){if(!h.trim())throw Error(i.composioSetupSignInRequired);await Lk(h),f({configured:!0,mode:`byok`}),u(!0)}let m=o&&s?y??await Wk(s):null,g=e.config.authConfigId?.trim();if(m?.requiresCustomAuthConfig&&!g)throw Error(i.composioAuthConfigRequired);if(g){let e=m?.authConfigs.find(e=>e.id===g);if(!e||e.status!==`ENABLED`||!e.isEnabledForToolRouter)throw Error(i.composioAuthConfigUnavailable)}let _={};for(let t of a.setup.config??[]){let n=ppe(t.type,e.config[t.key]??``);n!==void 0&&(_[t.key]=n)}g&&(_.authConfigId=g);let v=e.store?await Mk(e.store.packageName,{secrets:e.secrets,config:_},e.store.version):await Rk(a.id,{secrets:e.secrets,config:_,definition:a.source===`registry`?a:void 0}),b=null;try{if(o)if((s?await qk(s).catch(()=>null):null)?.status===`connected`){p?.close();let e=await Gk(s);if(c&&C){if(!e.accountId)throw Error(`Connector account is unavailable.`);await nA(e.accountId)}}else{let e=await Pk(a.id);if(!e.authorizationUrl)throw Error(`The connection service did not return an authorization URL.`);if(n){let t=await window.electronAPI?.shell?.openExternalUrl(e.authorizationUrl);if(!t?.ok)throw Error(t?.error??`Could not open the system browser.`)}else p?p.location.href=e.authorizationUrl:window.open(e.authorizationUrl,`_blank`,`noopener,noreferrer`);let t=await Gk(s,e.connectionId);if(p?.close(),c&&C){if(!t.accountId)throw Error(`Connector account is unavailable.`);await nA(t.accountId)}}else if(d){let e=await Pk(v.instanceId);if(!e.authorizationUrl&&e.status!==`connected`)throw Error(`The MCP server did not return an authorization URL.`);if(e.authorizationUrl)if(n){let t=await window.electronAPI?.shell?.openExternalUrl(e.authorizationUrl);if(!t?.ok)throw Error(t?.error??`Could not open the system browser.`)}else p?p.location.href=e.authorizationUrl:window.open(e.authorizationUrl,`_blank`,`noopener,noreferrer`);await Fk(v.instanceId),p?.close()}}catch(n){p?.close(),t({...e,installing:!1,result:v,health:null,error:n instanceof Error?n.message:String(n)}),await r(v);return}if(!o)try{b=await Hk(v.instanceId)}catch{b=null}t({...e,installing:!1,result:v,health:b}),await r(v)}catch(n){p?.close(),t({...e,installing:!1,error:n instanceof Error?n.message:String(n)})}},[c,h,y,l,s,a,e,o,C,t,r,i.composioAuthConfigRequired,i.composioAuthConfigUnavailable]),O=y?.authConfigs.filter(e=>e.status===`ENABLED`&&e.isEnabledForToolRouter)??[],k=y?.requiresCustomAuthConfig===!0,A=l&&k&&!e.config.authConfigId?.trim();return(0,$.jsx)(ne,{open:!0,onOpenChange:e=>{e||n()},children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(ee,{className:X(`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] flex h-[min(100vh-2rem,36rem)] w-[min(100%-2rem,min(92vw,42rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden`,`rounded-2xl border border-edge bg-surface-panel shadow-float dark:border-edge`),children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge-subtle px-6 py-5`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,$.jsx)(F8,{connector:a,size:`lg`}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:I8(i.connectDialogTitle,{name:a.displayName})}),(0,$.jsx)(B,{className:`mt-1 line-clamp-3 text-sm text-fg-muted`,children:a.description})]})]}),(0,$.jsx)(V,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:X(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.focusRingPanel),"aria-label":i.modalClose,children:[(0,$.jsx)(Ne,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`sr-only`,children:i.modalClose})]})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-6 py-5`,children:[(0,$.jsx)(`div`,{className:`mb-5 grid grid-cols-3 gap-2`,"aria-label":i.connectProgressAria,children:E.map((e,t)=>{let n=E.findIndex(e=>e.id===T);return(0,$.jsxs)(`div`,{className:X(`rounded-xl border px-3 py-2 text-xs font-medium`,t===n?`border-accent bg-accent-soft text-accent-fg`:t<n?`border-emerald-200 bg-emerald-50 text-emerald-800 dark:border-emerald-900/40 dark:bg-emerald-950/40 dark:text-emerald-200`:`border-edge bg-surface-base text-fg-muted`),children:[(0,$.jsxs)(`span`,{className:`mr-1 tabular-nums`,children:[t+1,`.`]}),e.label]},e.id)})}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[o&&p?(0,$.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,"aria-busy":`true`,"aria-label":i.composioSetupTitle,children:[(0,$.jsx)(Ft,{className:`h-4 w-40`}),(0,$.jsx)(Ft,{className:`mt-2 h-3 w-72 max-w-full`}),(0,$.jsx)(Ft,{className:`mt-3 h-16 w-full rounded-xl`})]}):o&&!l?(0,$.jsxs)(`section`,{className:`rounded-2xl border border-accent/25 bg-accent-soft/50 p-4`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:i.composioSetupTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:i.composioSetupHint}),(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(m8,{providerId:`xopc-cloud`,displayName:`XOPC Cloud`,connected:!1,onConnected:()=>{Ik().then(e=>{f(e),u(e.configured)})}})}),(0,$.jsxs)(`details`,{className:`mt-3 rounded-xl border border-edge bg-surface-base p-3`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer text-xs font-medium text-fg`,children:i.composioSetupByok}),(0,$.jsxs)(`ol`,{className:`mt-3 list-inside list-decimal space-y-1 text-xs text-fg-muted`,children:[(0,$.jsx)(`li`,{children:i.composioSetupStepProject}),(0,$.jsx)(`li`,{children:i.composioSetupStepKey}),(0,$.jsx)(`li`,{children:i.composioSetupStepPaste})]}),(0,$.jsxs)(`a`,{className:`mt-3 inline-flex items-center gap-1 text-xs font-medium text-accent-fg hover:underline`,href:`https://app.composio.dev`,target:`_blank`,rel:`noreferrer`,children:[i.composioSetupOpenDashboard,(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0})]}),(0,$.jsx)(kj,{className:`mt-3`,value:h,onChange:g,labels:i.secretInputLabels,placeholder:i.composioSetupKeyPlaceholder}),(0,$.jsx)(`p`,{className:`mt-2 text-[11px] text-fg-subtle`,children:i.composioSetupStorageHint})]})]}):null,o&&c?(0,$.jsxs)(`label`,{className:`flex items-start gap-3 rounded-2xl border border-edge bg-surface-base p-4`,children:[(0,$.jsx)(`input`,{type:`checkbox`,className:`mt-0.5 size-4 accent-accent`,checked:C,onChange:e=>w(e.currentTarget.checked)}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:i.learnAfterConnect}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:i.learnAfterConnectHint})]})]}):null,o&&l?(0,$.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:i.composioAuthConfigTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:k?i.composioAuthConfigRequiredHint:i.composioAuthConfigOptionalHint})]}),d?.mode===`byok`?(0,$.jsxs)(`a`,{className:`inline-flex items-center gap-1 text-xs font-medium text-accent-fg hover:underline`,href:`https://app.composio.dev`,target:`_blank`,rel:`noreferrer`,children:[i.composioAuthConfigManage,(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0})]}):(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2.5 py-1 text-xs font-medium text-accent-fg`,children:i.composioSetupManaged})]}),d?.mode===`managed`?null:x?(0,$.jsx)(Ft,{className:`mt-3 h-10 w-full`}):(0,$.jsxs)(ce,{className:X(L8,`mt-3`),value:e.config.authConfigId??``,onChange:n=>t({...e,config:{...e.config,authConfigId:n.currentTarget.value},error:null}),children:[k?null:(0,$.jsx)(ue,{value:``,children:i.composioAuthConfigManaged}),k&&!e.config.authConfigId?(0,$.jsx)(ue,{value:``,disabled:!0,children:i.composioAuthConfigSelect}):null,O.map(e=>(0,$.jsxs)(ue,{value:e.id,children:[e.name,` · `,e.authScheme??`OAuth`,` · `,e.id]},e.id))]}),!x&&k&&O.length===0?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-amber-700 dark:text-amber-300`,children:i.composioAuthConfigEmpty}):null]}):null,e.store?(0,$.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:i.detailPermissions}),(0,$.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-1.5`,children:[(e.store.permissions.data??[]).map(e=>(0,$.jsx)(`span`,{className:`rounded-md border border-edge bg-surface-panel px-2 py-1 text-xs text-fg-muted`,children:e},e)),(e.store.permissions.networkDomains??[]).map(e=>(0,$.jsx)(`span`,{className:`rounded-md border border-edge bg-surface-panel px-2 py-1 text-xs text-fg-muted`,children:e},e)),(0,$.jsx)(`span`,{className:`rounded-md border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 text-xs text-emerald-700 dark:text-emerald-300`,children:i.storeLocalExecDenied})]})]}):null,(a.setup.secrets??[]).map(n=>(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:n.label}),n.description?(0,$.jsx)(`span`,{className:`text-xs text-fg-subtle`,children:n.description}):null,(0,$.jsx)(kj,{value:e.secrets[n.key]??``,onChange:r=>t({...e,secrets:{...e.secrets,[n.key]:r},error:null}),labels:i.secretInputLabels,placeholder:n.required?i.requiredPlaceholder:i.optionalPlaceholder})]},n.key)),(a.setup.config??[]).map(n=>(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:n.label}),n.type===`json`?(0,$.jsx)(`textarea`,{className:dpe,value:e.config[n.key]??``,placeholder:n.placeholder,onChange:r=>t({...e,config:{...e.config,[n.key]:r.currentTarget.value},error:null})}):(0,$.jsx)(`input`,{className:L8,value:e.config[n.key]??``,placeholder:n.placeholder,onChange:r=>t({...e,config:{...e.config,[n.key]:r.currentTarget.value},error:null})})]},n.key)),e.installing?(0,$.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-base p-4 text-sm text-fg-muted`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-fg`,children:[(0,$.jsx)(je,{className:`size-4 animate-spin text-accent`,"aria-hidden":!0}),i.connectingTitle]}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:i.connectingHint})]}):null,e.error?(0,$.jsx)(`p`,{className:`rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600`,children:e.error}):null,_?(0,$.jsx)(`p`,{className:`rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600`,children:_}):null,e.result?(0,$.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-base p-4 text-sm text-fg-muted`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,$.jsx)(`div`,{children:(0,$.jsx)(`p`,{className:`font-medium text-fg`,children:i.connectedBadge})}),(0,$.jsx)(`span`,{className:X(`rounded-full px-2 py-0.5 text-xs font-medium`,e.health?.ok?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e.health?`bg-amber-500/10 text-amber-700 dark:text-amber-300`:`bg-surface-hover text-fg-muted`),children:e.health?.ok?i.healthStatusHealthy:fpe(e.health?.status,i)})]}),e.health?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`mt-3 grid gap-2 text-xs sm:grid-cols-3`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge bg-surface-panel px-3 py-2`,children:[(0,$.jsx)(`div`,{className:`font-semibold text-fg`,children:e.health.toolCount}),(0,$.jsx)(`div`,{children:i.toolsMetric})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge bg-surface-panel px-3 py-2`,children:[(0,$.jsx)(`div`,{className:`font-semibold text-fg`,children:e.health.resourceCount}),(0,$.jsx)(`div`,{children:i.resourcesMetric})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge bg-surface-panel px-3 py-2`,children:[(0,$.jsx)(`div`,{className:`font-semibold text-fg`,children:e.health.promptCount}),(0,$.jsx)(`div`,{children:i.promptsMetric})]})]}),(0,$.jsxs)(`div`,{className:`mt-3 grid gap-2`,children:[(0,$.jsx)(R8,{title:i.detailTools,items:e.health.tools.map(e=>({id:e.name,title:e.shortName??e.name,description:e.description}))}),(0,$.jsx)(R8,{title:i.detailResources,items:e.health.resources.map(e=>({id:e.uri,title:e.title??e.name??e.uri,description:e.description??e.uri}))}),(0,$.jsx)(R8,{title:i.detailPrompts,items:e.health.prompts.map(e=>({id:e.name,title:e.title??e.name,description:e.description??I8(i.promptArgumentCount,{count:String(e.argumentCount)})}))})]})]}):(0,$.jsx)(`p`,{className:`mt-3`,children:i.installedWithoutHealth}),e.health?.action?(0,$.jsx)(`p`,{className:`mt-3 text-xs text-fg-subtle`,children:e.health.action}):null]}):null]})]}),(0,$.jsx)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-6 py-4`,children:(0,$.jsxs)(vt,{variant:`primary`,disabled:!!e.result||e.installing||p||x||A||o&&!l&&!h.trim(),onClick:()=>void D(),children:[e.installing?(0,$.jsx)(je,{className:`size-4 animate-spin`}):e.result?(0,$.jsx)(me,{className:`size-4`}):(0,$.jsx)(dv,{className:`size-4`}),e.result?i.connectedBadge:i.connect]})})]})]})})}function B8(e,t){let n={};for(let t of e.setup.secrets??[])n[t.key]=``;let r={};for(let t of e.setup.config??[])r[t.key]=t.defaultValue===void 0?``:typeof t.defaultValue==`string`?t.defaultValue:JSON.stringify(t.defaultValue,null,2);return{connector:e,secrets:n,config:r,installing:!1,error:null,result:null,health:null,...t?{store:t}:{}}}var hpe=[`gmail`,`googlecalendar`,`googledrive`,`github`,`linear`];function V8({toolkit:e,displayName:t,description:n,category:r,mode:i,bootstrapWindowDays:a,logoFileName:o=e}){return{id:`composio-${e}`,version:`sessions-v1`,displayName:t,description:n,category:r,kind:`composio`,source:`registry`,capabilities:[`tools`,`auth.oauth`,`events`,`workflows`,`context`,`memory_source`],benefits:[`understand`,`act`],understanding:{mode:i,bootstrapWindowDays:a,readOnly:!0},tags:[`composio`,e,`verified`],branding:{logoUrl:`/connector-icons/${o}.svg`,source:`builtin`},verificationLevel:`verified`,auth:{mode:`oauth`,provider:`composio`},setup:{},runtime:{type:`composio`,toolkit:e,role:`toolkit`},integrationStrategy:{lane:`composio`,workload:`long_tail`,preferred:!0}}}var H8=[V8({toolkit:`gmail`,displayName:`Gmail`,description:`Find and understand recent email, then draft or send with your approval.`,category:`automation`,mode:`activity`,bootstrapWindowDays:30}),V8({toolkit:`googlecalendar`,displayName:`Google Calendar`,description:`Understand your schedule and work with approved calendar events.`,category:`automation`,mode:`activity`,bootstrapWindowDays:90,logoFileName:`google-calendar`}),V8({toolkit:`googledrive`,displayName:`Google Drive`,description:`Search and understand approved files in Google Drive.`,category:`data`,mode:`inventory`,bootstrapWindowDays:90,logoFileName:`google-drive`}),V8({toolkit:`github`,displayName:`GitHub`,description:`Understand repositories, issues, pull requests, and reviews.`,category:`code`,mode:`activity`,bootstrapWindowDays:90}),V8({toolkit:`linear`,displayName:`Linear`,description:`Understand and work with Linear issues and projects.`,category:`code`,mode:`activity`,bootstrapWindowDays:60})];function U8(e){return e.runtime.type===`composio`&&e.runtime.role===`toolkit`?e.runtime.toolkit.toLocaleLowerCase():``}function W8(e){let t=new Map(hpe.map((e,t)=>[e,t]));return e.filter(e=>e.understanding!=null&&U8(e)).sort((e,n)=>(t.get(U8(e))??2**53-1)-(t.get(U8(n))??2**53-1)||e.displayName.localeCompare(n.displayName))}function gpe(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t)n.set(e.id,e);return W8([...n.values()])}var _pe=2500;function G8(e){return!!(e?.enabled&&(e.status===`connected`||e.connectionStatus===`connected`||e.authStatus===`connected`))}function vpe(e){return e===`gmail`?`mail`:e===`googlecalendar`?`calendar`:e===`googledrive`?`data`:e===`github`?`git`:e===`linear`?`task`:`service`}function ype(e){let t=(0,Q.c)(58),{busy:n,onBack:r,onContinue:i,onSkip:a,onConnectedSignalsChange:o}=e,s=rt(ct(wpe)),c=s.onboarding.workDiscovery,l=s.connectorsSettings,[u,d]=(0,Z.useState)(Cpe),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=[],t[0]=f):f=t[0];let[p,m]=(0,Z.useState)(f),[h,g]=(0,Z.useState)(!0),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(null),C;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(C=async()=>{let e=await Nk();return m(e),e},t[1]=C):C=t[1];let w=C,T,E;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=!1,t=window.setTimeout(()=>{e||g(!1)},_pe);return Nk().then(t=>{e||m(t)}).catch(t=>{e||v(t instanceof Error?t.message:String(t))}).finally(()=>{e||g(!1),window.clearTimeout(t)}),kk({page:1,pageSize:24,verification:`verified`}).then(t=>{e||d(gpe(H8,t.connectors))}).catch(Spe),()=>{e=!0,window.clearTimeout(t)}},E=[],t[2]=T,t[3]=E):(T=t[2],E=t[3]),(0,Z.useEffect)(T,E);let D;t[4]===p?D=t[5]:(D=new Map(p.map(xpe)),t[4]=p,t[5]=D);let O=D,k;if(t[6]!==u||t[7]!==O){let e;t[9]===O?e=t[10]:(e=e=>{if(!G8(O.get(e.id)))return[];let t=U8(e);return[{id:e.id,label:e.displayName,kind:vpe(t)}]},t[9]=O,t[10]=e),k=u.flatMap(e),t[6]=u,t[7]=O,t[8]=k}else k=t[8];let A=k,j,M;t[11]!==A||t[12]!==o?(j=()=>{o(A)},M=[A,o],t[11]=A,t[12]=o,t[13]=j,t[14]=M):(j=t[13],M=t[14]),(0,Z.useEffect)(j,M);let N;t[15]!==u||t[16]!==y?(N=y?u:u.slice(0,3),t[15]=u,t[16]=y,t[17]=N):N=t[17];let P=N,F=A.length,I;t[18]!==l||t[19]!==c.connected||t[20]!==c.noWorkServices||t[21]!==O||t[22]!==h||t[23]!==S||t[24]!==P?(I=P.length?(0,$.jsx)(`div`,{className:`divide-y divide-edge-subtle overflow-hidden rounded-xl border border-edge-subtle bg-surface-base/55`,children:P.map(e=>{let t=G8(O.get(e.id));return(0,$.jsxs)(`article`,{className:`flex min-h-[4.75rem] items-center gap-3 px-3 py-3 sm:px-4`,children:[(0,$.jsx)(F8,{connector:e,size:`sm`}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:e.displayName}),(0,$.jsx)(`p`,{className:`mt-1 line-clamp-1 text-xs text-fg-muted`,children:e.description})]}),t?(0,$.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5 text-xs font-medium text-success`,children:[(0,$.jsx)(me,{className:`size-4`}),c.connected]}):h?(0,$.jsx)(`span`,{className:`inline-flex h-8 w-[4.5rem] shrink-0 items-center justify-center text-fg-muted`,"aria-label":l.loading,children:(0,$.jsx)(je,{className:`size-4 animate-spin`})}):(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:`h-8 shrink-0 px-3 text-xs`,onClick:()=>S(B8(e)),children:[(0,$.jsx)(Tv,{className:`size-3.5`}),l.connect]})]},e.id)})}):(0,$.jsx)(`p`,{className:`rounded-xl border border-dashed border-edge px-4 py-8 text-center text-sm text-fg-muted`,children:c.noWorkServices}),t[18]=l,t[19]=c.connected,t[20]=c.noWorkServices,t[21]=O,t[22]=h,t[23]=S,t[24]=P,t[25]=I):I=t[25];let L;t[26]!==u.length||t[27]!==c.showFewerServices||t[28]!==c.showMoreServices||t[29]!==y||t[30]!==b?(L=u.length>3?(0,$.jsxs)(`button`,{type:`button`,className:`mx-auto mt-3 flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-accent-fg hover:underline`,onClick:()=>b(bpe),children:[y?(0,$.jsx)(ls,{className:`size-3.5`}):(0,$.jsx)(is,{className:`size-3.5`}),y?c.showFewerServices:c.showMoreServices]}):null,t[26]=u.length,t[27]=c.showFewerServices,t[28]=c.showMoreServices,t[29]=y,t[30]=b,t[31]=L):L=t[31];let R;t[32]!==c.connectorLoadFailed||t[33]!==_?(R=_?(0,$.jsxs)(`p`,{className:`mt-3 text-center text-xs text-danger`,role:`alert`,children:[c.connectorLoadFailed,`: `,_]}):null,t[32]=c.connectorLoadFailed,t[33]=_,t[34]=R):R=t[34];let z;t[35]===n?z=t[36]:(z=n?(0,$.jsx)(je,{className:`size-4 animate-spin`}):null,t[35]=n,t[36]=z);let B;t[37]!==n||t[38]!==c.startUnderstanding||t[39]!==i||t[40]!==z?(B=(0,$.jsxs)(vt,{type:`button`,variant:`primary`,className:`h-11 flex-1`,disabled:n,onClick:i,children:[z,c.startUnderstanding]}),t[37]=n,t[38]=c.startUnderstanding,t[39]=i,t[40]=z,t[41]=B):B=t[41];let V;t[42]!==n||t[43]!==c.back||t[44]!==r?(V=(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-11 flex-1`,disabled:n,onClick:r,children:c.back}),t[42]=n,t[43]=c.back,t[44]=r,t[45]=V):V=t[45];let H;t[46]!==B||t[47]!==V?(H=(0,$.jsxs)(`div`,{className:`mt-7 flex flex-col gap-3 sm:flex-row-reverse`,children:[B,V]}),t[46]=B,t[47]=V,t[48]=H):H=t[48];let ee;t[49]!==n||t[50]!==c.skipAndEnter||t[51]!==a?(ee=(0,$.jsx)(`button`,{type:`button`,className:`mx-auto mt-6 text-sm text-fg-muted hover:text-fg hover:underline`,disabled:n,onClick:a,children:c.skipAndEnter}),t[49]=n,t[50]=c.skipAndEnter,t[51]=a,t[52]=ee):ee=t[52];let te;return t[53]!==l||t[54]!==x||t[55]!==w||t[56]!==S?(te=x?(0,$.jsx)(z8,{draft:x,onChange:S,onClose:()=>S(null),t:l,onInstalled:async()=>{await w(),S(null)}}):null,t[53]=l,t[54]=x,t[55]=w,t[56]=S,t[57]=te):te=t[57],(0,$.jsxs)(`section`,{className:`mx-auto flex w-full max-w-[42rem] flex-1 flex-col`,"aria-labelledby":`work-discovery-connectors-title`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.16em] text-accent-fg`,children:c.connectorStepEyebrow}),(0,$.jsx)(`h1`,{id:`work-discovery-connectors-title`,className:`mt-2 text-2xl font-semibold tracking-tight text-fg`,children:c.connectorStepTitle}),(0,$.jsx)(`p`,{className:`mx-auto mt-3 max-w-[36rem] text-[0.95rem] leading-7 text-fg-muted`,children:c.connectorStepSubtitle})]}),(0,$.jsxs)(`div`,{className:`mt-7 rounded-2xl border border-edge bg-surface-panel p-3 shadow-surface sm:p-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-1 pb-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:c.popularWorkServices}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:c.connectorsOptional})]}),F?(0,$.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5 rounded-full bg-success-soft px-2.5 py-1 text-xs font-medium text-success`,children:[(0,$.jsx)(me,{className:`size-3.5`}),c.connectedCount.replace(`{{count}}`,String(F))]}):null]}),I,L,R]}),H,ee,te]})}function bpe(e){return!e}function xpe(e){return[e.connectorId,e]}function Spe(){}function Cpe(){return W8(H8)}function wpe(e){return e.language}var Tpe=new Set([`local-recent-files`,`chromium-bookmarks`,`apple-notes`,`apple-mail`,`apple-calendar`,`apple-reminders`]);function Epe(e){return new Set(e.filter(e=>e.availability===`available`&&Tpe.has(e.id)).map(e=>e.id))}var Dpe=t({WorkDiscoveryPage:()=>X8}),K8=[`folder_structure`,`recent_progress`,`next_steps`];function q8(e){return e instanceof Error?e.message:String(e)}function J8(e){return e.replaceAll(`\\`,`/`).split(`/`).filter(Boolean).slice(-2).join(`/`)||e}function Y8(e,t){return e.replace(`{{count}}`,String(t))}function X8({embedded:e=!1,onRequestClose:t,onNavigateAway:n}={}){let r=ct(e=>e.language),i=rt(r).onboarding.workDiscovery,a=rt(r).chat.workingDirectory,o=p(),[s]=g(),c=s.get(`new`)===`1`,[l,u]=(0,Z.useState)(`loading`),[d,f]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(null),[C,w]=(0,Z.useState)(!1),[T,E]=(0,Z.useState)([]),[D,O]=(0,Z.useState)(()=>new Set),[k,A]=(0,Z.useState)([]),[j,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)({current:0,total:0}),[F,I]=(0,Z.useState)([]),[L,R]=(0,Z.useState)(()=>new Set),[z,B]=(0,Z.useState)([]),V=(0,Z.useRef)(!1),H=N8(e=>e.memories),ee=N8(e=>e.status),te={recent_documents:`recent`,calendar:`calendar`,tasks:`task`,notes:`note`,mail:`mail`,messages:`message`,code_activity:`git`,files:`file`},ne=_?.snapshot?.projectKind??d?.projectKind,U=ne===`coding`?i.codingProject:ne===`general`?i.generalProject:ne===`unknown`?i.unknownProject:null,re=(_?.snapshot?.files??[]).slice(0,4).map(e=>({id:`snapshot-file:${e.relativePath}`,label:J8(e.relativePath),kind:e.source===`git_change`?`recent`:`file`,meta:e.source===`git_change`?i.sourceSignals.changedFile:e.source===`document`?i.sourceSignals.contextFile:i.sourceSignals.structureFile,detail:e.relativePath})),ie=_?.rootPath??d?.canonicalRootPath,ae=re.length===0?(d?.fingerprint.recentAreas??[]).slice(0,2).map(e=>({id:`recent-area:${e}`,label:e,kind:`recent`,meta:i.sourceSignals.recentArea,detail:e})):[],oe=re.length===0?ae.length>0?ae:[{id:`project-files`,label:i.sourceSignals.projectFiles,kind:`file`,meta:i.sourceSignals.scanningFiles},{id:`recent-changes`,label:i.sourceSignals.recentChanges,kind:`recent`,meta:i.sourceSignals.checkingChanges}]:[],se=_?.snapshot?.sampledPathCount,ce=[U,se==null?null:Y8(i.sourceSignals.filesScanned,se)].filter(e=>!!e).join(` · `),le=_?.snapshot?.branch??d?.fingerprint.branch,ue=_?.snapshot?.changedPathCount??d?.fingerprint.changedFileCount,de=[{id:`work-folder`,label:ie?J8(ie):i.sourceSignals.workFolder,kind:`folder`,...ce?{meta:ce}:{},...ie?{detail:ie}:{}},...re,...oe,{id:`git-state`,label:le??i.sourceSignals.gitState,kind:`git`,...ue==null?{}:{meta:Y8(i.sourceSignals.changedFiles,ue)},...le?{detail:`Git · ${le}`}:{}},...F.filter(e=>L.has(e.id)).map(e=>({id:e.id,label:e.displayName,kind:te[e.category]??`data`})),...z],fe=e=>{R(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};(0,Z.useEffect)(()=>{let e=!1;return window.electronAPI?.understandingSources?.catalog().then(t=>{e||(I(t),R(Epe(t)))}),()=>{e=!0}},[]);let pe=(0,Z.useCallback)(e=>{N8.getState().updateDirectoryRun(e),v(e),e.status===`completed`?u(e.feedback?.recognitionDecision===`confirmed`?`recommendation`:`recognition`):e.status===`failed`||e.status===`canceled`?u(`error`):u(`running`)},[]),me=async()=>{b(!0),S(null);try{let e=await nW();if(h(e.processingTarget),!e.candidates.length){S(i.noCandidates);return}E(e.candidates),O(new Set([e.candidates[0].rootPath])),u(`candidates`)}catch(e){S(q8(e))}finally{b(!1)}},G=e=>{O(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},he=(0,Z.useCallback)((e,t,n)=>{N8.getState().updateDirectoryRun(e),v(e),P({current:t+1,total:n}),A(n=>{let r=[...n];return r[t]=e,r}),u(`running`)},[]),ge=(0,Z.useCallback)(e=>{A(t=>t.map(t=>t?.id===e.id?e:t))},[]),_e=async()=>{let e=T.filter(e=>D.has(e.rootPath));if(!e.length)return;b(!0),S(null),A([]),P({current:1,total:e.length}),M(!0),V.current=!1;let t=!1,n=m?.remoteModel?`remote_allowed`:`local_only`;try{let r=await Qfe(e,{grantDirectory:e=>rW(e,n),startRun:oW,fetchRun:cW,shouldStop:()=>V.current,onRun:(e,r,i)=>{he(e,r,i),t||(t=!0,N8.getState().collectSources(e.id,[...L],n))},onError:(t,n,r)=>{P({current:r+1,total:e.length}),S(i.folderAnalysisFailed.replace(`{{folder}}`,n.displayName).replace(`{{error}}`,q8(t)))}});if(V.current)return;let a=r.find(e=>e.status===`completed`)??r.at(-1);a?pe(a):u(`candidates`)}catch(e){S(q8(e)),u(`candidates`)}finally{M(!1),b(!1)}},ve=dB({onPicked:(0,Z.useCallback)(async e=>{b(!0),S(null);try{let t=await tW(e);f(t),h({provider:t.provider,remoteModel:t.remoteModel}),u(`consent`)}catch(e){S(q8(e)),u(`intro`)}finally{b(!1)}},[])});(0,Z.useEffect)(()=>{if(!c){let e=N8.getState().directoryRun;if(e){pe(e);return}}let e=!1,n=window.setTimeout(()=>{e||u(`intro`)},4e3);return $U().then(async({enabled:r,state:i})=>{if(!e){if(!r){window.clearTimeout(n),t?t():o(`/chat`,{replace:!0});return}if(!c&&i.activeRunId)try{let t=await cW(i.activeRunId);e||(window.clearTimeout(n),pe(t));return}catch{}e||(window.clearTimeout(n),u(`intro`))}}).catch(t=>{window.clearTimeout(n),e||(S(q8(t)),u(`intro`))}),()=>{e=!0,window.clearTimeout(n)}},[pe,o,t,c]),(0,Z.useEffect)(()=>{if(!_||l!==`running`||j)return;let e=!1,t=async()=>{try{let t=await cW(_.id);e||pe(t)}catch{}},n=window.setInterval(()=>void t(),1200),r=e=>{let n=e.detail;(!n?.runId||n.runId===_.id)&&t()};for(let e of[`work-discovery-progress`,`work-discovery-completed`,`work-discovery-failed`,`work-discovery-canceled`])window.addEventListener(e,r);return()=>{e=!0,window.clearInterval(n);for(let e of[`work-discovery-progress`,`work-discovery-completed`,`work-discovery-failed`,`work-discovery-canceled`])window.removeEventListener(e,r)}},[pe,j,l,_]);let ye=async()=>{b(!0);try{await eW()}finally{t?t():o(`/chat`,{replace:!0})}},be=async()=>{if(d){b(!0),S(null),A([]),P({current:0,total:0});try{let e=d.remoteModel?`remote_allowed`:`local_only`;await rW(d.canonicalRootPath,e);let t=await oW(d.canonicalRootPath);pe(t),N8.getState().collectSources(t.id,[...L],e)}catch(e){S(q8(e)),u(`consent`)}finally{b(!1)}}},xe=(e,t,r=!1)=>{let i=new URLSearchParams;t&&i.set(`draft`,t),t&&r&&i.set(`autoSend`,`1`);let a=i.toString();n?.(),o(`/chat/${encodeURIComponent(e)}${a?`?${a}`:``}`)},Se=e=>{v(e),w(!1),e.status===`completed`?u(e.feedback?.recognitionDecision===`confirmed`?`recommendation`:`recognition`):e.status===`failed`||e.status===`canceled`?u(`error`):u(`running`)},Ce=async()=>{_&&(V.current=!0,pe(await lW(_.id)))},we=()=>{n?.(),o(`/chat`)},Te=()=>{if(d){be();return}_e()},Ee=()=>{u(d?`consent`:T.length?`candidates`:`intro`)},De=async(e,t)=>{if(!_)return;await fW(_.id,e.id).catch(()=>{});let n=t?`${r===`zh`?`先帮我评估这个方向,不要修改文件:`:`First assess this direction without changing files:`}\n\n${e.actionPrompt}`:e.actionPrompt;xe(_.sessionKey,n)},Oe=async(e,t,n)=>{if(!_)return!1;b(!0),S(null);try{let r=_.result?.profileCandidates?.find(t=>t.id===e.id||!!(t.assertionId&&t.assertionId===e.assertionId)),i=H.find(t=>t.id===e.id||!!(t.assertionId&&t.assertionId===e.assertionId));if(r){let e=await sW(_.id,[{id:r.id,status:t,...n?{statement:n}:{}}]);v(e),ge(e)}return i?.assertionId&&await N8.getState().reviewMemory(i.assertionId,t===`accepted`,n),!0}catch(e){return S(q8(e)),!1}finally{b(!1)}},ke=async(e,t)=>{if(!_)return!1;b(!0),S(null);try{let n=await dW(_.id,e,t);return v(n),ge(n),u(`recommendation`),!0}catch(e){return S(q8(e)),!1}finally{b(!1)}},Ae=async(e,t)=>{if(!_)return!1;b(!0),S(null);try{let n=await dW(_.id,t,t===`corrected`?e:void 0);return v(n),ge(n),xe(_.sessionKey,e,!0),!0}catch(e){return S(q8(e)),!1}finally{b(!1)}},Me=_?.result?.suggestions.find(e=>e.id===_.result?.primarySuggestionId)??_?.result?.suggestions[0],Pe=_?.result?.suggestions.filter(e=>e.id!==Me?.id)??[],Fe=e=>e===`command`?i.riskCommand:e===`file_write`?i.riskFileWrite:i.riskAnalysis,Ie=k.filter(e=>e?.status===`completed`),Le=e&&l===`candidates`,Re=Ie.length>1?(0,$.jsxs)(`div`,{className:`mt-6 rounded-xl border border-edge bg-surface-panel p-2`,children:[(0,$.jsx)(`p`,{className:`px-2 pb-2 text-xs font-medium text-fg-muted`,children:i.analysisResults}),(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:Ie.map(e=>{let t=T.find(t=>t.rootPath===e.rootPath)?.displayName??e.rootPath.split(/[\\/]/).filter(Boolean).at(-1)??e.rootPath;return(0,$.jsx)(`button`,{type:`button`,className:`rounded-lg px-3 py-2 text-sm font-medium transition ${e.id===_?.id?`bg-accent text-white`:`bg-surface-muted text-fg hover:bg-surface-hover`}`,onClick:()=>Se(e),children:t},e.id)})})]}):null;return(0,$.jsxs)(`div`,{className:e?`xopc-work-discovery-experience relative flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-base`:`xopc-work-discovery-experience relative flex min-h-full flex-1 flex-col bg-surface-base`,children:[(0,$.jsx)(`div`,{className:`xopc-onboarding-ambient pointer-events-none absolute inset-0`,"aria-hidden":!0}),(0,$.jsxs)(`main`,{className:e?`xopc-work-discovery-stage relative z-10 mx-auto flex h-full min-h-0 w-full ${l===`recognition`?`max-w-[58rem]`:`max-w-[46rem]`} flex-1 flex-col px-5 py-7 sm:px-8 sm:py-9 ${Le?`overflow-hidden`:`overflow-y-auto [scrollbar-gutter:stable]`}`:`mx-auto flex w-full ${l===`recognition`?`max-w-[58rem]`:`max-w-[40rem]`} flex-1 flex-col px-5 py-10 sm:px-8 sm:py-16`,children:[l!==`recognition`&&l!==`running`&&l!==`loading`?(0,$.jsx)(`div`,{className:X(`flex items-center justify-center`,e?`mb-7 sm:mb-9`:`mb-10`),children:(0,$.jsxs)(`div`,{className:`xopc-discovery-logo relative flex size-16 items-center justify-center rounded-[1.35rem] border border-edge bg-surface-panel shadow-elevated`,children:[(0,$.jsx)(`span`,{className:`xopc-discovery-logo-ring absolute -inset-3 rounded-[1.8rem] border border-accent/10`,"aria-hidden":!0}),(0,$.jsx)(hj,{className:`size-10`})]})}):null,l===`loading`?(0,$.jsxs)(`section`,{className:`mx-auto flex min-h-[32rem] w-full max-w-md flex-1 flex-col items-center justify-center text-center`,"aria-busy":!0,children:[(0,$.jsx)(hj,{className:`size-14`,"aria-hidden":!0}),(0,$.jsxs)(`div`,{className:`mt-7 flex items-center gap-2 text-sm font-medium text-fg`,children:[(0,$.jsx)(je,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}),i.loading]}),(0,$.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:i.loadingHint})]}):null,l===`intro`?(0,$.jsxs)(`section`,{className:`flex flex-1 flex-col text-center`,"aria-labelledby":`work-discovery-title`,children:[(0,$.jsxs)(`div`,{className:`mx-auto max-w-[36rem]`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-semibold uppercase tracking-[0.16em] text-accent-fg`,children:i.sourceStepEyebrow}),(0,$.jsx)(`h1`,{id:`work-discovery-title`,className:`text-2xl font-semibold tracking-tight text-fg`,children:i.title}),(0,$.jsx)(`p`,{className:`mx-auto mt-3 max-w-[34rem] text-[0.95rem] leading-7 text-fg-muted`,children:i.subtitle})]}),(0,$.jsxs)(`div`,{className:`mx-auto mt-9 w-full max-w-md`,children:[F.length?(0,$.jsxs)(`details`,{open:!0,className:`group mb-5 rounded-2xl border border-edge bg-surface-panel text-left shadow-surface`,children:[(0,$.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3.5 text-sm font-medium text-fg marker:content-none`,children:[(0,$.jsx)(`span`,{children:i.localSourcesTitle}),(0,$.jsx)(is,{className:`size-4 text-fg-muted transition-transform duration-200 group-open:rotate-180`,"aria-hidden":!0})]}),(0,$.jsxs)(`div`,{className:`border-t border-edge-subtle px-4 pb-4 pt-3`,children:[(0,$.jsx)(`p`,{className:`text-xs leading-5 text-fg-muted`,children:i.localSourcesSubtitle}),(0,$.jsx)(`div`,{className:`mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3`,children:F.map(e=>{let t=L.has(e.id);return(0,$.jsxs)(`button`,{type:`button`,className:X(`flex min-h-16 flex-col items-center justify-center gap-1 rounded-lg border px-2 py-2 text-xs font-medium transition-colors`,t?`border-accent/40 bg-accent-soft text-accent-fg`:`border-edge bg-surface-base text-fg-muted hover:bg-surface-hover hover:text-fg`),"aria-pressed":t,onClick:()=>fe(e.id),children:[(0,$.jsx)(`span`,{className:X(`flex size-4 items-center justify-center rounded-full border`,t?`border-accent bg-accent text-white`:`border-edge`),children:t?(0,$.jsx)(W,{className:`size-3`,"aria-hidden":!0}):null}),e.displayName]},e.id)})})]})]}):null,(0,$.jsxs)(vt,{type:`button`,className:`h-12 w-full gap-2 bg-accent text-white hover:bg-accent-hover`,onClick:()=>void me(),disabled:y||ve.picking,children:[y?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(Yv,{className:`size-4`}),i.quickScan]}),(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:`mt-3 h-11 w-full gap-2`,onClick:ve.pick,disabled:y||ve.picking,children:[ve.picking?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(Tp,{className:`size-4`}),i.chooseFolderManually]}),(0,$.jsxs)(`div`,{className:`mt-4 flex items-start justify-center gap-2 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(Yv,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`}),(0,$.jsx)(`span`,{children:i.quickScanNote})]}),x?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,role:`alert`,children:x}):null]}),(0,$.jsx)(`button`,{type:`button`,className:`mx-auto mt-auto pt-10 text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>void ye(),disabled:y,children:i.skip})]}):null,l===`candidates`?(0,$.jsxs)(`section`,{className:e?`flex h-full min-h-0 flex-col`:void 0,"aria-labelledby":`work-discovery-candidates-title`,children:[(0,$.jsxs)(`div`,{className:e?`shrink-0 text-center`:`text-center`,children:[(0,$.jsx)(`h1`,{id:`work-discovery-candidates-title`,className:`text-2xl font-semibold tracking-tight text-fg`,children:i.candidatesTitle}),(0,$.jsx)(`p`,{className:`mt-3 text-[0.95rem] leading-7 text-fg-muted`,children:i.candidatesSubtitle})]}),(0,$.jsx)(`div`,{className:e?`mt-5 min-h-0 flex-1 space-y-2 overflow-y-auto overscroll-contain pr-1 [scrollbar-gutter:stable]`:`mt-7 space-y-2`,children:T.map((e,t)=>{let n=D.has(e.rootPath);return(0,$.jsxs)(`button`,{type:`button`,"aria-pressed":n,className:`flex w-full items-start gap-3 rounded-xl border p-4 text-left transition ${n?`border-accent bg-accent-soft/45`:`border-edge bg-surface-panel hover:border-edge-strong`}`,onClick:()=>G(e.rootPath),children:[(0,$.jsx)(`span`,{className:`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-md border ${n?`border-accent bg-accent text-white`:`border-edge bg-surface-base text-transparent`}`,children:(0,$.jsx)(W,{className:`size-3.5`})}),(0,$.jsx)(Tp,{className:`mt-0.5 size-5 shrink-0 text-accent-fg`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`truncate text-sm font-medium text-fg`,children:e.displayName}),t===0?(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2 py-0.5 text-[0.7rem] font-medium text-accent-fg`,children:i.recommendedCandidate}):null]}),(0,$.jsx)(`span`,{className:`mt-1 block truncate font-mono text-xs text-fg-muted`,children:e.rootPath}),(0,$.jsxs)(`span`,{className:`mt-2 flex flex-wrap gap-x-3 gap-y-1 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:e.projectKind===`coding`?i.codingProject:e.projectKind===`general`?i.generalProject:i.unknownProject}),e.branch?(0,$.jsx)(`span`,{children:i.branchValue.replace(`{{branch}}`,e.branch)}):null,e.changedFileCount>0?(0,$.jsx)(`span`,{children:i.changedFiles.replace(`{{count}}`,String(e.changedFileCount))}):null]})]})]},e.id)})}),(0,$.jsxs)(`div`,{className:e?`shrink-0 border-t border-edge-subtle pt-4`:void 0,children:[(0,$.jsxs)(`div`,{className:`${e?``:`mt-5 `}flex items-start gap-2 rounded-xl border border-edge-subtle bg-surface-panel px-4 py-3 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(Yv,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`}),(0,$.jsxs)(`span`,{children:[i.multiFolderPrivacyNote,` `,m?.remoteModel?i.providerDisclosure.replace(`{{provider}}`,m.provider):i.localDisclosure]})]}),x?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-danger`,role:`alert`,children:x}):null,(0,$.jsxs)(`div`,{className:`${e?`mt-4`:`mt-7`} flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsx)(vt,{type:`button`,className:`h-11 flex-1 bg-accent text-white hover:bg-accent-hover`,disabled:y||D.size===0,onClick:()=>u(`connectors`),children:i.continueToConnectors}),(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-11 flex-1`,disabled:y,onClick:ve.pick,children:i.chooseFolderManually})]}),(0,$.jsx)(`button`,{type:`button`,className:`${e?`mt-3`:`mt-6`} mx-auto block text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>u(`intro`),children:i.back})]})]}):null,l===`consent`&&d?(0,$.jsxs)(`section`,{"aria-labelledby":`work-discovery-consent-title`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(`h1`,{id:`work-discovery-consent-title`,className:`text-2xl font-semibold tracking-tight text-fg`,children:i.selectedTitle}),(0,$.jsx)(`p`,{className:`mt-3 text-[0.95rem] leading-7 text-fg-muted`,children:i.selectedSubtitle})]}),(0,$.jsxs)(`div`,{className:`mt-8 overflow-hidden rounded-xl border border-edge bg-surface-panel`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-edge-subtle px-4 py-3.5`,children:[(0,$.jsx)(Tp,{className:`size-5 shrink-0 text-accent-fg`}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:d.displayName}),(0,$.jsx)(`p`,{className:`truncate font-mono text-xs text-fg-muted`,children:d.canonicalRootPath})]}),(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2.5 py-1 text-xs font-medium text-accent-fg`,children:d.projectKind===`coding`?i.codingProject:d.projectKind===`general`?i.generalProject:i.unknownProject})]}),(0,$.jsxs)(`div`,{className:`grid gap-3 border-b border-edge-subtle bg-surface-base/60 p-4 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:i.localFingerprint}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg`,children:d.fingerprint.branch?i.branchValue.replace(`{{branch}}`,d.fingerprint.branch):i.noGitBranch})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:i.recentActivity}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg`,children:i.changedFiles.replace(`{{count}}`,String(d.fingerprint.changedFileCount))})]}),d.fingerprint.recentAreas.length>0?(0,$.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:i.recentAreas}),(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:d.fingerprint.recentAreas.map(e=>(0,$.jsx)(`code`,{className:`rounded-md bg-surface-muted px-2 py-1 text-xs text-fg`,children:e},e))})]}):null]}),(0,$.jsxs)(`div`,{className:`divide-y divide-edge-subtle px-4`,children:[(0,$.jsxs)(`div`,{className:`flex gap-3 py-4`,children:[(0,$.jsx)(wf,{className:`mt-0.5 size-4 shrink-0 text-fg-muted`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:i.willRead}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:i.willReadValue})]})]}),(0,$.jsxs)(`div`,{className:`flex gap-3 py-4`,children:[(0,$.jsx)(Ne,{className:`mt-0.5 size-4 shrink-0 text-fg-muted`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:i.willIgnore}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:i.willIgnoreValue})]})]}),(0,$.jsxs)(`div`,{className:`flex gap-3 py-4`,children:[(0,$.jsx)(Yv,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`}),(0,$.jsx)(`p`,{className:`text-sm leading-6 text-fg-muted`,children:d.remoteModel?i.providerDisclosure.replace(`{{provider}}`,d.provider):i.localDisclosure})]})]})]}),x?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-danger`,role:`alert`,children:x}):null,(0,$.jsxs)(`div`,{className:`mt-7 flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsx)(vt,{type:`button`,className:`h-11 flex-1 bg-accent text-white hover:bg-accent-hover`,disabled:y,onClick:()=>u(`connectors`),children:i.continueToConnectors}),(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-11 flex-1`,disabled:y,onClick:ve.pick,children:i.changeFolder})]}),(0,$.jsx)(`button`,{type:`button`,className:`mx-auto mt-6 block text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>void ye(),children:i.skip})]}):null,l===`connectors`?(0,$.jsx)(ype,{busy:y,onBack:Ee,onContinue:Te,onSkip:()=>void ye(),onConnectedSignalsChange:B}):null,l===`running`&&_?(0,$.jsxs)(`section`,{"aria-labelledby":`work-discovery-running-title`,"aria-live":`polite`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-semibold uppercase tracking-[0.16em] text-accent-fg`,children:i.understandingStepEyebrow}),(0,$.jsx)(`h1`,{id:`work-discovery-running-title`,className:`text-2xl font-semibold tracking-tight text-fg`,children:i.analyzingTitle}),(0,$.jsx)(`p`,{className:`mt-3 text-[0.95rem] leading-7 text-fg-muted`,children:i.analyzingSubtitle}),N.total>1?(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium text-accent-fg`,children:i.analyzingFolderProgress.replace(`{{current}}`,String(N.current)).replace(`{{total}}`,String(N.total))}):null]}),(0,$.jsx)(ope,{signals:de,ariaLabel:i.sourceSignals.ariaLabel,centerLabel:i.sourceSignals.centerLabel}),(0,$.jsx)(`div`,{className:`xopc-understanding-progress mx-auto -mt-2 grid max-w-xl grid-cols-3 gap-2`,children:K8.map((e,t)=>{let n=Math.max(0,K8.indexOf(_.stage??`folder_structure`)),r=t<n,a=t===n;return(0,$.jsxs)(`div`,{className:`xopc-understanding-step flex min-w-0 flex-col items-center gap-2 rounded-xl border px-2 py-3 text-center ${a?`border-accent/30 bg-accent-soft/70`:`border-edge bg-surface-panel/70`}`,"data-active":a||void 0,"data-complete":r||void 0,children:[(0,$.jsx)(`span`,{className:`xopc-understanding-step-icon flex size-7 items-center justify-center rounded-full ${r?`bg-accent text-white`:a?`bg-accent-soft text-accent-fg`:`bg-surface-muted text-fg-subtle`}`,children:r?(0,$.jsx)(W,{className:`size-3.5`}):a?(0,$.jsx)(je,{className:`size-3.5 animate-spin motion-reduce:animate-none`}):(0,$.jsx)(`span`,{className:`size-1.5 rounded-full bg-current`})}),(0,$.jsx)(`span`,{className:a||r?`text-xs font-medium leading-5 text-fg`:`text-xs leading-5 text-fg-muted`,children:i.stages[e]})]},e)})}),(0,$.jsx)(`p`,{className:`mt-4 truncate text-center font-mono text-xs text-fg-muted`,children:_.rootPath}),(0,$.jsx)(`p`,{className:`mx-auto mt-4 max-w-lg text-center text-xs leading-5 text-fg-muted`,children:i.backgroundChoiceHint}),(0,$.jsxs)(`div`,{className:`mx-auto mt-5 flex max-w-md flex-col gap-3`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-11 w-full`,onClick:we,children:i.continueInBackground}),(0,$.jsx)(`button`,{type:`button`,className:`mx-auto text-sm text-fg-muted hover:text-danger hover:underline`,onClick:()=>void Ce(),children:i.cancelAnalysis})]})]}):null,l===`recognition`&&_?.result?(0,$.jsx)(tpe,{run:_,sourceMemories:H,activityRunning:ee===`running`,language:r,busy:y,error:x,onReviewMemory:Oe,onFinish:ke,onStartConversation:Ae},_.id):null,l===`recommendation`&&_?.result&&Me?(0,$.jsxs)(`section`,{"aria-labelledby":`work-discovery-recommendation-title`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.16em] text-accent-fg`,children:i.understandingConfirmed}),(0,$.jsx)(`h1`,{id:`work-discovery-recommendation-title`,className:`mt-2 text-2xl font-semibold tracking-tight text-fg`,children:i.primaryRecommendationTitle})]}),Re,(0,$.jsx)(`article`,{className:`mt-7 rounded-2xl border border-accent/30 bg-surface-panel p-5 sm:p-6`,children:(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,$.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-xl bg-accent-soft text-accent-fg`,children:(0,$.jsx)(cs,{className:`size-5`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:Me.title}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:Me.rationale}),(0,$.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2 text-xs`,children:[(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 rounded-full bg-surface-muted px-2.5 py-1 text-fg-muted`,children:[(0,$.jsx)(Mc,{className:`size-3.5`}),i.estimatedMinutes.replace(`{{count}}`,String(Me.estimatedMinutes))]}),(0,$.jsx)(`span`,{className:`rounded-full bg-surface-muted px-2.5 py-1 text-fg-muted`,children:Fe(Me.risk)})]}),(0,$.jsxs)(`div`,{className:`mt-4 rounded-xl bg-surface-base px-4 py-3`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:i.expectedTask}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg`,children:Me.expectedTask})]}),(0,$.jsxs)(`div`,{className:`mt-5 flex flex-wrap gap-2`,children:[(0,$.jsx)(vt,{className:`h-10 bg-accent px-4 text-white hover:bg-accent-hover`,onClick:()=>void De(Me,!1),children:i.startRecommendedAction}),(0,$.jsx)(vt,{className:`h-10 px-4`,variant:`secondary`,onClick:()=>void De(Me,!0),children:i.explainFirst})]})]})]})}),Pe.length>0?(0,$.jsxs)(`div`,{className:`mt-5 border-t border-edge-subtle pt-4`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-center justify-between py-2 text-sm font-medium text-fg-muted hover:text-fg`,onClick:()=>w(e=>!e),children:[i.otherDirections,(0,$.jsx)(is,{className:`size-4 transition-transform ${C?`rotate-180`:``}`})]}),C?(0,$.jsx)(`div`,{className:`mt-2 divide-y divide-edge-subtle rounded-xl border border-edge bg-surface-panel px-4`,children:Pe.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-start gap-3 py-4 text-left`,onClick:()=>void De(e,!0),children:[(0,$.jsx)(cs,{className:`mt-0.5 size-4 shrink-0 text-fg-subtle`}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:e.title}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:e.expectedTask})]})]},e.id))}):null]}):null,(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-center gap-x-5 gap-y-3`,children:[(0,$.jsx)(`button`,{type:`button`,className:`text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>xe(_.sessionKey),children:i.doSomethingElse}),(0,$.jsx)(`button`,{type:`button`,className:`text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>u(`recognition`),children:i.correctUnderstanding})]})]}):null,l===`error`&&_?(0,$.jsxs)(`section`,{className:`text-center`,"aria-labelledby":`work-discovery-error-title`,children:[(0,$.jsx)(`div`,{className:`mx-auto flex size-11 items-center justify-center rounded-xl bg-danger-soft text-danger`,children:(0,$.jsx)(Ne,{className:`size-5`})}),(0,$.jsx)(`h1`,{id:`work-discovery-error-title`,className:`mt-5 text-2xl font-semibold tracking-tight text-fg`,children:i.errorTitle}),(0,$.jsx)(`p`,{className:`mx-auto mt-3 max-w-lg text-sm leading-6 text-fg-muted`,children:_.errorMessage}),(0,$.jsxs)(`div`,{className:`mx-auto mt-7 flex max-w-md flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsx)(vt,{className:`h-11 flex-1 bg-accent text-white hover:bg-accent-hover`,onClick:()=>void uW(_.id).then(pe),children:i.retry}),(0,$.jsx)(vt,{variant:`secondary`,className:`h-11 flex-1`,onClick:()=>{v(null),f(null),u(`intro`)},children:i.chooseDifferent})]}),(0,$.jsx)(`button`,{type:`button`,className:`mt-6 text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>xe(_.sessionKey),children:i.openConversation})]}):null]},l),ve.hasNativePicker?null:(0,$.jsx)(SB,{open:ve.modalOpen,onOpenChange:ve.setModalOpen,initialAbsolutePath:d?.canonicalRootPath,onConfirm:ve.confirmPick,wd:a})]})}function Ope(e){if(!e||typeof e!=`object`||Array.isArray(e))return!0;let t=e.agents;if(!t)return!0;let n=t.defaults?.models?.chat?.primary?.trim()??``;return!((t.list?.find(e=>e.enabled!==!1&&e.id===t.default))?.models?.chat?.primary?.trim()||n)}function kpe(e){let{enabled:t,ready:n,configError:r,modelsError:i,config:a,modelsData:o}=e;if(!t||!n||r||i)return!1;let s=Ope(a),c=!Array.isArray(o)||o.length===0;return s||c}var Ape=`xopc-onboarding-model-setup-dismissed`;function jpe(e){let t=(0,Q.c)(21),[n,r]=(0,Z.useState)(Mpe),{data:i,error:a,isLoading:o,mutate:s}=St(e),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={revalidateOnFocus:!1},t[0]=c):c=t[0];let{data:l,isLoading:u,error:d,mutate:f}=mt(e?$t:null,Zt,c),p=!e||!o&&!u,m=i?.payload?.config,h;t[1]!==a||t[2]!==e||t[3]!==l||t[4]!==d||t[5]!==p||t[6]!==m?(h=kpe({enabled:e,ready:p,configError:a,modelsError:d,config:m,modelsData:l}),t[1]=a,t[2]=e,t[3]=l,t[4]=d,t[5]=p,t[6]=m,t[7]=h):h=t[7];let g=h,_;t[8]!==s||t[9]!==f?(_=async()=>{await Promise.all([s(),f()])},t[8]=s,t[9]=f,t[10]=_):_=t[10];let v=_,y,b;t[11]!==e||t[12]!==f?(y=()=>{if(!e)return;let t=()=>{f()};return window.addEventListener(`config-reload`,t),()=>window.removeEventListener(`config-reload`,t)},b=[e,f],t[11]=e,t[12]=f,t[13]=y,t[14]=b):(y=t[13],b=t[14]),(0,Z.useEffect)(y,b);let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{try{localStorage.setItem(Ape,`1`)}catch{}r(!0)},t[15]=x):x=t[15];let S=x,C;return t[16]!==n||t[17]!==g||t[18]!==p||t[19]!==v?(C={needsSetup:g,ready:p,refresh:v,guideDismissed:n,dismissPermanently:S},t[16]=n,t[17]=g,t[18]=p,t[19]=v,t[20]=C):C=t[20],C}function Mpe(){return typeof localStorage<`u`&&localStorage.getItem(`xopc-onboarding-model-setup-dismissed`)===`1`}function Npe(){let e=(0,Q.c)(40),t=ut(Bpe),n=ct(zpe),r;e[0]===n?r=e[1]:(r=rt(n),e[0]=n,e[1]=r);let i=r,{pathname:a}=l(),o=p(),s=jpe(!!t),c=a.startsWith(`/settings`),[u,d]=(0,Z.useState)(null),[f,m]=(0,Z.useState)(!1),h;e[2]!==m||e[3]!==d||e[4]!==t?(h=()=>{if(m(!1),!t){d(null);return}let e=!1;return $U().then(t=>{e||d(t)}).catch(Rpe),()=>{e=!0}},e[2]=m,e[3]=d,e[4]=t,e[5]=h):h=e[5];let g;e[6]===t?g=e[7]:(g=[t],e[6]=t,e[7]=g),(0,Z.useEffect)(h,g);let _=Yfe({authenticated:!!t,settingsRoute:c,modelSetupReady:s.ready,needsModelSetup:s.needsSetup,modelGuideDismissed:s.guideDismissed,workDiscovery:u,closed:f}),v;e[8]===m?v=e[9]:(v=()=>{m(!0)},e[8]=m,e[9]=v);let y=v,b;e[10]!==y||e[11]!==o?(b=()=>{y(),o(`/chat`)},e[10]=y,e[11]=o,e[12]=b):b=e[12];let x=b,S;e[13]!==y||e[14]!==s?(S=()=>{y(),s.dismissPermanently(),eW().catch(Lpe)},e[13]=y,e[14]=s,e[15]=S):S=e[15];let C=S,w;e[16]!==C||e[17]!==_.stage||e[18]!==x?(w=e=>{e||(_.stage===`setup`?C():x())},e[16]=C,e[17]=_.stage,e[18]=x,e[19]=w):w=e[19];let T;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[55] bg-scrim backdrop-blur-md`}),e[20]=T):T=e[20];let E;e[21]===i.onboarding.title?E=e[22]:(E=(0,$.jsx)(te,{className:`sr-only`,children:i.onboarding.title}),e[21]=i.onboarding.title,e[22]=E);let D;e[23]===i.onboarding.subtitle?D=e[24]:(D=(0,$.jsx)(B,{className:`sr-only`,children:i.onboarding.subtitle}),e[23]=i.onboarding.subtitle,e[24]=D);let O;e[25]!==y||e[26]!==C||e[27]!==_.stage||e[28]!==x||e[29]!==s||e[30]!==d?(O=_.stage===`setup`?(0,$.jsx)(Jfe,{onComplete:async()=>{let e=await $U().catch(Ppe);d(e),await s.refresh(),k8(e)||x()},onDismiss:C,canDismiss:!0}):(0,$.jsx)(`div`,{className:`xopc-onboarding-work-stage h-full overflow-hidden`,children:(0,$.jsx)(X8,{embedded:!0,onRequestClose:x,onNavigateAway:y})}),e[25]=y,e[26]=C,e[27]=_.stage,e[28]=x,e[29]=s,e[30]=d,e[31]=O):O=e[31];let k;e[32]!==O||e[33]!==E||e[34]!==D?(k=(0,$.jsxs)(H,{children:[T,(0,$.jsxs)(ee,{className:`xopc-onboarding-dialog fixed inset-0 z-[56] overflow-hidden bg-surface-base outline-none`,onPointerDownOutside:Ipe,onOpenAutoFocus:Fpe,children:[E,D,O]})]}),e[32]=O,e[33]=E,e[34]=D,e[35]=k):k=e[35];let A;return e[36]!==_.open||e[37]!==k||e[38]!==w?(A=(0,$.jsx)(ne,{open:_.open,onOpenChange:w,children:k}),e[36]=_.open,e[37]=k,e[38]=w,e[39]=A):A=e[39],A}function Ppe(){return null}function Fpe(e){return e.preventDefault()}function Ipe(e){return e.preventDefault()}function Lpe(){}function Rpe(){}function zpe(e){return e.language}function Bpe(e){return e.token}function Vpe(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(`div`,{className:`shrink-0`,children:n}),t[0]=n,t[1]=r),r}var Hpe=new Set([`queued`,`probing`,`analyzing`]),Z8=[`work-discovery-progress`,`work-discovery-completed`,`work-discovery-failed`,`work-discovery-canceled`];function Q8(){let e=(0,Q.c)(6),t=N8(Xpe),n=N8(Ype),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],e[0]=r):r=e[0],(0,Z.useEffect)(qpe,r);let i,a;e[1]!==t||e[2]!==n?(i=()=>{if(!t||!n||!Hpe.has(n))return;let e=!1,r=async()=>{try{let n=await cW(t);e||N8.getState().updateDirectoryRun(n)}catch{}};r();let i=window.setInterval(()=>void r(),1200);return()=>{e=!0,window.clearInterval(i)}},a=[t,n],e[1]=t,e[2]=n,e[3]=i,e[4]=a):(i=e[3],a=e[4]),(0,Z.useEffect)(i,a);let o;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],e[5]=o):o=e[5],(0,Z.useEffect)(Upe,o),null}function Upe(){let e=Wpe;for(let t of Z8)window.addEventListener(t,e);return()=>{for(let t of Z8)window.removeEventListener(t,e)}}function Wpe(e){let t=e.detail?.runId;t&&cW(t).then(Kpe).catch(Gpe)}function Gpe(){}function Kpe(e){return N8.getState().updateDirectoryRun(e)}function qpe(){let e=!1;return $U().then(async t=>{let{state:n}=t;if(n.status!==`in_progress`||!n.activeRunId)return;let r=await cW(n.activeRunId);e||N8.getState().updateDirectoryRun(r)}).catch(Jpe),()=>{e=!0}}function Jpe(){}function Ype(e){return e.directoryRun?.status}function Xpe(e){return e.directoryRun?.id}var $8=`workDiscovery`;function Zpe(e){return new URLSearchParams(e).get($8)===`new`}function Qpe(e){let t=new URLSearchParams(e);t.delete($8);let n=t.toString();return n?`?${n}`:``}var $pe=(0,Z.lazy)(()=>CP().then(e=>({default:e.WorkDiscoveryOverlay}))),eme=(0,Z.lazy)(()=>tP().then(e=>({default:e.TaskDetailModal})));function tme(){let e=(0,Q.c)(3),t=p(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=e.detail;n?.sessionKey&&t(`/chat/${encodeURIComponent(n.sessionKey)}`)};return window.addEventListener(`navigate-to-chat`,e),()=>window.removeEventListener(`navigate-to-chat`,e)},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function nme(){let e=(0,Q.c)(3),t=p(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=e.detail,r=typeof n?.path==`string`?n.path.trim():``;r&&t(r.startsWith(`/`)?r:`/${r}`)};return window.addEventListener(`extension-navigate`,e),()=>window.removeEventListener(`extension-navigate`,e)},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function rme(){let e=(0,Q.c)(3),t=ut(ame),n=`${ut(ime)}:${t??``}`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(ome,{}),e[0]=r):r=e[0];let i;return e[1]===n?i=e[2]:(i=(0,$.jsx)(aj,{children:r},n),e[1]=n,e[2]=i),i}function ime(e){return e.baseUrl}function ame(e){return e.token}function ome(){let e=(0,Q.c)(106),t=ut(ume),{pathname:n,search:r}=l(),i=p(),a;e[0]===n?a=e[1]:(a=n.startsWith(`/settings`),e[0]=n,e[1]=a);let o=a,s=n===`/onboarding/workspace`,c=ct(lme),u=yN(),d=XU(cme),m;e[2]===n?m=e[3]:(m=n.startsWith(`/chat/task/`)?``:n.startsWith(`/chat/`)?n.slice(6):``,e[2]=n,e[3]=m);let h=m,g=h&&h!==`new`?decodeURIComponent(h):null,_;e[4]===g?_=e[5]:(_=e=>g?e.panes[g]?.open===!0:!1,e[4]=g,e[5]=_);let v=D$(_),y;e[6]!==n||e[7]!==r?(y=n===`/user-model`&&Zpe(r),e[6]=n,e[7]=r,e[8]=y):y=e[8];let b=y,x;e[9]!==n||e[10]!==r?(x=n.startsWith(`/tasks/`)?null:new URLSearchParams(r).get(VO),e[9]=n,e[10]=r,e[11]=x):x=e[11];let S=x,C;e[12]!==n||e[13]!==r?(C=WO(n,r),e[12]=n,e[13]=r,e[14]=C):C=e[14];let w=C,[T,E]=(0,Z.useState)(b),D,O;e[15]===b?(D=e[16],O=e[17]):(D=()=>{b&&E(!0)},O=[b],e[15]=b,e[16]=D,e[17]=O),(0,Z.useEffect)(D,O);let k;e[18]!==i||e[19]!==n||e[20]!==r?(k=()=>{i({pathname:n,search:Qpe(r)},{replace:!0})},e[18]=i,e[19]=n,e[20]=r,e[21]=k):k=e[21];let A=k,j;e[22]!==A||e[23]!==b?(j=()=>{E(!1),b&&A(),window.requestAnimationFrame(sme)},e[22]=A,e[23]=b,e[24]=j):j=e[24];let M=j,N;e[25]!==i||e[26]!==w?(N=()=>{i(w,{replace:!0})},e[25]=i,e[26]=w,e[27]=N):N=e[27];let P=N;if(!t){let t=c===`zh`?`跳到主要内容`:`Skip to main content`,n;e[28]===t?n=e[29]:(n=(0,$.jsx)(`a`,{href:`#app-main-content`,className:`sr-only z-[80] rounded-lg bg-surface-panel px-3 py-2 text-sm text-fg shadow-elevated focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:t}),e[28]=t,e[29]=n);let r,i;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(f4,{}),i=(0,$.jsx)(Z4,{}),e[30]=r,e[31]=i):(r=e[30],i=e[31]);let a;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,$.jsx)(cM,{})}),e[32]=a):a=e[32];let o;return e[33]===n?o=e[34]:(o=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[n,r,i,a]}),e[33]=n,e[34]=o),o}let F;e[35]===n?F=e[36]:(F=n.split(`/`)[1]||`root`,e[35]=n,e[36]=F);let I=F,L=I===`chat`||I===`notes`;if(s){let t,n,r,i,a,o,s;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(X4,{}),n=(0,$.jsx)(D6,{}),r=(0,$.jsx)(Q8,{}),i=(0,$.jsx)(U6,{}),a=(0,$.jsx)(Z4,{}),o=(0,$.jsx)(f4,{}),s=bce()?(0,$.jsx)(`div`,{className:X(`w-full`,mj,fj),"aria-hidden":`true`}):null,e[37]=t,e[38]=n,e[39]=r,e[40]=i,e[41]=a,e[42]=o,e[43]=s):(t=e[37],n=e[38],r=e[39],i=e[40],a=e[41],o=e[42],s=e[43]);let c;return e[44]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[t,n,r,i,a,o,s,(0,$.jsx)(`main`,{id:`app-main-content`,className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:(0,$.jsx)(f,{})})]}),e[44]=c):c=e[44],c}let R;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(X4,{}),e[45]=R):R=e[45];let z=c===`zh`?`跳到主要内容`:`Skip to main content`,B;e[46]===z?B=e[47]:(B=(0,$.jsx)(`a`,{href:`#app-main-content`,className:`sr-only z-[80] rounded-lg bg-surface-panel px-3 py-2 text-sm text-fg shadow-elevated focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:z}),e[46]=z,e[47]=B);let V,H,ee,te,ne,U,W,re,ie,ae,oe,se,ce,le,ue;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(D6,{}),H=(0,$.jsx)(Q8,{}),ee=(0,$.jsx)(U6,{}),te=(0,$.jsx)(Z4,{}),ne=(0,$.jsx)(tme,{}),U=(0,$.jsx)(nme,{}),W=(0,$.jsx)(vue,{}),re=(0,$.jsx)(Oue,{}),ie=(0,$.jsx)(cde,{}),ae=(0,$.jsx)(Vde,{}),oe=(0,$.jsx)(nfe,{}),se=(0,$.jsx)($de,{}),ce=(0,$.jsx)(q1,{}),le=(0,$.jsx)(e0,{}),ue=(0,$.jsx)(Npe,{}),e[48]=V,e[49]=H,e[50]=ee,e[51]=te,e[52]=ne,e[53]=U,e[54]=W,e[55]=re,e[56]=ie,e[57]=ae,e[58]=oe,e[59]=se,e[60]=ce,e[61]=le,e[62]=ue):(V=e[48],H=e[49],ee=e[50],te=e[51],ne=e[52],U=e[53],W=e[54],re=e[55],ie=e[56],ae=e[57],oe=e[58],se=e[59],ce=e[60],le=e[61],ue=e[62]);let de;e[63]!==P||e[64]!==w||e[65]!==S?(de=S?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(eme,{taskId:S,backgroundPath:w,onClose:P})}):null,e[63]=P,e[64]=w,e[65]=S,e[66]=de):de=e[66];let fe;e[67]!==M||e[68]!==b||e[69]!==T?(fe=T?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)($pe,{requestedOpen:b,onExited:M})}):null,e[67]=M,e[68]=b,e[69]=T,e[70]=fe):fe=e[70];let pe;e[71]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,$.jsx)(f4,{}),e[71]=pe):pe=e[71];let me;e[72]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,$.jsx)(Ece,{}),e[72]=me):me=e[72];let G;e[73]===u?G=e[74]:(G=(0,$.jsx)(Dle,{reminder:u}),e[73]=u,e[74]=G);let he;e[75]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,$.jsx)(Cle,{}),e[75]=he):he=e[75];let ge;e[76]===G?ge=e[77]:(ge=(0,$.jsxs)(Vpe,{children:[me,G,he]}),e[76]=G,e[77]=ge);let _e;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(IV,{}),e[78]=_e):_e=e[78];let ve;e[79]!==o||e[80]!==d?(ve=!o&&!d?(0,$.jsx)(JM,{}):null,e[79]=o,e[80]=d,e[81]=ve):ve=e[81];let ye;e[82]!==d||e[83]!==I||e[84]!==L||e[85]!==S?(ye=(0,$.jsx)(`main`,{id:`app-main-content`,className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:d!=null&&!S?(0,$.jsx)(J6,{}):(0,$.jsx)(`div`,{className:X(`page-enter flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-surface-panel`,I===`settings`?`page-enter--gentle overflow-hidden`:L?`overflow-hidden`:`overflow-y-auto overscroll-contain [scrollbar-gutter:stable_both-edges]`),children:(0,$.jsx)(f,{})},I)}),e[82]=d,e[83]=I,e[84]=L,e[85]=S,e[86]=ye):ye=e[86];let be;e[87]!==ve||e[88]!==ye?(be=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[ve,ye]}),e[87]=ve,e[88]=ye,e[89]=be):be=e[89];let xe;e[90]!==o||e[91]!==g||e[92]!==v||e[93]!==S?(xe=o?null:v&&g&&!S?(0,$.jsx)(E1,{parentSessionKey:g}):(0,$.jsx)(ZU,{elevated:!!S}),e[90]=o,e[91]=g,e[92]=v,e[93]=S,e[94]=xe):xe=e[94];let Se;e[95]!==be||e[96]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden`,children:[_e,(0,$.jsx)(`div`,{className:`app-main-surface relative flex min-h-0 min-w-0 flex-1 min-w-0 flex-col overflow-hidden bg-surface-panel`,children:(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden`,children:[be,xe]})})]}),e[95]=be,e[96]=xe,e[97]=Se):Se=e[97];let Ce;e[98]!==ge||e[99]!==Se?(Ce=(0,$.jsxs)(`div`,{className:`app-chrome-shell flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[pe,ge,Se]}),e[98]=ge,e[99]=Se,e[100]=Ce):Ce=e[100];let we;return e[101]!==B||e[102]!==de||e[103]!==fe||e[104]!==Ce?(we=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 w-full flex-1 flex-col overflow-hidden bg-surface-base`,children:[R,B,V,H,ee,te,ne,U,W,re,ie,ae,oe,se,ce,le,ue,de,fe,Ce]}),e[101]=B,e[102]=de,e[103]=fe,e[104]=Ce,e[105]=we):we=e[105],we}function sme(){document.querySelector(`[data-work-discovery-trigger]`)?.focus({preventScroll:!0})}function cme(e){return e.path}function lme(e){return e.language}function ume(e){return e.token}var dme={en:`https://xopc.ai/en#download`,zh:`https://xopc.ai/zh#download`};function fme(e){if(e instanceof Error)return e.stack||e.message;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function pme(e=it()){return dme[e]}function mme(){let e=window.location.hash.replace(/^#\/?/,``).split(/[/?]/,1)[0];return`${window.location.origin}${window.location.pathname}${e?`#/${e}`:``}`}function hme({error:e,source:t,componentStack:n,capturedAt:r=new Date}){let i=window.electronAPI?`Electron desktop app`:`Gateway web UI`,a=window.electronAPI?.platform??navigator.platform??`unknown`,o=bN.commit===`unknown`?`unknown`:bN.commit.slice(0,12),s=[`# xopc renderer error report`,``,`- xopc web version: ${bN.version}`,`- Commit: ${o}`,`- Build time: ${bN.buildTimeIso}`,`- Captured at: ${r.toISOString()}`,`- Source: ${t}`,`- Surface: ${i}`,`- Platform: ${a}`,`- Language: ${it()}`,`- Page: ${mme()}`,`- User agent: ${navigator.userAgent}`,``,`## Error`,``,"```text",fme(e),"```"];return n?.trim()&&s.push(``,`## React component stack`,``,"```text",n.trim(),"```"),s.join(`
|
|
67
|
+
`)}var gme={en:{eyebrow:`xopc recovery`,title:`The app ran into a problem`,description:`This version may be incompatible with the current runtime. Download and install the latest desktop version from the official website, then open xopc again.`,download:`Download the latest version`,reload:`Reload`,details:`Technical details`,copyReport:`Collect and copy report`,reportIssue:`Report on GitHub`,copied:`The redacted diagnostic report was copied.`,copyFailed:`Could not copy the diagnostic report automatically.`,collecting:`Collecting diagnostics…`,collectFailed:"Could not collect diagnostics. Run `xopc support report` in a terminal instead.",githubTruncated:`The complete report was copied to the clipboard. Paste it into the issue or upload the downloaded diagnostics file.`,reportHint:`These raw technical details stay on this page. Public reports use the redacted diagnostic report.`,openFailed:`Could not open the system browser. Visit xopc.ai to download the latest version.`},zh:{eyebrow:`xopc 恢复模式`,title:`应用遇到问题,暂时无法继续`,description:`当前版本可能与运行环境不兼容。请前往官网下载并安装最新桌面版,然后重新打开 xopc。`,download:`去官网下载最新版`,reload:`重新加载`,details:`技术详情`,copyReport:`收集并复制报告`,reportIssue:`上报 GitHub`,copied:`已复制脱敏后的诊断报告。`,copyFailed:`无法自动复制诊断报告。`,collecting:`正在收集诊断信息…`,collectFailed:"诊断信息收集失败,请在终端运行 `xopc support report`。",githubTruncated:`完整报告已复制到剪贴板,请粘贴到 Issue 中,或上传下载的诊断文件。`,reportHint:`这里显示的是本地原始技术详情;公开提交时会使用自动脱敏后的诊断报告。`,openFailed:`无法打开系统浏览器,请访问 xopc.ai 下载最新版本。`}};async function _me(e){let t=window.electronAPI?.shell?.openExternalUrl;if(t)try{let n=await t(e);return n.ok?null:n.error}catch(e){return e instanceof Error?e.message:String(e)}return window.location.assign(e),null}function e5({error:e,source:t=`react`,componentStack:n}){let r=it(),i=gme[r],a=pme(r),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(null),[m]=(0,Z.useState)(()=>new Date),h=(0,Z.useMemo)(()=>hme({error:e,source:t,componentStack:n,capturedAt:m}),[m,n,e,t]),g=async()=>{let e=await _me(a);s(e?`${i.openFailed} (${e})`:null)},_=async()=>{if(f)return f;d(!0),s(null);try{let e=(await W6({problem:`Renderer error (${t})`,occurredAt:m.toISOString(),clientContext:{rendererError:h,surface:window.electronAPI?`electron`:`web`,userAgent:navigator.userAgent}})).report;return p(e),e}catch{return s(i.collectFailed),null}finally{d(!1)}},v=async()=>{let e=await _();if(!e)return!1;let t=await tt(e.markdown);return l(t?`copied`:`failed`),t},y=async()=>{let e=await _();e&&(e.markdown.length>6e3&&await v(),s(await K6(G6(e,i.githubTruncated))?null:i.openFailed))};return(0,$.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center bg-surface-base px-5 py-12 text-fg`,children:(0,$.jsxs)(`section`,{className:`w-full max-w-lg rounded-2xl border border-edge bg-surface-panel p-6 shadow-surface sm:p-8`,children:[(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-accent`,children:i.eyebrow}),(0,$.jsx)(`h1`,{className:`mt-3 text-2xl font-semibold tracking-tight`,children:i.title}),(0,$.jsx)(`p`,{className:`mt-3 text-sm leading-6 text-fg-muted`,children:i.description}),(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col gap-2 sm:flex-row`,children:[(0,$.jsx)(vt,{className:`sm:flex-1`,variant:`primary`,onClick:()=>void g(),children:i.download}),(0,$.jsx)(vt,{className:`sm:flex-1`,onClick:()=>window.location.reload(),children:i.reload})]}),(0,$.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2 sm:flex-row`,children:[(0,$.jsx)(vt,{className:`sm:flex-1`,variant:`ghost`,disabled:u,onClick:()=>void v(),children:u?i.collecting:i.copyReport}),(0,$.jsx)(vt,{className:`sm:flex-1`,variant:`ghost`,disabled:u,onClick:()=>void y(),children:u?i.collecting:i.reportIssue})]}),c?(0,$.jsx)(`p`,{className:`mt-4 rounded-xl px-3 py-2 text-sm ${c===`copied`?`bg-accent-soft text-accent`:`bg-warning-soft text-warning`}`,role:`status`,children:c===`copied`?i.copied:i.copyFailed}):null,o?(0,$.jsx)(`p`,{className:`mt-4 rounded-xl bg-warning-soft px-3 py-2 text-sm text-warning`,role:`alert`,children:o}):null,(0,$.jsxs)(`details`,{className:`mt-6 border-t border-edge pt-4 text-xs text-fg-subtle`,open:!0,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer select-none font-medium text-fg-muted`,children:i.details}),(0,$.jsx)(`p`,{className:`mt-2 leading-5 text-warning`,children:i.reportHint}),(0,$.jsx)(`pre`,{className:`mt-3 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded-xl bg-surface-base p-3 font-mono leading-5`,children:h})]})]})})}function t5(){let e=(0,Q.c)(2),t=d(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(e5,{error:t,source:`route`}),e[0]=t,e[1]=n),n}var vme=class extends Z.Component{state={error:null,hasError:!1};static getDerivedStateFromError(e){return{error:e,hasError:!0}}componentDidCatch(e,t){console.error(`Uncaught renderer error`,e,t.componentStack),this.setState({componentStack:t.componentStack??void 0})}render(){return this.state.hasError?(0,$.jsx)(e5,{componentStack:this.state.componentStack,error:this.state.error,source:`react`}):this.props.children}},yme=(0,Z.memo)(function(e){let t=(0,Q.c)(19),{className:n}=e,r=ct(bme),i;t[0]===r?i=t[1]:(i=rt(r),t[0]=r,t[1]=i);let a=i.settingsMode,o=o3(xme),s=o3(Sme),c;t[2]===n?c=t[3]:(c=X(`shrink-0 border-t border-edge-subtle/80 px-4 py-3`,n),t[2]=n,t[3]=c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(Dy,{className:`mt-0.5 size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[4]=l):l=t[4];let u;t[5]===a.toggleLabel?u=t[6]:(u=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-sm font-medium text-fg`,children:a.toggleLabel}),t[5]=a.toggleLabel,t[6]=u);let d;t[7]===s?d=t[8]:(d=e=>s(e.target.checked),t[7]=s,t[8]=d);let f;t[9]!==a.toggleAria||t[10]!==o||t[11]!==d?(f=(0,$.jsx)(`input`,{type:`checkbox`,className:`ui-checkbox mt-0.5 shrink-0`,checked:o,onChange:d,"aria-label":a.toggleAria}),t[9]=a.toggleAria,t[10]=o,t[11]=d,t[12]=f):f=t[12];let p;t[13]!==u||t[14]!==f?(p=(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3 rounded-xl bg-surface-hover/35 px-3 py-2.5 transition-colors hover:bg-surface-hover/55 dark:bg-surface-hover/20 dark:hover:bg-surface-hover/35`,children:[l,u,f]}),t[13]=u,t[14]=f,t[15]=p):p=t[15];let m;return t[16]!==c||t[17]!==p?(m=(0,$.jsx)(`div`,{className:c,children:p}),t[16]=c,t[17]=p,t[18]=m):m=t[18],m});function bme(e){return e.language}function xme(e){return e.mode===`advanced`}function Sme(e){return e.setShowAdvanced}var Cme={chat:$_,sessions:Tp,automations:GT,skills:Gg,connectors:Dv,channels:Dv,agents:Nw,logs:wf,settingsOverview:sn,settingsCapabilities:Gg,settingsAppearance:pv,settingsKeyboardShortcuts:Dg,settingsSystem:Qv,settingsDesktopPet:vv,settingsDesktopApp:fv,settingsAgentBrowser:Ae,settingsAgentDefaults:Gg,settingsChannels:Dv,settingsGateway:Ae,settingsRuntimes:px,settingsDevices:jy,settingsHeartbeat:Nh,settingsTunnel:Nv,settingsShares:qv};function wme(e){let t=(0,Q.c)(3),{tab:n,className:r}=e,i=Cme[n],a;return t[0]!==i||t[1]!==r?(a=(0,$.jsx)(i,{className:r,strokeWidth:1.75,"aria-hidden":!0}),t[0]=i,t[1]=r,t[2]=a):a=t[2],a}function Tme(e){let t=(0,Q.c)(34),{navLinkClassName:n,showAdvanced:r}=e,i=r===void 0?!0:r,a=ct(Eme),o;t[0]===a?o=t[1]:(o=rt(a),t[0]=a,t[1]=o);let s=o,c=DI(),l,u,d,f,p;if(t[2]!==s||t[3]!==n||t[4]!==i||t[5]!==c){p=Symbol.for(`react.early_return_sentinel`);bb0:{let e=Dme(c);if(!i){p=null;break bb0}t[11]===s.settingsNavGroups.extensions?f=t[12]:(f=(0,$.jsx)(`p`,{className:`px-4 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-fg-muted`,children:s.settingsNavGroups.extensions}),t[11]=s.settingsNavGroups.extensions,t[12]=f),l=`flex flex-col gap-0.5`;let r;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(Sa,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=r):r=t[13];let a;t[14]===s.extensionDebug.nav?a=t[15]:(a=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:s.extensionDebug.nav}),t[14]=s.extensionDebug.nav,t[15]=a),t[16]!==n||t[17]!==a?(u=(0,$.jsxs)(m,{to:`/settings/extensions/debug`,className:n,children:[r,a]}),t[16]=n,t[17]=a,t[18]=u):u=t[18];let o;t[19]===n?o=t[20]:(o=e=>{let{extension:t,panel:r}=e;return(0,$.jsxs)(m,{to:`/settings/ext/${t.id}/${r.id}`,className:n,children:[(0,$.jsx)(Av,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:r.title})]},`${t.id}:${r.id}`)},t[19]=n,t[20]=o),d=e.map(o)}t[2]=s,t[3]=n,t[4]=i,t[5]=c,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p}else l=t[6],u=t[7],d=t[8],f=t[9],p=t[10];if(p!==Symbol.for(`react.early_return_sentinel`))return p;let h;if(t[21]!==n||t[22]!==c){let e;t[24]===n?e=t[25]:(e=e=>(0,$.jsxs)(m,{to:`/settings/ext/${e.id}`,className:n,children:[(0,$.jsx)(Av,{className:`size-5 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name})]},`${e.id}:config`),t[24]=n,t[25]=e),h=Ome(c).map(e),t[21]=n,t[22]=c,t[23]=h}else h=t[23];let g;t[26]!==l||t[27]!==u||t[28]!==d||t[29]!==h?(g=(0,$.jsxs)(`div`,{className:l,children:[u,d,h]}),t[26]=l,t[27]=u,t[28]=d,t[29]=h,t[30]=g):g=t[30];let _;return t[31]!==f||t[32]!==g?(_=(0,$.jsxs)(`div`,{children:[f,g]}),t[31]=f,t[32]=g,t[33]=_):_=t[33],_}function Eme(e){return e.language}function Dme(e){let t=[];for(let n of e){let e=n.ui?.contributions?.settingsPanels;if(e)for(let r of e)t.push({extension:n,panel:r})}return t.sort((e,t)=>{let n=e.panel.order??999,r=t.panel.order??999;return n===r?e.panel.title.localeCompare(t.panel.title):n-r}),t}function Ome(e){return e.filter(e=>(!!e.hasConfigSchema||bI(e))&&!(Array.isArray(e.ui?.contributions?.settingsPanels)&&e.ui.contributions.settingsPanels.length>0))}function kme(e,t){let n=globalThis.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)}function Ame(e){return globalThis.matchMedia(e).matches}function n5(e,t){let n=(0,Q.c)(5),r=t===void 0?!1:t,i,a;n[0]===e?(i=n[1],a=n[2]):(i=t=>kme(e,t),a=()=>Ame(e),n[0]=e,n[1]=i,n[2]=a);let o;return n[3]===r?o=n[4]:(o=()=>r,n[3]=r,n[4]=o),(0,Z.useSyncExternalStore)(i,a,o)}var jme=`settingsBackPath`;function r5(e){if(!e||typeof e!=`object`)return`/chat`;let t=e[jme];if(typeof t!=`string`)return`/chat`;let n=t.trim();return!n.startsWith(`/`)||n.startsWith(`//`)?`/chat`:n}var i5=`xopc-web-settings-rail-width-px`;function a5(e){return Math.min(360,Math.max(192,Math.round(e)))}function Mme(){try{let e=globalThis.localStorage?.getItem(i5);if(e==null)return a5(228);let t=Number.parseInt(e,10);return a5(Number.isFinite(t)?t:228)}catch{return a5(228)}}function Nme(e){try{globalThis.localStorage?.setItem(i5,String(e))}catch{}}var o5=at((e,t)=>({widthPx:Mme(),setWidthPx:n=>{let r=a5(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>Nme(r)))}}));function s5({isActive:e}){return X(`flex w-full shrink-0 items-center gap-2.5 rounded-xl px-4 py-2 text-sm font-medium leading-6 transition-colors duration-200 ease-out`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,e?`bg-accent-soft text-accent-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`)}var Pme=X(`inline-flex max-w-full items-center gap-2 rounded-xl px-3 py-2 text-sm font-medium transition-colors duration-200 ease-out`,`text-fg-muted hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`,`sm:px-4`),c5=X(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl text-fg-muted transition-colors duration-200 ease-out`,`hover:bg-surface-hover hover:text-fg`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,pj);function l5(e,t){return e.tabs.filter(e=>n3(e,t)?!Zj.has(e)||Wt():!1)}function Fme(e){let t=(0,Q.c)(26),{group:n,groupIndex:r,language:i,location:a,settingsMode:o}=e,s;t[0]===i?s=t[1]:(s=rt(i),t[0]=i,t[1]=s);let c=s,l,u,d,f;if(t[2]!==n||t[3]!==r||t[4]!==i||t[5]!==a||t[6]!==c||t[7]!==o){f=Symbol.for(`react.early_return_sentinel`);bb0:{let e=l5(n,o);if(e.length===0){f=null;break bb0}let s=r===0&&`pt-0`,p;t[12]===s?p=t[13]:(p=X(`px-4 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wider text-fg-muted`,s),t[12]=s,t[13]=p);let h=c.settingsNavGroups[n.id];t[14]!==p||t[15]!==h?(d=(0,$.jsx)(`p`,{className:p,children:h}),t[14]=p,t[15]=h,t[16]=d):d=t[16],l=`flex flex-col gap-0.5`;let g;t[17]!==i||t[18]!==a?(g=e=>(0,$.jsxs)(m,{to:aM(e),state:a.state,onMouseEnter:()=>HP(aM(e)),onFocus:()=>HP(aM(e)),className:t=>{let{isActive:n}=t;return s5({isActive:n||e===`settingsCapabilities`&&a.pathname.startsWith(`/settings/capabilities/`)})},children:[(0,$.jsx)(wme,{tab:e,className:`size-5 shrink-0 opacity-90`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:nt(i,e)})]},e),t[17]=i,t[18]=a,t[19]=g):g=t[19],u=e.map(g)}t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=c,t[7]=o,t[8]=l,t[9]=u,t[10]=d,t[11]=f}else l=t[8],u=t[9],d=t[10],f=t[11];if(f!==Symbol.for(`react.early_return_sentinel`))return f;let p;t[20]!==l||t[21]!==u?(p=(0,$.jsx)(`div`,{className:l,children:u}),t[20]=l,t[21]=u,t[22]=p):p=t[22];let h;return t[23]!==d||t[24]!==p?(h=(0,$.jsxs)(`div`,{children:[d,p]}),t[23]=d,t[24]=p,t[25]=h):h=t[25],h}var Ime=(0,Z.memo)(function(){let e=(0,Q.c)(86),t=ct(Lme),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n,i=l(),a=o3(Rme),o=o5(zme),s=o5(Bme),[c,u]=(0,Z.useState)(!1),[d,p]=(0,Z.useState)(!1),m=n5(Lt),h=mM({runtime:pM(),sidebarCollapsed:!1,mobileNavOpen:d}),g=m?h.sidebarLeadingInsetClass:``,v;e[2]===s?v=e[3]:(v=e=>{e.preventDefault();let t=e.currentTarget,n=t.parentElement;t.setPointerCapture(e.pointerId),u(!0);let r=e.clientX,i=o5.getState().widthPx,a=e.pointerId,o=0,c=i,l=i,d=()=>{o=0,l=c,n?.style.setProperty(`--settings-rail-px`,`${l}px`)},f=e=>{c=a5(i+(e.clientX-r)),o===0&&(o=window.requestAnimationFrame(d))},p=()=>{o!==0&&(window.cancelAnimationFrame(o),d());try{t.releasePointerCapture(a)}catch{}u(!1),s(l),window.removeEventListener(`pointermove`,f),window.removeEventListener(`pointerup`,p),window.removeEventListener(`pointercancel`,p)};window.addEventListener(`pointermove`,f),window.addEventListener(`pointerup`,p),window.addEventListener(`pointercancel`,p)},e[2]=s,e[3]=v);let b=v,x;e[4]===i.state?x=e[5]:(x=r5(i.state),e[4]=i.state,e[5]=x);let S=x,C=r.sidebar.backToApp,w;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(w=X(Pme,pj),e[6]=w):w=e[6];let T;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(xr,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),e[7]=T):T=e[7];let E;e[8]===C?E=e[9]:(E=(0,$.jsx)(`span`,{children:C}),e[8]=C,e[9]=E);let D;e[10]!==C||e[11]!==S||e[12]!==E?(D=(0,$.jsxs)(y,{to:S,replace:!1,className:w,title:C,children:[T,E]}),e[10]=C,e[11]=S,e[12]=E,e[13]=D):D=e[13];let O=D,k;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(k=[...$j,...Wt()?[Qj]:[]],e[14]=k):k=e[14];let A=k,j;e[15]!==i.pathname||e[16]!==a?(j=A.flatMap(e=>l5(e,a)).find(e=>i.pathname===aM(e)||e===`settingsCapabilities`&&i.pathname.startsWith(`/settings/capabilities/`)),e[15]=i.pathname,e[16]=a,e[17]=j):j=e[17];let M=j,N;e[18]!==i.pathname||e[19]!==a?(N=r3(i.pathname,a),e[18]=i.pathname,e[19]=a,e[20]=N):N=e[20];let P=!N,F;e[21]!==M||e[22]!==t||e[23]!==r.nav.settings?(F=M?nt(t,M):r.nav.settings,e[21]=M,e[22]=t,e[23]=r.nav.settings,e[24]=F):F=e[24];let I=F,L;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{p(!1)},e[25]=L):L=e[25];let R;e[26]!==i.pathname||e[27]!==i.search?(R=[i.pathname,i.search],e[26]=i.pathname,e[27]=i.search,e[28]=R):R=e[28],(0,Z.useEffect)(L,R);let z=r.nav.settings,B;e[29]!==t||e[30]!==i||e[31]!==a?(B=A.map((e,n)=>(0,$.jsx)(Fme,{group:e,groupIndex:n,language:t,location:i,settingsMode:a},e.id)),e[29]=t,e[30]=i,e[31]=a,e[32]=B):B=e[32];let V=a===`advanced`,H;e[33]===V?H=e[34]:(H=(0,$.jsx)(Tme,{navLinkClassName:s5,showAdvanced:V}),e[33]=V,e[34]=H);let ee;e[35]!==B||e[36]!==H?(ee=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[B,H]}),e[35]=B,e[36]=H,e[37]=ee):ee=e[37];let te;e[38]!==r.nav.settings||e[39]!==ee?(te=(0,$.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-4 pb-4 pt-2`,"aria-label":z,children:ee}),e[38]=r.nav.settings,e[39]=ee,e[40]=te):te=e[40];let ne;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(yme,{}),e[41]=ne):ne=e[41];let U;e[42]===te?U=e[43]:(U=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[te,ne]}),e[42]=te,e[43]=U);let W=U,re;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(xr,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[44]=re):re=e[44];let ie;e[45]!==C||e[46]!==S?(ie=(0,$.jsx)(y,{to:S,className:c5,title:C,"aria-label":C,children:re}),e[45]=C,e[46]=S,e[47]=ie):ie=e[47];let ae;e[48]===r.nav.settings?ae=e[49]:(ae=(0,$.jsx)(`p`,{className:`text-[11px] font-medium uppercase tracking-wider text-fg-subtle`,children:r.nav.settings}),e[48]=r.nav.settings,e[49]=ae);let oe;e[50]===I?oe=e[51]:(oe=(0,$.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:I}),e[50]=I,e[51]=oe);let se;e[52]!==ae||e[53]!==oe?(se=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[ae,oe]}),e[52]=ae,e[53]=oe,e[54]=se):se=e[54];let ce;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>p(!0),e[55]=ce):ce=e[55];let le;e[56]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsx)(K_,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[56]=le):le=e[56];let ue;e[57]!==r.nav.settings||e[58]!==d?(ue=(0,$.jsx)(`button`,{type:`button`,className:c5,onClick:ce,"aria-label":r.nav.settings,"aria-expanded":d,children:le}),e[57]=r.nav.settings,e[58]=d,e[59]=ue):ue=e[59];let de;e[60]!==O||e[61]!==r.nav.settings||e[62]!==d||e[63]!==W?(de=d?(0,$.jsxs)(`div`,{className:`fixed inset-0 z-60 md:hidden`,role:`presentation`,children:[(0,$.jsx)(`button`,{type:`button`,className:`absolute inset-0 bg-scrim/45 backdrop-blur-[1px]`,onClick:()=>p(!1),"aria-label":r.nav.settings}),(0,$.jsxs)(`aside`,{className:`app-chrome-sidebar absolute inset-y-0 left-0 flex w-[min(20rem,calc(100vw-3rem))] flex-col bg-surface-rail shadow-float`,children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 px-4 pb-2 pt-4`,children:[O,(0,$.jsx)(`button`,{type:`button`,className:c5,onClick:()=>p(!1),"aria-label":r.nav.settings,children:(0,$.jsx)(Ne,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0})})]}),W]})]}):null,e[60]=O,e[61]=r.nav.settings,e[62]=d,e[63]=W,e[64]=de):de=e[64];let fe=c&&`settings-page-rail-resizing`,pe;e[65]===fe?pe=e[66]:(pe=X(`app-chrome-sidebar relative hidden shrink-0 flex-col bg-surface-rail md:flex`,`md:h-full md:min-h-0 md:shrink-0 md:overflow-hidden`,`settings-page-rail`,fe),e[65]=fe,e[66]=pe);let me=`${o}px`,G;e[67]===me?G=e[68]:(G={"--settings-rail-px":me},e[67]=me,e[68]=G);let he=G,ge=X(`flex shrink-0 items-center justify-between gap-2 pb-2 pt-4`,h.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,g,m&&h.sidebarLeadingInsetClass?`pr-4`:`px-4`),_e;e[69]!==O||e[70]!==ge?(_e=(0,$.jsx)(`div`,{className:ge,children:O}),e[69]=O,e[70]=ge,e[71]=_e):_e=e[71];let ve=r.sidebar.resizeHandleAria,ye=c&&`bg-surface-hover/30 before:bg-edge/80! dark:before:bg-edge/85!`,be;e[72]===ye?be=e[73]:(be=X(`pointer-events-auto absolute right-0 top-0 z-10 hidden h-full w-2 shrink-0 cursor-col-resize md:block`,`before:content-[''] before:pointer-events-none before:absolute before:left-1/2 before:top-0 before:z-0 before:h-full before:w-px before:-translate-x-1/2`,`before:bg-transparent before:transition-[background-color] before:duration-150`,`hover:bg-surface-hover/20 hover:before:bg-edge/65 dark:hover:before:bg-edge/75`,ye,`transition-[background-color] duration-150`,`touch-none select-none`,pj),e[72]=ye,e[73]=be);let xe;e[74]!==r.sidebar.resizeHandleAria||e[75]!==b||e[76]!==be?(xe=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":ve,onPointerDown:b,className:be}),e[74]=r.sidebar.resizeHandleAria,e[75]=b,e[76]=be,e[77]=xe):xe=e[77];let Se;e[78]!==W||e[79]!==pe||e[80]!==he||e[81]!==_e||e[82]!==xe?(Se=(0,$.jsxs)(`div`,{className:pe,style:he,children:[_e,W,xe]}),e[78]=W,e[79]=pe,e[80]=he,e[81]=_e,e[82]=xe,e[83]=Se):Se=e[83];let Ce;return e[84]===P?Ce=e[85]:(Ce=(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain bg-surface-panel scrollbar-gutter-both`,children:P?(0,$.jsx)(_,{to:`/settings/overview`,replace:!0}):(0,$.jsx)(f,{})}),e[84]=P,e[85]=Ce),(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden md:flex-row`,children:[(0,$.jsxs)(`div`,{className:X(`flex shrink-0 items-center gap-2 border-b border-edge-subtle bg-surface-panel px-3 py-2 md:hidden`,h.mainHeaderDraggable&&`[-webkit-app-region:drag]`),children:[ie,se,ue]}),de,Se,Ce]})});function Lme(e){return e.language}function Rme(e){return e.mode}function zme(e){return e.widthPx}function Bme(e){return e.setWidthPx}var Vme=(0,Z.memo)(function(e){let t=(0,Q.c)(26),{children:n}=e,r=p(),i=l(),a=ct(Hme),o;t[0]===a?o=t[1]:(o=rt(a),t[0]=a,t[1]=o);let s=o,c;t[2]===i.state?c=t[3]:(c=r5(i.state),t[2]=i.state,t[3]=c);let u=c,d=n5(Lt),f,m;t[4]!==u||t[5]!==r?(f=()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),r(u))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},m=[r,u],t[4]=u,t[5]=r,t[6]=f,t[7]=m):(f=t[6],m=t[7]),(0,Z.useEffect)(f,m);let h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],t[8]=h):h=t[8],(0,Z.useEffect)(Ume,h);let g;t[9]!==u||t[10]!==r?(g=(0,$.jsx)(`div`,{role:`presentation`,className:`absolute inset-0 z-40 bg-scrim/55 backdrop-blur-[2px] dark:bg-black/50`,onClick:()=>r(u)}),t[9]=u,t[10]=r,t[11]=g):g=t[11];let _=g,v;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=X(`relative z-50 flex min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,`max-md:shadow-elevated`,`md:m-3 md:max-h-[calc(100dvh-1.5rem)] md:rounded-2xl md:border md:border-edge md:shadow-elevated`,`settings-sheet-enter`),t[12]=v):v=t[12];let y;t[13]===n?y=t[14]:(y=(0,$.jsx)(Ut,{layer:`page`,children:n}),t[13]=n,t[14]=y);let b;t[15]!==s.nav.settings||t[16]!==y?(b=(0,$.jsx)(`div`,{className:v,role:`dialog`,"aria-modal":`true`,"aria-label":s.nav.settings,children:y}),t[15]=s.nav.settings,t[16]=y,t[17]=b):b=t[17];let x=b,S;t[18]!==x||t[19]!==_?(S=(0,$.jsxs)($.Fragment,{children:[_,x]}),t[18]=x,t[19]=_,t[20]=S):S=t[20];let C=S;if(d){let e;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(e=X(`fixed inset-0 flex min-h-0 flex-col bg-surface-base`,zt),t[21]=e):e=t[21];let n;return t[22]===C?n=t[23]:(n=(0,en.createPortal)((0,$.jsx)(`div`,{className:e,children:C}),document.body),t[22]=C,t[23]=n),n}let w;return t[24]===C?w=t[25]:(w=(0,$.jsx)(`div`,{className:`relative flex min-h-0 min-h-[100dvh] flex-1 flex-col md:min-h-0`,children:C}),t[24]=C,t[25]=w),w});function Hme(e){return e.language}function Ume(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function u5(){if(Wt())return null;let e=window.open(`about:blank`,`xopc-oauth`);return e&&(e.opener=null),e}async function d5(e,t){return Wt()?(await window.electronAPI?.shell?.openExternalUrl(e))?.ok===!0:!t||t.closed?!1:(t.location.replace(e),!0)}function f5(e){e&&!e.closed&&e.close()}function Wme(e){let t=`/api/sessions/${encodeURIComponent(e)}/connection-wait`,{data:n,mutate:r,isLoading:i}=mt(t,async e=>(await J(Y(e))).payload,{refreshInterval:e=>e?.wait?5e3:0,revalidateOnFocus:!0}),a=(0,Z.useRef)(n);a.current=n;let o=(0,Z.useRef)(!1),[s,c]=(0,Z.useState)(!1),[l,u]=(0,Z.useState)(),d=(0,Z.useCallback)(async(e,n,i,s)=>{let l=a.current,d=l?.wait;if(!d||o.current)return;o.current=!0,c(!0),u(void 0);let f=e===`connect`?u5():null;try{let a=await J(Y(`${t}/actions`),{method:`POST`,body:JSON.stringify({action:e,needKey:n,accountId:i,candidateRef:s,waitId:d.id,expectedSessionId:l.sessionId,expectedVersion:d.version,idempotencyKey:crypto.randomUUID()})}),o=a.payload.snapshot;if(await r(e=>!e||e.sessionId!==o.sessionId||o.revision>=e.revision?o:e,!1),a.payload.authorizationUrl){if(!await d5(a.payload.authorizationUrl,f))throw Error(`Unable to open the authorization window. Allow pop-ups, then retry.`)}else f5(f)}catch(e){f5(f),e.status!==409&&u(e instanceof Error?e.message:String(e)),await r()}finally{o.current=!1,c(!1)}},[t,r]);return(0,Z.useEffect)(()=>{let t=t=>{let n=t.detail;n?.sessionKey===e&&(n.revision??1/0)>(a.current?.revision??0)&&r()};return window.addEventListener(`session-connection-wait-changed`,t),()=>window.removeEventListener(`session-connection-wait-changed`,t)},[e,r]),{wait:n?.wait,isLoading:i,busy:s,error:l,act:d}}var Gme={zh:{waiting:`等待连接`,connect:`连接并继续`,reconnect:`重新连接`,details:`查看详情`,skip:`跳过连接`,cancel:`取消这个目标`,ready:`连接已就绪`,continue:`继续`,check:`我已完成授权`,authorizing:`等待完成授权`,queued:`已排队,准备继续`,scope:`确认后继续`,scopeHint:`这个目标已等待了一段时间。请确认仍要按下方原始要求继续;如需修改时间范围,请先在聊天中说明。未读等条件将以实际执行时为准。`,account:`选择账号`,all:`查看全部连接器`,close:`关闭`,intro:`完成连接后,将继续当前目标。你也可以继续发送消息。`,replace:`更换应用`,confirmReplace:`确认改用`,apps:`个应用需要连接`,preserved:`目标已保留`,retry:`重试检查`,toolsUnavailable:`应用工具暂不可用`,toolsHint:`账号已连接,当前无法使用任务所需工具。可以重试检查,无需重新授权。`},en:{waiting:`Waiting for connection`,connect:`Connect and continue`,reconnect:`Reconnect`,details:`Details`,skip:`Skip connection`,cancel:`Cancel this objective`,ready:`Connection ready`,continue:`Continue`,check:`Check authorization`,authorizing:`Waiting for authorization`,queued:`Queued to continue`,scope:`Confirm and continue`,scopeHint:`This objective has been waiting for a while. Confirm the original request below, or send a message to change the time range first. Conditions such as unread status are evaluated at execution time.`,account:`Choose an account`,all:`View all connectors`,close:`Close`,intro:`The current objective will continue after connecting. You can keep sending messages.`,replace:`Change app`,confirmReplace:`Confirm switch to`,apps:`apps need connecting`,preserved:`Objective preserved`,retry:`Retry check`,toolsUnavailable:`App tools unavailable`,toolsHint:`The account is connected, but the tools needed for this task are unavailable. Retry the check without reconnecting.`}},p5=`rounded-lg border border-edge px-3 py-1.5 text-sm text-fg hover:bg-surface-hover disabled:opacity-50`,m5=`rounded-lg bg-accent px-3 py-1.5 text-sm text-white disabled:opacity-50`;function Kme(e){let t=(0,Q.c)(124),{sessionKey:n}=e,{wait:r,isLoading:i,busy:a,error:o,act:s}=Wme(n),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(),f=ct(Xme),p=Gme[f];if(i){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Ft,{className:`mb-2 h-10 w-full rounded-xl`}),t[0]=e):e=t[0],e}if(!r)return null;let m=r.needs[0],h=r.needs.length===1,g=r.phase===`queued`,_=r.needs.some(Yme),v=g?p.queued:r.phase===`ready`?p.continue:r.phase===`review_scope`?p.scope:h&&m.phase===`connect`?f===`zh`?`连接 ${m.label} 并继续`:`Connect ${m.label} and continue`:h&&m.phase===`reconnect`?p.reconnect:h&&m.phase===`authorizing`?p.check:p.details,y;t[1]!==s||t[2]!==m||t[3]!==h||t[4]!==r.phase?(y=function(){r?.phase===`ready`?s(`continue`):r?.phase===`review_scope`?l(!0):h&&[`connect`,`reconnect`].includes(m.phase)?s(`connect`,m.key):h&&m.phase===`authorizing`?s(`check`):l(!0)},t[1]=s,t[2]=m,t[3]=h,t[4]=r.phase,t[5]=y):y=t[5];let b=y,x=_?p.toolsUnavailable:p.waiting,S;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(p_,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[6]=S):S=t[6];let C;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>l(!0),t[7]=C):C=t[7];let w=_?p.toolsUnavailable:r.phase===`ready`?p.ready:h?`${p.waiting} · ${m.label}`:`${r.needs.length} ${p.apps}`,T;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(cs,{className:`ml-1 inline size-3`,"aria-hidden":!0}),t[8]=T):T=t[8];let E;t[9]===w?E=t[10]:(E=(0,$.jsxs)(`button`,{type:`button`,className:`min-w-0 flex-1 text-left text-sm text-fg`,onClick:C,children:[w,T]}),t[9]=w,t[10]=E);let D=a||g,O;t[11]===a?O=t[12]:(O=a&&(0,$.jsx)(je,{className:`mr-1 inline size-3 animate-spin`,"aria-hidden":!0}),t[11]=a,t[12]=O);let k;t[13]!==v||t[14]!==b||t[15]!==D||t[16]!==O?(k=(0,$.jsxs)(`button`,{type:`button`,className:m5,disabled:D,onClick:b,children:[O,v]}),t[13]=v,t[14]=b,t[15]=D,t[16]=O,t[17]=k):k=t[17];let A=a||g,j;t[18]===s?j=t[19]:(j=()=>void s(`skip`),t[18]=s,t[19]=j);let M;t[20]!==p.skip||t[21]!==A||t[22]!==j?(M=(0,$.jsx)(`button`,{type:`button`,className:`text-xs text-fg-muted hover:text-fg`,disabled:A,onClick:j,children:p.skip}),t[20]=p.skip,t[21]=A,t[22]=j,t[23]=M):M=t[23];let N;t[24]!==k||t[25]!==M||t[26]!==E?(N=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[S,E,k,M]}),t[24]=k,t[25]=M,t[26]=E,t[27]=N):N=t[27];let P;t[28]!==s||t[29]!==o||t[30]!==p.retry?(P=o&&(0,$.jsxs)(`p`,{role:`alert`,className:`mt-2 text-xs text-fg-muted`,children:[o,` `,(0,$.jsx)(`button`,{type:`button`,className:`text-accent`,onClick:()=>void s(`check`),children:p.retry})]}),t[28]=s,t[29]=o,t[30]=p.retry,t[31]=P):P=t[31];let F;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(R,{className:`fixed inset-0 z-[60] bg-scrim`}),t[32]=F):F=t[32];let I;t[33]===p.preserved?I=t[34]:(I=(0,$.jsx)(te,{className:`font-medium text-fg`,children:p.preserved}),t[33]=p.preserved,t[34]=I);let L;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,$.jsx)(Ne,{className:`size-4`}),t[35]=L):L=t[35];let z;t[36]===p.close?z=t[37]:(z=(0,$.jsx)(V,{"aria-label":p.close,children:L}),t[36]=p.close,t[37]=z);let U;t[38]!==I||t[39]!==z?(U=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between border-b border-edge px-5 py-4`,children:[I,z]}),t[38]=I,t[39]=z,t[40]=U):U=t[40];let re=_?p.toolsHint:r.phase===`review_scope`?p.scopeHint:p.intro,ie;t[41]===re?ie=t[42]:(ie=(0,$.jsx)(B,{className:`text-sm text-fg-muted`,children:re}),t[41]=re,t[42]=ie);let ae;t[43]===r.summary?ae=t[44]:(ae=(0,$.jsx)(`p`,{className:`whitespace-pre-wrap rounded-lg border border-edge p-3 text-sm text-fg`,children:r.summary}),t[43]=r.summary,t[44]=ae);let oe;t[45]!==f||t[46]!==r.objectiveUpdatedAt?(oe=new Date(r.objectiveUpdatedAt).toLocaleString(f===`zh`?`zh-CN`:`en-US`),t[45]=f,t[46]=r.objectiveUpdatedAt,t[47]=oe):oe=t[47];let se;t[48]===oe?se=t[49]:(se=(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:oe}),t[48]=oe,t[49]=se);let ce;t[50]!==f||t[51]!==r.timeRange?(ce=r.timeRange&&(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[new Date(r.timeRange.from).toLocaleString(f,{timeZone:r.timeRange.timezone}),` – `,new Date(r.timeRange.to).toLocaleString(f,{timeZone:r.timeRange.timezone}),` (`,r.timeRange.timezone,`)`]}),t[50]=f,t[51]=r.timeRange,t[52]=ce):ce=t[52];let le;if(t[53]!==s||t[54]!==a||t[55]!==g||t[56]!==u||t[57]!==p.account||t[58]!==p.authorizing||t[59]!==p.check||t[60]!==p.confirmReplace||t[61]!==p.connect||t[62]!==p.ready||t[63]!==p.reconnect||t[64]!==p.replace||t[65]!==p.retry||t[66]!==r.needs){let e;t[68]!==s||t[69]!==a||t[70]!==g||t[71]!==u||t[72]!==p.account||t[73]!==p.authorizing||t[74]!==p.check||t[75]!==p.confirmReplace||t[76]!==p.connect||t[77]!==p.ready||t[78]!==p.reconnect||t[79]!==p.replace||t[80]!==p.retry?(e=e=>(0,$.jsxs)(`div`,{className:`space-y-2 rounded-xl border border-edge p-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`span`,{className:`text-sm font-medium text-fg`,children:[e.label,e.accountSelector?` · ${e.accountSelector}`:``]}),e.capabilityError?(0,$.jsx)(`button`,{type:`button`,disabled:a||g,className:p5,onClick:()=>void s(`check`),children:p.retry}):e.phase===`ready`?(0,$.jsxs)(`span`,{className:`text-xs text-fg-muted`,children:[(0,$.jsx)(W,{className:`mr-1 inline size-3`}),p.ready]}):e.phase===`authorizing`?(0,$.jsx)(`button`,{type:`button`,disabled:a,className:p5,onClick:()=>void s(`check`),children:p.check}):e.phase!==`blocked`&&e.phase!==`choose_account`?(0,$.jsx)(`button`,{type:`button`,disabled:a||g,className:m5,onClick:()=>void s(`connect`,e.key),children:e.phase===`reconnect`?p.reconnect:p.connect}):null]}),e.accounts.length>0&&(0,$.jsx)(fe,{value:e.connectionId??``,options:e.accounts.map(Jme),placeholder:p.account,ariaLabel:`${e.label}: ${p.account}`,allowEmpty:!1,disabled:a||g,onChange:t=>void s(`select_account`,e.key,t)}),e.alternatives?.length?(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(fe,{value:u?.needKey===e.key?u.candidateRef:``,options:e.alternatives.map(qme),placeholder:p.replace,ariaLabel:`${e.label}: ${p.replace}`,disabled:a||g,allowEmpty:!1,onChange:t=>d({needKey:e.key,candidateRef:t,label:e.alternatives.find(e=>e.candidateRef===t).label})}),u?.needKey===e.key&&(0,$.jsxs)(`button`,{type:`button`,className:p5,disabled:a,onClick:()=>{s(`replace_source`,e.key,void 0,u.candidateRef),d(void 0)},children:[p.confirmReplace,` `,u.label]})]}):null,e.reason&&(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:e.reason}),e.phase===`authorizing`&&(0,$.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:p.authorizing}),(0,$.jsx)(`button`,{type:`button`,disabled:a,className:`text-accent`,onClick:()=>void s(`connect`,e.key),children:p.reconnect})]})]},e.key),t[68]=s,t[69]=a,t[70]=g,t[71]=u,t[72]=p.account,t[73]=p.authorizing,t[74]=p.check,t[75]=p.confirmReplace,t[76]=p.connect,t[77]=p.ready,t[78]=p.reconnect,t[79]=p.replace,t[80]=p.retry,t[81]=e):e=t[81],le=r.needs.map(e),t[53]=s,t[54]=a,t[55]=g,t[56]=u,t[57]=p.account,t[58]=p.authorizing,t[59]=p.check,t[60]=p.confirmReplace,t[61]=p.connect,t[62]=p.ready,t[63]=p.reconnect,t[64]=p.replace,t[65]=p.retry,t[66]=r.needs,t[67]=le}else le=t[67];let ue;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(ue=()=>l(!1),t[82]=ue):ue=t[82];let de;t[83]===p.all?de=t[84]:(de=(0,$.jsx)(`a`,{href:`#/connectors`,className:`text-sm text-accent`,onClick:ue,children:p.all}),t[83]=p.all,t[84]=de);let pe;t[85]!==ie||t[86]!==ae||t[87]!==se||t[88]!==ce||t[89]!==le||t[90]!==de?(pe=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-5`,children:[ie,ae,se,ce,le,de]}),t[85]=ie,t[86]=ae,t[87]=se,t[88]=ce,t[89]=le,t[90]=de,t[91]=pe):pe=t[91];let me=a||g,G;t[92]===s?G=t[93]:(G=()=>void s(`cancel`),t[92]=s,t[93]=G);let he;t[94]!==p.cancel||t[95]!==me||t[96]!==G?(he=(0,$.jsx)(`button`,{type:`button`,disabled:me,className:`text-sm text-fg-muted`,onClick:G,children:p.cancel}),t[94]=p.cancel,t[95]=me,t[96]=G,t[97]=he):he=t[97];let ge;t[98]!==a||t[99]!==g||t[100]!==r.phase?(ge=a||g||![`ready`,`review_scope`].includes(r.phase),t[98]=a,t[99]=g,t[100]=r.phase,t[101]=ge):ge=t[101];let _e;t[102]!==s||t[103]!==r.phase?(_e=()=>void s(r.phase===`review_scope`?`confirm_scope`:`continue`),t[102]=s,t[103]=r.phase,t[104]=_e):_e=t[104];let ve=r.phase===`review_scope`?p.scope:p.continue,ye;t[105]!==ge||t[106]!==_e||t[107]!==ve?(ye=(0,$.jsx)(`button`,{type:`button`,disabled:ge,className:m5,onClick:_e,children:ve}),t[105]=ge,t[106]=_e,t[107]=ve,t[108]=ye):ye=t[108];let be;t[109]!==he||t[110]!==ye?(be=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-t border-edge p-4`,children:[he,ye]}),t[109]=he,t[110]=ye,t[111]=be):be=t[111];let xe;t[112]!==U||t[113]!==pe||t[114]!==be?(xe=(0,$.jsxs)(H,{children:[F,(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[60] flex h-[min(90dvh,34rem)] w-[min(94vw,34rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-panel outline-none`,children:[U,pe,be]})]}),t[112]=U,t[113]=pe,t[114]=be,t[115]=xe):xe=t[115];let Se;t[116]!==c||t[117]!==xe?(Se=(0,$.jsx)(ne,{open:c,onOpenChange:l,children:xe}),t[116]=c,t[117]=xe,t[118]=Se):Se=t[118];let Ce;return t[119]!==N||t[120]!==P||t[121]!==x||t[122]!==Se?(Ce=(0,$.jsxs)(`section`,{className:`mb-2 rounded-xl border border-edge bg-surface-panel px-3 py-2`,"aria-label":x,children:[N,P,Se]}),t[119]=N,t[120]=P,t[121]=x,t[122]=Se,t[123]=Ce):Ce=t[123],Ce}function qme(e){return{value:e.candidateRef,label:e.label}}function Jme(e){return{value:e.id,label:e.label}}function Yme(e){return e.capabilityError}function Xme(e){return e.language}var h5=`image/*,application/pdf,.docx,.pptx,.xlsx,.xls,.txt,.md,.json,.xml,.html,.css,.js,.ts,.jsx,.tsx,.yml,.yaml,.zip`,Zme=h5.split(`,`).flatMap(e=>{let t=e.trim();return t?[t]:[]});function Qme(e){return`${e.name}\0${e.size}`}function g5(e){let t=(e.type||``).toLowerCase(),n=e.name.toLowerCase();for(let e of Zme){let r=e.toLowerCase();if(r.endsWith(`/*`)){let e=r.slice(0,-1);if(t.startsWith(e))return!0}else if(e.startsWith(`.`)){if(n.endsWith(e.toLowerCase()))return!0}else if(t===r)return!0}return!1}function _5(e){if(!e)return[];let t=new Set,n=[],r=e=>{if(!e||e.size===0)return;let r=Qme(e);t.has(r)||(t.add(r),n.push(e))},{files:i}=e;if(i?.length)for(let e=0;e<i.length;e++)r(i.item(e));for(let t of Array.from(e.items??[]))t.kind===`file`&&r(t.getAsFile());return n}var v5=``,y5=``,b5=RegExp(`^\\/skill:(${oL})`);function $me(e){return!!e.dataset.skill}function ehe(e){return!!e.dataset.file}function the(e){return e.dataset.slashCommand!=null&&e.dataset.slashCommand!==``}function nhe(e){let t=e.replace(/\/$/,``);return`@${t.split(`/`).pop()??t}`}function x5(e){let t=``;for(let n of e)if(n){if(t.length>0){let e=t[t.length-1],r=n[0];if(!/\s/.test(e)&&!/\s/.test(r)){let e=BY(t)||/\/skill:\S+$/.test(t)||$Y(t),r=n.startsWith(`@file:`)||n.startsWith(`/skill:`)||eX(n);(e||r)&&(t+=` `)}}t+=n}return t}function S5(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;let t=e.tagName;return t===`DIV`||t===`P`||t===`PRE`||t===`BLOCKQUOTE`}function rhe(e,t){if(e.nodeType===Node.TEXT_NODE)t.push((e.textContent??``).replaceAll(v5,``));else if(e.nodeType===Node.ELEMENT_NODE){let n=e;if($me(n)){let e=n.dataset.skill??``;e&&t.push(`/skill:${e}`)}else if(ehe(n)){let e=n.dataset.file??``;e&&t.push(`@file:${HY(e)}`)}else if(the(n)){let e=n.dataset.slashCommand??``;e&&t.push(`/${e}`)}else n.tagName===`BR`?t.push(`
|
|
68
|
+
`):C5(n,t)}}function C5(e,t){let n=Array.from(e.childNodes);for(let e=0;e<n.length;e++){let r=n[e],i=n[e+1];rhe(r,t),i!=null&&(S5(r)||S5(i))&&t.push(`
|
|
69
|
+
`)}}function w5(e,t){C5(e,t)}function T5(e){let t=[];return w5(e,t),x5(t).replaceAll(y5,``)}function ihe(e){let t=window.getSelection();if(!t)return;let n=document.createRange(),r=e.firstChild;r&&r.nodeType===Node.TEXT_NODE?(n.setStart(r,0),n.collapse(!0)):(n.setStart(e,0),n.collapse(!0)),t.removeAllRanges(),t.addRange(n)}function E5(e){let t=T5(e);return t.length>0||e.childNodes.length===0?t:(O5(e,``),ihe(e),``)}function ahe(e){let t=new Set,n=cL(),r;for(;(r=n.exec(e))!==null;){let e=r[1];e&&t.add(e)}return t}function D5(e){let t=window.getSelection();if(!t||t.rangeCount===0)return T5(e).length;let n=t.getRangeAt(0),r=document.createTextNode(y5);try{n.insertNode(r)}catch{return T5(e).length}let i=[];w5(e,i);let a=x5(i);r.parentNode?.removeChild(r);let o=a.indexOf(y5);return o>=0?o:a.replaceAll(y5,``).length}function ohe(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.skill=t,n.className=`chat-skill-pill`,n.textContent=`/${t}`,e.appendChild(n),e.appendChild(document.createTextNode(v5))}function she(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.file=t,n.className=`chat-file-pill`,n.textContent=nhe(t),e.appendChild(n),e.appendChild(document.createTextNode(v5))}function che(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.slashCommand=t,n.className=`chat-command-pill`,n.textContent=`/${t}`,e.appendChild(n),e.appendChild(document.createTextNode(v5))}function lhe(e){let t=[],n=n=>{let r,i=new RegExp(n.source,n.flags);for(;(r=i.exec(e))!==null;)t.push({start:r.index,end:r.index+r[0].length})};n(cL()),n(UY());for(let n of QY(e))t.push(n);return t.sort((e,t)=>e.start-t.start),t}function uhe(e,t){for(let{start:n,end:r}of lhe(e))if(t>n&&t<=r)return{wire:e.slice(0,n)+e.slice(r),caret:n};return null}function dhe(e,t){if(t<=0)return null;let n=e.slice(0,t),r=r=>{let i=n.match(r);if(i?.[1]){let r=i[1],a=n.length-r.length;return{wire:e.slice(0,a)+e.slice(t),caret:a}}return null},i=[lL,LY];for(let e of i){let t=r(e);if(t)return t}let a=rX(n);if(a){let n=a.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}if(t===e.length){let r=[uL,RY];for(let i of r){let r=n.match(i);if(r?.[1]){let i=r[0],a=n.length-i.length;return{wire:e.slice(0,a)+e.slice(t),caret:a}}}let i=iX(n);if(i){let n=i.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}}return null}function fhe(e){let t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return!1;let n=t.getRangeAt(0),r=T5(e),i=D5(e);i===0&&r.length>0&&n.startContainer===e&&n.startOffset===e.childNodes.length&&(i=r.length);let a=uhe(r,i);return a||=dhe(r,i),a?(O5(e,a.wire,a.caret),e.dispatchEvent(new InputEvent(`input`,{bubbles:!0})),!0):!1}function phe(e,t){let n=e.slice(t);return b5.test(n)||WY.test(n)?!0:ZY(e,t)!=null}function mhe(e,t,n){let r=t.slice(n),i=[],a=r.match(b5);a?.[0]&&i.push({len:a[0].length,apply:()=>ohe(e,a[1]??``)});let o=r.match(WY);o?.[0]&&i.push({len:o[0].length,apply:()=>she(e,VY(o))});let s=ZY(t,n);if(s&&i.push({len:s.len,apply:()=>che(e,s.matchedKey)}),i.length===0){let r=n+1;for(;r<t.length&&!phe(t,r);)r+=1;let i=t.slice(n,r);return i&&e.appendChild(document.createTextNode(i)),r}return i.sort((e,t)=>t.len-e.len),i[0].apply(),n+i[0].len}function O5(e,t,n){e.replaceChildren();let r=t;if(n!==void 0){let e=Math.max(0,Math.min(n,t.length));r=t.slice(0,e)+y5+t.slice(e)}let i=0;for(;i<r.length;)i=mhe(e,r,i);if(n===void 0)return;let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o;for(;o=a.nextNode();){let e=o.textContent??``,t=-1;for(let n=0;n<e.length;n++)if(e[n]===y5){t=n;break}if(t>=0){let n=o;n.textContent=e.slice(0,t)+e.slice(t+1);let r=window.getSelection(),i=document.createRange();i.setStart(n,t),i.collapse(!0),r?.removeAllRanges(),r?.addRange(i);return}}}function hhe(e,t){for(let n of e)if(n.isActive()&&n.handleKey(t))return!0;return!1}var ghe=8*1024,_he=80,vhe=2*1024,yhe=20;function bhe(e){let t=e.trimStart().slice(0,8*1024);if(/^(?:<!doctype\s+html\b|<(?:html|head|body)\b)/i.test(t)||/^<(?:div|span|section|main|article|script|style)\b/i.test(t))return`html`;let n=e.trim();return(n.startsWith(`{`)&&n.endsWith(`}`)||n.startsWith(`[`)&&n.endsWith(`]`))&&/[\":,]/.test(t)?`json`:/(?:^|\n)\s*(?:(?:import|export|const|let|var|function|class|interface|type|def|SELECT|CREATE)\b|#!\/)/m.test(t)||/(?:=>|\{\s*$|;\s*$)/m.test(t)?`code`:`text`}function xhe(e){let t=new TextEncoder().encode(e).byteLength,n=e.split(/\r\n|\n|\r/).length,r=bhe(e);return t>=ghe||n>=_he||r!==`text`&&(t>=vhe||n>=yhe)?{text:e,...r===`html`?{name:`pasted-text.html`,mimeType:`text/html`}:r===`json`?{name:`pasted-text.json`,mimeType:`application/json`}:r===`code`?{name:`pasted-code.txt`,mimeType:`text/plain`}:{name:`pasted-text.txt`,mimeType:`text/plain`},byteLength:t,lineCount:n}:null}function k5(e){if(!e)return null;let t=_5(e),n=t.filter(g5);if(n.length>0)return{kind:`files`,files:n};if(t.length>0)return{kind:`unsupported-files`};let r=e.getData(`text/plain`);if(!r)return null;let i=xhe(r);return i?{kind:`text-attachment`,attachment:i}:{kind:`inline-text`,text:r}}async function A5(e,t){switch(e.kind){case`files`:await t.processFiles(e.files);return;case`unsupported-files`:t.onUnsupportedFiles();return;case`text-attachment`:await t.processPastedText(e.attachment);return;case`inline-text`:t.insertText(e.text)}}function j5(e,t){e.classList.toggle(`composer-input-empty`,t.length===0)}function She(e){let{disabled:t,autoFocusKey:n,welcomeDraftSeed:r,onExternalTextReplace:i,shouldSyncSelectionRef:a}=e,[o,s]=(0,Z.useState)(``),[c,l]=(0,Z.useState)(0),[u,d]=(0,Z.useState)(!1),f=(0,Z.useRef)(null),p=(0,Z.useRef)(o),m=(0,Z.useRef)(c),h=(0,Z.useRef)(null),g=(0,Z.useRef)(0),_=(0,Z.useRef)(!0),v=(0,Z.useRef)(null);p.current=o,m.current=c;let y=(0,Z.useCallback)(()=>{let e=f.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,128)}px`)},[]),b=(0,Z.useCallback)(()=>{let e=f.current;if(!e)return;e.focus({preventScroll:!0});let t=window.getSelection(),n=h.current;if(t&&n?.startContainer.isConnected&&n.endContainer.isConnected&&e.contains(n.startContainer)&&e.contains(n.endContainer)){t.removeAllRanges(),t.addRange(n);return}O5(e,p.current,m.current)},[]),x=(0,Z.useCallback)(e=>{let t=e?.nextText??``,n=e?.caretOffset??t.length;s(t),p.current=t,l(n),m.current=n,h.current=null,requestAnimationFrame(()=>{let r=f.current;r&&(O5(r,t,n),j5(r,t),e?.focus&&r.focus({preventScroll:!0})),y()})},[y]);(0,Z.useEffect)(()=>{y()},[o,y]);let S=(0,Z.useRef)(r?.id??0);return r&&r.id!==S.current&&(S.current=r.id,g.current=r.id,i?.(),x({nextText:r.text,focus:!0})),(0,Z.useLayoutEffect)(()=>{if(t){_.current=!0;return}let e=n??null,r=_.current,i=e!=null&&e!==v.current;if(!r&&!i)return;_.current=!1,e!=null&&(v.current=e);let a=requestAnimationFrame(()=>{typeof globalThis.matchMedia==`function`&&globalThis.matchMedia(`(hover: hover) and (pointer: fine)`).matches&&f.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(a)},[t,n]),(0,Z.useEffect)(()=>{let e=f.current;if(!e)return;let t=!1,n=null,r=!1,i=-1,o=()=>{let t=window.getSelection();if(!t?.rangeCount||!e.contains(t.anchorNode)||!e.contains(t.focusNode))return null;let n=D5(e);return m.current=n,h.current=t.getRangeAt(0).cloneRange(),n},s=()=>{if(n=null,r=!1,document.activeElement!==e)return;let t=o();t!==null&&t!==i&&(i=t,a.current&&l(t))},c=()=>{t&&(r||(r=!0,n=requestAnimationFrame(s)))},u=()=>{t||(t=!0,document.addEventListener(`selectionchange`,c),c())},d=()=>{t&&(t=!1,document.removeEventListener(`selectionchange`,c),n!=null&&cancelAnimationFrame(n),n=null,r=!1)},p=()=>u(),g=()=>{o(),d()};return e.addEventListener(`focus`,p),e.addEventListener(`blur`,g),document.activeElement===e&&u(),()=>{e.removeEventListener(`focus`,p),e.removeEventListener(`blur`,g),d()}},[a]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;typeof t?.text==`string`&&(i?.(t),x({nextText:t.text,focus:!0}))};return window.addEventListener(xG,e),()=>window.removeEventListener(xG,e)},[i,x]),{value:o,cursor:c,isComposing:u,setIsComposing:d,editorRef:f,valueRef:p,adjustHeight:y,focusForExternalPaste:b,resetEditor:x,onWireInput:(0,Z.useCallback)((e,t)=>{p.current=e,m.current=t,s(e),l(t)},[])}}var Che=(0,Z.memo)(function(e){let t=(0,Q.c)(29),{editorRef:n,disabled:r,hidden:i,placeholder:a,ariaLabel:o,onWireInput:s,adjustHeight:c,processFiles:l,processPastedText:u,setIsComposing:d,kbdRef:f,chatMessages:p}=e,m=(0,Z.useRef)(!1),h=o??a,g=!r,_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=X(`composer-input box-border m-0 max-h-32 min-h-16 w-full overflow-y-auto border-0 bg-transparent px-0 py-2 text-[0.9375rem] leading-6 text-fg focus:outline-none focus:ring-0 disabled:opacity-50`,`composer-input-empty`),t[0]=_):_=t[0];let v;t[1]!==c||t[2]!==s?(v=e=>{let t=e.currentTarget,n=m.current?T5(t):E5(t);j5(t,n),s(n,D5(t)),c()},t[1]=c,t[2]=s,t[3]=v):v=t[3];let y;t[4]===d?y=t[5]:(y=()=>{m.current=!0,d(!0)},t[4]=d,t[5]=y);let b;t[6]!==c||t[7]!==n||t[8]!==s||t[9]!==d?(b=()=>{m.current=!1,d(!1),queueMicrotask(()=>{let e=n.current;if(!e||m.current)return;let t=E5(e);j5(e,t),s(t,D5(e)),c()})},t[6]=c,t[7]=n,t[8]=s,t[9]=d,t[10]=b):b=t[10];let x;t[11]!==p||t[12]!==l||t[13]!==u?(x=async e=>{let t=k5(e.clipboardData);t&&(e.preventDefault(),await A5(t,{processFiles:l,processPastedText:u,insertText:whe,onUnsupportedFiles:()=>fA(`warning`,p.clipboardFileTypeUnsupported)}))},t[11]=p,t[12]=l,t[13]=u,t[14]=x):x=t[14];let S;t[15]!==n||t[16]!==f?(S=e=>{let t=f.current;if(e.key===`Backspace`&&!t.isComposing&&n.current&&fhe(n.current)){e.preventDefault();return}if(hhe(t.adapters,e))return;if(e.key===`Tab`&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!t.isComposing&&!t.valueRef.current.trim()&&t.acceptEmptySuggestion?.()){e.preventDefault();return}if(!t.isComposing&&(e.key===`ArrowUp`||e.key===`ArrowDown`)){let n=e.key===`ArrowUp`?`up`:`down`;if(t.tryInputHistoryArrow?.(n)){e.preventDefault(),t.adjustHeight();return}}if(e.key===`Escape`&&!t.isComposing&&t.editingFollowUpId){e.preventDefault(),t.onCancelEditFollowUp?.();return}if(e.key===`Enter`&&e.shiftKey&&!t.isComposing){e.preventDefault(),document.execCommand(`insertText`,!1,`
|
|
70
|
+
`);return}let r=typeof KeyboardEvent<`u`&&e.nativeEvent instanceof KeyboardEvent&&e.nativeEvent.isComposing;if(e.key===`Enter`&&!e.shiftKey&&!t.isComposing&&!r){e.preventDefault();let n=!!(t.valueRef.current.trim()||t.attachmentsLen>0);if(t.runBusy||t.pendingFollowUpsCount>0){if((e.metaKey||e.ctrlKey)&&n){t.interruptDraft?.();return}if(!e.metaKey&&!e.ctrlKey&&!e.altKey&&n){t.flushSteeringDraft?.();return}return}n&&t.send()}},t[15]=n,t[16]=f,t[17]=S):S=t[17];let C;return t[18]!==n||t[19]!==i||t[20]!==a||t[21]!==h||t[22]!==g||t[23]!==v||t[24]!==y||t[25]!==b||t[26]!==x||t[27]!==S?(C=(0,$.jsx)(`div`,{ref:n,hidden:i,role:`textbox`,"aria-multiline":`true`,"aria-label":h,contentEditable:g,suppressContentEditableWarning:!0,spellCheck:!0,className:_,"data-placeholder":a,onInput:v,onCompositionStart:y,onCompositionEnd:b,onPaste:x,onKeyDown:S}),t[18]=n,t[19]=i,t[20]=a,t[21]=h,t[22]=g,t[23]=v,t[24]=y,t[25]=b,t[26]=x,t[27]=S,t[28]=C):C=t[28],C});function whe(e){return document.execCommand(`insertText`,!1,e)}var The=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function M5(e){if(!(e instanceof Element))return!1;if(e.closest(`textarea, select, [role="textbox"]`)||e instanceof HTMLElement&&e.isContentEditable)return!0;let t=e.closest(`input`);return t instanceof HTMLInputElement&&!The.has(t.type)}function Ehe(){return!!document.querySelector(`dialog[open], [aria-modal="true"], [role="dialog"][data-state="open"], [role="alertdialog"][data-state="open"]`)}function Dhe(e,t){return t.disabled||t.editorHidden||e.defaultPrevented||M5(e.target)||M5(document.activeElement)?!1:!Ehe()}function Ohe(e){return e.flatMap(e=>{if(!e||typeof e!=`object`)return[];let t=e;if(typeof t.id!=`string`||typeof t.clientMessageId!=`string`||typeof t.content!=`string`||typeof t.version!=`number`||t.effectiveDelivery!==`next`&&t.effectiveDelivery!==`steer`||t.status!==`queued`&&t.status!==`interrupted`)return[];let n=Array.isArray(t.contextRefs)?t.contextRefs.flatMap(e=>{if(!e||typeof e!=`object`)return[];let t=e;return t.kind!==`note`||typeof t.sourceId!=`string`||typeof t.version!=`string`||typeof t.title!=`string`?[]:[{kind:`note`,sourceId:t.sourceId,expectedVersion:t.version,title:t.title}]}):void 0;return[{id:t.id,clientMessageId:t.clientMessageId,text:t.content,attachments:Array.isArray(t.attachments)?t.attachments:void 0,thinkingLevel:typeof t.thinking==`string`?t.thinking:void 0,contextRefs:n?.length?n:void 0,version:t.version,delivery:t.effectiveDelivery,status:t.status}]})}var khe=(0,Z.memo)(function(e){let t=(0,Q.c)(38),{items:n,disabled:r,editingFollowUpId:i,onEditInComposer:a,onRemove:o,onMove:s,onReorder:c,onSteer:l,steeringBusyId:u}=e,d=ct(Ahe),f;t[0]===d?f=t[1]:(f=rt(d),t[0]=d,t[1]=f);let p=f,m=jhe,h;t[2]===c?h=t[3]:(h=e=>t=>{t.preventDefault();let n=t.dataTransfer.getData(`text/plain`);if(!n.startsWith(`xopc-followup:`))return;let r=Number.parseInt(n.slice(14),10);Number.isNaN(r)||r===e||c(r,e)},t[2]=c,t[3]=h);let g=h;if(n.length===0)return null;let _=p.chat.followUpQueueAria,v;t[4]===p.chat.followUpQueueHeading?v=t[5]:(v=(0,$.jsx)(`span`,{className:`text-[0.65rem] font-medium uppercase tracking-wide text-fg-muted`,children:p.chat.followUpQueueHeading}),t[4]=p.chat.followUpQueueHeading,t[5]=v);let y;t[6]===n.length?y=t[7]:(y=(0,$.jsxs)(`span`,{className:`tabular-nums text-[0.65rem] text-fg-muted`,children:[n.length,`/`,10]}),t[6]=n.length,t[7]=y);let b;t[8]!==v||t[9]!==y?(b=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1 pb-0.5`,children:[v,y]}),t[8]=v,t[9]=y,t[10]=b):b=t[10];let x;t[11]!==r||t[12]!==i||t[13]!==n||t[14]!==p.chat.followUpQueueAttachmentOnly||t[15]!==p.chat.followUpQueueClickToEdit||t[16]!==p.chat.followUpQueueDrag||t[17]!==p.chat.followUpQueueEmptyPreview||t[18]!==p.chat.followUpQueueMoveDown||t[19]!==p.chat.followUpQueueMoveUp||t[20]!==p.chat.followUpQueueRemove||t[21]!==p.chat.followUpQueueSteerNow||t[22]!==p.chat.followUpStatusInterrupted||t[23]!==g||t[24]!==a||t[25]!==s||t[26]!==o||t[27]!==l||t[28]!==u?(x=n.map((e,t)=>{let c=e.status===`queued`,d=c||e.status===`interrupted`,f=n.filter(Mhe),h=f.findIndex(t=>t.id===e.id),_=d&&!e.attachments?.length&&!e.contextRefs?.length&&e.text.trim().length>0,v=u===e.id,y=e.status===`interrupted`?p.chat.followUpStatusInterrupted:null,b=e.text.trim();return!b&&e.attachments?.length&&(b=e.attachments[0]?.name?.trim()||p.chat.followUpQueueAttachmentOnly),b||=p.chat.followUpQueueEmptyPreview,(0,$.jsxs)(`div`,{role:`listitem`,onDragOver:m,onDrop:r||!c?void 0:g(t),className:X(`flex h-7 items-center gap-1 rounded border px-1`,i===e.id?`border-accent/50 bg-accent-soft/20 dark:border-accent/50 dark:bg-accent-soft/10`:`border-edge-subtle/80 bg-surface-hover/25 dark:border-edge-subtle/90 dark:bg-surface-hover/15`),children:[(0,$.jsx)(`div`,{draggable:!r&&c,onDragStart:e=>{e.dataTransfer.setData(`text/plain`,`xopc-followup:${t}`),e.dataTransfer.effectAllowed=`move`},className:X(`flex shrink-0 cursor-grab items-center active:cursor-grabbing`,(r||!c)&&`cursor-not-allowed opacity-40`),title:p.chat.followUpQueueDrag,children:(0,$.jsx)(Gm,{className:`size-3.5 text-fg-muted`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!c,title:p.chat.followUpQueueClickToEdit,"aria-label":p.chat.followUpQueueClickToEdit,className:X(`h-6 min-w-0 flex-1 truncate rounded px-1.5 text-left text-[0.75rem] leading-none text-fg hover:bg-surface-panel/60 dark:hover:bg-surface-panel/40`,gk.press,gk.focusRingPanel,`disabled:pointer-events-none disabled:opacity-50`),onClick:()=>a(e.id),children:e.attachments?.length?(0,$.jsxs)(`span`,{className:`inline-flex max-w-full items-center gap-1`,children:[(0,$.jsx)(Nf,{className:`size-3 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:b})]}):(0,$.jsx)(`span`,{className:`block truncate`,children:b})}),e.contextRefs?.length?(0,$.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-0.5 rounded bg-accent-soft px-1.5 py-0.5 text-[0.625rem] text-accent-fg`,title:e.contextRefs.map(Nhe).join(`, `),children:[(0,$.jsx)(cv,{className:`size-3`,"aria-hidden":!0}),e.contextRefs.length]}):null,y?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-panel px-1.5 py-0.5 text-[0.625rem] text-fg-muted`,children:y}):null,(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px`,children:[(0,$.jsx)(`button`,{type:`button`,disabled:r||!c||h===0,className:X(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.press,gk.focusRingPanel,`disabled:pointer-events-none disabled:opacity-25`),title:p.chat.followUpQueueMoveUp,"aria-label":p.chat.followUpQueueMoveUp,onClick:t=>{t.stopPropagation(),s(e.id,`up`)},children:(0,$.jsx)(ls,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!c||h>=f.length-1,className:X(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.press,gk.focusRingPanel,`disabled:pointer-events-none disabled:opacity-25`),title:p.chat.followUpQueueMoveDown,"aria-label":p.chat.followUpQueueMoveDown,onClick:t=>{t.stopPropagation(),s(e.id,`down`)},children:(0,$.jsx)(is,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!_||v,className:X(`inline-flex size-6 items-center justify-center rounded text-accent-fg hover:bg-accent-soft/80`,gk.press,gk.focusRingPanel,`disabled:pointer-events-none disabled:opacity-35`),title:p.chat.followUpQueueSteerNow,"aria-label":p.chat.followUpQueueSteerNow,onClick:t=>{t.stopPropagation(),l(e.id)},children:(0,$.jsx)(Wy,{className:X(`size-3.5`,v&&`animate-pulse`),"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!d,className:X(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-red-500/15 hover:text-red-600 dark:hover:text-red-400`,gk.press,gk.focusRingPanel),title:p.chat.followUpQueueRemove,"aria-label":p.chat.followUpQueueRemove,onClick:t=>{t.stopPropagation(),o(e.id)},children:(0,$.jsx)(Ne,{className:`size-3.5`,"aria-hidden":!0})})]})]},e.id)}),t[11]=r,t[12]=i,t[13]=n,t[14]=p.chat.followUpQueueAttachmentOnly,t[15]=p.chat.followUpQueueClickToEdit,t[16]=p.chat.followUpQueueDrag,t[17]=p.chat.followUpQueueEmptyPreview,t[18]=p.chat.followUpQueueMoveDown,t[19]=p.chat.followUpQueueMoveUp,t[20]=p.chat.followUpQueueRemove,t[21]=p.chat.followUpQueueSteerNow,t[22]=p.chat.followUpStatusInterrupted,t[23]=g,t[24]=a,t[25]=s,t[26]=o,t[27]=l,t[28]=u,t[29]=x):x=t[29];let S;t[30]!==n||t[31]!==p.chat.followUpQueueAttachmentsNote?(S=n.some(Phe)?(0,$.jsx)(`p`,{className:`px-1 pt-0.5 text-[0.65rem] leading-tight text-fg-muted`,children:p.chat.followUpQueueAttachmentsNote}):null,t[30]=n,t[31]=p.chat.followUpQueueAttachmentsNote,t[32]=S):S=t[32];let C;return t[33]!==p.chat.followUpQueueAria||t[34]!==b||t[35]!==x||t[36]!==S?(C=(0,$.jsxs)(`div`,{className:`space-y-0.5 px-2 py-1.5`,role:`list`,"aria-label":_,children:[b,x,S]}),t[33]=p.chat.followUpQueueAria,t[34]=b,t[35]=x,t[36]=S,t[37]=C):C=t[37],C});function Ahe(e){return e.language}function jhe(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`}function Mhe(e){return e.status===`queued`}function Nhe(e){return e.title}function Phe(e){return e.attachments?.length}function N5(e){let t=(0,Q.c)(15),{attachments:n,topPadded:r,onRemove:i,className:a}=e,o=ct(Fhe),s;t[0]===o?s=t[1]:(s=rt(o),t[0]=o,t[1]=s);let c=s.chat;if(n.length===0)return null;let l=r?`pt-2`:`pt-3`,u;t[2]!==a||t[3]!==l?(u=X(`flex flex-wrap gap-2 border-b border-edge-subtle/90 bg-surface-hover/20 px-4 pb-2 dark:border-edge-subtle`,l,a),t[2]=a,t[3]=l,t[4]=u):u=t[4];let d;if(t[5]!==n||t[6]!==c||t[7]!==i){let e;t[9]!==c||t[10]!==i?(e=(e,t)=>(0,$.jsxs)(`div`,{className:`flex max-w-[200px] items-center gap-1.5 rounded-lg bg-surface-hover px-2 py-1 text-xs dark:bg-surface-hover/80`,children:[e.mimeType?.startsWith(`image/`)&&e.content?(0,$.jsx)(`img`,{src:`data:${e.mimeType};base64,${e.content}`,alt:``,className:`size-6 rounded object-cover`}):e.type===`voice`||e.mimeType?.startsWith(`audio/`)?(0,$.jsx)(nv,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.type===`pasted_text`?(0,$.jsx)(Kd,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(Nf,{className:`size-3.5 shrink-0 text-fg-muted`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.type===`pasted_text`?c.pastedText:e.name}),(0,$.jsx)(`span`,{className:`text-fg-disabled`,children:BL(e.size)}),(0,$.jsx)(`button`,{type:`button`,className:`text-fg-muted hover:text-fg`,onClick:()=>i(t),children:`×`})]},e.id??`${e.name}-${e.size}-${e.mimeType}-${e.content?.slice(0,16)??``}`),t[9]=c,t[10]=i,t[11]=e):e=t[11],d=n.map(e),t[5]=n,t[6]=c,t[7]=i,t[8]=d}else d=t[8];let f;return t[12]!==u||t[13]!==d?(f=(0,$.jsx)(`div`,{className:u,children:d}),t[12]=u,t[13]=d,t[14]=f):f=t[14],f}function Fhe(e){return e.language}function Ihe(e){let t=(0,Q.c)(10),{refs:n,label:r,onRemove:i}=e;if(n.length===0)return null;let a;if(t[0]!==r||t[1]!==i||t[2]!==n){let e;t[4]!==r||t[5]!==i?(e=e=>(0,$.jsxs)(`span`,{className:`inline-flex h-7 min-w-0 max-w-56 items-center gap-1.5 rounded-md border border-edge-subtle bg-accent-soft/50 px-2 text-xs text-fg`,children:[(0,$.jsx)(cv,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.title}),(0,$.jsx)(`button`,{type:`button`,className:`-mr-1 inline-flex size-5 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":`${r}: ${e.title}`,onClick:()=>i(e.sourceId),children:(0,$.jsx)(Ne,{className:`size-3`,"aria-hidden":!0})})]},e.sourceId),t[4]=r,t[5]=i,t[6]=e):e=t[6],a=n.map(e),t[0]=r,t[1]=i,t[2]=n,t[3]=a}else a=t[3];let o;return t[7]!==r||t[8]!==a?(o=(0,$.jsx)(`div`,{className:`flex flex-wrap gap-1.5 px-4 pt-2`,"aria-label":r,children:a}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function P5(e,t){let n=(0,Q.c)(13),r=ut(Rhe),i=ut(Lhe),a;n[0]!==i||n[1]!==e||n[2]!==r?(a=e?[`session-context`,i,r,e]:null,n[0]=i,n[1]=e,n[2]=r,n[3]=a):a=n[3];let o;n[4]===e?o=n[5]:(o=async()=>(await J(Y(`/api/sessions/${encodeURIComponent(e)}/context-summary`))).summary,n[4]=e,n[5]=o);let s;n[6]===t?s=n[7]:(s={keepPreviousData:!1,revalidateOnFocus:t,revalidateOnReconnect:t,shouldRetryOnError:!1},n[6]=t,n[7]=s);let c=mt(a,o,s),{mutate:l}=c,u,d;return n[8]!==l||n[9]!==t||n[10]!==e?(u=()=>{if(!t||!e)return;l();let n,r=()=>{window.clearTimeout(n),n=window.setTimeout(()=>{l()},150)},i=[`session-updated`,`run-completed`,`agent-run-ended`,`note-updated`,`task-changed-v2`,`gateway-realtime-connected`];for(let e of i)window.addEventListener(e,r);return()=>{window.clearTimeout(n);for(let e of i)window.removeEventListener(e,r)}},d=[t,e,l],n[8]=l,n[9]=t,n[10]=e,n[11]=u,n[12]=d):(u=n[11],d=n[12]),(0,Z.useEffect)(u,d),c}function Lhe(e){return e.baseUrl}function Rhe(e){return e.token}var F5=`inline-flex h-8 min-w-0 shrink-0 items-center justify-center gap-1.5 rounded-full px-2.5 text-sm text-fg transition-[background-color,transform] hover:bg-surface-hover active:scale-95 disabled:pointer-events-none disabled:opacity-45 motion-reduce:transition-none motion-reduce:transform-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`;function zhe(e){let t=(0,Q.c)(96),{sessionKey:n,project:r,workspacePath:i,canChangeWorkspace:a,disabled:o,environmentPicker:s,onProjectChange:c,onWorkspaceChange:l}=e,u=ct(Uhe),d;t[0]===u?d=t[1]:(d=rt(u),t[0]=u,t[1]=d);let f=d,p=f.chat.composerContext,m=ut(Hhe),h=ut(Vhe),[g,_]=(0,Z.useState)(``),[v]=WH(g,200),y;t[2]!==h||t[3]!==v||t[4]!==m?(y=[`composer-projects`,h,m,v],t[2]=h,t[3]=v,t[4]=m,t[5]=y):y=t[5];let b;t[6]===v?b=t[7]:(b=()=>AB({status:`active`,search:v,sortBy:`updatedAt`,sortOrder:`desc`,limit:50}),t[6]=v,t[7]=b);let x;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(x={keepPreviousData:!1,shouldRetryOnError:!1},t[8]=x):x=t[8];let S=mt(y,b,x),C=P5(n,!1),w=C.error?void 0:C.data?.environment,T;t[9]!==w?.rootPath||t[10]!==i?(T=i?.trim()||w?.rootPath||``,t[9]=w?.rootPath,t[10]=i,t[11]=T):T=t[11];let E=T,[D,O]=(0,Z.useState)(null),k;t[12]!==C||t[13]!==l?(k=async e=>{O(null);try{await l(e),await C.mutate()}catch(e){let t=e;O(t instanceof Error?t.message:String(t))}},t[12]=C,t[13]=l,t[14]=k):k=t[14];let A;t[15]!==E||t[16]!==k?(A={initialPath:E,onPicked:k},t[15]=E,t[16]=k,t[17]=A):A=t[17];let j=dB(A),M=a?`${p.chooseFolder}${E?`: ${E}`:``}`:r?p.projectFolder:p.lockedFolder,N;t[18]===w?N=t[19]:(N=w?.branch||(w?.detached?w.headSha?.slice(0,8):void 0),t[18]=w,t[19]=N);let P=N,F=p.label,I=r&&`bg-surface-hover`,L;t[20]===I?L=t[21]:(L=X(`flex min-w-0 max-w-full items-center rounded-full`,I),t[20]=I,t[21]=L);let R;t[22]!==o||t[23]!==f.chat.scopeRemoveProject||t[24]!==c||t[25]!==r?(R=r?(0,$.jsx)(`button`,{type:`button`,disabled:o,title:f.chat.scopeRemoveProject,"aria-label":f.chat.scopeRemoveProject,className:X(F5,`size-7 shrink-0 px-0 ml-0.5 text-fg-muted`),onClick:()=>c(null),children:(0,$.jsx)(Ne,{className:`size-3.5`,"aria-hidden":!0})}):null,t[22]=o,t[23]=f.chat.scopeRemoveProject,t[24]=c,t[25]=r,t[26]=R):R=t[26];let z=r?.id??``,B=r?.name,V;t[27]!==S.data?.items||t[28]!==S.error?(V=S.error?[]:S.data?.items??[],t[27]=S.data?.items,t[28]=S.error,t[29]=V):V=t[29];let H;t[30]===V?H=t[31]:(H=V.map(Bhe),t[30]=V,t[31]=H);let ee=p.chooseProject,te=p.changeProject,ne=p.changeProject,U=p.noProject,W=p.searchProjects,re=S.isLoading,ie=S.error?p.projectsFailed:S.data?.items.length===0?p.noProjects:void 0,ae=r&&`pl-1`,oe;t[32]===ae?oe=t[33]:(oe=X(F5,`h-8 w-auto max-w-44 gap-1 border-0 bg-transparent pr-2.5 text-sm [&>svg]:hidden [&>span]:text-fg`,ae),t[32]=ae,t[33]=oe);let se;t[34]!==c||t[35]!==r?.id?(se=e=>{e!==(r?.id??``)&&c(e||null)},t[34]=c,t[35]=r?.id,t[36]=se):se=t[36];let ce;t[37]!==p.changeProject||t[38]!==p.chooseProject||t[39]!==p.noProject||t[40]!==p.searchProjects||t[41]!==o||t[42]!==S.isLoading||t[43]!==g||t[44]!==z||t[45]!==B||t[46]!==H||t[47]!==ie||t[48]!==oe||t[49]!==se?(ce=(0,$.jsx)(fe,{value:z,selectedLabel:B,options:H,placeholder:ee,ariaLabel:te,title:ne,emptyLabel:U,disabled:o,side:`top`,align:`start`,searchPlaceholder:W,searchValue:g,onSearchChange:_,loading:re,statusMessage:ie,triggerClassName:oe,contentClassName:`xopc-composer-config-popover w-max min-w-[min(12rem,calc(100vw-1.5rem))] max-w-[min(20rem,calc(100vw-1.5rem))] [&>input]:w-0 [&>input]:min-w-full`,onChange:se}),t[37]=p.changeProject,t[38]=p.chooseProject,t[39]=p.noProject,t[40]=p.searchProjects,t[41]=o,t[42]=S.isLoading,t[43]=g,t[44]=z,t[45]=B,t[46]=H,t[47]=ie,t[48]=oe,t[49]=se,t[50]=ce):ce=t[50];let le;t[51]!==L||t[52]!==R||t[53]!==ce?(le=(0,$.jsxs)(`div`,{className:L,children:[R,ce]}),t[51]=L,t[52]=R,t[53]=ce,t[54]=le):le=t[54];let ue=r?s:null,de;t[55]!==w||t[56]!==s||t[57]!==r?(de=!s&&r&&w&&(w.headSha||w.branch)?(0,$.jsxs)(`span`,{className:`inline-flex h-8 min-w-0 items-center gap-1.5 rounded-full bg-surface-hover px-2.5 text-sm text-fg`,title:w.rootPath,children:[w.kind===`managed_worktree`?(0,$.jsx)(uy,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Lg,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),w.kind===`managed_worktree`?`Worktree`:`Local`]}):null,t[55]=w,t[56]=s,t[57]=r,t[58]=de):de=t[58];let pe;t[59]!==p.retryProjects||t[60]!==S?(pe=S.error?(0,$.jsx)(`button`,{type:`button`,className:X(F5,`size-7 px-0`),"aria-label":p.retryProjects,onClick:()=>void S.mutate(),children:(0,$.jsx)(Fv,{className:`size-3.5`,"aria-hidden":!0})}):null,t[59]=p.retryProjects,t[60]=S,t[61]=pe):pe=t[61];let me;t[62]!==a||t[63]!==C.isLoading||t[64]!==p.chooseFolder||t[65]!==o||t[66]!==j.pick||t[67]!==j.picking||t[68]!==r||t[69]!==E||t[70]!==M?(me=r?null:(0,$.jsxs)(`button`,{type:`button`,className:X(F5,`max-w-52`),disabled:o||!a||j.picking,title:M,"aria-label":p.chooseFolder,onClick:j.pick,children:[(0,$.jsx)(Tp,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),E?(0,$.jsx)(`span`,{className:`truncate`,children:lB(E)}):C.isLoading?(0,$.jsx)(Ft,{className:`h-4 w-16`}):(0,$.jsx)(`span`,{children:p.chooseFolder})]}),t[62]=a,t[63]=C.isLoading,t[64]=p.chooseFolder,t[65]=o,t[66]=j.pick,t[67]=j.picking,t[68]=r,t[69]=E,t[70]=M,t[71]=me):me=t[71];let G;t[72]!==P||t[73]!==w?(G=P?(0,$.jsxs)(`span`,{className:`inline-flex h-8 min-w-0 max-w-44 items-center gap-1.5 px-2 text-sm text-fg`,title:`${P}${w?.headSha?` · ${w.headSha.slice(0,8)}`:``}`,children:[(0,$.jsx)(fm,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:P})]}):null,t[72]=P,t[73]=w,t[74]=G):G=t[74];let he;t[75]===D?he=t[76]:(he=D?(0,$.jsx)(`p`,{role:`alert`,className:`w-full px-2 py-1 text-xs text-danger`,children:D}):null,t[75]=D,t[76]=he);let ge;t[77]!==p.label||t[78]!==le||t[79]!==ue||t[80]!==de||t[81]!==pe||t[82]!==me||t[83]!==G||t[84]!==he?(ge=(0,$.jsxs)(`div`,{className:`mx-3 -mb-3 flex min-w-0 shrink-0 flex-wrap items-center gap-x-1 gap-y-1 rounded-t-2xl bg-surface-base px-2 pb-4 pt-1.5 sm:mx-4`,"aria-label":F,children:[le,ue,de,pe,me,G,he]}),t[77]=p.label,t[78]=le,t[79]=ue,t[80]=de,t[81]=pe,t[82]=me,t[83]=G,t[84]=he,t[85]=ge):ge=t[85];let _e;t[86]!==f.chat.workingDirectory||t[87]!==j.confirmPick||t[88]!==j.hasNativePicker||t[89]!==j.modalOpen||t[90]!==j.setModalOpen||t[91]!==E?(_e=j.hasNativePicker?null:(0,$.jsx)(SB,{open:j.modalOpen,onOpenChange:j.setModalOpen,initialAbsolutePath:E||void 0,onConfirm:j.confirmPick,wd:f.chat.workingDirectory}),t[86]=f.chat.workingDirectory,t[87]=j.confirmPick,t[88]=j.hasNativePicker,t[89]=j.modalOpen,t[90]=j.setModalOpen,t[91]=E,t[92]=_e):_e=t[92];let ve;return t[93]!==ge||t[94]!==_e?(ve=(0,$.jsxs)($.Fragment,{children:[ge,_e]}),t[93]=ge,t[94]=_e,t[95]=ve):ve=t[95],ve}function Bhe(e){return{value:e.id,label:e.name}}function Vhe(e){return e.baseUrl}function Hhe(e){return e.token}function Uhe(e){return e.language}function Whe(e){return`${e.id} ${e.name} ${e.provider}`.toLowerCase()}var Ghe=[];function I5(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=n.split(/\s+/).filter(Boolean);return e.filter(e=>{let t=Whe(e);return r.every(e=>t.includes(e))})}function Khe(e,t,n){if(t!==`vision`)return e;let r=e.filter(e=>e.vision===!0);if(!n||r.some(e=>e.id===n))return r;let i=e.find(e=>e.id===n);if(i)return[i,...r];let a=n.indexOf(`/`),o=a>=0?n.slice(0,a):``;return[{id:n,name:(a>=0?n.slice(a+1):n)||n,provider:o||`—`,vision:!1},...r]}function qhe(e){let t=(0,Q.c)(89),{value:n,disabled:r,placeholder:i,searchPlaceholder:a,noMatches:o,models:s,modelsLoading:c,modelsError:l,capabilitiesFilter:u,outOfFilterNote:d,registryEmptyHint:f,allowEmpty:m,emptyLabel:h,compact:g,showProviderInTrigger:_,contentSide:v,contentAlign:y,className:b,popoverContentClassName:x,showProviderSettingsFooter:S,settingsFooterLink:C,ariaLabel:w,onChange:T}=e,E=m===void 0?!1:m,D=_===void 0?!0:_,O=v===void 0?`bottom`:v,k=y===void 0?`end`:y,A=p(),j=ct(Yhe),M;t[0]===j?M=t[1]:(M=rt(j),t[0]=j,t[1]=M);let N=M.chat,[P,F]=(0,Z.useState)(!1),[I,L]=(0,Z.useState)(``),R=Vt(),z=Ht(),B=oe(R,z!==null),V;t[2]!==N||t[3]!==C||t[4]!==S?(V=C??(S?{label:N.modelProviderSettingsLink,path:`/settings/capabilities/models`}:void 0),t[2]=N,t[3]=C,t[4]=S,t[5]=V):V=t[5];let H=V,ee;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ee={revalidateOnFocus:!1},t[6]=ee):ee=t[6];let te=mt(s?null:$t,Zt,ee),ne=s??te.data??Ghe,U=s?!!c:te.isLoading,re=s?l:te.error,se;t[7]===n?se=t[8]:(se=n.trim(),t[7]=n,t[8]=se);let ce=se,le;t[9]!==u||t[10]!==ne||t[11]!==ce?(le=Khe(ne,u,ce),t[9]=u,t[10]=ne,t[11]=ce,t[12]=le):le=t[12];let ue=le,de=ue.length>10,fe=de?I:``,me;t[13]!==ue||t[14]!==fe?(me=I5(ue,fe),t[13]=ue,t[14]=fe,t[15]=me):me=t[15];let G=me,he;t[16]!==ne||t[17]!==ue||t[18]!==n?(he=ne.find(e=>e.id===n)??ue.find(e=>e.id===n),t[16]=ne,t[17]=ue,t[18]=n,t[19]=he):he=t[19];let ge=he,_e=ge?D?`${ge.name} (${ge.provider})`:ge.name:n||i,ve=!re&&u===`vision`&&ue.length===0,ye=ie,be=r||U,xe=ge?`${ge.name} (${ge.provider})`:i,Se=g&&`py-1.5 text-[13px]`,Ce;t[20]!==b||t[21]!==Se?(Ce=X(Sj,`items-center gap-2 rounded-lg border border-edge-subtle bg-surface-panel px-3 py-2 text-left text-sm font-normal text-fg`,gk.transition,`hover:border-edge hover:bg-surface-hover/45`,vj,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,Se,b),t[20]=b,t[21]=Se,t[22]=Ce):Ce=t[22];let we=U?`…`:_e,Te;t[23]===we?Te=t[24]:(Te=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:we}),t[23]=we,t[24]=Te);let Ee;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,$.jsx)(ae,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[25]=Ee):Ee=t[25];let De;t[26]!==w||t[27]!==be||t[28]!==xe||t[29]!==Ce||t[30]!==Te?(De=(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":w,disabled:be,title:xe,className:Ce,children:[Te,Ee]})}),t[26]=w,t[27]=be,t[28]=xe,t[29]=Ce,t[30]=Te,t[31]=De):De=t[31];let Oe=ie,ke=z??void 0,Ae=ie,je=X(B,`w-[min(22rem,calc(100vw-2rem))] rounded-xl border border-edge-subtle bg-surface-panel p-1 shadow-elevated dark:border-edge-subtle`,x),Me;t[32]!==I||t[33]!==a||t[34]!==de?(Me=de?(0,$.jsx)(`input`,{type:`search`,"aria-label":a,className:X(`mb-1 w-full rounded-lg border border-edge-subtle bg-surface-base px-2.5 py-1.5 text-sm text-fg placeholder:text-fg-disabled dark:bg-surface-hover/40`,yj),placeholder:a,value:I,onChange:e=>L(e.target.value)}):null,t[32]=I,t[33]=a,t[34]=de,t[35]=Me):Me=t[35];let Ne;t[36]!==E||t[37]!==h||t[38]!==T||t[39]!==i||t[40]!==ce?(Ne=E?(0,$.jsxs)(`button`,{type:`button`,className:X(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,ce===``&&`bg-surface-hover/90 font-medium dark:bg-surface-hover/70`),onClick:()=>{T(``),F(!1),L(``)},children:[(0,$.jsx)(W,{className:X(`size-4 shrink-0`,ce!==``&&`invisible`),"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-fg-muted`,children:h??i})]}):null,t[36]=E,t[37]=h,t[38]=T,t[39]=i,t[40]=ce,t[41]=Ne):Ne=t[41];let Pe;t[42]===re?Pe=t[43]:(Pe=re?(0,$.jsx)(`div`,{className:`p-2 text-xs text-red-600 dark:text-red-400`,children:re instanceof Error?re.message:`Failed to load models`}):null,t[42]=re,t[43]=Pe);let Fe;t[44]!==re||t[45]!==o||t[46]!==f||t[47]!==ve?(Fe=!re&&ve?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:f??o}):null,t[44]=re,t[45]=o,t[46]=f,t[47]=ve,t[48]=Fe):Fe=t[48];let Ie;t[49]!==re||t[50]!==G||t[51]!==o||t[52]!==ve?(Ie=!re&&!ve&&G.length===0?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:o}):null,t[49]=re,t[50]=G,t[51]=o,t[52]=ve,t[53]=Ie):Ie=t[53];let Le=u===`vision`?d:void 0,Re;t[54]===T?Re=t[55]:(Re=e=>{T(e),F(!1),L(``)},t[54]=T,t[55]=Re);let ze;t[56]!==G||t[57]!==o||t[58]!==a||t[59]!==Le||t[60]!==Re||t[61]!==n?(ze=(0,$.jsx)(L5,{models:G,value:n,searchPlaceholder:a,noMatches:o,showSearch:!1,outOfFilterNote:Le,onChange:Re}),t[56]=G,t[57]=o,t[58]=a,t[59]=Le,t[60]=Re,t[61]=n,t[62]=ze):ze=t[62];let Be;t[63]!==Ne||t[64]!==Pe||t[65]!==Fe||t[66]!==Ie||t[67]!==ze?(Be=(0,$.jsxs)(`div`,{className:`max-h-60 overflow-auto`,children:[Ne,Pe,Fe,Ie,ze]}),t[63]=Ne,t[64]=Pe,t[65]=Fe,t[66]=Ie,t[67]=ze,t[68]=Be):Be=t[68];let Ve;t[69]!==H||t[70]!==A?(Ve=H?(0,$.jsx)(`div`,{className:`mt-1 border-t border-edge-subtle pt-1`,children:(0,$.jsxs)(`button`,{type:`button`,className:X(`flex w-full items-center gap-2 rounded-md p-2 text-left text-sm font-medium text-accent`,gk.transition,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),onClick:()=>{A(H.path),F(!1),L(``)},children:[(0,$.jsx)(Gv,{className:`size-4 shrink-0 opacity-90`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0`,children:H.label})]})}):null,t[69]=H,t[70]=A,t[71]=Ve):Ve=t[71];let K;t[72]!==k||t[73]!==O||t[74]!==Ae.Content||t[75]!==je||t[76]!==Me||t[77]!==Be||t[78]!==Ve?(K=(0,$.jsxs)(Ae.Content,{className:je,side:O,sideOffset:4,align:k,onOpenAutoFocus:Jhe,children:[Me,Be,Ve]}),t[72]=k,t[73]=O,t[74]=Ae.Content,t[75]=je,t[76]=Me,t[77]=Be,t[78]=Ve,t[79]=K):K=t[79];let He;t[80]!==Oe.Portal||t[81]!==ke||t[82]!==K?(He=(0,$.jsx)(Oe.Portal,{container:ke,children:K}),t[80]=Oe.Portal,t[81]=ke,t[82]=K,t[83]=He):He=t[83];let Ue;return t[84]!==P||t[85]!==ye.Root||t[86]!==De||t[87]!==He?(Ue=(0,$.jsxs)(ye.Root,{open:P,onOpenChange:F,children:[De,He]}),t[84]=P,t[85]=ye.Root,t[86]=De,t[87]=He,t[88]=Ue):Ue=t[88],Ue}function Jhe(e){return e.preventDefault()}function Yhe(e){return e.language}function L5({models:e,value:t,onChange:n,searchPlaceholder:r,noMatches:i,disabled:a,showSearch:o=e.length>10,outOfFilterNote:s}){let[c,l]=(0,Z.useState)(``),u=I5(e,o?c:``);return(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[o&&(0,$.jsx)(`input`,{type:`search`,"aria-label":r,placeholder:r,value:c,onChange:e=>l(e.target.value),className:X(`mx-1 mb-2 rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,`focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:shadow-none focus-visible:border-edge`)}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:[u.length===0&&(0,$.jsx)(`p`,{className:`px-3 py-4 text-sm text-fg-muted`,children:i}),u.map(r=>(0,$.jsxs)(`button`,{type:`button`,disabled:a,title:r.id,"aria-pressed":r.id===t,style:e.length>50?{contentVisibility:`auto`,containIntrinsicSize:`auto 60px`}:void 0,className:X(`flex min-h-11 w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm text-fg hover:bg-surface-hover disabled:opacity-50`,gk.focusRingPanel,r.id===t&&`bg-surface-hover`),onClick:()=>n(r.id),children:[(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate font-medium`,children:r.name}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,children:r.provider}),s&&!r.vision&&r.id===t&&(0,$.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:s})]}),(0,$.jsx)(W,{className:X(`size-4 shrink-0 text-accent-fg`,r.id!==t&&`invisible`),"aria-hidden":!0})]},r.id))]})]})}function Xhe({chat:e,sessionModel:t,modelDisabled:n,onModelChange:r,thinkingLevel:i,thinkingDisabled:a,onThinkingChange:o}){let s=mt($t,Zt,{revalidateOnFocus:!1}),[c,l]=(0,Z.useState)(`config`),u=(0,Z.useRef)(null),d=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{(c===`models`?d:u).current?.focus()},[c]);let[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(``),[g,_]=(0,Z.useState)(``),v=s.data??[],b=v.find(e=>e.id===t),x=!!(t&&s.data&&!b),S=b?.name||t.slice(t.indexOf(`/`)+1)||e.modelConfigure,C=S.split(`/`).at(-1)||S,w=b?.thinking,T=w?.mode===`levels`||w?.mode===`toggle`,E=t=>w?.mode===`toggle`&&t!==`off`?e.modelThinkingOn:e.thinkingLevels[t]??t,D=T?E(i):``,O=f||n;async function k(t,n=!1){p(!0),h(``),_(``);try{await t(),n&&l(`config`),_(e.modelConfigSaved)}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(!1)}}return(0,$.jsxs)(se,{onOpenChange:e=>{e||(l(`config`),h(``),_(``))},children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":`${e.modelConfigLabel}: ${C}${D?` · ${D}`:``}`,title:C,className:X(`inline-flex h-8 min-w-0 max-w-[min(18rem,calc(100vw-10rem))] items-center gap-1.5 rounded-lg bg-surface-hover/70 px-2.5 text-[13px] text-fg hover:bg-surface-hover`,gk.focusRingPanel,gk.transition),children:[s.isLoading||!t&&v.length>0?(0,$.jsx)(Ft,{className:`h-4 w-28`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:C}),x?(0,$.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:e.modelUnavailable}):D&&(0,$.jsxs)(`span`,{className:`shrink-0 text-fg-muted`,children:[`· `,D]})]}),(0,$.jsx)(is,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0})]})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{side:`top`,align:`end`,sideOffset:8,collisionPadding:12,"aria-label":e.modelConfigLabel,className:X(Bt,`xopc-composer-config-popover flex h-[min(21rem,calc(100dvh-3rem))] w-[min(20rem,calc(100vw-2rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel p-2 shadow-popover`),children:[c===`models`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`button`,{ref:d,type:`button`,onClick:()=>l(`config`),className:X(`mb-2 flex min-h-11 shrink-0 items-center gap-2 rounded-lg px-2 text-sm text-fg hover:bg-surface-hover`,gk.focusRingPanel),children:[(0,$.jsx)(xr,{className:`size-4`,"aria-hidden":!0}),e.modelBack]}),(0,$.jsx)(L5,{models:v,value:t,disabled:O,searchPlaceholder:e.modelSearchPlaceholder,noMatches:e.modelNoMatches,onChange:e=>void k(()=>r(e),!0)})]}):(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:s.isLoading?(0,$.jsxs)(`div`,{className:`space-y-4 p-3`,children:[(0,$.jsx)(Ft,{className:`h-6 w-40`}),(0,$.jsx)(Ft,{className:`h-4 w-24`}),(0,$.jsx)(Ft,{className:`h-11 w-full`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`button`,{ref:u,type:`button`,disabled:O||!v.length,onClick:()=>l(`models`),className:X(`flex min-h-14 w-full items-center gap-3 rounded-lg px-3 py-2 text-left hover:bg-surface-hover disabled:opacity-60`,gk.focusRingPanel),children:[(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:S}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:t,children:b?.provider||t})]}),(0,$.jsx)(cs,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0})]}),x&&(0,$.jsx)(`p`,{className:`px-3 py-2 text-sm text-fg-muted`,children:e.modelUnavailable}),b&&(0,$.jsxs)(`div`,{className:`mt-4 px-3`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:e.modelThinkingLabel}),T?(0,$.jsx)(`div`,{role:`group`,"aria-label":e.modelThinkingLabel,className:X(`grid gap-1 rounded-lg bg-surface-base p-1`,w.options.length>4?`grid-cols-3`:w.options.length===4?`grid-cols-4`:w.options.length===3?`grid-cols-3`:`grid-cols-2`),children:w.options.map(e=>(0,$.jsx)(`button`,{type:`button`,"aria-pressed":e===i,disabled:O||a,onClick:()=>void k(()=>o(e)),className:X(`min-h-11 min-w-11 flex-1 rounded-md px-2 text-sm text-fg hover:bg-surface-hover disabled:opacity-50`,gk.focusRingPanel,e===i&&`bg-accent-soft font-medium text-accent-fg`),children:E(e)},e))}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:w?.mode===`none`?e.thinkingUnsupported:e.modelThinkingUnknown})]})]})}),(0,$.jsx)(`div`,{className:`shrink-0 px-3 py-2 text-xs`,"aria-live":`polite`,children:f?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-3 animate-spin`,"aria-hidden":!0}),e.modelConfigSaving]}):m?(0,$.jsx)(`span`,{role:`alert`,className:`text-danger`,children:m}):s.error?(0,$.jsx)(`button`,{type:`button`,onClick:()=>void s.mutate(),className:X(`text-accent-fg`,gk.focusRingPanel),children:e.modelRetry}):g?(0,$.jsxs)(`span`,{className:`text-fg-muted`,children:[g,` · `,C,D?` · ${D}`:``]}):null}),(0,$.jsx)(y,{to:`/settings/capabilities/models`,className:X(`shrink-0 rounded-lg border-t border-edge-subtle px-3 py-3 text-sm text-fg-muted hover:bg-surface-hover`,gk.focusRingPanel),children:v.length?e.modelManage:e.modelConfigure})]})})]})}function R5(e){let t=(0,Q.c)(10),{disabled:n,chat:r,onStart:i}=e,a=o6(Zhe),o=r.voiceInput,s;t[0]===a?s=t[1]:(s=$3(a).join(`+`),t[0]=a,t[1]=s);let c=`${o} (${s})`,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=X(`relative inline-flex size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-fg-subtle hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),t[2]=l):l=t[2];let u;t[3]===i?u=t[4]:(u=()=>void i(),t[3]=i,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(nv,{className:`size-4 stroke-[1.75]`}),t[5]=d):d=t[5];let f;return t[6]!==n||t[7]!==u||t[8]!==c?(f=(0,$.jsx)(`button`,{type:`button`,className:l,disabled:n,title:c,"aria-label":c,onClick:u,children:d}),t[6]=n,t[7]=u,t[8]=c,t[9]=f):f=t[9],f}function Zhe(e){return e.shortcut}function z5(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}var Qhe=(0,Z.memo)(function(e){let t=(0,Q.c)(53),{disabled:n,sending:r,streaming:i,runBusy:a,chat:o,hasDraft:s,showSteeringInterrupt:c,attachmentCount:l,maxAttachments:u,onPickFiles:d,thinkingLevel:f,modelSupportsThinking:p,onThinkingChange:m,voiceActive:h,onStartVoiceInput:g,voiceConversationEnabled:_,onStartVoiceConversation:v,onSend:y,onAbort:b,onInterrupt:x,sessionModel:S,showModelSelector:C,onModelChange:w,modelDisabled:T}=e,E=l>=u,D;t[0]!==l||t[1]!==E||t[2]!==o.attachFile||t[3]!==o.maxAttachmentsReached||t[4]!==u?(D=E?z5(o.maxAttachmentsReached,{max:u}):`${o.attachFile} (${l}/${u})`,t[0]=l,t[1]=E,t[2]=o.attachFile,t[3]=o.maxAttachmentsReached,t[4]=u,t[5]=D):D=t[5];let O=D,k;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=X(`flex flex-wrap items-center gap-2 px-4 py-2.5`),t[6]=k):k=t[6];let A;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(A=X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),t[7]=A):A=t[7];let j=E||n||a,M;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(Me,{className:`size-4`}),t[8]=M):M=t[8];let N;t[9]!==O||t[10]!==d||t[11]!==j?(N=(0,$.jsx)(`button`,{type:`button`,className:A,disabled:j,title:O,"aria-label":O,onClick:d,children:M}),t[9]=O,t[10]=d,t[11]=j,t[12]=N):N=t[12];let P;t[13]!==n||t[14]!==o||t[15]!==T||t[16]!==p||t[17]!==w||t[18]!==m||t[19]!==r||t[20]!==S||t[21]!==C||t[22]!==i||t[23]!==f?(P=C?(0,$.jsx)(Xhe,{chat:o,sessionModel:S,modelDisabled:T,onModelChange:w,thinkingLevel:f,modelSupportsThinking:p,thinkingDisabled:n||r||i,onThinkingChange:m}):null,t[13]=n,t[14]=o,t[15]=T,t[16]=p,t[17]=w,t[18]=m,t[19]=r,t[20]=S,t[21]=C,t[22]=i,t[23]=f,t[24]=P):P=t[24];let F;t[25]!==n||t[26]!==o||t[27]!==v||t[28]!==g||t[29]!==h||t[30]!==_?(F=h?null:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(R5,{disabled:n,chat:o,onStart:g}),(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-fg-subtle hover:bg-surface-hover hover:text-fg`,gk.transition,gk.press,gk.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),disabled:n||!_,title:o.voiceConversation,"aria-label":o.voiceConversation,onClick:()=>void v(),children:(0,$.jsx)(Wr,{className:`size-4 stroke-[1.75]`})})]}),t[25]=n,t[26]=o,t[27]=v,t[28]=g,t[29]=h,t[30]=_,t[31]=F):F=t[31];let I;t[32]!==n||t[33]!==s||t[34]!==o.abort||t[35]!==o.sendMessage||t[36]!==o.steeringInterruptSend||t[37]!==b||t[38]!==x||t[39]!==y||t[40]!==a||t[41]!==c||t[42]!==h?(I=a?(0,$.jsxs)($.Fragment,{children:[c&&x?(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-accent-fg hover:bg-accent-soft dark:hover:bg-accent-soft`,gk.transition,gk.press,gk.focusRingPanel),title:o.steeringInterruptSend,"aria-label":o.steeringInterruptSend,onClick:()=>void x(),children:(0,$.jsx)(Uv,{className:`size-4 stroke-[1.75]`})}):null,(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover/70 text-fg-muted hover:bg-surface-hover hover:text-fg dark:bg-surface-hover/50`,gk.transition,gk.press,gk.focusRingPanel),title:o.abort,"aria-label":o.abort,onClick:b,children:(0,$.jsx)(_x,{className:`size-4 stroke-[1.75]`})})]}):(0,$.jsx)(`button`,{type:`button`,className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border transition-colors duration-150 ease-out`,gk.press,gk.focusRingPanel,s?`border-transparent text-accent-fg hover:bg-accent-soft dark:text-accent-fg dark:hover:bg-accent-soft`:`border-transparent text-fg-disabled`),disabled:n||h||!s,title:o.sendMessage,"aria-label":o.sendMessage,onClick:y,children:(0,$.jsx)(Uv,{className:`size-4 stroke-[1.75]`})}),t[32]=n,t[33]=s,t[34]=o.abort,t[35]=o.sendMessage,t[36]=o.steeringInterruptSend,t[37]=b,t[38]=x,t[39]=y,t[40]=a,t[41]=c,t[42]=h,t[43]=I):I=t[43];let L;t[44]!==F||t[45]!==I?(L=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[F,I]}),t[44]=F,t[45]=I,t[46]=L):L=t[46];let R;t[47]!==L||t[48]!==P?(R=(0,$.jsxs)(`div`,{className:`ml-auto flex min-w-0 items-center gap-2`,children:[P,L]}),t[47]=L,t[48]=P,t[49]=R):R=t[49];let z;return t[50]!==R||t[51]!==N?(z=(0,$.jsxs)(`div`,{className:k,children:[N,R]}),t[50]=R,t[51]=N,t[52]=z):z=t[52],z});function $he(e){return e.map(e=>({type:e.type===`voice`?`voice`:(e.mimeType??``).startsWith(`image/`)?`image`:`document`,mimeType:e.mimeType??`application/octet-stream`,content:e.data??``,name:e.name??`file`,size:e.size??0,uri:e.uri,...typeof e.durationSeconds==`number`&&Number.isFinite(e.durationSeconds)&&e.durationSeconds>0?{durationSeconds:e.durationSeconds}:{}}))}var ege=100,tge=400,B5=900;function nge(e,t){switch(t.type){case`reset`:return{box:null,hoverPreview:null};case`set-box`:return{...e,box:t.box};case`set-hover`:return{...e,hoverPreview:t.hoverPreview}}}function rge(e,t){let n=t.trim().toLowerCase();if(!n)return[];let r=e.toLowerCase(),i=[],a=0;for(let e=0;e<r.length&&a<n.length;e++)r[e]===n[a]&&(i.push([e,e+1]),a++);return i}function ige(e){let t=(0,Q.c)(8),{name:n,query:r}=e,i;t[0]!==n||t[1]!==r?(i=rge(n,r),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i;if(a.length===0){let e;return t[3]===n?e=t[4]:(e=(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n}),t[3]=n,t[4]=e),e}let o;if(t[5]!==n||t[6]!==a){let e=[],r=0;a.forEach(t=>{let[i,a]=t;i>r&&e.push((0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n.slice(r,i)},`pre-${i}`)),e.push((0,$.jsx)(`span`,{className:`font-semibold text-accent-fg`,children:n.slice(i,a)},`hl-${i}-${a}`)),r=a}),r<n.length&&e.push((0,$.jsx)(`span`,{className:`font-medium text-fg`,children:n.slice(r)},`tail`)),o=(0,$.jsx)($.Fragment,{children:e}),t[5]=n,t[6]=a,t[7]=o}else o=t[7];return o}var age=(0,Z.memo)(function(e){let t=(0,Q.c)(46),{open:n,anchorRef:r,items:i,selectedIndex:a,loading:o,query:s,noResults:c,sessionKey:l,recentLabel:u,filesLabel:d,notesLabel:f,ariaLabel:p,onSelectItem:m,shiftHint:h}=e,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g={box:null,hoverPreview:null},t[0]=g):g=t[0];let[_,v]=(0,Z.useReducer)(nge,g),y=_.box,b=_.hoverPreview,x=(0,Z.useRef)(null),S=(0,Z.useRef)(0),C=(0,Z.useRef)(null),w;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{x.current&&=(clearTimeout(x.current),null)},t[1]=w):w=t[1];let T=w,E;t[2]===l?E=t[3]:(E=(e,t,n)=>{T(),S.current+=1;let r=S.current;if(e.kind!==`file`){v({type:`set-hover`,hoverPreview:null});return}let i=e.relativePath;if(!l?.trim()||e.isDirectory||e.isBrowseUp||!i){v({type:`set-hover`,hoverPreview:null});return}x.current=setTimeout(()=>{x.current=null,r===S.current&&gH(i,{sessionKey:l}).then(e=>{let{content:i}=e,a=i.length>B5?`${i.slice(0,B5)}…`:i;r===S.current&&v({type:`set-hover`,hoverPreview:{text:a,x:t,y:n}})}).catch(()=>{r===S.current&&v({type:`set-hover`,hoverPreview:null})})},420)},t[2]=l,t[3]=E);let D=E,O,k;t[4]!==r||t[5]!==n?(O=()=>{if(!n){v({type:`reset`}),T(),S.current+=1;return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();v({type:`set-box`,box:{left:t.left,top:t.top,width:t.width}})};e();let t=r.current,i=t&&typeof ResizeObserver<`u`?new ResizeObserver(()=>{e()}):null;return t&&i&&i.observe(t),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{t&&i&&i.disconnect(),window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},k=[n,r],t[4]=r,t[5]=n,t[6]=O,t[7]=k):(O=t[6],k=t[7]),(0,Z.useLayoutEffect)(O,k);let A,j;if(t[8]!==i.length||t[9]!==n||t[10]!==a?(A=()=>{!n||a<0||a>=i.length||(C.current?.querySelector(`#at-mention-${a}`))?.scrollIntoView({block:`nearest`})},j=[n,a,i.length],t[8]=i.length,t[9]=n,t[10]=a,t[11]=A,t[12]=j):(A=t[11],j=t[12]),(0,Z.useLayoutEffect)(A,j),!n||typeof document>`u`||y===null)return null;let M=i.length,N=Math.min(y.width,tge),P;t[13]!==y.left||t[14]!==y.top||t[15]!==N?(P={position:`fixed`,left:y.left,top:y.top,width:N,transform:`translateY(calc(-100% - 8px))`,zIndex:ege},t[13]=y.left,t[14]=y.top,t[15]=N,t[16]=P):P=t[16];let F=a>=0&&a<M?`at-mention-${a}`:void 0,I;t[17]!==o||t[18]!==M?(I=o&&M===0?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2.5 text-sm text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:`…`})]}):null,t[17]=o,t[18]=M,t[19]=I):I=t[19];let L;t[20]!==d||t[21]!==i||t[22]!==o||t[23]!==c||t[24]!==f||t[25]!==m||t[26]!==s||t[27]!==u||t[28]!==D||t[29]!==a||t[30]!==M?(L=!o&&M===0?(0,$.jsx)(`div`,{className:`px-3 py-2 text-sm text-fg-muted`,children:c}):(0,$.jsx)($.Fragment,{children:i.map((e,t)=>{let n=i[t-1]?.kind,r=e.kind===`note`?f:d,o=e.kind===`file`&&e.isRecent;return(0,$.jsxs)(Z.Fragment,{children:[n===e.kind?null:(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-3 pb-1 pt-2 text-[0.65rem] font-medium uppercase tracking-wide text-fg-muted first:border-t-0`,children:r}),(0,$.jsxs)(`div`,{id:`at-mention-${t}`,role:`option`,"aria-selected":a===t,tabIndex:-1,className:X(`flex cursor-pointer items-start gap-2 px-3 py-2 text-left text-sm`,a===t?`bg-surface-hover text-fg`:`text-fg-subtle hover:bg-surface-hover/80`,o&&`border-l-2 border-l-accent/60`),onPointerDown:t=>{t.pointerType===`mouse`&&t.button!==0||(t.preventDefault(),m(e,{shiftKey:t.shiftKey}))},onPointerEnter:t=>D(e,t.clientX,t.clientY),onPointerLeave:()=>{T(),S.current+=1,v({type:`set-hover`,hoverPreview:null})},children:[(0,$.jsx)(`span`,{className:`mt-0.5 shrink-0`,children:e.kind===`note`?(0,$.jsx)(cv,{className:`size-3.5 text-accent-fg`,"aria-hidden":!0}):e.isBrowseUp?(0,$.jsx)(Ip,{className:`size-3.5 text-fg-muted`,"aria-hidden":!0}):e.isDirectory?(0,$.jsx)(Ip,{className:`size-3.5 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}):(0,$.jsx)(wf,{className:X(`size-3.5`,JV(e.name)),"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 truncate`,children:[(0,$.jsx)(`span`,{className:`truncate`,children:(0,$.jsx)(ige,{name:e.name,query:s})}),o?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-accent-soft px-1 py-0 text-[0.65rem] text-accent-fg`,children:u}):null]}),(0,$.jsx)(`div`,{className:`mt-0.5 truncate text-xs text-fg-muted`,children:e.kind===`note`?e.description||f:e.relativePath||`—`})]})]})]},e.kind===`note`?`note:${e.noteRef.sourceId}`:`file:${e.relativePath}`)})}),t[20]=d,t[21]=i,t[22]=o,t[23]=c,t[24]=f,t[25]=m,t[26]=s,t[27]=u,t[28]=D,t[29]=a,t[30]=M,t[31]=L):L=t[31];let R;t[32]!==p||t[33]!==I||t[34]!==L||t[35]!==F?(R=(0,$.jsxs)(`div`,{ref:C,className:`max-h-[min(26rem,54vh)] overflow-y-auto`,role:`listbox`,"aria-label":p,"aria-activedescendant":F,children:[I,L]}),t[32]=p,t[33]=I,t[34]=L,t[35]=F,t[36]=R):R=t[36];let z;t[37]===h?z=t[38]:(z=h?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-3 py-1.5 text-[0.65rem] text-fg-muted`,children:h}):null,t[37]=h,t[38]=z);let B;t[39]===b?B=t[40]:(B=b?(0,$.jsx)(`div`,{className:`pointer-events-none fixed z-[200] max-h-48 max-w-sm overflow-auto rounded-md border border-edge bg-surface-panel p-2 font-mono text-[0.7rem] text-fg shadow-lg`,style:{left:Math.min(b.x+12,window.innerWidth-320),top:Math.min(b.y+12,window.innerHeight-200)},children:b.text}):null,t[39]=b,t[40]=B);let V;return t[41]!==R||t[42]!==z||t[43]!==B||t[44]!==P?(V=(0,en.createPortal)((0,$.jsxs)(`div`,{className:`pointer-events-auto max-h-[min(28rem,60vh)] min-h-[2.5rem] overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-lg dark:bg-surface-panel/95`,style:P,role:`presentation`,children:[R,z,B]}),document.body),t[41]=R,t[42]=z,t[43]=B,t[44]=P,t[45]=V):V=t[45],V});function V5(e,t){let n=e=>{e!==!1&&t()};e instanceof Promise?e.then(n).catch(e=>{fA(`error`,e instanceof Error?e.message:String(e))}):n(e)}var H5=new Set([`abort`,`stop`,`cancel`]);function oge(e){if(e.kind!==`command`)return!1;if(H5.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if(H5.has(t.toLowerCase()))return!0;return!1}function U5(e,t,n,r){return e.slice(0,t)+r+e.slice(n)}var sge={skill:(e,t)=>{let n=t.slashRange;if(!n)return;if(e.availability?.status&&e.availability.status!==`available`){t.callbacks.onUnavailableSkill?.(e);return}let r=`/skill:${e.name} `,i=U5(t.editor.valueRef.current,n.start,n.end,r),a=n.start+r.length;t.editor.resetEditor({nextText:i,caretOffset:a,focus:!0})},command:(e,t)=>{let n=t.slashRange;if(!n||n.start!==0)return;if(e.name.toLowerCase()===`review`&&t.callbacks.onReviewLauncher&&!t.runBusy&&t.pendingFollowUpsCount===0){let e=t.editor.valueRef.current,r=e.slice(0,n.start)+e.slice(n.end);t.editor.resetEditor({nextText:r,caretOffset:n.start,focus:!0}),t.callbacks.onReviewLauncher();return}if(e.acceptsArgs===!0){let r=`/${e.name} `,i=U5(t.editor.valueRef.current,n.start,n.end,r),a=n.start+r.length;t.editor.resetEditor({nextText:i,caretOffset:a,focus:!0});return}let r=`/${e.name}`;if(t.runBusy||t.pendingFollowUpsCount>0){if(oge(e)){if(!t.callbacks.onAbort)return;t.callbacks.onAbort();let e=t.editor.valueRef.current,r=e.slice(0,n.start)+e.slice(n.end);t.editor.resetEditor({nextText:r,caretOffset:n.start});return}if(!t.callbacks.onAddPendingFollowUp||t.pendingFollowUpsCount>=t.maxPendingFollowUps)return;t.contextRefs.current.length?t.callbacks.onAddPendingFollowUp(r,void 0,t.contextRefs.current):t.callbacks.onAddPendingFollowUp(r,void 0),t.callbacks.onUserTextCommitted?.(r),t.attachments.clearAttachments(),t.contextRefs.clear(),t.editor.resetEditor();return}V5(t.contextRefs.current.length?t.callbacks.onSend(r,void 0,t.thinkingLevel,t.contextRefs.current):t.callbacks.onSend(r,void 0,t.thinkingLevel),()=>{t.callbacks.onUserTextCommitted?.(r),t.attachments.clearAttachments(),t.contextRefs.clear(),t.editor.resetEditor()})},agent:(e,t)=>{let n=t.slashRange;if(!n||n.start!==0||!t.callbacks.onChatAgentChange)return;let r=t.editor.valueRef.current,i=r.slice(0,n.start)+r.slice(n.end);t.editor.resetEditor({nextText:i,caretOffset:n.start}),t.attachments.clearAttachments(),t.callbacks.onChatAgentChange(e.name)}};function cge(e,t){let n=sge[e.kind];n&&n(e,t)}var W5={new:10,help:11,list:12,clear:13,switch:14,models:15,usage:16,skills:17,settings:18,start:19,think:20,reasoning:21,verbose:22,status:23,tts:24},lge=new Set([`abort`,`archive`]);function G5(e){if(e.kind===`command`){let t=e.name.toLowerCase();if(W5[t]!==void 0)return 0;if(lge.has(t))return 2}return 1}function K5(e,t){let n=G5(e),r=G5(t);if(n!==r)return n-r;if(n===0){let n=W5[e.name.toLowerCase()]??999,r=W5[t.name.toLowerCase()]??999;if(n!==r)return n-r}let i=e.name.localeCompare(t.name);return i===0?e.id.localeCompare(t.id):i}var uge=RegExp(`^@file:${zY}`,`u`);function q5(e){if(e.kind!==`command`)return!1;if(H5.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if(H5.has(t.toLowerCase()))return!0;return!1}function J5(e,t){return e.kind!==`command`||e.acceptsArgs===!0||q5(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount>=t.maxPendingFollowUps}function dge(e,t){return e.kind!==`command`||e.acceptsArgs===!0||q5(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount<t.maxPendingFollowUps}function fge(e,t){let n=0;for(;n<e.length;){let r=e.indexOf(`@file:`,n);if(r===-1)return null;let i=e.slice(r).match(uge);if(!i){n=r+1;continue}let a=r+i[0].length;if(t>=r&&t<a)return{start:r,end:a};n=a}return null}var pge=20,Y5=3;function mge(e){return e.includes(`/`)||/^[A-Za-z]:/u.test(e)?!0:/^(Users|home|var|tmp|etc|opt|private|Volumes|System|Applications|Library|usr|dev|bin|sbin|proc|sys)(\/|$)/iu.test(e)}function hge(e,t){if(t===0)return!1;let n=e[t-1];if(n===void 0||n===`.`||n===`:`||n===`/`)return!0;let r=e.slice(0,t);return/[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+$/u.test(r)}function gge(e,t){let n=e.length,r=Math.min(Math.max(t,0),n);if(r<1&&e===`/`&&(r=1),r<1)return null;let i=e.slice(0,r).match(/\/[^\s]*$/);if(!i||i.index===void 0||fge(e,i.index))return null;let a=i.index;if(hge(e,a))return null;let o=i[0],s=o.slice(1);return mge(s)||o.startsWith(`/skill:`)?null:{start:i.index,end:r,query:s}}function _ge(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=e.name.toLowerCase();if(r===n)return 0;for(let t of e.aliases??[])if(t.toLowerCase()===n)return 1;if(r.startsWith(n))return 2;for(let t of e.aliases??[])if(t.toLowerCase().startsWith(n))return 3;if(r.includes(n))return 4;for(let t of e.aliases??[])if(t.toLowerCase().includes(n))return 5;return(e.description??``).toLowerCase().includes(n)?100:(e.category??``).toLowerCase().includes(n)?101:e.kind===`skill`&&(e.source??``).toLowerCase().includes(n)?102:null}function vge(e,t){return t===0?0:Math.min(e,t-1)}function yge(e,t,n){let r=(0,Q.c)(60),[i,a]=(0,Z.useState)(0),[o,s]=(0,Z.useState)(0),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(!1),m=ct(Nge);n?.isComposing;let h;r[0]!==t||r[1]!==n?.isComposing||r[2]!==e?(h=n?.isComposing?null:gge(e,t),r[0]=t,r[1]=n?.isComposing,r[2]=e,r[3]=h):h=r[3];let g=h,_=!!(g&&!n?.suppress),v,y;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&(t.section===`skills`||t.section===`agents`)&&s(Mge)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},y=[],r[4]=v,r[5]=y):(v=r[4],y=r[5]),(0,Z.useEffect)(v,y),!_&&(c||u||f)&&(l(!1),d(!1),p(!1));let b;r[6]!==m||r[7]!==n?.currentAgentId||r[8]!==n?.sessionKey?(b=async()=>{let[e,t,r]=await Promise.all([C3(),w3(n?.currentAgentId,n?.sessionKey),iL().catch(jge)]),i=e.map(Age),a=t.skills.map(kge),o=rt(m).agentsSettings,s=r&&r.items.length>1?r.items.map(e=>({kind:`agent`,id:`agent:${e.id}`,name:I3(e,o),description:L3(e,o),category:`agent`,...e.avatar?{avatar:e.avatar}:{},aliases:[e.id,...e.name?[e.name]:[]]})):[];return[...a,...i,...s]},r[6]=m,r[7]=n?.currentAgentId,r[8]=n?.sessionKey,r[9]=b):b=r[9];let x=n?.currentAgentId,S=n?.sessionKey,C;r[10]!==m||r[11]!==o||r[12]!==x||r[13]!==S?(C=[m,x,S,o],r[10]=m,r[11]=o,r[12]=x,r[13]=S,r[14]=C):C=r[14];let w;r[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=[],r[15]=w):w=r[15];let T;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=[],r[16]=T):T=r[16];let E;r[17]===_?E=r[18]:(E={enabled:_,initial:w,errorData:T},r[17]=_,r[18]=E);let D=SN(b,C,E),O=D.data,k=D.error==null?null:D.error instanceof Error?D.error.message:String(D.error),A=g?.query??``,j=g!==null&&g.start===0,M=j,N;r[19]===A?N=r[20]:(N=A.trim(),r[19]=A,r[20]=N);let P=N===``,F=_&&P&&c,I=_&&P&&u,L=_&&P&&f,R;r[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{l(!0)},r[21]=R):R=r[21];let z=R,B;r[22]===Symbol.for(`react.memo_cache_sentinel`)?(B=()=>{d(!0)},r[22]=B):B=r[22];let V=B,H;r[23]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{p(!0)},r[23]=H):H=r[23];let ee=H,te;if(r[24]!==M||r[25]!==O||r[26]!==j||r[27]!==L||r[28]!==I||r[29]!==F||r[30]!==P||r[31]!==A||r[32]!==e){bb0:{let t=ahe(e),n=[];for(let e of O){if(e.kind===`command`&&!j||e.kind===`agent`&&!M||e.kind===`skill`&&t.has(e.name)||e.kind===`skill`&&P&&e.availability?.status!==`available`)continue;let r=_ge(e,A);r!==null&&n.push({item:e,rank:r})}if(P){let e=Oge,t=n.filter(Dge).sort(e).map(Ege),r=n.filter(Tge).sort(e).map(wge),i=n.filter(Cge).sort(e).map(Sge),a=F?t:t.slice(0,Y5),o=I?r:r.slice(0,Y5),s=L?i:i.slice(0,Y5),c=F?0:Math.max(0,t.length-Y5),l=I?0:Math.max(0,r.length-Y5),u=L?0:Math.max(0,i.length-Y5);te={items:[...a,...o,...s],skillRowCount:a.length,commandRowCount:o.length,groupedHasSkills:t.length>0,groupedHasCommands:r.length>0,groupedHasAgents:i.length>0,groupedSkillsMoreCount:c,groupedCommandsMoreCount:l,groupedAgentsMoreCount:u};break bb0}n.sort(xge);let i;r[34]===n?i=r[35]:(i={items:n.slice(0,pge).map(bge),skillRowCount:0,commandRowCount:0,groupedHasSkills:!1,groupedHasCommands:!1,groupedHasAgents:!1,groupedSkillsMoreCount:0,groupedCommandsMoreCount:0,groupedAgentsMoreCount:0},r[34]=n,r[35]=i),te=i}r[24]=M,r[25]=O,r[26]=j,r[27]=L,r[28]=I,r[29]=F,r[30]=P,r[31]=A,r[32]=e,r[33]=te}else te=r[33];let{items:ne,skillRowCount:U,commandRowCount:W,groupedHasSkills:re,groupedHasCommands:ie,groupedHasAgents:ae,groupedSkillsMoreCount:oe,groupedCommandsMoreCount:se,groupedAgentsMoreCount:ce}=te,le=g?A:``,ue=(0,Z.useRef)(le);ue.current!==le&&(ue.current=le,i!==0&&a(0));let de;r[36]!==ne.length||r[37]!==i?(de=vge(i,ne.length),r[36]=ne.length,r[37]=i,r[38]=de):de=r[38];let fe=de,pe;r[39]===ne.length?pe=r[40]:(pe=e=>{ne.length!==0&&a(t=>e===`down`?(t+1)%ne.length:(t-1+ne.length)%ne.length)},r[39]=ne.length,r[40]=pe);let me=pe,G;return r[41]!==M||r[42]!==W||r[43]!==j||r[44]!==P||r[45]!==ce||r[46]!==se||r[47]!==ae||r[48]!==ie||r[49]!==re||r[50]!==oe||r[51]!==ne||r[52]!==k||r[53]!==me||r[54]!==_||r[55]!==A||r[56]!==fe||r[57]!==U||r[58]!==g?(G={open:_,slashRange:g,commandsAllowed:j,agentsAllowed:M,grouped:P,skillRowCount:U,commandRowCount:W,groupedHasSkills:re,groupedHasCommands:ie,groupedHasAgents:ae,groupedSkillsMoreCount:oe,groupedCommandsMoreCount:se,groupedAgentsMoreCount:ce,items:ne,selectedIndex:fe,query:A,loadError:k,onNavigate:me,setSelectedIndex:a,expandGroupedSkills:z,expandGroupedCommands:V,expandGroupedAgents:ee},r[41]=M,r[42]=W,r[43]=j,r[44]=P,r[45]=ce,r[46]=se,r[47]=ae,r[48]=ie,r[49]=re,r[50]=oe,r[51]=ne,r[52]=k,r[53]=me,r[54]=_,r[55]=A,r[56]=fe,r[57]=U,r[58]=g,r[59]=G):G=r[59],G}function bge(e){return e.item}function xge(e,t){let n=e.item.kind===`skill`&&e.item.availability?.status!==`available`;if(n!==(t.item.kind===`skill`&&t.item.availability?.status!==`available`))return n?1:-1;if(e.rank!==t.rank)return e.rank-t.rank;let r=K5(e.item,t.item);return r===0?0:r}function Sge(e){return e.item}function Cge(e){return e.item.kind===`agent`}function wge(e){return e.item}function Tge(e){return e.item.kind===`command`}function Ege(e){return e.item}function Dge(e){return e.item.kind===`skill`}function Oge(e,t){let n=K5(e.item,t.item);return n===0?e.item.id.localeCompare(t.item.id):n}function kge(e){return{kind:`skill`,id:`skill:${e.name}`,name:e.name,description:e.description,category:`skill`,source:e.source,availability:{status:e.availableForCurrentAgent?`available`:e.unavailableReason??`agent-denied`,reason:e.unavailableReason??void 0}}}function Age(e){return{kind:`command`,id:`cmd:${e.id}`,name:e.name,description:e.description,category:e.category,aliases:e.aliases,acceptsArgs:e.acceptsArgs,acceptsContext:e.acceptsContext}}function jge(){return null}function Mge(e){return e+1}function Nge(e){return e.language}var Pge=new Map,X5=`xopc-agent-avatar-updated`;function Fge(e){return Pge.get(e)??0}var Ige=`xopc:custom`,Lge=`xopc:dicebear:`,Z5=[`adventurer`,`bottts`,`lorelei`,`thumbs`,`fun-emoji`],Rge=[...Z5,`pixel-art`];function zge(e){return Rge.includes(e)}function Q5(e){if(!e.startsWith(Lge))return null;let t=e.slice(14),n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=t.slice(n+1);return!zge(r)||!i.trim()?null:{styleId:r,seed:i}}function Bge(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return t}function $5(e,t=128){let n=Bge(e)%360,r=(e.trim().charAt(0)||`A`).toUpperCase(),i=`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}"><rect width="100%" height="100%" rx="${t/2}" fill="hsl(${n} 58% 42%)"/><text x="50%" y="54%" text-anchor="middle" dominant-baseline="middle" font-family="Inter, system-ui, sans-serif" font-size="${Math.round(t*.42)}" font-weight="700" fill="white">${r}</text></svg>`;return`data:image/svg+xml,${encodeURIComponent(i)}`}function Vge(e,t,n,r,i){let a=t?.trim()??``,o=$5(e,r);if(!a)return{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:o};if(a===`xopc:custom`){let t=Y(`/api/agents/${encodeURIComponent(e)}/avatar`),r=new URLSearchParams;n&&r.set(`token`,n),i>0&&r.set(`v`,String(i));let a=r.toString();return{kind:`sync`,src:a?`${t}?${a}`:t}}if(/^https?:\/\//i.test(a))return{kind:`sync`,src:a};let s=Q5(a);return s?{kind:`dicebear`,styleId:s.styleId,seed:s.seed,fallbackSrc:o}:{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:o}}function e7(e){let t=ut(e=>e.token),n=e.token===void 0?t:e.token,{agentId:r,avatar:i,size:a=44}=e,[,o]=(0,Z.useState)(0);(0,Z.useEffect)(()=>{let e=e=>{e.detail?.agentId===r&&o(e=>e+1)};return window.addEventListener(X5,e),()=>window.removeEventListener(X5,e)},[r]);let c=Fge(r),l=(0,Z.useMemo)(()=>Vge(r,i,n,a,c),[r,i,n,a,c]),u=l.kind===`sync`?l.src:l.fallbackSrc,[d,f]=(0,Z.useState)(u);return(0,Z.useEffect)(()=>{f(u)},[u]),(0,Z.useEffect)(()=>{if(l.kind!==`dicebear`)return;let e=!1;return s(async()=>{let{dicebearToDataUri:e}=await import(`./agent-avatar-dicebear-BUu7EnwM.js`);return{dicebearToDataUri:e}},__vite__mapDeps([125,1])).then(({dicebearToDataUri:t})=>{e||f(t(l.styleId,l.seed,a))}),()=>{e=!0}},[l,a]),(0,$.jsx)(`img`,{src:d,alt:``,width:a,height:a,className:X(`rounded-full object-cover bg-surface-hover`,e.className),draggable:!1,onError:()=>{f($5(r,a))}})}var Hge=100,Uge=280;function t7(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);if(r>=0)return(0,$.jsxs)($.Fragment,{children:[e.slice(0,r),(0,$.jsx)(`span`,{className:`text-accent-fg`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]});let i=[],a=0,o=0;for(let t of e){let e=n[a],r=`${String(o)}-${t}`;e!==void 0&&t.toLowerCase()===e?(i.push((0,$.jsx)(`span`,{className:`text-accent-fg`,children:t},r)),a+=1):i.push((0,$.jsx)(Z.Fragment,{children:t},r)),o+=1}return(0,$.jsx)($.Fragment,{children:i})}function Wge(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,$.jsxs)($.Fragment,{children:[e.slice(0,r),(0,$.jsx)(`span`,{className:`text-accent-fg`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var n7=(0,Z.memo)(function(e){let t=(0,Q.c)(44),{item:n,index:r,selectedIndex:i,showHighlight:a,filterQuery:o,currentAgentId:s,currentBadgeLabel:c,runBusy:l,pendingFollowUpsCount:u,maxPendingFollowUps:d,queueBadgeLabel:f,queueFullBadgeLabel:p,queueFullTooltip:m,skillUnavailableLabel:h,skillAgentDeniedLabel:g,onSelectItem:_}=e,v=n.kind===`skill`,y=n.kind===`agent`,b;t[0]!==y||t[1]!==v||t[2]!==n.avatar||t[3]!==n.name?(b=y?(0,$.jsx)(e7,{agentId:n.name,avatar:n.avatar,size:18,className:`size-[18px] shrink-0`}):v?(0,$.jsx)(Wy,{className:`size-3 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(GT,{className:`size-3 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),t[0]=y,t[1]=v,t[2]=n.avatar,t[3]=n.name,t[4]=b):b=t[4];let x=b,S;t[5]!==o||t[6]!==y||t[7]!==n.name||t[8]!==a?(S=y?a?(0,$.jsx)($.Fragment,{children:t7(n.name,o)}):(0,$.jsx)(`span`,{className:`text-fg`,children:n.name}):a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`text-fg`,children:`/`}),t7(n.name,o)]}):(0,$.jsxs)(`span`,{className:`text-fg`,children:[`/`,n.name]}),t[5]=o,t[6]=y,t[7]=n.name,t[8]=a,t[9]=S):S=t[9];let C=S,w=y&&s!=null&&s.length>0&&n.name===s,T=v&&n.availability?.status!==`available`,E,D;if(t[10]!==n||t[11]!==d||t[12]!==u||t[13]!==l){let e={runBusy:l,pendingFollowUpsCount:u,maxPendingFollowUps:d};D=dge(n,e),E=J5(n,e),t[10]=n,t[11]=d,t[12]=u,t[13]=l,t[14]=E,t[15]=D}else E=t[14],D=t[15];let O=E,k=null;if(w){let e;t[16]===c?e=t[17]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-accent-soft px-1 py-px text-[0.6rem] font-medium leading-none text-accent-fg`,"aria-label":c,children:c}),t[16]=c,t[17]=e),k=e}else if(T){let e=n.availability?.reason??`unavailable`,r=n.availability?.status===`agent-denied`?g:h,i;t[18]!==e||t[19]!==r?(i=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-medium leading-none text-fg-muted`,"aria-label":e,children:r}),t[18]=e,t[19]=r,t[20]=i):i=t[20],k=i}else if(O){let e;t[21]===p?e=t[22]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-red-100 px-1 py-px text-[0.6rem] font-medium leading-none text-red-700 dark:bg-red-900/40 dark:text-red-300`,"aria-label":p,children:p}),t[21]=p,t[22]=e),k=e}else if(D){let e;t[23]===f?e=t[24]:(e=(0,$.jsx)(`span`,{className:`ml-1 shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-medium leading-none text-fg-muted`,"aria-label":f,children:f}),t[23]=f,t[24]=e),k=e}let A=i===r,j=`palette-${r}`,M;t[25]!==o||t[26]!==n.description||t[27]!==a?(M=n.description?a?Wge(n.description,o):n.description:null,t[25]=o,t[26]=n.description,t[27]=a,t[28]=M):M=t[28];let N=O?m:void 0,P;t[29]!==n||t[30]!==_?(P=()=>_(n),t[29]=n,t[30]=_,t[31]=P):P=t[31];let F;return t[32]!==x||t[33]!==O||t[34]!==n||t[35]!==C||t[36]!==a||t[37]!==A||t[38]!==j||t[39]!==M||t[40]!==N||t[41]!==P||t[42]!==k?(F=(0,$.jsx)(Kge,{item:n,icon:x,selected:A,id:j,nameLine:C,descriptionLine:M,dimCategoryBadge:a,trailingBadge:k,disabled:O,disabledTooltip:N,onSelect:P}),t[32]=x,t[33]=O,t[34]=n,t[35]=C,t[36]=a,t[37]=A,t[38]=j,t[39]=M,t[40]=N,t[41]=P,t[42]=k,t[43]=F):F=t[43],F}),Gge=(0,Z.memo)(function(e){let t=(0,Q.c)(50),{open:n,anchorRef:r,items:i,selectedIndex:a,noResults:o,grouped:s,skillRowCount:c,commandRowCount:l,query:u,skillsLabel:d,commandsLabel:f,agentsLabel:p,groupedHasSkills:m,groupedHasCommands:h,groupedHasAgents:g,groupedSkillsShowMoreLabel:_,groupedCommandsShowMoreLabel:v,groupedAgentsShowMoreLabel:y,currentAgentId:b,currentBadgeLabel:x,runBusy:S,pendingFollowUpsCount:C,maxPendingFollowUps:w,queueBadgeLabel:T,queueFullBadgeLabel:E,queueFullTooltip:D,skillUnavailableLabel:O,skillAgentDeniedLabel:k,onExpandSkills:A,onExpandCommands:j,onExpandAgents:M,onSelectItem:N,panelRef:P}=e,[F,I]=(0,Z.useState)(null),L,R;if(t[0]!==r||t[1]!==n?(L=()=>{if(!n){I(null);return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();I({left:t.left,top:t.top,width:t.width})};e();let t=r.current,i=t&&typeof ResizeObserver<`u`?new ResizeObserver(()=>{e()}):null;return t&&i&&i.observe(t),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{t&&i&&i.disconnect(),window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},R=[n,r],t[0]=r,t[1]=n,t[2]=L,t[3]=R):(L=t[2],R=t[3]),(0,Z.useLayoutEffect)(L,R),!n||typeof document>`u`||F===null)return null;let z=i.length,B=Math.min(F.width,Uge),V;t[4]===u?V=t[5]:(V=u.trim(),t[4]=u,t[5]=V);let H=V,ee=!s&&H.length>0,te;t[6]!==b||t[7]!==x||t[8]!==H||t[9]!==w||t[10]!==N||t[11]!==C||t[12]!==T||t[13]!==E||t[14]!==D||t[15]!==S||t[16]!==a||t[17]!==ee||t[18]!==k||t[19]!==O?(te={selectedIndex:a,showHighlight:ee,filterQuery:H,currentAgentId:b,currentBadgeLabel:x,runBusy:S,pendingFollowUpsCount:C,maxPendingFollowUps:w,queueBadgeLabel:T,queueFullBadgeLabel:E,queueFullTooltip:D,skillUnavailableLabel:O,skillAgentDeniedLabel:k,onSelectItem:N},t[6]=b,t[7]=x,t[8]=H,t[9]=w,t[10]=N,t[11]=C,t[12]=T,t[13]=E,t[14]=D,t[15]=S,t[16]=a,t[17]=ee,t[18]=k,t[19]=O,t[20]=te):te=t[20];let ne=te,U;t[21]!==p||t[22]!==l||t[23]!==f||t[24]!==s||t[25]!==y||t[26]!==v||t[27]!==g||t[28]!==h||t[29]!==m||t[30]!==_||t[31]!==i||t[32]!==o||t[33]!==M||t[34]!==j||t[35]!==A||t[36]!==ne||t[37]!==c||t[38]!==d||t[39]!==z?(U=z===0?(0,$.jsx)(`div`,{className:`p-2.5 text-xs leading-normal text-fg-muted`,children:o}):s?(0,$.jsxs)($.Fragment,{children:[m?(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:d}),i.slice(0,c).map((e,t)=>(0,$.jsx)(n7,{item:e,index:t,...ne},e.id)),_?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),A()},children:_}):null]}):null,h?(0,$.jsxs)(`div`,{className:X(m&&`mt-1 border-t border-edge-subtle`),children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:f}),i.slice(c,c+l).map((e,t)=>(0,$.jsx)(n7,{item:e,index:c+t,...ne},e.id)),v?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),j()},children:v}):null]}):null,g?(0,$.jsxs)(`div`,{className:X((m||h)&&`mt-1 border-t border-edge-subtle`),children:[(0,$.jsx)(`div`,{className:`mb-1.5 px-2.5 pt-2.5 text-[0.6rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,"aria-hidden":!0,children:p}),i.slice(c+l).map((e,t)=>(0,$.jsx)(n7,{item:e,index:c+l+t,...ne},e.id)),y?(0,$.jsx)(`button`,{type:`button`,className:`w-full px-2.5 py-1 text-left text-[11px] leading-tight text-fg-muted transition hover:bg-surface-hover/80 hover:text-fg`,onClick:e=>{e.preventDefault(),M()},children:y}):null]}):null]}):i.map((e,t)=>(0,$.jsx)(n7,{item:e,index:t,...ne},e.id)),t[21]=p,t[22]=l,t[23]=f,t[24]=s,t[25]=y,t[26]=v,t[27]=g,t[28]=h,t[29]=m,t[30]=_,t[31]=i,t[32]=o,t[33]=M,t[34]=j,t[35]=A,t[36]=ne,t[37]=c,t[38]=d,t[39]=z,t[40]=U):U=t[40];let W=U,re;t[41]!==F.left||t[42]!==F.top||t[43]!==B?(re={position:`fixed`,left:F.left,top:F.top,width:B,transform:`translateY(calc(-100% - 8px))`,zIndex:Hge},t[41]=F.left,t[42]=F.top,t[43]=B,t[44]=re):re=t[44];let ie=a>=0&&a<z?`palette-${a}`:void 0,ae;return t[45]!==W||t[46]!==P||t[47]!==re||t[48]!==ie?(ae=(0,en.createPortal)((0,$.jsx)(Yt,{delayDuration:0,skipDelayDuration:0,disableHoverableContent:!1,children:(0,$.jsx)(`div`,{ref:P,className:`pointer-events-auto max-h-[min(24rem,55vh)] min-h-8 overflow-y-auto rounded-md border border-edge bg-surface-panel text-xs leading-4 shadow-lg dark:bg-surface-panel/95`,style:re,role:`listbox`,"aria-label":`Commands`,"aria-activedescendant":ie,children:W})}),document.body),t[45]=W,t[46]=P,t[47]=re,t[48]=ie,t[49]=ae):ae=t[49],ae}),Kge=(0,Z.memo)(function(e){let t=(0,Q.c)(39),{item:n,icon:r,selected:i,id:a,nameLine:o,descriptionLine:s,dimCategoryBadge:c,trailingBadge:l,disabled:u,disabledTooltip:d,onSelect:f}=e,p=n.description??``,m;t[0]===p?m=t[1]:(m=p.trim(),t[0]=p,t[1]=m);let h=m,g=h.length>0&&s!=null,_=h.length>0,v=n.description??``,y=n.category&&n.kind!==`skill`&&!c&&!(n.kind===`agent`&&l),b;t[2]===o?b=t[3]:(b=(0,$.jsx)(`span`,{className:`min-w-0 max-w-[min(12rem,46%)] shrink-0 truncate font-semibold text-fg`,children:o}),t[2]=o,t[3]=b);let x;t[4]!==n.category||t[5]!==y?(x=y?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-hover px-1 py-px text-[0.6rem] font-normal leading-none text-fg-muted`,children:n.category}):null,t[4]=n.category,t[5]=y,t[6]=x):x=t[6];let S;t[7]!==s||t[8]!==g?(S=g?(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-normal leading-tight text-fg-muted`,children:s}):null,t[7]=s,t[8]=g,t[9]=S):S=t[9];let C;t[10]!==b||t[11]!==x||t[12]!==S?(C=(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1`,children:[b,x,S]}),t[10]=b,t[11]=x,t[12]=S,t[13]=C):C=t[13];let w=C,T=u?`cursor-not-allowed opacity-50 text-fg-muted`:i?`cursor-pointer bg-surface-hover text-fg`:`cursor-pointer text-fg-subtle hover:bg-surface-hover/80`,E;t[14]===T?E=t[15]:(E=X(`flex w-full min-w-0 items-center gap-1.5 px-2.5 py-1 text-left text-xs leading-4`,T),t[14]=T,t[15]=E);let D=E,O;t[16]!==u||t[17]!==f?(O=e=>{u||e.pointerType===`mouse`&&e.button!==0||(e.preventDefault(),f())},t[16]=u,t[17]=f,t[18]=O):O=t[18];let k=O,A;t[19]===r?A=t[20]:(A=(0,$.jsx)(`span`,{className:`shrink-0 [&_svg]:align-middle`,children:r}),t[19]=r,t[20]=A);let j;t[21]!==A||t[22]!==w||t[23]!==l?(j=(0,$.jsxs)($.Fragment,{children:[A,w,l]}),t[21]=A,t[22]=w,t[23]=l,t[24]=j):j=t[24];let M=j,N=u&&d?d:_?v:null,P=u||void 0,F;t[25]!==a||t[26]!==k||t[27]!==D||t[28]!==M||t[29]!==i||t[30]!==P?(F=(0,$.jsx)(`div`,{id:a,role:`option`,"aria-selected":i,"aria-disabled":P,tabIndex:-1,className:D,onPointerDown:k,children:M}),t[25]=a,t[26]=k,t[27]=D,t[28]=M,t[29]=i,t[30]=P,t[31]=F):F=t[31];let I=F;if(N!==null){let e;t[32]===I?e=t[33]:(e=(0,$.jsx)(Kt,{asChild:!0,children:I}),t[32]=I,t[33]=e);let n;t[34]===N?n=t[35]:(n=(0,$.jsx)(Jt,{children:(0,$.jsx)(Xt,{side:`right`,align:`start`,sideOffset:8,collisionPadding:12,className:`!z-[10000] max-h-[min(12rem,40vh)] max-w-sm overflow-y-auto rounded-md border border-edge bg-surface-panel px-2 py-1.5 text-left text-[11px] leading-snug text-fg shadow-lg select-text [max-width:min(20rem,90vw)]`,"data-slash-palette-tooltip":``,children:(0,$.jsx)(`span`,{className:`whitespace-pre-wrap break-words`,children:N})})}),t[34]=N,t[35]=n);let r;return t[36]!==e||t[37]!==n?(r=(0,$.jsxs)(qt,{delayDuration:0,children:[e,n]}),t[36]=e,t[37]=n,t[38]=r):r=t[38],r}return I}),r7=[],i7=null,a7=!1,o7=Promise.resolve(),s7=0;function c7(e){if(r7[0]?.text===e.text){e.id>0&&(r7[0]=e);return}r7=[e,...r7].slice(0,100)}function l7(e){let t=r7.findIndex(t=>t.id===0&&t.text===e.text);if(t>=0){r7[t]=e;return}c7(e)}function qge(){return r7.map(e=>e.text)}function u7(e=!1){if(a7&&!e)return Promise.resolve();if(i7)return i7;let t=s7,n=!1;return i7=J(`/api/composer-history`).then(e=>{s7===t?(r7=e.items.slice(0,100),a7=!0):n=!0}).catch(()=>{}).finally(()=>{i7=null,n&&o7.then(()=>u7(!0))}),i7}function Jge(e){let t=e.trim();t&&(s7+=1,c7({id:0,text:t,createdAt:Date.now()}),o7=o7.then(async()=>{l7((await J(`/api/composer-history`,{method:`POST`,body:JSON.stringify({text:t})})).item)}).catch(()=>{}))}function Yge(e){if(!e||typeof e!=`object`)return;let t=e;typeof t.id!=`number`||typeof t.text!=`string`||typeof t.createdAt!=`number`||(s7+=1,l7({id:t.id,text:t.text,createdAt:t.createdAt}))}function Xge(){s7+=1,r7=[]}function Zge(e){let t=(0,Q.c)(16),{sessionKey:n,editorRef:r,valueRef:i,resetEditor:a,onWireInput:o}=e,s=(0,Z.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{s.current=null},t[0]=c):c=t[0];let l=c,u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{l()},t[1]=u):u=t[1];let d;t[2]===n?d=t[3]:(d=[n,l],t[2]=n,t[3]=d),(0,Z.useEffect)(u,d);let f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{u7();let e=e=>{Yge(e.detail),l()},t=()=>{Xge(),l()},n=Qge;return window.addEventListener(`composer-history-appended`,e),window.addEventListener(`composer-history-cleared`,t),window.addEventListener(`gateway-realtime-connected`,n),()=>{window.removeEventListener(`composer-history-appended`,e),window.removeEventListener(`composer-history-cleared`,t),window.removeEventListener(`gateway-realtime-connected`,n)}},p=[l],t[4]=f,t[5]=p):(f=t[4],p=t[5]),(0,Z.useEffect)(f,p);let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>{Jge(e),l()},t[6]=m):m=t[6];let h=m,g;t[7]===o?g=t[8]:(g=(e,t)=>{s.current=null,o(e,t)},t[7]=o,t[8]=g);let _=g,v;t[9]!==r||t[10]!==a||t[11]!==i?(v=e=>{let t=qge();if(t.length===0)return!1;let n=s.current,o=r.current,c=o?D5(o):0,l=i.current;if(e===`up`){if(n==null){if(c!==0)return!1;s.current={index:0,stash:l};let e=t[0];return e?(a({nextText:e,caretOffset:e.length,focus:!0}),!0):!1}if(n.index>=t.length-1)return!0;n.index+=1;let e=t[n.index];return e?(a({nextText:e,caretOffset:e.length,focus:!0}),!0):!1}if(n==null)return!1;if(--n.index,n.index<0){let e=n.stash;return s.current=null,a({nextText:e,caretOffset:e.length,focus:!0}),!0}let u=t[n.index];return u?(a({nextText:u,caretOffset:u.length,focus:!0}),!0):!1},t[9]=r,t[10]=a,t[11]=i,t[12]=v):v=t[12];let y=v,b;return t[13]!==_||t[14]!==y?(b={onUserTextCommitted:h,onWireInputClearWalk:_,tryInputHistoryArrow:y},t[13]=_,t[14]=y,t[15]=b):b=t[15],b}function Qge(){u7(!0)}function d7(e){if(e.voiceActive)return e.cancelVoiceInput(),null;let t=e.getTextValue();return!t.trim()&&e.getAttachmentCount()===0?null:{text:t,attachments:e.wireAttachmentsPayload(),contextRefs:e.getContextRefs()}}function $ge(e){let{chat:t,runBusy:n,voiceActive:r,cancelVoiceInput:i,editingFollowUpId:a,getTextValue:o,getAttachmentCount:s,wireAttachmentsPayload:c,getContextRefs:l,getThinkingLevel:u,onSend:d,onAddPendingFollowUp:f,onSteeringInterrupt:p,onCommitEditFollowUp:m,onPendingFollowUpRemove:h,pendingFollowUpsCount:g,resetEditor:_,clearAttachments:v,clearContextRefs:y,clearEditFollowUpRef:b,onUserTextCommitted:x}=e,S={getTextValue:o,getAttachmentCount:s,wireAttachmentsPayload:c,getContextRefs:l},C=(0,Z.useRef)(!1);return{send:(0,Z.useCallback)(()=>{if(n)return;let e=d7({voiceActive:r,cancelVoiceInput:i,...S});e&&V5(d(e.text,e.attachments.length>0?e.attachments:void 0,u(),e.contextRefs.length>0?e.contextRefs:void 0),()=>{x?.(e.text),_(),v(),y()})},[n,r,i,d,u,x,_,v,y,o,s,c,l]),flushSteeringDraft:(0,Z.useCallback)(async()=>{if(!n&&g===0)return;let e=d7({voiceActive:r,cancelVoiceInput:i,...S});if(e){if(a){m(a,e.text,e.attachments.length>0?e.attachments:void 0,u(),e.contextRefs.length>0?e.contextRefs:void 0),x?.(e.text),b(),_(),v(),y();return}if(f&&!C.current){if(g>=10){fA(`warning`,t.followUpQueueMaxReached,{max:10});return}C.current=!0;try{await f(e.text,e.attachments.length>0?e.attachments:void 0,e.contextRefs.length>0?e.contextRefs:void 0),x?.(e.text),_(),v(),y()}catch(e){fA(`error`,t.followUpQueueSubmitFailed,{message:e instanceof Error?e.message:String(e)})}finally{C.current=!1}}}},[n,r,i,a,g,f,m,u,t.followUpQueueMaxReached,t.followUpQueueSubmitFailed,b,x,_,v,y,o,s,c,l]),interruptDraft:(0,Z.useCallback)(()=>{if(!n||!p)return;let e=d7({voiceActive:r,cancelVoiceInput:i,...S});e&&(p(e.text,e.attachments.length>0?e.attachments:void 0,e.contextRefs.length>0?e.contextRefs:void 0),x?.(e.text),a&&(b(),h(a)),_(),v(),y())},[n,r,i,a,h,p,x,b,_,v,y,o,s,c,l])}}function f7(e){let{chat:t}=e,[n,r]=(0,Z.useState)([]),[i,a]=(0,Z.useState)(!1),o=(0,Z.useRef)(null),c=(0,Z.useRef)(n);c.current=n;let l=(0,Z.useCallback)(()=>{r([])},[]),u=(0,Z.useCallback)(e=>{r(t=>t.filter((t,n)=>n!==e))},[]),d=(0,Z.useCallback)(()=>c.current.map(e=>({type:e.type===`voice`?`voice`:e.type||`file`,mimeType:e.mimeType,data:e.content,name:e.name,size:e.size,...e.uri?{uri:e.uri}:{},...typeof e.durationSeconds==`number`&&Number.isFinite(e.durationSeconds)&&e.durationSeconds>0?{durationSeconds:e.durationSeconds}:{}})),[]),f=(0,Z.useCallback)(async(e,n)=>{if(e.length===0)return;let i=10-c.current.length;if(i<=0){fA(`warning`,t.maxAttachmentsReached,{max:10});return}let a=e.slice(0,i);e.length>a.length&&fA(`warning`,t.maxAttachmentsTruncated,{max:10,dropped:e.length-a.length});let{loadAttachment:o}=await s(async()=>{let{loadAttachment:e}=await import(`./attachment-load-BG0BliqV.js`);return{loadAttachment:e}},__vite__mapDeps([126,26])),l=(await Promise.all(a.map(async e=>{if(e.size>33554432)return fA(`warning`,t.attachmentFileTooLarge,{name:e.name,maxSize:BL(VR)}),null;try{return await o(e,e.name)}catch{return fA(`error`,t.attachmentLoadFailed,{name:e.name}),null}}))).filter(e=>e!==null).map(e=>n?{...e,type:n}:e);r(e=>[...e,...l])},[t.attachmentFileTooLarge,t.attachmentLoadFailed,t.maxAttachmentsReached,t.maxAttachmentsTruncated]);return{attachments:n,setAttachments:r,attachmentsRef:c,isDragging:i,setIsDragging:a,fileInputRef:o,processFiles:(0,Z.useCallback)(e=>f(e),[f]),processPastedText:(0,Z.useCallback)(e=>f([new File([e.text],e.name,{type:e.mimeType})],`pasted_text`),[f]),removeAttachment:u,clearAttachments:l,wireAttachmentsPayload:d}}function e_e(e){let t=(0,Q.c)(6),{active:n,anchors:r,ignoreSelector:i,onDismiss:a}=e,o,s;t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==a?(o=()=>{if(!n)return;let e=e=>{let t=e.target;if(t instanceof Node){for(let e of r){let n=e.current;if(n&&n.contains(t))return}i&&t instanceof Element&&t.closest(i)||a()}};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},s=[n,r,i,a],t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s):(o=t[4],s=t[5]),(0,Z.useEffect)(o,s)}var p7=20,t_e=`xopc.atMention.recent:`;function m7(e){return`${t_e}${e.trim()}`}function h7(e){let t=e?.trim();if(!t||typeof localStorage>`u`)return[];try{let e=localStorage.getItem(m7(t));if(!e)return[];let n=JSON.parse(e);return Array.isArray(n)?n.filter(e=>typeof e==`string`&&e.length>0).slice(0,p7):[]}catch{return[]}}function n_e(e,t){let n=e?.trim(),r=t.trim();if(!(!n||!r||typeof localStorage>`u`))try{let e=[r,...h7(n).filter(e=>e!==r)].slice(0,p7);localStorage.setItem(m7(n),JSON.stringify(e))}catch{}}var r_e=150,i_e=10,a_e=5;function g7(e,t){let n=e.length,r=Math.min(Math.max(t,0),n);if(r<1)return null;let i=e.slice(0,r),a=i.match(/@([^\s]*)$/);if(!a||a.index===void 0)return null;let o=a.index;if(o>0&&/[a-zA-Z0-9_]/.test(e[o-1]))return null;let s=i.slice(o);return/^@(file|doc|url|symbol):/.test(s)?null:{start:o,end:r,query:a[1]??``}}function o_e(e){let t=e.trim();return t.length>0&&t.endsWith(`/`)&&!/^https?:\/\//i.test(t)}function _7(e){return e.replace(/\/+$/,``).trim()}function s_e(e){let t=e.replace(/\/+$/,``);if(!t)return``;let n=t.lastIndexOf(`/`);return n<=0?``:t.slice(0,n)}function c_e(e,t){return t===0?0:Math.min(e,t-1)}function l_e(e,t,n){let[r,i]=(0,Z.useState)(0),a=ct(e=>e.language),o=(0,Z.useMemo)(()=>n.precomputedAtRange===void 0?n.isComposing||n.slashPaletteOpen?null:g7(e,t):n.isComposing||n.slashPaletteOpen?null:n.precomputedAtRange,[e,t,n.slashPaletteOpen,n.isComposing,n.precomputedAtRange]),s=o!==null,[c]=WH(s?o?.query??``:``,r_e),l=s?c:``,u=n.sessionKey?.trim()??``,d=SN(async()=>{if(!u)return[];if(o_e(l)){let e=_7(l),t=(await iue(e,{sessionKey:u})).map(e=>({kind:`file`,name:e.name,relativePath:e.path,isDirectory:e.isDirectory}));return e?[{kind:`file`,name:`..`,relativePath:``,isDirectory:!0,isBrowseUp:!0},...t]:t}let[e,t]=await Promise.all([A3(l,{sessionKey:u,limit:i_e}),L$({...l.trim()?{search:l.trim()}:{},limit:a_e,sortBy:`updatedAt`,sortOrder:`desc`}).catch(()=>({items:[],total:0}))]),r=h7(u),i=[],o=new Set(e.map(e=>e.relativePath));for(let e of r){if(o.has(e))continue;o.add(e);let t=e.replace(/\/$/,``).split(`/`).pop()??e;if(i.push({kind:`file`,name:t,relativePath:e,isDirectory:e.endsWith(`/`),isRecent:!0}),i.length>=5)break}let s=n.selectedNoteIds??new Set;return[...t.items.filter(e=>e.status!==`trashed`&&!s.has(e.id)).map(e=>({kind:`note`,name:e.title?.trim()||e.snippet?.trim()||rt(a).chat.commandPalette.untitledNote,description:e.snippet?.trim()||``,noteRef:{sourceId:e.id,expectedVersion:String(e.updatedAt)}})),...i,...e]},[l,a,[...n.selectedNoteIds??[]].sort().join(`\0`),u],{enabled:s&&!!u,initial:[],errorData:[]}),f=s?d.data:[],p=s?d.loading:!1,m=s&&d.error!=null?d.error instanceof Error?d.error.message:String(d.error):null,h=o?.start,g=o?.end,_=`${h??``}:${g??``}:${l}`,v=(0,Z.useRef)(_);v.current!==_&&(v.current=_,r!==0&&i(0));let y=c_e(r,f.length),b=(0,Z.useCallback)(e=>{f.length!==0&&i(t=>e===`down`?(t+1)%f.length:(t-1+f.length)%f.length)},[f.length]);return{open:s,atRange:o,items:f,selectedIndex:y,query:o?.query??``,loading:p,error:m,onNavigate:b,setSelectedIndex:i}}function u_e(e){return e.kind===`note`?{kind:`note`,sourceId:e.noteRef.sourceId,expectedVersion:e.noteRef.expectedVersion,title:e.name}:null}function d_e(e){let{sessionKey:t,editorValue:n,editorCursor:r,isComposing:i,runBusy:a,thinkingLevel:o,editorRef:s,valueRef:c,resetEditor:l,clearAttachments:u,onSend:d,onUserTextCommitted:f,onChatAgentChange:p,currentAgentId:m,contextRefs:h,onAddContextRef:g,onUnavailableSkill:_,onReviewLauncher:v,onAddPendingFollowUp:y,onAbort:b,pendingFollowUpsCount:x,maxPendingFollowUps:S,clearContextRefs:C,commandPalettePanelRef:w}=e,T=(0,Z.useMemo)(()=>g7(n,r),[n,r]),E=yge(n,r,{suppress:T!=null,isComposing:i,currentAgentId:m,sessionKey:t}),D=l_e(n,r,{sessionKey:t,slashPaletteOpen:E.open,isComposing:i,precomputedAtRange:T,selectedNoteIds:new Set(h.map(e=>e.sourceId))}),O=E.open||D.open||T!=null,k=(0,Z.useCallback)(()=>({slashRange:E.slashRange,runBusy:a,pendingFollowUpsCount:x,maxPendingFollowUps:S,thinkingLevel:o,editor:{valueRef:c,resetEditor:l},attachments:{clearAttachments:u},contextRefs:{current:h,clear:C},callbacks:{onSend:d,onUserTextCommitted:f,onChatAgentChange:p,onAddPendingFollowUp:y,onAbort:b,onUnavailableSkill:_,onReviewLauncher:v}}),[E.slashRange,a,x,S,o,c,l,u,h,C,d,f,p,y,b,_,v]),A=(0,Z.useCallback)(e=>{cge(e,k())},[k]),j=(0,Z.useCallback)((e,n)=>{let r=D.atRange;if(!r)return;let i=u_e(e);if(i){let e=n?.stayOpen?`@`:``;l({nextText:U5(c.current,r.start,r.end,e),caretOffset:r.start+e.length,focus:!0}),g(i);return}if(e.kind!==`file`)return;if(e.isBrowseUp){let e=s_e(_7(r.query)),t=`@${e?`${e}/`:``}`;l({nextText:U5(c.current,r.start,r.end,t),caretOffset:r.start+t.length,focus:!0});return}let a=e.isDirectory&&!e.relativePath.endsWith(`/`)?`${e.relativePath}/`:e.relativePath,o=`@file:${HY(a)}`;t&&!e.isDirectory&&n_e(t,a.replace(/\/$/,``));let s=o+(n?.stayOpen?` @`:` `);l({nextText:U5(c.current,r.start,r.end,s),caretOffset:r.start+s.length,focus:!0})},[D.atRange,g,t,c,l]),M=(0,Z.useRef)(E.slashRange);M.current=E.slashRange;let N=c,P=(0,Z.useCallback)(()=>{let e=M.current;if(!e)return;let t=N.current;l({nextText:t.slice(0,e.start)+t.slice(e.end),caretOffset:e.start})},[l,N]),F=(0,Z.useMemo)(()=>[s,w],[s,w]);e_e({active:E.open,anchors:F,ignoreSelector:`[data-slash-palette-tooltip]`,onDismiss:P});let I=(0,Z.useRef)(D);I.current=D;let L=(0,Z.useRef)(E);L.current=E;let R=(0,Z.useRef)(i);R.current=i;let z=(0,Z.useRef)(A);z.current=A;let B=(0,Z.useRef)(j);B.current=j;let V=(0,Z.useRef)({runBusy:a,pendingFollowUpsCount:x,maxPendingFollowUps:S});V.current={runBusy:a,pendingFollowUpsCount:x,maxPendingFollowUps:S};let H=(0,Z.useMemo)(()=>({name:`at-mention`,isActive:()=>{let e=I.current;return e.open&&e.atRange!=null&&!R.current},handleKey:e=>{let t=I.current;if(!t.atRange)return!1;if(e.key===`Escape`){e.preventDefault();let n=t.atRange,r=N.current;return l({nextText:U5(r,n.start,n.end,``),caretOffset:n.start,focus:!0}),!0}if(t.items.length===0)return!1;if(e.key===`ArrowDown`)return e.preventDefault(),t.onNavigate(`down`),!0;if(e.key===`ArrowUp`)return e.preventDefault(),t.onNavigate(`up`),!0;if(e.key===`Enter`||e.key===`Tab`){e.preventDefault();let n=t.items[t.selectedIndex];return n&&B.current(n,{stayOpen:e.shiftKey}),!0}return!1}}),[l,N]),ee=(0,Z.useMemo)(()=>({name:`slash-palette`,isActive:()=>L.current.open&&!R.current,handleKey:e=>{let t=L.current;if(t.items.length>0){if(e.key===`ArrowDown`)return e.preventDefault(),t.onNavigate(`down`),!0;if(e.key===`ArrowUp`)return e.preventDefault(),t.onNavigate(`up`),!0;if((e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey){e.preventDefault();let n=t.items[t.selectedIndex];return!n||J5(n,V.current)||z.current(n),!0}}if(e.key===`Escape`){e.preventDefault();let n=t.slashRange;if(n){let e=N.current;l({nextText:U5(e,n.start,n.end,``),caretOffset:n.start,focus:!0})}return!0}return!1}}),[l,N]);return{palette:E,atPicker:D,shouldSyncSelection:O,adapters:(0,Z.useMemo)(()=>[H,ee],[H,ee]),applyPalette:A,applyAtMention:j}}function v7(e){return/^[A-Za-z0-9._/@:-]+$/.test(e)?e:JSON.stringify(e)}function y7(e,t){let n=t?.trim();return n?`${e} --instructions ${v7(n)}`:e}function f_e(e){if(e.preset===`base`){if(!e.baseBranch?.trim())throw Error(`Missing base branch.`);return y7(`/review --base ${v7(e.baseBranch.trim())}`,e.instructions)}if(e.preset===`commit`){if(!e.commitSha?.trim())throw Error(`Missing commit SHA.`);return y7(`/review --commit ${v7(e.commitSha.trim())}`,e.instructions)}return e.preset,y7(`/review --uncommitted`,e.instructions)}async function p_e(e){let t=await ot(Y(`/api/review/context?${new URLSearchParams({sessionKey:e}).toString()}`)),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(st(t.status,t.statusText,n.error?.message));return n.payload}function m_e(e,t){let n=e?.status;if(!n)return``;if(n.isClean)return t.statusClean;let r=[];return n.changedFiles>0&&r.push(t.statusChanged.replace(`{{count}}`,String(n.changedFiles))),n.untrackedFiles>0&&r.push(t.statusUntracked.replace(`{{count}}`,String(n.untrackedFiles))),r.join(`, `)}function h_e(e,t){let n=t.trim().toLowerCase(),r=[...(e?.branches??[]).filter(e=>!e.current)].sort((t,n)=>t.name===e?.defaultBaseBranch&&n.name!==e.defaultBaseBranch?-1:n.name===e?.defaultBaseBranch&&t.name!==e.defaultBaseBranch?1:t.name.localeCompare(n.name));return n?r.filter(e=>e.name.toLowerCase().includes(n)):r}function g_e(e,t){let n=t.trim().toLowerCase(),r=e?.commits??[];return n?r.filter(e=>`${e.sha} ${e.shortSha} ${e.subject}`.toLowerCase().includes(n)):r}function b7(e){let t=(0,Q.c)(15),{icon:n,title:r,description:i,disabled:a,onClick:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=X(`flex min-h-16 w-full items-center gap-3 rounded-lg border border-edge bg-surface-panel px-3 py-2.5 text-left`,`hover:border-accent/45 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,`disabled:cursor-not-allowed disabled:opacity-50`,gk.transition),t[0]=s):s=t[0];let c;t[1]===n?c=t[2]:(c=(0,$.jsx)(`span`,{className:`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover text-fg-muted`,children:n}),t[1]=n,t[2]=c);let l;t[3]===r?l=t[4]:(l=(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[3]=r,t[4]=l);let u;t[5]===i?u=t[6]:(u=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:i}),t[5]=i,t[6]=u);let d;t[7]!==l||t[8]!==u?(d=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l,u]}),t[7]=l,t[8]=u,t[9]=d):d=t[9];let f;return t[10]!==a||t[11]!==o||t[12]!==c||t[13]!==d?(f=(0,$.jsxs)(`button`,{type:`button`,disabled:a,className:s,onClick:o,children:[c,d]}),t[10]=a,t[11]=o,t[12]=c,t[13]=d,t[14]=f):f=t[14],f}function __e(e){let t=(0,Q.c)(89),{open:n,sessionKey:r,disabled:i,chat:a,onClose:o,onSendCommand:s}=e,c=a.reviewLauncher,[l,u]=(0,Z.useState)(null),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(`presets`),[_,v]=(0,Z.useState)(``),[y,b]=(0,Z.useState)(``),x;t[0]!==c.noSession||t[1]!==r?(x=()=>{if(!r){u(null),m(c.noSession);return}f(!0),m(null),p_e(r).then(e=>u(e)).catch(e=>{u(null),m(e instanceof Error?e.message:String(e))}).finally(()=>f(!1))},t[0]=c.noSession,t[1]=r,t[2]=x):x=t[2];let S=x,C,w;t[3]!==S||t[4]!==n?(C=()=>{n&&(g(`presets`),v(``),b(``),S())},w=[S,n],t[3]=S,t[4]=n,t[5]=C,t[6]=w):(C=t[5],w=t[6]),(0,Z.useEffect)(C,w);let T;t[7]!==l||t[8]!==_?(T=h_e(l,_),t[7]=l,t[8]=_,t[9]=T):T=t[9];let E=T,D;t[10]!==l||t[11]!==_?(D=g_e(l,_),t[10]=l,t[11]=_,t[12]=D):D=t[12];let O=D,k;t[13]!==l||t[14]!==c?(k=m_e(l,c),t[13]=l,t[14]=c,t[15]=k):k=t[15];let A=k,j;t[16]!==y||t[17]!==o||t[18]!==s?(j=(e,t)=>{s(f_e({preset:e,baseBranch:t?.branch,commitSha:t?.commit,instructions:y})),o()},t[16]=y,t[17]=o,t[18]=s,t[19]=j):j=t[19];let M=j,N=h===`base`?c.baseTitle:h===`commit`?c.commitTitle:h===`custom`?c.customTitle:c.title,P;t[20]===o?P=t[21]:(P=e=>!e&&o(),t[20]=o,t[21]=P);let F;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[120] bg-scrim backdrop-blur-[1px]`}),t[22]=F):F=t[22];let I;t[23]!==c.back||t[24]!==h?(I=h===`presets`?null:(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":c.back,onClick:()=>{g(`presets`),v(``)},children:(0,$.jsx)(xr,{className:`size-4`})}),t[23]=c.back,t[24]=h,t[25]=I):I=t[25];let L;t[26]===N?L=t[27]:(L=(0,$.jsx)(te,{className:`truncate text-sm font-semibold text-fg`,children:N}),t[26]=N,t[27]=L);let z=l?.cwd??c.description,V;t[28]===z?V=t[29]:(V=(0,$.jsx)(B,{className:`truncate text-xs text-fg-muted`,children:z}),t[28]=z,t[29]=V);let U;t[30]!==L||t[31]!==V?(U=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[L,V]}),t[30]=L,t[31]=V,t[32]=U):U=t[32];let W;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(Ne,{className:`size-4`}),t[33]=W):W=t[33];let re;t[34]!==c.close||t[35]!==o?(re=(0,$.jsx)(`button`,{type:`button`,className:`inline-flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":c.close,onClick:o,children:W}),t[34]=c.close,t[35]=o,t[36]=re):re=t[36];let ie;t[37]!==I||t[38]!==U||t[39]!==re?(ie=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-4 py-3`,children:[I,U,re]}),t[37]=I,t[38]=U,t[39]=re,t[40]=ie):ie=t[40];let ae;t[41]!==E||t[42]!==O||t[43]!==l||t[44]!==i||t[45]!==p||t[46]!==y||t[47]!==S||t[48]!==d||t[49]!==c.customDescription||t[50]!==c.customPlaceholder||t[51]!==c.defaultBadge||t[52]!==c.errorTitle||t[53]!==c.loading||t[54]!==c.localBadge||t[55]!==c.noBranches||t[56]!==c.noCommits||t[57]!==c.presetBase||t[58]!==c.presetBaseDescription||t[59]!==c.presetBaseDescriptionNoDefault||t[60]!==c.presetCommit||t[61]!==c.presetCommitDescription||t[62]!==c.presetCustom||t[63]!==c.presetCustomDescription||t[64]!==c.presetUncommitted||t[65]!==c.remoteBadge||t[66]!==c.retry||t[67]!==c.searchBranches||t[68]!==c.searchCommits||t[69]!==_||t[70]!==M||t[71]!==A||t[72]!==h?(ae=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:d?(0,$.jsxs)(`div`,{className:`flex h-full min-h-56 items-center justify-center text-sm text-fg-muted`,children:[(0,$.jsx)(Fv,{className:`mr-2 size-4 animate-spin`}),c.loading]}):p?(0,$.jsxs)(`div`,{className:`rounded-lg border border-danger/30 bg-danger/5 p-4`,children:[(0,$.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:c.errorTitle}),(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:p}),(0,$.jsxs)(vt,{type:`button`,className:`mt-4 h-9 rounded-lg`,variant:`secondary`,onClick:S,children:[(0,$.jsx)(Fv,{className:`size-4`}),c.retry]})]}):h===`presets`?(0,$.jsxs)(`div`,{className:`grid gap-2`,children:[(0,$.jsx)(b7,{icon:(0,$.jsx)(fm,{className:`size-4`}),title:c.presetBase,description:l?.defaultBaseBranch?c.presetBaseDescription.replace(`{{branch}}`,l.defaultBaseBranch):c.presetBaseDescriptionNoDefault,disabled:i,onClick:()=>g(`base`)}),(0,$.jsx)(b7,{icon:(0,$.jsx)(h_,{className:`size-4`}),title:c.presetUncommitted,description:A,disabled:i,onClick:()=>M(`uncommitted`)}),(0,$.jsx)(b7,{icon:(0,$.jsx)(pm,{className:`size-4`}),title:c.presetCommit,description:c.presetCommitDescription.replace(`{{count}}`,String(l?.commits.length??0)),disabled:i,onClick:()=>g(`commit`)}),(0,$.jsx)(b7,{icon:(0,$.jsx)(h_,{className:`size-4`}),title:c.presetCustom,description:c.presetCustomDescription,disabled:i,onClick:()=>g(`custom`)})]}):h===`base`?(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(x7,{value:_,placeholder:c.searchBranches,onChange:v}),(0,$.jsx)(`div`,{className:`grid gap-1`,children:E.length===0?(0,$.jsx)(`div`,{className:`rounded-lg border border-edge-subtle px-3 py-6 text-center text-sm text-fg-muted`,children:c.noBranches}):E.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center justify-between gap-3 rounded-lg px-3 py-2 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,disabled:i,onClick:()=>M(`base`,{branch:e.name}),children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:e.name===l?.defaultBaseBranch?c.defaultBadge:e.remote?c.remoteBadge:c.localBadge})]},e.name))})]}):h===`commit`?(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(x7,{value:_,placeholder:c.searchCommits,onChange:v}),(0,$.jsx)(`div`,{className:`grid gap-1`,children:O.length===0?(0,$.jsx)(`div`,{className:`rounded-lg border border-edge-subtle px-3 py-6 text-center text-sm text-fg-muted`,children:c.noCommits}):O.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex items-center gap-3 rounded-lg px-3 py-2 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,disabled:i,onClick:()=>M(`commit`,{commit:e.sha}),children:[(0,$.jsx)(`span`,{className:`font-mono text-xs text-fg-muted`,children:e.shortSha}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:e.subject}),e.date?(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:e.date.slice(0,10)}):null]},e.sha))})]}):(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(`textarea`,{className:`h-40 resize-none rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg outline-none placeholder:text-fg-disabled focus:border-accent focus:ring-2 focus:ring-accent/25`,value:y,placeholder:c.customPlaceholder,onChange:e=>b(e.target.value)}),(0,$.jsx)(`div`,{className:`text-xs text-fg-muted`,children:c.customDescription})]})}),t[41]=E,t[42]=O,t[43]=l,t[44]=i,t[45]=p,t[46]=y,t[47]=S,t[48]=d,t[49]=c.customDescription,t[50]=c.customPlaceholder,t[51]=c.defaultBadge,t[52]=c.errorTitle,t[53]=c.loading,t[54]=c.localBadge,t[55]=c.noBranches,t[56]=c.noCommits,t[57]=c.presetBase,t[58]=c.presetBaseDescription,t[59]=c.presetBaseDescriptionNoDefault,t[60]=c.presetCommit,t[61]=c.presetCommitDescription,t[62]=c.presetCustom,t[63]=c.presetCustomDescription,t[64]=c.presetUncommitted,t[65]=c.remoteBadge,t[66]=c.retry,t[67]=c.searchBranches,t[68]=c.searchCommits,t[69]=_,t[70]=M,t[71]=A,t[72]=h,t[73]=ae):ae=t[73];let oe;t[74]!==i||t[75]!==c.cancel||t[76]!==c.runReview||t[77]!==o||t[78]!==M||t[79]!==h?(oe=h===`custom`?(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-4 py-3`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-9 rounded-lg`,onClick:o,children:c.cancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,className:`h-9 rounded-lg`,disabled:i,onClick:()=>M(`custom`),children:c.runReview})]}):null,t[74]=i,t[75]=c.cancel,t[76]=c.runReview,t[77]=o,t[78]=M,t[79]=h,t[80]=oe):oe=t[80];let se;t[81]!==ie||t[82]!==ae||t[83]!==oe?(se=(0,$.jsxs)(H,{children:[F,(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[121] flex h-[min(86vh,34rem)] w-[min(100vw-2rem,40rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[ie,ae,oe]})]}),t[81]=ie,t[82]=ae,t[83]=oe,t[84]=se):se=t[84];let ce;return t[85]!==n||t[86]!==se||t[87]!==P?(ce=(0,$.jsx)(ne,{open:n,onOpenChange:P,children:se}),t[85]=n,t[86]=se,t[87]=P,t[88]=ce):ce=t[88],ce}function x7(e){let t=(0,Q.c)(7),{value:n,placeholder:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(Hv,{className:`size-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===i?o=t[2]:(o=e=>i(e.target.value),t[1]=i,t[2]=o);let s;return t[3]!==r||t[4]!==o||t[5]!==n?(s=(0,$.jsxs)(`label`,{className:`flex h-9 items-center gap-2 rounded-lg border border-edge bg-surface-base px-3 text-sm text-fg focus-within:border-accent focus-within:ring-2 focus-within:ring-accent/25`,children:[a,(0,$.jsx)(`input`,{className:`min-w-0 flex-1 bg-transparent outline-none placeholder:text-fg-disabled`,value:n,placeholder:r,onChange:o})]}),t[3]=r,t[4]=o,t[5]=n,t[6]=s):s=t[6],s}function v_e(e){let t=e.mimeType||`application/octet-stream`,n=e.type===`voice`||t.startsWith(`audio/`)?`voice`:e.type===`pasted_text`?`pasted_text`:t.startsWith(`image/`)?`image`:`document`;return{id:e.id,type:n,name:e.name||`file`,mimeType:t,size:e.size??0,content:e.data??``,data:e.data,uri:e.uri,durationSeconds:e.durationSeconds}}var y_e=(0,Z.memo)(function({disabled:e,sending:t,streaming:n,sessionKey:r,composerContext:i,contextRefs:a,setContextRefs:o,thinkingLevel:s,modelSupportsThinking:c,onThinkingChange:l,onSend:u,onAbort:d,onAddPendingFollowUp:f,onSteeringInterrupt:p,pendingFollowUps:m,editingFollowUpId:h,onBeginEditFollowUp:_,onCancelEditFollowUp:v,onCommitEditFollowUp:y,onPendingFollowUpRemove:b,onPendingFollowUpMove:x,onPendingFollowUpReorder:S,onPendingFollowUpSteer:C,steeringFollowUpId:w,welcomeDraftSeed:T,welcomeSuggestion:E,onAcceptWelcomeSuggestion:D,sessionModel:O,showModelSelector:k,onModelChange:A,modelDisabled:j,onChatAgentChange:M,currentAgentId:N,voiceAgentName:P,voiceTaskId:F,prepareVoiceSession:I,editingUserTurnId:L,onCancelUserMessageEdit:R}){let z=ij(),B=(0,Z.useRef)(!1);e||=z.sessionKey===r&&z.active;let V=rt(ct(e=>e.language)),[H,ee]=g();(0,Z.useEffect)(()=>{C3()},[]);let te=(0,Z.useRef)(!1),ne=(0,Z.useRef)(null),U=(0,Z.useRef)(null),W=(0,Z.useRef)(null),re=(0,Z.useRef)(!1),[ie,ae]=(0,Z.useState)(!1),[oe,se]=(0,Z.useState)(null),[ce,le]=(0,Z.useState)(null),[ue,de]=(0,Z.useState)(!1),fe=(0,Z.useRef)(u),pe=(0,Z.useRef)(s);fe.current=u,pe.current=s,(0,Z.useEffect)(()=>{if(!r||ce===r){se(null);return}let e=!1;return $le(r).then(t=>{e||se(t.required&&!t.trusted&&t.decision===null?t:null)}).catch(()=>{e||se(null)}),()=>{e=!0}},[r,ce]);let me=(0,Z.useCallback)(()=>{!r||ue||(de(!0),eue(r,!0).then(()=>{se(null)}).catch(e=>{fA(`error`,V.chat.commandPalette.workspaceTrustFailed,{error:e instanceof Error?e.message:String(e)})}).finally(()=>de(!1)))},[V.chat.commandPalette,r,ue]),G=f7({chat:V.chat}),he=(0,Z.useCallback)(e=>{if(o(e?.contextRefs??[]),e?.attachments){G.setAttachments(e.attachments.map(v_e));return}G.clearAttachments()},[G.clearAttachments,G.setAttachments,o]),ge=(0,Z.useCallback)(e=>{o(t=>t.some(t=>t.sourceId===e.sourceId)?t:t.length>=5?(fA(`warning`,V.chat.commandPalette.contextLimitReached,{max:5}),t):[...t,e])},[V.chat.commandPalette.contextLimitReached,o]),_e=(0,Z.useCallback)(e=>{let t=e.availability?.status===`agent-denied`?V.chat.commandPalette.skillAgentDeniedReason:V.chat.commandPalette.skillDisabledReason,n=z5(V.chat.commandPalette.skillUnavailableMessage,{name:e.name,agent:N||`main`,reason:t});if(e.availability?.status===`agent-denied`&&window.confirm(`${n}\n\n${V.chat.commandPalette.skillAddToAllowlistConfirm}`)){Qle(N,e.name,r).catch(e=>{window.alert(e instanceof Error?e.message:String(e))});return}window.alert(n)},[N,V.chat.commandPalette,r]),ve=She({disabled:e,autoFocusKey:r,welcomeDraftSeed:T,onExternalTextReplace:he,shouldSyncSelectionRef:te}),ye=H.get(`attachmentHandoff`);(0,Z.useEffect)(()=>{if(!ye)return;let e=CW(ye);ee(e=>{let t=new URLSearchParams(e);return t.delete(`attachmentHandoff`),t},{replace:!0}),e&&G.processFiles([e]).then(()=>ve.editorRef.current?.focus())},[ye,G.processFiles,ve.editorRef,r,ee]);let{onUserTextCommitted:be,onWireInputClearWalk:xe,tryInputHistoryArrow:Se}=Zge({sessionKey:r,editorRef:ve.editorRef,valueRef:ve.valueRef,resetEditor:ve.resetEditor,onWireInput:ve.onWireInput}),Ce=t||n;re.current=Ce;let we=(0,Z.useCallback)(()=>{re.current||ae(!0)},[]),Te=(0,Z.useCallback)(e=>{V5(fe.current(e,void 0,pe.current,a),()=>{be?.(e),o([])})},[a,be,o]),Ee=d_e({sessionKey:r,editorValue:ve.value,editorCursor:ve.cursor,isComposing:ve.isComposing,runBusy:Ce,thinkingLevel:s,editorRef:ve.editorRef,valueRef:ve.valueRef,resetEditor:ve.resetEditor,clearAttachments:G.clearAttachments,onSend:u,onUserTextCommitted:be,onChatAgentChange:M,currentAgentId:N,contextRefs:a,onAddContextRef:ge,onUnavailableSkill:_e,onReviewLauncher:we,onAddPendingFollowUp:f,onAbort:d,pendingFollowUpsCount:m.length,maxPendingFollowUps:10,clearContextRefs:()=>o([]),commandPalettePanelRef:ne});te.current=Ee.shouldSyncSelection;let De=nj({disabled:e||z.active,chat:V.chat,onTranscript:e=>{let t=ve.valueRef.current,n=U3(t,e);ve.resetEditor({nextText:n,caretOffset:n.length,focus:!0})}}),{phase:Oe,voiceActive:ke,startVoiceInput:Ae,cancelVoiceInput:je,confirmVoiceInput:Me}=De;(0,Z.useEffect)(()=>{let t=t=>{if(!Dhe(t,{disabled:e,editorHidden:ke&&Oe!==`error`}))return;let n=k5(t.clipboardData);n&&(t.preventDefault(),ve.focusForExternalPaste(),A5(n,{processFiles:G.processFiles,processPastedText:G.processPastedText,insertText:e=>document.execCommand(`insertText`,!1,e),onUnsupportedFiles:()=>fA(`warning`,V.chat.clipboardFileTypeUnsupported)}))};return window.addEventListener(`paste`,t),()=>window.removeEventListener(`paste`,t)},[G.processFiles,G.processPastedText,e,ve.focusForExternalPaste,V.chat.clipboardFileTypeUnsupported,ke,Oe]),(0,Z.useEffect)(()=>{let t=t=>{let n=t?.detail?.target;if(!(n&&n!==`chat`)&&(t?.preventDefault(),!e)){if(Oe===`recording`){Me();return}(Oe===`idle`||Oe===`error`)&&(ve.editorRef.current?.focus(),Ae())}},n=e=>{let t=e.detail?.target;t&&t!==`chat`||!ke||(e.preventDefault(),je(),ve.editorRef.current?.focus())};window.addEventListener(K3,t),window.addEventListener(q3,n);let r=window.setTimeout(()=>{if(Sue()){if(e){Z3();return}t()}},0);return()=>{window.clearTimeout(r),window.removeEventListener(K3,t),window.removeEventListener(q3,n)}},[je,Me,e,ve.editorRef,Ae,ke,Oe]);let Ne=(0,Z.useCallback)(()=>{W.current=null},[]),Pe=$ge({chat:V.chat,runBusy:Ce,voiceActive:De.voiceActive,cancelVoiceInput:De.cancelVoiceInput,editingFollowUpId:h,getTextValue:()=>ve.valueRef.current,getAttachmentCount:()=>G.attachmentsRef.current.length,wireAttachmentsPayload:G.wireAttachmentsPayload,getContextRefs:()=>a,getThinkingLevel:()=>pe.current,onSend:u,onAddPendingFollowUp:f,onSteeringInterrupt:p,onCommitEditFollowUp:y,onPendingFollowUpRemove:b,pendingFollowUpsCount:m.length,resetEditor:()=>{ve.resetEditor()},clearAttachments:G.clearAttachments,clearContextRefs:()=>o([]),clearEditFollowUpRef:Ne,onUserTextCommitted:be});(0,Z.useLayoutEffect)(()=>{if(!h){W.current&&=(G.clearAttachments(),o([]),ve.resetEditor(),null);return}if(h===W.current)return;let e=m.find(e=>e.id===h);if(!e){v();return}W.current=h,e.thinkingLevel!=null&&c&&l(e.thinkingLevel),G.setAttachments($he(e.attachments??[])),o(e.contextRefs??[]),ve.resetEditor({nextText:e.text,focus:!0})},[G.clearAttachments,G.setAttachments,ve.resetEditor,h,v,l,m,c,o]);let Fe=(0,Z.useCallback)(e=>{_(e)},[_]),Ie=(0,Z.useRef)({});Ie.current={adapters:Ee.adapters,send:Pe.send,runBusy:Ce,pendingFollowUpsCount:m.length,flushSteeringDraft:Pe.flushSteeringDraft,interruptDraft:Pe.interruptDraft,editingFollowUpId:h,onCancelEditFollowUp:v,attachmentsLen:G.attachments.length,isComposing:ve.isComposing,valueRef:ve.valueRef,adjustHeight:ve.adjustHeight,editorRef:ve.editorRef,tryInputHistoryArrow:Se,acceptEmptySuggestion:!Ce&&E&&D?()=>(D(E),!0):void 0};let Le=Ce,Re=!!ve.value.trim()||G.attachments.length>0,ze=Re&&!!p,Be=!Le&&!h&&E?`${E.prompt} · ${V.chat.welcomeSpotlight.acceptSuggestionHint}`:null;return(0,$.jsxs)(`div`,{className:`relative flex min-h-0 w-full flex-col`,children:[r?(0,$.jsx)(Kme,{sessionKey:r},r):null,i?(0,$.jsx)(zhe,{...i,sessionKey:r,disabled:(i.disabled??e)||t||n}):null,(0,$.jsxs)(`div`,{className:X(`relative flex min-h-0 w-full flex-col overflow-hidden rounded-2xl bg-surface-panel shadow-surface ring-1 ring-inset ring-edge dark:bg-surface-panel/60 dark:shadow-none`,G.isDragging&&`ring-2 ring-accent ring-inset`),onDragOver:e=>{(e.dataTransfer?.types.includes(`Files`)||RU(e.dataTransfer))&&(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,G.setIsDragging(!0))},onDragLeave:e=>{e.relatedTarget===null&&G.setIsDragging(!1)},onDrop:async e=>{e.preventDefault(),G.setIsDragging(!1);let t=e.dataTransfer?.files;if(t?.length){await G.processFiles(Array.from(t));return}let n=zU(e.dataTransfer);if(n)try{let e=await yH(n.path,{sessionKey:n.sessionKey,agentId:n.agentId,projectId:n.projectId}),t=VL(n.name),r=e.type&&e.type!==`application/octet-stream`?e.type:t;await G.processFiles([new File([e],n.name,{type:r})])}catch{fA(`error`,V.chat.attachmentLoadFailed,{name:n.name})}},children:[G.isDragging?(0,$.jsx)(`div`,{className:`pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-xl bg-accent-soft/80 text-sm font-medium text-accent-fg backdrop-blur-[1px]`,children:V.chat.dropFiles}):null,L?(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-3 border-b border-edge-subtle bg-accent-soft/40 px-4 py-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:V.chat.userMessageEditing}),(0,$.jsx)(`button`,{type:`button`,className:`font-medium text-accent-fg hover:underline`,onClick:R,children:V.chat.userMessageEditCancel})]}):null,m.length>0?(0,$.jsx)(`div`,{className:`max-h-[min(30vh,11rem)] shrink-0 overflow-y-auto overflow-x-hidden border-b border-edge-subtle/80 [scrollbar-gutter:stable] dark:border-edge-subtle/70`,children:(0,$.jsx)(khe,{items:m,disabled:e,editingFollowUpId:h,onEditInComposer:Fe,onRemove:b,onMove:x,onReorder:S,onSteer:C,steeringBusyId:w})}):null,(0,$.jsx)(N5,{attachments:G.attachments,topPadded:m.length>0,onRemove:G.removeAttachment}),(0,$.jsx)(Ihe,{refs:a,label:V.chat.commandPalette.noteContextLabel,onRemove:e=>o(t=>t.filter(t=>t.sourceId!==e))}),(0,$.jsxs)(`div`,{className:`flex min-h-0 shrink-0 flex-col`,children:[(0,$.jsx)(`input`,{ref:U,type:`file`,multiple:!0,accept:h5,className:`hidden`,onChange:async e=>{let t=e.target.files;t&&await G.processFiles(Array.from(t)),e.target.value=``}}),(0,$.jsxs)(`div`,{className:X(`relative px-4 pb-0 pt-1`,G.attachments.length>0&&`pt-2`),children:[(0,$.jsx)(age,{open:Ee.atPicker.open,anchorRef:ve.editorRef,items:Ee.atPicker.items,selectedIndex:Ee.atPicker.selectedIndex,loading:Ee.atPicker.loading,query:Ee.atPicker.query,noResults:Ee.atPicker.error??V.chat.atMention.noResults,sessionKey:r,recentLabel:V.chat.atMention.recentBadge,filesLabel:V.chat.atMention.files,notesLabel:V.chat.atMention.notes,ariaLabel:V.chat.atMention.placeholder,shiftHint:V.chat.atMention.shiftHint,onSelectItem:(e,t)=>Ee.applyAtMention(e,{stayOpen:t?.shiftKey===!0})}),(0,$.jsx)(Gge,{open:Ee.palette.open,anchorRef:ve.editorRef,panelRef:ne,items:Ee.palette.loadError?[]:Ee.palette.items,selectedIndex:Ee.palette.selectedIndex,noResults:Ee.palette.loadError??V.chat.commandPalette.noResults,grouped:Ee.palette.loadError?!1:Ee.palette.grouped,skillRowCount:Ee.palette.loadError?0:Ee.palette.skillRowCount,commandRowCount:Ee.palette.loadError?0:Ee.palette.commandRowCount,query:Ee.palette.query,skillsLabel:V.chat.commandPalette.skillsSection,commandsLabel:V.chat.commandPalette.commandsSection,agentsLabel:V.chat.commandPalette.agentsSection,groupedHasSkills:Ee.palette.loadError?!1:Ee.palette.groupedHasSkills,groupedHasCommands:Ee.palette.loadError?!1:Ee.palette.groupedHasCommands,groupedHasAgents:Ee.palette.loadError?!1:Ee.palette.groupedHasAgents,groupedSkillsShowMoreLabel:Ee.palette.loadError||!Ee.palette.grouped?null:Ee.palette.groupedSkillsMoreCount>0?z5(V.chat.commandPalette.showGroupedMore,{count:Ee.palette.groupedSkillsMoreCount}):null,groupedCommandsShowMoreLabel:Ee.palette.loadError||!Ee.palette.grouped?null:Ee.palette.groupedCommandsMoreCount>0?z5(V.chat.commandPalette.showGroupedMore,{count:Ee.palette.groupedCommandsMoreCount}):null,groupedAgentsShowMoreLabel:Ee.palette.loadError||!Ee.palette.grouped?null:Ee.palette.groupedAgentsMoreCount>0?z5(V.chat.commandPalette.showGroupedMore,{count:Ee.palette.groupedAgentsMoreCount}):null,onExpandSkills:Ee.palette.expandGroupedSkills,onExpandCommands:Ee.palette.expandGroupedCommands,onExpandAgents:Ee.palette.expandGroupedAgents,currentAgentId:N,currentBadgeLabel:V.chat.commandPalette.currentBadge,runBusy:Ce,pendingFollowUpsCount:m.length,maxPendingFollowUps:10,queueBadgeLabel:V.chat.commandPalette.queueBadge,queueFullBadgeLabel:V.chat.commandPalette.queueFullBadge,queueFullTooltip:V.chat.commandPalette.queueFullTooltip,skillUnavailableLabel:V.chat.commandPalette.skillUnavailableBadge,skillAgentDeniedLabel:V.chat.commandPalette.skillAgentDeniedBadge,onSelectItem:Ee.applyPalette}),De.voiceActive?(0,$.jsx)(G3,{phase:De.phase,elapsedLabel:De.elapsedLabel,audioLevel:De.audioLevel,partialTranscript:De.partialTranscript,finalTranscript:De.finalTranscript,disabled:e,chat:V.chat,onCancel:De.cancelVoiceInput,onConfirm:De.confirmVoiceInput,onRetry:De.retryVoiceInput}):null,(0,$.jsx)(Che,{editorRef:ve.editorRef,disabled:e,hidden:De.voiceActive&&De.phase!==`error`,ariaLabel:V.chat.inputPlaceholder,placeholder:Be??(Le?h?V.chat.inputPlaceholderSteeringEdit:V.chat.inputPlaceholderSteering:V.chat.inputPlaceholder),onWireInput:xe,adjustHeight:ve.adjustHeight,processFiles:G.processFiles,processPastedText:G.processPastedText,setIsComposing:ve.setIsComposing,kbdRef:Ie,chatMessages:V.chat})]}),(0,$.jsx)(Qhe,{disabled:e,sending:t,streaming:n,runBusy:Le,chat:V.chat,hasDraft:Re,showSteeringInterrupt:ze,attachmentCount:G.attachments.length,maxAttachments:10,onPickFiles:()=>U.current?.click(),thinkingLevel:s,modelSupportsThinking:c,onThinkingChange:l,voiceActive:De.voiceActive,onStartVoiceInput:De.startVoiceInput,voiceConversationEnabled:!!(r||I)&&!Le,onStartVoiceConversation:()=>{if(!B.current){if(r){z.open({sessionKey:r,name:P||N||`xopc`,taskId:F});return}I&&(B.current=!0,I().then(e=>z.open({sessionKey:e,name:P||N||`xopc`,taskId:F})).catch(e=>fA(`error`,e instanceof Error?e.message:V.chat.callFailed)).finally(()=>{B.current=!1}))}},onSend:Pe.send,onAbort:d,onInterrupt:Pe.interruptDraft,sessionModel:O,showModelSelector:k,onModelChange:A,modelDisabled:j})]}),(0,$.jsx)(__e,{open:ie,sessionKey:r,disabled:e||Le,chat:V.chat,onClose:()=>ae(!1),onSendCommand:Te}),(0,$.jsx)(UV,{open:oe!==null,title:V.chat.commandPalette.workspaceTrustTitle,description:z5(V.chat.commandPalette.workspaceTrustDescription,{path:oe?.workspacePath??``}),confirmLabel:ue?V.chat.commandPalette.workspaceTrustSaving:V.chat.commandPalette.workspaceTrustConfirm,cancelLabel:V.chat.commandPalette.workspaceTrustCancel,onConfirm:me,onCancel:()=>{se(null),le(r)}})]})]})});function b_e(e){let t=(0,Q.c)(30),{selection:n}=e,r=ct(x_e)===`zh`,{mode:i,options:a,checking:o,checkFailed:s,failure:c,busy:l,changeMode:u,retry:d}=n,f=s?r?`无法检查运行环境,请重试。`:`Could not check the environment. Retry.`:a?.worktreeUnavailableReason===`workspace_unavailable`?r?`项目目录不可用,请在项目设置中检查路径。`:`Project directory unavailable. Check its path in project settings.`:null;if(!s&&a?.worktreeUnavailableReason===`git_commit_required`){let e;return t[0]===c?e=t[1]:(e=c?(0,$.jsx)(`p`,{role:`alert`,className:`w-full px-2 py-1 text-xs text-danger`,children:c}):null,t[0]=c,t[1]=e),e}let p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(Lg,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[2]=p):p=t[2];let m=p,h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(uy,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[3]=h):h=t[3];let g=h,_=r?`运行位置`:`Work in`,v;t[4]!==l||t[5]!==u||t[6]!==s||t[7]!==_||t[8]!==i||t[9]!==a||t[10]!==r?(v=!a&&!s?(0,$.jsx)(Ft,{className:`h-8 w-36 rounded-full`}):(0,$.jsx)(fe,{ariaLabel:r?`新会话运行位置`:`New session environment`,placeholder:_,title:r?`Local 指 xopc Gateway 所在机器;首次发送时创建所选环境。`:`Local means the machine running xopc Gateway. The selected environment is created on first send.`,triggerIcon:l?(0,$.jsx)(je,{className:`size-4 shrink-0 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):i===`managed_worktree`?g:m,triggerClassName:`h-8 w-auto max-w-full justify-start gap-1.5 rounded-full border-0 bg-surface-hover px-2.5 hover:bg-surface-active [&>svg:last-child]:hidden`,contentClassName:`xopc-composer-config-popover w-max min-w-0 max-w-[calc(100vw-1.5rem)]`,side:`top`,allowEmpty:!1,value:i,disabled:l||s,options:[{value:`local_checkout`,label:`Local`,icon:m,group:_,disabled:!a?.localAvailable},{value:`managed_worktree`,label:`New local worktree`,icon:g,group:_,disabled:!a||!!a.worktreeUnavailableReason}],onChange:e=>u(e)}),t[4]=l,t[5]=u,t[6]=s,t[7]=_,t[8]=i,t[9]=a,t[10]=r,t[11]=v):v=t[11];let y;t[12]!==l||t[13]!==o||t[14]!==c||t[15]!==i||t[16]!==a?.worktreeUnavailableReason||t[17]!==f||t[18]!==d||t[19]!==r?(y=f||c||i===`managed_worktree`&&a?.worktreeUnavailableReason?(0,$.jsx)(vt,{variant:`ghost`,className:`size-8 rounded-full p-0`,disabled:l||o,onClick:d,"aria-label":r?`重新检查环境`:`Recheck environment`,children:(0,$.jsx)(Fv,{className:`size-3.5 `+(o?`animate-spin motion-reduce:animate-none`:``),"aria-hidden":!0})}):null,t[12]=l,t[13]=o,t[14]=c,t[15]=i,t[16]=a?.worktreeUnavailableReason,t[17]=f,t[18]=d,t[19]=r,t[20]=y):y=t[20];let b;t[21]===f?b=t[22]:(b=f?(0,$.jsx)(`p`,{role:`status`,className:`w-full px-2 py-1 text-xs leading-5 text-fg-muted`,children:f}):null,t[21]=f,t[22]=b);let x;t[23]===c?x=t[24]:(x=c?(0,$.jsx)(`p`,{role:`alert`,className:`max-h-20 w-full overflow-y-auto break-words px-2 py-1 text-xs leading-5 text-danger`,children:c}):null,t[23]=c,t[24]=x);let S;return t[25]!==v||t[26]!==y||t[27]!==b||t[28]!==x?(S=(0,$.jsxs)($.Fragment,{children:[v,y,b,x]}),t[25]=v,t[26]=y,t[27]=b,t[28]=x,t[29]=S):S=t[29],S}function x_e(e){return e.language}function S_e({preparation:e,sessionKey:t,ready:n,onSend:r}){let i=ut(e=>e.token),a=ut(e=>e.baseUrl),[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(null),f=(0,Z.useRef)(null),p=(0,Z.useRef)(r);p.current=r;let{data:m,error:h,isValidating:g,mutate:_}=mt(e?[`project-environment-options`,a,i,e.project.id]:null,async()=>(await J(Y(`/api/projects/${encodeURIComponent(e.project.id)}/environment-options`))).options,{keepPreviousData:!1,revalidateOnFocus:!1,shouldRetryOnError:!1}),v=m?.localAvailable&&m.worktreeUnavailableReason!==`git_commit_required`&&m.worktreeUnavailableReason!==`workspace_unavailable`?o?.preparation===e?o.mode:e?.project.executionMode??`local_checkout`:`local_checkout`,y=!!(!h&&m?.localAvailable&&(v===`local_checkout`||!m.worktreeUnavailableReason)),b=(0,Z.useCallback)(e=>{let t=f.current;f.current=null,d(null),t?.resolve(e)},[]);return(0,Z.useEffect)(()=>{if(u){if(u.baseUrl!==a||u.token!==i){b(!1);return}u.sessionKey&&(t===u.sessionKey?n&&b(!0):e!==u.preparation&&b(!1))}},[u,t,n,e,b,a,i]),(0,Z.useEffect)(()=>()=>{f.current?.resolve(!1),f.current=null},[]),{mode:v,options:m,checking:g,checkFailed:!!h,allowed:y,busy:!!(u&&(u.preparation===e||u.sessionKey&&u.sessionKey===t)),failure:c?.preparation===e?c.message:null,changeMode:t=>{!e||f.current||(s({preparation:e,mode:t}),l(null))},retry:()=>void _(),send:async(...t)=>{if(f.current)return!1;if(e){if(!y||g||(l(null),!await new Promise(t=>{let n={preparation:e,baseUrl:a,token:i,sessionKey:null,resolve:t};f.current=n,d(n),Promise.resolve().then(()=>e.create(v)).then(e=>{if(f.current!==n)return;let t={...n,sessionKey:e};f.current=t,d(t)}).catch(t=>{f.current===n&&(l({preparation:e,message:t instanceof Error?t.message:String(t)}),_(),b(!1))})})))return!1;t[2]=void 0}return p.current(...t),!0}}}function C_e(e,t){let n=(0,Q.c)(9),r=ut(T_e),i=ut(w_e),a;n[0]!==i||n[1]!==t||n[2]!==e||n[3]!==r?(a=e||t?[`chat-project-scope`,i,r,e,t]:null,n[0]=i,n[1]=t,n[2]=e,n[3]=r,n[4]=a):a=n[4];let o;n[5]!==t||n[6]!==e?(o=async()=>{let n=e?(await eV(e)).projectId:t;return n?jB(n):null},n[5]=t,n[6]=e,n[7]=o):o=n[7];let s;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(s={keepPreviousData:!1,shouldRetryOnError:!1},n[8]=s):s=n[8];let{data:c,error:l}=mt(a,o,s);return l?null:c??null}function w_e(e){return e.baseUrl}function T_e(e){return e.token}function E_e(e,t){let n=I3(e,t),r=L3(e,t);return`${e.id} ${n} ${r}`.toLowerCase()}function D_e(e,t,n){let r=t.trim().toLowerCase();if(!r)return e;let i=r.split(/\s+/).filter(Boolean);return e.filter(e=>{let t=E_e(e,n);return i.every(e=>t.includes(e))})}function O_e(e){let t=(0,Q.c)(56),{items:n,value:r,disabled:i,placeholder:a,searchPlaceholder:o,noMatches:s,compact:c,contentSide:l,contentAlign:u,className:d,onChange:f}=e,p=l===void 0?`bottom`:l,m=u===void 0?`end`:u,h=ct(A_e),g;t[0]===h?g=t[1]:(g=rt(h),t[0]=h,t[1]=g);let _=g.agentsSettings,[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(``),S;t[2]!==_||t[3]!==n||t[4]!==b?(S=D_e(n,b,_),t[2]=_,t[3]=n,t[4]=b,t[5]=S):S=t[5];let C=S,w,T,E;if(t[6]!==_||t[7]!==n||t[8]!==a||t[9]!==r){let e;t[13]===r?e=t[14]:(e=e=>e.id===r,t[13]=r,t[14]=e),T=n.find(e),w=T?I3(T,_):r||a,E=T?[I3(T,_),L3(T,_)].filter(Boolean).join(` — `):void 0,t[6]=_,t[7]=n,t[8]=a,t[9]=r,t[10]=w,t[11]=T,t[12]=E}else w=t[10],T=t[11],E=t[12];let D=E??a,O=c&&`min-w-0 max-w-[min(calc(15ch+3rem),calc(100vw-8rem))] py-1.5 text-[13px]`,k;t[15]!==d||t[16]!==O?(k=X(Sj,`items-center gap-2 rounded-lg border border-edge-subtle bg-surface-panel px-2.5 py-2 text-left text-sm font-normal text-fg`,gk.transition,`hover:border-edge hover:bg-surface-hover/45`,yj,vj,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,O,d),t[15]=d,t[16]=O,t[17]=k):k=t[17];let A;t[18]!==T?.avatar||t[19]!==r?(A=r?(0,$.jsx)(e7,{agentId:r,avatar:T?.avatar,size:28,className:`shrink-0`}):null,t[18]=T?.avatar,t[19]=r,t[20]=A):A=t[20];let j=c?`max-w-[15ch] shrink`:`flex-1`,M;t[21]===j?M=t[22]:(M=X(`min-w-0 truncate text-left`,j),t[21]=j,t[22]=M);let N;t[23]!==w||t[24]!==M?(N=(0,$.jsx)(`span`,{className:M,children:w}),t[23]=w,t[24]=M,t[25]=N):N=t[25];let P;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,$.jsx)(ae,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[26]=P):P=t[26];let F;t[27]!==i||t[28]!==N||t[29]!==D||t[30]!==k||t[31]!==A?(F=(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,disabled:i,title:D,className:k,children:[A,N,P]})}),t[27]=i,t[28]=N,t[29]=D,t[30]=k,t[31]=A,t[32]=F):F=t[32];let I;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(I=X(`z-50 w-[var(--radix-popover-trigger-width)] min-w-[12rem] max-h-[min(20rem,calc(100vh-6rem))] overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-md`,gk),t[33]=I):I=t[33];let L;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>x(e.target.value),t[34]=L):L=t[34];let R;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(R=X(`w-full rounded-md border border-edge bg-surface-elevated px-2.5 py-1.5 text-sm text-fg placeholder:text-fg-muted`,yj),t[35]=R):R=t[35];let z;t[36]!==b||t[37]!==o?(z=(0,$.jsx)(`div`,{className:`border-b border-edge p-2`,children:(0,$.jsx)(`input`,{type:`search`,value:b,onChange:L,placeholder:o,className:R,"aria-label":o})}),t[36]=b,t[37]=o,t[38]=z):z=t[38];let B;t[39]!==_||t[40]!==C||t[41]!==s||t[42]!==f||t[43]!==r?(B=C.length===0?(0,$.jsx)(`li`,{className:`p-2 text-sm text-fg-muted`,children:s}):C.map(e=>{let t=e.id===r,n=I3(e,_),i=L3(e,_),a=i.length>0?i:void 0;return(0,$.jsx)(`li`,{role:`option`,"aria-selected":t,children:(0,$.jsxs)(`button`,{type:`button`,className:X(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-fg`,t?`bg-surface-hover`:`hover:bg-surface-hover`),onClick:()=>{f(e.id),y(!1),x(``)},children:[(0,$.jsx)(W,{className:X(`size-4 shrink-0`,t?`opacity-100`:`opacity-0`),"aria-hidden":!0}),(0,$.jsx)(e7,{agentId:e.id,avatar:e.avatar,size:32,className:`shrink-0`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate font-medium leading-tight`,title:n,children:n}),i?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs leading-tight text-fg-muted`,title:a,children:i}):null]})]})},e.id)}),t[39]=_,t[40]=C,t[41]=s,t[42]=f,t[43]=r,t[44]=B):B=t[44];let V;t[45]===B?V=t[46]:(V=(0,$.jsx)(`ul`,{className:`max-h-[min(16rem,calc(100vh-10rem))] overflow-y-auto p-1`,role:`listbox`,children:B}),t[45]=B,t[46]=V);let H;t[47]!==m||t[48]!==p||t[49]!==z||t[50]!==V?(H=(0,$.jsx)(re,{children:(0,$.jsxs)(de,{side:p,align:m,sideOffset:4,collisionPadding:8,className:I,onOpenAutoFocus:k_e,children:[z,V]})}),t[47]=m,t[48]=p,t[49]=z,t[50]=V,t[51]=H):H=t[51];let ee;return t[52]!==v||t[53]!==F||t[54]!==H?(ee=(0,$.jsxs)(se,{open:v,onOpenChange:y,children:[F,H]}),t[52]=v,t[53]=F,t[54]=H,t[55]=ee):ee=t[55],ee}function k_e(e){return e.preventDefault()}function A_e(e){return e.language}function j_e(e,t){let n=e.map(e=>({...e,drafts:[]}));for(let e of t){let t=n.find(t=>t.id===e.sourceId);t?t.drafts.push(e):n.push({kind:`note`,id:e.sourceId,title:e.title,origins:[],drafts:[e]})}return n}function M_e(e){return e===`zh`?{title:`会话上下文`,work:`当前工作`,sources:`关联资料`,environment:`执行环境`,emptyWork:`未关联项目或执行任务`,emptySources:`未关联资料`,emptyEnvironment:`会话创建后显示`,session:`会话来源`,task:`任务关联`,draft:`待发送`,untitled:`未命名 Note`,unavailable:`不可用或无权访问`,failed:`部分信息暂不可用,请刷新重试`,refresh:`刷新`,more:`仅显示前 20 项,更多资料请打开任务查看`,local:`Local · 本地目录`,worktree:`Local · Worktree`,detached:`游离 HEAD`,unavailableEnvironment:`目录不存在或环境尚未就绪`,hint:`关联资料不代表模型已读取;待发送资料仅用于下一条消息。`}:{title:`Session context`,work:`Current work`,sources:`Sources`,environment:`Environment`,emptyWork:`No project or execution task`,emptySources:`No linked sources`,emptyEnvironment:`Available after the session is created`,session:`Session source`,task:`Task reference`,draft:`Pending send`,untitled:`Untitled Note`,unavailable:`Unavailable or restricted`,failed:`Some details are unavailable. Refresh to retry.`,refresh:`Refresh`,more:`Showing the first 20 sources. Open the task for more.`,local:`Local · Directory`,worktree:`Local · Worktree`,detached:`Detached HEAD`,unavailableEnvironment:`Directory missing or environment not ready`,hint:`Linked sources do not mean the model has read them. Pending sources apply to the next message.`}}var S7=`flex min-w-0 items-center gap-3 rounded-lg px-2 py-2.5 text-sm text-fg transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,C7=`rounded-lg p-2 text-xs text-fg-muted transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`;function N_e({sessionKey:e,draftRefs:t=[],project:n,...r}){let[i,a]=(0,Z.useState)(!1),o=ct(e=>e.language),s=M_e(o),c=l(),u=`${c.pathname}${c.search}`,{data:d,error:f,isLoading:p,isValidating:m,mutate:h}=P5(e,i),g=f?void 0:d,_=g?.work.project??(!e&&n?{id:n.id,title:n.name}:void 0),v=g?.work.task,b=j_e(g?.sources??[],t),x=g?.environment,S=[_?.title,v?.title,b.length?`${s.sources} ${b.length}${g?.sourcesHasMore?`+`:``}`:null,x?.kind===`managed_worktree`?`Worktree`:null].filter(Boolean).join(` · `)||s.title,C=()=>a(!1),w=b.some(e=>!e.unavailable&&e.origins.some(e=>e.kind===`session`));return(0,$.jsxs)(se,{open:i,onOpenChange:a,children:[(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,"aria-label":s.title,title:S,className:`group inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted transition-[background-color,color,transform] duration-150 hover:bg-surface-hover hover:text-fg active:scale-95 data-[state=open]:bg-surface-hover data-[state=open]:text-fg motion-reduce:transition-none motion-reduce:transform-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:(0,$.jsx)(j_,{className:`size-4 transition-transform duration-200 group-data-[state=open]:scale-110 motion-reduce:transform-none motion-reduce:transition-none`,strokeWidth:1.75,"aria-hidden":!0})})}),(0,$.jsx)(re,{children:(0,$.jsxs)(de,{align:`end`,sideOffset:8,collisionPadding:12,"aria-label":s.title,className:`xopc-session-context-popover z-50 flex h-[min(28rem,var(--radix-popover-content-available-height))] w-[min(21rem,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover`,children:[(0,$.jsx)(`h2`,{className:`sr-only`,children:s.title}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-3 py-4`,children:[f||g?.unavailableSections.length?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:s.failed}):null,p?(0,$.jsx)(`div`,{className:`space-y-4`,"aria-label":s.title,"aria-busy":`true`,children:[0,1,2,3].map(e=>(0,$.jsx)(Ft,{className:`h-8 w-full`},e))}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`section`,{children:[(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between px-2`,children:[(0,$.jsx)(`h3`,{className:`text-sm text-fg-subtle`,children:s.environment}),e?(0,$.jsx)(`button`,{type:`button`,className:C7,"aria-label":s.refresh,disabled:m,onClick:()=>void h(),children:(0,$.jsx)(Fv,{className:`size-3.5 ${m?`animate-spin motion-reduce:animate-none`:``}`,"aria-hidden":!0})}):null]}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3 px-2 py-2.5`,children:[(0,$.jsx)(ov,{className:`mt-0.5 size-4 shrink-0 text-fg`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`p`,{className:`text-sm text-fg`,children:x.kind===`managed_worktree`?s.worktree:s.local}),(0,$.jsx)(`p`,{className:`mt-1 break-all text-xs leading-5 text-fg-muted`,children:x.rootPath}),x.available?null:(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:s.unavailableEnvironment})]})]}),x.branch||x.headSha?(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3 px-2 py-2.5 text-sm text-fg`,children:[(0,$.jsx)(fm,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`break-all`,children:[x.branch||(x.detached?s.detached:``),` `,x.headSha?.slice(0,8)]})]}):null]}):(0,$.jsx)(`p`,{className:`px-2 py-2 text-xs text-fg-muted`,children:e?s.unavailable:s.emptyEnvironment}),e&&_&&n?.workspaceRoot&&!f?(0,$.jsx)(y,{className:S7,to:_L(_.id),state:{forceNewChat:!0,agentId:r.agentId,temporary:r.temporary},onClick:C,children:o===`zh`?`在另一环境新建会话`:`New session in another environment`}):null]}),(0,$.jsxs)(`section`,{className:`border-t border-edge-subtle pt-3`,children:[(0,$.jsx)(`h3`,{className:`mb-1 px-2 text-sm text-fg-subtle`,children:s.work}),_?(0,$.jsxs)(y,{className:S7,to:ye(`/projects/${encodeURIComponent(_.id)}`,u),onClick:C,children:[(0,$.jsx)(xp,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,title:_.title,children:_.title})]}):null,v?(0,$.jsxs)(y,{className:S7,to:UO(u,v.id),onClick:C,children:[(0,$.jsx)(TS,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,title:v.title,children:v.title}),(0,$.jsx)(`span`,{className:`ml-auto shrink-0 text-xs text-fg-muted`,children:v.phase})]}):null,!_&&!v?(0,$.jsx)(`p`,{className:`px-2 py-2 text-xs text-fg-muted`,children:f||g?.unavailableSections.includes(`work`)?s.unavailable:s.emptyWork}):null,_&&r.onLeaveProject?(0,$.jsx)(`button`,{type:`button`,className:C7,onClick:()=>{C(),r.onLeaveProject?.()},children:r.leaveProjectLabel}):null]}),(0,$.jsxs)(`section`,{className:`border-t border-edge-subtle pt-3`,children:[(0,$.jsxs)(`h3`,{className:`mb-1 px-2 text-sm text-fg-subtle`,children:[s.sources,` `,b.length||``]}),b.map(e=>{let t=[...e.origins.map(e=>`${e.kind===`session`?s.session:s.task}${e.version?` · ${e.version}`:``}`),...e.drafts.map(e=>`${s.draft} · ${e.expectedVersion}`)],n=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(wf,{className:`mt-0.5 size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate`,children:e.unavailable?s.unavailable:e.title||s.untitled}),(0,$.jsx)(`span`,{className:`block break-words text-xs text-fg-subtle`,children:t.join(` / `)})]})]});return e.unavailable?(0,$.jsx)(`div`,{className:`flex gap-2 px-2 py-2 text-sm text-fg-muted`,children:n},e.id):(0,$.jsx)(y,{className:`${S7} items-start`,to:ye(`/notes/${encodeURIComponent(e.id)}`,u),onClick:C,children:n},e.id)}),b.length?null:(0,$.jsx)(`p`,{className:`px-2 py-2 text-xs text-fg-muted`,children:f||g?.unavailableSections.includes(`sources`)?s.unavailable:s.emptySources}),g?.sourcesHasMore?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:s.more}):null,w&&r.onDraftSourceNote?(0,$.jsx)(`button`,{type:`button`,className:C7,onClick:()=>{C(),r.onDraftSourceNote?.()},children:r.draftSourceNoteLabel}):null]})]})]}),(0,$.jsx)(`p`,{className:`shrink-0 border-t border-edge-subtle px-4 py-3 text-xs leading-5 text-fg-subtle`,children:s.hint})]})})]})}function P_e(e){let t=(0,Q.c)(61),{sessionKey:n,workspacePath:r,canChangeWorkspace:i,disabled:a,available:o,onWorkspaceChange:s}=e,c=o===void 0?!0:o,l=ct(z_e),u;t[0]===l?u=t[1]:(u=rt(l),t[0]=l,t[1]=u);let d=u,f=YU(R_e),p=YU(L_e),m=D$(I_e),[h,g]=(0,Z.useState)(null),_,v;t[2]!==d.chat.workingDirectory.notSet||t[3]!==r?(_=r?.trim()??``,v=_?lB(_):d.chat.workingDirectory.notSet,t[2]=d.chat.workingDirectory.notSet,t[3]=r,t[4]=_,t[5]=v):(_=t[4],v=t[5]);let y=v,b;t[6]===s?b=t[7]:(b=async e=>{try{await s(e)}catch(e){let t=e;g(t instanceof Error?t.message:String(t))}},t[6]=s,t[7]=b);let x=b,S;t[8]!==x||t[9]!==_?(S={initialPath:_,onPicked:x},t[8]=x,t[9]=_,t[10]=S):S=t[10];let C=dB(S),w=a||C.picking,T;t[11]!==f||t[12]!==n||t[13]!==m?(T=()=>{n&&m(n,!1),f(n??``)},t[11]=f,t[12]=n,t[13]=m,t[14]=T):T=t[14];let E=T,D=!c,O=p&&`bg-surface-hover text-fg`,k=!c&&`cursor-not-allowed opacity-50`,A;t[15]!==O||t[16]!==k?(A=X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted transition-colors`,`hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,O,k),t[15]=O,t[16]=k,t[17]=A):A=t[17];let j=`${d.workspace.openFiles}: ${_||y}`,M=`${d.workspace.openFiles}: ${y}`,N;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(Tp,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[18]=N):N=t[18];let P;t[19]!==E||t[20]!==A||t[21]!==j||t[22]!==M||t[23]!==D||t[24]!==p?(P=(0,$.jsx)(`button`,{type:`button`,disabled:D,className:A,title:j,"aria-label":M,"aria-pressed":p,onClick:E,children:N}),t[19]=E,t[20]=A,t[21]=j,t[22]=M,t[23]=D,t[24]=p,t[25]=P):P=t[25];let F;t[26]!==i||t[27]!==C.pick||t[28]!==d.chat.workingDirectory.chooseFolder||t[29]!==w?(F=i?(0,$.jsx)(`button`,{type:`button`,disabled:w,className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted transition-colors`,`hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,w&&`cursor-not-allowed opacity-50`),title:d.chat.workingDirectory.chooseFolder,"aria-label":d.chat.workingDirectory.chooseFolder,onClick:C.pick,children:(0,$.jsx)(vp,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}):null,t[26]=i,t[27]=C.pick,t[28]=d.chat.workingDirectory.chooseFolder,t[29]=w,t[30]=F):F=t[30];let I;t[31]!==P||t[32]!==F?(I=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-0.5`,children:[P,F]}),t[31]=P,t[32]=F,t[33]=I):I=t[33];let L;t[34]!==C.confirmPick||t[35]!==C.hasNativePicker||t[36]!==C.modalOpen||t[37]!==C.setModalOpen||t[38]!==d.chat.workingDirectory||t[39]!==_?(L=C.hasNativePicker?null:(0,$.jsx)(SB,{open:C.modalOpen,onOpenChange:C.setModalOpen,initialAbsolutePath:_||void 0,onConfirm:C.confirmPick,wd:d.chat.workingDirectory}),t[34]=C.confirmPick,t[35]=C.hasNativePicker,t[36]=C.modalOpen,t[37]=C.setModalOpen,t[38]=d.chat.workingDirectory,t[39]=_,t[40]=L):L=t[40];let z=h!==null,V;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>{e||g(null)},t[41]=V):V=t[41];let U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(R,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),t[42]=U):U=t[42];let W;t[43]===d.chat.workingDirectory.applyErrorTitle?W=t[44]:(W=(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:d.chat.workingDirectory.applyErrorTitle}),t[43]=d.chat.workingDirectory.applyErrorTitle,t[44]=W);let re;t[45]===h?re=t[46]:(re=h?(0,$.jsx)(B,{className:`mt-2 whitespace-pre-wrap text-sm leading-relaxed text-fg-muted`,children:h}):null,t[45]=h,t[46]=re);let ie;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(ie=()=>g(null),t[47]=ie):ie=t[47];let ae;t[48]===d.chat.workingDirectory.applyErrorClose?ae=t[49]:(ae=(0,$.jsx)(`div`,{className:`mt-4 flex justify-end border-t border-edge-subtle pt-3`,children:(0,$.jsx)(vt,{type:`button`,onClick:ie,children:d.chat.workingDirectory.applyErrorClose})}),t[48]=d.chat.workingDirectory.applyErrorClose,t[49]=ae);let oe;t[50]!==W||t[51]!==re||t[52]!==ae?(oe=(0,$.jsxs)(H,{children:[U,(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[81] w-[min(100%-2rem,26rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-edge bg-surface-panel p-4 shadow-popover`,onOpenAutoFocus:F_e,children:[W,re,ae]})]}),t[50]=W,t[51]=re,t[52]=ae,t[53]=oe):oe=t[53];let se;t[54]!==z||t[55]!==oe?(se=(0,$.jsx)(ne,{open:z,onOpenChange:V,children:oe}),t[54]=z,t[55]=oe,t[56]=se):se=t[56];let ce;return t[57]!==I||t[58]!==L||t[59]!==se?(ce=(0,$.jsxs)($.Fragment,{children:[I,L,se]}),t[57]=I,t[58]=L,t[59]=se,t[60]=ce):ce=t[60],ce}function F_e(e){return e.preventDefault()}function I_e(e){return e.setOpen}function L_e(e){return e.open}function R_e(e){return e.openForSession}function z_e(e){return e.language}function B_e(e){return e===`darwin`?`⌘J`:`Ctrl+J`}function V_e(e,t){return e.repeat||e.altKey||e.shiftKey||e.key.toLowerCase()!==`j`?!1:t===`darwin`?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}var H_e=[];function U_e(e,t){return e[t]??H_e}var W_e=0;function w7(){return globalThis.crypto?.randomUUID?.()??`terminal-${Date.now()}-${++W_e}`}function T7(e){let t=typeof window>`u`?640:Math.max(180,Math.floor(window.innerHeight*.65));return Math.min(640,t,Math.max(180,Math.round(e)))}var E7=at((e,t)=>({openBySessionKey:{},tabsBySessionKey:{},activeTabKeyBySessionKey:{},height:300,toggle:n=>{let r=t(),i=!r.openBySessionKey[n];if(!i||r.tabsBySessionKey[n]?.length){e({openBySessionKey:{...r.openBySessionKey,[n]:i}});return}let a=w7();e({openBySessionKey:{...r.openBySessionKey,[n]:!0},tabsBySessionKey:{...r.tabsBySessionKey,[n]:[{key:a}]},activeTabKeyBySessionKey:{...r.activeTabKeyBySessionKey,[n]:a}})},close:t=>e(e=>({openBySessionKey:{...e.openBySessionKey,[t]:!1}})),addTerminal:n=>{let r=t(),i=r.tabsBySessionKey[n]??[];if(i.length>=8)return r.activeTabKeyBySessionKey[n]??i[0].key;let a=w7();return e({tabsBySessionKey:{...r.tabsBySessionKey,[n]:[...i,{key:a}]},activeTabKeyBySessionKey:{...r.activeTabKeyBySessionKey,[n]:a}}),a},closeTerminal:(t,n)=>e(e=>{let r=e.tabsBySessionKey[t]??[],i=r.findIndex(e=>e.key===n);if(i<0)return e;let a=r.filter(e=>e.key!==n),o=e.activeTabKeyBySessionKey[t],s=o===n?a[Math.min(i,a.length-1)]?.key:o;return{tabsBySessionKey:{...e.tabsBySessionKey,[t]:a},activeTabKeyBySessionKey:{...e.activeTabKeyBySessionKey,[t]:s}}}),setActiveTerminal:(t,n)=>e(e=>(e.tabsBySessionKey[t]??[]).some(e=>e.key===n)?{activeTabKeyBySessionKey:{...e.activeTabKeyBySessionKey,[t]:n}}:e),setHeight:t=>e({height:T7(t)})}));function G_e({sessionKey:e}){let t=ct(e=>e.language),n=t===`zh`?q_e:J_e,[r,i]=(0,Z.useState)(!1),[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(864e5),[h,g]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(``),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)([]),[C,w]=(0,Z.useState)(`hosted`),[T,E]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{if(!r||a||s)return;let t=!1;return u(!0),f(null),Promise.all([SU(e),CU(e),TU()]).then(async([n,r,i])=>{if(t)return;o(n),E(i);let a=i?await wU(e).catch(()=>[]):[];if(t)return;let s=[...a,...r].find(e=>!e.revoked&&!e.expired);s&&c(s)}).catch(e=>{t||f(e instanceof Error?e.message:String(e))}).finally(()=>{t||u(!1)}),()=>{t=!0}},[r,a,s,e]);let D=()=>{o(null),c(null),f(null),u(!1),v(``),b(!1),S([])},O=async()=>{if(!(!a||l)){u(!0),f(null);try{c(await(C===`hosted`?DU:EU)(e,{expectedSessionId:a.sessionId,expectedCutoffSeq:a.cutoffSeq,expectedMetadataUpdatedAt:a.metadataUpdatedAt,ttlMs:p,maxViews:h,description:_.trim()||void 0,includeToolActivities:y,attachmentIds:x}))}catch(e){f(e instanceof Error?e.message:String(e))}finally{u(!1)}}},k=async()=>{if(!(!s||l)){u(!0),f(null);try{let t=await SU(e);o(t),c(await(s.delivery===`hosted`?kU:OU)(e,s.id,{expectedSessionId:t.sessionId,expectedCutoffSeq:t.cutoffSeq,expectedMetadataUpdatedAt:t.metadataUpdatedAt}))}catch(e){f(e instanceof Error?e.message:String(e))}finally{u(!1)}}},A=async()=>{if(!(!s||l)){u(!0),f(null);try{s.delivery===`hosted`?await AU(e,s.id):await yU(s.id),i(!1),D()}catch(e){f(e instanceof Error?e.message:String(e)),u(!1)}}};return(0,$.jsxs)(ne,{open:r,onOpenChange:e=>{i(e),e||D()},children:[(0,$.jsx)(z,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,title:n.share,"aria-label":n.share,children:(0,$.jsx)(X_,{className:`size-4`})})}),(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`fixed inset-0 z-[70] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(ee,{className:X(`fixed left-1/2 top-1/2 z-[71] flex h-[min(35rem,calc(100dvh-2rem))] w-[min(34rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col`,`overflow-hidden rounded-lg border border-edge bg-surface-panel shadow-popover outline-none`),children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:s?n.created:n.title}),(0,$.jsx)(B,{className:`mt-0.5 text-xs text-fg-muted`,children:s?n.createdHint:n.hint})]}),(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`rounded-md p-2 text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":n.close,children:(0,$.jsx)(Ne,{className:`size-4`})})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-4`,children:[l&&!a&&!s?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-fg-muted`,children:[(0,$.jsx)(je,{className:`size-4 animate-spin`}),n.loading]}):s?(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:s.fileName}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.snapshotMessages.replace(`{{count}}`,String(s.messageCount))}),(0,$.jsxs)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:[s.delivery===`hosted`?n.hosted:n.local,` · `,n.revision.replace(`{{revision}}`,String(s.snapshotRevision)),` · `,n.sharedAttachments.replace(`{{count}}`,String(s.attachmentCount))]})]}),(0,$.jsx)(aU,{shareUrl:s.shareUrl,lanUrl:s.lanUrl,reachability:s.reachability}),(0,$.jsx)(lU,{reachability:s.reachability,reachabilityHint:s.reachabilityHint}),(0,$.jsxs)(`a`,{href:s.shareUrl,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline`,children:[n.open,(0,$.jsx)(ge,{className:`size-3.5`})]})]}):a?(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-muted/45 px-3 py-3`,children:[(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:a.title}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n.snapshotMessages.replace(`{{count}}`,String(a.messageCount))}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:new Date(a.snapshotAt).toLocaleString(t===`zh`?`zh-CN`:`en-US`)})]}),(0,$.jsxs)(`details`,{className:`rounded-lg border border-edge-subtle`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer px-3 py-2.5 text-xs font-medium text-fg`,children:n.reviewContent}),(0,$.jsx)(`div`,{className:`max-h-64 space-y-3 overflow-y-auto border-t border-edge-subtle p-3`,children:a.messages.map(e=>(0,$.jsxs)(`div`,{className:X(`rounded-lg px-3 py-2`,e.role===`user`?`bg-surface-muted`:`bg-surface-subtle`),children:[(0,$.jsx)(`p`,{className:`mb-1 text-[11px] font-semibold uppercase tracking-wide text-fg-subtle`,children:e.role===`user`?n.you:n.assistant}),(0,$.jsx)(`p`,{className:`whitespace-pre-wrap break-words text-sm leading-6 text-fg`,children:e.markdown})]},e.id))})]}),(0,$.jsx)(`div`,{className:`rounded-lg bg-surface-subtle px-3 py-2 text-xs leading-5 text-fg-muted`,children:n.scope}),(0,$.jsxs)(`label`,{className:`block space-y-1.5 text-xs font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:n.delivery}),(0,$.jsxs)(ce,{value:C,disabled:l,onChange:e=>w(e.target.value),children:[(0,$.jsx)(ue,{value:`hosted`,children:n.hosted}),(0,$.jsx)(ue,{value:`local`,children:n.local})]})]}),C===`hosted`&&!T?(0,$.jsx)(m8,{providerId:`xopc-share`,displayName:n.hosted,connected:!1,onConnected:()=>E(!0)}):null,a.toolActivities.length?(0,$.jsxs)(`label`,{className:`flex items-start gap-2 rounded-lg border border-edge-subtle px-3 py-2.5 text-sm text-fg`,children:[(0,$.jsx)(`input`,{type:`checkbox`,checked:y,disabled:l,onChange:e=>b(e.target.checked),className:`mt-0.5 size-4 rounded border-edge`}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`span`,{className:`block font-medium`,children:n.includeTools.replace(`{{count}}`,String(a.toolActivities.length))}),(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs text-fg-muted`,children:n.toolDisclosure})]})]}):null,a.attachmentCandidates.length?(0,$.jsxs)(`fieldset`,{className:`rounded-lg border border-edge-subtle px-3 py-2.5`,children:[(0,$.jsx)(`legend`,{className:`px-1 text-xs font-medium text-fg`,children:n.attachments}),(0,$.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:n.attachmentDisclosure}),(0,$.jsx)(`div`,{className:`space-y-2`,children:a.attachmentCandidates.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm text-fg`,children:[(0,$.jsx)(`input`,{type:`checkbox`,checked:x.includes(e.id),disabled:l,onChange:t=>S(n=>t.target.checked?[...n,e.id]:n.filter(t=>t!==e.id)),className:`size-4 rounded border-edge`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.fileName}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:K_e(e.size)})]},e.id))})]}):null,(0,$.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,$.jsxs)(`label`,{className:`space-y-1.5 text-xs font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:n.ttl}),(0,$.jsxs)(ce,{value:p,disabled:l,onChange:e=>m(Number(e.target.value)),children:[(0,$.jsx)(ue,{value:36e5,children:n.oneHour}),(0,$.jsx)(ue,{value:864e5,children:n.oneDay}),(0,$.jsx)(ue,{value:6048e5,children:n.sevenDays}),(0,$.jsx)(ue,{value:2592e6,children:n.thirtyDays})]})]}),(0,$.jsxs)(`label`,{className:`space-y-1.5 text-xs font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:n.maxViews}),(0,$.jsxs)(ce,{value:h??`unlimited`,disabled:l,onChange:e=>g(e.target.value===`unlimited`?null:Number(e.target.value)),children:[(0,$.jsx)(ue,{value:`unlimited`,children:n.unlimited}),(0,$.jsx)(ue,{value:1,children:`1`}),(0,$.jsx)(ue,{value:10,children:`10`}),(0,$.jsx)(ue,{value:50,children:`50`})]})]})]}),(0,$.jsxs)(`label`,{className:`block space-y-1.5 text-xs font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:n.description}),(0,$.jsx)(`input`,{value:_,disabled:l,onChange:e=>v(e.target.value),className:`h-10 w-full rounded-lg border border-edge bg-surface-subtle px-3 text-sm font-normal text-fg outline-none focus:border-edge-strong`})]}),(0,$.jsx)(`p`,{className:`text-xs text-amber-700 dark:text-amber-300`,children:n.publicWarning})]}):null,d?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-red-600 dark:text-red-400`,children:d}):null]}),(0,$.jsx)(`div`,{className:`flex shrink-0 items-center justify-end gap-2 border-t border-edge px-4 py-3`,children:s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(vt,{type:`button`,variant:`ghost`,disabled:l,onClick:()=>c(null),children:n.newShare}),(0,$.jsxs)(vt,{type:`button`,variant:`ghost`,disabled:l,onClick:()=>void A(),children:[(0,$.jsx)(DC,{className:`size-4`}),n.revoke]}),(0,$.jsxs)(vt,{type:`button`,disabled:l,onClick:()=>void k(),children:[l?(0,$.jsx)(je,{className:`size-4 animate-spin`}):(0,$.jsx)(Fv,{className:`size-4`}),n.refresh]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,children:n.cancel})}),(0,$.jsxs)(vt,{type:`button`,disabled:!a||l||a.messageCount===0||C===`hosted`&&!T,onClick:()=>void O(),children:[l?(0,$.jsx)(je,{className:`size-4 animate-spin`}):null,n.create]})]})})]})]})]})}function K_e(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var q_e={share:`分享会话`,title:`分享会话`,hint:`创建当前会话的只读快照`,created:`分享已创建`,createdHint:`复制链接后即可发送给其他人`,close:`关闭`,loading:`正在准备预览…`,snapshotMessages:`当前快照包含 {{count}} 条公开消息`,scope:`默认仅包含用户与助手的可见文本;系统提示、推理、工具参数、命令文本、输出和路径始终不会公开。`,ttl:`有效期`,maxViews:`最大访问次数`,includeTools:`包含 {{count}} 条工具活动`,toolDisclosure:`只公开工具名称和成功/失败状态,不公开参数与结果。`,attachments:`附件`,attachmentDisclosure:`附件默认不公开,请逐个选择。`,oneHour:`1 小时`,oneDay:`24 小时`,sevenDays:`7 天`,thirtyDays:`30 天`,unlimited:`不限`,description:`说明(可选)`,publicWarning:`任何获得链接的人都可以查看这份快照。后续会话消息不会自动加入。`,cancel:`取消`,create:`创建分享`,revoke:`撤销分享`,refresh:`更新到当前会话`,open:`打开分享页面`,revision:`快照版本 {{revision}}`,sharedAttachments:`{{count}} 个附件`,newShare:`新建分享`,delivery:`分享方式`,hosted:`XOPC 托管分享`,local:`本机 Gateway 分享`,reviewContent:`检查将要公开的内容`,you:`你`,assistant:`助手`},J_e={share:`Share conversation`,title:`Share conversation`,hint:`Create a read-only snapshot of this conversation`,created:`Share created`,createdHint:`Copy the link and send it to anyone`,close:`Close`,loading:`Preparing preview…`,snapshotMessages:`This snapshot contains {{count}} public messages`,scope:`Only visible user and assistant text is included by default. System prompts, reasoning, tool arguments, command text, output, and paths always stay private.`,ttl:`Expires after`,maxViews:`Maximum views`,includeTools:`Include {{count}} tool activities`,toolDisclosure:`Only tool names and success/failure states are shared; arguments and results stay private.`,attachments:`Attachments`,attachmentDisclosure:`Attachments stay private unless selected individually.`,oneHour:`1 hour`,oneDay:`24 hours`,sevenDays:`7 days`,thirtyDays:`30 days`,unlimited:`Unlimited`,description:`Description (optional)`,publicWarning:`Anyone with the link can view this snapshot. Later conversation messages are not added automatically.`,cancel:`Cancel`,create:`Create share`,revoke:`Revoke share`,refresh:`Update to current conversation`,open:`Open shared page`,revision:`Snapshot revision {{revision}}`,sharedAttachments:`{{count}} attachments`,newShare:`New share`,delivery:`Delivery`,hosted:`XOPC Hosted Share`,local:`Local Gateway Share`,reviewContent:`Review the content to publish`,you:`You`,assistant:`Assistant`},Y_e=`(max-width: 767px)`,D7=(0,Z.memo)(function(e){let t=(0,Q.c)(48),{chatHeadline:n,chatAgents:r,showChatAgentSelector:i,chatAgentId:a,onChatAgentChange:o,chatAgentDisabled:s,sessionKey:c,hasMessages:l,workspacePath:d,userContextMode:f,canChangeWorkspace:p,workspaceDisabled:m,onWorkspaceChange:h,projectId:g,context:_}=e,v=l===void 0?!1:l,b=f===void 0?`enabled`:f,x=p===void 0?!1:p,S=m===void 0?!1:m,C=ct(X_e),{sessionKey:w}=u(),T=w&&w!==`new`?decodeURIComponent(w):null,E;t[0]!==T||t[1]!==c?(E=c?.trim()||T,t[0]=T,t[1]=c,t[2]=E):E=t[2];let D=E,{data:O,error:k,mutate:A}=P5(D??null,!1),j=!k&&(!O||!!O.environment?.available),M;t[3]===C?M=t[4]:(M=rt(C),t[3]=C,t[4]=M);let N=M,P=NM(Z_e),F;t[5]===D?F=t[6]:(F=e=>D?!!e.openBySessionKey[D]:!1,t[5]=D,t[6]=F);let I=E7(F),L=E7(Q_e),R=VM($_e),z=qM(eve),B=qM(tve),V=window.electronAPI?.platform,H;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(H=B_e(V),t[7]=H):H=t[7];let ee=H,te=n5(Y_e),ne;t[8]!==R||t[9]!==P?(ne=mM({runtime:pM(),sidebarCollapsed:P,mobileNavOpen:R}),t[8]=R,t[9]=P,t[10]=ne):ne=t[10];let U=te?!R:ne.collapsedNewChatVisible,W,re;t[11]===B?(W=t[12],re=t[13]):(W=()=>()=>B(),re=[B],t[11]=B,t[12]=W,t[13]=re),(0,Z.useLayoutEffect)(W,re);let ie,ae;t[14]!==D||t[15]!==L?(ie=()=>{if(!D||!window.electronAPI?.terminal)return;let e=e=>{V_e(e,V)&&(e.preventDefault(),L(D))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},ae=[D,V,L],t[14]=D,t[15]=L,t[16]=ie,t[17]=ae):(ie=t[16],ae=t[17]),(0,Z.useEffect)(ie,ae);let oe,se;return t[18]!==D||t[19]!==x||t[20]!==s||t[21]!==a||t[22]!==r||t[23]!==n||t[24]!==_||t[25]!==v||t[26]!==N.chat.agentNoMatches||t[27]!==N.chat.agentPlaceholder||t[28]!==N.chat.agentSearchPlaceholder||t[29]!==N.chat.temporarySession||t[30]!==N.chat.temporarySessionHint||t[31]!==N.chat.terminal.open||t[32]!==N.sidebar.newTask||t[33]!==o||t[34]!==h||t[35]!==g||t[36]!==A||t[37]!==z||t[38]!==i||t[39]!==U||t[40]!==I||t[41]!==L||t[42]!==b||t[43]!==j||t[44]!==S||t[45]!==d?(oe=()=>{z({className:`bg-surface-panel`,startExtra:U?(0,$.jsx)(y,{to:_L(g),state:{forceNewChat:!0,agentId:a,temporary:b===`temporary`},className:X(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-sm font-medium leading-none text-fg transition-colors hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`,pj),title:N.sidebar.newTask,children:(0,$.jsx)(Me,{className:`size-4 shrink-0 text-accent-fg`,strokeWidth:2,"aria-hidden":!0})}):null,main:(0,$.jsx)(`div`,{className:`w-full min-w-0 max-w-(--max-width-chat-frame) px-3 sm:px-5 xl:px-6`,children:(0,$.jsx)(`h1`,{className:X(`min-w-0 truncate text-[0.9375rem] font-semibold leading-5 tracking-tight text-fg`,U?`text-left md:text-center`:`text-left`),title:n,children:n})}),end:(0,$.jsxs)(`div`,{className:X(`flex min-w-0 max-w-[min(32rem,calc(100vw-8rem))] shrink-0 items-center justify-end gap-2`,pj),children:[i?(0,$.jsx)(`div`,{className:`min-w-0 w-fit shrink-0`,children:(0,$.jsx)(O_e,{items:r,value:a,disabled:s,placeholder:N.chat.agentPlaceholder,searchPlaceholder:N.chat.agentSearchPlaceholder,noMatches:N.chat.agentNoMatches,compact:!0,contentSide:`bottom`,contentAlign:`end`,onChange:o})}):null,b===`temporary`?(0,$.jsx)(`span`,{className:`shrink-0 rounded-full border border-edge px-2 py-1 text-xs font-medium text-fg-muted`,title:N.chat.temporarySessionHint,children:N.chat.temporarySession}):null,D&&v?(0,$.jsx)(G_e,{sessionKey:D},`share:${D}`):null,D&&window.electronAPI?.terminal?(0,$.jsx)(`button`,{type:`button`,className:X(`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,I&&`bg-surface-hover text-fg`),title:`${N.chat.terminal.open} (${ee})`,"aria-label":N.chat.terminal.open,"aria-pressed":I,onClick:()=>L(D),children:(0,$.jsx)(px,{className:`size-4`})}):null,(0,$.jsx)(N_e,{..._,agentId:a,temporary:b===`temporary`,sessionKey:D??null},`context:${D??_?.project?.id??`new`}`),(D||g)&&h?(0,$.jsx)(P_e,{sessionKey:D,workspacePath:D?d:_?.project?.workspaceRoot,available:j,canChangeWorkspace:x,disabled:S,onWorkspaceChange:async e=>{await h(e),await A()}},`workspace:${D??g}`):null]})})},se=[n,r,i,a,o,s,U,N.chat.agentPlaceholder,N.chat.agentSearchPlaceholder,N.chat.agentNoMatches,N.chat.temporarySession,N.chat.temporarySessionHint,N.chat.terminal.open,ee,N.sidebar.newTask,g,_,I,D,v,d,j,A,b,x,S,h,L,z],t[18]=D,t[19]=x,t[20]=s,t[21]=a,t[22]=r,t[23]=n,t[24]=_,t[25]=v,t[26]=N.chat.agentNoMatches,t[27]=N.chat.agentPlaceholder,t[28]=N.chat.agentSearchPlaceholder,t[29]=N.chat.temporarySession,t[30]=N.chat.temporarySessionHint,t[31]=N.chat.terminal.open,t[32]=N.sidebar.newTask,t[33]=o,t[34]=h,t[35]=g,t[36]=A,t[37]=z,t[38]=i,t[39]=U,t[40]=I,t[41]=L,t[42]=b,t[43]=j,t[44]=S,t[45]=d,t[46]=oe,t[47]=se):(oe=t[46],se=t[47]),(0,Z.useLayoutEffect)(oe,se),null});function X_e(e){return e.language}function Z_e(e){return e.collapsed}function Q_e(e){return e.toggle}function $_e(e){return e.mobileNavOpen}function eve(e){return e.setPageHeader}function tve(e){return e.clearPageHeader}var O7=(0,Z.memo)(function(){let e=(0,Q.c)(13),t=ct(nve),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n,i=zF(rve),a=zF(ive);if(i===`idle`)return null;if(i===`error`&&a){let t;e[2]===a?t=e[3]:(t=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:a}),e[2]=a,e[3]=t);let n;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=X(`shrink-0 rounded-xl border border-red-200 bg-white px-2.5 py-1 text-xs font-medium text-red-700`,`hover:bg-red-50 dark:border-red-800 dark:bg-red-950/40 dark:text-red-300 dark:hover:bg-red-950/70`,gk.transition,gk.press,gk.focusRingPanel),e[4]=n):n=e[4];let i;e[5]===r.connection.reconnect?i=e[6]:(i=(0,$.jsx)(`button`,{type:`button`,className:n,onClick:ave,children:r.connection.reconnect}),e[5]=r.connection.reconnect,e[6]=i);let o;return e[7]!==t||e[8]!==i?(o=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-red-100 bg-red-50 px-4 py-2 text-sm text-red-600 dark:border-red-900/40 dark:bg-red-950/50 dark:text-red-400`,children:[t,i]}),e[7]=t,e[8]=i,e[9]=o):o=e[9],o}if(i===`connecting`||i===`reconnecting`){let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`span`,{className:`inline-block size-3 animate-spin rounded-full border-2 border-amber-500 border-t-transparent`,"aria-hidden":!0}),e[10]=t):t=e[10];let n=i===`reconnecting`?r.connection.reconnecting:r.connection.connecting,a;return e[11]===n?a=e[12]:(a=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-amber-100 bg-amber-50 px-4 py-2 text-sm text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/50 dark:text-amber-200`,children:[t,(0,$.jsx)(`span`,{children:n})]}),e[11]=n,e[12]=a),a}return null});function nve(e){return e.language}function rve(e){return e.connectionState}function ive(e){return e.error}function ave(){return XF()}function k7(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,String(n)),e)}function ove(e){let t=(0,Q.c)(4),{status:n}=e;if(n===`completed`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`span`,{className:`mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-fg-muted text-surface-panel`,children:(0,$.jsx)(W,{className:`size-3`,strokeWidth:2.5,"aria-hidden":!0})}),t[0]=e):e=t[0],e}if(n===`in_progress`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(zs,{className:`mt-0.5 size-4 shrink-0 text-accent`,strokeWidth:2,"aria-hidden":!0}),t[1]=e):e=t[1],e}if(n===`cancelled`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(vi,{className:`mt-0.5 size-4 shrink-0 text-fg-disabled`,strokeWidth:1.75,"aria-hidden":!0}),t[2]=e):e=t[2],e}let r;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(dc,{className:`mt-0.5 size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),t[3]=r):r=t[3],r}function sve(e,t){return e?`${k7(e.files.length===1?t.filesChangedOne:t.filesChangedOther,{count:e.files.length})} · +${e.added} -${e.removed}`:null}function cve(e){let t=(0,Q.c)(61),{plan:n,changeSummary:r,isStreaming:i,labels:a}=e,o=n.currentIndex==null?void 0:n.items[n.currentIndex-1],s;t[0]===n.items?s=t[1]:(s=n.items.every(dve),t[0]=n.items,t[1]=s);let c=s,l=n.items.every(uve),u;t[2]!==a.completedProgress||t[3]!==n.completedCount||t[4]!==n.totalCount?(u=k7(a.completedProgress,{completed:n.completedCount,total:n.totalCount}),t[2]=a.completedProgress,t[3]=n.completedCount,t[4]=n.totalCount,t[5]=u):u=t[5];let d=u,f=a.ended;if(c)f=a.finished;else if(o){let e=n.currentIndex??1,r;t[6]!==a.stepProgress||t[7]!==n.totalCount||t[8]!==e?(r=k7(a.stepProgress,{current:e,total:n.totalCount}),t[6]=a.stepProgress,t[7]=n.totalCount,t[8]=e,t[9]=r):r=t[9],f=r}else !l&&i&&(f=a.planned);let p;t[10]!==r||t[11]!==a?(p=sve(r,a),t[10]=r,t[11]=a,t[12]=p):p=t[12];let m=p,h=o?.title,g;t[13]!==m||t[14]!==f||t[15]!==h?(g=[f,h,m].filter(Boolean),t[13]=m,t[14]=f,t[15]=h,t[16]=g):g=t[16];let _=g.join(` · `),v;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(v=X(`inline-flex min-h-9 max-w-full items-center gap-2 rounded-pill border border-edge-subtle bg-surface-panel px-3 py-1.5 text-sm text-fg shadow-surface`,gk.transition,`hover:border-edge hover:bg-surface-hover/60`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),t[17]=v):v=t[17];let y=`${a.heading}: ${_}`,b;t[18]!==o||t[19]!==c?(b=c?(0,$.jsx)(W,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:2,"aria-hidden":!0}):o?(0,$.jsx)(zs,{className:`size-4 shrink-0 text-accent`,strokeWidth:2,"aria-hidden":!0}):(0,$.jsx)(h_,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[18]=o,t[19]=c,t[20]=b):b=t[20];let x;t[21]===f?x=t[22]:(x=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:f}),t[21]=f,t[22]=x);let S;t[23]===o?S=t[24]:(S=o?(0,$.jsxs)(`span`,{className:`min-w-0 truncate text-fg-muted`,children:[`· `,o.title]}):null,t[23]=o,t[24]=S);let C;t[25]===m?C=t[26]:(C=m?(0,$.jsxs)(`span`,{className:`hidden shrink-0 tabular-nums text-fg-subtle sm:inline`,children:[`· `,m]}):null,t[25]=m,t[26]=C);let w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(is,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[27]=w):w=t[27];let T;t[28]!==S||t[29]!==C||t[30]!==y||t[31]!==b||t[32]!==x?(T=(0,$.jsx)(pe,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:v,"aria-label":y,children:[b,x,S,C,w]})}),t[28]=S,t[29]=C,t[30]=y,t[31]=b,t[32]=x,t[33]=T):T=t[33];let E;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(h_,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[34]=E):E=t[34];let D;t[35]===a.heading?D=t[36]:(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[E,(0,$.jsx)(`span`,{children:a.heading})]}),t[35]=a.heading,t[36]=D);let O;t[37]===n.explanation?O=t[38]:(O=n.explanation?(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-relaxed text-fg-muted`,children:n.explanation}):null,t[37]=n.explanation,t[38]=O);let k;t[39]!==D||t[40]!==O?(k=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[D,O]}),t[39]=D,t[40]=O,t[41]=k):k=t[41];let A;t[42]===d?A=t[43]:(A=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-subtle`,children:d}),t[42]=d,t[43]=A);let j;t[44]!==k||t[45]!==A?(j=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge-subtle px-4 py-3`,children:[k,A]}),t[44]=k,t[45]=A,t[46]=j):j=t[46];let M=a.heading,N;t[47]===n.items?N=t[48]:(N=n.items.map(lve),t[47]=n.items,t[48]=N);let P;t[49]!==a.heading||t[50]!==N?(P=(0,$.jsx)(`ol`,{className:`max-h-[min(22rem,55vh)] overflow-y-auto px-4 py-3`,"aria-label":M,children:N}),t[49]=a.heading,t[50]=N,t[51]=P):P=t[51];let F;t[52]===m?F=t[53]:(F=m?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-4 py-2 text-right text-xs tabular-nums text-fg-subtle`,children:m}):null,t[52]=m,t[53]=F);let I;t[54]!==j||t[55]!==P||t[56]!==F?(I=(0,$.jsx)(re,{children:(0,$.jsxs)(de,{side:`top`,align:`center`,sideOffset:8,collisionPadding:16,className:`z-50 w-[min(28rem,calc(100vw-2rem))] overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[j,P,F]})}),t[54]=j,t[55]=P,t[56]=F,t[57]=I):I=t[57];let L;return t[58]!==T||t[59]!==I?(L=(0,$.jsx)(`div`,{className:`flex w-full justify-center pb-2 pt-1`,children:(0,$.jsxs)(se,{children:[T,I]})}),t[58]=T,t[59]=I,t[60]=L):L=t[60],L}function lve(e){return(0,$.jsxs)(`li`,{className:X(`flex gap-3 py-2 text-sm leading-relaxed text-fg-muted`,e.status===`in_progress`&&`font-medium text-fg`,e.status===`cancelled`&&`text-fg-disabled`),children:[(0,$.jsx)(ove,{status:e.status}),(0,$.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:e.title})]},e.id)}function uve(e){return e.status===`completed`||e.status===`cancelled`}function dve(e){return e.status===`completed`}function fve(e){let t=P7(e.source,e.explanation,e.items.map(e=>({...e})));return t&&t.items.some(e=>e.status===`pending`||e.status===`in_progress`)?t:null}var pve=new Set([`pending`,`in_progress`,`completed`,`cancelled`]);function A7(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function j7(e){return e.trim().toLowerCase().replace(/-/g,`_`).split(`__`).at(-1)??``}function M7(e){let t=A7(e.details);return t&&Object.keys(t).length>0?t:hK(e.result).details}function N7(e){let t=typeof e==`string`?e.trim():``;return pve.has(t)?t:null}function P7(e,t,n){if(n.length===0)return null;let r=n.findIndex(e=>e.status===`in_progress`);return{source:e,explanation:t,items:n,currentIndex:r>=0?r+1:void 0,completedCount:n.filter(e=>e.status===`completed`).length,totalCount:n.length}}function mve(e){if(!Array.isArray(e.plan))return null;let t=e.plan.flatMap((e,t)=>{let n=A7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`update-plan-${t}`,i=typeof n?.step==`string`?n.step.trim():``,a=N7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]});return P7(`update_plan`,typeof e.explanation==`string`&&e.explanation.trim()?e.explanation.trim():void 0,t)}function hve(e){return Array.isArray(e.items)?P7(`todo`,void 0,e.items.flatMap((e,t)=>{let n=A7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`todo-${t}`,i=typeof n?.content==`string`?n.content.trim():``,a=N7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]})):null}function gve(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.type!==`tool_use`||n.status===`error`)continue;let r=j7(n.name),i=M7(n);if(i){if(r===`update_plan`)return{found:!0,plan:mve(i)};if(r===`todo`)return{found:!0,plan:hve(i)}}}return{found:!1,plan:null}}function F7(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function _ve(e){let t=new Set,n=0,r=0;for(let i of e){if(i.type!==`tool_use`||i.status===`error`||j7(i.name)!==`apply_patch`)continue;let e=M7(i);if(e){if(Array.isArray(e.files))for(let n of e.files)typeof n==`string`&&n.trim()&&t.add(n.trim());if(t.size===0&&Array.isArray(e.changes))for(let n of e.changes){let e=A7(n),r=typeof e?.moveTo==`string`?e.moveTo:typeof e?.path==`string`?e.path:``;r.trim()&&t.add(r.trim())}n+=F7(e.added),r+=F7(e.removed)}}return t.size>0||n>0||r>0?{files:[...t],added:n,removed:r}:null}function vve(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.role!==`assistant`)continue;let r=gve(n.content??[]);if(!r.found)continue;if(!r.plan||!r.plan.items.some(e=>e.status===`pending`||e.status===`in_progress`))return null;let i=e.slice(t).flatMap(e=>e.role===`assistant`?e.content??[]:[]);return{plan:r.plan,changeSummary:_ve(i)}}return null}function I7(e,t){if(!t)return null;let n=-1;for(let t=e.length-1;t>=0;--t)if(e[t]?.role===`user`){n=t;break}return vve(e.slice(n+1))}function L7(e){let t=String(e??``).trim();return!t||t===`new`?null:t}function yve(e){let t=String(e.streamSessionKey??``).trim(),n=L7(e.routeSessionKey);return!t||!n?!1:t===n}function bve(e){let t=L7(e.routeSessionKey);return t?e.cacheSessionKey===t:!1}function xve(e){let t=String(e.chatId??``).trim();if(!t)return!1;let n=L7(e.routeSessionKey);return n?n===t:!1}function Sve(e,t){return e?`new`:t??null}function Cve(e,t){if(!(e||!t))return decodeURIComponent(t)}function wve(e){return!e.viewSessionKey||e.sessionKey!==e.viewSessionKey?[]:e.streamingMsg?[...e.messages,e.streamingMsg]:e.messages}function Tve(e){e()}async function R7(e){let t=String(e??``).trim();if(!t)return{active:!1};let n=await ot(Y(FD(t)));if(!n.ok)throw Error(`Active run lookup failed (${n.status})`);return AD(await n.json())}async function Eve(e){let t=String(e??``).trim();if(!t)return null;let n=YR(t);try{let e=await R7(t);return e.active&&e.runId?(XR(t,e.runId),e.runId):(n&&$R(t,n),null)}catch{}return YR(t)}var Dve=3e4,z7=null;function Ove(e){z7={sessions:[...e],fetchedAt:Date.now()}}function kve(e){let t=e.key.trim();if(!t)return;let n=new Date().toISOString();z7={sessions:[{...e,key:t,messageCount:e.messageCount??0,updatedAt:e.updatedAt??n},...(z7?.sessions??[]).filter(e=>e.key.trim()!==t)],fetchedAt:Date.now()}}function Ave(){return z7?Date.now()-z7.fetchedAt>Dve?(z7=null,null):z7.sessions:null}var jve=`webchat`;function B7(e){if(!e||typeof e!=`object`)throw Error(`Invalid session agent config response`);let t=e;if(t.ok!==!0||!t.payload||typeof t.payload!=`object`)throw Error(`Invalid session agent config response`);let n=t.payload,r=n.workspaceSource,i=n.activityDetail,a=i&&typeof i==`object`?i:null,o=e=>e===`off`||e===`on`||e===`stream`;if(typeof n.thinkingLevel!=`string`||typeof n.model!=`string`||typeof n.reasoningLevel!=`string`||typeof n.effectiveWorkspacePath!=`string`||typeof n.workingDirectoryLocked!=`boolean`||n.userContextMode!==`enabled`&&n.userContextMode!==`off`&&n.userContextMode!==`temporary`||r!==`execution_environment`&&r!==`project`&&r!==`session_override`&&r!==`agent_default_root`&&r!==`agent_workspace`)throw Error(`Invalid session agent config response`);return{thinkingLevel:n.thinkingLevel,configVersion:typeof n.configVersion==`number`?n.configVersion:void 0,fixedModel:n.fixedModel===!0,model:n.model,reasoningLevel:n.reasoningLevel,activityDetail:a&&o(a.default)&&(a.override===null||o(a.override))&&o(a.effective)&&(a.source===`session`||a.source==="default")?{default:a.default,override:a.override,effective:a.effective,source:a.source}:{default:o(n.reasoningLevel)?n.reasoningLevel:`on`,override:o(n.reasoningLevel)?n.reasoningLevel:null,effective:o(n.reasoningLevel)?n.reasoningLevel:`on`,source:o(n.reasoningLevel)?`session`:`default`},effectiveWorkspacePath:n.effectiveWorkspacePath,workingDirectoryLocked:n.workingDirectoryLocked,userContextMode:n.userContextMode,workspaceSource:r}}var V7=new Map,H7=new Map,U7=50,Mve=500,W7=new Map;function Nve(e){let t=e.trim().split(`:`);if(t.length<6)return null;let[n,r,i,a,o,...s]=t,c=s.join(`:`).trim();return n!==`agent`||!r?.trim()||i!==`webchat`||a!=="default"||o!==`direct`||!c?null:{agentId:r.trim().toLowerCase(),channel:i,chatId:c}}async function G7(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:t.error?.message??`HTTP ${e.status}`}var Pve=class{async forkSessionAtTurn(e,t){let n=await ot(Y(ND(e)),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({lastTurnId:t})});if(!n.ok)throw Error(await G7(n));return wD(await n.json())}async loadSessions(){let e=[],t=0;for(let n=0;n<100;n++){let n=await ZB({channel:jve,limit:100,offset:t});for(let t of n.items)e.push({key:t.key,sessionId:t.sessionId,name:t.name,updatedAt:t.updatedAt,messageCount:t.messageCount,sourceChannel:t.sourceChannel,sourceChatId:t.sourceChatId,projectId:t.projectId,customData:t.customData,routing:t.routing});if(!n.hasMore)break;t+=100}let n=e.sort((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime());return Ove(n),n}async loadSessionAgentConfig(e){let t=V7.get(e);if(t)return t;let n=(async()=>{let t=await ot(Y(`/api/sessions/${encodeURIComponent(e)}/agent-config`));if(!t.ok)throw Error(`HTTP ${t.status}`);return B7(await t.json())})().finally(()=>{V7.delete(e)});return V7.set(e,n),n}async patchSessionAgentConfig(e,t){let n=await ot(Y(`/api/sessions/${encodeURIComponent(e)}/agent-config`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}return B7(await n.json())}async patchTaskConversationModel(e,t,n,r){let i=await ot(Y(`/api/tasks/${encodeURIComponent(e)}/conversation/config`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:t,thinkingLevel:n,configVersion:r})});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(e.error??`HTTP ${i.status}`)}return B7(await i.json())}fetchSessionActiveRun(e){return R7(e)}async loadSession(e,t=0,n,r){let i=`${r??e}\0${t}\0${n??``}`,a=H7.get(i);if(a)return a;let o=(async()=>{let i=async(t,n)=>{let i=await Gt(Y(r?`/api/tasks/${encodeURIComponent(r)}/conversation/history?${new URLSearchParams({limit:String(U7),...n?{before:n}:{offset:String(t)}}).toString()}`:PD(e,{limit:U7,before:n,offset:n?void 0:t})));if(!i.ok)throw Error(`HTTP ${i.status}: ${i.statusText}`);return CD(await i.json())},a=await i(t,n),o=a.session.messages,s=hR(o),c=a.pagination.hasMore,l=a.pagination.nextBeforeCursor,u=typeof a.session.name==`string`&&a.session.name.trim()?a.session.name.trim():void 0;for(;t===0&&!n&&c&&l&&o.length<Mve&&s[0]?.role===`assistant`;){a=await i(0,l);let e=a.session.messages;if(e.length===0)break;o=[...e,...o],s=hR(o),c=a.pagination.hasMore,l=a.pagination.nextBeforeCursor}return{messages:s,hasMore:c,name:u,nextBeforeCursor:l}})().finally(()=>{H7.delete(i)});return H7.set(i,o),o}async loadTimeline(e,t){let n=t??e,r=W7.get(n);if(r)return r;let i=(async()=>{let n=await Gt(Y(t?`/api/tasks/${encodeURIComponent(t)}/conversation/timeline`:`/api/sessions/${encodeURIComponent(e)}/timeline`));if(!n.ok)throw Error(`HTTP ${n.status}: ${n.statusText}`);let r=await n.json();if(r.ok!==!0||!Array.isArray(r.items))throw Error(`Invalid session timeline response`);return r.items})().finally(()=>{W7.delete(n)});return W7.set(n,i),i}async createSession(e){let t={channel:`webchat`},n=e?.agentId?.trim();n&&(t.agentId=n.toLowerCase());let r=e?.projectId?.trim();r&&(t.projectId=r),e?.temporary===!0&&(t.temporary=!0),e?.initialAgentConfig&&(t.initialAgentConfig=e.initialAgentConfig),e?.executionMode&&(t.executionMode=e.executionMode);let i=await ot(Y(`/api/sessions`),{method:`POST`,body:JSON.stringify(t)});if(!i.ok)throw Error(await G7(i));return(await i.json()).session}async ensureSessionExists(e){let t=e.trim();if(!t)throw Error(`Session key is required`);let n=await ot(Y(`/api/sessions/resolve`),{method:`POST`,body:JSON.stringify({sessionKey:t})});if(n.ok)return;if(n.status!==404)throw Error(await G7(n));let r=Nve(t);if(!r)throw Error(`Session not found`);let i=await ot(Y(`/api/sessions`),{method:`POST`,body:JSON.stringify({channel:r.channel,agentId:r.agentId,chat_id:r.chatId})});if(!i.ok)throw Error(await G7(i))}async fetchSessionName(e){let t=await Gt(Y(`/api/sessions/${encodeURIComponent(e)}?offset=0&limit=1`));if(!t.ok)return;let n=(await t.json()).session?.name;return typeof n==`string`&&n.trim()?n.trim():void 0}updateUrl(e){let t=`#/chat/${encodeURIComponent(e)}`;if(location.hash!==t){let e=window.history.state,n=e&&typeof e==`object`&&!Array.isArray(e)?{...e}:e;history.replaceState(n,``,t)}}parseSessionFromHash(){let e=location.hash.slice(1),t=e.match(/^\/chat\/(.+)$/)||e.match(/^chat\/(.+)$/),n=t?decodeURIComponent(t[1]):null;return n&&n!==`new`?n:null}async deleteMessages(e,t){let n=await ot(Y(`/api/sessions/${encodeURIComponent(e)}/messages`),{method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`HTTP ${n.status}`)}}};function Fve(e){return e===`on`||e===`stream`||e===`off`?e:`on`}function K7(e,t){let n=String(e??``).trim();if(!n)return;let r=Kz.getState(),i=r.sessions[n]?.configVersion;i!==void 0&&(t.configVersion===void 0||t.configVersion<i)||r.patchSessionMeta(n,{model:t.model,configVersion:t.configVersion,thinkingLevel:t.thinkingLevel||`medium`,reasoningLevel:Fve(t.activityDetail?.default??t.reasoningLevel??void 0),effectiveWorkspacePath:t.effectiveWorkspacePath??``,workspaceSource:t.workspaceSource??`agent_default_root`,userContextMode:t.userContextMode??`enabled`})}function Ive(e){e.sendingRef.current=!1,e.streamingRef.current=!1}function Lve(e){return e.isNewRoute?`creating-session`:e.sessionRoutePending||e.showSessionLoading||e.sessionContentLoading?`loading-history`:e.messageCount===0?`ready-empty`:`ready-conversation`}var Rve=`xopc.chat.clarifyPrompt:v1:`;function q7(e){return`${Rve}${encodeURIComponent(e.trim())}`}function J7(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function zve(e){if(!J7(e))return null;let t=e.requestId,n=e.question;if(typeof t!=`string`||!t.trim()||typeof n!=`string`||!n.trim())return null;let r=Array.isArray(e.choices)?e.choices.filter(e=>typeof e==`string`&&e.trim().length>0):void 0,i=typeof e.default==`string`&&e.default.trim()?e.default.trim():void 0;return{requestId:t.trim(),question:n.trim(),choices:r&&r.length>=2?r:void 0,default:i}}function Bve(e){let t=e?.trim();if(!t||typeof localStorage>`u`)return null;try{let e=localStorage.getItem(q7(t));if(!e)return null;let n=JSON.parse(e);return J7(n)?zve(n.prompt??n):null}catch{return null}}function Vve(e,t){let n=e?.trim();if(!(!n||typeof localStorage>`u`))try{localStorage.setItem(q7(n),JSON.stringify({v:1,prompt:t}))}catch{}}function Y7(e){let t=e?.trim();if(!(!t||typeof localStorage>`u`))try{localStorage.removeItem(q7(t))}catch{}}function Hve(e){let{sessionKey:t,decodedKey:n,sessionKeyRef:r,sendingRef:i,streamingRef:a,modelSupportsThinking:o,thinkingLevel:s,shouldApplyStreamUpdate:c}=e,[l,u]=(0,Z.useState)(null),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(null),[g,_]=(0,Z.useState)([]),v=(0,Z.useRef)([]),[y,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(null),C=(0,Z.useRef)(null),w=(0,Z.useRef)(-1);h.current=l,v.current=g,C.current=x;let T=(0,Z.useCallback)(e=>{if(!e||typeof e!=`object`)return;let t=e;if(t.sessionKey!==r.current||typeof t.revision!=`number`||!Array.isArray(t.inputs)||t.revision<w.current)return;let n=Ohe(t.inputs);w.current=t.revision,v.current=n,_(n),C.current&&!n.some(e=>e.id===C.current)&&S(null)},[r]),E=(0,Z.useCallback)(async e=>{let t=await ot(Y(`/api/sessions/${encodeURIComponent(e)}/input-state`)).catch(()=>null);!t?.ok||r.current!==e||T((await t.json().catch(()=>null))?.payload)},[T,r]);(0,Z.useEffect)(()=>{w.current=-1,v.current=[],_([]),S(null),!(!t||t!==n)&&(u(Bve(t)),E(t))},[n,E,t]),(0,Z.useEffect)(()=>{let e=e=>T(e.detail),t=()=>{let e=r.current;e&&E(e)};return window.addEventListener(`session-input-state`,e),window.addEventListener(`gateway-realtime-connected`,t),()=>{window.removeEventListener(`session-input-state`,e),window.removeEventListener(`gateway-realtime-connected`,t)}},[T,E,r]);let D=(0,Z.useCallback)(()=>{m(null),u(null)},[]),O=(0,Z.useCallback)(e=>{let t=String(e??``).trim();t&&(Y7(t),r.current===t&&(m(null),u(null)))},[r]),k=(0,Z.useCallback)(()=>{let e=r.current;e&&Y7(e),m(null),u(null)},[r]),A=(0,Z.useCallback)(()=>{S(null)},[]),j=(0,Z.useCallback)(()=>{let e=r.current;e&&Y7(e),m(null),u(null),S(null)},[r]),M=(0,Z.useCallback)(e=>{O(e)},[O]),N=(0,Z.useCallback)(e=>t=>{Vve(e,t),c(e)&&(i.current=!1,a.current=!1,Kz.getState().setSessionFlags(e,{sending:!1,streaming:!1}),Kz.getState().setSessionProgress(e,null),m(null),u(t))},[c,i,a]),P=(0,Z.useCallback)(async(e,t,n)=>{let i=e.trim();if(!i&&!t?.length)return;if(v.current.length>=10)throw Error(`At most 10 pending messages are allowed`);let a=o?s:`off`,c=r.current;if(!c)throw Error(`No active session`);let l=await dI(),u=await ot(Y(`/api/sessions/${encodeURIComponent(c)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({configVersion:Kz.getState().sessions[c]?.configVersion,clientMessageId:crypto.randomUUID(),delivery:`next`,content:i||e,attachments:t?.length?t:void 0,thinking:a,contextRefs:n?.map(({kind:e,sourceId:t,expectedVersion:n})=>({kind:e,sourceId:t,expectedVersion:n})),origin:l})}),d=await u.json().catch(()=>null);if(!u.ok){let e=typeof d?.error==`string`?d.error:d?.error?.message;throw Error(e??`Message was not accepted`)}if(!d?.payload?.state)throw Error(`Gateway returned an invalid input state`);T(d.payload.state)},[T,o,r,s]),F=(0,Z.useCallback)(e=>{S(e)},[]),I=(0,Z.useCallback)(()=>{S(null)},[]),L=(0,Z.useCallback)((e,t,n,i,a)=>{let c=t.trim(),l=v.current,u=l.findIndex(t=>t.id===e);if(u<0){S(null);return}if(!c&&!n?.length){let t=r.current;t&&ot(Y(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${l[u].version}`),{method:`DELETE`}).then(async e=>T((await e.json().catch(()=>null))?.payload)).catch(()=>{E(t)}),S(null);return}let d=o?i??s:`off`;S(null);let f=r.current;f&&ot(Y(`/api/sessions/${encodeURIComponent(f)}/inputs/${encodeURIComponent(e)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:l[u].version,content:c||t,attachments:n?.length?n:void 0,thinking:d,contextRefs:(a??[]).map(({kind:e,sourceId:t,expectedVersion:n})=>({kind:e,sourceId:t,expectedVersion:n}))})}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(f)})},[T,o,E,r,s]),R=(0,Z.useCallback)(e=>{C.current===e&&S(null);let t=r.current,n=v.current.find(t=>t.id===e);!t||!n||ot(Y(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${n.version}`),{method:`DELETE`}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(t)})},[T,E,r]);return{clarifyPrompt:l,clarifySubmitting:d,clarifySubmitError:p,clarifyPromptRef:h,pendingFollowUps:g,pendingFollowUpsRef:v,steeringFollowUpId:y,editingFollowUpId:x,addPendingFollowUp:P,beginEditFollowUp:F,cancelEditFollowUp:I,commitEditFollowUp:L,removePendingFollowUp:R,movePendingFollowUp:(0,Z.useCallback)((e,t)=>{let n=v.current.filter(e=>e.status===`queued`),i=n.findIndex(t=>t.id===e);if(i<0)return;let a=t===`up`?i-1:i+1,o=r.current,s=n[i];!o||!s||a<0||a>=n.length||ot(Y(`/api/sessions/${encodeURIComponent(o)}/inputs/${encodeURIComponent(s.id)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:s.version,position:a})}).then(async e=>T((await e.json().catch(()=>null))?.payload)).catch(()=>{E(o)})},[T,E,r]),reorderPendingFollowUp:(0,Z.useCallback)((e,t)=>{let n=r.current,i=v.current[e],a=v.current[t],o=v.current.filter(e=>e.status===`queued`),s=a?o.findIndex(e=>e.id===a.id):-1;!n||i?.status!==`queued`||a?.status!==`queued`||s<0||ot(Y(`/api/sessions/${encodeURIComponent(n)}/inputs/${encodeURIComponent(i.id)}`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({version:i.version,position:s})}).then(async e=>{T((await e.json().catch(()=>null))?.payload)}).catch(()=>{E(n)})},[T,E,r]),steerPendingFollowUp:(0,Z.useCallback)(async e=>{let t=r.current;if(!t)return;let n=v.current.find(t=>t.id===e);if(!(!n?.text.trim()||n.attachments?.length||n.contextRefs?.length)){b(e);try{let r=await ot(Y(`/api/sessions/${encodeURIComponent(t)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({clientMessageId:crypto.randomUUID(),delivery:`steer`,content:n.text.trim()})});r.ok&&(T((await r.json().catch(()=>null))?.payload?.state),R(e))}catch{}finally{b(null)}}},[T,R,r]),submitClarifyAnswer:(0,Z.useCallback)(async e=>{let t=h.current;if(t){f(!0),m(null);try{let n=await ot(Y(`/api/clarify/${encodeURIComponent(t.requestId)}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({answer:e})});if(!n.ok){m((await n.json().catch(()=>({}))).error?.message??n.statusText??`Clarify failed`);return}let i=r.current;i&&Y7(i),u(null),m(null)}finally{f(!1)}}},[r]),cancelClarifyAnswer:(0,Z.useCallback)(async()=>{let e=h.current;if(e){f(!0),m(null);try{let t=await ot(Y(`/api/clarify/${encodeURIComponent(e.requestId)}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({skip:!0})});if(!t.ok){m((await t.json().catch(()=>({}))).error?.message??t.statusText??`Clarify failed`);return}let n=r.current;n&&Y7(n),u(null),m(null)}finally{f(!1)}}},[r]),clearVisibleClarify:D,dismissClarify:k,dismissClarifyForSession:O,clearPendingFollowUps:A,dismissClarifyAndClearPending:j,onClarifyToolEnd:M,makeOnClarifyRequest:N}}function X7(e){let t=(0,Q.c)(60),{navigate:n,sessionKeyRef:r,sessionKey:i,isNewRoute:a,locationState:o,locationSearch:s}=e,c=ut(Kve),l;t[0]===i?l=t[1]:(l=i?.trim()??``,t[0]=i,t[1]=l);let u=l,d;t[2]===c?d=t[3]:(d=c?[`gateway-chat-agents`,c]:null,t[2]=c,t[3]=d);let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f={revalidateOnFocus:!1},t[4]=f):f=t[4];let{data:p,mutate:m}=mt(d,iL,f),h;t[5]!==u||t[6]!==c?(h=c&&u?[`gateway-chat-session-agent`,c,u]:null,t[5]=u,t[6]=c,t[7]=h):h=t[7];let g;t[8]===u?g=t[9]:(g=()=>eV(u),t[8]=u,t[9]=g);let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_={revalidateOnFocus:!1},t[10]=_):_=t[10];let{data:v}=mt(h,g,_),y;t[11]===v?.routing?.agentId?y=t[12]:(y=v?.routing?.agentId?.trim().toLowerCase()??``,t[11]=v?.routing?.agentId,t[12]=y);let b=y,x,S;t[13]===m?(x=t[14],S=t[15]):(x=()=>{let e=e=>{yt(e.detail)||m()};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},S=[m],t[13]=m,t[14]=x,t[15]=S),(0,Z.useEffect)(x,S);let[C,w]=(0,Z.useState)(Gve),T=(0,Z.useRef)(p??null),E;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(E=wB().selectedAgentId??null,t[16]=E):E=t[16];let D=(0,Z.useRef)(E),O,k;t[17]===p?(O=t[18],k=t[19]):(O=()=>{T.current=p??null},k=[p],t[17]=p,t[18]=O,t[19]=k),(0,Z.useEffect)(O,k);let A,j;t[20]===C?(A=t[21],j=t[22]):(A=()=>{D.current=C},j=[C],t[20]=C,t[21]=A,t[22]=j),(0,Z.useEffect)(A,j);let M,N;t[23]===p?(M=t[24],N=t[25]):(M=()=>{if(!p)return;let e=new Set(p.items.map(Wve));w(t=>t==null||t===``||!e.has(t)?p.defaultId:t)},N=[p],t[23]=p,t[24]=M,t[25]=N),(0,Z.useEffect)(M,N);let P;t[26]!==b||t[27]!==r?(P=()=>{if(r.current&&b)return b;let e=T.current,t=(D.current??``).trim().toLowerCase();if(!e)return t||void 0;let n=new Set(e.items.map(Uve));return t&&n.has(t)?t:e.defaultId},t[26]=b,t[27]=r,t[28]=P):P=t[28];let F=P,I;t[29]!==v?.projectId||t[30]!==b||t[31]!==a||t[32]!==s||t[33]!==o||t[34]!==n||t[35]!==r?(I=e=>{let t=e.trim().toLowerCase();w(t),EB(t),(r.current?b||D.current:null)!==t&&n(a?`/chat/new${s}`:_L(v?.projectId),{replace:!1,state:{...a&&o&&typeof o==`object`?o:{},agentId:t}})},t[29]=v?.projectId,t[30]=b,t[31]=a,t[32]=s,t[33]=o,t[34]=n,t[35]=r,t[36]=I):I=t[36],v?.projectId;let L=I,R,z;t[37]===L?(R=t[38],z=t[39]):(R=()=>{let e=e=>{let t=e.detail?.agentId;typeof t!=`string`||!t.trim()||L(t)};return window.addEventListener(`xopc-set-chat-agent`,e),()=>window.removeEventListener(`xopc-set-chat-agent`,e)},z=[L],t[37]=L,t[38]=R,t[39]=z),(0,Z.useEffect)(R,z);let B,V;t[40]!==b||t[41]!==i?(B=()=>{if(!i)return;let e=b;!e||D.current===e||(D.current=e,w(e),EB(e))},V=[b,i],t[40]=b,t[41]=i,t[42]=B,t[43]=V):(B=t[42],V=t[43]),(0,Z.useLayoutEffect)(B,V);let H,ee;t[44]!==v||t[45]!==i?(H=()=>{!i||!v||OB(v.projectId)},ee=[v,i],t[44]=v,t[45]=i,t[46]=H,t[47]=ee):(H=t[46],ee=t[47]),(0,Z.useLayoutEffect)(H,ee);let te,ne;t[48]!==a||t[49]!==o?(te=()=>{if(!a)return;let e=o,t=typeof e?.agentId==`string`?e.agentId.trim().toLowerCase():``;t&&(D.current=t,w(t),EB(t))},ne=[a,o],t[48]=a,t[49]=o,t[50]=te,t[51]=ne):(te=t[50],ne=t[51]),(0,Z.useLayoutEffect)(te,ne);let U=b||C||p?.defaultId||`main`,W=(p?.items.length??0)>1,re=v?.projectId??null,ie;return t[52]!==p||t[53]!==U||t[54]!==L||t[55]!==F||t[56]!==W||t[57]!==re||t[58]!==c?(ie={token:c,chatAgentsData:p,resolveAgentIdForPost:F,onChatAgentChange:L,displayAgentId:U,showChatAgentSelector:W,currentSessionProjectId:re},t[52]=p,t[53]=U,t[54]=L,t[55]=F,t[56]=W,t[57]=re,t[58]=c,t[59]=ie):ie=t[59],ie}function Uve(e){return e.id}function Wve(e){return e.id}function Gve(){return wB().selectedAgentId??null}function Kve(e){return e.token}var Z7=`main`,qve=/^[a-z0-9][a-z0-9_-]{0,63}$/i,Jve=/[^a-z0-9_-]+/g,Yve=/^-+/,Xve=/-+$/;function Q7(e){let t=(e??``).trim();if(!t)return Z7;let n=t.toLowerCase();return qve.test(t)?n:n.replace(Jve,`-`).replace(Yve,``).replace(Xve,``).slice(0,64)||Z7}function Zve(e){let t=e.trim().split(`:`);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;if(n!==`agent`||!r||!i||a!=="default"||o!==`direct`)return null;let c=s.join(`:`).trim();return c?{agentId:r,sourceChannel:i,peerId:c}:null}function Qve(e){let t=e?.sourceBinding;return!!(t&&typeof t==`object`)}function $ve(e){return!!e?.trim().startsWith(`chat_`)}function $7(e){return e?.trim()||void 0}function e9(e,t){let n=e.key?.trim();if(!n)return!1;let r=Zve(n);if(!r||(e.sourceChannel?.trim().toLowerCase()??r?.sourceChannel.toLowerCase())!==`webchat`||e.customData?.genericNewChatShell===!1||Qve(e.customData)||!$ve(r.peerId)||(e.messageCount??0)!==0||(Jz(n)?.messages.length??0)!==0)return!1;let i=(e.routing?.agentId??r?.agentId)?.trim().toLowerCase();if(!i||i!==Q7(t.agentId))return!1;let a=$7(t.projectId),o=$7(e.projectId);return!((a?o!==a:o)||Xz(n))}function eye(e,t){let n={...t,agentId:Q7(t.agentId)};return e.filter(e=>e9(e,n)).sort((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime())[0]??null}function tye(e,t){let n=t.trim();return e.find(e=>e.key.trim()===n)}function nye(e,t,n,r){if(!t?.length)return e;let i=new Map(e.map(e=>[e.key.trim(),e]));for(let e of t){let t=e.key.trim();!t||i.has(t)||e9(e,{agentId:n,projectId:r})&&i.set(t,e)}return[...i.values()].toSorted((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime())}async function rye(e,t,n){let r=Ave();try{return nye(await e.loadSessions(),r,t,n)}catch{return r?.filter(e=>e9(e,{agentId:t,projectId:n}))??[]}}async function iye(e){let t=Q7(e.agentId),n=e.projectId?.trim()||void 0,r=e.currentSessionKey?.trim()||null;if(e.forceNew||e.temporary||e.executionMode){let r=await e.sessionMgr.createSession({agentId:t,...n?{projectId:n}:{},...e.temporary?{temporary:!0}:{},...e.initialAgentConfig?{initialAgentConfig:e.initialAgentConfig}:{},...e.executionMode?{executionMode:e.executionMode}:{}});return{kind:`create`,sessionKey:r.key,session:r}}let i=await rye(e.sessionMgr,t,n);if(r){let e=tye(i,r);if(e&&e9(e,{agentId:t,projectId:n}))return{kind:`noop`,sessionKey:r}}let a=eye(i,{agentId:t,projectId:n});if(a&&a.key.trim()!==r)return{kind:`reuse`,sessionKey:a.key,session:a};let o=await e.sessionMgr.createSession({agentId:t,projectId:n,...e.initialAgentConfig?{initialAgentConfig:e.initialAgentConfig}:{}});return{kind:`create`,sessionKey:o.key,session:o}}var t9=new Map,n9=0;function r9(e){let t=ut.getState(),n=jO(t.baseUrl,{agentId:e.agentId?.trim()||`main`,projectId:e.projectId??null}),r=JSON.stringify([n,t.token,e.forceNew===!0,e.temporary===!0,e.executionMode,e.search]),i=t9.get(r);if(i)return i.target.opts=e,i.target.generation=++n9,i.promise;let a={opts:e,generation:++n9},o=e=>{if(a.generation!==n9)return;let t=a.opts;t.onOpened(e),(t.routeSessionKey?.trim()||null)!==e&&t.navigateToSession(e,t.replaceNavigate??!1,t.search)},s=(async()=>{let t=e.agentId??void 0,n=await iye({sessionMgr:e.sessionMgr,agentId:t?.trim()||`main`,projectId:e.projectId,currentSessionKey:e.currentSessionKey,forceNew:e.forceNew,temporary:e.temporary,initialAgentConfig:e.initialAgentConfig,executionMode:e.executionMode});if(n.kind!==`create`&&e.initialAgentConfig&&await e.sessionMgr.patchSessionAgentConfig(n.sessionKey,e.initialAgentConfig),n.kind===`noop`||n.kind===`reuse`)return o(n.sessionKey),n.sessionKey;let{sessionKey:r,session:i}=n;return e.executionMode||kve({key:r,sessionId:i.sessionId,name:i.name,messageCount:0,updatedAt:i.updatedAt||new Date().toISOString(),sourceChannel:i.sourceChannel,sourceChatId:i.sourceChatId,projectId:i.projectId,routing:i.routing}),o(r),r})().finally(()=>{t9.delete(r)});return t9.set(r,{promise:s,target:a}),s}var i9={current:null},a9={current:null};function aye(e){return!!(e&&typeof e==`object`&&e.forceNewChat===!0)}function oye(e){let t=l(),{sessionKey:n}=u(),r=e?!1:t.pathname.endsWith(`/new`),i=r&&aye(t.state),a=e??Cve(r,n),o=Sve(r,a),s=L7(o),c=r?null:a??null,d=(0,Z.useRef)(o);return d.current=o,i9.current=c,!r&&a&&(a9.current=a),(0,Z.useLayoutEffect)(()=>{Kz.getState().focusedSessionKey!==c&&Kz.getState().setFocusedSessionKey(c)},[c]),{isNewRoute:r,forceNewChat:i,decodedKey:a,routedSessionKey:o,viewSessionKey:s,routedFocusedSessionKey:c,routeSessionKeyRef:d,locationKey:t.key,locationSearch:t.search,locationState:t.state}}var sye={get current(){return a9.current}},o9={get current(){return i9.current},set current(e){i9.current=e,Kz.getState().setFocusedSessionKey(e)}};function cye(e){let{token:t,isNewRoute:n,forceNewChat:r,temporary:i=!1,requestedAgentId:a,decodedKey:o,locationKey:s,locationSearch:c,sessionMgrRef:l,resolveAgentIdForPost:u,navigateToSession:d,loadSessionById:f,tryResumeAgentRun:p,restoreLiveCacheIfNeeded:m,adoptEmptySession:h,applyAgentConfig:g,patchInitUi:_}=e,v=(0,Z.useRef)(0),y=ut(e=>e.baseUrl),[b,x]=(0,Z.useState)(null),S=n?c:``,C=n?`new:${s}`:o?`session:${o}`:`fallback:${s}`,w=(0,Z.useRef)({isNewRoute:n,forceNewChat:r,temporary:i,requestedAgentId:a,decodedKey:o,newRouteLocationSearch:S});w.current={isNewRoute:n,forceNewChat:r,temporary:i,requestedAgentId:a,decodedKey:o,newRouteLocationSearch:S};let T=(0,Z.useRef)({sessionMgrRef:l,resolveAgentIdForPost:u,navigateToSession:d,loadSessionById:f,tryResumeAgentRun:p,restoreLiveCacheIfNeeded:m,adoptEmptySession:h,applyAgentConfig:g,patchInitUi:_});return T.current={sessionMgrRef:l,resolveAgentIdForPost:u,navigateToSession:d,loadSessionById:f,tryResumeAgentRun:p,restoreLiveCacheIfNeeded:m,adoptEmptySession:h,applyAgentConfig:g,patchInitUi:_},(0,Z.useEffect)(()=>{let e=w.current,n=T.current;if(!t){n.patchInitUi({loading:!1});return}let r=++v.current,i=!1,a=()=>!i&&r===v.current,o=e=>{a()&&n.sessionMgrRef.current.loadSessionAgentConfig(e).then(t=>{a()&&n.applyAgentConfig(e,t)}).catch(()=>{})},s=async()=>{if(!a())return Promise.resolve();let r=wB(),i=n.resolveAgentIdForPost(),s=AO({origin:`web-route`,project:gL(e.newRouteLocationSearch),agentId:e.requestedAgentId??i,forceNew:e.forceNewChat,temporary:e.temporary},{defaultAgentId:i??`main`,selectedAgentId:r.selectedAgentId,lastChatScope:r.lastChatScope}),c=s.projectId?await jB(s.projectId):null;if(!a())return;!e.requestedAgentId&&c?.defaultAgentId&&(s.agentId=c.defaultAgentId);let l=OO(r,s.agentId),u=(t,r)=>r9({sessionMgr:n.sessionMgrRef.current,agentId:s.agentId,currentSessionKey:sye.current,routeSessionKey:null,forceNew:s.forceNew,temporary:s.temporary,projectId:s.projectId,executionMode:t,initialAgentConfig:r??(l?{model:l.modelRef,...l.thinkingLevel?{thinkingLevel:l.thinkingLevel}:{}}:void 0),navigateToSession:(...e)=>{a()&&n.navigateToSession(...e)},replaceNavigate:!0,search:hL(e.newRouteLocationSearch),onOpened:e=>{a()&&(n.adoptEmptySession(e,null),o(e))}});if(c?.workspaceRoot?.trim()){x({requestKey:C,token:t,baseUrl:y,project:c,agentId:s.agentId,temporary:s.temporary,create:(e,t)=>a()?u(e,t):Promise.reject(Error(`New chat request changed`))});return}await u()},c=(e,t)=>{if(!a())return Promise.resolve();n.restoreLiveCacheIfNeeded(e);let r=Jz(e)?.messages??t??Yz(e);return n.tryResumeAgentRun(e,r)},l=e=>a()?Jz(e)?.historyStatus===`ready`?(o(e),c(e,Yz(e))):n.loadSessionById(e,0).then(t=>{if(a())return c(e,t??Yz(e))}):Promise.resolve(),u=()=>a()?n.sessionMgrRef.current.loadSessions().then(e=>{if(!a())return;let t=e.filter(e=>(e.messageCount??0)>0)[0]??e[0];if(t)return a()?n.loadSessionById(t.key,0).then(e=>{if(!a())return;n.restoreLiveCacheIfNeeded(t.key);let r=Jz(t.key)?.messages??e??Yz(t.key);return n.sessionMgrRef.current.parseSessionFromHash()||n.navigateToSession(t.key,!0),n.tryResumeAgentRun(t.key,r)}):void 0;if(!a())return;let r=n.resolveAgentIdForPost();return r9({sessionMgr:n.sessionMgrRef.current,agentId:r,currentSessionKey:null,routeSessionKey:null,navigateToSession:n.navigateToSession,onOpened:e=>{n.adoptEmptySession(e,null),o(e)}}).then(()=>void 0)}):Promise.resolve();return(()=>{let t=e.decodedKey===void 0&&!e.isNewRoute;n.patchInitUi({loading:t,error:null}),(e.isNewRoute?s():e.decodedKey?l(e.decodedKey):u()).then(()=>{a()&&n.patchInitUi({loading:!1})}).catch(e=>{i?a()&&n.patchInitUi({loading:!1}):n.patchInitUi({error:e instanceof Error?e.message:`Chat init failed`,loading:!1})})})(),()=>{i=!0}},[t,y,C]),n&&b?.requestKey===C&&b.token===t&&b.baseUrl===y?b:null}function lye(e){let t=ut(e=>e.token),n=ut(e=>e.baseUrl),[r,i]=(0,Z.useState)(null),{data:a,error:o}=mt(e?[`prepared-session-model`,n,t,e.create]:null,async()=>{let t=OO(wB(),e.agentId),[n,r]=await Promise.all([Zt(),t?.modelRef??aue(e.agentId).then(e=>e.config.models.chat.primary)]),i=n.filter(e=>e.id===r||e.id.endsWith(`/${r}`)),a=n.find(e=>e.id===r)??(i.length===1?i[0]:void 0);return{models:n,selection:{model:a?.id??r,thinkingLevel:a?.thinking?RO(a.thinking,t?.thinkingLevel,t?.thinkingByModel?.[a.id]):t?.thinkingLevel??`medium`}}},{revalidateOnFocus:!1}),s=r?.preparation===e?r?.selection:a?.selection,c=a?.models.find(e=>e.id===s?.model),l=!!(s?.model&&c),u=r?.preparation===e,d=(0,Z.useRef)({preparation:e,selection:s,ready:l,explicitlySelected:u});d.current={preparation:e,selection:s,ready:l,explicitlySelected:u};let f=(0,Z.useMemo)(()=>e&&{...e,create:async t=>{let n=d.current;if(n.preparation!==e||!n.ready||!n.selection)throw Error(`Model configuration is not ready`);let r=n.selection,i=await e.create(t,r);return n.explicitlySelected&&DB(e.agentId,{modelRef:r.model,thinkingLevel:r.thinkingLevel}),i}},[e]),p=async(t,n)=>{if(!e||!a)throw Error(`Model configuration is not ready`);let r=a.models.find(e=>e.id===t);if(!r)throw Error(`Model is unavailable`);let o=OO(wB(),e.agentId)?.thinkingByModel?.[t];i({preparation:e,selection:{model:t,thinkingLevel:r.thinking?RO(r.thinking,n??s?.thinkingLevel,n===void 0?o:void 0):n??s?.thinkingLevel??`medium`}})};return{preparation:f,model:s?.model??``,thinkingLevel:s?.thinkingLevel??`medium`,modelSupportsThinking:!!c?.reasoning,ready:l,error:o,onModelChange:e=>p(e),onThinkingChange:e=>p(s?.model??``,e)}}async function uye(e){let t=e.trim();if(!t)return!1;try{return!!(await Zt()).find(e=>e.id===t)?.reasoning}catch{return!1}}function dye(e){let{sessionMgrRef:t,routeSessionKeyRef:n,sendingRef:r,streamingRef:i,loadingSessionRef:a,messagesLenRef:o,thinkingSupportGenRef:s,navigateToSession:c,resolveAgentIdForPost:l,dismissClarifyOnSessionLoad:u,detachForNewConversation:d,sessionKey:f,sessionAgentId:p,currentProjectId:m,taskId:h,hasMore:g}=e,_=()=>Kz.getState(),v=(0,Z.useRef)(Promise.resolve(void 0)),y=(0,Z.useRef)(null),b=(0,Z.useRef)(0),x=(0,Z.useCallback)(e=>{let t=_().focusedSessionKey;if(!e.trim())return++s.current===s.current&&t&&_().patchSessionMeta(t,{modelSupportsThinking:!1}),Promise.resolve();let n=++s.current;return uye(e).then(t=>{if(n!==s.current)return;let r=_().focusedSessionKey;r&&_().sessions[r]?.model===e&&_().patchSessionMeta(r,{modelSupportsThinking:t})})},[s]),S=(0,Z.useCallback)(async e=>{try{let n=await t.current.loadSessionAgentConfig(e);K7(e,n),x(n.model)}catch{}},[t,x]),C=(0,Z.useCallback)(()=>{let e=_().focusedSessionKey;if(!e||(_().sessions[e]?.name)?.trim())return;let n=++b.current,r=[700,900,900,1e3,1e3],i=a=>{a>=5||n===b.current&&_().focusedSessionKey===e&&(_().sessions[e]?.name?.trim()||window.setTimeout(()=>{n===b.current&&_().focusedSessionKey===e&&(_().sessions[e]?.name?.trim()||t.current.fetchSessionName(e).then(t=>{if(n===b.current){if(t){_().patchSessionMeta(e,{name:t});return}i(a+1)}}).catch(()=>{i(a+1)}))},r[a]??900))};i(0)},[t]),w=(0,Z.useCallback)(e=>xve({chatId:e,routeSessionKey:n.current}),[n]),T=(0,Z.useCallback)((e,t)=>{let n=_().getSessionSnapshot(e);n&&(n.streaming||n.sending||n.streamingMsg)?(_().mergeCommittedFromServer(e,t.messages,t.hasMore),t.name!==void 0&&_().patchSessionMeta(e,{name:t.name||null})):_().setCommittedSnapshot(e,{messages:t.messages,hasMore:t.hasMore,name:t.name}),w(e)&&(y.current=t.nextBeforeCursor??null)},[w]),E=(0,Z.useCallback)(async(e,r=0,i)=>{let o=async(e,r,i)=>{let s=r===0&&!i;s&&!JR(e)&&u(),a.current=!0;let d=s&&Pz(_().sessions[e]?.historyStatus);d&&_().setSessionHistoryStatus(e,`loading`);try{let{messages:n,hasMore:a,name:o,nextBeforeCursor:c}=await t.current.loadSession(e,r,i,h);if(s){if(_().setCommittedSnapshot(e,{messages:n,hasMore:a,name:o??null}),!w(e))return n;y.current=c??null;let r=await t.current.loadSessionAgentConfig(e);return w(e)?(K7(e,r),x(r.model),n):n}if(y.current=c??null,!w(e))return;_().prependHistoryMessages(e,n,a);return}catch(a){if(r===0&&!i){y.current=null;let r=a instanceof Error?a.message:`Failed to load session`;_().setShellError(/^HTTP 404\b/.test(r)?JSON.stringify(CL(r)):`Failed to load session`);let i=L7(n.current);if(i&&i===e)return;let s=await t.current.loadSessions().catch(()=>[]),u=s.filter(e=>(e.messageCount??0)>0)[0]??s[0];if(u)return c(u.key,!0),await o(u.key,0,null);{y.current=null;let e=l();r9({sessionMgr:t.current,agentId:e,currentSessionKey:null,routeSessionKey:null,navigateToSession:c,replaceNavigate:!0,onOpened:e=>{_().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),S(e)}})}}return}finally{a.current=!1,d&&_().sessions[e]?.historyStatus===`loading`&&_().setSessionHistoryStatus(e,`ready`)}},s=v.current,d,f=new Promise(e=>{d=e});v.current=s.then(()=>f),await s;try{return await o(e,r,i)}finally{d()}},[n,w,r,i,a,u,c,x,l,t,h]),D=(0,Z.useCallback)(async()=>{let e=_().focusedSessionKey;if(!(!e||_().loadingMore||!g)){_().setLoadingMore(!0);try{await E(e,o.current,y.current)}finally{_().setLoadingMore(!1)}}},[g,E,o]),O=(0,Z.useCallback)(async(e,n)=>{if(!f)throw Error(`No active session`);let r=_().sessions[f];if(r?.modelConfigSaving)throw Error(`Model configuration is being saved`);_().patchSessionMeta(f,{modelConfigSaving:!0});try{if(_().setShellError(null),n===void 0){let t=(await Zt()).find(t=>t.id===e);if(t?.thinking){let i=OO(wB(),p)?.thinkingByModel?.[e];n=RO(t.thinking,r?.thinkingLevel,i)}}let i=h?await t.current.patchTaskConversationModel(h,e,n,r?.configVersion):await t.current.patchSessionAgentConfig(f,{model:e,thinkingLevel:n,configVersion:r?.configVersion});K7(f,i),DB(p,{modelRef:i.model,thinkingLevel:i.thinkingLevel}),x(i.model)}catch(e){let n=e instanceof Error?e.message:`Failed to update model configuration`;_().setShellError(n);let r=await t.current.loadSessionAgentConfig(f).catch(()=>null);throw r&&K7(f,r),e}finally{_().patchSessionMeta(f,{modelConfigSaving:!1})}},[f,p,h,t,x]);return{refreshModelThinkingSupport:x,pollSessionNameAfterTurn:C,applyLoadedSessionSnapshot:T,loadSessionById:E,loadMoreMessages:D,onSessionModelChange:O,onSessionThinkingLevelChange:(0,Z.useCallback)(async e=>{let t=f?_().sessions[f]?.model:void 0;t&&await O(t,e)},[f,O]),onSessionWorkingDirectoryChange:(0,Z.useCallback)(async e=>{let n=e.trim();if(!(!f||!n))try{_().setShellError(null),await t.current.patchSessionAgentConfig(f,{workingDirectory:n}),await S(f)}catch(e){throw _().setShellError(e instanceof Error?e.message:`Failed to update working directory`),e}},[S,f,t]),createNewSession:(0,Z.useCallback)(async e=>{_().setShellError(null);let n=l(),r=OO(wB(),n??`main`);await r9({sessionMgr:t.current,agentId:n,currentSessionKey:f,routeSessionKey:f,forceNew:e?.forceNew,temporary:e?.temporary,executionMode:e?.executionMode,projectId:e?.projectId===void 0?m:e.projectId,initialAgentConfig:r?{model:r.modelRef,...r.thinkingLevel?{thinkingLevel:r.thinkingLevel}:{}}:void 0,navigateToSession:c,onOpened:e=>{u(),d(),y.current=null,_().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),S(e)}})},[u,d,c,l,m,f,t,S])}}function s9(e){let{chatId:t,shouldApplyStreamUpdate:n,beforeAssistantDelta:r,setStreamingOnStreamStart:i,clearResumeRunIdOnBackgroundTerminal:a,clearResumeRunIdOnVisibleError:o,setError:s,sessionMgrRef:c,applyLoadedSessionSnapshot:l,finalizeMessage:u,fq:d}=e,f=()=>Kz.getState(),p=()=>c.current.loadSession(t,0).then(e=>l(t,e)).catch(()=>{}),m=new Map,h,g=()=>{if(h!==void 0&&(window.clearTimeout(h),h=void 0),m.size===0)return;let e=Array.from(m.entries());m.clear(),r(),f().mutateSessionStreaming(t,t=>{for(let[n,r]of e)Dz(t.content,n,r)})},_=(e,t)=>{m.set(e,`${m.get(e)??``}${t}`),h===void 0&&(h=window.setTimeout(g,120))},v=()=>{f().clearStreamingState(t),a&&lz.setResumeRunId(t,null),f().setSessionFlags(t,{sending:!1,streaming:!1}),f().setSessionProgress(t,null),d.dismissClarifyForSession(t),p()};return{onReplayGap:p,onUserMessage:e=>{n(t)&&f().appendUserMessageIfMissing(t,e)},onWorkflowRunStarted:()=>{window.dispatchEvent(new CustomEvent(`workflow-run-started-from-chat`,{detail:{sessionKey:t}}))},onStreamStart:e=>{eB(t),r(),f().updateSessionMessages(t,t=>{let n=t.findLastIndex(e=>e.role===`user`);if(n<0||t[n]?.turnId===e)return t;let r=[...t];return r[n]={...t[n],turnId:e},r}),f().mutateSessionStreaming(t,t=>{t.turnId=e}),f().setSessionFlags(t,{streaming:!0})},onToken:(e,i)=>{r(),f().mutateSessionStreaming(t,t=>{xz(t.content,e,i)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onAssistantMessageEnd:(e,n,i)=>{r(),f().mutateSessionStreaming(t,t=>{Sz(t.content,e,n),i&&(t.usage=i)})},onThinking:(e,n)=>{r(),f().mutateSessionStreaming(t,t=>{!n&&e===``?gz(t.content):_z(t.content,e,n)})},onThinkingEnd:()=>{r(),f().mutateSessionStreaming(t,e=>{vz(e.content)})},onToolStart:(e,n,i,a,o)=>{r(),f().mutateSessionStreaming(t,t=>{kz(t.content,e,n,i,a,o)}),f().setSessionFlags(t,{streaming:!0})},onToolEnd:(e,n,i,a,o,s)=>{e===`clarify`&&d.onClarifyToolEnd(t),r(),f().mutateSessionStreaming(t,t=>{Az(t.content,e,n,i,a,o,s)})},onToolUpdate:(e,n,i)=>{r(),f().mutateSessionStreaming(t,t=>{jz(t.content,e,n,i)})},onTaskPlanUpdated:e=>{f().setSessionTaskPlan(t,e)},onTurnOutcome:e=>{r(),f().mutateSessionStreaming(t,t=>{t.outcome=e})},onReview:({review:e})=>{r(),f().mutateSessionStreaming(t,t=>{wz(t.content,e)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onReviewStart:e=>{r(),f().mutateSessionStreaming(t,t=>{Ez(t.content,e)}),n(t)&&f().setSessionFlags(t,{streaming:!0})},onReviewDelta:({reviewId:e,delta:t})=>{_(e,t)},onReviewEnd:({reviewId:e,status:n,message:i})=>{g(),r(),f().mutateSessionStreaming(t,t=>{Oz(t.content,e,n,i)})},onProgress:e=>{f().setSessionProgress(t,e)},onTtsAudio:e=>{n(t)&&f().appendAttachmentToCurrentAssistant(t,{name:e.name,mimeType:e.mimeType,type:`voice`,uri:e.uri,size:0},{attachTo:e.attachTo,messageId:e.messageId})},onCompaction:e=>{if(!n(t))return;let r=rt(ct.getState().language).chat;if(e.status===`started`)f().setSessionProgress(t,{stage:`compaction`,message:r.compactingContext,timestamp:Date.now()});else if(e.status===`completed`){let n=e.tokensBefore&&e.tokensAfter?` (${r.contextTokensFreed.replace(`{{count}}`,String(Math.round((e.tokensBefore-e.tokensAfter)/1e3)))})`:``;f().setSessionProgress(t,{stage:`compaction`,message:`${r.contextCompacted}${n}`,timestamp:Date.now()})}else f().setSessionProgress(t,null)},onClarifyRequest:d.makeOnClarifyRequest(t),onResult:({status:e})=>{g();let r=n(t);if(lz.takeUserAborted(t)||e===`cancelled`){rB(t),r?u(t):v();return}if(e===`error`){if(nB(t,!r),!r){v();return}u(t),p();return}if(e===`suspended`?iB(t):tB(t,!r),!r){v();return}u(t)},onError:e=>{g();let r=n(t);if(nB(t,!r),!r){v();return}f().clearStreamingState(t),o&&lz.setResumeRunId(t,null),f().setSessionFlags(t,{sending:!1,streaming:!1}),f().setSessionProgress(t,null),s(e),d.dismissClarifyForSession(t)}}}function fye(e){return Jz(e)?.streamingMsg??null}var c9=80;function pye(e){let t=e.trim();(t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`))&&(t=t.slice(1,-1).trim());let n=t.indexOf(`
|
|
71
|
+
`);return n!==-1&&(t=t.slice(0,n).trim()),t.length>c9&&(t=t.slice(0,c9-1).trimEnd()+`…`),t}function mye(e){let t=e.trimStart();if(!/^##\s+Skill:\s*\S+/i.test(t))return e;let n=/(?:^|\r?\n)\*\*Arguments\*\*:\s*/gi,r=-1;for(;n.exec(t)!==null;)r=n.lastIndex;if(r!==-1){let e=t.slice(r).trim();if(e)return e}return(t.split(/\r?\n/)[0]?.trim()??``).replace(/^##\s+Skill:\s*/i,``).trim()}function hye(e){let t=e.trimStart().match(/^\/skill:([^\s]+)(?:\s+([\s\S]*))?$/i);return t&&(t[2]?.trim()||t[1]?.trim())||e}function gye(e){let t=hye(mye(jR([{type:`text`,text:e}]))).split(/\n/)[0]?.trim();if(!t)return null;let n=pye(t);return n.length>0?n:null}function _ye(e,t){let n=e.trim(),r=t.trim();!n||!r||window.dispatchEvent(new CustomEvent(`session-updated`,{detail:{key:n,name:r},bubbles:!0}))}function vye(e){let{sessionKey:t,taskId:n,thinkingLevel:r,modelSupportsThinking:i,sessionKeyRef:a,sendingRef:o,streamingRef:s,sessionMgrRef:c,sendMessageRef:l,shouldApplyStreamUpdate:u,fq:d,applyLoadedSessionSnapshot:f,loadSessionById:p,createNewSession:m,pollSessionNameAfterTurn:h}=e,g=()=>Kz.getState(),_=e=>g().setShellError(e),v=()=>g().setShellError(null),y=(0,Z.useCallback)(e=>{let t=e??a.current;if(t&&!u(t))return;let n=t?fye(t):null,r=null;if(n){let e=fz(n,Date.now());vz(e.content),yz(e.content),Tz(e.content),e.completedAt=Date.now(),r=pz(e)}r&&dz(r)&&t?g().finalizeStreamingTurn(t,r):t&&g().clearStreamingState(t),o.current=!1,s.current=!1,t&&lz.resetRunTracking(t),d.dismissClarify(),h();let i=a.current;i&&window.setTimeout(()=>{a.current===i&&(o.current||s.current||p(i,0))},400)},[o,s,a,d.dismissClarify,d.pendingFollowUpsRef,h,p,u]),b=(0,Z.useCallback)(async(e,t)=>{if(!u(e))return;let r=await Eve(e);if(!r){let t=lz.getResumeRunId(e);t&&lz.reconcileInactive(e,t),g().clearStreamingState(e),rB(e);return}if(lz.isTrackingRun(e,r))return;let i=t??Yz(e),a=Jz(e)?.hasMore??!1;try{let t=await c.current.loadSession(e,0,void 0,n);g().mergeCommittedFromServer(e,t.messages,t.hasMore),i=t.messages,a=t.hasMore}catch{}lz.setUserAborted(e,!1),lz.setResumeRunId(e,r),o.current=!0,s.current=!0,g().seedSessionIfEmpty(e,i,!0,!0,a),g().setSessionFlags(e,{sending:!0,streaming:!0}),g().setSessionProgress(e,null),eB(e);let l=!1,m=()=>{if(l||!u(e))return;l=!0;let t=Yz(e);if(t.length===0)return;let n=t[t.length-1];if(n?.role!==`assistant`)return;let r=pz(n),i=t.slice(0,-1);g().applyHydratedTail(e,i,r)},h=()=>{g().clearStreamingState(e),lz.getResumeRunId(e)===r&&lz.setResumeRunId(e,null),u(e)&&(o.current=!1,s.current=!1)};try{let t=s9({chatId:e,shouldApplyStreamUpdate:u,beforeAssistantDelta:m,setStreamingOnStreamStart:!1,clearResumeRunIdOnBackgroundTerminal:!0,clearResumeRunIdOnVisibleError:!0,setError:_,sessionMgrRef:c,applyLoadedSessionSnapshot:f,finalizeMessage:y,fq:d});await lz.senderFor(e).resume(r,e,t)||(rB(e),h(),await p(e,0).catch(()=>void 0))}catch(t){t.name!==`AbortError`&&console.error(`[chat] resume failed:`,t),rB(e),h()}finally{lz.releaseIdleSender(e)}},[o,s,u,c,f,y,p,n]),x=(0,Z.useCallback)(async(e,t,c,u)=>{if(!e.trim()&&!t?.length)return;let f=a.current;if(!f||!o.current&&!s.current&&!lz.isStreamingFor(f))return;if(e.trim()===`/new`&&!t?.length){if(n){_(`A task has one continuous conversation.`);return}await m({forceNew:!0});return}d.dismissClarifyAndClearPending();let p=i?c??r:`off`;lz.setUserAborted(f,!0),lz.abort(f),o.current=!1,s.current=!1,y(f),queueMicrotask(()=>{l.current(e,t,p,u)})},[o,s,a,d.dismissClarifyAndClearPending,i,r,y,l,m]),S=(0,Z.useCallback)(async(e,a,l,h,b)=>{if(!t||!u(t)||!e.trim()&&!a?.length||o.current||s.current||lz.isStreamingFor(t))return;let x=e.trim();if(x===`/new`&&!a?.length){if(n){_(`A task has one continuous conversation.`);return}await m({forceNew:!0});return}let S=i?l??r:`off`,C=t,w=Yz(C),T=b?w.findIndex(e=>e.role===`user`&&e.turnId===b):-1;if(b&&T<0)return;lz.setUserAborted(C,!1),o.current=!0,s.current=!1,v(),d.dismissClarify();let E=[...T>=0?w.slice(0,T):w,{role:`user`,content:e?[{type:`text`,text:e}]:[],attachments:a,contextRefs:h?.map(e=>({kind:e.kind,sourceId:e.sourceId,version:e.expectedVersion,title:e.title})),timestamp:Date.now()}],D=Jz(C);if(g().initSessionSnapshot(C,{...D??{...cz(),historyStatus:`ready`,hasMore:!1,streamingMsg:null,progress:null,taskPlan:null,sending:!1,streaming:!1},messages:E,hasMore:D?.hasMore??!1,streamingMsg:null,progress:null,sending:!0,streaming:!1}),eB(C),!D?.name?.trim()&&x){let e=gye(x);e&&(g().patchSessionMeta(C,{name:e}),_ye(C,e))}try{await c.current.ensureSessionExists(C);let t=s9({chatId:C,shouldApplyStreamUpdate:u,beforeAssistantDelta:()=>{},setStreamingOnStreamStart:!0,clearResumeRunIdOnBackgroundTerminal:!1,clearResumeRunIdOnVisibleError:!1,setError:_,sessionMgrRef:c,applyLoadedSessionSnapshot:f,finalizeMessage:y,fq:d});await lz.senderFor(C).send(e,C,a,S,t,n,b,h)}catch(e){e.name===`AbortError`?rB(C):(g().clearStreamingState(C),rB(C),u(C)&&_(JSON.stringify(SL())),b&&p(C,0))}finally{u(C)&&(o.current=!1,s.current=!1),g().setSessionFlags(C,{sending:!1}),lz.releaseIdleSender(C)}},[t,r,i,o,s,u,c,f,y,d.dismissClarify,m,n,p]);return{finalizeMessage:y,tryResumeAgentRun:b,sendMessage:S,replaceLatestUserTurn:(0,Z.useCallback)((e,t,n,r,i)=>S(t,n,r,i,e),[S]),interruptAndSend:x,abort:(0,Z.useCallback)(()=>{let e=a.current;e&&(lz.setUserAborted(e,!0),d.dismissClarifyAndClearPending(),lz.abort(e),e&&rB(e),o.current=!1,s.current=!1,y(e),e&&window.setTimeout(()=>{p(e,0)},300))},[d.dismissClarifyAndClearPending,o,s,y,a,p]),deleteMessageRound:(0,Z.useCallback)(e=>{let t=a.current;if(!t||o.current||s.current)return;let n=Yz(t),r=n[e];if(!r||!PR(r.role))return;let i=FR(n,e);if(i===null)return;let l=IR(n,e),u=[...n];u.splice(e,l),g().updateSessionMessages(t,()=>u),c.current.deleteMessages(t,{userRoundIndex:i}).catch(()=>{p(t,0)})},[a,o,s,c,p]),retryUserMessageRound:(0,Z.useCallback)(e=>{let t=a.current;if(!t||o.current||s.current)return;let n=Yz(t),r=n[e];if(!r||!PR(r.role))return;for(let t=e+1;t<n.length;t++){let e=n[t];if(e&&PR(e.role))return}let i=jR(r.content),c=NR(r.attachments);if(!i.trim()&&!c?.length||!r.turnId)return;let u=r.contextRefs?.map(e=>({kind:e.kind,sourceId:e.sourceId,expectedVersion:e.version,title:e.title}));l.current(i,c,void 0,u,r.turnId).catch(()=>{p(t,0)})},[a,o,s,p,l])}}function yye(e){let t=(0,Q.c)(11),{sessionKey:n,sessionKeyRef:r,sessionMgrRef:i,loadSessionById:a,loadTimelineById:o,applyAgentConfig:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],t[0]=c):c=t[0],(0,Z.useEffect)(xye,c);let l,u;t[1]!==a||t[2]!==o||t[3]!==n?(l=()=>{let e=e=>{let t=e.detail;!t?.key||t.key!==n||(a(n,0),o(n))};return window.addEventListener(`session-transcript-updated`,e),()=>window.removeEventListener(`session-transcript-updated`,e)},u=[n,a,o],t[1]=a,t[2]=o,t[3]=n,t[4]=l,t[5]=u):(l=t[4],u=t[5]),(0,Z.useEffect)(l,u);let d,f;t[6]!==s||t[7]!==r||t[8]!==i?(d=()=>{let e=e=>{if(yt(e.detail))return;let t=r.current;t&&i.current.loadSessionAgentConfig(t).then(e=>{s(t,e)}).catch(bye)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},f=[r,i,s],t[6]=s,t[7]=r,t[8]=i,t[9]=d,t[10]=f):(d=t[9],f=t[10]),(0,Z.useEffect)(d,f)}function bye(){}function xye(){let e=Sye;return window.addEventListener(`session-updated`,e),()=>window.removeEventListener(`session-updated`,e)}function Sye(e){let t=e.detail;!t?.key||t.name===void 0||Kz.getState().patchSessionMeta(t.key,{name:t.name||null})}function Cye(e){let t=p(),{isNewRoute:n,forceNewChat:r,decodedKey:i,viewSessionKey:a,routedFocusedSessionKey:o,routeSessionKeyRef:s,locationKey:c,locationSearch:l,locationState:u}=oye(e?.fixedSessionKey),d=(0,Z.useRef)(new Pve),f=(0,Z.useRef)(!1),m=(0,Z.useRef)(!1),h=(0,Z.useRef)(!1),g=(0,Z.useRef)(0),_=(0,Z.useRef)(!1),[v,y]=(0,Z.useState)([]),b=(0,Z.useRef)(async()=>{}),x=(0,Z.useRef)(0),S=o,C=Kz(e=>e.initLoading),w=Kz(e=>e.loadingMore),T=Kz(e=>e.shellError),E=a,D=Kz(e=>E?e.sessions[E]:void 0),O=E?qz(D):!1,k=O?D?.streaming??!1:!1,A=O?D?.sending??!1:!1,j=O?D?.progress??null:null,M=O?D?.taskPlan??null:null,N=D?.hasMore??!1,P=D?.name??null,F=D?.model??``,I=mt($t,Zt,{revalidateOnFocus:!1}),L=D?.configVersion!==void 0&&!!I.data?.some(e=>e.id===F),R=D?.modelConfigSaving??!1,z=D?.thinkingLevel??`medium`,B=D?.reasoningLevel??`on`,V=D?.modelSupportsThinking??!1,H=D?.effectiveWorkspacePath??``,ee=D?.workspaceSource??`agent_default_root`,te=D?.userContextMode??`enabled`;(0,Z.useEffect)(()=>{!E||A||k||d.current.loadSessionAgentConfig(E).then(e=>K7(E,e)).catch(()=>void 0)},[E,A,k]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail.sessionKey;d.current.loadSessionAgentConfig(t).then(e=>K7(t,e)).catch(()=>void 0)};return window.addEventListener(`session-model-config-stale`,e),()=>window.removeEventListener(`session-model-config-stale`,e)},[]),(0,Z.useEffect)(()=>{x.current=D?.messages.length??0},[D?.messages.length]),(0,Z.useEffect)(()=>{m.current=A,h.current=k},[A,k]);let{token:ne,chatAgentsData:U,resolveAgentIdForPost:W,onChatAgentChange:re,displayAgentId:ie,showChatAgentSelector:ae,currentSessionProjectId:oe}=X7({navigate:t,sessionKeyRef:o9,sessionKey:S,isNewRoute:n,locationState:u,locationSearch:l}),se=i!==void 0&&S!==i,ce=!!(i&&D?.historyStatus===`loading`&&!se),le=(0,Z.useMemo)(()=>C&&(S==null||i===void 0),[C,S,i]),ue=Lve({isNewRoute:n,sessionRoutePending:se,showSessionLoading:le,sessionContentLoading:ce,messageCount:D?.messages.length??0}),de=(0,Z.useCallback)((e,n=!1,r)=>{let i=r??``;t({pathname:`/chat/${encodeURIComponent(e)}`,search:i},{replace:n})},[t]),fe=(0,Z.useCallback)(e=>yve({streamSessionKey:e,routeSessionKey:s.current}),[s]),pe=(0,Z.useCallback)(()=>{Ive({sendingRef:m,streamingRef:h})},[]),me=Hve({sessionKey:S,decodedKey:i,sessionKeyRef:o9,sendingRef:m,streamingRef:h,modelSupportsThinking:V,thinkingLevel:z,shouldApplyStreamUpdate:fe}),G=(0,Z.useCallback)(()=>{me.clearVisibleClarify();let e=o9.current;e&&lz.resetRunTracking(e),Tve(pe)},[me.clearVisibleClarify,o9,pe]),{refreshModelThinkingSupport:he,pollSessionNameAfterTurn:ge,applyLoadedSessionSnapshot:_e,loadSessionById:ve,loadMoreMessages:ye,onSessionModelChange:be,onSessionThinkingLevelChange:xe,onSessionWorkingDirectoryChange:Se,createNewSession:Ce}=dye({sessionMgrRef:d,routeSessionKeyRef:s,sendingRef:m,streamingRef:h,loadingSessionRef:f,messagesLenRef:x,thinkingSupportGenRef:g,navigateToSession:de,resolveAgentIdForPost:W,dismissClarifyOnSessionLoad:me.clearVisibleClarify,detachForNewConversation:G,sessionKey:S,sessionAgentId:ie,currentProjectId:oe,hasMore:N,taskId:e?.taskId}),we=(0,Z.useCallback)(e=>{if(!bve({cacheSessionKey:e,routeSessionKey:s.current}))return!1;let t=Jz(e);return!t||!qz(t)&&!JR(e)&&!lz.isStreamingFor(e)?!1:(m.current=t.sending,h.current=t.streaming,!0)},[s]),{tryResumeAgentRun:Te,sendMessage:Ee,replaceLatestUserTurn:De,interruptAndSend:Oe,abort:ke,deleteMessageRound:Ae,retryUserMessageRound:je}=vye({sessionKey:S,taskId:e?.taskId,thinkingLevel:z,modelSupportsThinking:V,sessionKeyRef:o9,sendingRef:m,streamingRef:h,sessionMgrRef:d,sendMessageRef:b,shouldApplyStreamUpdate:fe,fq:me,applyLoadedSessionSnapshot:_e,loadSessionById:ve,createNewSession:Ce,pollSessionNameAfterTurn:ge});(0,Z.useEffect)(()=>{n&&G()},[n,G]);let Me=(0,Z.useMemo)(()=>wve({viewSessionKey:a,sessionKey:E,messages:D?.messages??[],streamingMsg:O?D?.streamingMsg??null:null}),[a,E,D?.messages,D?.streamingMsg,O]),Ne=(0,Z.useCallback)((e,t)=>{Kz.getState().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:t}),pe()},[pe]),Pe=(0,Z.useCallback)((e,t)=>{K7(e,t),he(t.model)},[he]),Fe=(0,Z.useCallback)(e=>{let t=Kz.getState();e.loading!==void 0&&t.setInitLoading(e.loading),e.error!==void 0&&t.setShellError(e.error)},[]),Ie=(0,Z.useCallback)(async t=>{try{let n=await d.current.loadTimeline(t,e?.taskId);if(s.current!==t)return;y(n)}catch{s.current===t&&y([])}},[s,e?.taskId]);(0,Z.useEffect)(()=>{if(n||!S){y([]);return}Ie(S)},[S,n,Ie]),yye({sessionKey:S,sessionKeyRef:o9,sendingRef:m,streamingRef:h,sessionMgrRef:d,loadSessionById:ve,loadTimelineById:Ie,applyAgentConfig:Pe});let Le=cye({token:ne,isNewRoute:n,forceNewChat:r,temporary:u?.temporary===!0,requestedAgentId:typeof u?.agentId==`string`?u.agentId:void 0,decodedKey:i,locationKey:c,locationSearch:l,sessionMgrRef:d,resolveAgentIdForPost:W,navigateToSession:de,loadSessionById:ve,tryResumeAgentRun:Te,restoreLiveCacheIfNeeded:we,adoptEmptySession:Ne,applyAgentConfig:Pe,patchInitUi:Fe}),Re=lye(Le);return(0,Z.useEffect)(()=>{Le&&Re.error&&Kz.getState().setShellError(Re.error instanceof Error?Re.error.message:`Failed to load model configuration`)},[Le,Re.error]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail,n=t?.sessionKey,r=t?.runId;!n||!r?.trim()||(XR(n,r),lz.setResumeRunId(n,r),fe(n)&&(lz.isTrackingRun(n,r)||queueMicrotask(()=>{fe(n)&&(lz.isTrackingRun(n,r)||Te(n,Yz(n)))})))};return window.addEventListener(`run-started`,e),()=>window.removeEventListener(`run-started`,e)},[Te,fe]),(0,Z.useEffect)(()=>{let e=k||A,t=_.current;if(_.current=e,!t||e)return;let n=o9.current;n&&queueMicrotask(()=>{!n||!fe(n)||lz.isStreamingFor(n)||JR(n)&&Te(n,Yz(n))})},[k,A,Te,fe]),b.current=Ee,{auth:{hasToken:!!ne},session:{projectPreparation:Re.preparation,sessionKey:S,sessionName:P,decodedKey:i,sessionRoutePending:se,sessionContentLoading:ce,showSessionLoading:le,conversationPhase:ue,loading:C,sessionModel:Le?Re.model:F,modelConfigReady:Le?Re.ready:L,modelConfigSaving:R,thinkingLevel:Le?Re.thinkingLevel:z,onSessionThinkingLevelChange:Le?Re.onThinkingChange:xe,onSessionWorkingDirectoryChange:Se,reasoningLevel:B,modelSupportsThinking:Le?Re.modelSupportsThinking:V,effectiveWorkspacePath:H,workspaceSource:ee,userContextMode:Le?.temporary?`temporary`:te,hasMore:N,loadingMore:w,loadMoreMessages:ye,onSessionModelChange:Le?Re.onModelChange:be,createNewSession:Ce,sessionManager:d.current},messages:{items:Me},timeline:{items:v,refresh:Ie},stream:{error:T,streaming:k,sending:A,progress:j,taskPlan:M,sendMessage:Ee,replaceLatestUserTurn:De,abort:ke,interruptAndSend:Oe,deleteMessageRound:Ae,retryUserMessageRound:je},followUp:{addPendingFollowUp:me.addPendingFollowUp,pendingFollowUps:me.pendingFollowUps,editingFollowUpId:me.editingFollowUpId,beginEditFollowUp:me.beginEditFollowUp,cancelEditFollowUp:me.cancelEditFollowUp,commitEditFollowUp:me.commitEditFollowUp,removePendingFollowUp:me.removePendingFollowUp,movePendingFollowUp:me.movePendingFollowUp,reorderPendingFollowUp:me.reorderPendingFollowUp,steerPendingFollowUp:me.steerPendingFollowUp,steeringFollowUpId:me.steeringFollowUpId},clarify:{clarifyPrompt:me.clarifyPrompt,clarifySubmitting:me.clarifySubmitting,clarifySubmitError:me.clarifySubmitError,submitClarifyAnswer:me.submitClarifyAnswer,cancelClarifyAnswer:me.cancelClarifyAnswer},agents:{chatAgents:U,displayAgentId:Le?.agentId??ie,showChatAgentSelector:ae,onChatAgentChange:re}}}function wye(e){let t=(0,Q.c)(8),n=ut(Tye),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]!==n||t[3]!==i?(a=n&&i?[`chat-session-meta`,i,n]:null,t[2]=n,t[3]=i,t[4]=a):a=t[4];let o;t[5]===i?o=t[6]:(o=async()=>{let e=await eV(i),t=e.customData?.workflowRunId,n=typeof t==`string`&&t.trim()?t.trim():null,r=typeof e.sessionType==`string`&&e.sessionType.trim()?e.sessionType.trim():null,a=typeof e.routing?.agentId==`string`&&e.routing.agentId.trim()?e.routing.agentId.trim():null,o=e.customData?.sourceBinding,s=o&&typeof o==`object`?o:null,c=s?.kind===`note`&&typeof s.sourceId==`string`&&s.sourceId.trim()?s.sourceId.trim():null,l=typeof e.parentSessionKey==`string`&&e.parentSessionKey.trim()?e.parentSessionKey.trim():null,u=e.customData?.forkedFromSessionName;return{workflowRunId:n,ownerAgentId:a,sessionType:r,sourceNoteId:c,sourceNoteTitle:null,parentSessionKey:l,forkedFromSessionName:typeof u==`string`&&u.trim()?u.trim():null}},t[5]=i,t[6]=o);let s;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[7]=s):s=t[7],mt(a,o,s)}function Tye(e){return e.token}function l9(e,t){if(!e)return``;let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-3)).trimEnd()}...`}function Eye(e,t){return l9(AR(e??``),t)}function Dye(e,t){return Ek(e,t)}function Oye(e){return e===`context`||e===`branch`||e===`compaction`?e:null}function kye(e){return l9(e.preview||e.title,72)||e.kind}function u9(e,t){let n=[],r=null,i=0;for(let a of e){if(a.displayIndex!==void 0&&(i=a.displayIndex),a.kind===`turn`&&a.role===`user`){let e=a.turn||n.length+1;r={id:a.id,messageIndex:a.displayIndex??i,ordinal:e,title:t.turn.replace(`{{count}}`,String(e)),preview:Eye(a.preview||a.title,88)||t.messageFallback,...a.timestamp===void 0?{}:{timestamp:a.timestamp},tools:[],events:[]},n.push(r);continue}if(!r)continue;if(a.kind===`tool`||a.kind===`file`||a.kind===`command`){let e=a.meta?.toolName||a.title||a.kind,n=a.kind===`file`||a.kind===`command`?a.title:Dye(e,t),i=`${a.id}:${e}`;r.tools.some(e=>e.key===i)||r.tools.push({key:i,label:n,running:a.status===`running`});continue}let e=Oye(a.kind);if(!e)continue;let o=`${a.id}:${a.kind}`;r.events.some(e=>e.key===o)||r.events.push({key:o,label:kye(a),tone:e})}return n}function d9(e,t){return(e===1?t.toolCount_one:t.toolCount_other).replace(`{{count}}`,String(e))}function Aye(e,t){let n=e[0]?.id;for(let r of e)r.messageIndex<=t&&(n=r.id);return n}function jye(e){let t=(0,Q.c)(53),{turn:n,active:r,labels:i,currentLabel:a,onSelect:o}=e,s,c,l,u,d,f,p,m;if(t[0]!==r||t[1]!==a||t[2]!==i||t[3]!==o||t[4]!==n.events||t[5]!==n.preview||t[6]!==n.timestamp||t[7]!==n.title||t[8]!==n.tools){let e=n.tools.slice(0,2),h=n.events.slice(0,Math.max(0,3-e.length)),g=Math.max(0,n.tools.length-e.length)+Math.max(0,n.events.length-h.length);d=`button`;let _=r&&`bg-accent-soft/70`;t[17]===_?f=t[18]:(f=X(`flex w-full min-w-0 items-start gap-3 border-b border-edge-subtle px-4 py-3 text-left transition-colors`,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,_),t[17]=_,t[18]=f),p=o;let v=r&&`border-accent bg-accent`,y;t[19]===v?y=t[20]:(y=X(`mt-1 size-2.5 shrink-0 rounded-full border border-edge-strong bg-surface-panel`,v),t[19]=v,t[20]=y),t[21]===y?m=t[22]:(m=(0,$.jsx)(`span`,{className:y,"aria-hidden":!0}),t[21]=y,t[22]=m),s=`min-w-0 flex-1`;let b;t[23]===n.preview?b=t[24]:(b=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium text-fg`,children:n.preview}),t[23]=n.preview,t[24]=b);let x;t[25]!==r||t[26]!==a?(x=r?(0,$.jsx)(`span`,{className:`shrink-0 rounded-full bg-accent px-1.5 py-0.5 text-[10px] font-medium text-white`,children:a}):null,t[25]=r,t[26]=a,t[27]=x):x=t[27],t[28]!==b||t[29]!==x?(c=(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[b,x]}),t[28]=b,t[29]=x,t[30]=c):c=t[30];let S;t[31]===n.title?S=t[32]:(S=(0,$.jsx)(`span`,{children:n.title}),t[31]=n.title,t[32]=S);let C;t[33]===n.timestamp?C=t[34]:(C=n.timestamp?(0,$.jsx)(`time`,{suppressHydrationWarning:!0,dateTime:new Date(n.timestamp).toISOString(),children:lZ(n.timestamp)}):null,t[33]=n.timestamp,t[34]=C);let w;t[35]!==i||t[36]!==n.tools.length?(w=n.tools.length>0?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,$.jsx)(HT,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),d9(n.tools.length,i)]}):null,t[35]=i,t[36]=n.tools.length,t[37]=w):w=t[37],t[38]!==S||t[39]!==C||t[40]!==w?(l=(0,$.jsxs)(`span`,{className:`mt-1 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-fg-muted`,children:[S,C,w]}),t[38]=S,t[39]=C,t[40]=w,t[41]=l):l=t[41],u=e.length>0||n.events.length>0?(0,$.jsxs)(`span`,{className:`mt-2 flex min-w-0 flex-wrap gap-1.5`,children:[e.map(Nye),h.map(Mye),g>0?(0,$.jsxs)(`span`,{className:`rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,children:[`+`,g]}):null]}):null,t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=n.events,t[5]=n.preview,t[6]=n.timestamp,t[7]=n.title,t[8]=n.tools,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f,t[15]=p,t[16]=m}else s=t[9],c=t[10],l=t[11],u=t[12],d=t[13],f=t[14],p=t[15],m=t[16];let h;t[42]!==s||t[43]!==c||t[44]!==l||t[45]!==u?(h=(0,$.jsxs)(`span`,{className:s,children:[c,l,u]}),t[42]=s,t[43]=c,t[44]=l,t[45]=u,t[46]=h):h=t[46];let g;return t[47]!==d||t[48]!==f||t[49]!==p||t[50]!==m||t[51]!==h?(g=(0,$.jsx)(`li`,{children:(0,$.jsxs)(`button`,{type:d,className:f,onClick:p,children:[m,h]})}),t[47]=d,t[48]=f,t[49]=p,t[50]=m,t[51]=h,t[52]=g):g=t[52],g}function Mye(e){return(0,$.jsxs)(`span`,{className:`inline-flex max-w-[10rem] items-center gap-1 rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-current opacity-70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Nye(e){return(0,$.jsxs)(`span`,{className:X(`inline-flex max-w-[9rem] items-center gap-1 rounded-md bg-surface-hover px-1.5 py-0.5 text-[11px] text-fg-muted`,e.running&&`text-accent-fg`),children:[(0,$.jsx)(HT,{className:`size-3 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Pye(e){let t=(0,Q.c)(39),{items:n,activeMessageIndex:r,labels:i,openLabel:a,closeLabel:o,currentLabel:s,onSelectMessage:c}=e,l;t[0]!==n||t[1]!==i?(l=u9(n,i),t[0]=n,t[1]=i,t[2]=l):l=t[2];let u=l,[d,f]=(0,Z.useState)(!1);if(u.length<4)return null;let p;t[3]!==r||t[4]!==u?(p=Aye(u,r),t[3]=r,t[4]=u,t[5]=p):p=t[5];let m=p,h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(Rh,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),t[6]=h):h=t[6];let g;t[7]===a?g=t[8]:(g=(0,$.jsx)(z,{asChild:!0,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`size-11 shrink-0 rounded-full p-0 xl:hidden`,"aria-label":a,title:a,children:h})}),t[7]=a,t[8]=g);let _;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(R,{className:`fixed inset-0 z-[80] bg-scrim/70 backdrop-blur-[1px] xl:hidden`}),t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=X(`fixed bottom-0 left-0 right-0 z-[90] flex h-[min(72dvh,34rem)] flex-col overflow-hidden`,`rounded-t-xl border border-edge bg-surface-panel shadow-popover outline-none`,`md:bottom-auto md:left-auto md:right-4 md:top-20 md:h-[min(calc(100dvh-7rem),40rem)] md:w-[22rem] md:rounded-xl`,`xl:hidden`),t[10]=v):v=t[10];let y;t[11]===i.title?y=t[12]:(y=(0,$.jsx)(te,{className:`min-w-0 truncate text-base font-semibold text-fg`,children:i.title}),t[11]=i.title,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)(Ne,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=b):b=t[13];let x;t[14]===o?x=t[15]:(x=(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`size-8 shrink-0 p-0`,"aria-label":o,children:b})}),t[14]=o,t[15]=x);let S;t[16]!==y||t[17]!==x?(S=(0,$.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[y,x]}),t[16]=y,t[17]=x,t[18]=S):S=t[18];let C;if(t[19]!==m||t[20]!==s||t[21]!==i||t[22]!==c||t[23]!==u){let e;t[25]!==m||t[26]!==s||t[27]!==i||t[28]!==c?(e=e=>(0,$.jsx)(jye,{turn:e,active:e.id===m,labels:i,currentLabel:s,onSelect:()=>{c(e.messageIndex),f(!1)}},e.id),t[25]=m,t[26]=s,t[27]=i,t[28]=c,t[29]=e):e=t[29],C=u.map(e),t[19]=m,t[20]=s,t[21]=i,t[22]=c,t[23]=u,t[24]=C}else C=t[24];let w;t[30]===C?w=t[31]:(w=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,$.jsx)(`ol`,{className:`min-w-0`,children:C})}),t[30]=C,t[31]=w);let T;t[32]!==S||t[33]!==w?(T=(0,$.jsxs)(H,{children:[_,(0,$.jsxs)(ee,{className:v,"aria-describedby":void 0,children:[S,w]})]}),t[32]=S,t[33]=w,t[34]=T):T=t[34];let E;return t[35]!==d||t[36]!==T||t[37]!==g?(E=(0,$.jsxs)(ne,{open:d,onOpenChange:f,children:[g,T]}),t[35]=d,t[36]=T,t[37]=g,t[38]=E):E=t[38],E}function Fye(e){let{active:t,scrubbing:n,distance:r}=e;return n?r===0?`w-7 bg-fg`:r===1?`w-5 bg-fg-muted`:r===2?`w-4 bg-edge-strong/70`:t?`w-3.5 bg-fg-muted`:`w-2.5 bg-edge-strong/45`:t?`w-3.5 bg-fg-muted`:`w-2.5 bg-edge-strong/45`}function Iye(e){let t=(0,Q.c)(40),{turn:n,labels:r}=e,i,a,o,s,c,l,u,d,f;if(t[0]!==r||t[1]!==n.events||t[2]!==n.preview||t[3]!==n.timestamp||t[4]!==n.title||t[5]!==n.tools){let e=n.tools.slice(0,3),p=Math.max(0,n.tools.length-e.length),m=n.events.slice(0,Math.max(0,3-e.length));i=p+Math.max(0,n.events.length-m.length);let h=n.tools.length>0||n.events.length>0?[...e.map(Bye),...m.map(zye),...i>0?[`+${i}`]:[]].join(` · `):n.title;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(l=X(`pointer-events-auto absolute right-12 top-1/2 z-[100] w-[min(25rem,calc(100vw-8rem))] -translate-y-1/2`,`rounded-2xl border border-edge bg-surface-panel/95 p-3 text-left shadow-popover backdrop-blur`),t[15]=l):l=t[15],t[16]===n.timestamp?u=t[17]:(u=n.timestamp?(0,$.jsx)(`div`,{className:`mb-1 flex min-w-0 justify-end text-xs`,children:(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`shrink-0 tabular-nums text-fg-disabled`,dateTime:new Date(n.timestamp).toISOString(),children:lZ(n.timestamp)})}):null,t[16]=n.timestamp,t[17]=u),t[18]===n.preview?d=t[19]:(d=(0,$.jsx)(`div`,{className:`min-w-0 text-sm font-semibold leading-5 text-fg`,children:(0,$.jsx)(`span`,{className:`line-clamp-1`,children:n.preview})}),t[18]=n.preview,t[19]=d),t[20]===h?f=t[21]:(f=(0,$.jsx)(`div`,{className:`mt-1 line-clamp-3 text-sm leading-6 text-fg-muted`,children:h}),t[20]=h,t[21]=f),a=`mt-3 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 text-sm text-fg-subtle`,t[22]!==r||t[23]!==n.title||t[24]!==n.tools.length?(o=n.tools.length>0?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,$.jsx)(HT,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:d9(n.tools.length,r)})]}):(0,$.jsx)(`span`,{children:n.title}),t[22]=r,t[23]=n.title,t[24]=n.tools.length,t[25]=o):o=t[25],s=e.map(Rye),c=m.map(Lye),t[0]=r,t[1]=n.events,t[2]=n.preview,t[3]=n.timestamp,t[4]=n.title,t[5]=n.tools,t[6]=i,t[7]=a,t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f}else i=t[6],a=t[7],o=t[8],s=t[9],c=t[10],l=t[11],u=t[12],d=t[13],f=t[14];let p;t[26]===i?p=t[27]:(p=i>0?(0,$.jsxs)(`span`,{children:[`+`,i]}):null,t[26]=i,t[27]=p);let m;t[28]!==a||t[29]!==o||t[30]!==s||t[31]!==c||t[32]!==p?(m=(0,$.jsxs)(`div`,{className:a,children:[o,s,c,p]}),t[28]=a,t[29]=o,t[30]=s,t[31]=c,t[32]=p,t[33]=m):m=t[33];let h;return t[34]!==m||t[35]!==l||t[36]!==u||t[37]!==d||t[38]!==f?(h=(0,$.jsxs)(`div`,{className:l,children:[u,d,f,m]}),t[34]=m,t[35]=l,t[36]=u,t[37]=d,t[38]=f,t[39]=h):h=t[39],h}function Lye(e){return(0,$.jsxs)(`span`,{className:X(`inline-flex min-w-0 max-w-[10rem] items-center gap-1.5`,e.tone===`branch`&&`text-accent`,e.tone===`compaction`&&`text-fg-muted`),children:[(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-current opacity-70`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function Rye(e){return(0,$.jsxs)(`span`,{className:X(`inline-flex min-w-0 max-w-[9rem] items-center gap-1.5`,e.running&&`text-accent`),children:[(0,$.jsx)(HT,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function zye(e){return e.label}function Bye(e){return e.label}function Vye(e){let t=(0,Q.c)(44),{items:n,activeMessageIndex:r,labels:i,onSelectMessage:a}=e,o;t[0]!==n||t[1]!==i?(o=u9(n,i),t[0]=n,t[1]=i,t[2]=o):o=t[2];let s=o,[c,l]=(0,Z.useState)(null),u=(0,Z.useRef)(null),d,f;if(t[3]===c?(d=t[4],f=t[5]):(d=()=>{if(!c)return;let e=()=>{l(null)},t=t=>{let n=t.target;n instanceof Node&&(u.current?.contains(n)||e())},n=t=>{t.key===`Escape`&&e()};return document.addEventListener(`pointerdown`,t,!0),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`pointerdown`,t,!0),document.removeEventListener(`keydown`,n)}},f=[c],t[3]=c,t[4]=d,t[5]=f),(0,Z.useEffect)(d,f),s.length<4)return null;let p;if(t[6]!==r||t[7]!==s){p=s[0]?.id;for(let e of s)e.messageIndex<=r&&(p=e.id);t[6]=r,t[7]=s,t[8]=p}else p=t[8];let m=c??p,h;t[9]!==c||t[10]!==s?(h=c?s.find(e=>e.id===c):null,t[9]=c,t[10]=s,t[11]=h):h=t[11];let g=h,_=c!==null,v;if(t[12]!==m||t[13]!==s){let e;t[15]===m?e=t[16]:(e=e=>e.id===m,t[15]=m,t[16]=e),v=s.findIndex(e),t[12]=m,t[13]=s,t[14]=v}else v=t[14];let y=Math.max(0,v),b=i.title,x,S;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{l(null)},S=e=>{let t=e.relatedTarget;(!(t instanceof Node)||!e.currentTarget.contains(t))&&l(null)},t[17]=x,t[18]=S):(x=t[17],S=t[18]);let C;t[19]===p?C=t[20]:(C=()=>l(e=>e??p??null),t[19]=p,t[20]=C);let w;if(t[21]!==a||t[22]!==_||t[23]!==m||t[24]!==y||t[25]!==s){let e;t[27]!==a||t[28]!==_||t[29]!==m||t[30]!==y?(e=(e,t)=>{let n=e.id===m,r=Math.abs(t-y);return(0,$.jsx)(`li`,{className:`group relative flex h-3.5 w-full shrink-0 items-center justify-end`,onMouseEnter:()=>l(e.id),onFocus:()=>l(e.id),children:(0,$.jsx)(`button`,{type:`button`,className:X(`flex h-3.5 w-full items-center justify-end rounded-sm pr-1.5`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`),onClick:()=>a(e.messageIndex),"aria-label":`${e.title}: ${e.preview}`,children:(0,$.jsx)(`span`,{className:X(`block h-0.5 rounded-full transition-[width,background-color] duration-150 ease-out`,Fye({active:n,scrubbing:_,distance:r}),`group-hover:bg-fg`),"aria-hidden":!0})})},e.id)},t[27]=a,t[28]=_,t[29]=m,t[30]=y,t[31]=e):e=t[31],w=s.map(e),t[21]=a,t[22]=_,t[23]=m,t[24]=y,t[25]=s,t[26]=w}else w=t[26];let T;t[32]!==w||t[33]!==C?(T=(0,$.jsx)(`div`,{className:`chat-timeline-scroll flex min-h-0 w-full flex-col`,children:(0,$.jsx)(`ol`,{className:`my-auto flex w-full shrink-0 flex-col items-end py-1`,onMouseEnter:C,children:w})}),t[32]=w,t[33]=C,t[34]=T):T=t[34];let E;t[35]!==i||t[36]!==g?(E=g?(0,$.jsx)(Iye,{turn:g,labels:i}):null,t[35]=i,t[36]=g,t[37]=E):E=t[37];let D;t[38]!==T||t[39]!==E?(D=(0,$.jsxs)(`div`,{className:`relative z-[90] flex h-full min-h-0 w-full flex-col justify-center overflow-visible`,children:[T,E]}),t[38]=T,t[39]=E,t[40]=D):D=t[40];let O;return t[41]!==i.title||t[42]!==D?(O=(0,$.jsx)(`aside`,{ref:u,className:`hidden h-full min-h-0 max-h-full w-12 shrink-0 items-center overflow-visible py-4 xl:flex`,"aria-label":b,onMouseLeave:x,onBlur:S,children:D}),t[41]=i.title,t[42]=D,t[43]=O):O=t[43],O}function Hye(e,t){return e===`running`||e===`queued`?t.runLinkRunning:e===`succeeded`?t.runLinkCompleted:t.runLinkFinished}var Uye=(0,Z.memo)(function(e){let t=(0,Q.c)(29),{link:n,className:r}=e,i=rt(ct(Wye)).workflows,a=p(),o;t[0]!==n.definitionId||t[1]!==n.goal?(o=n.goal.trim()||n.definitionId,t[0]=n.definitionId,t[1]=n.goal,t[2]=o):o=t[2];let s=o,c;t[3]!==n.ownerAgentId||t[4]!==n.runId||t[5]!==a?(c=()=>a(pY(n.runId,{ownerAgentId:n.ownerAgentId})),t[3]=n.ownerAgentId,t[4]=n.runId,t[5]=a,t[6]=c):c=t[6];let l;t[7]===r?l=t[8]:(l=X(`flex w-full items-start gap-3 rounded-2xl border border-edge bg-surface-panel px-4 py-3 text-left`,`transition-colors hover:bg-surface-hover/60`,gk.focusRingPanel,r),t[7]=r,t[8]=l);let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`span`,{className:`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent-soft text-accent-fg`,children:(0,$.jsx)(fm,{className:`size-4`,"aria-hidden":!0})}),t[9]=u):u=t[9];let d=Hye(n.status,i),f;t[10]===d?f=t[11]:(f=(0,$.jsx)(`span`,{className:`block text-xs font-medium uppercase tracking-wide text-fg-subtle`,children:d}),t[10]=d,t[11]=f);let m;t[12]===n.definitionId?m=t[13]:(m=(0,$.jsx)(`span`,{className:`mt-1 block text-sm font-semibold text-fg`,children:n.definitionId}),t[12]=n.definitionId,t[13]=m);let h;t[14]===s?h=t[15]:(h=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-sm text-fg-muted`,children:s}),t[14]=s,t[15]=h);let g;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(Pr,{className:`size-3.5`,"aria-hidden":!0}),t[16]=g):g=t[16];let _;t[17]===i.taskOpenDetails?_=t[18]:(_=(0,$.jsxs)(`span`,{className:`mt-2 inline-flex items-center gap-1 text-xs font-medium text-accent-fg`,children:[i.taskOpenDetails,g]}),t[17]=i.taskOpenDetails,t[18]=_);let v;t[19]!==m||t[20]!==h||t[21]!==_||t[22]!==f?(v=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[f,m,h,_]}),t[19]=m,t[20]=h,t[21]=_,t[22]=f,t[23]=v):v=t[23];let y;return t[24]!==v||t[25]!==c||t[26]!==l||t[27]!==u?(y=(0,$.jsxs)(`button`,{type:`button`,onClick:c,className:l,children:[u,v]}),t[24]=v,t[25]=c,t[26]=l,t[27]=u,t[28]=y):y=t[28],y});function Wye(e){return e.language}async function Gye(){return(await J(Y(`/api/workflows/definitions`))).definitions??[]}async function Kye(e){return(await J(Y(`/api/workflows/project-presets?${new URLSearchParams({projectId:e}).toString()}`))).presets??[]}async function qye(e,t,n){return(await J(Y(`/api/workflows/project-presets/${encodeURIComponent(t)}`),{method:`PUT`,body:JSON.stringify({projectId:e,contextRefs:n})})).preset}async function Jye(e,t){let n=new URLSearchParams({projectId:e});await J(Y(`/api/workflows/project-presets/${encodeURIComponent(t)}?${n.toString()}`),{method:`DELETE`})}async function Yye(e,t){return J(Y(`/api/workflows/definitions/validate`),{method:`POST`,body:JSON.stringify({name:e,graph:t})})}async function Xye(e){return(await J(Y(`/api/workflows/definitions/generate`),{method:`POST`,body:JSON.stringify(e)})).draft}async function Zye(e,t,n,r){let i=r===0;return(await J(Y(i?`/api/workflows/definitions`:`/api/workflows/definitions/${encodeURIComponent(e)}`),{method:i?`POST`:`PUT`,body:JSON.stringify({name:e,graph:t,manifest:n,expectedRevision:r})})).definition}async function Qye(e){return(await J(Y(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions`))).revisions??[]}async function $ye(e,t,n){return(await J(Y(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions/${t}/restore`),{method:`POST`,body:JSON.stringify({expectedRevision:n})})).definition}async function ebe(e){return(await J(Y(`/api/workflows/drafts`),{method:`POST`,body:JSON.stringify(e)})).draft}async function tbe(e){await J(Y(`/api/workflows/drafts/${encodeURIComponent(e)}`),{method:`DELETE`})}function f9(e,t){let n=t?.ownerAgentId?.trim();n&&e.set(`agentId`,n)}async function nbe(e=50,t){let n=new URLSearchParams({limit:String(e)});f9(n,t);let r=t?.taskId?.trim();r&&n.set(`taskId`,r);let i=t?.projectId?.trim();return i&&n.set(`projectId`,i),(await J(Y(`/api/workflows/runs?${n.toString()}`))).runs??[]}async function p9(e,t){let n=new URLSearchParams;f9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}${r}`))).view}async function rbe(e,t){let n=new URLSearchParams;f9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/comparison${r}`))).comparison}async function ibe(e,t,n){let r=new URLSearchParams;f9(r,n);let i=r.size>0?`?${r.toString()}`:``,a=await ot(Y(`/api/workflows/runs/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(t)}${i}`),{headers:{Accept:`*/*`}});if(!a.ok){let e=await a.json().catch(()=>({})),t=typeof e.error==`string`?e.error:e.error?.message;throw Error(st(a.status,a.statusText,t))}return a.blob()}async function abe(e){return J(Y(`/api/workflows/runs`),{method:`POST`,body:JSON.stringify(e)})}async function m9(e,t){let n=new URLSearchParams;f9(n,t);let r=n.size>0?`?${n.toString()}`:``;await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/cancel${r}`),{method:`POST`})}async function obe(e,t){let n=new URLSearchParams;f9(n,t);let r=n.size>0?`?${n.toString()}`:``,i=t?.projectId?.trim();return J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/retry${r}`),{method:`POST`,body:JSON.stringify(i?{projectId:i}:{})})}async function sbe(e,t,n){let r=new URLSearchParams;f9(r,n);let i=r.size>0?`?${r.toString()}`:``;return J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/replay${i}`),{method:`POST`,body:JSON.stringify({scope:t})})}function cbe(e,t){let n=Number.parseInt(e,10);return Number.isFinite(n)?n:t+1}function h9(e){let t=new Map(e.phases.map(e=>[e.id,e.title])),n=e.phases.find(e=>e.status===`running`),r=e.agents.map((e,n)=>({id:cbe(e.id,n),label:e.label,phase:e.phaseId?t.get(e.phaseId):void 0,prompt:e.prompt??``,invocation:e.invocation,sessionKey:e.sessionKey,transcriptMessageCount:e.transcriptMessageCount,status:e.status,resultPreview:e.resultPreview,error:e.error,startedAtMs:e.startedAtMs,durationMs:e.startedAtMs!=null&&e.completedAtMs!=null?e.completedAtMs-e.startedAtMs:void 0,currentStep:e.currentStep,steps:e.steps?.map(e=>({id:e.id,kind:e.kind,toolName:e.toolName,label:e.label,detail:e.detail,status:e.status,resultPreview:e.resultPreview,error:e.error,startedAtMs:e.startedAtMs,durationMs:e.startedAtMs!=null&&e.completedAtMs!=null?e.completedAtMs-e.startedAtMs:void 0}))})),{metrics:i}=e.run;return{runId:e.run.id,name:e.run.definitionId,description:e.run.goal||e.run.title,phases:e.phases.map(e=>e.title),currentPhase:n?.title,logs:e.logs.map(e=>e.message),agents:r,agentCount:i.agentCount,runningCount:Math.max(0,i.agentCount-i.doneAgentCount-i.errorAgentCount-i.skippedAgentCount),doneCount:i.doneAgentCount,errorCount:i.errorAgentCount,skippedCount:i.skippedAgentCount,durationMs:i.durationMs,result:e.run.result}}function g9(e){return e===`succeeded`?`border-emerald-500/30 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`border-destructive/40 text-destructive`:e===`cancelled`?`border-warning/40 text-warning`:`border-accent/40 text-accent`}var lbe=(0,Z.memo)(function(e){let t=(0,Q.c)(241),{view:n,onAbortCurrentTurn:r}=e,i=uZ(ct(ube)),a=i.live,o;t[0]===n?o=t[1]:(o=h9(n),t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c=Lq(s),t[2]=s,t[3]=c);let l=c,u;t[4]===n.run.status?u=t[5]:(u=eY.has(n.run.status),t[4]=n.run.status,t[5]=u);let d=u,[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(`overview`),[g,_]=(0,Z.useState)(null),[,v]=(0,Z.useState)(0),b;t[6]!==d||t[7]!==v?(b=()=>{if(!d)return;let e=window.setInterval(()=>v(dbe),1e3);return()=>window.clearInterval(e)},t[6]=d,t[7]=v,t[8]=b):b=t[8];let x;t[9]===d?x=t[10]:(x=[d],t[9]=d,t[10]=x),(0,Z.useEffect)(b,x);let S=d&&n.run.startedAtMs?Date.now()-n.run.startedAtMs:n.run.metrics.durationMs??s.durationMs??0,C;t[11]===S?C=t[12]:(C=S?zq(S):``,t[11]=S,t[12]=C);let w=C,T=a.progress(s.doneCount,s.agentCount),E=s.currentPhase||a.activeFallback,D;t[13]!==n.run.definitionId||t[14]!==n.run.goal||t[15]!==n.run.title?(D=n.run.goal.trim()||n.run.title||n.run.definitionId,t[13]=n.run.definitionId,t[14]=n.run.goal,t[15]=n.run.title,t[16]=D):D=t[16];let O=D,k=n.run.metadata?.agentId,A,j,M,N,P,F,I,L,z,U,W,re,ie,ae,oe,se;if(t[17]!==m||t[18]!==E||t[19]!==f||t[20]!==w||t[21]!==d||t[22]!==i||t[23]!==a.agents||t[24]!==a.close||t[25]!==a.currentState||t[26]!==a.details||t[27]!==a.elapsed||t[28]!==a.logs||t[29]!==a.openRun||t[30]!==a.overview||t[31]!==a.result||t[32]!==a.runId||t[33]!==a.status||t[34]!==a.stop||t[35]!==a.title||t[36]!==r||t[37]!==k||t[38]!==T||t[39]!==l||t[40]!==g||t[41]!==h||t[42]!==p||t[43]!==_||t[44]!==s||t[45]!==O||t[46]!==n.logs||t[47]!==n.run.error||t[48]!==n.run.id||t[49]!==n.run.status){let e=n.logs.map(fbe).filter(Boolean),o;t[66]!==d||t[67]!==r||t[68]!==k||t[69]!==n.run.id?(o=()=>{d&&m9(n.run.id,{ownerAgentId:k}).catch(pbe),r?.()},t[66]=d,t[67]=r,t[68]=k,t[69]=n.run.id,t[70]=o):o=t[70],N=o;let c;t[71]===a.overview?c=t[72]:(c={id:`overview`,label:a.overview},t[71]=a.overview,t[72]=c);let u;t[73]===a.agents?u=t[74]:(u={id:`agents`,label:a.agents},t[73]=a.agents,t[74]=u);let v;t[75]===a.logs?v=t[76]:(v={id:`logs`,label:a.logs},t[75]=a.logs,t[76]=v);let b;t[77]===a.result?b=t[78]:(b={id:`result`,label:a.result},t[77]=a.result,t[78]=b);let x;t[79]!==c||t[80]!==u||t[81]!==v||t[82]!==b?(x=[c,u,v,b],t[79]=c,t[80]=u,t[81]=v,t[82]=b,t[83]=x):x=t[83];let S=x;ie=`mb-6`;let C;t[84]===p?C=t[85]:(C=()=>p(!0),t[84]=p,t[85]=C);let D;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(fm,{className:`size-4`,"aria-hidden":!0}),t[86]=D):D=t[86];let ce;t[87]===d?ce=t[88]:(ce=d?(0,$.jsx)(`span`,{className:`absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-surface-panel bg-accent motion-safe:animate-pulse`}):null,t[87]=d,t[88]=ce);let le;t[89]===ce?le=t[90]:(le=(0,$.jsxs)(`span`,{className:`relative flex size-8 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-fg`,children:[D,ce]}),t[89]=ce,t[90]=le);let ue=a.status[n.run.status],de;t[91]===ue?de=t[92]:(de=(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:ue}),t[91]=ue,t[92]=de);let fe;t[93]===n.run.status?fe=t[94]:(fe=X(`rounded-full border px-1.5 py-0.5`,g9(n.run.status)),t[93]=n.run.status,t[94]=fe);let pe;t[95]!==T||t[96]!==fe?(pe=(0,$.jsx)(`span`,{className:fe,children:T}),t[95]=T,t[96]=fe,t[97]=pe):pe=t[97];let me;t[98]===E?me=t[99]:(me=(0,$.jsx)(`span`,{className:`truncate`,children:E}),t[98]=E,t[99]=me);let G;t[100]!==w||t[101]!==a.elapsed?(G=w?(0,$.jsxs)(`span`,{children:[a.elapsed,`: `,(0,$.jsx)(`span`,{className:`text-fg`,children:w})]}):null,t[100]=w,t[101]=a.elapsed,t[102]=G):G=t[102];let he;t[103]!==de||t[104]!==pe||t[105]!==me||t[106]!==G?(he=(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-fg-muted`,children:[de,pe,me,G]}),t[103]=de,t[104]=pe,t[105]=me,t[106]=G,t[107]=he):he=t[107];let _e;t[108]===O?_e=t[109]:(_e=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-sm font-medium leading-tight text-fg`,children:O}),t[108]=O,t[109]=_e);let ve;t[110]!==he||t[111]!==_e?(ve=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[he,_e]}),t[110]=he,t[111]=_e,t[112]=ve):ve=t[112];let ye;t[113]!==C||t[114]!==le||t[115]!==ve?(ye=(0,$.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-2 rounded-lg text-left outline-none hover:bg-surface-hover/70 focus-visible:ring-2 focus-visible:ring-accent`,onClick:C,children:[le,ve]}),t[113]=C,t[114]=le,t[115]=ve,t[116]=ye):ye=t[116];let be;t[117]!==N||t[118]!==d||t[119]!==a.stop?(be=d?(0,$.jsxs)(vt,{type:`button`,variant:`ghost`,className:`hidden h-8 px-2 text-xs sm:inline-flex`,onClick:N,children:[(0,$.jsx)(sc,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[117]=N,t[118]=d,t[119]=a.stop,t[120]=be):be=t[120];let xe;t[121]===p?xe=t[122]:(xe=()=>p(!0),t[121]=p,t[122]=xe);let Se;t[123]!==a.details||t[124]!==xe?(Se=(0,$.jsx)(vt,{type:`button`,variant:`secondary`,className:`h-8 px-2.5 text-xs`,onClick:xe,children:a.details}),t[123]=a.details,t[124]=xe,t[125]=Se):Se=t[125];let Ce;t[126]!==be||t[127]!==Se?(Ce=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[be,Se]}),t[126]=be,t[127]=Se,t[128]=Ce):Ce=t[128],t[129]!==ye||t[130]!==Ce?(ae=(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-2 rounded-xl border border-edge bg-surface-panel px-2.5 py-2 shadow-surface sm:px-3`,children:[ye,Ce]}),t[129]=ye,t[130]=Ce,t[131]=ae):ae=t[131],M=ne,W=f,re=p,j=H,t[132]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(R,{className:`xopc-dialog-overlay fixed inset-0 z-[120] bg-scrim backdrop-blur-[1px]`}),t[132]=U):U=t[132],A=ee,I=`fixed left-1/2 top-1/2 z-[121] flex h-[min(84vh,44rem)] w-[min(100vw-2rem,54rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`;let we;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,$.jsx)(fm,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[133]=we):we=t[133];let Te;t[134]===a.title?Te=t[135]:(Te=(0,$.jsx)(te,{className:`truncate text-sm font-semibold text-fg`,children:a.title}),t[134]=a.title,t[135]=Te);let Ee;t[136]===n.run.status?Ee=t[137]:(Ee=X(`rounded-full border px-1.5 py-0.5 text-[10px]`,g9(n.run.status)),t[136]=n.run.status,t[137]=Ee);let De=a.status[n.run.status],Oe;t[138]!==Ee||t[139]!==De?(Oe=(0,$.jsx)(`span`,{className:Ee,children:De}),t[138]=Ee,t[139]=De,t[140]=Oe):Oe=t[140];let ke;t[141]!==Te||t[142]!==Oe?(ke=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[we,Te,Oe]}),t[141]=Te,t[142]=Oe,t[143]=ke):ke=t[143];let Ae;t[144]===O?Ae=t[145]:(Ae=(0,$.jsx)(B,{className:`mt-1 line-clamp-2 text-xs text-fg-muted`,children:O}),t[144]=O,t[145]=Ae);let je;t[146]!==ke||t[147]!==Ae?(je=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[ke,Ae]}),t[146]=ke,t[147]=Ae,t[148]=je):je=t[148];let Me;t[149]!==k||t[150]!==n.run.id?(Me=pY(n.run.id,{ownerAgentId:k}),t[149]=k,t[150]=n.run.id,t[151]=Me):Me=t[151];let Pe;t[152]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0}),t[152]=Pe):Pe=t[152];let Fe;t[153]!==a.openRun||t[154]!==Me?(Fe=(0,$.jsx)(vt,{asChild:!0,type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,children:(0,$.jsxs)(y,{to:Me,children:[Pe,a.openRun]})}),t[153]=a.openRun,t[154]=Me,t[155]=Fe):Fe=t[155];let Ie;t[156]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,$.jsx)(Ne,{className:`size-4`,"aria-hidden":!0}),t[156]=Ie):Ie=t[156];let Le;t[157]===a.close?Le=t[158]:(Le=(0,$.jsx)(V,{asChild:!0,children:(0,$.jsx)(vt,{type:`button`,variant:`ghost`,className:`size-8 p-0`,"aria-label":a.close,children:Ie})}),t[157]=a.close,t[158]=Le);let Re;t[159]!==Fe||t[160]!==Le?(Re=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[Fe,Le]}),t[159]=Fe,t[160]=Le,t[161]=Re):Re=t[161],t[162]!==je||t[163]!==Re?(L=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge px-4 py-3`,children:[je,Re]}),t[162]=je,t[163]=Re,t[164]=L):L=t[164];let ze=a.title,Be;t[165]!==m||t[166]!==h||t[167]!==S?(Be=S.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":m===e.id,className:X(`rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,m===e.id?`bg-surface-hover text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`),onClick:()=>h(e.id),children:e.label},e.id)),t[165]=m,t[166]=h,t[167]=S,t[168]=Be):Be=t[168],t[169]!==a.title||t[170]!==Be?(z=(0,$.jsx)(`div`,{className:`flex shrink-0 gap-1 border-b border-edge px-4 py-2`,role:`tablist`,"aria-label":ze,children:Be}),t[169]=a.title,t[170]=Be,t[171]=z):z=t[171],oe=`min-h-0 flex-1 overflow-y-auto px-4 py-3`,t[172]!==m||t[173]!==E||t[174]!==w||t[175]!==a.currentState||t[176]!==a.elapsed||t[177]!==a.runId||t[178]!==a.status||t[179]!==T||t[180]!==n.run.error||t[181]!==n.run.id||t[182]!==n.run.status?(se=m===`overview`?(0,$.jsxs)(`div`,{className:`grid gap-3`,children:[(0,$.jsxs)(`section`,{className:`rounded-lg border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(h_,{className:`size-4 text-accent`,"aria-hidden":!0}),a.currentState]}),(0,$.jsxs)(`div`,{className:`grid gap-2 text-sm text-fg-muted sm:grid-cols-2`,children:[(0,$.jsxs)(`p`,{children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:a.status[n.run.status]}),(0,$.jsx)(`span`,{className:`mx-1 text-fg-subtle`,children:`·`}),E]}),(0,$.jsx)(`p`,{children:T}),w?(0,$.jsxs)(`p`,{children:[a.elapsed,`: `,(0,$.jsx)(`span`,{className:`text-fg`,children:w})]}):null,(0,$.jsxs)(`p`,{className:`break-all`,children:[a.runId,`: `,(0,$.jsx)(`span`,{className:`font-mono text-xs`,children:n.run.id})]})]})]}),n.run.error?.message?(0,$.jsx)(`p`,{className:`rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:n.run.error.message}):null]}):null,t[172]=m,t[173]=E,t[174]=w,t[175]=a.currentState,t[176]=a.elapsed,t[177]=a.runId,t[178]=a.status,t[179]=T,t[180]=n.run.error,t[181]=n.run.id,t[182]=n.run.status,t[183]=se):se=t[183],t[184]!==m||t[185]!==i||t[186]!==l||t[187]!==g||t[188]!==_||t[189]!==s?(P=m===`agents`?(0,$.jsxs)(`div`,{className:`grid gap-3 lg:grid-cols-[minmax(0,1fr)_minmax(18rem,24rem)]`,children:[(0,$.jsx)(pJ,{rollup:l,currentPhase:s.currentPhase,labels:i.phase,recentLogs:[],recentLogsHeading:i.recentLogsHeading,showAllLogsLabel:i.showAllLogs,logsExpanded:!1,onToggleLogs:mbe,selectedAgentId:g?.id,onSelectAgent:_}),(0,$.jsx)(Gq,{agent:g,snapshot:s,labels:i.checkDetail,onClose:()=>_(null)})]}):null,t[184]=m,t[185]=i,t[186]=l,t[187]=g,t[188]=_,t[189]=s,t[190]=P):P=t[190],F=m===`logs`?(0,$.jsxs)(`section`,{className:`rounded-lg border border-edge bg-surface-base p-3`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(Bv,{className:`size-4 text-accent`,"aria-hidden":!0}),a.logs]}),e.length?(0,$.jsx)(`div`,{className:`space-y-1`,children:e.map(hbe)}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:i.error.noExtraDetails})]}):null,t[17]=m,t[18]=E,t[19]=f,t[20]=w,t[21]=d,t[22]=i,t[23]=a.agents,t[24]=a.close,t[25]=a.currentState,t[26]=a.details,t[27]=a.elapsed,t[28]=a.logs,t[29]=a.openRun,t[30]=a.overview,t[31]=a.result,t[32]=a.runId,t[33]=a.status,t[34]=a.stop,t[35]=a.title,t[36]=r,t[37]=k,t[38]=T,t[39]=l,t[40]=g,t[41]=h,t[42]=p,t[43]=_,t[44]=s,t[45]=O,t[46]=n.logs,t[47]=n.run.error,t[48]=n.run.id,t[49]=n.run.status,t[50]=A,t[51]=j,t[52]=M,t[53]=N,t[54]=P,t[55]=F,t[56]=I,t[57]=L,t[58]=z,t[59]=U,t[60]=W,t[61]=re,t[62]=ie,t[63]=ae,t[64]=oe,t[65]=se}else A=t[50],j=t[51],M=t[52],N=t[53],P=t[54],F=t[55],I=t[56],L=t[57],z=t[58],U=t[59],W=t[60],re=t[61],ie=t[62],ae=t[63],oe=t[64],se=t[65];let ce;t[191]!==m||t[192]!==i||t[193]!==a.noResult||t[194]!==n.run.result?(ce=m===`result`?lY(n.run.result)?(0,$.jsx)(gJ,{result:n.run.result,labels:i.result}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:a.noResult}):null,t[191]=m,t[192]=i,t[193]=a.noResult,t[194]=n.run.result,t[195]=ce):ce=t[195];let le;t[196]!==P||t[197]!==F||t[198]!==ce||t[199]!==oe||t[200]!==se?(le=(0,$.jsxs)(`div`,{className:oe,children:[se,P,F,ce]}),t[196]=P,t[197]=F,t[198]=ce,t[199]=oe,t[200]=se,t[201]=le):le=t[201];let ue;t[202]===n.run.definitionId?ue=t[203]:(ue=(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:n.run.definitionId}),t[202]=n.run.definitionId,t[203]=ue);let de;t[204]!==N||t[205]!==d||t[206]!==a.stop?(de=d?(0,$.jsxs)(vt,{type:`button`,variant:`secondary`,className:`h-8 text-xs`,onClick:N,children:[(0,$.jsx)(sc,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[204]=N,t[205]=d,t[206]=a.stop,t[207]=de):de=t[207];let fe;t[208]!==k||t[209]!==n.run.id?(fe=pY(n.run.id,{ownerAgentId:k}),t[208]=k,t[209]=n.run.id,t[210]=fe):fe=t[210];let pe;t[211]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0}),t[211]=pe):pe=t[211];let me;t[212]!==a.openRun||t[213]!==fe?(me=(0,$.jsx)(vt,{asChild:!0,type:`button`,variant:`primary`,className:`h-8 text-xs`,children:(0,$.jsxs)(y,{to:fe,children:[pe,a.openRun]})}),t[212]=a.openRun,t[213]=fe,t[214]=me):me=t[214];let G;t[215]!==de||t[216]!==me?(G=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[de,me]}),t[215]=de,t[216]=me,t[217]=G):G=t[217];let he;t[218]!==ue||t[219]!==G?(he=(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-edge px-4 py-3`,children:[ue,G]}),t[218]=ue,t[219]=G,t[220]=he):he=t[220];let _e;t[221]!==A||t[222]!==I||t[223]!==L||t[224]!==z||t[225]!==le||t[226]!==he?(_e=(0,$.jsxs)(A,{className:I,children:[L,z,le,he]}),t[221]=A,t[222]=I,t[223]=L,t[224]=z,t[225]=le,t[226]=he,t[227]=_e):_e=t[227];let ve;t[228]!==j||t[229]!==U||t[230]!==_e?(ve=(0,$.jsxs)(j,{children:[U,_e]}),t[228]=j,t[229]=U,t[230]=_e,t[231]=ve):ve=t[231];let ye;t[232]!==M||t[233]!==W||t[234]!==re||t[235]!==ve?(ye=(0,$.jsx)(M,{open:W,onOpenChange:re,children:ve}),t[232]=M,t[233]=W,t[234]=re,t[235]=ve,t[236]=ye):ye=t[236];let be;return t[237]!==ie||t[238]!==ae||t[239]!==ye?(be=(0,$.jsxs)(`div`,{className:ie,children:[ae,ye]}),t[237]=ie,t[238]=ae,t[239]=ye,t[240]=be):be=t[240],be});function ube(e){return e.language}function dbe(e){return e+1}function fbe(e){return e.message}function pbe(){}function mbe(){}function hbe(e,t){return(0,$.jsx)(`p`,{className:`break-words font-mono text-xs leading-5 text-fg-muted`,children:e},`${t}:${e}`)}function gbe(e,t){return e.kind??e.projectKind??t??`general`}function _be(e){return e.effectiveWorkspaceRoot||e.workspaceRoot||void 0}async function _9(e){return(await FB({workspaceRoot:e})).inference.kind===`coding`?{kind:`codingWorkspace`,path:e}:{kind:`workingDirectory`,path:e}}function v9({attempt:e,enabled:t,sessionKey:n,sourceNoteId:r,sourceNoteTitle:i,sourceContextPending:a,sourceContextFailed:o,effectiveWorkspacePath:s,workingDirectoryLocked:c,task:l,file:u,workflow:d}){return t?a?`pending:${n??``}`:l?`task:${l.task.id}:${l.task.version}`:u?`file:${u.name}:${u.type}`:d?`workflow:${d.run.id}:${d.run.status}`:r?`note:${r}:${i?.trim()??``}`:c&&s?.trim()?`workspace:${n??``}:${s.trim()}`:n?`session:${n}:attempt:${e}:failed:${o?`1`:`0`}`:`empty`:`disabled`}function y9(e){let t=v9(e);if(!e.enabled)return{key:t,context:{kind:`empty`},status:`ready`};if(e.sourceContextPending)return{key:t,context:{kind:`empty`},status:`loading`};if(e.task){let n=e.task.receipts[0];return{key:t,context:{kind:`task`,taskId:e.task.task.id,taskTitle:e.task.task.title,phase:e.task.task.phase,operationalState:e.task.operationalState,attentionSummary:e.task.attention[0]?.summary,nextAction:n?.nextAction,recentFailure:n?.failure?.recoveryAction},status:`ready`}}if(e.file)return{key:t,context:{kind:`file`,fileName:e.file.name},status:`ready`};if(e.workflow){let n=e.workflow.run;return{key:t,context:{kind:`workflow`,workflowName:n.goal.trim()||n.title||n.definitionId,status:n.status,nextAction:n.result?.followUps?.[0]?.prompt??n.result?.actions?.[0]?.label,recentFailure:n.error?.message},status:`ready`}}if(e.sourceNoteId)return{key:t,context:{kind:`note`,noteId:e.sourceNoteId,title:e.sourceNoteTitle?.trim()||`Untitled note`},status:`ready`};let n=e.effectiveWorkspacePath?.trim();return e.workingDirectoryLocked&&n?{key:t,context:{kind:`workingDirectory`,path:n},status:e.sourceContextFailed?`degraded`:`ready`}:e.sessionKey?{key:t,context:{kind:`empty`},status:`loading`}:{key:t,context:{kind:`empty`},status:`ready`}}function vbe({enabled:e,sessionKey:t,sourceNoteId:n,sourceNoteTitle:r,sourceContextPending:i=!1,sourceContextFailed:a=!1,effectiveWorkspacePath:o,workingDirectoryLocked:s=!1,task:c,file:l,workflow:u,sessionManager:d}){let[f,p]=(0,Z.useState)(0),m={attempt:f,enabled:e,sessionKey:t,sourceNoteId:n,sourceNoteTitle:r,sourceContextPending:i,sourceContextFailed:a,effectiveWorkspacePath:o,workingDirectoryLocked:s,task:c,file:l,workflow:u,sessionManager:d},h=v9(m),[g,_]=(0,Z.useState)(()=>y9(m)),v=(0,Z.useCallback)(()=>p(e=>e+1),[]);(0,Z.useEffect)(()=>{let f=!1;if(!e){_({key:h,context:{kind:`empty`},status:`ready`});return}if(i){_({key:h,context:{kind:`empty`},status:`loading`});return}if(c){_(y9(m));return}if(l||u){_(y9(m));return}if(n){_({key:h,context:{kind:`note`,noteId:n,title:r?.trim()||`Untitled note`},status:`ready`});return}let p=s?o?.trim():void 0;if(p)return _({key:h,context:{kind:`workingDirectory`,path:p},status:a?`degraded`:`ready`}),(async()=>{try{let e=await _9(p);f||_({key:h,context:e,status:a?`degraded`:`ready`})}catch{f||_({key:h,context:{kind:`workingDirectory`,path:p},status:`degraded`})}})(),()=>{f=!0};if(!t){_({key:h,context:{kind:`empty`},status:`ready`});return}return _({key:h,context:{kind:`empty`},status:`loading`}),(async()=>{let e=a,n=null;try{n=(await eV(t)).projectId?.trim()||null}catch{e=!0}if(n)try{let[t,r]=await Promise.allSettled([jB(n),MB(n)]);if(t.status===`rejected`)throw t.reason;let i=t.value,a=r.status===`fulfilled`?r.value:null;a||(e=!0);let o=i.kind??i.projectKind??null;if(!o)try{o=(await FB({name:i.name,description:i.description,workspaceRoot:i.effectiveWorkspaceRoot??i.workspaceRoot})).inference.kind}catch{e=!0,o=`general`}if(f)return;let s=gbe(i,o),c=a?.blockers[0],l=a?.digest.health===`attention`?a.recentResults.find(({receipt:e})=>e.status===`failed`||e.verification.status===`failed`):void 0,u={recommendedAction:a?.digest.recommendedAction,blockedReason:c?.detail??c?.title,recentFailure:l?.receipt.failure?.recoveryAction??l?.receipt.summary};_({key:h,context:s===`coding`?{kind:`codingProject`,projectId:n,projectName:i.name,workspaceRoot:_be(i),...u}:{kind:`generalProject`,projectId:n,projectName:i.name,...u},status:e?`degraded`:`ready`});return}catch{e=!0}try{let n=await d.loadSessionAgentConfig(t),r=n.workingDirectoryLocked?n.effectiveWorkspacePath.trim():``;if(f)return;if(r){let t={kind:`workingDirectory`,path:r};try{t=await _9(r)}catch{e=!0}if(f)return;_({key:h,context:t,status:e?`degraded`:`ready`});return}}catch{e=!0}f||_({key:h,context:{kind:`empty`},status:e?`degraded`:`ready`})})(),()=>{f=!0}},[f,h,e,t,d,a,i,o,s,c,l,u,n,r]);let y=g.key===h?g:y9(m);return{context:y.context,status:y.status,retry:v}}var b9=`xopc:chat-welcome-suggestion-metrics:v2`,ybe=`xopc:welcome-suggestion-metric`,bbe=64;function x9(){try{let e=globalThis.localStorage?.getItem(b9);if(!e)return{};let t=JSON.parse(e);if(!t||typeof t!=`object`||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t)){if(!r||typeof r!=`object`||Array.isArray(r))continue;let t=r;n[e]={impressions:Number.isFinite(t.impressions)?Number(t.impressions):0,picks:Number.isFinite(t.picks)?Number(t.picks):0,sends:Number.isFinite(t.sends)?Number(t.sends):0,acceptedSends:Number.isFinite(t.acceptedSends)?Number(t.acceptedSends):0,skips:Number.isFinite(t.skips)?Number(t.skips):0,lastUsedAt:Number.isFinite(t.lastUsedAt)?Number(t.lastUsedAt):0}}return n}catch{return{}}}function xbe(e){try{let t=Object.entries(e).sort(([,e],[,t])=>t.lastUsedAt-e.lastUsedAt).slice(0,bbe);globalThis.localStorage?.setItem(b9,JSON.stringify(Object.fromEntries(t)))}catch{}}function Sbe(e){return`${e.contextKind}\u0000${e.agentId}\u0000${e.suggestionId}`}function Cbe(e,t){let n=x9();return Object.fromEntries(Object.entries(n).flatMap(([n,r])=>{let[i,a,o]=n.split(`\0`);if(i!==e||a!==t||!o)return[];let s=Math.max(0,r.picks*3+r.sends*2+r.acceptedSends*6-r.skips*4);return[[o,Math.min(35,s)]]}))}function S9(e){let t=e.suggestionId.trim();if(!t)return;let n=x9(),r=Sbe({...e,suggestionId:t}),i=n[r]??{impressions:0,picks:0,sends:0,acceptedSends:0,skips:0,lastUsedAt:0},a=e.type===`send`&&(!e.edited||Math.abs(e.characterDelta??0)<40);n[r]={impressions:i.impressions+ +(e.type===`impression`),picks:i.picks+ +(e.type===`pick`),sends:i.sends+ +(e.type===`send`),acceptedSends:i.acceptedSends+ +!!a,skips:i.skips+ +(e.type===`skip`),lastUsedAt:Date.now()},xbe(n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(ybe,{detail:e}))}var C9={list:e=>{let t=new URLSearchParams;e?.projectId&&t.set(`projectId`,e.projectId);let n=t.toString();return J(Y(`/api/automations${n?`?${n}`:``}`))},metrics:()=>J(Y(`/api/automations/metrics`)),draft:e=>J(Y(`/api/automations/draft`),{method:`POST`,body:JSON.stringify(e)}),simulate:e=>J(Y(`/api/automations/simulate`),{method:`POST`,body:JSON.stringify(e)}),create:e=>J(Y(`/api/automations`),{method:`POST`,body:JSON.stringify(e)}),update:(e,t)=>J(Y(`/api/automations/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)}),remove:e=>J(Y(`/api/automations/${encodeURIComponent(e)}`),{method:`DELETE`}),runNow:e=>J(Y(`/api/automations/${encodeURIComponent(e)}/run`),{method:`POST`}),pause:e=>J(Y(`/api/automations/${encodeURIComponent(e)}/pause`),{method:`POST`}),resume:e=>J(Y(`/api/automations/${encodeURIComponent(e)}/resume`),{method:`POST`}),runs:(e=50,t,n)=>{let r=new URLSearchParams({limit:String(e)});return t&&r.set(`automationId`,t),!t&&n?.projectId&&r.set(`projectId`,n.projectId),J(Y(`/api/automation-runs?${r.toString()}`))},productEventRuns:e=>{let t=new URLSearchParams({eventType:e.eventType,limit:String(e.limit??5)});return e.source&&t.set(`source`,e.source),e.payloadKey&&t.set(`payloadKey`,e.payloadKey),e.payloadValue!==void 0&&t.set(`payloadValue`,e.payloadValue),J(Y(`/api/automation-runs/product-events?${t.toString()}`))},runEvents:e=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/events`)),rerun:e=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/rerun`),{method:`POST`}),repairDraft:(e,t)=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/repair-draft`),{method:`POST`,body:JSON.stringify(t)}),cancelRun:e=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/cancel`),{method:`POST`}),markRunRead:e=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/read`),{method:`POST`}),markAllRunsRead:e=>J(Y(`/api/automation-runs/read-all${e?`?projectId=${encodeURIComponent(e)}`:``}`),{method:`POST`})};function w9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function wbe(e,t){if(!e.enabled||e.trigger.kind!==`event`||e.trigger.eventType!==t.eventType||e.trigger.source&&e.trigger.source!==t.source)return!1;let n=e.trigger.payloadMatch;if(!n)return!0;let r=t.eventPayload??{};return Object.entries(n).every(([e,t])=>Object.is(r[e],t))}function Tbe(e,t){let n=e.trigger,r=t.explain;return n.kind===`event`?[T9(n.eventType,n.source,t),E9(n.payloadMatch,t),O9(e.safety,t),D9(e.action,t)]:[r.triggerMatched,D9(e.action,t)]}function Ebe(e,t,n){let r=e.triggerSnapshot,i=Obe(t),a=n.explain;return r.kind===`event`?[i?T9(i.type,i.source,n):T9(r.eventType,r.source,n),E9(r.payloadMatch,n),O9(Dbe(t),n),D9(e.actionSnapshot,n)]:r.kind===`manual`?[a.manual,D9(e.actionSnapshot,n)]:r.kind===`webhook`?[a.webhook,D9(e.actionSnapshot,n)]:[a.schedule,D9(e.actionSnapshot,n)]}function T9(e,t,n){let r=n.explain;return t?w9(r.eventFrom,{eventType:e,source:t}):w9(r.event,{eventType:e})}function E9(e,t){if(!e||Object.keys(e).length===0)return t.explain.noPayloadFilter;let n=Object.entries(e).slice(0,3).map(([e,t])=>`${e}=${String(t)}`).join(`, `);return w9(t.explain.payloadMatched,{pairs:n})}function D9(e,t){return e.kind===`workflow`?w9(t.explain.actionWorkflow,{workflowId:e.workflowId}):e.kind===`browser_recipe`?`Runs browser automation ${e.recipeId}.`:t.explain.actionAgent}function O9(e,t){let n=e?.mode??`auto_apply`;return w9(t.explain.safetyMode,{mode:t.safety[n]})}function Dbe(e){if(!e.data||typeof e.data!=`object`||Array.isArray(e.data))return;let t=e.data.safety;if(!t||typeof t!=`object`||Array.isArray(t))return;let n=t.mode;return n===`suggest_only`||n===`ask_before_apply`||n===`auto_apply`?{mode:n}:void 0}function Obe(e){if(!e.data||typeof e.data!=`object`||Array.isArray(e.data))return null;let t=e.data.event;if(!t||typeof t!=`object`||Array.isArray(t))return null;let n=t;return typeof n.type!=`string`||!n.type.trim()?null:{type:n.type,source:typeof n.source==`string`?n.source:void 0}}function kbe(e){return e===`succeeded`?`border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300`:e===`cancelled`?`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`}function Abe(e,t){return new Date(e).toLocaleString(t,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}function jbe(e){return e.some(e=>[`queued`,`running`,`cancelling`].includes(e.run.status))}function k9(e){return e===`failed`||e===`timeout`||e===`cancelled`}function Mbe(e){let t=new Map;for(let{run:n}of e){let e=t.get(n.automationId),r=!e||n.createdAtMs>e.latest.createdAtMs?n:e.latest;t.set(n.automationId,{latest:r,hadAttention:!!e?.hadAttention||k9(n.status)})}let n={total:t.size,succeeded:0,active:0,attention:0,recovered:0};for(let{latest:e,hadAttention:r}of t.values())e.status===`succeeded`&&(n.succeeded+=1),e.status===`succeeded`&&r&&(n.recovered+=1),(e.status===`queued`||e.status===`running`||e.status===`cancelling`)&&(n.active+=1),k9(e.status)&&(n.attention+=1,n.latestAttentionRun??=e);return n}function Nbe(e){let t=new Map;for(let{run:n}of e){let e=t.get(n.automationId);(!e||n.createdAtMs>e.createdAtMs)&&t.set(n.automationId,n)}return t}function A9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function Pbe(e){let t=(0,Q.c)(47),{health:n,labels:r,primaryRepairBusy:i,onPrimaryRepair:a}=e,o=n.attention>0,s=n.active>0,c=n.recovered>0,l;t[0]!==s||t[1]!==c||t[2]!==n.active||t[3]!==n.attention||t[4]!==n.latestAttentionRun?.automationName||t[5]!==n.recovered||t[6]!==n.succeeded||t[7]!==n.total||t[8]!==r.feedback.summaryHealthy||t[9]!==r.feedback.summaryNeedsAttention||t[10]!==r.feedback.summaryRecovered||t[11]!==r.feedback.summaryRunning||t[12]!==r.feedback.thisAutomation||t[13]!==o?(l=o?A9(r.feedback.summaryNeedsAttention,{total:n.total,attention:n.attention,name:n.latestAttentionRun?.automationName??r.feedback.thisAutomation}):s?A9(r.feedback.summaryRunning,{total:n.total,active:n.active}):c?A9(r.feedback.summaryRecovered,{total:n.total,recovered:n.recovered,succeeded:n.succeeded}):A9(r.feedback.summaryHealthy,{total:n.total,succeeded:n.succeeded}),t[0]=s,t[1]=c,t[2]=n.active,t[3]=n.attention,t[4]=n.latestAttentionRun?.automationName,t[5]=n.recovered,t[6]=n.succeeded,t[7]=n.total,t[8]=r.feedback.summaryHealthy,t[9]=r.feedback.summaryNeedsAttention,t[10]=r.feedback.summaryRecovered,t[11]=r.feedback.summaryRunning,t[12]=r.feedback.thisAutomation,t[13]=o,t[14]=l):l=t[14];let u=l,d=o?`text-amber-800 dark:text-amber-200`:`text-fg-muted`,f;t[15]===d?f=t[16]:(f=X(`break-words text-xs leading-5`,d),t[15]=d,t[16]=f);let p;t[17]!==u||t[18]!==f?(p=(0,$.jsx)(`p`,{className:f,children:u}),t[17]=u,t[18]=f,t[19]=p):p=t[19];let m;t[20]!==n.succeeded||t[21]!==r.feedback.succeededCount?(m=n.succeeded?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(me,{className:`size-3`,"aria-hidden":!0}),A9(r.feedback.succeededCount,{count:n.succeeded})]}):null,t[20]=n.succeeded,t[21]=r.feedback.succeededCount,t[22]=m):m=t[22];let h;t[23]!==n.active||t[24]!==r.feedback.activeCount?(h=n.active?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-blue-500/25 bg-blue-500/10 px-2 py-0.5 text-xs text-blue-700 dark:text-blue-300`,children:[(0,$.jsx)(Mc,{className:`size-3`,"aria-hidden":!0}),A9(r.feedback.activeCount,{count:n.active})]}):null,t[23]=n.active,t[24]=r.feedback.activeCount,t[25]=h):h=t[25];let g;t[26]!==n.attention||t[27]!==r.feedback.attentionCount?(g=n.attention?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-amber-500/25 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-700 dark:text-amber-300`,children:[(0,$.jsx)(IC,{className:`size-3`,"aria-hidden":!0}),A9(r.feedback.attentionCount,{count:n.attention})]}):null,t[26]=n.attention,t[27]=r.feedback.attentionCount,t[28]=g):g=t[28];let _;t[29]!==n.recovered||t[30]!==r.feedback.recoveredCount?(_=n.recovered?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(me,{className:`size-3`,"aria-hidden":!0}),A9(r.feedback.recoveredCount,{count:n.recovered})]}):null,t[29]=n.recovered,t[30]=r.feedback.recoveredCount,t[31]=_):_=t[31];let v;t[32]!==m||t[33]!==h||t[34]!==g||t[35]!==_?(v=(0,$.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap gap-1.5`,children:[m,h,g,_]}),t[32]=m,t[33]=h,t[34]=g,t[35]=_,t[36]=v):v=t[36];let y;t[37]!==r.feedback.primaryRepair||t[38]!==r.feedback.primaryRepairing||t[39]!==o||t[40]!==a||t[41]!==i?(y=o&&a?(0,$.jsx)(`div`,{className:`mt-2`,children:(0,$.jsxs)(vt,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:i,onClick:a,children:[(0,$.jsx)(Wy,{className:`size-3.5`,"aria-hidden":!0}),i?r.feedback.primaryRepairing:r.feedback.primaryRepair]})}):null,t[37]=r.feedback.primaryRepair,t[38]=r.feedback.primaryRepairing,t[39]=o,t[40]=a,t[41]=i,t[42]=y):y=t[42];let b;return t[43]!==y||t[44]!==p||t[45]!==v?(b=(0,$.jsxs)(`div`,{className:`mb-3 border-l-2 border-accent/50 pl-3`,children:[p,v,y]}),t[43]=y,t[44]=p,t[45]=v,t[46]=b):b=t[46],b}function j9({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i=3,className:a,onSaveInsight:o,isInsightSaved:s}){let c=ct(e=>e.language),l=rt(c).automations,u=c===`zh`?`zh-CN`:`en-US`,d=[`product-automation-feedback`,e,t??``,n??``,r??``,i],[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),{data:g,mutate:_}=mt(e&&(!n||r!==void 0)?d:null,()=>C9.productEventRuns({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i}),{revalidateOnFocus:!1,refreshInterval:e=>e?.items&&jbe(e.items)?3e3:15e3}),[v,b]=(0,Z.useState)({}),[x,S]=(0,Z.useState)({}),C=g?.items??[],w=Mbe(C),T=Nbe(C);if(!C.length)return null;let E=async(e,t)=>{p(e),h(null);try{await t(),await _()}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},D=async e=>{p(`${e.id}:repair`),h(null);try{let t=await C9.repairDraft(e.id,{language:c});b(n=>({...n,[e.id]:t.repair})),S(t=>({...t,[e.id]:!1}))}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},O=async(e,t,n=!1)=>{p(n?`${e.id}:applyAndRerun`:`${e.id}:applyRepair`),h(null);try{await C9.update(e.automationId,t.patch),n&&await C9.rerun(e.id),await _(),b(t=>{let n={...t};return delete n[e.id],n}),S(t=>{let n={...t};return delete n[e.id],n})}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},k=w.latestAttentionRun&&!v[w.latestAttentionRun.id]?w.latestAttentionRun:void 0,A=k?f===`${k.id}:repair`:!1;return(0,$.jsxs)(`section`,{className:X(`rounded-lg border border-edge bg-surface-panel p-3`,a),children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`h3`,{className:`flex min-w-0 items-center gap-2 text-sm font-semibold text-fg`,children:[(0,$.jsx)(GT,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:l.feedback.title})]}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:C.length})]}),(0,$.jsx)(Pbe,{health:w,labels:l,primaryRepairBusy:A,onPrimaryRepair:k?()=>void D(k):void 0}),m?(0,$.jsxs)(`p`,{className:`mb-2 rounded-md border border-danger/25 bg-danger-soft px-2.5 py-2 text-xs text-danger`,role:`alert`,children:[l.feedback.actionFailed,`: `,m]}):null,(0,$.jsx)(`ul`,{className:`grid gap-2`,children:C.map(({run:e,triggerEvent:t})=>{let n=T.get(e.automationId),r=n?.id===e.id,i=k9(e.status)&&!r,a=i&&n?.status===`succeeded`,c=v[e.id],d=x[e.id]??!1,p=f===`${e.id}:repair`,m=f===`${e.id}:applyRepair`,h=f===`${e.id}:applyAndRerun`,g=Ebe(e,t,l),_=s?.(e)??!1,C=e.status===`succeeded`&&!!e.summary&&!!o&&!_,w=f===`${e.id}:saveInsight`;return(0,$.jsxs)(`li`,{className:`rounded-md border border-edge/70 bg-surface-muted/35 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,$.jsx)(Qi,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`p`,{className:`truncate text-sm font-medium text-fg`,children:e.automationName})]}),(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 break-words text-xs text-fg-muted`,children:e.error||e.summary||t.message})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-col items-end gap-1`,children:[(0,$.jsx)(`span`,{className:X(`rounded-full border px-2 py-0.5 text-xs`,kbe(e.status)),children:l.status[e.status]}),i?(0,$.jsx)(`span`,{className:`rounded-full border border-emerald-500/25 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-700 dark:text-emerald-300`,children:a?l.feedback.recovered:l.feedback.historical}):null]})]}),(0,$.jsx)(`div`,{className:`mt-2 flex items-center justify-between gap-2 text-xs text-fg-muted`,children:(0,$.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1`,children:[(0,$.jsx)(sn,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:Abe(t.createdAtMs,u)})]})}),(0,$.jsxs)(`div`,{className:`mt-2 rounded-md border border-edge/60 bg-surface-base/45 px-2.5 py-2`,children:[(0,$.jsx)(`div`,{className:`text-xs font-medium text-fg`,children:l.explain.whyRan}),(0,$.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1.5`,children:g.map(e=>(0,$.jsx)(`span`,{className:`rounded-full border border-edge/70 bg-surface-panel px-2 py-0.5 text-xs text-fg-muted`,children:e},e))})]}),c?(0,$.jsxs)(`div`,{className:`mt-2 rounded-md border border-amber-500/30 bg-amber-500/10 px-2.5 py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-semibold text-amber-800 dark:text-amber-200`,children:[(0,$.jsx)(Wy,{className:`size-3.5`,"aria-hidden":!0}),l.repair.title]}),(0,$.jsx)(`p`,{className:`mt-1 break-words text-xs text-fg`,children:c.explanation}),c.expectedEffect?(0,$.jsx)(`p`,{className:`mt-1 break-words text-xs text-fg-muted`,children:c.expectedEffect}):null,c.risks.length?(0,$.jsx)(`ul`,{className:`mt-2 list-disc space-y-1 pl-4 text-xs text-fg-muted`,children:c.risks.slice(0,3).map(e=>(0,$.jsx)(`li`,{children:e},e))}):null,c.requiresApproval?(0,$.jsxs)(`label`,{className:`mt-2 flex items-start gap-2 text-xs text-fg`,children:[(0,$.jsx)(`input`,{className:`mt-0.5`,type:`checkbox`,checked:d,onChange:t=>{S(n=>({...n,[e.id]:t.target.checked}))}}),(0,$.jsx)(`span`,{children:l.repair.approval})]}):null,(0,$.jsxs)(`div`,{className:`mt-2 flex flex-wrap justify-end gap-1.5`,children:[(0,$.jsx)(vt,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,onClick:()=>{b(t=>{let n={...t};return delete n[e.id],n})},children:l.draft.discard}),(0,$.jsx)(vt,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void O(e,c),children:m?l.feedback.working:l.repair.apply}),(0,$.jsxs)(vt,{variant:`primary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void O(e,c,!0),children:[(0,$.jsx)(Lv,{className:`size-3.5`,"aria-hidden":!0}),h?l.feedback.working:l.feedback.applyAndRerun]})]})]}):null,(0,$.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-1.5`,children:[_?(0,$.jsxs)(`span`,{className:`inline-flex h-7 items-center gap-1 rounded-md border border-emerald-500/25 bg-emerald-500/10 px-2 text-xs text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.savedInsight]}):null,C?(0,$.jsxs)(vt,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void E(`${e.id}:saveInsight`,()=>Promise.resolve(o(e))),children:[(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0}),w?l.feedback.savingInsight:l.feedback.saveInsight]}):null,e.sessionKey?(0,$.jsx)(vt,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/chat/${encodeURIComponent(e.sessionKey)}`,children:[(0,$.jsx)($_,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.chat]})}):null,e.workflowRunId?(0,$.jsx)(vt,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/workflows?run=${encodeURIComponent(e.workflowRunId)}`,children:[(0,$.jsx)(fm,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.workflow]})}):null,r&&k9(e.status)&&!c?(0,$.jsxs)(vt,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void D(e),children:[(0,$.jsx)(Wy,{className:`size-3.5`,"aria-hidden":!0}),p?l.repair.generating:l.repair.suggest]}):null,(0,$.jsxs)(vt,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void E(`${e.id}:rerun`,()=>C9.rerun(e.id)),children:[(0,$.jsx)(Lv,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:rerun`?l.feedback.working:l.feedback.rerun]}),(0,$.jsxs)(vt,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void E(`${e.id}:pause`,()=>C9.pause(e.automationId)),children:[(0,$.jsx)(Ys,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:pause`?l.feedback.working:l.feedback.pause]}),(0,$.jsx)(vt,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/automations?run=${encodeURIComponent(e.id)}`,children:[(0,$.jsx)(ge,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.open]})})]})]},e.id)})})]})}function Fbe(e){if(!e||typeof e!=`object`)return null;let t=e;if(t.kind!==`context`)return null;let n=t.data&&typeof t.data==`object`&&!Array.isArray(t.data)?t.data:null;if(!n||n.kind!==`workflow-run-link`)return null;let r=typeof n.runId==`string`?n.runId.trim():``,i=typeof n.workflowSessionKey==`string`?n.workflowSessionKey.trim():``,a=typeof n.ownerAgentId==`string`?n.ownerAgentId.trim():``,o=typeof n.definitionId==`string`?n.definitionId.trim():``;if(!r||!i||!o)return null;let s=typeof n.goal==`string`?n.goal:``,c=typeof n.status==`string`?n.status:`running`,l=typeof t.id==`string`&&t.id.trim()?t.id.trim():`workflow-run-link:${r}`,u=typeof t.createdAt==`string`?Date.parse(t.createdAt):void 0;return{id:l,runId:r,ownerAgentId:a||void 0,workflowSessionKey:i,definitionId:o,goal:s,status:c,createdAtMs:Number.isFinite(u)?u:void 0}}function Ibe(e){if(!e?.length)return[];let t=new Map;for(let n of e){let e=Fbe(n);if(!e)continue;let r=t.get(e.runId);t.set(e.runId,{...r,...e,ownerAgentId:e.ownerAgentId??r?.ownerAgentId,workflowSessionKey:e.workflowSessionKey||r?.workflowSessionKey||``,definitionId:e.definitionId||r?.definitionId||``,goal:e.goal||r?.goal||``})}return[...t.values()].toSorted((e,t)=>(e.createdAtMs??0)-(t.createdAtMs??0))}function Lbe(e){let t=(0,Q.c)(8),n=ut(Rbe),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]!==n||t[3]!==i?(a=n&&i?[`session-workflow-run-links`,i,n]:null,t[2]=n,t[3]=i,t[4]=a):a=t[4];let o;t[5]===i?o=t[6]:(o=async()=>Ibe((await eV(i,{includeTranscriptRows:!0})).transcriptRows),t[5]=i,t[6]=o);let s;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s={revalidateOnFocus:!1},t[7]=s):s=t[7],mt(a,o,s)}function Rbe(e){return e.token}function M9(e,t){let n=(0,Q.c)(26),r=ut(Bbe),i=!!r,a;n[0]===e?a=n[1]:(a=e?.trim()||null,n[0]=e,n[1]=a);let o=a,s;n[2]===t?.ownerAgentId?s=n[3]:(s=t?.ownerAgentId?.trim()||void 0,n[2]=t?.ownerAgentId,n[3]=s);let c=s,l;n[4]!==i||n[5]!==c||n[6]!==r||n[7]!==o?(l=i&&o?[`workflow-run-live`,o,c??``,r]:null,n[4]=i,n[5]=c,n[6]=r,n[7]=o,n[8]=l):l=n[8];let u;n[9]!==c||n[10]!==o?(u=()=>p9(o,{ownerAgentId:c}),n[9]=c,n[10]=o,n[11]=u):u=n[11];let d;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,refreshInterval:zbe},n[12]=d):d=n[12];let f=mt(l,u,d),p;n[13]!==c||n[14]!==f||n[15]!==o?(p=()=>{if(!o)return;let e=e=>{let t=e.detail;if(t?.runId!==o)return;let n=t.view?.run.metadata?.agentId;if(!(c&&n&&n!==c)){if(t.view){f.mutate(t.view,{revalidate:!1});return}f.mutate()}};return window.addEventListener(`workflow-run-updated`,e),()=>window.removeEventListener(`workflow-run-updated`,e)},n[13]=c,n[14]=f,n[15]=o,n[16]=p):p=n[16];let m;n[17]!==c||n[18]!==f.mutate||n[19]!==o?(m=[c,f.mutate,o],n[17]=c,n[18]=f.mutate,n[19]=o,n[20]=m):m=n[20],(0,Z.useEffect)(p,m);let h;return n[21]!==f.data||n[22]!==f.error||n[23]!==f.isLoading||n[24]!==f.mutate?(h={view:f.data,loading:f.isLoading,error:f.error,mutate:f.mutate},n[21]=f.data,n[22]=f.error,n[23]=f.isLoading,n[24]=f.mutate,n[25]=h):h=n[25],h}function zbe(e){return e&&eY.has(e.run.status)?3e3:0}function Bbe(e){return e.token}var Vbe=`/agents`;function Hbe(e){return`${Vbe}/${encodeURIComponent(e)}`}var Ube=120*1e3,N9=new Map;function Wbe(){return typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Gbe(e){for(let[t,n]of N9)n.expiresAt<=e&&N9.delete(t)}function Kbe(e,t=Date.now()){Gbe(t);let n=Wbe();return N9.set(n,{attachments:e.map(e=>({...e})),expiresAt:t+Ube}),n}function P9(e,t=Date.now()){let n=N9.get(e);if(!n)return null;if(n.expiresAt<=t)return N9.delete(e),null;if(!n.attachments)return null;let r=n.attachments;return n.attachments=null,r}var qbe=(0,Z.lazy)(async()=>({default:(await s(()=>import(`./chat-terminal-dock-B1Xd6OFB.js`),__vite__mapDeps([127,1,4,34,8,9,10,11,14,5,12,15,128]))).ChatTerminalDock}));function Jbe(e,t){let n=e.replace(/\s+/g,``).toLocaleLowerCase(),r=t.replace(/\s+/g,``).toLocaleLowerCase();if(!n||!r)return!1;if(n===r)return!0;let i=Math.min(18,Math.max(8,Math.floor(n.length*.16)));return r.includes(n.slice(0,i))}function Ybe(e=new Date){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function F9({embedded:e=!1,sessionKey:t,taskId:n}={}){let r=ct(e=>e.language),i=rt(r),a=ut(e=>e.token),o=p(),s=l(),{pathname:c}=s,[u]=g(),d=(0,Z.useRef)(null),f=(0,Z.useRef)(0),m=(0,Z.useRef)(null),h=(0,Z.useRef)(``),_=(0,Z.useRef)(null),v=(0,Z.useRef)(null),[b,x]=(0,Z.useState)(null),[S,C]=(0,Z.useState)({}),[w,T]=(0,Z.useState)(0),[E,D]=(0,Z.useState)(null),[O,k]=(0,Z.useState)(null),[A,j]=(0,Z.useState)(!1),[M,N]=(0,Z.useState)(null),[P,F]=(0,Z.useState)(!1),[I,L]=(0,Z.useState)(null),z=n?.trim()||null,{data:V}=dk(z??``),{auth:U,session:W,messages:re,timeline:ie,stream:ae,followUp:oe,clarify:se,agents:ce}=Cye({fixedSessionKey:t,taskId:z??void 0}),le=u.get(`skill`)?.trim()??``,ue=u.get(`slash`)?.trim()??``,de=u.get(`draft`)??``,fe=u.get(`autoSend`)===`1`,pe=u.get(`attachmentHandoff`),me=u.get(`attachmentsHandoff`),G=W.decodedKey??W.sessionKey,[he,ge]=(0,Z.useState)(null),_e=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{if(pe){let e=SW(pe);e&&ge(e),_e.current=G;return}_e.current!==G&&(_e.current=G,ge(null))},[pe,G]);let ve=$z(e=>e.markViewed);(0,Z.useEffect)(()=>{G&&ve(G)},[G,ve]);let{data:be}=wye(G),xe=(0,Z.useCallback)(async e=>{if(G)try{let t=await W.sessionManager.forkSessionAtTurn(G,e);window.dispatchEvent(new CustomEvent(`session-created`,{detail:{key:t.sessionKey,sessionKey:t.sessionKey}})),fA(`success`,i.chat.messageForkCreated),o(`/chat/${encodeURIComponent(t.sessionKey)}`)}catch(e){throw fA(`error`,e instanceof Error?e.message:i.chat.messageForkFailed),e}},[G,i.chat.messageForkCreated,i.chat.messageForkFailed,o,W.sessionManager]),Se=be?.workflowRunId??null,{view:Ce}=M9(Se,{ownerAgentId:be?.ownerAgentId??void 0}),{data:we=[],mutate:Te}=Lbe(G),Ee=!!(Se&&Ce&&eY.has(Ce.run.status));(0,Z.useEffect)(()=>{if(!G)return;let e=e=>{let t=e.detail;(t?.key??t?.sessionKey)===G&&Te()};return window.addEventListener(`session-transcript-updated`,e),window.addEventListener(`workflow-run-started-from-chat`,e),()=>{window.removeEventListener(`session-transcript-updated`,e),window.removeEventListener(`workflow-run-started-from-chat`,e)}},[G,Te]),(0,Z.useEffect)(()=>{d.current=null},[W.sessionKey]),(0,Z.useEffect)(()=>{if(!U.hasToken||!le&&!ue&&!de&&!(W.projectPreparation&&me)||fe&&!W.projectPreparation||W.showSessionLoading||W.sessionRoutePending||!W.sessionKey&&!W.projectPreparation)return;let e=W.projectPreparation&&me?P9(me)??void 0:void 0,t=()=>{let e=new URLSearchParams(u);e.delete(`skill`),e.delete(`slash`),e.delete(`draft`),W.projectPreparation&&(e.delete(`autoSend`),e.delete(`attachmentsHandoff`));let t=e.toString();o({pathname:c,search:t?`?${t}`:``},{replace:!0})},n=(n,r)=>{d.current!==r&&(d.current=r,queueMicrotask(()=>{e?.length?SG(n,e):(f.current+=1,x({id:f.current,text:n})),t()}))},r=pL(le,de);if(r||e?.length){let e=`${W.sessionKey}:draft:${r}`;n(r??``,e);return}if(le){t();return}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(ue)){t();return}let i=`${W.sessionKey}:slash:${ue}`;d.current!==i&&queueMicrotask(()=>{(async()=>{try{let e=await C3(),t=ue.toLowerCase(),n=e.find(e=>e.name.toLowerCase()===t||Array.isArray(e.aliases)&&e.aliases.some(e=>e.toLowerCase()===t));if(n){if(d.current===i)return;d.current=i,f.current+=1,x({id:f.current,text:D3(n)})}}finally{t()}})()})},[U.hasToken,le,ue,de,fe,me,W.projectPreparation,u,W.showSessionLoading,W.sessionRoutePending,W.sessionKey,o,c]);let{scrollRef:De,atBottom:Oe,registerListContentRef:ke,scrollToBottom:Ae,onScroll:je}=h$({hasToken:U.hasToken,showSessionLoading:W.showSessionLoading,sessionKey:W.sessionKey,sending:ae.sending,chatMessages:re.items,hasMore:W.hasMore,loadingMore:W.loadingMore,loadMoreMessages:W.loadMoreMessages}),Me=!!se.clarifyPrompt,Ne=(0,Z.useRef)(Me);(0,Z.useLayoutEffect)(()=>{let e=Ne.current;if(Ne.current=Me,e===Me||W.showSessionLoading||W.sessionRoutePending)return;Ae(!1);let t=requestAnimationFrame(()=>Ae(!1));return()=>cancelAnimationFrame(t)},[Me,Ae,W.showSessionLoading,W.sessionRoutePending]);let[Pe,Fe]=(0,Z.useState)(0),Ie=(0,Z.useRef)(null),Le=(0,Z.useRef)(null),Re=(0,Z.useMemo)(()=>{let e=-1;for(let t of ie.items)typeof t.displayIndex==`number`&&Number.isFinite(t.displayIndex)&&(e=Math.max(e,t.displayIndex));return e<0?0:Math.max(0,e+1-re.items.length)},[re.items.length,ie.items]),ze=(0,Z.useCallback)(e=>{let t=De.current;if(!t)return!1;let n=t.querySelector(`[data-chat-message-index="${e}"]`);if(!n)return!1;Fe(e);let r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.scrollTop+i.top-r.top-16;return t.scrollTo({top:Math.max(0,a),behavior:`smooth`}),!0},[De]),Be=(0,Z.useCallback)(()=>{let e=De.current;if(!e)return;let t=Array.from(e.querySelectorAll(`[data-chat-message-index]`));if(t.length===0){Fe(0);return}let n=e.getBoundingClientRect(),r=n.top+Math.min(180,n.height*.35),i=t[0];for(let e of t){if(e.getBoundingClientRect().top<=r){i=e;continue}break}let a=i.dataset.chatMessageIndex,o=a?Number.parseInt(a,10):0;Number.isFinite(o)&&Fe(e=>e===o?e:o)},[De]),Ve=(0,Z.useCallback)(()=>{Ie.current!=null&&cancelAnimationFrame(Ie.current),Ie.current=requestAnimationFrame(()=>{Ie.current=null,Be()})},[Be]),K=(0,Z.useCallback)(()=>{je(),Ve()},[je,Ve]),He=(0,Z.useCallback)(e=>{let t=e-Re;if(t<0||t>=re.items.length){t<0&&W.hasMore&&!W.loadingMore&&(Le.current=e,W.loadMoreMessages());return}Le.current=null,ze(t)},[re.items.length,ze,W.hasMore,W.loadMoreMessages,W.loadingMore,Re]);(0,Z.useEffect)(()=>{let e=Le.current;if(e==null)return;let t=e-Re;if(t>=0&&t<re.items.length){Le.current=null,requestAnimationFrame(()=>ze(t));return}if(t<0&&W.hasMore&&!W.loadingMore){W.loadMoreMessages();return}(t>=re.items.length||!W.hasMore)&&(Le.current=null)},[re.items.length,ze,W.hasMore,W.loadMoreMessages,W.loadingMore,Re]),(0,Z.useEffect)(()=>{Ve()},[re.items.length,Ve,W.sessionKey,Re]),(0,Z.useEffect)(()=>()=>{Ie.current!=null&&cancelAnimationFrame(Ie.current)},[]),(0,Z.useEffect)(()=>{x(null),m.current=null,h.current=``,C({})},[W.sessionKey]);let Ue=(0,Z.useCallback)(e=>{m.current=e,S9({type:`pick`,suggestionId:e.suggestionId,categoryId:e.categoryId,contextKind:e.contextKind,agentId:ce.displayAgentId}),f.current+=1,x({id:f.current,text:e.prompt})},[ce.displayAgentId]),We=(0,Z.useCallback)(()=>{let e=_.current,t=e?.categories.find(e=>e.scope===`explore`),n=t?.scenarios[0];e&&t&&n&&S9({type:`skip`,suggestionId:n.id??`${t.id}:0`,categoryId:t.id,contextKind:e.contextKind,agentId:ce.displayAgentId}),T(e=>e+1)},[ce.displayAgentId]),Ge=!!(W.sessionKey&&!W.showSessionLoading&&!W.sessionRoutePending&&W.workspaceSource!==`project`&&W.workspaceSource!==`execution_environment`&&re.items.length===0),q=VU(e=>e.setAgentId);(0,Z.useEffect)(()=>{if(U.hasToken)return q(ce.displayAgentId),()=>q(``)},[U.hasToken,ce.displayAgentId,q]);let Ke=W.conversationPhase===`creating-session`,qe=W.conversationPhase===`loading-history`,Je=Ke||qe,Ye=qe,Xe=!Ye&&re.items.length===0&&!ae.streaming,Ze=(0,Z.useMemo)(()=>{if(ae.taskPlan){let e=fve(ae.taskPlan);return e?{plan:e,changeSummary:I7(re.items,ae.streaming)?.changeSummary??null}:null}return I7(re.items,ae.streaming)},[re.items,ae.streaming,ae.taskPlan]),Qe=(0,Z.useMemo)(()=>(W.sessionRoutePending&&W.decodedKey?W.decodedKey:W.sessionKey)?W.sessionName?.trim()||i.chat.newSession:i.nav.chat,[W.sessionKey,W.sessionName,W.sessionRoutePending,W.decodedKey,i.nav.chat,i.chat.newSession]),$e=be?.sourceNoteId??null,et=C_e(G,u.get(`projectId`)),tt=W.projectPreparation?.project??et,[nt,J]=(0,Z.useState)([]),it=(0,Z.useRef)(void 0),[at,ot]=(0,Z.useState)(!1);(0,Z.useLayoutEffect)(()=>{if(it.current!==void 0){G&&G!==it.current&&(it.current=void 0);return}J([])},[G]),(0,Z.useEffect)(()=>{let e=!1;if(D(null),$e)return B$($e).then(t=>{e||D(t?.title?.trim()||null)}).catch(()=>{e||D(null)}),()=>{e=!0}},[$e]);let st=E||be?.sourceNoteTitle||i.chat.sourceNoteFallbackTitle,lt=vbe({enabled:U.hasToken&&!!G&&re.items.length===0&&!W.showSessionLoading&&!W.sessionRoutePending,sessionKey:G,sourceNoteId:$e,sourceNoteTitle:st,effectiveWorkspacePath:W.effectiveWorkspacePath,workingDirectoryLocked:W.workspaceSource===`execution_environment`||W.workspaceSource===`session_override`||W.workspaceSource===`agent_workspace`,task:V,file:he,workflow:Ce,sessionManager:W.sessionManager}),Y=(0,Z.useMemo)(()=>ce.chatAgents?.items.find(e=>e.id===ce.displayAgentId)??{id:ce.displayAgentId},[ce.chatAgents?.items,ce.displayAgentId]);(0,Z.useEffect)(()=>{C(Cbe(lt.context.kind,ce.displayAgentId))},[ce.displayAgentId,lt.context.kind]);let dt=(0,Z.useMemo)(()=>iO(lt.context,i.chat.welcomeSpotlight,Y,{affinity:S,contextStatus:lt.status,explorationSeed:Ybe(),explorationOffset:w}),[i.chat.welcomeSpotlight,S,Y,lt.context,lt.status,w]),ft=lt.status===`loading`,pt=ft?void 0:dt;_.current=pt??null,(0,Z.useEffect)(()=>{if(!ft){F(!1);return}let e=window.setTimeout(()=>F(!0),180);return()=>window.clearTimeout(e)},[ft]);let mt=(0,Z.useMemo)(()=>pt?{suggestionId:pt.primaryRecommendation.id,categoryId:pt.primaryRecommendation.categoryId,contextKind:pt.contextKind,prompt:pt.primaryRecommendation.prompt}:null,[pt]);(0,Z.useEffect)(()=>{if(re.items.length>0||ae.streaming||!pt)return;let e=pt.primaryRecommendation,t=`${G??`new`}:${pt.contextStatus}:${e.id}`;h.current!==t&&(h.current=t,S9({type:`impression`,suggestionId:e.id,categoryId:e.categoryId,contextKind:pt.contextKind,agentId:ce.displayAgentId}))},[pt,ce.displayAgentId,G,re.items.length,ae.streaming]);let ht=(0,Z.useCallback)((...e)=>{let[t]=e,n=m.current;return n&&Jbe(n.prompt,t)&&S9({type:`send`,suggestionId:n.suggestionId,categoryId:n.categoryId,contextKind:n.contextKind,agentId:ce.displayAgentId,edited:n.prompt.trim()!==t.trim(),characterDelta:t.length-n.prompt.length}),m.current=null,I?(L(null),ae.replaceLatestUserTurn(I.turnId,e[0],e[1],e[2],e[3])):ae.sendMessage(...e)},[ce.displayAgentId,I,ae.replaceLatestUserTurn,ae.sendMessage]),gt=S_e({preparation:W.projectPreparation,sessionKey:G,ready:W.modelConfigReady&&!Je,onSend:ht}),_t=(0,Z.useCallback)(e=>{e.turnId&&(L({turnId:e.turnId}),SG(jR(e.content),NR(e.attachments),e.contextRefs?.map(e=>({kind:e.kind,sourceId:e.sourceId,expectedVersion:e.version,title:e.title}))))},[]),yt=(0,Z.useCallback)(()=>{L(null),SG(``)},[]);(0,Z.useEffect)(()=>{L(null)},[W.sessionKey]),(0,Z.useEffect)(()=>{if(!fe||!de.trim()&&!me||!U.hasToken||W.showSessionLoading||W.sessionRoutePending||!W.sessionKey||ae.sending||ae.streaming)return;let e=pL(le,de),t=me?P9(me):void 0;if(!e&&!t?.length)return;let n=`${W.sessionKey}:auto-send:${e??``}:${me??``}`;if(d.current===n)return;d.current=n;let r=new URLSearchParams(u);r.delete(`skill`),r.delete(`slash`),r.delete(`draft`),r.delete(`autoSend`),r.delete(`attachmentsHandoff`);let i=r.toString();o({pathname:c,search:i?`?${i}`:``},{replace:!0}),ht(e??``,t??void 0)},[U.hasToken,fe,me,de,ht,o,c,u,W.sessionKey,W.sessionRoutePending,W.showSessionLoading,le,ae.sending,ae.streaming]);let bt=(0,Z.useCallback)(()=>{v.current?.reject(),v.current=null,k(null),j(!1)},[]);(0,Z.useEffect)(()=>{bt()},[bt,$e]);let xt=(0,Z.useMemo)(()=>({title:i.chat.timelineTitle,turn:i.chat.timelineTurn,messageFallback:i.chat.timelineMessageFallback,toolCount_one:i.chat.timelineToolCount_one,toolCount_other:i.chat.timelineToolCount_other,searchedWeb:i.chat.stepSearchedWeb,searchedMemory:i.chat.stepSearchedMemory,searchedCode:i.chat.stepSearchedCode,searched:i.chat.stepSearched,readFile:i.chat.stepReadFile,runCommand:i.chat.stepRunCommand,listDirectory:i.chat.stepListDirectory,writeFile:i.chat.stepWriteFile,editFile:i.chat.stepEditFile,openUrl:i.chat.stepOpenUrl,fetchUrl:i.chat.stepFetchUrl,unknownTool:i.chat.stepUnknownTool}),[i.chat.timelineTitle,i.chat.timelineTurn,i.chat.timelineMessageFallback,i.chat.timelineToolCount_one,i.chat.timelineToolCount_other,i.chat.stepSearchedWeb,i.chat.stepSearchedMemory,i.chat.stepSearchedCode,i.chat.stepSearched,i.chat.stepReadFile,i.chat.stepRunCommand,i.chat.stepListDirectory,i.chat.stepWriteFile,i.chat.stepEditFile,i.chat.stepOpenUrl,i.chat.stepFetchUrl,i.chat.stepUnknownTool]),St=(0,Z.useCallback)(async e=>{if(!$e)return;v.current?.reject(),j(!1);let t=i.chat.sourceNoteAppendSourceLine.replace(`{{time}}`,new Date().toLocaleString(r));return k({heading:i.chat.sourceNoteAppendHeading,content:`${t}\n\n${e.trim()}`}),new Promise((e,t)=>{v.current={sourceNoteId:$e,resolve:e,reject:t}})},[r,i.chat.sourceNoteAppendHeading,i.chat.sourceNoteAppendSourceLine,$e]),Ct=(0,Z.useCallback)(async e=>{try{let t=await R$(e.trim(),`web`);fA(`success`,i.chat.messageSavedToNote,void 0,{href:`/notes/${encodeURIComponent(t.id)}`})}catch(e){throw fA(`error`,e instanceof Error?e.message:i.notes.quickCaptureFailed),e}},[i.chat.messageSavedToNote,i.notes.quickCaptureFailed]),wt=(0,Z.useCallback)(async()=>{let e=v.current;if(!e||!O)return;let t=O.heading.trim()||i.chat.sourceNoteAppendHeading,n=O.content.trim();if(n){j(!0),N(null);try{await Q$(e.sourceNoteId,n,t),window.dispatchEvent(new CustomEvent(`note-updated`,{detail:{noteId:e.sourceNoteId,source:`chat`,sessionKey:G}})),e.resolve(),v.current=null,k(null)}catch(e){N(e instanceof Error?e.message:i.chat.sourceNoteSaveFailed)}finally{j(!1)}}},[G,i.chat.sourceNoteAppendHeading,i.chat.sourceNoteSaveFailed,i.chat.sourceNoteSaveSuccess,O]),Et=(0,Z.useCallback)(async e=>{if(!$e)return;let t=e.trim().split(/\n+/)[0]?.replace(/^[-#*>\s]+/,``).trim()||i.chat.sourceNoteTaskFallbackTitle;try{await $$(t.slice(0,120),{sourceNoteId:$e,sourceSessionKey:G})}catch(e){throw fA(`error`,e instanceof Error?e.message:i.chat.sourceNoteTaskFailed),e}},[G,i.chat.sourceNoteTaskFailed,i.chat.sourceNoteTaskFallbackTitle,i.chat.sourceNoteTaskSuccess,$e]),Dt=(0,Z.useCallback)(()=>{if(!$e)return;let e=i.chat.sourceNoteDigestPrompt.replace(`{{title}}`,st);if(ae.streaming||ae.sending){oe.addPendingFollowUp(e),Tt({tone:`info`,status:`done`,title:i.chat.sourceNoteDigestQueued,source:r===`zh`?`笔记整理`:`Note digest`,dedupeKey:$e?`note-digest:${$e}`:void 0});return}ae.sendMessage(e)},[oe,r,i.chat.sourceNoteDigestPrompt,i.chat.sourceNoteDigestQueued,$e,st,ae]),Ot=(0,Z.useCallback)(async e=>{if(!(at||gt.busy)){if(W.projectPreparation){it.current=null,o(_L(e),{state:{forceNewChat:!0,agentId:ce.displayAgentId,temporary:W.userContextMode===`temporary`}});return}if(!(it.current!==void 0||ae.sending||ae.streaming||Je)){it.current=G,ot(!0);try{e?o(_L(e),{state:{forceNewChat:!0,agentId:ce.displayAgentId,temporary:W.userContextMode===`temporary`}}):await W.createNewSession({forceNew:!0,projectId:e,temporary:W.userContextMode===`temporary`})}catch(e){it.current=void 0,fA(`error`,i.chat.composerContext.changeFailed,{error:e instanceof Error?e.message:String(e)})}finally{ot(!1)}}}},[G,Je,i.chat.composerContext.changeFailed,at,gt.busy,W.createNewSession,W.projectPreparation,W.userContextMode,ae.sending,ae.streaming,o,ce.displayAgentId]),kt=(0,Z.useCallback)(()=>Ot(null),[Ot]),At=(0,Z.useCallback)(e=>Ot(e),[Ot]),jt=(0,Z.useCallback)(async e=>{if(!(at||Je||ae.sending||ae.streaming||!Ge)){ot(!0);try{await W.onSessionWorkingDirectoryChange(e)}finally{ot(!1)}}},[at,Je,ae.sending,ae.streaming,Ge,W.onSessionWorkingDirectoryChange]),Mt=(0,Z.useMemo)(()=>({project:tt,draftRefs:nt,onLeaveProject:at||gt.busy?void 0:kt,leaveProjectLabel:i.chat.scopeRemoveProject,onDraftSourceNote:$e?Dt:void 0,draftSourceNoteLabel:i.chat.sourceNoteDigestAction}),[at,gt.busy,tt,nt,kt,i.chat.scopeRemoveProject,$e,Dt,i.chat.sourceNoteDigestAction]);return U.hasToken?(ae.error?wL(ae.error):null)?.code===`session_not_found`?(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)(O7,{}),(0,$.jsx)(D7,{chatHeadline:i.chat.sessionNotFoundTitle,chatAgents:ce.chatAgents?.items??[],showChatAgentSelector:!1,chatAgentId:ce.displayAgentId,onChatAgentChange:ce.onChatAgentChange,chatAgentDisabled:!0}),(0,$.jsx)(`main`,{className:`mx-auto flex w-full max-w-xl flex-1 items-center px-4 py-12 sm:px-6`,children:(0,$.jsx)(`div`,{className:`w-full`,children:(0,$.jsx)(_X,{errorText:ae.error})})})]}):(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)(O7,{}),e?null:(0,$.jsx)(D7,{chatHeadline:Qe,chatAgents:ce.chatAgents?.items??[],showChatAgentSelector:ce.showChatAgentSelector,chatAgentId:ce.displayAgentId,onChatAgentChange:ce.onChatAgentChange,chatAgentDisabled:gt.busy||at||Je&&!W.projectPreparation,sessionKey:W.sessionKey,hasMessages:!Je&&re.items.length>0,workspacePath:W.effectiveWorkspacePath,userContextMode:W.userContextMode,projectId:tt?.id,context:Mt,canChangeWorkspace:!1,workspaceDisabled:Je||ae.sending||ae.streaming,onWorkspaceChange:W.onSessionWorkingDirectoryChange}),(0,$.jsxs)(`div`,{className:X(`relative mx-auto flex min-h-0 w-full flex-1 flex-col`,e?`max-w-none`:`max-w-[calc(var(--max-width-chat-frame)+8rem)]`),children:[!e&&be?.parentSessionKey?(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-2 text-xs text-fg-muted sm:px-5 xl:px-6`,children:[(0,$.jsx)(y,{to:`/chat/${encodeURIComponent(be.parentSessionKey)}`,className:`font-medium text-accent transition-colors hover:text-accent-fg`,children:i.chat.forkedFromConversation.replace(`{{name}}`,be.forkedFromSessionName||i.chat.forkedFromConversationFallback)}),(0,$.jsx)(`span`,{className:`ms-2`,children:i.chat.forkSharedWorkspaceNotice})]}):null,s.state?.fromAgentEditor&&ce.displayAgentId?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-1.5 sm:px-5 xl:px-6`,children:(0,$.jsxs)(y,{to:Hbe(ce.displayAgentId),className:`inline-flex items-center gap-1 text-xs font-medium text-accent transition-colors hover:text-accent-fg`,children:[(0,$.jsx)(`span`,{"aria-hidden":!0,children:`←`}),i.agentsSettings.backToEditor]})}):null,e&&$e?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge-subtle bg-surface-panel/80 px-3 py-1.5 sm:px-5 xl:px-6`,children:(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-between gap-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:i.chat.sourceNoteBanner.replace(`{{title}}`,st)}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex h-7 items-center gap-1.5 rounded-md border border-edge-subtle px-2 font-medium text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,onClick:Dt,children:[(0,$.jsx)(wf,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.chat.sourceNoteDigestAction})]}),(0,$.jsx)(y,{to:ye(`/notes/${encodeURIComponent($e)}`,`${s.pathname}${s.search}`),className:`font-medium text-accent transition-colors hover:text-accent-fg`,children:i.chat.sourceNoteOpen})]})]})}):null,(0,$.jsxs)(`div`,{className:X(`relative flex min-h-0 min-w-0 flex-1`,e?`px-3`:`px-3 sm:px-5 xl:px-6`),children:[e?null:(0,$.jsx)(`div`,{className:`absolute inset-y-0 right-0 hidden xl:block`,children:(0,$.jsx)(Vye,{items:ie.items,activeMessageIndex:Pe+Re,labels:xt,onSelectMessage:He})}),(0,$.jsxs)(`div`,{className:X(`mx-auto flex min-h-0 min-w-0 flex-1 flex-col`,!e&&`xl:max-w-[var(--max-width-chat-frame)]`),children:[(0,$.jsx)(`div`,{ref:De,className:X(`chat-messages min-h-0 flex-1 overflow-y-auto overflow-x-hidden [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,Xe?`chat-messages--compact-welcome pt-5 pb-2`:`py-4`),onScroll:K,children:qe?(0,$.jsxs)(`div`,{className:`flex min-h-[min(40vh,20rem)] w-full flex-col gap-10 py-8`,"aria-busy":`true`,children:[(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(Ft,{className:`h-11 w-[min(70%,22rem)] rounded-2xl`})}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(Ft,{className:`h-4 w-24`}),(0,$.jsx)(Ft,{className:`h-4 w-[min(82%,36rem)]`}),(0,$.jsx)(Ft,{className:`h-4 w-[min(74%,32rem)]`}),(0,$.jsx)(Ft,{className:`h-4 w-[min(48%,22rem)]`})]}),(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(Ft,{className:`h-11 w-[min(62%,18rem)] rounded-2xl`})})]}):(0,$.jsxs)($.Fragment,{children:[W.loadingMore?(0,$.jsx)(`div`,{className:`mb-3 text-center text-xs text-fg-muted`,children:i.chat.loadOlder}):null,ae.error?(0,$.jsx)(`div`,{className:X(`sticky z-20 shrink-0 bg-transparent pe-2`,Xe?`-top-5`:`-top-4`),children:(0,$.jsx)(_X,{errorText:ae.error})}):null,!e&&z?(0,$.jsx)(`div`,{className:`hidden md:block`,children:(0,$.jsx)(pk,{taskId:z})}):null,we.length>0?(0,$.jsx)(`div`,{className:`mb-6 flex flex-col gap-3`,children:we.map(e=>(0,$.jsx)(Uye,{link:e},e.id))}):null,Ee&&Ce?(0,$.jsx)(lbe,{view:Ce,sessionKey:G,onAbortCurrentTurn:ae.abort}):null,!e&&G?(0,$.jsx)(j9,{eventType:`session.transcript.updated`,source:`sessions`,payloadKey:`sessionKey`,payloadValue:G,className:`mb-6`}):null,(0,$.jsx)(s$,{messages:re.items,authToken:a??void 0,sessionKey:W.decodedKey??W.sessionKey,projectId:tt?.id,streaming:ae.streaming,progress:ae.progress,reasoningLevel:W.reasoningLevel,registerListContentRef:ke,onPickWelcomePrompt:Ue,welcomeSpotlight:pt,welcomeOverlay:ft?(0,$.jsx)(gW,{showSkeleton:P,compact:e}):void 0,compactWelcome:e,onRetryWelcomeContext:lt.retry,onRefreshWelcomeExploration:pt?.categories.some(e=>e.scope===`explore`)?We:void 0,onSelectWelcomeProject:At,onDeleteRound:z?void 0:ae.deleteMessageRound,onRetryUserMessageRound:z?void 0:ae.retryUserMessageRound,deleteRoundDisabled:ae.streaming||ae.sending,onEditUserMessage:z?void 0:_t,editLatestUserOnly:!0,editRequiresTurnId:!0,onSaveAssistantAsNote:Ct,onSaveAssistantToSourceNote:$e?St:void 0,onExtractAssistantTask:$e?Et:void 0,onForkAssistantTurn:!z&&be?.sessionType===`chat`?xe:void 0})]})}),(0,$.jsxs)(`div`,{className:X(`sticky bottom-0 z-10 shrink-0 bg-surface-panel`,Xe?`py-2.5`:`py-4`),children:[(0,$.jsxs)(`div`,{className:X(`absolute bottom-full right-0 z-20 mb-2 flex items-center gap-1 rounded-full border border-edge bg-surface-panel p-1 shadow-float empty:hidden dark:shadow-none`,(W.showSessionLoading||Oe)&&`xl:hidden`),children:[e?null:(0,$.jsx)(Pye,{items:ie.items,activeMessageIndex:Pe+Re,labels:xt,openLabel:i.chat.timelineOpen,closeLabel:i.chat.timelineClose,currentLabel:i.chat.timelineCurrent,onSelectMessage:He}),(0,$.jsx)(l$,{visible:!W.showSessionLoading&&!Oe,onClick:()=>Ae(!0)})]}),(0,$.jsx)(xk,{prompt:se.clarifyPrompt,submitting:se.clarifySubmitting,submitError:se.clarifySubmitError,labels:i.chat,onSubmit:se.submitClarifyAnswer,onCancel:se.cancelClarifyAnswer}),Ze?(0,$.jsx)(cve,{plan:Ze.plan,changeSummary:Ze.changeSummary,isStreaming:ae.streaming,labels:{heading:i.chat.planHeading,stepProgress:i.chat.planStepProgress,completedProgress:i.chat.planCompletedProgress,finished:i.chat.planFinished,ended:i.chat.planEnded,planned:i.chat.planPlanned,filesChangedOne:i.chat.planFilesChanged_one,filesChangedOther:i.chat.planFilesChanged_other}}):null,(0,$.jsx)(y_e,{composerContext:!e&&!z&&!I&&!Ye&&re.items.length===0?{project:tt,disabled:at||gt.busy||Je&&!W.projectPreparation,environmentPicker:W.projectPreparation?(0,$.jsx)(b_e,{selection:gt}):void 0,workspacePath:W.effectiveWorkspacePath,canChangeWorkspace:Ge,onProjectChange:Ot,onWorkspaceChange:jt}:void 0,contextRefs:nt,setContextRefs:J,disabled:!W.modelConfigReady||!W.projectPreparation&&Je||!!(W.projectPreparation&&!gt.allowed)||W.modelConfigSaving||gt.busy||at||!!se.clarifyPrompt,sending:ae.sending,streaming:ae.streaming,sessionKey:W.sessionKey,welcomeDraftSeed:b,welcomeSuggestion:Xe?mt:null,onAcceptWelcomeSuggestion:Ue,thinkingLevel:W.thinkingLevel,modelSupportsThinking:W.modelSupportsThinking,onThinkingChange:W.onSessionThinkingLevelChange,onSend:gt.send,editingUserTurnId:I?.turnId,onCancelUserMessageEdit:yt,onAbort:ae.abort,onAddPendingFollowUp:oe.addPendingFollowUp,onSteeringInterrupt:(e,t,n)=>void ae.interruptAndSend(e,t,void 0,n),pendingFollowUps:oe.pendingFollowUps,editingFollowUpId:oe.editingFollowUpId,onBeginEditFollowUp:oe.beginEditFollowUp,onCancelEditFollowUp:oe.cancelEditFollowUp,onCommitEditFollowUp:(e,t,n,r,i)=>void oe.commitEditFollowUp(e,t,n,r,i),onPendingFollowUpRemove:oe.removePendingFollowUp,onPendingFollowUpMove:oe.movePendingFollowUp,onPendingFollowUpReorder:oe.reorderPendingFollowUp,onPendingFollowUpSteer:e=>void oe.steerPendingFollowUp(e),steeringFollowUpId:oe.steeringFollowUpId,sessionModel:W.sessionModel,showModelSelector:!0,onModelChange:W.onSessionModelChange,modelDisabled:Je&&!W.projectPreparation||gt.busy||ae.streaming||ae.sending||W.modelConfigSaving,onChatAgentChange:!z&&ce.showChatAgentSelector?ce.onChatAgentChange:void 0,currentAgentId:ce.displayAgentId,voiceAgentName:Y.name,voiceTaskId:z??void 0,prepareVoiceSession:W.projectPreparation?()=>W.projectPreparation.create(gt.mode):void 0})]})]})]})]}),!e&&G&&window.electronAPI?.terminal?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(qbe,{sessionKey:G},G)}):null,(0,$.jsx)(ne,{open:O!==null,onOpenChange:e=>{!e&&!A&&bt()},children:(0,$.jsxs)(H,{children:[(0,$.jsx)(R,{className:`fixed inset-0 z-[80] bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(ee,{className:`fixed left-1/2 top-1/2 z-[90] flex h-[min(82vh,42rem)] w-[min(100%-2rem,44rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(te,{className:`text-base font-semibold text-fg`,children:i.chat.sourceNoteSaveDialogTitle}),(0,$.jsx)(B,{className:`mt-1 text-sm text-fg-muted`,children:i.chat.sourceNoteSaveDialogDescription.replace(`{{title}}`,st)})]}),(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-5 py-4`,children:[M?(0,$.jsxs)(`p`,{className:`rounded-lg border border-danger/25 bg-danger-soft px-3 py-2 text-sm text-danger`,role:`alert`,children:[i.chat.sourceNoteSaveFailed,`: `,M]}):null,(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:i.chat.sourceNoteSaveDialogHeadingLabel}),(0,$.jsx)(`input`,{value:O?.heading??``,onChange:e=>k(t=>t&&{...t,heading:e.target.value}),className:`h-10 rounded-lg border border-edge bg-surface-base px-3 text-sm font-normal text-fg outline-none transition-colors focus:border-accent focus:ring-2 focus:ring-accent/20`,disabled:A})]}),(0,$.jsxs)(`label`,{className:`flex min-h-0 flex-1 flex-col gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:i.chat.sourceNoteSaveDialogContentLabel}),(0,$.jsx)(`textarea`,{value:O?.content??``,onChange:e=>k(t=>t&&{...t,content:e.target.value}),className:`min-h-[18rem] flex-1 resize-none rounded-lg border border-edge bg-surface-base px-3 py-2 font-mono text-xs leading-relaxed text-fg outline-none transition-colors focus:border-accent focus:ring-2 focus:ring-accent/20`,disabled:A})]})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(vt,{type:`button`,variant:`secondary`,onClick:bt,disabled:A,children:i.chat.sourceNoteSaveDialogCancel}),(0,$.jsx)(vt,{type:`button`,variant:`primary`,onClick:()=>void wt(),disabled:A||!O?.content.trim(),children:A?i.chat.sourceNoteSaveDialogSaving:i.chat.sourceNoteSaveDialogConfirm})]})]})]})})]}):(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-[var(--max-width-chat-frame)] px-3 py-16 text-center text-sm leading-relaxed text-fg-muted sm:px-5`,children:i.chat.needToken})}function Xbe(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden`,children:(0,$.jsx)(f,{})}),e[0]=t):t=e[0],t}var Zbe=`:sessionKey?`;function Qbe(){let e=(0,Q.c)(5),{taskId:t}=u(),n=t===void 0?``:t,{data:r,error:i,isLoading:a,conversationLoading:o,conversationError:s}=dk(n),c=r?.conversation.activeSessionKey??null;if(a||o||r&&!c&&!s){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{className:`flex h-full flex-col gap-4 p-6`,"aria-busy":!0,children:[(0,$.jsx)(Ft,{className:`h-10 w-64`}),(0,$.jsx)(Ft,{className:`min-h-0 flex-1 rounded-xl`})]}),e[0]=t):t=e[0],t}if(i||s||!r){let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`div`,{className:`grid h-full place-items-center text-sm text-danger`,children:`Task conversation could not be loaded.`}),e[1]=t):t=e[1],t}if(!c)return null;let l;return e[2]!==c||e[3]!==n?(l=(0,$.jsx)(F9,{sessionKey:c,taskId:n}),e[2]=c,e[3]=n,e[4]=l):l=e[4],l}function I9(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let r=t[n];return r===void 0||r===``?``:String(r)}).replace(/\s+/g,` `).trim()}function $be(e,t,n){return typeof t!=`number`||typeof n!=`number`?``:e.progressSuffix.replace(/\{\{completed\}\}/g,String(t)).replace(/\{\{total\}\}/g,String(n))}function L9(e){return e===`researching`||e===`browsing`?`research`:e===`reading`?`read`:e===`editing`?`create`:e===`planning`||e===`compacting`||e===`preparing`?`prepare`:e===`waiting`?`wait`:`execute`}function exe(e,t,n,r,i){let a=Ek(t,e,i);return{action:I9(e.tipTool,{action:a,detail:r?I9(e.targetSuffix,{detail:r}):``}),animation:L9(n),priority:`normal`}}function txe(e,t,n,r){return{action:I9(t===`running`?e.tipValidate:e.tipProgress,{progress:$be(e,n,r)}),animation:L9(t),priority:`normal`}}function R9(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function z9(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim())return t.trim()}}function nxe(e){if(!e||e.includes(`
|
|
72
|
+
`)||e.includes(`\r`))return;let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean).at(-1);if(!(!t||t.length>80||/(?:token|api[_-]?key|password|secret)=/i.test(t)))return t}function rxe(e){if(e)try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`?t.host:void 0}catch{return}}function ixe(e,t){let n=t??Ye(e??``,`running`);return n.category===`planning`?`planning`:n.category===`navigation`||n.category===`web`&&n.action===`read`?`browsing`:n.action===`search`?`researching`:n.category===`file`&&(n.action===`read`||n.action===`list`)?`reading`:n.category===`file`&&(n.action===`edit`||n.action===`write`)?`editing`:n.category===`command`?`running`:`preparing`}function axe(e,t,n){let r=R9(t),i=n??Ye(e??``,`running`),a={phase:ixe(e,i)};return a.phase===`reading`||a.phase===`editing`?a.detail=nxe(z9(r,`path`,`filePath`,`file`)):a.phase===`browsing`&&(a.detail=rxe(z9(r,`url`,`href`))),(i.category===`command`||i.action===`search`)&&delete a.detail,a}function oxe(e){let t=R9(e),n=z9(t,`stage`)?.toLowerCase(),r=n===`compaction`?`compacting`:n===`planning`?`planning`:n===`research`||n===`search`?`researching`:n===`verification`||n===`running`?`running`:n===`waiting`||n===`clarifying`?`waiting`:`preparing`,i=Number(t.completed),a=Number(t.total);return{phase:r,...Number.isFinite(i)&&i>=0?{completed:i}:{},...Number.isFinite(a)&&a>0?{total:a}:{}}}function B9(e){return e&&typeof e==`object`?e:{}}function V9(e){return typeof e==`string`&&e.trim()?e.trim():void 0}function H9(e){let t=V9(e)?.replace(/```[\s\S]*?```/g,``).replace(/[`*_#>\[\]]/g,``).replace(/https?:\/\/\S+/g,``).replace(/(?:token|authorization|api[_-]?key|password|secret)\s*[:=].*/gi,`[redacted]`).replace(/\s+/g,` `).trim();return t?t.slice(0,96):void 0}var sxe=new Set([`working`,`waiting`,`success`,`error`]),cxe=new Set([`making_progress`,`waiting_safely`,`completed`,`work_preserved`,`details_available`]),U9=new Set([`open_session`,`confirm`,`review_error`]);function lxe(e){let t=B9(e);if(t.version!==2||!sxe.has(String(t.taskState))||t.sensitivity!==`public`&&t.sensitivity!==`private`)return;let n=B9(t.nextAction),r=U9.has(String(n.type))&&U9.has(String(n.label))?{type:String(n.type),label:String(n.label)}:void 0,i=B9(t.progress),a=typeof i.completed==`number`&&typeof i.total==`number`&&i.total>0?{completed:i.completed,total:i.total}:void 0,o=cxe.has(String(t.reassurance))?t.reassurance:void 0,s=t.sensitivity===`public`?H9(t.publicSummary):void 0;return{version:2,taskState:String(t.taskState),sensitivity:t.sensitivity,...o?{reassurance:o}:{},...r?{nextAction:r}:{},...a?{progress:a}:{},...s?{publicSummary:s}:{}}}function uxe(e,t,n,r){if(!e.sessionKey)return null;let i=B9(e.event),a=B9(i.payload),o=V9(i.type);if(!o)return null;let s=V9(i.runId)??`active`,c={sessionKey:e.sessionKey,runId:s,sessionLabel:n,sequence:t,timestamp:Date.now()},l=lxe(a.petFeedback??i.petFeedback),u=l?l.publicSummary:H9(a.publicSummary??i.publicSummary);if(o===`run_start`)return{...c,state:`running`,phase:`preparing`,action:r.tipRunStart,animation:`prepare`,priority:`low`};if(o===`thinking_delta`)return e.activityDetailLevel===`stream`?{...c,state:`running`,phase:`planning`,action:r.tipThinking,animation:`prepare`,priority:`low`}:null;if(o===`tool_start`||o===`tool_update`){let e=V9(i.toolName)??V9(a.toolName)??`tool`,t=B9(a.activity),n=typeof t.category==`string`&&typeof t.action==`string`?t:void 0,o=axe(e,a.args,n),s=o.phase??`running`,l=exe(r,e,s,o.detail,n);return{...c,state:`running`,phase:s,...l,detail:o.detail}}if(o===`progress`||o===`compaction`){let e=o===`compaction`?{phase:`compacting`}:oxe(a),t=e.phase??`preparing`,n=txe(r,t,e.completed,e.total);return{...c,state:`running`,phase:t,...n,feedback:l,progress:l?.progress??(typeof e.completed==`number`&&typeof e.total==`number`?{completed:e.completed,total:e.total}:void 0)}}if(o===`clarify_request`)return{...c,state:`waiting`,phase:`waiting`,action:r.tipWaiting,animation:`wait`,priority:`high`,publicSummary:u,feedback:l};if(o===`assistant_message_start`||o===`assistant_delta`)return{...c,state:`running`,phase:`running`,action:r.tipAssistantDelta,animation:`create`,priority:`low`};if(o===`review_start`||o===`review_delta`)return{...c,state:`running`,phase:`reading`,action:r.tipReview,animation:`read`,priority:`normal`};if(o===`command_output_delta`)return{...c,state:`running`,phase:`running`,action:r.tipCommandDelta,animation:`execute`,priority:`low`};if(o===`assistant_message_end`){let e=V9(a.presentation)===`narration`?`narration`:`answer`;return{...c,state:`running`,phase:e===`narration`?`preparing`:`running`,action:e===`narration`?r.tipAssistantNarrationDone:r.tipAssistantAnswerDone,animation:e===`narration`?`prepare`:`create`,priority:e===`narration`?`low`:`normal`,publicSummary:u}}if(o===`run_end`){let e=l?.taskState===`error`?`error`:`success`;return{...c,state:e,phase:e===`error`?`waiting`:`running`,action:e===`error`?r.tipError:r.tipComplete,animation:e===`error`?`concern`:`success`,priority:`high`,publicSummary:u,feedback:l}}return o===`error`?{...c,state:`error`,phase:`waiting`,action:r.tipError,animation:`concern`,priority:`high`,publicSummary:u,feedback:l}:null}function dxe(e){return{searchedWeb:e.toolActionSearch,searchedMemory:e.toolActionSearchMemory,searchedCode:e.toolActionSearchCode,searched:e.toolActionSearchGeneric,readFile:e.toolActionReadFile,runCommand:e.toolActionRunCommand,updatePlan:e.toolActionUpdatePlan,listDirectory:e.toolActionListDirectory,writeFile:e.toolActionWriteFile,editFile:e.toolActionEditFile,openUrl:e.toolActionOpenUrl,fetchUrl:e.toolActionFetchUrl,unknownTool:e.toolActionUnknownNamed,tipRunStart:e.tipRunStart,tipTool:e.tipTool,tipProgress:e.tipProgress,tipValidate:e.tipValidate,tipWaiting:e.tipWaiting,tipThinking:e.tipThinking,tipAssistantDelta:e.tipAssistantDelta,tipCommandDelta:e.tipCommandDelta,tipAssistantNarrationDone:e.tipAssistantNarrationDone,tipAssistantAnswerDone:e.tipAssistantAnswerDone,tipReview:e.tipReview,tipComplete:e.tipComplete,tipError:e.tipError,targetSuffix:e.tipTargetSuffix,progressSuffix:e.tipProgressSuffix}}function fxe(){let e=(0,Q.c)(10),t=ct(gxe),n;e[0]===t?n=e[1]:(n=rt(t),e[0]=t,e[1]=n);let r=n.desktopPet,i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=new Map,e[2]=i):i=e[2];let a=(0,Z.useRef)(i),o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,e[3]=o):o=e[3];let s=(0,Z.useRef)(o),c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=new Set,e[4]=c):c=e[4];let l=(0,Z.useRef)(c),u;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=new Map,e[5]=u):u=e[5];let d=(0,Z.useRef)(u),f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Map,e[6]=f):f=e[6];let p=(0,Z.useRef)(f),m=(0,Z.useRef)(null),h,g;return e[7]===r?(h=e[8],g=e[9]):(h=()=>{let e=window.electronAPI?.pet;if(!Wt()||!e)return;let t=t=>{p.current.set(t.sessionKey,t),e.sendEvent(t).catch(hxe)},n=()=>{m.current=null;for(let e of d.current.values())t(e);d.current.clear()},i=e=>{let t=s.current.get(e);return!t&&!l.current.has(e)&&(l.current.add(e),ot(Y(`/api/sessions/${encodeURIComponent(e)}?offset=0&limit=1`)).then(mxe).then(t=>{t&&s.current.set(e,t)}).catch(pxe).finally(()=>l.current.delete(e))),t??r.fallbackSessionLabel},o=e=>{let o=e.detail;if(!o.sessionKey)return;let s=i(o.sessionKey),c=(a.current.get(o.sessionKey??``)??0)+1,l=uxe(o,c,s,dxe(r));if(!l)return;a.current.set(l.sessionKey,c);let u=d.current.get(l.sessionKey)??p.current.get(l.sessionKey),f=l.state===`error`||l.state===`waiting`||l.state===`success`,h=!u||u.runId!==l.runId||u.state!==l.state||u.phase!==l.phase||u.animation!==l.animation||u.action!==l.action;if(f||h){d.current.delete(l.sessionKey),t(l);return}d.current.set(l.sessionKey,l),m.current===null&&(m.current=window.setTimeout(n,500))};return window.addEventListener(QF,o),()=>{window.removeEventListener(QF,o),m.current!==null&&window.clearTimeout(m.current),m.current=null,d.current.clear()}},g=[r],e[7]=r,e[8]=h,e[9]=g),(0,Z.useEffect)(h,g),null}function pxe(){}async function mxe(e){return e.ok?(await e.json()).session?.name?.trim():void 0}function hxe(){}function gxe(e){return e.language}async function _xe(e){let t=await ot(e);if(!t.ok){let e=await t.json().catch(()=>({})),n=st(t.status,t.statusText,e.error?.message);throw Error(n)}return t.json()}function vxe(e){let t=(0,Q.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={fetcher:_xe,revalidateOnFocus:!1,dedupingInterval:2e3,shouldRetryOnError:!0,errorRetryCount:2},t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,$.jsx)(ht,{value:r,children:n}),t[1]=n,t[2]=i),i}var yxe=(0,Z.lazy)(()=>ZN().then(e=>({default:e.SessionsPage}))),bxe=(0,Z.lazy)(()=>QN().then(e=>({default:e.AutomationsPage}))),xxe=(0,Z.lazy)(()=>$N().then(e=>({default:e.BrowserWorkflowsPage}))),Sxe=(0,Z.lazy)(()=>eP().then(e=>({default:e.HomePage}))),Cxe=(0,Z.lazy)(()=>tP().then(e=>({default:e.TaskDetailPage}))),wxe=(0,Z.lazy)(()=>nP().then(e=>({default:e.ProjectsPage}))),W9=(0,Z.lazy)(()=>rP().then(e=>({default:e.ProjectDetailPage}))),G9=(0,Z.lazy)(()=>iP().then(e=>({default:e.NotesPage}))),Txe=(0,Z.lazy)(()=>aP().then(e=>({default:e.WorkflowsPage}))),Exe=(0,Z.lazy)(()=>aP().then(e=>({default:e.WorkflowDetailPage}))),K9=(0,Z.lazy)(()=>aP().then(e=>({default:e.WorkflowEditorPage}))),Dxe=(0,Z.lazy)(()=>aP().then(e=>({default:e.WorkflowRunPage}))),Oxe=(0,Z.lazy)(()=>oP().then(e=>({default:e.SkillsPage}))),kxe=(0,Z.lazy)(()=>sP().then(e=>({default:e.UserModelPage}))),Axe=(0,Z.lazy)(()=>cP().then(e=>({default:e.ConnectorsPage}))),jxe=(0,Z.lazy)(()=>lP().then(e=>({default:e.LogsPage}))),Mxe=(0,Z.lazy)(()=>uP().then(e=>({default:e.SettingsPage}))),Nxe=(0,Z.lazy)(()=>AP().then(e=>({default:e.CapabilitiesSettingsPanel}))),q9=(0,Z.lazy)(()=>dP().then(e=>({default:e.AgentsSettingsPanel}))),Pxe=(0,Z.lazy)(()=>fP().then(e=>({default:e.AgentBrowserSettingsPage}))),J9=(0,Z.lazy)(()=>pP().then(e=>({default:e.ChannelsSettingsPanel}))),Fxe=(0,Z.lazy)(()=>mP().then(e=>({default:e.ExtensionsPage}))),Y9=(0,Z.lazy)(()=>hP().then(e=>({default:e.ExtensionPage}))),X9=(0,Z.lazy)(()=>gP().then(e=>({default:e.ExtensionSettingsPage}))),Ixe=(0,Z.lazy)(()=>_P().then(e=>({default:e.ExtensionDebugPage}))),Lxe=(0,Z.lazy)(()=>vP().then(e=>({default:e.SharePreviewPage}))),Rxe=(0,Z.lazy)(()=>s(()=>import(`./desktop-pet-BNMRqipe.js`).then(e=>({default:e.DesktopPetPage})),__vite__mapDeps([129,1,4,9,8,10,11,101,12]))),zxe=(0,Z.lazy)(()=>yP().then(e=>({default:e.LocalAppsPage}))),Bxe=(0,Z.lazy)(()=>bP().then(e=>({default:e.LocalAppWorkbenchPage}))),Vxe=(0,Z.lazy)(()=>xP().then(e=>({default:e.ProductOpenPage}))),Hxe=(0,Z.lazy)(()=>SP().then(e=>({default:e.WorkDiscoveryPage})));function Z9(){let e=(0,Q.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 space-y-2`,children:[(0,$.jsx)(Ft,{className:`h-5 w-44`}),(0,$.jsx)(Ft,{className:`h-3 w-64 max-w-full`})]}),(0,$.jsx)(Ft,{className:`h-9 w-24 shrink-0 rounded-lg`})]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:Array.from({length:4}).map(Wxe)}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-surface-panel`,"aria-busy":!0,children:(0,$.jsxs)(`div`,{className:`flex w-full flex-col gap-5 px-3 py-6 sm:px-5 xl:px-6`,children:[t,n,(0,$.jsx)(`div`,{className:`grid gap-3 lg:grid-cols-3`,children:Array.from({length:6}).map(Uxe)})]})}),e[2]=r):r=e[2],r}function Uxe(e,t){return(0,$.jsx)(Ft,{className:`h-36 rounded-lg`},t)}function Wxe(e,t){return(0,$.jsx)(Ft,{className:`h-20 rounded-lg`},t)}function Q9(){let e=(0,Q.c)(4),t,n,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Ft,{className:`h-8 w-48 max-w-full`}),n=(0,$.jsx)(Ft,{className:`mt-6 h-36 rounded-xl`}),r=(0,$.jsx)(Ft,{className:`mt-4 h-24 rounded-xl`}),e[0]=t,e[1]=n,e[2]=r):(t=e[0],n=e[1],r=e[2]);let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col`,"aria-busy":!0,children:(0,$.jsxs)(`div`,{className:`w-full flex-1 px-3 py-8 sm:px-5 xl:px-6`,children:[t,n,r,(0,$.jsxs)(`div`,{className:`mt-6 grid gap-3 sm:grid-cols-2`,children:[(0,$.jsx)(Ft,{className:`h-20 rounded-xl`}),(0,$.jsx)(Ft,{className:`h-20 rounded-xl`})]})]})}),e[3]=i):i=e[3],i}var Gxe=v([{path:`/desktop-pet`,errorElement:(0,$.jsx)(t5,{}),element:(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(Rxe,{})})},{path:`/share/:token`,errorElement:(0,$.jsx)(t5,{}),element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Lxe,{})})},{path:`/`,element:(0,$.jsx)(rme,{}),errorElement:(0,$.jsx)(t5,{}),children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Sxe,{})})},{path:`open`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Vxe,{})})},{path:`onboarding/workspace`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Hxe,{})})},{path:`chat`,element:(0,$.jsx)(Xbe,{}),children:[{path:`task/:taskId`,element:(0,$.jsx)(Qbe,{})},{path:Zbe,element:(0,$.jsx)(F9,{})}]},{path:`automations`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(bxe,{})})},{path:`browser-workflows`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(xxe,{})})},{path:`user-model`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(kxe,{})})},{path:`tasks/:taskId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Cxe,{})})},{path:`projects`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(wxe,{})})},{path:`:projectId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(W9,{})})},{path:`:projectId/:tabId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(W9,{})})},{path:`:projectId/notes/:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(W9,{})})}]},{path:`notes`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(G9,{})})},{path:`:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(G9,{})})}]},{path:`workflows`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Txe,{})})},{path:`new`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(K9,{})})},{path:`runs/:runId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Dxe,{})})},{path:`:definitionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Exe,{})})},{path:`:definitionId/edit`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(K9,{})})}]},{path:`skills`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Oxe,{})})},{path:`connectors`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Axe,{})})},{path:`channels`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(J9,{})})},{path:`:channelId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(J9,{})})}]},{path:`agents`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(q9,{})})},{path:`agents/:agentId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(q9,{})})},{path:`extensions`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Fxe,{})})},{path:`local-apps`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(zxe,{})})},{path:`:appId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Bxe,{})})}]},{path:`extensions/:extensionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Y9,{})})},{path:`extensions/:extensionId/:pageId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Y9,{})})},{path:`settings`,element:(0,$.jsx)(Vme,{children:(0,$.jsx)(Ime,{})}),children:[{index:!0,element:(0,$.jsx)(_,{to:`overview`,replace:!0})},{path:`sessions`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(yxe,{})})},{path:`logs`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(jxe,{})})},{path:`agent-browser`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Pxe,{})})},{path:`capabilities/:capability`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Nxe,{})})},{path:`extensions/debug`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Ixe,{})})},{path:`ext/:extensionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(X9,{})})},{path:`ext/:extensionId/:panelId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(X9,{})})},{path:`:section`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Mxe,{})})}]}]}]);function Kxe(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Z.useEffect)(qxe,t),null}function qxe(){let e=Et.persist.onFinishHydration(Yxe),t=zj.persist.onFinishHydration(Jxe),n=dt(),r=Dt();return()=>{e?.(),t?.(),n(),r()}}function Jxe(){Bj()}function Yxe(){Ot()}function Xxe(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Kxe,{}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(vxe,{children:(0,$.jsx)(wI,{children:(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[t,(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col *:min-h-0 *:flex-1`,children:[(0,$.jsx)(fxe,{}),(0,$.jsx)(tn,{router:Gxe})]})]})})}),e[1]=n):n=e[1],n}function $9(e){return e instanceof DOMException&&e.name===`AbortError`}function Zxe(e){if(e.error!==void 0&&e.error!==null)return e.error;let t=e.filename?` (${e.filename}${e.lineno?`:${e.lineno}:${e.colno}`:``})`:``;return Error(`${e.message||`Unknown window error`}${t}`)}function Qxe(e){let t=!1,n=n=>{if(t||!n.message&&n.error==null)return;let r=Zxe(n);$9(r)||(t=!0,n.preventDefault(),e(r,`window.error`))},r=n=>{t||$9(n.reason)||(t=!0,n.preventDefault(),e(n.reason??Error(`Unhandled promise rejection`),`unhandledrejection`))};return window.addEventListener(`error`,n),window.addEventListener(`unhandledrejection`,r),()=>{window.removeEventListener(`error`,n),window.removeEventListener(`unhandledrejection`,r)}}async function $xe(){let e=(0,zO.createRoot)(document.getElementById(`root`)),t=!1,n=(n,r)=>{t||(t=!0,console.error(`Renderer fatal error (${r})`,n),e.render((0,$.jsx)(e5,{error:n,source:r})))};Qxe(n);try{ft(it()),kt(),Rj(),await lt(),e.render((0,$.jsx)(Z.StrictMode,{children:(0,$.jsx)(vme,{children:(0,$.jsx)(Xxe,{})})}))}catch(e){n(e,`bootstrap`)}}$xe();export{E8 as $,yj as $a,bg as $c,VB as $i,za as $l,F$ as $n,qO as $o,VU as $r,Gv as $s,e6 as $t,T7 as A,jP as Aa,nv as Ac,eV as Ai,eu as Al,o4 as An,Jk as Ao,KJ as Ar,DC as As,_fe as At,N5 as B,qM as Ba,j_ as Bc,YB as Bi,_c as Bl,U$ as Bn,$k as Bo,IJ as Br,_x as Bs,a8 as Bt,$ye as C,zF as Ca,mv as Cc,gH as Ci,Xd as Cl,Rle as Cn,iA as Co,fY as Cr,Dw as Cs,Pfe as Ct,Zye as D,TP as Da,sv as Dc,iV as Di,md as Dl,s4 as Dn,sA as Do,$J as Dr,cw as Ds,Dfe as Dt,ebe as E,kP as Ea,lv as Ec,UV as Ei,hd as El,l4 as En,tA as Eo,GJ as Er,lw as Es,f8 as Et,Z5 as F,wP as Fa,G_ as Fc,aV as Fi,gl as Fl,B$ as Fn,nA as Fo,JJ as Fr,Wx as Fs,hfe as Ft,d5 as G,rM as Ga,p_ as Gc,MB as Gi,Qs as Gl,n1 as Gn,gk as Go,Vq as Gr,jy as Gs,q6 as Gt,_5 as H,iM as Ha,S_ as Hc,jB as Hi,uc as Hl,L$ as Hn,aA as Ho,gJ as Hr,Yb as Hs,Z6 as Ht,Ige as I,FP as Ia,U_ as Ic,sV as Ii,fl as Il,X$ as In,Pk as Io,HJ as Ir,Vx as Is,vfe as It,B8 as J,jj as Ja,Yg as Jc,AB as Ji,As as Jl,q$ as Jn,ZO as Jo,BK as Jr,Zv as Js,A6 as Jt,u5 as K,Hj as Ka,c_ as Kc,qB as Ki,Ys as Kl,r1 as Kn,dk as Ko,Lq as Kr,Dy as Ks,Tde as Kt,Q5 as L,DP as La,H_ as Lc,RB as Li,Gc as Ll,a1 as Ln,oA as Lo,RJ as Lr,Lx as Ls,i8 as Lt,E7 as M,EP as Ma,Y_ as Mc,ZB as Mi,Dl as Ml,z$ as Mn,cA as Mo,WJ as Mr,qS as Ms,mfe as Mt,f7 as N,PP as Na,J_ as Nc,oV as Ni,Cl as Nl,W$ as Nn,Yk as No,qJ as Nr,kS as Ns,gfe as Nt,abe as O,OP as Oa,iv as Oc,nV as Oi,cd as Ol,a4 as On,rA as Oo,UJ as Or,ew as Os,d8 as Ot,e7 as P,MP as Pa,q_ as Pc,tV as Pi,_l as Pl,H$ as Pn,Zk as Po,ZJ as Pr,TS as Ps,s8 as Pt,N8 as Q,xj as Qa,Fg as Qc,JB as Qi,is as Ql,e1 as Qn,YO as Qo,YU as Qr,Kv as Qs,o6 as Qt,R5 as R,XN as Ra,F_ as Rc,PB as Ri,Mc as Rl,i1 as Rn,Hk as Ro,NJ as Rr,jx as Rs,n8 as Rt,sbe as S,ZF as Sa,gv as Sc,yH as Si,wf as Sl,a3 as Sn,Wk as So,iY as Sr,jw as Ss,Ofe as St,qye as T,IP as Ta,dv as Tc,qV as Ti,Dd as Tl,c4 as Tn,eA as To,eY as Tr,uw as Ts,p8 as Tt,g5 as U,sM as Ua,g_ as Uc,NB as Ui,sc as Ul,J$ as Un,Gk as Uo,pJ as Ur,Sb as Us,X6 as Ut,h5 as V,oM as Va,D_ as Vc,HB as Vi,dc as Vl,Y$ as Vn,Bk as Vo,PJ as Vr,px as Vs,Q6 as Vt,f5 as W,nM as Wa,h_ as Wc,KB as Wi,nc as Wl,R$ as Wn,_k as Wo,aJ as Wr,Wy as Ws,J6 as Wt,I8 as X,kj as Xa,Kg as Xc,zB as Xi,cs as Xl,o1 as Xn,GO as Xo,rG as Xr,Jv as Xs,Nue as Xt,z8 as Y,Mj as Ya,qg as Yc,BB as Yi,xs as Yl,G$ as Yn,XO as Yo,iG as Yr,Yv as Ys,Sde as Yt,F8 as Z,Cj as Za,Gg as Zc,WB as Zi,ss as Zl,V$ as Zn,ak as Zo,XU as Zr,qv as Zs,a6 as Zt,Kye as _,AI as _a,wv as _c,NH as _i,Tp as _l,u3 as _n,Ak as _o,nY as _r,HT as _s,g8 as _t,pr as _u,j9 as a,mB as aa,Lv as ac,xU as ai,eg as al,q3 as an,rj as ao,zZ as ar,ck as as,Vfe as at,Qi as au,nbe as b,bI as ba,yv as bc,SH as bi,ip as bl,zle as bn,Qk as bo,dY as br,eT as bs,_8 as bt,sn as bu,wbe as c,lB as ca,Pv as cc,lU as ci,Nh as cl,U3 as cn,KA as co,EZ as cr,JO as cs,C8 as ct,Hi as cu,m9 as d,HL as da,Av as dc,$H as di,gh as dl,I3 as dn,fA as do,yZ as dr,HO as ds,Rfe as dt,vi as du,IB as ea,Wv as ec,BU as ei,mg as el,Q3 as en,gj as eo,M$ as er,nk as es,Gfe as et,Ra as eu,Xye as f,mL as fa,kv as fc,HH as fi,sh as fl,oue as fn,uA as fo,uZ as fr,UO as fs,b8 as ft,Wr as fu,rbe as g,jI as ga,Tv as gc,FH as gi,kp as gl,w3 as gn,Nk as go,rY as gr,GT as gs,h8 as gt,xr as gu,p9 as h,tL as ha,Ev as hc,CH as hi,Ip as hl,sue as hn,Ok as ho,sY as hr,FE as hs,Mfe as ht,Tr as hu,M9 as i,fB as ia,Rv as ic,vU as ii,rg as il,J3 as in,pj as io,uQ as ir,rk as is,S8 as it,ta as iu,U_e as j,NP as ja,$_ as jc,$B as ji,Vl as jl,K$ as jn,Vk as jo,XJ as jr,JS as js,o8 as jt,Yye as k,LP as ka,rv as kc,cV as ki,gu as kl,u4 as kn,zk as ko,YJ as kr,IC as ks,Tfe as kt,C9 as l,PL as la,Mv as lc,hU as li,yh as ll,R3 as ln,zA as lo,DZ as lr,ek as ls,Lfe as lt,Bi as lu,ibe as m,iL as ma,Dv as mc,wH as mi,im as ml,j3 as mn,kk as mo,_Y as mr,PE as ms,x8 as mt,Pr as mu,F9 as n,EB as na,Hv as nc,MU as ni,lg as nl,Cue as nn,bj as no,D$ as nr,QO as ns,T8 as nt,sa as nu,Tbe as o,pB as oa,Iv as oc,_U as oi,Uh as ol,K3 as on,nj as oo,VZ as or,tk as os,Ufe as ot,Ji as ou,tbe as p,_L as pa,Ov as pc,WH as pi,fm as pl,cue as pn,dA as po,gY as pr,BO as ps,y8 as pt,Rr as pu,X8 as q,Aj as qa,r_ as qc,UB as qi,zs as ql,Z$ as qn,ik as qo,sq as qr,Qv as qs,Ede as qt,Kbe as r,SB as ra,zv as rc,bU as ri,og as rl,n6 as rn,hj as ro,dQ as rr,sk as rs,w8 as rt,ra as ru,w9 as s,dB as sa,Fv as sc,yU as si,Rh as sl,G3 as sn,YA as so,FZ as sr,ok as ss,Hfe as st,Ui as su,L9 as t,kB as ta,Uv as tc,FU as ti,fg as tl,$3 as tn,_j as to,O$ as tr,KO as ts,Wfe as tt,da as tu,h9 as u,VL as ua,jv as uc,aU as ui,_h as ul,z3 as un,RA as uo,vZ as ur,$O as us,zfe as ut,zi as uu,Gye as v,EI as va,Cv as vc,PH as vi,xp as vl,l3 as vn,jk as vo,tY as vr,ST as vs,Nfe as vt,Yn as vu,obe as w,LF as wa,fv as wc,oH as wi,Nd as wl,Q4 as wn,Uk as wo,cY as wr,Cw as ws,Efe as wt,Jye as x,SI as xa,_v as xc,xH as xi,Nf as xl,i3 as xn,Xk as xo,hY as xr,Nw as xs,Ffe as xt,Qye as y,OI as ya,bv as yc,IH as yi,vp as yl,o3 as yn,qk as yo,uY as yr,uT as ys,Ife as yt,qn as yu,qhe as z,SN as za,M_ as zc,GB as zi,bc as zl,I$ as zn,Kk as zo,MJ as zr,Ox as zs,r8 as zt};
|