@xopcai/xopc 0.0.360 → 0.0.361
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-CnmHVy1D.js → activity-store-tpFInIoh.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CQTERenW.js → agent-avatar-dicebear-DUhFW_Go.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BNILmgey.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-CnWci4JJ.js +1 -0
- package/dist/gateway/static/root/assets/agents-CKS5LUUs.js +66 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-BtnYiq7O.js → agents-admin-api-CiAjB2iQ.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-V5QVeMvW.js → app-management-settings-panel-DEig00YU.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BDkRcoI6.js → appearance-settings-CccnRRrL.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DzCyL89L.js → apps-page-CkT6UNZW.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-DZCN9m71.js → archive-plugin-CIlmZBe5.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DOu1wMOV.js → automations-page-8kZugDcf.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-3V54ShL0.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-U63xxRgh.js → binary-plugins-BuQiee_b.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-K6is5GrS.js → block-editor-BFFRbsKX.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-MmkUGn9W.js → browser-automation-inputs-CWujpdCx.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-B8IiXEBs.js → browser-automations-page-HVXiBKXE.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DpxAXNvM.js +3 -0
- package/dist/gateway/static/root/assets/{capabilities-BXG_5wIg.js → capabilities-CngwB2JU.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Bigu28Z6.js → capabilities-RMlKKfGF.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-BBi4ef3u.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-IxszGl-Q.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-wh3Nr0qS.js → capability-header-actions-BLOIJvIZ.js} +1 -1
- package/dist/gateway/static/root/assets/channels-Ced5nFBc.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BU-X9nu1.js → chat-terminal-dock-BskUzDCS.js} +2 -2
- package/dist/gateway/static/root/assets/{computer-settings-page-MyXsSqFJ.js → computer-settings-page-De-pjlvn.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-DyxPM_MZ.js → connector-service-page-Qc1mVfp9.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-CPqeY1x5.js +2 -0
- package/dist/gateway/static/root/assets/{date-picker-WRFvi7Pu.js → date-picker-7ppMIGfQ.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-CLun5Tst.js → dependency-picker-DfYC22si.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-iaVa9vVM.js → desktop-pet-GKEfqHDF.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-0RS3sP3Z.js → desktop-pet-settings-qoFZBKe9.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-D8sTDd5s.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-Btlldlt3.js → directory-picker-path-field-BC87CZa2.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-BImQT4PU.js → extension-debug-page-VxCq29jC.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BmuLv-ET.js → extension-page-DypBVBTt.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-Dg7cRxDX.js → extension-provider-wlvxPese.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-7Kr8UJK4.js → extension-settings-page-DzzkBN9y.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-B0w1lumZ.js → fallback-models-s4qTRcPJ.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-EZxaKXdC.js → gateway-config-swr-ZM72jovc.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DBRa17u3.js → gateway-realtime-B-hrykag.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B6B1fw_K.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings--M7ZH_37.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-Wtxq_y2f.js → gateway-startup-retry-DjWuTj8B.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-KFs5suD1.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-Bnl0CH4n.js → image-generation-api-C9cwrqCr.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BLOJY67-.js → imports-page-BKy0ImXk.js} +1 -1
- package/dist/gateway/static/root/assets/index-C0JT9Ja4.js +106 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Dlbsip2R.js → keyboard-shortcuts-settings-CexiL-Ey.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-nyWeTK0r.js → local-app-workbench-page-CcU1OLWQ.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-CfEpFLs0.js → local-apps-page-BcLijQx4.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CeHhcudO.js → local-session-drafts-C7QjBMNp.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-ChN_vjs2.js → locale-store-5sV3dDRG.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-A38cawkA.js → logs-page-48nrZNQe.js} +2 -2
- package/dist/gateway/static/root/assets/management-settings-B_gzl_Vh.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-DKlJx4eo.js → markdown-view-V0f5NW7D.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-JWzrPQwt.js → media-plugins-_obxSZmT.js} +1 -1
- package/dist/gateway/static/root/assets/{messages-CnM6Qfr7.js → messages-CaURu8bb.js} +2 -2
- package/dist/gateway/static/root/assets/models-hub-cache-Cs3E5pEA.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-CUGVyo2V.js → note-detail-panel-B9AeX98W.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-api-D8nvWMMC.js → notes-api-CBnMq6Nc.js} +1 -1
- package/dist/gateway/static/root/assets/notes-page-CKTTfxw-.js +8 -0
- package/dist/gateway/static/root/assets/{oauth-api-BXn1a9qx.js → oauth-api-Bu2RoLF2.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-C72qIgBg.js → page-context-capture-button-BsxBAWD_.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-Cfl1FR3i.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-CT98FsVl.js → product-open-page-D1ARqS3r.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-BlqOVwKP.js → project-detail-page-Cro1OE8P.js} +1 -1
- package/dist/gateway/static/root/assets/projects-page-CdEmmBCz.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-BM_81rLe.js → registry-api-j1rNFkP2.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-C9_ea_4p.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-ry0jprz7.js → runtime-tools-settings-panel-DtmQbC72.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-CV1GkOj6.js → scenes-page-DeFdMf2q.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-C5zMrxgR.js → schema-form-ByEHHW6n.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-Dt0t5SoR.js → send-session-input-CO_vUCb8.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-UkGomZfv.js → session-api-CYPGi01d.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-DDR-gv_e.js → session-manager-BdJThQQ6.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-CV0JlaXS.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-D9sW0hKa.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-C88fsfZF.js → settings-page-CHKsZFAN.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DESlRgZS.js → setup-status-panel-CC58OVOe.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-BvSRHs1P.js → share-link-dialog-ZOdnHkmb.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-D5Gey-6E.js → share-preview-page-BPDWUuH_.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-DwqLga5H.js → shares-api-T5gR8yqz.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-DaXvdH8c.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-1hbX3qDC.js → skill-api-CHCLMcfO.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-C1hzIawD.js → skill-reload-api-C-RoiUJi.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-a9UQQnqn.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DbNk-Jwq.js → system-settings-panel-Dho_dlBS.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DoLKOJrE.js → task-detail-page-B5JyH4z7.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-DTYk7Gll.js → theme-store-CEl74p7l.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-H3FheXYH.js → tunnel-api-BDqCyf8G.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DGbqcsV6.js → usage-page-DKwKfszc.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-R3hEHQQq.js → use-autosave-D09eZTLp.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-pzPAUV_o.js → use-composer-attachments-CkvJM8Km.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-DNhXjL0W.js → use-file-preview-expanded-J3HnG8OH.js} +2 -2
- package/dist/gateway/static/root/assets/user-model-page-BsgADrGL.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-C-AF-IcO.js → voice-api-key-field-DH-to9Rd.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-CxGsCDoW.js → voice-config-api-CmCfVy3H.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DfyI9kVf.js → work-discovery-overlay-x1vZDBhu.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-De80GODZ.js → workflow-run-setup-panel-DGatvmK1.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-DgNy6mBQ.js +6 -0
- package/dist/gateway/static/root/assets/{workspace-api-Dwa8kHdY.js → workspace-api-DzPw92Kx.js} +2 -2
- package/dist/gateway/static/root/index.html +27 -28
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +3 -3
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +70 -4
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +13 -0
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -1
- package/dist/src/agent/memory/compaction-policy.d.ts +4 -0
- package/dist/src/agent/memory/compaction-policy.js +3 -0
- package/dist/src/agent/memory/idle-compaction-scheduler.d.ts +28 -0
- package/dist/src/agent/memory/idle-compaction-scheduler.js +127 -0
- package/dist/src/agent/service/process-direct-one-shot.js +1 -0
- package/dist/src/agent/service/process-direct-streaming.js +1 -0
- package/dist/src/agent/service.js +3 -2
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tools/delegation-policy.js +1 -0
- package/dist/src/agent/tools/factory.js +16 -2
- package/dist/src/agent/tools/index.d.ts +1 -0
- package/dist/src/agent/tools/index.js +2 -1
- package/dist/src/agent/tools/media-read-tool.d.ts +5 -1
- package/dist/src/agent/tools/media-read-tool.js +44 -5
- package/dist/src/agent/tools/personal-read-tool.d.ts +3 -0
- package/dist/src/agent/tools/personal-read-tool.js +155 -0
- package/dist/src/agent/tools/personal-task-tool.js +1 -1
- package/dist/src/agent/tools/read.d.ts +3 -0
- package/dist/src/agent/tools/read.js +26 -8
- package/dist/src/agent/tools/session-search-tool.d.ts +1 -0
- package/dist/src/agent/tools/session-search-tool.js +39 -5
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +10 -0
- package/dist/src/config/schema.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/hono/lib/config-payload.d.ts +10 -0
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +2 -2
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -0
- package/dist/src/gateway/service/session-command-service.js +1 -1
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
- package/dist/src/gateway/service/session-input-coordinator.js +2 -0
- package/dist/src/gateway/service.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media/store.js +5 -1
- package/dist/src/personal-agent/policy.d.ts +1 -1
- package/dist/src/personal-agent/policy.js +4 -0
- package/dist/src/personal-agent/request-service.js +1 -1
- package/dist/src/personal-agent/service.js +9 -7
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/session/store.d.ts +12 -1
- package/dist/src/session/store.js +33 -0
- package/dist/src/storage/sqlite/transcript-repository.d.ts +4 -1
- package/dist/src/storage/sqlite/transcript-repository.js +15 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/task-main-update-decision-service.js +1 -1
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +2 -2
- package/dist/src/user-context/config.d.ts +48 -0
- package/dist/src/user-context/config.js +23 -3
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CPF0lunJ.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-BjDaZlKy.js +0 -1
- package/dist/gateway/static/root/assets/agents-XopBILLB.js +0 -66
- package/dist/gateway/static/root/assets/automations-workspace-CiY_2otj.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-Cms2Bu3Q.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-BAFRNHQv.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-Cws6od1d.js +0 -8
- package/dist/gateway/static/root/assets/channels-DxwismTc.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-C7-OC3MW.js +0 -2
- package/dist/gateway/static/root/assets/device-pairing-wizard-DVAGb04L.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-7glMlD2l.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-DmPvmwYp.js +0 -1
- package/dist/gateway/static/root/assets/home-page-N0Mp-eTJ.js +0 -1
- package/dist/gateway/static/root/assets/index-BXrBL_Hb.js +0 -106
- package/dist/gateway/static/root/assets/management-settings-Cse9K61x.js +0 -1
- package/dist/gateway/static/root/assets/model-display-name-DXhO9rcM.js +0 -1
- package/dist/gateway/static/root/assets/models-hub-cache-DnIOzcvn.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-Dk89l5dC.js +0 -8
- package/dist/gateway/static/root/assets/personal-page-DCtduzh8.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-DVN2q_yR.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BP5kUgIN.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-BXtGeOsR.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CvFVkELy.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-btoP07Fx.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-DYJbwwBT.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-7pW4Pazn.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-BuH3pC1C.js +0 -6
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/device-pairing-wizard-D8sTDd5s.js","assets/rolldown-runtime-aKtaBQYM.js","assets/dist-BGTk37IG.js","assets/es2015-DBLcMg5B.js","assets/vendor-react-BOUWij0V.js","assets/dist-CxGUk8J-.js","assets/chunk-KS7C4IRE-BMYIfy9x.js","assets/preload-helper-zJ_50EbN.js","assets/vendor-swr-BIWyz7Rc.js","assets/chevron-right-BweFrslA.js","assets/createLucideIcon-DPHK1VkS.js","assets/circle-check-C23XjkUj.js","assets/clock-3-DnrAnuyZ.js","assets/download-Dk-ZjtO6.js","assets/external-link-DjqjBmc3.js","assets/x-B_N4OPjy.js","assets/locale-store-5sV3dDRG.js","assets/messages-CaURu8bb.js","assets/cn-JdwAhgNB.js","assets/browser-BLJWD7WI.js","assets/button-CS04eWY9.js","assets/copy-text-row-BHDs3cBa.js","assets/dist-Che_jiQF.js","assets/dist-CI_fqRk-.js","assets/floating-ui.dom-B7uQOZZW.js","assets/check-DUBLcKHA.js","assets/copy-Dv6d4Dvw.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/skeleton-BwbyijEw.js","assets/tunnel-api-BDqCyf8G.js","assets/globe-DSSGFWFn.js","assets/loader-circle-CifKLtgG.js","assets/gateway-config-swr-ZM72jovc.js","assets/settings-form-section-exRhP9xn.js","assets/pencil-DmIY3Oa-.js","assets/interaction-BdhHBbYa.js","assets/form-field-width-DJw_jULe.js","assets/oauth-api-Bu2RoLF2.js","assets/electron-env-Dit0bHgy.js","assets/app-link-DRL0YnPs.js","assets/product-delivery-BAks11S4.js","assets/schemas-CObaziC7.js","assets/local-apps-yys1VChX.js","assets/settings-shell-dialog-layer-BU3UuiJr.js","assets/use-async-resource-GrnWNwMZ.js","assets/settings-page-CHKsZFAN.js","assets/sessions-page-CV0JlaXS.js","assets/popover-select-BgSdSbCL.js","assets/dist-C3DSFZCi.js","assets/folder-open-CyzJ19I9.js","assets/message-square-fVE7Ghj1.js","assets/minimize-2-DtOGrlpo.js","assets/plus-Q2yW6OE7.js","assets/search-DA7gz22f.js","assets/session-api-CYPGi01d.js","assets/gateway-startup-retry-DjWuTj8B.js","assets/use-autosave-D09eZTLp.js","assets/circle-alert-BEjgurr2.js","assets/page-tabs-D2xpUV26.js","assets/registry-api-j1rNFkP2.js","assets/settings-advanced-gate-D9sW0hKa.js","assets/settings-page-layout-X1x-2Cp9.js","assets/settings-form-draft-Dy10ldo8.js","assets/logs-page-48nrZNQe.js","assets/gateway-realtime-B-hrykag.js","assets/gateway-realtime-store-B6B1fw_K.js","assets/automations-page-8kZugDcf.js","assets/automations-workspace-3V54ShL0.js","assets/markdown-view-V0f5NW7D.js","assets/markdown-view-DSjfHfaW.css","assets/activity-YogQEteU.js","assets/ellipsis-0k4rZLoy.js","assets/git-branch-Dh9uxTot.js","assets/pause-DuPxgSxk.js","assets/play-kxZvpBg8.js","assets/sparkles-DHlfQFAF.js","assets/workflow-run-setup-panel-DGatvmK1.js","assets/eye-CABVeTq0.js","assets/browser-automation-inputs-CWujpdCx.js","assets/capabilities-page-BBi4ef3u.js","assets/capability-header-actions-BLOIJvIZ.js","assets/agent-avatar-dicebear-DUhFW_Go.js","assets/usage-page-DKwKfszc.js","assets/bot-DjLkhyZL.js","assets/scenes-page-DeFdMf2q.js","assets/circle-pause-CN9jYH2s.js","assets/notes-api-CBnMq6Nc.js","assets/settings-2-D-csvaET.js","assets/page-context-capture-button-BsxBAWD_.js","assets/session-manager-BdJThQQ6.js","assets/local-session-drafts-C7QjBMNp.js","assets/tool-activity-BtJkgjFf.js","assets/constants-Dy8Gw0sF.js","assets/attachment-utils-core-BIOUBrpT.js","assets/agents-admin-api-CiAjB2iQ.js","assets/capabilities-CngwB2JU.js","assets/capabilities-RMlKKfGF.js","assets/tasks-CH6KoBeY.js","assets/browser-automations-page-HVXiBKXE.js","assets/home-page-KFs5suD1.js","assets/use-composer-attachments-CkvJM8Km.js","assets/mic-CuUb7zc-.js","assets/use-file-preview-expanded-J3HnG8OH.js","assets/link-2-D_ZKYUW7.js","assets/message-square-plus-XP0tGdlV.js","assets/rotate-cw-LIg3Am9S.js","assets/index.module-Cd9ENXfk.js","assets/app-chrome-BeB4KgOf.js","assets/workspace-api-DzPw92Kx.js","assets/files-Bw4SBGdM.js","assets/activity-store-tpFInIoh.js","assets/share-link-dialog-ZOdnHkmb.js","assets/skill-wire-pattern-BPpeIcCi.js","assets/shares-api-T5gR8yqz.js","assets/tab-completion-input-D64VNmiA.js","assets/task-detail-page-B5JyH4z7.js","assets/date-picker-7ppMIGfQ.js","assets/dependency-picker-DfYC22si.js","assets/projects-page-CdEmmBCz.js","assets/rotate-ccw-JM1TBLpp.js","assets/project-detail-page-Cro1OE8P.js","assets/style-TIDOdKy0.js","assets/with-selector-aYPsXwdl.js","assets/style-DLioOiRN.css","assets/circle-dot-BAseJTrF.js","assets/note-detail-panel-B9AeX98W.js","assets/note-image-lightbox-1qg2v-9j.js","assets/theme-store-CEl74p7l.js","assets/middleware-Pd0e8Igk.js","assets/directory-picker-path-field-BC87CZa2.js","assets/skill-api-CHCLMcfO.js","assets/skill-api-utils-C7V4JVXM.js","assets/skill-reload-api-C-RoiUJi.js","assets/notes-page-CKTTfxw-.js","assets/workflows-page-DgNy6mBQ.js","assets/vendor-codemirror-DFxP3B9T.js","assets/code-editor-CXIH8jQw.js","assets/tab-completion-input.utils-BP3NH_du.js","assets/user-model-page-BsgADrGL.js","assets/loopi-Djb8XU3l.js","assets/loopi-C09I2mNj.css","assets/browser-settings-page-DpxAXNvM.js","assets/settings-loading-skeleton-CAmWMaOT.js","assets/computer-settings-page-De-pjlvn.js","assets/extension-page-DypBVBTt.js","assets/extension-provider-wlvxPese.js","assets/send-session-input-CO_vUCb8.js","assets/extension-settings-page-DzzkBN9y.js","assets/schema-form-ByEHHW6n.js","assets/secret-input-DPl3VYM8.js","assets/is-masked-secret-DOkL5b_X.js","assets/voice-api-key-field-DH-to9Rd.js","assets/voice-config-api-CmCfVy3H.js","assets/extension-debug-page-VxCq29jC.js","assets/share-preview-page-BPDWUuH_.js","assets/local-apps-page-BcLijQx4.js","assets/local-app-workbench-page-CcU1OLWQ.js","assets/product-open-page-D1ARqS3r.js","assets/work-discovery-overlay-x1vZDBhu.js","assets/setup-status-panel-CC58OVOe.js","assets/appearance-settings-CccnRRrL.js","assets/keyboard-shortcuts-settings-CexiL-Ey.js","assets/system-settings-panel-Dho_dlBS.js","assets/desktop-pet-settings-qoFZBKe9.js","assets/desktop-pet-sprite-DTqXSpqf.js","assets/app-management-settings-panel-DEig00YU.js","assets/capabilities-settings-panel-IxszGl-Q.js","assets/circle-dashed-8qMD7gHf.js","assets/cloud-C4-yfnnk.js","assets/image-generation-api-C9cwrqCr.js","assets/models-hub-cache-Cs3E5pEA.js","assets/gateway-settings--M7ZH_37.js","assets/runtime-tools-settings-panel-DtmQbC72.js","assets/remote-access-hub-C9_ea_4p.js","assets/shares-settings-DaXvdH8c.js","assets/agent-defaults-settings-panel-BNILmgey.js","assets/fallback-models-s4qTRcPJ.js","assets/management-settings-B_gzl_Vh.js","assets/chat-terminal-dock-BskUzDCS.js","assets/chat-terminal-dock-uQUnjRtf.css","assets/imports-page-BKy0ImXk.js","assets/connector-service-page-Qc1mVfp9.js","assets/desktop-pet-GKEfqHDF.js","assets/personal-page-Cfl1FR3i.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,f as l,g as u,h as d,i as f,m 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-BMYIfy9x.js";import{t as x}from"./createLucideIcon-DPHK1VkS.js";import{t as S}from"./activity-YogQEteU.js";import{t as C}from"./bot-DjLkhyZL.js";import{t as w}from"./check-DUBLcKHA.js";import{t as T}from"./chevron-right-BweFrslA.js";import{a as E,c as D,d as O,i as k,l as A,n as j,o as M,r as N,s as P,t as F,u as I}from"./popover-select-BgSdSbCL.js";import{t as L}from"./circle-alert-BEjgurr2.js";import{t as R}from"./circle-check-C23XjkUj.js";import{t as z}from"./circle-dashed-8qMD7gHf.js";import{t as B}from"./circle-dot-BAseJTrF.js";import{t as V}from"./circle-pause-CN9jYH2s.js";import{t as H}from"./clock-3-DnrAnuyZ.js";import{t as U}from"./cloud-C4-yfnnk.js";import{t as W}from"./copy-Dv6d4Dvw.js";import{t as G}from"./download-Dk-ZjtO6.js";import{t as ee}from"./ellipsis-0k4rZLoy.js";import{t as te}from"./external-link-DjqjBmc3.js";import{n as ne,t as K}from"./secret-input-DPl3VYM8.js";import{t as re}from"./eye-CABVeTq0.js";import{F as ie,P as ae,S as oe,a as se,c as ce,d as le,f as ue,i as de,n as fe,o as pe,r as me,s as he,t as ge,u as _e,y as ve}from"./use-composer-attachments-CkvJM8Km.js";import{C as ye,S as be,a as xe,b as Se,c as Ce,g as we,h as Te,i as Ee,l as De,n as Oe,o as ke,p as Ae,r as je,s as Me,t as Ne,u as Pe,x as Fe,y as Ie}from"./markdown-view-V0f5NW7D.js";import{t as Le}from"./folder-open-CyzJ19I9.js";import{t as Re}from"./git-branch-Dh9uxTot.js";import{t as ze}from"./globe-DSSGFWFn.js";import{F as Be,M as Ve,c as He,g as Ue,j as We,o as Ge,t as Ke,v as qe}from"./notes-api-CBnMq6Nc.js";import{t as Je}from"./link-2-D_ZKYUW7.js";import{t as Ye}from"./loader-circle-CifKLtgG.js";import{t as Xe}from"./message-square-plus-XP0tGdlV.js";import{t as Ze}from"./message-square-fVE7Ghj1.js";import{t as Qe}from"./mic-CuUb7zc-.js";import{t as $e}from"./minimize-2-DtOGrlpo.js";import{t as et}from"./pause-DuPxgSxk.js";import{t as tt}from"./pencil-DmIY3Oa-.js";import{t as nt}from"./play-kxZvpBg8.js";import{t as rt}from"./plus-Q2yW6OE7.js";import{t as it}from"./rotate-ccw-JM1TBLpp.js";import{t as at}from"./rotate-cw-LIg3Am9S.js";import{t as ot}from"./search-DA7gz22f.js";import{t as st}from"./settings-2-D-csvaET.js";import{t as ct}from"./sparkles-DHlfQFAF.js";import{_ as lt,a as ut,d as dt,g as ft,h as pt,i as mt,m as ht,n as gt,p as _t,r as vt,s as yt,t as bt,u as xt}from"./use-file-preview-expanded-J3HnG8OH.js";import{a as St,i as Ct,n as wt,r as Tt,t as Et}from"./share-link-dialog-ZOdnHkmb.js";import{t as Dt}from"./x-B_N4OPjy.js";import{n as Ot,t as kt}from"./messages-CaURu8bb.js";import{t as q}from"./cn-JdwAhgNB.js";import{a as J,c as At,d as jt,i as Mt,l as Nt,n as Pt,o as Ft,p as It,r as Y,s as Lt,t as Rt,u as zt}from"./locale-store-5sV3dDRG.js";import{a as Bt,d as eee,f as Vt,g as Ht,h as Ut,i as Wt,l as Gt,m as Kt,n as qt,o as tee,p as Jt,r as nee,s as ree,t as Yt,u as Xt}from"./es2015-DBLcMg5B.js";import{i as Zt,n as Qt}from"./dist-CxGUk8J-.js";import{a as $t,c as en,i as tn,n as nn,o as rn,r as an,s as on,t as sn}from"./dist-BGTk37IG.js";import{a as cn,d as iee,f as ln,g as un,h as dn,i as fn,l as pn,m as mn,p as hn,r as gn,s as _n,t as vn,u as yn,v as bn,y as xn}from"./schemas-CObaziC7.js";import{a as Sn,c as Cn,g as wn,h as Tn,l as En,m as Dn,p as On,t as kn}from"./tasks-CH6KoBeY.js";import{i as An,n as jn,o as Mn,s as Nn,t as Pn}from"./product-delivery-BAks11S4.js";import{a as Fn}from"./local-apps-yys1VChX.js";import{a as In,c as Ln,d as Rn,i as zn,l as Bn,n as Vn,p as Hn,s as Un,x as Wn}from"./session-api-CYPGi01d.js";import{$ as Gn,A as Kn,B as aee,C as oee,D as qn,E as see,F as Jn,G as cee,H as Yn,I as lee,J as Xn,K as Zn,L as uee,M as Qn,N as $n,O as er,P as tr,Q as nr,R as rr,S as ir,T as ar,V as or,W as sr,X as cr,Y as lr,Z as ur,_ as dr,a as fr,at as pr,b as mr,c as hr,d as gr,et as _r,f as vr,g as yr,h as br,it as xr,j as Sr,k as Cr,l as wr,m as Tr,nt as Er,o as Dr,ot as Or,p as kr,q as Ar,r as jr,rt as Mr,s as Nr,st as Pr,t as Fr,tt as Ir,u as Lr,v as Rr,w as zr,x as Br,y as Vr,z as dee}from"./session-manager-BdJThQQ6.js";import{a as Hr,g as fee,n as pee,p as mee}from"./local-session-drafts-C7QjBMNp.js";import{r as hee}from"./capabilities-RMlKKfGF.js";import{t as Ur}from"./tool-activity-BtJkgjFf.js";import{i as Wr,r as Gr,t as gee}from"./files-Bw4SBGdM.js";import{a as Kr,c as qr,l as Jr,n as _ee,o as vee,t as yee,u as bee}from"./extension-provider-wlvxPese.js";import{t as Yr}from"./copy-to-clipboard-HOJ79TWv.js";import{a as xee,i as Xr,n as See,o as Zr,t as Qr}from"./vendor-swr-BIWyz7Rc.js";import{t as X}from"./button-CS04eWY9.js";import{n as $r}from"./interaction-BdhHBbYa.js";import{a as ei,i as ti,n as ni,r as ri,t as ii}from"./gateway-config-swr-ZM72jovc.js";import{t as ai}from"./middleware-Pd0e8Igk.js";import{t as oi}from"./activity-store-tpFInIoh.js";import{a as si,c as ci,i as li,r as ui,s as di}from"./attachment-utils-core-BIOUBrpT.js";import{a as fi,c as pi,d as mi,f as hi,i as gi,l as _i,n as vi,o as yi,r as bi,s as xi,t as Si,u as Ci}from"./gateway-realtime-B-hrykag.js";import{n as wi}from"./gateway-realtime-store-B6B1fw_K.js";import{n as Ti,r as Ei,t as Di}from"./registry-api-j1rNFkP2.js";import{a as Oi,o as ki}from"./agents-admin-api-CiAjB2iQ.js";import{n as Ai,r as ji,t as Mi}from"./app-chrome-BeB4KgOf.js";import{a as Ni,i as Pi,n as Fi,o as Ii,r as Li,s as Ri}from"./form-field-width-DJw_jULe.js";import{n as zi}from"./is-masked-secret-DOkL5b_X.js";import{i as Bi,n as Vi,r as Hi,t as Ui}from"./theme-store-CEl74p7l.js";import{a as Wi,i as Gi,n as Ki,r as qi,t as Ji}from"./dist-CI_fqRk-.js";import{a as Yi,c as Xi,i as Zi,o as Qi,r as $i,s as ea}from"./dist-C3DSFZCi.js";import{t as ta}from"./skeleton-BwbyijEw.js";import{i as na,n as ra,o as ia,r as aa,t as oa}from"./settings-shell-dialog-layer-BU3UuiJr.js";import{n as sa,t as ca}from"./electron-env-Dit0bHgy.js";import{t as la}from"./use-async-resource-GrnWNwMZ.js";import{t as ua}from"./loopi-Djb8XU3l.js";import{t as da}from"./send-session-input-CO_vUCb8.js";import{n as fa}from"./index.module-Cd9ENXfk.js";import{a as pa,n as Cee,r as wee,t as ma}from"./skill-wire-pattern-BPpeIcCi.js";import{r as ha}from"./settings-form-draft-Dy10ldo8.js";import{a as ga,c as _a,f as va,i as Tee,l as Eee,n as Dee,o as Oee,p as kee,r as Aee,s as ya,t as jee,u as ba}from"./workspace-api-DzPw92Kx.js";import{a as xa,i as Sa,n as Ca,r as wa,t as Ta}from"./dist-Che_jiQF.js";import{_ as Mee,b as Nee,d as Pee,f as Ea,h as Fee,i as Iee,n as Lee,p as Ree,s as Da,u as zee,y as Bee}from"./shares-api-T5gR8yqz.js";import{t as Vee}from"./skill-api-utils-C7V4JVXM.js";import{i as Oa,n as Hee}from"./models-hub-cache-Cs3E5pEA.js";import{a as ka,n as Aa,o as Uee,r as ja,t as Wee}from"./oauth-api-Bu2RoLF2.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),Ma=e(r(),1);function Gee(e){return Z.createElement(c,{flushSync:Ma.flushSync,...e})}h();var Kee=x(`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`}]]),qee=x(`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`}]]),Jee=x(`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`}]]),Yee=x(`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`}]]),Xee=x(`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`}]]),Zee=x(`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`}]]),Qee=x(`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`}]]),$ee=x(`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`}]]),ete=x(`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`}]]),tte=x(`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`}]]),nte=x(`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`}]]),rte=x(`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`}]]),Na=x(`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`}]]),Pa=x(`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`}]]),Fa=x(`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`}]]),Ia=x(`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`}]]),La=x(`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`}]]),Ra=x(`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`}]]),za=x(`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`}]]),Ba=x(`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`}]]),Va=x(`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`}]]),Ha=x(`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`}]]),Ua=x(`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`}]]),Wa=x(`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`}]]),Ga=x(`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`}]]),Ka=x(`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`}]]),qa=x(`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`}]]),Ja=x(`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`}]]),Ya=x(`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`}]]),Xa=x(`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`}]]),Za=x(`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`}]]),Qa=x(`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`}]]),$a=x(`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`}]]),eo=x(`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`}]]),to=x(`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`}]]),no=x(`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`}]]),ro=x(`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`}]]),io=x(`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`}]]),ao=x(`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`}]]),oo=x(`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`}]]),so=x(`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`}]]),co=x(`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`}]]),lo=x(`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`}]]),uo=x(`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`}]]),fo=x(`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`}]]),po=x(`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`}]]),mo=x(`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`}]]),ho=x(`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`}]]),go=x(`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`}]]),_o=x(`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`}]]),vo=x(`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`}]]),yo=x(`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`}]]),bo=x(`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`}]]),xo=x(`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`}]]),So=x(`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`}]]),Co=x(`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`}]]),wo=x(`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`}]]),To=x(`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`}]]),Eo=x(`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`}]]),Do=x(`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`}]]),Oo=x(`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`}]]),ko=x(`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`}]]),Ao=x(`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`}]]),jo=x(`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`}]]),Mo=x(`arrow-down-left`,[[`path`,{d:`M17 7 7 17`,key:`15tmo1`}],[`path`,{d:`M17 17H7V7`,key:`1org7z`}]]),No=x(`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`}]]),Po=x(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),Fo=x(`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`}]]),Io=x(`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`}]]),Lo=x(`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`}]]),Ro=x(`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`}]]),zo=x(`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`}]]),Bo=x(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Vo=x(`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`}]]),Ho=x(`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`}]]),Uo=x(`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`}]]),Wo=x(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Go=x(`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`}]]),Ko=x(`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`}]]),qo=x(`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`}]]),Jo=x(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Yo=x(`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`}]]),Xo=x(`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`}]]),Zo=x(`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`}]]),Qo=x(`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`}]]),$o=x(`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`}]]),es=x(`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`}]]),ts=x(`arrow-up-left`,[[`path`,{d:`M7 17V7h10`,key:`11bw93`}],[`path`,{d:`M17 17 7 7`,key:`2786uv`}]]),ns=x(`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`}]]),rs=x(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),is=x(`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`}]]),as=x(`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`}]]),os=x(`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`}]]),ss=x(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),cs=x(`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`}]]),ls=x(`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`}]]),us=x(`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`}]]),ds=x(`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`}]]),fs=x(`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`}]]),ps=x(`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`}]]),ms=x(`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`}]]),hs=x(`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`}]]),gs=x(`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`}]]),_s=x(`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`}]]),vs=x(`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`}]]),ys=x(`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`}]]),bs=x(`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`}]]),xs=x(`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`}]]),Ss=x(`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`}]]),Cs=x(`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`}]]),ws=x(`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`}]]),Ts=x(`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`}]]),Es=x(`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`}]]),Ds=x(`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`}]]),Os=x(`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`}]]),ks=x(`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`}]]),As=x(`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`}]]),js=x(`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`}]]),Ms=x(`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`}]]),Ns=x(`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`}]]),Ps=x(`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`}]]),Fs=x(`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`}]]),Is=x(`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`}]]),Ls=x(`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`}]]),Rs=x(`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`}]]),zs=x(`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`}]]),Bs=x(`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`}]]),Vs=x(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),Hs=x(`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`}]]),Us=x(`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`}]]),Ws=x(`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`}]]),Gs=x(`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`}]]),Ks=x(`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`}]]),qs=x(`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`}]]),Js=x(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),Ys=x(`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`}]]),Xs=x(`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`}]]),Zs=x(`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`}]]),Qs=x(`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`}]]),$s=x(`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`}]]),ec=x(`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`}]]),tc=x(`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`}]]),nc=x(`battery`,[[`path`,{d:`M 22 14 L 22 10`,key:`nqc4tb`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),rc=x(`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`}]]),ic=x(`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`}]]),ac=x(`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`}]]),oc=x(`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`}]]),sc=x(`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`}]]),cc=x(`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`}]]),lc=x(`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`}]]),uc=x(`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`}]]),dc=x(`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`}]]),fc=x(`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`}]]),pc=x(`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`}]]),mc=x(`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`}]]),hc=x(`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`}]]),gc=x(`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`}]]),_c=x(`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`}]]),vc=x(`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`}]]),yc=x(`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`}]]),bc=x(`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`}]]),xc=x(`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`}]]),Sc=x(`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`}]]),Cc=x(`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`}]]),wc=x(`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`}]]),Tc=x(`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`}]]),Ec=x(`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`}]]),Dc=x(`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`}]]),Oc=x(`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`}]]),kc=x(`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`}]]),Ac=x(`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`}]]),jc=x(`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`}]]),Mc=x(`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`}]]),Nc=x(`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`}]]),Pc=x(`blend`,[[`circle`,{cx:`9`,cy:`9`,r:`7`,key:`p2h5vp`}],[`circle`,{cx:`15`,cy:`15`,r:`7`,key:`19ennj`}]]),Fc=x(`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`}]]),Ic=x(`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`}]]),Lc=x(`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`}]]),Rc=x(`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`}]]),zc=x(`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`}]]),Bc=x(`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`}]]),Vc=x(`bluetooth`,[[`path`,{d:`m7 7 10 10-5 5V2l5 5L7 17`,key:`1q5490`}]]),Hc=x(`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`}]]),Uc=x(`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`}]]),Wc=x(`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`}]]),Gc=x(`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`}]]),Kc=x(`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`}]]),qc=x(`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`}]]),Jc=x(`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`}]]),Yc=x(`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`}]]),Xc=x(`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`}]]),Zc=x(`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`}]]),Qc=x(`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`}]]),$c=x(`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`}]]),el=x(`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`}]]),tl=x(`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`}]]),nl=x(`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`}]]),rl=x(`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`}]]),il=x(`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`}]]),al=x(`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`}]]),ol=x(`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`}]]),sl=x(`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`}]]),cl=x(`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`}]]),ll=x(`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`}]]),ul=x(`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`}]]),dl=x(`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`}]]),fl=x(`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`}]]),pl=x(`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`}]]),ml=x(`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`}]]),hl=x(`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`}]]),gl=x(`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`}]]),_l=x(`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`}]]),vl=x(`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`}]]),yl=x(`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`}]]),bl=x(`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`}]]),xl=x(`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`}]]),Sl=x(`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`}]]),Cl=x(`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`}]]),wl=x(`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`}]]),Tl=x(`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`}]]),El=x(`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`}]]),Dl=x(`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`}]]),Ol=x(`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`}]]),kl=x(`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`}]]),Al=x(`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`}]]),jl=x(`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`}]]),Ml=x(`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`}]]),Nl=x(`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`}]]),Pl=x(`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`}]]),Fl=x(`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`}]]),Il=x(`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`}]]),Ll=x(`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`}]]),Rl=x(`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`}]]),zl=x(`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`}]]),Bl=x(`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`}]]),Vl=x(`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`}]]),Hl=x(`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`}]]),Ul=x(`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`}]]),Wl=x(`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`}]]),Gl=x(`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`}]]),Kl=x(`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`}]]),ql=x(`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`}]]),Jl=x(`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`}]]),Yl=x(`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`}]]),Xl=x(`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`}]]),Zl=x(`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`}]]),Ql=x(`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`}]]),$l=x(`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`}]]),eu=x(`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`}]]),tu=x(`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`}]]),nu=x(`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`}]]),ru=x(`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`}]]),iu=x(`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`}]]),au=x(`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`}]]),ou=x(`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`}]]),su=x(`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`}]]),cu=x(`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`}]]),lu=x(`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`}]]),uu=x(`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`}]]),du=x(`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`}]]),fu=x(`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`}]]),pu=x(`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`}]]),mu=x(`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`}]]),hu=x(`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`}]]),gu=x(`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`}]]),_u=x(`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`}]]),vu=x(`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`}]]),yu=x(`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`}]]),bu=x(`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`}]]),xu=x(`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`}]]),Su=x(`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`}]]),Cu=x(`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`}]]),wu=x(`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`}]]),Tu=x(`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`}]]),Eu=x(`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`}]]),Du=x(`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`}]]),Ou=x(`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`}]]),ku=x(`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`}]]),Au=x(`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`}]]),ju=x(`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`}]]),Mu=x(`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`}]]),Nu=x(`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`}]]),Pu=x(`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`}]]),Fu=x(`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`}]]),Iu=x(`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`}]]),Lu=x(`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`}]]),Ru=x(`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`}]]),zu=x(`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`}]]),Bu=x(`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`}]]),Vu=x(`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`}]]),Hu=x(`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`}]]),Uu=x(`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`}]]),Wu=x(`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`}]]),Gu=x(`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`}]]),Ku=x(`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`}]]),qu=x(`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`}]]),Ju=x(`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`}]]),Yu=x(`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`}]]),Xu=x(`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`}]]),Zu=x(`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`}]]),Qu=x(`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`}]]),$u=x(`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`}]]),ed=x(`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`}]]),td=x(`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`}]]),nd=x(`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`}]]),rd=x(`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`}]]),id=x(`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`}]]),ad=x(`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`}]]),od=x(`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`}]]),sd=x(`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`}]]),cd=x(`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`}]]),ld=x(`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`}]]),ud=x(`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`}]]),dd=x(`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`}]]),fd=x(`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`}]]),pd=x(`chart-no-axes-column-decreasing`,[[`path`,{d:`M5 21V3`,key:`clc1r8`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21v-6`,key:`tkawy9`}]]),md=x(`chart-no-axes-column-increasing`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V9`,key:`uvy0l4`}],[`path`,{d:`M19 21V3`,key:`11j9sm`}]]),hd=x(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),gd=x(`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`}]]),_d=x(`chart-no-axes-gantt`,[[`path`,{d:`M6 5h12`,key:`fvfigv`}],[`path`,{d:`M4 12h10`,key:`oujl3d`}],[`path`,{d:`M12 19h8`,key:`baeox8`}]]),vd=x(`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`}]]),yd=x(`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`}]]),bd=x(`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`}]]),xd=x(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Sd=x(`check-line`,[[`path`,{d:`M20 4L9 15`,key:`1qkx8z`}],[`path`,{d:`M21 19L3 19`,key:`100sma`}],[`path`,{d:`M9 15L4 10`,key:`9zxff7`}]]),Cd=x(`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`}]]),wd=x(`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`}]]),Td=x(`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`}]]),Ed=x(`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`}]]),Dd=x(`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`}]]),Od=x(`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`}]]),kd=x(`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`}]]),Ad=x(`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`}]]),jd=x(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Md=x(`chevron-first`,[[`path`,{d:`m17 18-6-6 6-6`,key:`1yerx2`}],[`path`,{d:`M7 6v12`,key:`1p53r6`}]]),Nd=x(`chevron-last`,[[`path`,{d:`m7 18 6-6-6-6`,key:`lwmzdw`}],[`path`,{d:`M17 6v12`,key:`1o0aio`}]]),Pd=x(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Fd=x(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Id=x(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Ld=x(`chevrons-down`,[[`path`,{d:`m7 6 5 5 5-5`,key:`1lc07p`}],[`path`,{d:`m7 13 5 5 5-5`,key:`1d48rs`}]]),Rd=x(`chevrons-left-right`,[[`path`,{d:`m9 7-5 5 5 5`,key:`j5w590`}],[`path`,{d:`m15 7 5 5-5 5`,key:`1bl6da`}]]),zd=x(`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`}]]),Bd=x(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),Vd=x(`chevrons-right-left`,[[`path`,{d:`m20 17-5-5 5-5`,key:`30x0n2`}],[`path`,{d:`m4 17 5-5-5-5`,key:`16spf4`}]]),Hd=x(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),Ud=x(`chevrons-up`,[[`path`,{d:`m17 11-5-5-5 5`,key:`e8nh98`}],[`path`,{d:`m17 18-5-5-5 5`,key:`2avn1x`}]]),Wd=x(`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`}]]),Gd=x(`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`}]]),Kd=x(`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`}]]),qd=x(`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`}]]),Jd=x(`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`}]]),Yd=x(`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`}]]),Xd=x(`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`}]]),Zd=x(`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`}]]),Qd=x(`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`}]]),$d=x(`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`}]]),ef=x(`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`}]]),tf=x(`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`}]]),nf=x(`circle-chevron-left`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14 16-4-4 4-4`,key:`ojs7w8`}]]),rf=x(`circle-chevron-down`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 10-4 4-4-4`,key:`894hmk`}]]),af=x(`circle-chevron-right`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m10 8 4 4-4 4`,key:`1wy4r4`}]]),of=x(`circle-chevron-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m8 14 4-4 4 4`,key:`fy2ptz`}]]),sf=x(`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`}]]),cf=x(`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`}]]),lf=x(`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`}]]),uf=x(`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`}]]),df=x(`circle-equal`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M7 10h10`,key:`1101jm`}],[`path`,{d:`M7 14h10`,key:`1mhdw3`}]]),ff=x(`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`}]]),pf=x(`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`}]]),mf=x(`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`}]]),hf=x(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),gf=x(`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`}]]),_f=x(`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`}]]),vf=x(`circle-parking`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),yf=x(`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`}]]),bf=x(`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`}]]),xf=x(`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`}]]),Sf=x(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),Cf=x(`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`}]]),wf=x(`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`}]]),Tf=x(`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`}]]),Ef=x(`circle-slash-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),Df=x(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),Of=x(`circle-small`,[[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}]]),kf=x(`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`}]]),Af=x(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),jf=x(`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`}]]),Mf=x(`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`}]]),Nf=x(`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`}]]),Pf=x(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ff=x(`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`}]]),If=x(`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`}]]),Lf=x(`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`}]]),Rf=x(`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`}]]),zf=x(`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`}]]),Bf=x(`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`}]]),Vf=x(`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`}]]),Hf=x(`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`}]]),Uf=x(`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`}]]),Wf=x(`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`}]]),Gf=x(`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`}]]),Kf=x(`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`}]]),qf=x(`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`}]]),Jf=x(`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`}]]),Yf=x(`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`}]]),Xf=x(`clock-1`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2-4`,key:`miptyd`}]]),Zf=x(`clock-10`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4-2`,key:`cedpoo`}]]),Qf=x(`clock-11`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2-4`,key:`ns39ag`}]]),$f=x(`clock-12`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6`,key:`1ipuwl`}]]),ep=x(`clock-2`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4-2`,key:`1r2kuh`}]]),tp=x(`clock-4`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),np=x(`clock-5`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l2 4`,key:`1287s9`}]]),rp=x(`clock-6`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v10`,key:`wf7rdh`}]]),ip=x(`clock-7`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-2 4`,key:`1095bu`}]]),ap=x(`clock-8`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l-4 2`,key:`imc3wl`}]]),op=x(`clock-9`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6H8`,key:`u39vzm`}]]),sp=x(`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`}]]),cp=x(`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`}]]),lp=x(`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`}]]),up=x(`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`}]]),dp=x(`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`}]]),fp=x(`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`}]]),pp=x(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),mp=x(`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`}]]),hp=x(`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`}]]),gp=x(`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`}]]),_p=x(`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`}]]),vp=x(`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`}]]),yp=x(`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`}]]),bp=x(`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`}]]),xp=x(`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`}]]),Sp=x(`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`}]]),Cp=x(`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`}]]),wp=x(`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`}]]),Tp=x(`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`}]]),Ep=x(`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`}]]),Dp=x(`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`}]]),Op=x(`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`}]]),kp=x(`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`}]]),Ap=x(`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`}]]),jp=x(`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`}]]),Mp=x(`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`}]]),Np=x(`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`}]]),Pp=x(`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`}]]),Fp=x(`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`}]]),Ip=x(`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`}]]),Lp=x(`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`}]]),Rp=x(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),zp=x(`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`}]]),Bp=x(`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`}]]),Vp=x(`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`}]]),Hp=x(`columns-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]]),Up=x(`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`}]]),Wp=x(`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`}]]),Gp=x(`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`}]]),Kp=x(`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`}]]),qp=x(`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`}]]),Jp=x(`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`}]]),Yp=x(`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`}]]),Xp=x(`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`}]]),Zp=x(`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`}]]),Qp=x(`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`}]]),$p=x(`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`}]]),em=x(`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`}]]),tm=x(`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`}]]),nm=x(`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`}]]),rm=x(`contrast`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 18a6 6 0 0 0 0-12v12z`,key:`j4l70d`}]]),im=x(`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`}]]),am=x(`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`}]]),om=x(`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`}]]),sm=x(`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`}]]),cm=x(`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`}]]),lm=x(`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`}]]),um=x(`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`}]]),dm=x(`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`}]]),fm=x(`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`}]]),pm=x(`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`}]]),mm=x(`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`}]]),hm=x(`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`}]]),gm=x(`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`}]]),_m=x(`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`}]]),vm=x(`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`}]]),ym=x(`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`}]]),bm=x(`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`}]]),xm=x(`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`}]]),Sm=x(`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`}]]),Cm=x(`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`}]]),wm=x(`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`}]]),Tm=x(`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`}]]),Em=x(`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`}]]),Dm=x(`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`}]]),Om=x(`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`}]]),km=x(`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`}]]),Am=x(`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`}]]),jm=x(`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`}]]),Mm=x(`cylinder`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5v14a9 3 0 0 0 18 0V5`,key:`aqi0yr`}]]),Nm=x(`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`}]]),Pm=x(`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`}]]),Fm=x(`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`}]]),Im=x(`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`}]]),Lm=x(`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`}]]),Rm=x(`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`}]]),zm=x(`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`}]]),Bm=x(`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`}]]),Vm=x(`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`}]]),Hm=x(`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`}]]),Um=x(`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`}]]),Wm=x(`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`}]]),Gm=x(`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`}]]),Km=x(`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`}]]),qm=x(`dice-1`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}]]),Jm=x(`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`}]]),Ym=x(`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`}]]),Xm=x(`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`}]]),Zm=x(`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`}]]),Qm=x(`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`}]]),$m=x(`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`}]]),eh=x(`diff`,[[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 10h14`,key:`elsbfy`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),th=x(`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`}]]),nh=x(`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`}]]),rh=x(`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`}]]),ih=x(`disc`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),ah=x(`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`}]]),oh=x(`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`}]]),sh=x(`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`}]]),ch=x(`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`}]]),lh=x(`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`}]]),uh=x(`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`}]]),dh=x(`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`}]]),fh=x(`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`}]]),ph=x(`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`}]]),mh=x(`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`}]]),hh=x(`dot`,[[`circle`,{cx:`12.1`,cy:`12.1`,r:`1`,key:`18d7e5`}]]),gh=x(`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`}]]),_h=x(`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`}]]),vh=x(`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`}]]),yh=x(`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`}]]),bh=x(`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`}]]),xh=x(`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`}]]),Sh=x(`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`}]]),Ch=x(`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`}]]),wh=x(`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`}]]),Th=x(`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`}]]),Eh=x(`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`}]]),Dh=x(`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`}]]),Oh=x(`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`}]]),kh=x(`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`}]]),Ah=x(`eclipse`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a7 7 0 1 0 10 10`,key:`1yuj32`}]]),ite=x(`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`}]]),jh=x(`egg`,[[`path`,{d:`M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12`,key:`1le142`}]]),Mh=x(`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`}]]),Nh=x(`ellipse`,[[`ellipse`,{cx:`12`,cy:`12`,rx:`10`,ry:`6`,key:`swdkt4`}]]),Ph=x(`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`}]]),Fh=x(`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`}]]),Ih=x(`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`}]]),Lh=x(`equal`,[[`line`,{x1:`5`,x2:`19`,y1:`9`,y2:`9`,key:`1nwqeh`}],[`line`,{x1:`5`,x2:`19`,y1:`15`,y2:`15`,key:`g8yjpy`}]]),Rh=x(`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`}]]),zh=x(`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`}]]),Bh=x(`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`}]]),Vh=x(`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`}]]),Hh=x(`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`}]]),Uh=x(`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`}]]),Wh=x(`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`}]]),Gh=x(`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`}]]),Kh=x(`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`}]]),qh=x(`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`}]]),Jh=x(`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`}]]),Yh=x(`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`}]]),Xh=x(`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`}]]),Zh=x(`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`}]]),Qh=x(`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`}]]),$h=x(`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`}]]),eg=x(`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`}]]),tg=x(`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`}]]),ng=x(`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`}]]),rg=x(`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`}]]),ig=x(`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`}]]),ag=x(`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`}]]),og=x(`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`}]]),sg=x(`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`}]]),cg=x(`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`}]]),lg=x(`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`}]]),ug=x(`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`}]]),dg=x(`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`}]]),fg=x(`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`}]]),pg=x(`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`}]]),mg=x(`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`}]]),hg=x(`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`}]]),gg=x(`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`}]]),_g=x(`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`}]]),vg=x(`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`}]]),yg=x(`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`}]]),bg=x(`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`}]]),xg=x(`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`}]]),Sg=x(`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`}]]),Cg=x(`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`}]]),wg=x(`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`}]]),Tg=x(`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`}]]),Eg=x(`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`}]]),Dg=x(`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`}]]),Og=x(`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`}]]),kg=x(`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`}]]),Ag=x(`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`}]]),jg=x(`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`}]]),Mg=x(`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`}]]),Ng=x(`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`}]]),Pg=x(`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`}]]),Fg=x(`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`}]]),Ig=x(`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`}]]),Lg=x(`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`}]]),Rg=x(`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`}]]),zg=x(`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`}]]),Bg=x(`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`}]]),Vg=x(`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`}]]),Hg=x(`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`}]]),Ug=x(`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`}]]),Wg=x(`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`}]]),Gg=x(`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`}]]),Kg=x(`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`}]]),qg=x(`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`}]]),Jg=x(`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`}]]),Yg=x(`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`}]]),Xg=x(`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`}]]),Zg=x(`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`}]]),Qg=x(`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`}]]),$g=x(`fish-symbol`,[[`path`,{d:`M2 16s9-15 20-4C11 23 2 8 2 8`,key:`h4oh4o`}]]),e_=x(`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`}]]),t_=x(`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`}]]),n_=x(`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`}]]),r_=x(`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`}]]),i_=x(`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`}]]),a_=x(`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`}]]),o_=x(`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`}]]),s_=x(`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`}]]),c_=x(`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`}]]),l_=x(`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`}]]),u_=x(`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`}]]),d_=x(`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`}]]),f_=x(`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`}]]),p_=x(`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`}]]),m_=x(`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`}]]),h_=x(`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`}]]),g_=x(`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`}]]),__=x(`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`}]]),v_=x(`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`}]]),y_=x(`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`}]]),b_=x(`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`}]]),x_=x(`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`}]]),S_=x(`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`}]]),C_=x(`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`}]]),w_=x(`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`}]]),T_=x(`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`}]]),E_=x(`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`}]]),D_=x(`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`}]]),O_=x(`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`}]]),k_=x(`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`}]]),A_=x(`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`}]]),j_=x(`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`}]]),M_=x(`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`}]]),N_=x(`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`}]]),P_=x(`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`}]]),F_=x(`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`}]]),I_=x(`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`}]]),L_=x(`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`}]]),ate=x(`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`}]]),ote=x(`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`}]]),ste=x(`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`}]]),cte=x(`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`}]]),R_=x(`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`}]]),lte=x(`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`}]]),ute=x(`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`}]]),dte=x(`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`}]]),fte=x(`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`}]]),pte=x(`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`}]]),mte=x(`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`}]]),z_=x(`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`}]]),hte=x(`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`}]]),gte=x(`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`}]]),_te=x(`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`}]]),vte=x(`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`}]]),yte=x(`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`}]]),bte=x(`forward`,[[`path`,{d:`m15 17 5-5-5-5`,key:`nf172w`}],[`path`,{d:`M4 18v-2a4 4 0 0 1 4-4h12`,key:`jmiej9`}]]),xte=x(`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`}]]),Ste=x(`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`}]]),Cte=x(`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`}]]),wte=x(`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`}]]),Tte=x(`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`}]]),Ete=x(`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`}]]),Dte=x(`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`}]]),Ote=x(`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`}]]),kte=x(`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`}]]),Ate=x(`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`}]]),jte=x(`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`}]]),Mte=x(`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`}]]),Nte=x(`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`}]]),Pte=x(`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`}]]),Fte=x(`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`}]]),B_=x(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),Ite=x(`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`}]]),Lte=x(`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`}]]),Rte=x(`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`}]]),zte=x(`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`}]]),Bte=x(`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`}]]),Vte=x(`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`}]]),Hte=x(`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`}]]),V_=x(`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`}]]),Ute=x(`git-commit-vertical`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 15v6`,key:`a9ows0`}]]),Wte=x(`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`}]]),Gte=x(`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`}]]),H_=x(`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`}]]),Kte=x(`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`}]]),qte=x(`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`}]]),Jte=x(`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`}]]),Yte=x(`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`}]]),Xte=x(`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`}]]),Zte=x(`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`}]]),Qte=x(`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`}]]),$te=x(`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`}]]),ene=x(`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`}]]),tne=x(`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`}]]),nne=x(`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`}]]),rne=x(`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`}]]),ine=x(`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`}]]),ane=x(`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`}]]),one=x(`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`}]]),sne=x(`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`}]]),cne=x(`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`}]]),lne=x(`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`}]]),une=x(`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`}]]),dne=x(`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`}]]),fne=x(`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`}]]),pne=x(`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`}]]),mne=x(`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`}]]),hne=x(`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`}]]),gne=x(`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`}]]),_ne=x(`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`}]]),vne=x(`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`}]]),U_=x(`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`}]]),yne=x(`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`}]]),bne=x(`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`}]]),xne=x(`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`}]]),Sne=x(`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`}]]),Cne=x(`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`}]]),wne=x(`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`}]]),Tne=x(`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`}]]),Ene=x(`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`}]]),Dne=x(`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`}]]),One=x(`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`}]]),kne=x(`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`}]]),Ane=x(`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`}]]),jne=x(`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`}]]),Mne=x(`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`}]]),Nne=x(`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`}]]),W_=x(`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`}]]),Pne=x(`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`}]]),Fne=x(`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`}]]),Ine=x(`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`}]]),Lne=x(`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`}]]),Rne=x(`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`}]]),zne=x(`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`}]]),Bne=x(`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`}]]),Vne=x(`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`}]]),G_=x(`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`}]]),K_=x(`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`}]]),Hne=x(`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`}]]),q_=x(`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`}]]),Une=x(`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`}]]),Wne=x(`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`}]]),Gne=x(`heading`,[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]),Kne=x(`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`}]]),qne=x(`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`}]]),Jne=x(`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`}]]),Yne=x(`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`}]]),Xne=x(`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`}]]),Zne=x(`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`}]]),Qne=x(`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`}]]),$ne=x(`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`}]]),ere=x(`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`}]]),tre=x(`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`}]]),J_=x(`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`}]]),nre=x(`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`}]]),Y_=x(`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`}]]),rre=x(`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`}]]),ire=x(`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`}]]),X_=x(`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`}]]),are=x(`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`}]]),ore=x(`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`}]]),sre=x(`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`}]]),cre=x(`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`}]]),Z_=x(`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`}]]),lre=x(`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`}]]),ure=x(`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`}]]),dre=x(`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`}]]),fre=x(`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`}]]),pre=x(`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`}]]),Q_=x(`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`}]]),mre=x(`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`}]]),hre=x(`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`}]]),gre=x(`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`}]]),_re=x(`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`}]]),vre=x(`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`}]]),yre=x(`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`}]]),$_=x(`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`}]]),bre=x(`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`}]]),xre=x(`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`}]]),ev=x(`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`}]]),Sre=x(`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`}]]),Cre=x(`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`}]]),tv=x(`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`}]]),wre=x(`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`}]]),Tre=x(`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`}]]),nv=x(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Ere=x(`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`}]]),rv=x(`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`}]]),Dre=x(`iteration-ccw`,[[`path`,{d:`m16 14 4 4-4 4`,key:`hkso8o`}],[`path`,{d:`M20 10a8 8 0 1 0-8 8h8`,key:`1bik7b`}]]),Ore=x(`iteration-cw`,[[`path`,{d:`M4 10a8 8 0 1 1 8 8H4`,key:`svv66n`}],[`path`,{d:`m8 22-4-4 4-4`,key:`6g7gki`}]]),kre=x(`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`}]]),Are=x(`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`}]]),jre=x(`kanban`,[[`path`,{d:`M5 3v14`,key:`9nsxs2`}],[`path`,{d:`M12 3v8`,key:`1h2ygw`}],[`path`,{d:`M19 3v18`,key:`1sk56x`}]]),iv=x(`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`}]]),Mre=x(`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`}]]),Nre=x(`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`}]]),Pre=x(`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`}]]),Fre=x(`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`}]]),Ire=x(`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`}]]),Lre=x(`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`}]]),av=x(`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`}]]),Rre=x(`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`}]]),zre=x(`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`}]]),Bre=x(`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`}]]),Vre=x(`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`}]]),Hre=x(`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`}]]),Ure=x(`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`}]]),Wre=x(`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`}]]),ov=x(`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`}]]),Gre=x(`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`}]]),sv=x(`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`}]]),Kre=x(`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`}]]),qre=x(`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`}]]),Jre=x(`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`}]]),Yre=x(`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`}]]),Xre=x(`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`}]]),Zre=x(`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`}]]),Qre=x(`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`}]]),cv=x(`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`}]]),lv=x(`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`}]]),uv=x(`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`}]]),$re=x(`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`}]]),dv=x(`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`}]]),eie=x(`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`}]]),fv=x(`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`}]]),tie=x(`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`}]]),nie=x(`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`}]]),rie=x(`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`}]]),iie=x(`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`}]]),aie=x(`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`}]]),pv=x(`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`}]]),oie=x(`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`}]]),sie=x(`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`}]]),cie=x(`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`}]]),lie=x(`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`}]]),mv=x(`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`}]]),uie=x(`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`}]]),die=x(`line-dot-right-horizontal`,[[`path`,{d:`M 3 12 L 15 12`,key:`ymhu98`}],[`circle`,{cx:`18`,cy:`12`,r:`3`,key:`1kchzo`}]]),fie=x(`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`}]]),pie=x(`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`}]]),mie=x(`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`}]]),hv=x(`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`}]]),gv=x(`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`}]]),hie=x(`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`}]]),gie=x(`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`}]]),_ie=x(`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`}]]),vie=x(`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`}]]),yie=x(`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`}]]),_v=x(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),bie=x(`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`}]]),xie=x(`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`}]]),Sie=x(`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`}]]),Cie=x(`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`}]]),vv=x(`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`}]]),yv=x(`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`}]]),wie=x(`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`}]]),Tie=x(`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`}]]),bv=x(`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`}]]),xv=x(`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`}]]),Eie=x(`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`}]]),Die=x(`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`}]]),Sv=x(`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`}]]),Oie=x(`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`}]]),kie=x(`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`}]]),Aie=x(`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`}]]),jie=x(`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`}]]),Mie=x(`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`}]]),Nie=x(`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`}]]),Cv=x(`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`}]]),Pie=x(`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`}]]),Fie=x(`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`}]]),wv=x(`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`}]]),Iie=x(`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`}]]),Lie=x(`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`}]]),Rie=x(`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`}]]),zie=x(`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`}]]),Bie=x(`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`}]]),Vie=x(`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`}]]),Hie=x(`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`}]]),Uie=x(`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`}]]),Wie=x(`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`}]]),Gie=x(`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`}]]),Kie=x(`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`}]]),qie=x(`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`}]]),Jie=x(`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`}]]),Tv=x(`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`}]]),Yie=x(`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`}]]),Xie=x(`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`}]]),Zie=x(`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`}]]),Qie=x(`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`}]]),$ie=x(`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`}]]),eae=x(`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`}]]),tae=x(`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`}]]),nae=x(`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`}]]),rae=x(`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`}]]),iae=x(`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`}]]),aae=x(`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`}]]),oae=x(`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`}]]),sae=x(`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`}]]),cae=x(`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`}]]),lae=x(`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`}]]),Ev=x(`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`}]]),uae=x(`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`}]]),dae=x(`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`}]]),fae=x(`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`}]]),pae=x(`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`}]]),mae=x(`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`}]]),hae=x(`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`}]]),gae=x(`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`}]]),_ae=x(`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`}]]),vae=x(`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`}]]),yae=x(`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`}]]),bae=x(`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`}]]),xae=x(`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`}]]),Dv=x(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Sae=x(`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`}]]),Cae=x(`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`}]]),wae=x(`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`}]]),Tae=x(`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`}]]),Eae=x(`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`}]]),Ov=x(`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`}]]),Dae=x(`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`}]]),Oae=x(`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`}]]),kae=x(`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`}]]),Aae=x(`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`}]]),jae=x(`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`}]]),Mae=x(`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`}]]),kv=x(`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`}]]),Nae=x(`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`}]]),Av=x(`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`}]]),Pae=x(`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`}]]),Fae=x(`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`}]]),Iae=x(`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`}]]),Lae=x(`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`}]]),Rae=x(`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`}]]),zae=x(`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`}]]),Bae=x(`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`}]]),Vae=x(`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`}]]),Hae=x(`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`}]]),jv=x(`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`}]]),Mv=x(`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`}]]),Nv=x(`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`}]]),Uae=x(`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`}]]),Pv=x(`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`}]]),Wae=x(`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`}]]),Fv=x(`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`}]]),Gae=x(`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`}]]),Kae=x(`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`}]]),qae=x(`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`}]]),Jae=x(`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`}]]),Yae=x(`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`}]]),Xae=x(`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`}]]),Zae=x(`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`}]]),Qae=x(`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`}]]),$ae=x(`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`}]]),eoe=x(`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`}]]),toe=x(`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`}]]),noe=x(`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`}]]),roe=x(`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`}]]),ioe=x(`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`}]]),aoe=x(`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`}]]),ooe=x(`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`}]]),soe=x(`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=x(`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`}]]),Lv=x(`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`}]]),coe=x(`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`}]]),loe=x(`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`}]]),Rv=x(`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`}]]),uoe=x(`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`}]]),doe=x(`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`}]]),zv=x(`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`}]]),foe=x(`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`}]]),poe=x(`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`}]]),moe=x(`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`}]]),hoe=x(`mountain`,[[`path`,{d:`m8 3 4 8 5-5 5 15H2L8 3z`,key:`otkl63`}]]),goe=x(`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`}]]),_oe=x(`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`}]]),Bv=x(`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`}]]),voe=x(`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`}]]),yoe=x(`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`}]]),Vv=x(`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`}]]),boe=x(`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`}]]),xoe=x(`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`}]]),Hv=x(`mouse`,[[`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`7`,key:`11ol66`}],[`path`,{d:`M12 6v4`,key:`16clxf`}]]),Uv=x(`move-diagonal-2`,[[`path`,{d:`M19 13v6h-6`,key:`1hxl6d`}],[`path`,{d:`M5 11V5h6`,key:`12e2xe`}],[`path`,{d:`m5 5 14 14`,key:`11anup`}]]),Wv=x(`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`}]]),Gv=x(`move-diagonal`,[[`path`,{d:`M11 19H5v-6`,key:`8awifj`}],[`path`,{d:`M13 5h6v6`,key:`7voy1q`}],[`path`,{d:`M19 5 5 19`,key:`wwaj1z`}]]),Kv=x(`move-down-left`,[[`path`,{d:`M11 19H5V13`,key:`1akmht`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),qv=x(`move-down-right`,[[`path`,{d:`M19 13V19H13`,key:`10vkzq`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),Jv=x(`move-down`,[[`path`,{d:`M8 18L12 22L16 18`,key:`cskvfv`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),Yv=x(`move-left`,[[`path`,{d:`M6 8L2 12L6 16`,key:`kyvwex`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),Xv=x(`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`}]]),Zv=x(`move-right`,[[`path`,{d:`M18 8L22 12L18 16`,key:`1r0oui`}],[`path`,{d:`M2 12H22`,key:`1m8cig`}]]),Qv=x(`move-up-left`,[[`path`,{d:`M5 11V5H11`,key:`3q78g9`}],[`path`,{d:`M5 5L19 19`,key:`5zm2fv`}]]),$v=x(`move-up-right`,[[`path`,{d:`M13 5H19V11`,key:`1n1gyv`}],[`path`,{d:`M19 5L5 19`,key:`72u4yj`}]]),ey=x(`move-up`,[[`path`,{d:`M8 6L12 2L16 6`,key:`1yvkyx`}],[`path`,{d:`M12 2V22`,key:`r89rzk`}]]),ty=x(`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`}]]),ny=x(`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`}]]),ry=x(`music-2`,[[`circle`,{cx:`8`,cy:`18`,r:`4`,key:`1fc0mg`}],[`path`,{d:`M12 18V2l7 4`,key:`g04rme`}]]),iy=x(`music-3`,[[`circle`,{cx:`12`,cy:`18`,r:`4`,key:`m3r9ws`}],[`path`,{d:`M16 18V2`,key:`40x2m5`}]]),ay=x(`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`}]]),oy=x(`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`}]]),sy=x(`navigation-2`,[[`polygon`,{points:`12 2 19 21 12 17 5 21 12 2`,key:`x8c0qg`}]]),cy=x(`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`}]]),ly=x(`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`}]]),uy=x(`navigation`,[[`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`,key:`1ltx0t`}]]),dy=x(`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`}]]),fy=x(`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`}]]),py=x(`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`}]]),my=x(`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`}]]),hy=x(`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`}]]),gy=x(`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`}]]),_y=x(`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`}]]),vy=x(`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`}]]),yy=x(`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`}]]),by=x(`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`}]]),xy=x(`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`}]]),Sy=x(`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`}]]),Cy=x(`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`}]]),wy=x(`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`}]]),Ty=x(`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`}]]),Ey=x(`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`}]]),Dy=x(`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`}]]),Oy=x(`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`}]]),ky=x(`option`,[[`path`,{d:`M3 3h6l6 18h6`,key:`ph9rgk`}],[`path`,{d:`M14 3h7`,key:`16f0ms`}]]),Ay=x(`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`}]]),jy=x(`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`}]]),My=x(`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`}]]),Ny=x(`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`}]]),Py=x(`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`}]]),Fy=x(`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`}]]),Iy=x(`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`}]]),Ly=x(`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`}]]),Ry=x(`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`}]]),zy=x(`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`}]]),By=x(`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`}]]),Vy=x(`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`}]]),Hy=x(`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`}]]),Uy=x(`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`}]]),Wy=x(`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`}]]),Gy=x(`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`}]]),Ky=x(`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`}]]),qy=x(`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`}]]),Jy=x(`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`}]]),Yy=x(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Xy=x(`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`}]]),Zy=x(`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`}]]),Qy=x(`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`}]]),$y=x(`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`}]]),eb=x(`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`}]]),tb=x(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),nb=x(`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`}]]),rb=x(`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`}]]),ib=x(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),ab=x(`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`}]]),ob=x(`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`}]]),sb=x(`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`}]]),cb=x(`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`}]]),lb=x(`panel-top`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),ub=x(`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`}]]),db=x(`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`}]]),fb=x(`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`}]]),pb=x(`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`}]]),mb=x(`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`}]]),hb=x(`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`}]]),gb=x(`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`}]]),_b=x(`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`}]]),vb=x(`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`}]]),yb=x(`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`}]]),bb=x(`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`}]]),xb=x(`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`}]]),Sb=x(`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`}]]),Cb=x(`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`}]]),wb=x(`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`}]]),Tb=x(`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`}]]),Eb=x(`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`}]]),Db=x(`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`}]]),Ob=x(`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`}]]),kb=x(`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`}]]),Ab=x(`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`}]]),jb=x(`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`}]]),Mb=x(`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`}]]),Nb=x(`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`}]]),Pb=x(`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`}]]),Fb=x(`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`}]]),Ib=x(`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`}]]),Lb=x(`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`}]]),Rb=x(`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`}]]),zb=x(`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`}]]),Bb=x(`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`}]]),Vb=x(`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`}]]),Hb=x(`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`}]]),Ub=x(`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`}]]),Wb=x(`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`}]]),Gb=x(`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`}]]),Kb=x(`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`}]]),qb=x(`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`}]]),Jb=x(`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`}]]),Yb=x(`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`}]]),Xb=x(`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`}]]),Zb=x(`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`}]]),Qb=x(`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`}]]),$b=x(`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`}]]),ex=x(`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`}]]),tx=x(`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`}]]),nx=x(`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`}]]),rx=x(`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`}]]),ix=x(`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`}]]),ax=x(`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`}]]),ox=x(`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`}]]),sx=x(`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`}]]),cx=x(`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`}]]),lx=x(`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`}]]),ux=x(`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`}]]),dx=x(`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`}]]),fx=x(`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`}]]),px=x(`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`}]]),mx=x(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),hx=x(`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`}]]),gx=x(`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`}]]),_x=x(`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`}]]),vx=x(`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`}]]),yx=x(`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`}]]),bx=x(`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`}]]),xx=x(`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`}]]),Sx=x(`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`}]]),Cx=x(`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`}]]),wx=x(`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`}]]),Tx=x(`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`}]]),Ex=x(`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`}]]),Dx=x(`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`}]]),Ox=x(`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`}]]),kx=x(`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`}]]),Ax=x(`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`}]]),jx=x(`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`}]]),Mx=x(`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`}]]),Nx=x(`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`}]]),Px=x(`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`}]]),Fx=x(`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`}]]),Ix=x(`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`}]]),Lx=x(`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`}]]),Rx=x(`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`}]]),zx=x(`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`}]]),Bx=x(`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`}]]),Vx=x(`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`}]]),Hx=x(`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`}]]),Ux=x(`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`}]]),Wx=x(`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`}]]),Gx=x(`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`}]]),Kx=x(`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`}]]),qx=x(`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`}]]),Jx=x(`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`}]]),Yx=x(`rectangle-horizontal`,[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}]]),Xx=x(`rectangle-vertical`,[[`rect`,{width:`12`,height:`20`,x:`6`,y:`2`,rx:`2`,key:`1oxtiu`}]]),Zx=x(`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`}]]),Qx=x(`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`}]]),$x=x(`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`}]]),eS=x(`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`}]]),tS=x(`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`}]]),nS=x(`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`}]]),rS=x(`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`}]]),iS=x(`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`}]]),aS=x(`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`}]]),oS=x(`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`}]]),sS=x(`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`}]]),cS=x(`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`}]]),lS=x(`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`}]]),uS=x(`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`}]]),dS=x(`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`}]]),fS=x(`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`}]]),pS=x(`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`}]]),mS=x(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),hS=x(`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`}]]),gS=x(`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`}]]),_S=x(`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`}]]),vS=x(`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`}]]),yS=x(`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`}]]),bS=x(`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`}]]),xS=x(`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`}]]),SS=x(`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`}]]),CS=x(`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`}]]),wS=x(`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`}]]),TS=x(`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`}]]),ES=x(`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`}]]),DS=x(`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`}]]),OS=x(`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`}]]),kS=x(`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`}]]),AS=x(`rows-2`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]]),jS=x(`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`}]]),MS=x(`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`}]]),NS=x(`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`}]]),PS=x(`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`}]]),FS=x(`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`}]]),IS=x(`russian-ruble`,[[`path`,{d:`M6 11h8a4 4 0 0 0 0-8H9v18`,key:`18ai8t`}],[`path`,{d:`M6 15h8`,key:`1y8f6l`}]]),LS=x(`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`}]]),RS=x(`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`}]]),zS=x(`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`}]]),BS=x(`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`}]]),VS=x(`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`}]]),HS=x(`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`}]]),US=x(`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`}]]),WS=x(`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`}]]),GS=x(`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`}]]),KS=x(`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`}]]),qS=x(`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`}]]),JS=x(`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`}]]),YS=x(`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`}]]),XS=x(`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`}]]),ZS=x(`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`}]]),QS=x(`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`}]]),$S=x(`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`}]]),eC=x(`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`}]]),tC=x(`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`}]]),nC=x(`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`}]]),rC=x(`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`}]]),iC=x(`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`}]]),aC=x(`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`}]]),oC=x(`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`}]]),sC=x(`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`}]]),cC=x(`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`}]]),lC=x(`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`}]]),uC=x(`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`}]]),dC=x(`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`}]]),fC=x(`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`}]]),pC=x(`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`}]]),mC=x(`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`}]]),hC=x(`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`}]]),gC=x(`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`}]]),_C=x(`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`}]]),vC=x(`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`}]]),yC=x(`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`}]]),bC=x(`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`}]]),xC=x(`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`}]]),SC=x(`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`}]]),CC=x(`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`}]]),wC=x(`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`}]]),TC=x(`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`}]]),EC=x(`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`}]]),DC=x(`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`}]]),OC=x(`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`}]]),kC=x(`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`}]]),AC=x(`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`}]]),jC=x(`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`}]]),MC=x(`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`}]]),NC=x(`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`}]]),PC=x(`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`}]]),FC=x(`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`}]]),IC=x(`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`}]]),LC=x(`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`}]]),RC=x(`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`}]]),zC=x(`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`}]]),BC=x(`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`}]]),VC=x(`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`}]]),HC=x(`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`}]]),UC=x(`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`}]]),WC=x(`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`}]]),GC=x(`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`}]]),KC=x(`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`}]]),qC=x(`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`}]]),JC=x(`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`}]]),YC=x(`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`}]]),XC=x(`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`}]]),ZC=x(`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`}]]),QC=x(`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`}]]),$C=x(`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`}]]),ew=x(`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`}]]),tw=x(`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`}]]),nw=x(`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`}]]),rw=x(`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`}]]),iw=x(`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`}]]),aw=x(`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`}]]),ow=x(`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`}]]),sw=x(`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`}]]),cw=x(`signal-low`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}]]),lw=x(`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`}]]),uw=x(`signal-medium`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}],[`path`,{d:`M7 20v-4`,key:`j294jx`}],[`path`,{d:`M12 20v-8`,key:`i3yub9`}]]),dw=x(`signal-zero`,[[`path`,{d:`M2 20h.01`,key:`4haj6o`}]]),fw=x(`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`}]]),pw=x(`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`}]]),mw=x(`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`}]]),hw=x(`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`}]]),gw=x(`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`}]]),_w=x(`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`}]]),vw=x(`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`}]]),yw=x(`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`}]]),bw=x(`slash`,[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]),xw=x(`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`}]]),Sw=x(`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`}]]),Cw=x(`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`}]]),ww=x(`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`}]]),Tw=x(`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`}]]),Ew=x(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),Dw=x(`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`}]]),Ow=x(`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`}]]),kw=x(`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`}]]),Aw=x(`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`}]]),jw=x(`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`}]]),Mw=x(`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`}]]),Nw=x(`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`}]]),Pw=x(`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`}]]),Fw=x(`space`,[[`path`,{d:`M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1`,key:`lt2kga`}]]),Iw=x(`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`}]]),Lw=x(`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`}]]),Rw=x(`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`}]]),zw=x(`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`}]]),Bw=x(`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`}]]),Vw=x(`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`}]]),Hw=x(`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`}]]),Uw=x(`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`}]]),Ww=x(`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`}]]),Gw=x(`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`}]]),Kw=x(`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`}]]),qw=x(`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`}]]),Jw=x(`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`}]]),Yw=x(`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`}]]),Xw=x(`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`}]]),Zw=x(`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`}]]),Qw=x(`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`}]]),$w=x(`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`}]]),eT=x(`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`}]]),tT=x(`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`}]]),nT=x(`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`}]]),rT=x(`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`}]]),iT=x(`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`}]]),aT=x(`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`}]]),oT=x(`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`}]]),sT=x(`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`}]]),cT=x(`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`}]]),lT=x(`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`}]]),uT=x(`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`}]]),dT=x(`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`}]]),fT=x(`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`}]]),pT=x(`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`}]]),mT=x(`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`}]]),hT=x(`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`}]]),gT=x(`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`}]]),_T=x(`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`}]]),vT=x(`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`}]]),yT=x(`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`}]]),bT=x(`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`}]]),xT=x(`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`}]]),ST=x(`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`}]]),CT=x(`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`}]]),wT=x(`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`}]]),TT=x(`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`}]]),ET=x(`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`}]]),DT=x(`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`}]]),OT=x(`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`}]]),kT=x(`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`}]]),AT=x(`square-dot`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),jT=x(`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`}]]),MT=x(`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`}]]),NT=x(`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`}]]),PT=x(`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`}]]),FT=x(`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`}]]),IT=x(`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`}]]),LT=x(`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`}]]),RT=x(`square-minus`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),zT=x(`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`}]]),BT=x(`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`}]]),VT=x(`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`}]]),HT=x(`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`}]]),UT=x(`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`}]]),WT=x(`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`}]]),GT=x(`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`}]]),KT=x(`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`}]]),qT=x(`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`}]]),JT=x(`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`}]]),YT=x(`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`}]]),XT=x(`square-radical`,[[`path`,{d:`M7 12h2l2 5 2-10h4`,key:`1fxv6h`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),ZT=x(`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`}]]),QT=x(`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`}]]),$T=x(`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`}]]),eE=x(`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`}]]),tE=x(`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`}]]),nE=x(`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`}]]),rE=x(`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`}]]),iE=x(`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`}]]),aE=x(`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`}]]),oE=x(`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`}]]),sE=x(`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`}]]),cE=x(`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`}]]),lE=x(`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`}]]),uE=x(`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`}]]),dE=x(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),fE=x(`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`}]]),pE=x(`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`}]]),mE=x(`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`}]]),hE=x(`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`}]]),gE=x(`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`}]]),_E=x(`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`}]]),vE=x(`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`}]]),yE=x(`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`}]]),bE=x(`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`}]]),xE=x(`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`}]]),SE=x(`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`}]]),CE=x(`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`}]]),wE=x(`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`}]]),TE=x(`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`}]]),EE=x(`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`}]]),DE=x(`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`}]]),OE=x(`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`}]]),kE=x(`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`}]]),AE=x(`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`}]]),jE=x(`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`}]]),ME=x(`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`}]]),NE=x(`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`}]]),PE=x(`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`}]]),FE=x(`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`}]]),IE=x(`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`}]]),LE=x(`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`}]]),RE=x(`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`}]]),zE=x(`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`}]]),BE=x(`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`}]]),VE=x(`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`}]]),HE=x(`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`}]]),UE=x(`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`}]]),WE=x(`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`}]]),GE=x(`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`}]]),KE=x(`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`}]]),qE=x(`swiss-franc`,[[`path`,{d:`M10 21V3h8`,key:`br2l0g`}],[`path`,{d:`M6 16h9`,key:`2py0wn`}],[`path`,{d:`M10 9.5h7`,key:`13dmhz`}]]),JE=x(`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`}]]),YE=x(`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`}]]),XE=x(`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`}]]),ZE=x(`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`}]]),QE=x(`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`}]]),$E=x(`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`}]]),eD=x(`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`}]]),tD=x(`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`}]]),nD=x(`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`}]]),rD=x(`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`}]]),iD=x(`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`}]]),aD=x(`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`}]]),oD=x(`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`}]]),sD=x(`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`}]]),cD=x(`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`}]]),lD=x(`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`}]]),uD=x(`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`}]]),dD=x(`tally-1`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),fD=x(`tally-2`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}]]),pD=x(`tally-3`,[[`path`,{d:`M4 4v16`,key:`6qkkli`}],[`path`,{d:`M9 4v16`,key:`81ygyz`}],[`path`,{d:`M14 4v16`,key:`12vmem`}]]),mD=x(`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`}]]),hD=x(`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`}]]),gD=x(`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`}]]),_D=x(`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`}]]),vD=x(`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`}]]),yD=x(`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`}]]),bD=x(`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`}]]),xD=x(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),SD=x(`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`}]]),CD=x(`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`}]]),wD=x(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),TD=x(`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`}]]),ED=x(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),DD=x(`text-align-justify`,[[`path`,{d:`M3 5h18`,key:`1u36vt`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}]]),OD=x(`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`}]]),kD=x(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),AD=x(`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`}]]),jD=x(`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`}]]),MD=x(`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`}]]),ND=x(`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`}]]),PD=x(`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`}]]),FD=x(`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`}]]),ID=x(`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`}]]),LD=x(`thermometer`,[[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),RD=x(`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`}]]),zD=x(`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`}]]),BD=x(`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`}]]),VD=x(`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`}]]),HD=x(`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`}]]),UD=x(`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`}]]),WD=x(`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`}]]),GD=x(`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`}]]),KD=x(`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`}]]),qD=x(`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`}]]),JD=x(`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`}]]),YD=x(`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`}]]),XD=x(`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`}]]),ZD=x(`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`}]]),QD=x(`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`}]]),$D=x(`toggle-left`,[[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),eO=x(`toggle-right`,[[`circle`,{cx:`15`,cy:`12`,r:`3`,key:`1afu0r`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),tO=x(`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`}]]),nO=x(`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`}]]),rO=x(`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`}]]),iO=x(`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`}]]),aO=x(`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`}]]),oO=x(`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`}]]),sO=x(`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`}]]),cO=x(`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`}]]),lO=x(`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`}]]),uO=x(`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`}]]),dO=x(`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`}]]),fO=x(`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`}]]),pO=x(`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`}]]),mO=x(`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`}]]),hO=x(`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`}]]),gO=x(`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`}]]),_O=x(`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`}]]),vO=x(`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`}]]),yO=x(`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`}]]),bO=x(`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`}]]),xO=x(`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`}]]),SO=x(`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`}]]),CO=x(`trending-down`,[[`path`,{d:`M16 17h6v-6`,key:`t6n2it`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`,key:`x473p`}]]),wO=x(`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`}]]),TO=x(`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`}]]),EO=x(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),DO=x(`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`}]]),OO=x(`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`}]]),kO=x(`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`}]]),AO=x(`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`}]]),jO=x(`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`}]]),MO=x(`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`}]]),NO=x(`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`}]]),PO=x(`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`}]]),FO=x(`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`}]]),IO=x(`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`}]]),LO=x(`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`}]]),RO=x(`tv-minimal`,[[`path`,{d:`M7 21h10`,key:`1b0cd5`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}]]),zO=x(`tv`,[[`path`,{d:`m17 2-5 5-5-5`,key:`16satq`}],[`rect`,{width:`20`,height:`15`,x:`2`,y:`7`,rx:`2`,key:`1e6viu`}]]),BO=x(`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`}]]),VO=x(`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`}]]),HO=x(`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`}]]),UO=x(`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`}]]),WO=x(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),GO=x(`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`}]]),KO=x(`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`}]]),qO=x(`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`}]]),JO=x(`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`}]]),YO=x(`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`}]]),XO=x(`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`}]]),ZO=x(`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`}]]),QO=x(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]),$O=x(`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`}]]),ek=x(`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`}]]),tk=x(`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`}]]),nk=x(`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`}]]),rk=x(`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`}]]),ik=x(`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`}]]),ak=x(`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`}]]),ok=x(`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`}]]),sk=x(`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`}]]),ck=x(`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`}]]),lk=x(`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`}]]),uk=x(`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`}]]),dk=x(`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`}]]),fk=x(`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`}]]),pk=x(`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`}]]),mk=x(`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`}]]),hk=x(`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`}]]),gk=x(`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`}]]),_k=x(`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`}]]),vk=x(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]),yk=x(`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`}]]),bk=x(`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`}]]),xk=x(`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`}]]),Sk=x(`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`}]]),Ck=x(`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`}]]),wk=x(`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`}]]),Tk=x(`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`}]]),Ek=x(`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`}]]),Dk=x(`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`}]]),Ok=x(`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`}]]),kk=x(`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`}]]),Ak=x(`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`}]]),jk=x(`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`}]]),Mk=x(`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`}]]),Nk=x(`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`}]]),Pk=x(`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`}]]),Fk=x(`venus`,[[`path`,{d:`M12 15v7`,key:`t2xh3l`}],[`path`,{d:`M9 19h6`,key:`456am0`}],[`circle`,{cx:`12`,cy:`9`,r:`6`,key:`1nw4tq`}]]),Ik=x(`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`}]]),Lk=x(`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`}]]),Rk=x(`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`}]]),zk=x(`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`}]]),Bk=x(`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`}]]),Vk=x(`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`}]]),Hk=x(`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`}]]),Uk=x(`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`}]]),Wk=x(`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`}]]),Gk=x(`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`}]]),Kk=x(`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`}]]),qk=x(`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`}]]),Jk=x(`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`}]]),Yk=x(`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`}]]),Xk=x(`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`}]]),Zk=x(`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`}]]),Qk=x(`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`}]]),$k=x(`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`}]]),eA=x(`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`}]]),tA=x(`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`}]]),nA=x(`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`}]]),rA=x(`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`}]]),iA=x(`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`}]]),aA=x(`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`}]]),oA=x(`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`}]]),sA=x(`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`}]]),cA=x(`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`}]]),lA=x(`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`}]]),uA=x(`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`}]]),dA=x(`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`}]]),fA=x(`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`}]]),pA=x(`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`}]]),mA=x(`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`}]]),hA=x(`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`}]]),gA=x(`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`}]]),_A=x(`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`}]]),vA=x(`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`}]]),yA=x(`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`}]]),bA=x(`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`}]]),xA=x(`wifi-low`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),SA=x(`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`}]]),CA=x(`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`}]]),wA=x(`wifi-zero`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}]]),TA=x(`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`}]]),EA=x(`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`}]]),DA=x(`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`}]]),OA=x(`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`}]]),kA=x(`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`}]]),AA=x(`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`}]]),jA=x(`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`}]]),MA=x(`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`}]]),NA=x(`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`}]]),PA=x(`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`}]]),FA=x(`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`}]]),IA=x(`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`}]]),LA=x(`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`}]]),RA=x(`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`}]]),zA=x(`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`}]]),BA=x(`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`}]]),VA=x(`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`}]]),HA=x(`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`}]]),UA=x(`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`}]]),WA=x(`zodiac-sagittarius`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M21 3 3 21`,key:`1011np`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),GA=x(`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`}]]),KA=x(`zodiac-taurus`,[[`circle`,{cx:`12`,cy:`15`,r:`6`,key:`lhqcmb`}],[`path`,{d:`M18 3A6 6 0 0 1 6 3`,key:`1p399e`}]]),qA=x(`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`}]]),JA=x(`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`}]]),YA=x(`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`}]]),XA=t({AArrowDown:()=>Kee,AArrowUp:()=>qee,ALargeSmall:()=>Jee,Accessibility:()=>Yee,Activity:()=>S,AirVent:()=>Xee,Airplay:()=>Zee,AlarmClock:()=>rte,AlarmClockCheck:()=>Qee,AlarmClockMinus:()=>$ee,AlarmClockOff:()=>ete,AlarmClockPlus:()=>tte,AlarmSmoke:()=>nte,Album:()=>Na,AlignCenterHorizontal:()=>Pa,AlignCenterVertical:()=>Fa,AlignEndHorizontal:()=>Ia,AlignEndVertical:()=>La,AlignHorizontalDistributeCenter:()=>Ra,AlignHorizontalDistributeEnd:()=>za,AlignHorizontalDistributeStart:()=>Ba,AlignHorizontalJustifyCenter:()=>Va,AlignHorizontalJustifyEnd:()=>Ha,AlignHorizontalJustifyStart:()=>Ua,AlignHorizontalSpaceAround:()=>Wa,AlignHorizontalSpaceBetween:()=>Ga,AlignStartHorizontal:()=>Ka,AlignStartVertical:()=>qa,AlignVerticalDistributeCenter:()=>Ja,AlignVerticalDistributeEnd:()=>Ya,AlignVerticalDistributeStart:()=>Xa,AlignVerticalJustifyCenter:()=>Za,AlignVerticalJustifyEnd:()=>Qa,AlignVerticalJustifyStart:()=>$a,AlignVerticalSpaceAround:()=>eo,AlignVerticalSpaceBetween:()=>to,Ambulance:()=>no,Ampersand:()=>ro,Ampersands:()=>oo,Amphora:()=>io,Anchor:()=>ao,Angry:()=>so,Annoyed:()=>co,Antenna:()=>uo,Anvil:()=>lo,Aperture:()=>fo,AppWindow:()=>mo,AppWindowMac:()=>po,Apple:()=>ho,Archive:()=>vo,ArchiveRestore:()=>go,ArchiveX:()=>_o,Armchair:()=>yo,ArrowBigDown:()=>xo,ArrowBigDownDash:()=>bo,ArrowBigLeft:()=>Co,ArrowBigLeftDash:()=>So,ArrowBigRight:()=>To,ArrowBigRightDash:()=>wo,ArrowBigUp:()=>Do,ArrowBigUpDash:()=>Eo,ArrowDown:()=>Bo,ArrowDown01:()=>Oo,ArrowDown10:()=>ko,ArrowDownAZ:()=>jo,ArrowDownFromLine:()=>Ao,ArrowDownLeft:()=>Mo,ArrowDownNarrowWide:()=>No,ArrowDownRight:()=>Po,ArrowDownToDot:()=>Fo,ArrowDownToLine:()=>Io,ArrowDownUp:()=>Lo,ArrowDownWideNarrow:()=>Ro,ArrowDownZA:()=>zo,ArrowLeft:()=>Wo,ArrowLeftFromLine:()=>Vo,ArrowLeftRight:()=>Ho,ArrowLeftToLine:()=>Uo,ArrowRight:()=>Jo,ArrowRightFromLine:()=>Go,ArrowRightLeft:()=>Ko,ArrowRightToLine:()=>qo,ArrowUp:()=>ss,ArrowUp01:()=>Yo,ArrowUp10:()=>Xo,ArrowUpAZ:()=>Zo,ArrowUpDown:()=>Qo,ArrowUpFromDot:()=>$o,ArrowUpFromLine:()=>es,ArrowUpLeft:()=>ts,ArrowUpNarrowWide:()=>ns,ArrowUpRight:()=>rs,ArrowUpToLine:()=>is,ArrowUpWideNarrow:()=>as,ArrowUpZA:()=>os,ArrowsUpFromLine:()=>cs,Asterisk:()=>ls,Astroid:()=>us,AtSign:()=>ds,Atom:()=>fs,AudioLines:()=>ps,AudioWaveform:()=>ms,Award:()=>hs,Axe:()=>gs,Axis3d:()=>_s,Baby:()=>xs,Backpack:()=>ys,Badge:()=>Ls,BadgeAlert:()=>vs,BadgeCent:()=>bs,BadgeCheck:()=>Ss,BadgeDollarSign:()=>Cs,BadgeEuro:()=>ws,BadgeIndianRupee:()=>Ts,BadgeInfo:()=>Es,BadgeJapaneseYen:()=>Ds,BadgeMinus:()=>Os,BadgePercent:()=>ks,BadgePlus:()=>js,BadgePoundSterling:()=>As,BadgeQuestionMark:()=>Ms,BadgeRussianRuble:()=>Ns,BadgeSwissFranc:()=>Fs,BadgeTurkishLira:()=>Ps,BadgeX:()=>Is,BaggageClaim:()=>zs,Balloon:()=>Rs,Ban:()=>Vs,Banana:()=>Ws,Bandage:()=>Bs,Banknote:()=>Ks,BanknoteArrowDown:()=>Hs,BanknoteArrowUp:()=>Us,BanknoteX:()=>Gs,Barcode:()=>qs,Barrel:()=>Ys,Baseline:()=>Js,Bath:()=>Xs,Battery:()=>nc,BatteryCharging:()=>Zs,BatteryFull:()=>$s,BatteryLow:()=>ec,BatteryMedium:()=>Qs,BatteryPlus:()=>tc,BatteryWarning:()=>rc,Beaker:()=>ic,Bean:()=>oc,BeanOff:()=>ac,Bed:()=>cc,BedDouble:()=>sc,BedSingle:()=>lc,Beef:()=>dc,BeefOff:()=>uc,Beer:()=>pc,BeerOff:()=>fc,Bell:()=>xc,BellCheck:()=>mc,BellDot:()=>hc,BellElectric:()=>gc,BellMinus:()=>_c,BellOff:()=>vc,BellPlus:()=>yc,BellRing:()=>bc,BetweenHorizontalEnd:()=>Sc,BetweenHorizontalStart:()=>Tc,BetweenVerticalEnd:()=>Cc,BetweenVerticalStart:()=>wc,BicepsFlexed:()=>Ec,Bike:()=>Oc,Binary:()=>Dc,Binoculars:()=>kc,Biohazard:()=>Ac,Bird:()=>jc,Birdhouse:()=>Mc,Bitcoin:()=>Nc,Blend:()=>Pc,Blender:()=>Fc,Blinds:()=>Ic,Blocks:()=>Lc,Bluetooth:()=>Vc,BluetoothConnected:()=>Rc,BluetoothOff:()=>zc,BluetoothSearching:()=>Bc,Bold:()=>Hc,Bolt:()=>Uc,Bomb:()=>Wc,Bone:()=>Jc,Book:()=>_l,BookA:()=>Gc,BookAlert:()=>Kc,BookAudio:()=>qc,BookCheck:()=>Xc,BookCopy:()=>Yc,BookDashed:()=>Zc,BookDown:()=>Qc,BookHeadphones:()=>el,BookHeart:()=>$c,BookImage:()=>tl,BookKey:()=>nl,BookLock:()=>rl,BookMarked:()=>il,BookMinus:()=>al,BookOpen:()=>cl,BookOpenCheck:()=>ol,BookOpenText:()=>sl,BookPlus:()=>ll,BookSearch:()=>ul,BookText:()=>dl,BookType:()=>fl,BookUp:()=>ml,BookUp2:()=>pl,BookUser:()=>hl,BookX:()=>gl,Bookmark:()=>Cl,BookmarkCheck:()=>vl,BookmarkMinus:()=>yl,BookmarkOff:()=>bl,BookmarkPlus:()=>xl,BookmarkX:()=>Sl,BoomBox:()=>wl,Bot:()=>C,BotMessageSquare:()=>Tl,BotOff:()=>El,BottleWine:()=>Dl,BowArrow:()=>Ol,Box:()=>kl,Boxes:()=>Al,Braces:()=>jl,Brackets:()=>Ml,Brain:()=>Fl,BrainCircuit:()=>Nl,BrainCog:()=>Pl,BrickWall:()=>Rl,BrickWallFire:()=>Il,BrickWallShield:()=>Ll,Briefcase:()=>Hl,BriefcaseBusiness:()=>zl,BriefcaseConveyorBelt:()=>Vl,BriefcaseMedical:()=>Bl,BringToFront:()=>Ul,Broccoli:()=>Wl,Brush:()=>Gl,BrushCleaning:()=>Kl,Bubbles:()=>ql,Bug:()=>Xl,BugOff:()=>Yl,BugPlay:()=>Jl,Building:()=>Ql,Building2:()=>Zl,Bus:()=>eu,BusFront:()=>$l,Cable:()=>ru,CableCar:()=>nu,Cake:()=>iu,CakeSlice:()=>tu,Calculator:()=>au,Calendar:()=>Eu,Calendar1:()=>ou,CalendarArrowDown:()=>su,CalendarArrowUp:()=>cu,CalendarCheck:()=>uu,CalendarCheck2:()=>lu,CalendarClock:()=>fu,CalendarCog:()=>du,CalendarDays:()=>pu,CalendarFold:()=>mu,CalendarHeart:()=>hu,CalendarMinus:()=>_u,CalendarMinus2:()=>gu,CalendarOff:()=>vu,CalendarPlus:()=>bu,CalendarPlus2:()=>yu,CalendarRange:()=>xu,CalendarSearch:()=>Su,CalendarSync:()=>Cu,CalendarX:()=>Tu,CalendarX2:()=>wu,Calendars:()=>Du,Camera:()=>Ou,CameraOff:()=>ku,Candy:()=>Mu,CandyCane:()=>ju,CandyOff:()=>Au,Cannabis:()=>Pu,CannabisOff:()=>Nu,Captions:()=>Iu,CaptionsOff:()=>Fu,Car:()=>zu,CarFront:()=>Lu,CarTaxiFront:()=>Ru,Caravan:()=>Bu,CardSim:()=>Vu,Carrot:()=>Hu,CaseLower:()=>Uu,CaseSensitive:()=>Wu,CaseUpper:()=>Gu,CassetteTape:()=>Ku,Cast:()=>qu,Castle:()=>Ju,Cat:()=>Yu,Cctv:()=>Xu,CctvOff:()=>Qu,ChartArea:()=>Zu,ChartBar:()=>nd,ChartBarBig:()=>$u,ChartBarDecreasing:()=>ed,ChartBarIncreasing:()=>td,ChartBarStacked:()=>rd,ChartCandlestick:()=>id,ChartColumn:()=>ld,ChartColumnBig:()=>ad,ChartColumnDecreasing:()=>od,ChartColumnIncreasing:()=>sd,ChartColumnStacked:()=>cd,ChartGantt:()=>ud,ChartLine:()=>dd,ChartNetwork:()=>fd,ChartNoAxesColumn:()=>hd,ChartNoAxesColumnDecreasing:()=>pd,ChartNoAxesColumnIncreasing:()=>md,ChartNoAxesCombined:()=>gd,ChartNoAxesGantt:()=>_d,ChartPie:()=>vd,ChartScatter:()=>yd,ChartSpline:()=>bd,Check:()=>w,CheckCheck:()=>xd,CheckLine:()=>Sd,ChefHat:()=>Cd,Cherry:()=>wd,ChessBishop:()=>Td,ChessKing:()=>Ed,ChessKnight:()=>Dd,ChessPawn:()=>Od,ChessQueen:()=>kd,ChessRook:()=>Ad,ChevronDown:()=>jd,ChevronFirst:()=>Md,ChevronLast:()=>Nd,ChevronLeft:()=>Pd,ChevronRight:()=>T,ChevronUp:()=>Fd,ChevronsDown:()=>Ld,ChevronsDownUp:()=>Id,ChevronsLeft:()=>Bd,ChevronsLeftRight:()=>Rd,ChevronsLeftRightEllipsis:()=>zd,ChevronsRight:()=>Hd,ChevronsRightLeft:()=>Vd,ChevronsUp:()=>Ud,ChevronsUpDown:()=>O,Church:()=>Wd,Cigarette:()=>Kd,CigaretteOff:()=>Gd,Circle:()=>Pf,CircleAlert:()=>L,CircleArrowDown:()=>qd,CircleArrowLeft:()=>Jd,CircleArrowOutDownLeft:()=>Yd,CircleArrowOutDownRight:()=>Xd,CircleArrowOutUpLeft:()=>Zd,CircleArrowOutUpRight:()=>Qd,CircleArrowRight:()=>$d,CircleArrowUp:()=>ef,CircleCheck:()=>R,CircleCheckBig:()=>tf,CircleChevronDown:()=>rf,CircleChevronLeft:()=>nf,CircleChevronRight:()=>af,CircleChevronUp:()=>of,CircleDashed:()=>z,CircleDivide:()=>sf,CircleDollarSign:()=>cf,CircleDot:()=>B,CircleDotDashed:()=>lf,CircleEllipsis:()=>uf,CircleEqual:()=>df,CircleFadingArrowUp:()=>ff,CircleFadingPlus:()=>pf,CircleGauge:()=>mf,CircleMinus:()=>hf,CircleOff:()=>gf,CircleParking:()=>vf,CircleParkingOff:()=>_f,CirclePause:()=>V,CirclePercent:()=>bf,CirclePile:()=>yf,CirclePlay:()=>xf,CirclePlus:()=>Sf,CirclePoundSterling:()=>Cf,CirclePower:()=>wf,CircleQuestionMark:()=>Tf,CircleSlash:()=>Df,CircleSlash2:()=>Ef,CircleSmall:()=>Of,CircleStar:()=>kf,CircleStop:()=>Af,CircleUser:()=>Mf,CircleUserRound:()=>jf,CircleX:()=>Nf,CircuitBoard:()=>Ff,Citrus:()=>If,Clapperboard:()=>Lf,Clipboard:()=>Yf,ClipboardCheck:()=>Rf,ClipboardClock:()=>zf,ClipboardCopy:()=>Bf,ClipboardList:()=>Vf,ClipboardMinus:()=>Hf,ClipboardPaste:()=>Uf,ClipboardPen:()=>Gf,ClipboardPenLine:()=>Wf,ClipboardPlus:()=>Kf,ClipboardType:()=>qf,ClipboardX:()=>Jf,Clock:()=>pp,Clock1:()=>Xf,Clock10:()=>Zf,Clock11:()=>Qf,Clock12:()=>$f,Clock2:()=>ep,Clock3:()=>H,Clock4:()=>tp,Clock5:()=>np,Clock6:()=>rp,Clock7:()=>ip,Clock8:()=>ap,Clock9:()=>op,ClockAlert:()=>sp,ClockArrowDown:()=>cp,ClockArrowUp:()=>lp,ClockCheck:()=>up,ClockFading:()=>dp,ClockPlus:()=>fp,ClosedCaption:()=>mp,Cloud:()=>U,CloudAlert:()=>hp,CloudBackup:()=>gp,CloudCheck:()=>_p,CloudCog:()=>vp,CloudDownload:()=>yp,CloudDrizzle:()=>bp,CloudFog:()=>xp,CloudHail:()=>Sp,CloudLightning:()=>Cp,CloudMoon:()=>Tp,CloudMoonRain:()=>wp,CloudOff:()=>Ep,CloudRain:()=>Op,CloudRainWind:()=>Dp,CloudSnow:()=>kp,CloudSun:()=>Mp,CloudSunRain:()=>Ap,CloudSync:()=>jp,CloudUpload:()=>Np,Cloudy:()=>Pp,Clover:()=>Fp,Club:()=>Ip,Code:()=>Rp,CodeXml:()=>Lp,Coffee:()=>zp,Cog:()=>Bp,Coins:()=>Vp,Columns2:()=>Hp,Columns3:()=>Wp,Columns3Cog:()=>Up,Columns4:()=>Gp,Combine:()=>Kp,Command:()=>qp,Compass:()=>Jp,Component:()=>Yp,Computer:()=>Xp,ConciergeBell:()=>Zp,Cone:()=>Qp,Construction:()=>$p,Contact:()=>tm,ContactRound:()=>em,Container:()=>nm,Contrast:()=>rm,Cookie:()=>im,CookingPot:()=>am,Copy:()=>W,CopyCheck:()=>om,CopyMinus:()=>sm,CopyPlus:()=>cm,CopySlash:()=>um,CopyX:()=>lm,Copyleft:()=>dm,Copyright:()=>fm,CornerDownLeft:()=>pm,CornerDownRight:()=>mm,CornerLeftDown:()=>hm,CornerLeftUp:()=>gm,CornerRightDown:()=>_m,CornerRightUp:()=>vm,CornerUpLeft:()=>ym,CornerUpRight:()=>bm,Cpu:()=>xm,CreativeCommons:()=>Sm,CreditCard:()=>Cm,Croissant:()=>wm,Crop:()=>Tm,Cross:()=>Em,Crosshair:()=>Dm,Crown:()=>Om,Cuboid:()=>km,CupSoda:()=>Am,Currency:()=>jm,Cylinder:()=>Mm,Dam:()=>Nm,Database:()=>Lm,DatabaseBackup:()=>Pm,DatabaseSearch:()=>Fm,DatabaseZap:()=>Im,DecimalsArrowLeft:()=>Rm,DecimalsArrowRight:()=>zm,Delete:()=>Bm,Dessert:()=>Vm,Diameter:()=>Hm,Diamond:()=>Km,DiamondMinus:()=>Um,DiamondPercent:()=>Wm,DiamondPlus:()=>Gm,Dice1:()=>qm,Dice2:()=>Jm,Dice3:()=>Ym,Dice4:()=>Xm,Dice5:()=>Zm,Dice6:()=>Qm,Dices:()=>$m,Diff:()=>eh,Disc:()=>ih,Disc2:()=>th,Disc3:()=>nh,DiscAlbum:()=>rh,Divide:()=>ah,Dna:()=>oh,DnaOff:()=>ch,Dock:()=>lh,Dog:()=>sh,DollarSign:()=>uh,Donut:()=>dh,DoorClosed:()=>ph,DoorClosedLocked:()=>fh,DoorOpen:()=>mh,Dot:()=>hh,Download:()=>G,DraftingCompass:()=>gh,Drama:()=>_h,Drill:()=>vh,Drone:()=>yh,Droplet:()=>xh,DropletOff:()=>bh,Droplets:()=>Sh,Drum:()=>Ch,Drumstick:()=>wh,Dumbbell:()=>Th,Ear:()=>Dh,EarOff:()=>Eh,Earth:()=>kh,EarthLock:()=>Oh,Eclipse:()=>Ah,Egg:()=>jh,EggFried:()=>ite,EggOff:()=>Mh,Ellipse:()=>Nh,Ellipsis:()=>ee,EllipsisVertical:()=>Ph,Equal:()=>Lh,EqualApproximately:()=>Fh,EqualNot:()=>Ih,Eraser:()=>Rh,EthernetPort:()=>zh,Euro:()=>Bh,EvCharger:()=>Vh,Expand:()=>Hh,ExternalLink:()=>te,Eye:()=>re,EyeClosed:()=>Uh,EyeOff:()=>ne,Factory:()=>Wh,Fan:()=>Gh,FastForward:()=>Kh,Feather:()=>qh,Fence:()=>Jh,FerrisWheel:()=>Yh,File:()=>ae,FileArchive:()=>Xh,FileAxis3d:()=>Zh,FileBadge:()=>Qh,FileBox:()=>eg,FileBraces:()=>tg,FileBracesCorner:()=>$h,FileChartColumn:()=>rg,FileChartColumnIncreasing:()=>ng,FileChartLine:()=>ig,FileChartPie:()=>ag,FileCheck:()=>sg,FileCheckCorner:()=>og,FileClock:()=>cg,FileCode:()=>ug,FileCodeCorner:()=>ie,FileCog:()=>lg,FileDiff:()=>fg,FileDigit:()=>dg,FileDown:()=>pg,FileExclamationPoint:()=>mg,FileHeadphone:()=>gg,FileHeart:()=>hg,FileImage:()=>ye,FileInput:()=>_g,FileKey:()=>yg,FileLock:()=>vg,FileMinus:()=>xg,FileMinusCorner:()=>bg,FileMusic:()=>Sg,FileOutput:()=>Cg,FilePen:()=>Tg,FilePenLine:()=>wg,FilePlay:()=>Eg,FilePlus:()=>Og,FilePlusCorner:()=>Dg,FileQuestionMark:()=>kg,FileScan:()=>Ag,FileSearch:()=>Mg,FileSearchCorner:()=>jg,FileSignal:()=>Ng,FileSliders:()=>Pg,FileSpreadsheet:()=>Fg,FileStack:()=>Ig,FileSymlink:()=>Lg,FileTerminal:()=>Rg,FileText:()=>zg,FileType:()=>Vg,FileTypeCorner:()=>Bg,FileUp:()=>Hg,FileUser:()=>Ug,FileVideoCamera:()=>Wg,FileVolume:()=>Gg,FileX:()=>qg,FileXCorner:()=>Kg,Files:()=>Jg,Film:()=>Xg,FingerprintPattern:()=>Yg,FireExtinguisher:()=>Zg,Fish:()=>e_,FishOff:()=>Qg,FishSymbol:()=>$g,FishingHook:()=>t_,FishingRod:()=>n_,Flag:()=>o_,FlagOff:()=>r_,FlagTriangleLeft:()=>i_,FlagTriangleRight:()=>a_,Flame:()=>l_,FlameKindling:()=>s_,Flashlight:()=>u_,FlashlightOff:()=>c_,FlaskConical:()=>f_,FlaskConicalOff:()=>d_,FlaskRound:()=>p_,FlipHorizontal2:()=>m_,FlipVertical2:()=>h_,Flower:()=>__,Flower2:()=>g_,Focus:()=>v_,FoldHorizontal:()=>y_,FoldVertical:()=>b_,Folder:()=>z_,FolderArchive:()=>x_,FolderBookmark:()=>S_,FolderCheck:()=>C_,FolderClock:()=>w_,FolderClosed:()=>T_,FolderCode:()=>E_,FolderCog:()=>O_,FolderDot:()=>D_,FolderDown:()=>A_,FolderGit:()=>j_,FolderGit2:()=>k_,FolderHeart:()=>N_,FolderInput:()=>M_,FolderKanban:()=>F_,FolderKey:()=>P_,FolderLock:()=>I_,FolderMinus:()=>L_,FolderOpen:()=>Le,FolderOpenDot:()=>ate,FolderOutput:()=>ste,FolderPen:()=>ote,FolderPlus:()=>R_,FolderRoot:()=>cte,FolderSearch:()=>ute,FolderSearch2:()=>lte,FolderSymlink:()=>dte,FolderSync:()=>pte,FolderTree:()=>fte,FolderUp:()=>mte,FolderX:()=>hte,Folders:()=>gte,Footprints:()=>_te,Forklift:()=>yte,Form:()=>vte,Forward:()=>bte,Frame:()=>xte,Frown:()=>Ste,Fuel:()=>Cte,Fullscreen:()=>wte,Funnel:()=>Dte,FunnelPlus:()=>Tte,FunnelX:()=>Ete,GalleryHorizontal:()=>kte,GalleryHorizontalEnd:()=>Ote,GalleryThumbnails:()=>Ate,GalleryVertical:()=>Mte,GalleryVerticalEnd:()=>jte,Gamepad:()=>Fte,Gamepad2:()=>Nte,GamepadDirectional:()=>Pte,Gauge:()=>B_,Gavel:()=>Ite,Gem:()=>Lte,GeorgianLari:()=>Rte,Ghost:()=>zte,Gift:()=>Bte,GitBranch:()=>Re,GitBranchMinus:()=>Vte,GitBranchPlus:()=>Hte,GitCommitHorizontal:()=>V_,GitCommitVertical:()=>Ute,GitCompare:()=>Gte,GitCompareArrows:()=>Wte,GitFork:()=>H_,GitGraph:()=>Kte,GitMerge:()=>Jte,GitMergeConflict:()=>qte,GitPullRequest:()=>ene,GitPullRequestArrow:()=>Yte,GitPullRequestClosed:()=>Zte,GitPullRequestCreate:()=>Qte,GitPullRequestCreateArrow:()=>Xte,GitPullRequestDraft:()=>$te,GlassWater:()=>nne,Glasses:()=>tne,Globe:()=>ze,GlobeCheck:()=>rne,GlobeLock:()=>ine,GlobeOff:()=>ane,GlobeX:()=>one,Goal:()=>sne,Gpu:()=>lne,GraduationCap:()=>cne,Grape:()=>une,Grid2x2:()=>mne,Grid2x2Check:()=>dne,Grid2x2Plus:()=>fne,Grid2x2X:()=>pne,Grid3x2:()=>hne,Grid3x3:()=>gne,Grip:()=>vne,GripHorizontal:()=>_ne,GripVertical:()=>U_,Group:()=>bne,Guitar:()=>Sne,Ham:()=>yne,Hamburger:()=>xne,Hammer:()=>Cne,Hand:()=>jne,HandCoins:()=>wne,HandFist:()=>Tne,HandGrab:()=>Ene,HandHeart:()=>Dne,HandHelping:()=>One,HandMetal:()=>kne,HandPlatter:()=>Ane,Handbag:()=>Mne,Handshake:()=>W_,HardDrive:()=>Fne,HardDriveDownload:()=>Nne,HardDriveUpload:()=>Pne,HardHat:()=>Ine,Hash:()=>Lne,HatGlasses:()=>Rne,Haze:()=>zne,Hd:()=>Bne,HdmiPort:()=>Vne,Heading:()=>Gne,Heading1:()=>G_,Heading2:()=>K_,Heading3:()=>q_,Heading4:()=>Hne,Heading5:()=>Une,Heading6:()=>Wne,HeadphoneOff:()=>Kne,Headphones:()=>qne,Headset:()=>Jne,Heart:()=>J_,HeartCrack:()=>Yne,HeartHandshake:()=>Xne,HeartMinus:()=>Zne,HeartOff:()=>Qne,HeartPlus:()=>$ne,HeartPulse:()=>tre,HeartX:()=>ere,Heater:()=>nre,Helicopter:()=>ire,Hexagon:()=>Y_,Highlighter:()=>rre,History:()=>X_,Hop:()=>ore,HopOff:()=>are,Hospital:()=>sre,Hotel:()=>cre,Hourglass:()=>Z_,House:()=>Q_,HouseHeart:()=>lre,HousePlug:()=>ure,HousePlus:()=>dre,HouseWifi:()=>fre,IceCreamBowl:()=>pre,IceCreamCone:()=>mre,IdCard:()=>gre,IdCardLanyard:()=>hre,Image:()=>ev,ImageDown:()=>vre,ImageMinus:()=>_re,ImageOff:()=>Be,ImagePlay:()=>yre,ImagePlus:()=>$_,ImageUp:()=>bre,ImageUpscale:()=>xre,Images:()=>Sre,Import:()=>Cre,Inbox:()=>tv,IndianRupee:()=>wre,Infinity:()=>Tre,Info:()=>nv,InspectionPanel:()=>Ere,Italic:()=>rv,IterationCcw:()=>Dre,IterationCw:()=>Ore,JapaneseYen:()=>kre,Joystick:()=>Are,Kanban:()=>jre,Kayak:()=>Fre,Key:()=>Nre,KeyRound:()=>iv,KeySquare:()=>Mre,Keyboard:()=>av,KeyboardMusic:()=>Pre,KeyboardOff:()=>Ire,Lamp:()=>Hre,LampCeiling:()=>Lre,LampDesk:()=>Rre,LampFloor:()=>Bre,LampWallDown:()=>zre,LampWallUp:()=>Vre,LandPlot:()=>Ure,Landmark:()=>Wre,Languages:()=>ov,Laptop:()=>sv,LaptopMinimal:()=>Kre,LaptopMinimalCheck:()=>Gre,Lasso:()=>Jre,LassoSelect:()=>qre,Laugh:()=>Yre,Layers:()=>cv,Layers2:()=>Xre,LayersMinus:()=>Qre,LayersPlus:()=>Zre,LayoutDashboard:()=>lv,LayoutGrid:()=>uv,LayoutList:()=>dv,LayoutPanelLeft:()=>$re,LayoutPanelTop:()=>eie,LayoutTemplate:()=>fv,Leaf:()=>tie,LeafyGreen:()=>nie,Lectern:()=>rie,LensConcave:()=>iie,LensConvex:()=>aie,Library:()=>pv,LibraryBig:()=>sie,LifeBuoy:()=>oie,Ligature:()=>cie,Lightbulb:()=>mv,LightbulbOff:()=>lie,LineDotRightHorizontal:()=>die,LineSquiggle:()=>uie,LineStyle:()=>fie,Link:()=>gv,Link2:()=>Je,Link2Off:()=>pie,List:()=>Sv,ListCheck:()=>mie,ListChecks:()=>hv,ListChevronsDownUp:()=>gie,ListChevronsUpDown:()=>hie,ListCollapse:()=>_ie,ListEnd:()=>vie,ListFilter:()=>_v,ListFilterPlus:()=>yie,ListIndentDecrease:()=>bie,ListIndentIncrease:()=>xie,ListMinus:()=>Sie,ListMusic:()=>Cie,ListOrdered:()=>vv,ListPlus:()=>yv,ListRestart:()=>wie,ListStart:()=>Tie,ListTodo:()=>bv,ListTree:()=>xv,ListVideo:()=>Eie,ListX:()=>Die,Loader:()=>kie,LoaderCircle:()=>Ye,LoaderPinwheel:()=>Oie,Locate:()=>Nie,LocateFixed:()=>Aie,LocateOff:()=>jie,Lock:()=>Fie,LockKeyhole:()=>Cv,LockKeyholeOpen:()=>Mie,LockOpen:()=>Pie,LogIn:()=>wv,LogOut:()=>Iie,Logs:()=>Lie,Lollipop:()=>Rie,Luggage:()=>zie,Magnet:()=>Bie,Mail:()=>Tv,MailCheck:()=>Vie,MailMinus:()=>Hie,MailOpen:()=>Uie,MailPlus:()=>Wie,MailQuestionMark:()=>Gie,MailSearch:()=>Kie,MailWarning:()=>qie,MailX:()=>Jie,Mailbox:()=>Yie,Mails:()=>Zie,Map:()=>fae,MapMinus:()=>Xie,MapPin:()=>Ev,MapPinCheck:()=>$ie,MapPinCheckInside:()=>Qie,MapPinHouse:()=>eae,MapPinMinus:()=>nae,MapPinMinusInside:()=>tae,MapPinOff:()=>rae,MapPinPen:()=>iae,MapPinPlus:()=>oae,MapPinPlusInside:()=>aae,MapPinSearch:()=>sae,MapPinX:()=>cae,MapPinXInside:()=>lae,MapPinned:()=>uae,MapPlus:()=>dae,Mars:()=>mae,MarsStroke:()=>pae,Martini:()=>hae,Maximize:()=>gae,Maximize2:()=>be,Medal:()=>_ae,Megaphone:()=>yae,MegaphoneOff:()=>vae,Meh:()=>bae,MemoryStick:()=>xae,Menu:()=>Dv,Merge:()=>Sae,MessageCircle:()=>kv,MessageCircleCheck:()=>Cae,MessageCircleCode:()=>wae,MessageCircleDashed:()=>Tae,MessageCircleHeart:()=>Eae,MessageCircleMore:()=>Ov,MessageCircleOff:()=>Dae,MessageCirclePlus:()=>Oae,MessageCircleQuestionMark:()=>kae,MessageCircleReply:()=>Aae,MessageCircleWarning:()=>jae,MessageCircleX:()=>Mae,MessageSquare:()=>Ze,MessageSquareCheck:()=>Nae,MessageSquareCode:()=>Av,MessageSquareDashed:()=>Pae,MessageSquareDiff:()=>Fae,MessageSquareDot:()=>Iae,MessageSquareHeart:()=>Lae,MessageSquareLock:()=>Rae,MessageSquareMore:()=>zae,MessageSquareOff:()=>Vae,MessageSquarePlus:()=>Xe,MessageSquareQuote:()=>Bae,MessageSquareReply:()=>Hae,MessageSquareShare:()=>jv,MessageSquareText:()=>Mv,MessageSquareWarning:()=>Nv,MessageSquareX:()=>Uae,MessagesSquare:()=>Pv,Metronome:()=>Wae,Mic:()=>Qe,MicOff:()=>Fv,MicVocal:()=>Gae,Microchip:()=>Kae,Microscope:()=>qae,Microwave:()=>Yae,Milestone:()=>Jae,Milk:()=>Zae,MilkOff:()=>Xae,Minimize:()=>Qae,Minimize2:()=>$e,Minus:()=>Fe,MirrorRectangular:()=>$ae,MirrorRound:()=>eoe,Monitor:()=>zv,MonitorCheck:()=>noe,MonitorCloud:()=>toe,MonitorCog:()=>roe,MonitorDot:()=>ioe,MonitorDown:()=>aoe,MonitorOff:()=>ooe,MonitorPause:()=>soe,MonitorPlay:()=>Iv,MonitorSmartphone:()=>Lv,MonitorSpeaker:()=>loe,MonitorStop:()=>coe,MonitorUp:()=>Rv,MonitorX:()=>uoe,Moon:()=>foe,MoonStar:()=>doe,Motorbike:()=>poe,Mountain:()=>hoe,MountainSnow:()=>moe,Mouse:()=>Hv,MouseLeft:()=>goe,MouseOff:()=>voe,MousePointer:()=>boe,MousePointer2:()=>Bv,MousePointer2Off:()=>_oe,MousePointerBan:()=>yoe,MousePointerClick:()=>Vv,MouseRight:()=>xoe,Move:()=>ny,Move3d:()=>Wv,MoveDiagonal:()=>Gv,MoveDiagonal2:()=>Uv,MoveDown:()=>Jv,MoveDownLeft:()=>Kv,MoveDownRight:()=>qv,MoveHorizontal:()=>Xv,MoveLeft:()=>Yv,MoveRight:()=>Zv,MoveUp:()=>ey,MoveUpLeft:()=>Qv,MoveUpRight:()=>$v,MoveVertical:()=>ty,Music:()=>oy,Music2:()=>ry,Music3:()=>iy,Music4:()=>ay,Navigation:()=>uy,Navigation2:()=>sy,Navigation2Off:()=>ly,NavigationOff:()=>cy,Network:()=>dy,Newspaper:()=>fy,Nfc:()=>py,NonBinary:()=>my,Notebook:()=>vy,NotebookPen:()=>hy,NotebookTabs:()=>gy,NotebookText:()=>_y,NotepadText:()=>by,NotepadTextDashed:()=>yy,Nut:()=>Sy,NutOff:()=>xy,Octagon:()=>Dy,OctagonAlert:()=>Cy,OctagonMinus:()=>wy,OctagonPause:()=>Ty,OctagonX:()=>Ey,Omega:()=>Oy,Option:()=>ky,Orbit:()=>Ay,Origami:()=>My,Package:()=>zy,Package2:()=>jy,PackageCheck:()=>Ny,PackageMinus:()=>Py,PackageOpen:()=>Fy,PackagePlus:()=>Iy,PackageSearch:()=>Ry,PackageX:()=>Ly,PaintBucket:()=>Vy,PaintRoller:()=>Hy,Paintbrush:()=>Uy,PaintbrushVertical:()=>By,Palette:()=>Wy,Panda:()=>Gy,PanelBottom:()=>Yy,PanelBottomClose:()=>Ky,PanelBottomDashed:()=>qy,PanelBottomOpen:()=>Jy,PanelLeft:()=>tb,PanelLeftClose:()=>Xy,PanelLeftDashed:()=>Zy,PanelLeftOpen:()=>Qy,PanelLeftRightDashed:()=>$y,PanelRight:()=>ib,PanelRightClose:()=>eb,PanelRightDashed:()=>nb,PanelRightOpen:()=>rb,PanelTop:()=>lb,PanelTopBottomDashed:()=>ob,PanelTopClose:()=>ab,PanelTopDashed:()=>sb,PanelTopOpen:()=>cb,PanelsLeftBottom:()=>ub,PanelsRightBottom:()=>db,PanelsTopLeft:()=>fb,Paperclip:()=>pb,Parasol:()=>mb,Parentheses:()=>gb,ParkingMeter:()=>hb,PartyPopper:()=>_b,Pause:()=>et,PawPrint:()=>vb,PcCase:()=>yb,Pen:()=>Cb,PenLine:()=>bb,PenOff:()=>Sb,PenTool:()=>xb,Pencil:()=>tt,PencilLine:()=>wb,PencilOff:()=>Tb,PencilRuler:()=>Eb,Pentagon:()=>Db,Percent:()=>Ob,PersonStanding:()=>kb,PhilippinePeso:()=>Ab,Phone:()=>Lb,PhoneCall:()=>jb,PhoneForwarded:()=>Mb,PhoneIncoming:()=>Nb,PhoneMissed:()=>Pb,PhoneOff:()=>Fb,PhoneOutgoing:()=>Ib,Pi:()=>Rb,Piano:()=>zb,Pickaxe:()=>Bb,PictureInPicture:()=>Hb,PictureInPicture2:()=>Vb,PiggyBank:()=>Ub,Pilcrow:()=>Kb,PilcrowLeft:()=>Wb,PilcrowRight:()=>Gb,Pill:()=>Jb,PillBottle:()=>qb,Pin:()=>Yb,PinOff:()=>Zb,Pipette:()=>Qb,Pizza:()=>Xb,Plane:()=>tx,PlaneLanding:()=>$b,PlaneTakeoff:()=>ex,Play:()=>nt,Plug:()=>ix,Plug2:()=>rx,PlugZap:()=>nx,Plus:()=>rt,PocketKnife:()=>ax,Podcast:()=>ox,Pointer:()=>cx,PointerOff:()=>sx,Popcorn:()=>lx,Popsicle:()=>ux,PoundSterling:()=>dx,Power:()=>mx,PowerOff:()=>fx,Presentation:()=>px,Printer:()=>vx,PrinterCheck:()=>hx,PrinterX:()=>gx,Projector:()=>_x,Proportions:()=>yx,Puzzle:()=>bx,Pyramid:()=>xx,QrCode:()=>Sx,Quote:()=>Cx,Rabbit:()=>wx,Radar:()=>Tx,Radiation:()=>Ex,Radical:()=>Dx,Radio:()=>jx,RadioOff:()=>Ox,RadioReceiver:()=>kx,RadioTower:()=>Ax,Radius:()=>Mx,Rainbow:()=>Nx,Rat:()=>Px,Ratio:()=>Fx,Receipt:()=>Gx,ReceiptCent:()=>Lx,ReceiptEuro:()=>Ix,ReceiptIndianRupee:()=>Rx,ReceiptJapaneseYen:()=>zx,ReceiptPoundSterling:()=>Bx,ReceiptRussianRuble:()=>Vx,ReceiptSwissFranc:()=>Hx,ReceiptText:()=>Ux,ReceiptTurkishLira:()=>Wx,RectangleCircle:()=>Kx,RectangleEllipsis:()=>qx,RectangleGoggles:()=>Jx,RectangleHorizontal:()=>Yx,RectangleVertical:()=>Xx,Recycle:()=>Zx,Redo:()=>eS,Redo2:()=>Qx,RedoDot:()=>$x,RefreshCcw:()=>nS,RefreshCcwDot:()=>tS,RefreshCw:()=>iS,RefreshCwOff:()=>rS,Refrigerator:()=>sS,Regex:()=>aS,RemoveFormatting:()=>oS,Repeat:()=>dS,Repeat1:()=>cS,Repeat2:()=>lS,RepeatOff:()=>uS,Replace:()=>hS,ReplaceAll:()=>fS,Reply:()=>mS,ReplyAll:()=>pS,Rewind:()=>gS,Ribbon:()=>_S,Road:()=>vS,Rocket:()=>yS,RockingChair:()=>bS,RollerCoaster:()=>xS,Rose:()=>wS,Rotate3d:()=>SS,RotateCcw:()=>it,RotateCcwKey:()=>CS,RotateCcwSquare:()=>TS,RotateCw:()=>at,RotateCwSquare:()=>ES,Route:()=>kS,RouteOff:()=>DS,Router:()=>OS,Rows2:()=>AS,Rows3:()=>jS,Rows4:()=>MS,Rss:()=>NS,Ruler:()=>PS,RulerDimensionLine:()=>FS,RussianRuble:()=>IS,Sailboat:()=>LS,Salad:()=>zS,Sandwich:()=>RS,Satellite:()=>VS,SatelliteDish:()=>BS,SaudiRiyal:()=>US,Save:()=>GS,SaveAll:()=>HS,SaveOff:()=>WS,Scale:()=>KS,Scale3d:()=>qS,Scaling:()=>YS,Scan:()=>rC,ScanBarcode:()=>JS,ScanEye:()=>XS,ScanFace:()=>ZS,ScanHeart:()=>QS,ScanLine:()=>$S,ScanQrCode:()=>tC,ScanSearch:()=>eC,ScanText:()=>nC,School:()=>aC,Scissors:()=>oC,ScissorsLineDashed:()=>iC,Scooter:()=>sC,ScreenShare:()=>lC,ScreenShareOff:()=>cC,Scroll:()=>dC,ScrollText:()=>uC,Search:()=>ot,SearchAlert:()=>fC,SearchCheck:()=>pC,SearchCode:()=>mC,SearchSlash:()=>hC,SearchX:()=>gC,Section:()=>_C,Send:()=>xC,SendHorizontal:()=>vC,SendToBack:()=>yC,SeparatorHorizontal:()=>bC,SeparatorVertical:()=>SC,Server:()=>EC,ServerCog:()=>wC,ServerCrash:()=>CC,ServerOff:()=>TC,Settings:()=>DC,Settings2:()=>st,Shapes:()=>OC,Share:()=>jC,Share2:()=>kC,Sheet:()=>AC,Shell:()=>MC,ShelvingUnit:()=>NC,Shield:()=>KC,ShieldAlert:()=>PC,ShieldBan:()=>FC,ShieldCheck:()=>IC,ShieldCog:()=>zC,ShieldCogCorner:()=>LC,ShieldEllipsis:()=>RC,ShieldHalf:()=>BC,ShieldMinus:()=>HC,ShieldOff:()=>VC,ShieldPlus:()=>UC,ShieldQuestionMark:()=>WC,ShieldUser:()=>GC,ShieldX:()=>JC,Ship:()=>YC,ShipWheel:()=>qC,Shirt:()=>XC,ShoppingBag:()=>ZC,ShoppingBasket:()=>QC,ShoppingCart:()=>$C,Shovel:()=>ew,ShowerHead:()=>tw,Shredder:()=>nw,Shrimp:()=>rw,Shrink:()=>iw,Shrub:()=>ow,Shuffle:()=>aw,Sigma:()=>sw,Signal:()=>mw,SignalHigh:()=>lw,SignalLow:()=>cw,SignalMedium:()=>uw,SignalZero:()=>dw,Signature:()=>pw,Signpost:()=>gw,SignpostBig:()=>fw,Siren:()=>hw,SkipBack:()=>_w,SkipForward:()=>vw,Skull:()=>yw,Slash:()=>bw,Slice:()=>xw,SlidersHorizontal:()=>Sw,SlidersVertical:()=>Cw,Smartphone:()=>Ew,SmartphoneCharging:()=>ww,SmartphoneNfc:()=>Tw,Smile:()=>Ow,SmilePlus:()=>Dw,Snail:()=>kw,Snowflake:()=>Aw,SoapDispenserDroplet:()=>Mw,Sofa:()=>jw,SolarPanel:()=>Nw,Soup:()=>Pw,Space:()=>Fw,Spade:()=>Iw,Sparkle:()=>Lw,Sparkles:()=>ct,Speaker:()=>Rw,Speech:()=>zw,SpellCheck:()=>Vw,SpellCheck2:()=>Bw,Spline:()=>Ww,SplinePointer:()=>Hw,Split:()=>Uw,Spool:()=>Gw,SportShoe:()=>Kw,Spotlight:()=>qw,SprayCan:()=>Jw,Sprout:()=>Xw,Square:()=>dE,SquareActivity:()=>Yw,SquareArrowDown:()=>$w,SquareArrowDownLeft:()=>Zw,SquareArrowDownRight:()=>Qw,SquareArrowLeft:()=>eT,SquareArrowOutDownLeft:()=>tT,SquareArrowOutDownRight:()=>nT,SquareArrowOutUpLeft:()=>rT,SquareArrowOutUpRight:()=>iT,SquareArrowRight:()=>cT,SquareArrowRightEnter:()=>aT,SquareArrowRightExit:()=>oT,SquareArrowUp:()=>dT,SquareArrowUpLeft:()=>sT,SquareArrowUpRight:()=>lT,SquareAsterisk:()=>uT,SquareBottomDashedScissors:()=>fT,SquareCenterlineDashedHorizontal:()=>pT,SquareCenterlineDashedVertical:()=>hT,SquareChartGantt:()=>mT,SquareCheck:()=>_T,SquareCheckBig:()=>gT,SquareChevronDown:()=>vT,SquareChevronLeft:()=>bT,SquareChevronRight:()=>yT,SquareChevronUp:()=>xT,SquareCode:()=>ST,SquareDashed:()=>jT,SquareDashedBottom:()=>wT,SquareDashedBottomCode:()=>CT,SquareDashedKanban:()=>TT,SquareDashedMousePointer:()=>ET,SquareDashedText:()=>DT,SquareDashedTopSolid:()=>OT,SquareDivide:()=>kT,SquareDot:()=>AT,SquareEqual:()=>MT,SquareFunction:()=>NT,SquareKanban:()=>PT,SquareLibrary:()=>FT,SquareM:()=>IT,SquareMenu:()=>LT,SquareMinus:()=>RT,SquareMousePointer:()=>zT,SquareParking:()=>HT,SquareParkingOff:()=>BT,SquarePause:()=>VT,SquarePen:()=>UT,SquarePercent:()=>WT,SquarePi:()=>GT,SquarePilcrow:()=>KT,SquarePlay:()=>JT,SquarePlus:()=>qT,SquarePower:()=>YT,SquareRadical:()=>XT,SquareRoundCorner:()=>ZT,SquareScissors:()=>QT,SquareSigma:()=>$T,SquareSlash:()=>eE,SquareSplitHorizontal:()=>tE,SquareSplitVertical:()=>nE,SquareSquare:()=>rE,SquareStack:()=>iE,SquareStar:()=>aE,SquareStop:()=>oE,SquareTerminal:()=>sE,SquareUser:()=>uE,SquareUserRound:()=>cE,SquareX:()=>lE,SquaresExclude:()=>fE,SquaresIntersect:()=>pE,SquaresSubtract:()=>mE,SquaresUnite:()=>hE,Squircle:()=>_E,SquircleDashed:()=>gE,Squirrel:()=>vE,Stamp:()=>bE,Star:()=>SE,StarHalf:()=>yE,StarOff:()=>xE,StepBack:()=>ft,StepForward:()=>lt,Stethoscope:()=>CE,Sticker:()=>wE,StickyNote:()=>kE,StickyNoteCheck:()=>TE,StickyNoteMinus:()=>EE,StickyNoteOff:()=>DE,StickyNotePlus:()=>OE,StickyNoteX:()=>AE,StickyNotes:()=>ME,Stone:()=>jE,Store:()=>NE,StretchHorizontal:()=>PE,StretchVertical:()=>FE,Strikethrough:()=>IE,Subscript:()=>LE,Sun:()=>HE,SunDim:()=>RE,SunMedium:()=>zE,SunMoon:()=>BE,SunSnow:()=>VE,Sunrise:()=>UE,Sunset:()=>WE,Superscript:()=>GE,SwatchBook:()=>KE,SwissFranc:()=>qE,SwitchCamera:()=>JE,Sword:()=>XE,Swords:()=>YE,Syringe:()=>ZE,Table:()=>aD,Table2:()=>QE,TableCellsMerge:()=>$E,TableCellsSplit:()=>eD,TableColumnsSplit:()=>tD,TableOfContents:()=>nD,TableProperties:()=>rD,TableRowsSplit:()=>iD,Tablet:()=>sD,TabletSmartphone:()=>oD,Tablets:()=>cD,Tag:()=>lD,Tags:()=>uD,Tally1:()=>dD,Tally2:()=>fD,Tally3:()=>pD,Tally4:()=>mD,Tally5:()=>hD,Tangent:()=>gD,Target:()=>_D,Telescope:()=>vD,Tent:()=>bD,TentTree:()=>yD,Terminal:()=>xD,TestTube:()=>CD,TestTubeDiagonal:()=>SD,TestTubes:()=>TD,TextAlignCenter:()=>wD,TextAlignEnd:()=>ED,TextAlignJustify:()=>DD,TextAlignStart:()=>kD,TextCursor:()=>AD,TextCursorInput:()=>OD,TextInitial:()=>jD,TextQuote:()=>MD,TextSearch:()=>ND,TextWrap:()=>pt,Theater:()=>PD,Thermometer:()=>LD,ThermometerSnowflake:()=>FD,ThermometerSun:()=>ID,ThumbsDown:()=>RD,ThumbsUp:()=>zD,Ticket:()=>KD,TicketCheck:()=>BD,TicketMinus:()=>VD,TicketPercent:()=>HD,TicketPlus:()=>UD,TicketSlash:()=>WD,TicketX:()=>GD,Tickets:()=>JD,TicketsPlane:()=>qD,Timeline:()=>YD,Timer:()=>QD,TimerOff:()=>XD,TimerReset:()=>ZD,ToggleLeft:()=>$D,ToggleRight:()=>eO,Toilet:()=>tO,ToolCase:()=>nO,Toolbox:()=>rO,Tornado:()=>iO,Torus:()=>aO,Touchpad:()=>sO,TouchpadOff:()=>oO,TowelRack:()=>cO,TowerControl:()=>lO,ToyBrick:()=>uO,Tractor:()=>dO,TrafficCone:()=>fO,TrainFront:()=>mO,TrainFrontTunnel:()=>pO,TrainTrack:()=>hO,TramFront:()=>gO,Transgender:()=>_O,Trash:()=>yO,Trash2:()=>vO,TreeDeciduous:()=>bO,TreePalm:()=>xO,TreePine:()=>SO,Trees:()=>wO,TrendingDown:()=>CO,TrendingUp:()=>EO,TrendingUpDown:()=>TO,Triangle:()=>AO,TriangleAlert:()=>DO,TriangleDashed:()=>OO,TriangleRight:()=>kO,Trophy:()=>jO,Truck:()=>NO,TruckElectric:()=>MO,TurkishLira:()=>PO,Turntable:()=>FO,Turtle:()=>IO,Tv:()=>zO,TvMinimal:()=>RO,TvMinimalPlay:()=>LO,Type:()=>VO,TypeOutline:()=>BO,Umbrella:()=>UO,UmbrellaOff:()=>HO,Underline:()=>WO,Undo:()=>YO,Undo2:()=>GO,UndoDot:()=>KO,UnfoldHorizontal:()=>qO,UnfoldVertical:()=>JO,Ungroup:()=>XO,University:()=>ZO,Unlink:()=>$O,Unlink2:()=>QO,Unplug:()=>ek,Upload:()=>tk,Usb:()=>nk,User:()=>Ck,UserCheck:()=>rk,UserCog:()=>ik,UserKey:()=>ok,UserLock:()=>sk,UserMinus:()=>ak,UserPen:()=>ck,UserPlus:()=>uk,UserRound:()=>vk,UserRoundCheck:()=>lk,UserRoundCog:()=>fk,UserRoundKey:()=>dk,UserRoundMinus:()=>pk,UserRoundPen:()=>mk,UserRoundPlus:()=>_k,UserRoundSearch:()=>hk,UserRoundX:()=>gk,UserSearch:()=>yk,UserStar:()=>bk,UserX:()=>xk,Users:()=>wk,UsersRound:()=>Sk,Utensils:()=>Ek,UtensilsCrossed:()=>Tk,UtilityPole:()=>Dk,Van:()=>Ok,Variable:()=>kk,Vault:()=>Ak,VectorSquare:()=>jk,Vegan:()=>Mk,VenetianMask:()=>Nk,Venus:()=>Fk,VenusAndMars:()=>Pk,Vibrate:()=>Ik,VibrateOff:()=>Lk,Video:()=>zk,VideoOff:()=>Rk,Videotape:()=>Vk,View:()=>Bk,Voicemail:()=>Uk,Volleyball:()=>Hk,Volume:()=>Jk,Volume1:()=>Wk,Volume2:()=>Gk,VolumeOff:()=>Kk,VolumeX:()=>qk,Vote:()=>Yk,Wallet:()=>Qk,WalletCards:()=>Xk,WalletMinimal:()=>Zk,Wallpaper:()=>$k,Wand:()=>eA,WandSparkles:()=>tA,Warehouse:()=>nA,WashingMachine:()=>rA,Watch:()=>iA,WavesArrowDown:()=>aA,WavesArrowUp:()=>oA,WavesHorizontal:()=>sA,WavesLadder:()=>cA,WavesVertical:()=>lA,Waypoints:()=>uA,Webcam:()=>dA,Webhook:()=>pA,WebhookOff:()=>fA,Weight:()=>hA,WeightTilde:()=>mA,Wheat:()=>_A,WheatOff:()=>gA,WholeWord:()=>yA,Wifi:()=>Ct,WifiCog:()=>vA,WifiHigh:()=>bA,WifiLow:()=>xA,WifiOff:()=>St,WifiPen:()=>SA,WifiSync:()=>CA,WifiZero:()=>wA,Wind:()=>EA,WindArrowDown:()=>TA,Wine:()=>OA,WineOff:()=>DA,Workflow:()=>kA,Worm:()=>AA,Wrench:()=>jA,X:()=>Dt,XLineTop:()=>MA,Zap:()=>PA,ZapOff:()=>NA,ZodiacAquarius:()=>FA,ZodiacAries:()=>LA,ZodiacCancer:()=>IA,ZodiacCapricorn:()=>zA,ZodiacGemini:()=>RA,ZodiacLeo:()=>BA,ZodiacLibra:()=>HA,ZodiacOphiuchus:()=>VA,ZodiacPisces:()=>UA,ZodiacSagittarius:()=>WA,ZodiacScorpio:()=>GA,ZodiacTaurus:()=>KA,ZodiacVirgo:()=>qA,ZoomIn:()=>JA,ZoomOut:()=>YA}),ZA=a(),Q=i(),QA=[{id:`work-overview`,domain:`work`,path:`/`},{id:`work-projects`,domain:`work`,path:`/projects`},{id:`work-notes`,domain:`work`,path:`/notes`}],$A=[{id:`automation-scenes`,domain:`automation`,path:`/scenes`},{id:`automation-triggers`,domain:`automation`,path:`/automations`},{id:`automation-workflows`,domain:`automation`,path:`/workflows`},{id:`automation-browser`,domain:`automation`,path:`/browser-automations`}],ej=[`skills`,`connectors`,`agents`,`channels`,`extensions`],tj=ej.map(e=>({id:`capabilities-${e}`,domain:`capabilities`,path:`/capabilities/${e}`}));function nj(e){return`/capabilities/${e}`}var rj=[{id:`work`,path:`/`,sections:QA},{id:`automation`,path:`/scenes`,sections:$A},{id:`capabilities`,path:`/capabilities/skills`,sections:tj},{id:`apps`,path:`/local-apps`,sections:[{id:`apps-library`,domain:`apps`,path:`/local-apps`}]},{id:`me`,path:`/user-model`,sections:[{id:`me-overview`,domain:`me`,path:`/user-model`}]}];function ij(e,t){return e===t||e.startsWith(`${t}/`)}function aj(e){return e===`/`||ij(e,`/chat`)||ij(e,`/tasks`)||ij(e,`/projects`)||ij(e,`/notes`)?`work`:ij(e,`/automations`)||ij(e,`/scenes`)||ij(e,`/workflows`)||ij(e,`/browser-automations`)?`automation`:ij(e,`/capabilities`)?`capabilities`:ij(e,`/local-apps`)||ij(e,`/open`)?`apps`:ij(e,`/user-model`)?`me`:null}function oj(e,t=``){if(e===`/`)return`work-overview`;if(ij(e,`/projects`))return`work-projects`;if(ij(e,`/notes`))return`work-notes`;if(ij(e,`/automations`))return`automation-triggers`;if(ij(e,`/scenes`))return`automation-scenes`;if(ij(e,`/workflows`))return`automation-workflows`;if(ij(e,`/browser-automations`))return`automation-browser`;if(ij(e,`/local-apps`)||ij(e,`/open`))return`apps-library`;if(ij(e,`/user-model`))return`me-overview`;if(ij(e,`/capabilities`)){let t=`capabilities-${e.split(`/`)[2]||`skills`}`;return tj.some(e=>e.id===t)?t:`capabilities-skills`}return null}var $=o(),sj={work:zl,automation:PA,capabilities:cv,apps:Al,me:vk};function cj(){let e=(0,Q.c)(10),{pathname:t}=b(),n=Pt(lj),r;e[0]===n?r=e[1]:(r=kt(n),e[0]=n,e[1]=r);let i=r.productNavigation,a;e[2]===t?a=e[3]:(a=aj(t),e[2]=t,e[3]=a);let o=a,s=i.primaryAria,c;e[4]!==o||e[5]!==i.domains?(c=rj.map(e=>{let t=sj[e.id],n=e.id===o;return(0,$.jsxs)(y,{to:e.path,"aria-current":n?`page`:void 0,className:q(`flex min-h-14 min-w-0 flex-1 flex-col items-center justify-center gap-1 px-1 text-xs font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,n?`text-accent-fg`:`text-fg-muted`),children:[(0,$.jsx)(t,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`max-w-full truncate`,children:i.domains[e.id]})]},e.id)}),e[4]=o,e[5]=i.domains,e[6]=c):c=e[6];let l;return e[7]!==i.primaryAria||e[8]!==c?(l=(0,$.jsx)(`nav`,{"aria-label":s,className:`flex shrink-0 border-t border-edge-subtle bg-surface-panel pb-[env(safe-area-inset-bottom)] md:hidden`,children:c}),e[7]=i.primaryAria,e[8]=c,e[9]=l):l=e[9],l}function lj(e){return e.language}var uj=yn({id:hn(),name:hn(),status:hn(),description:hn().optional(),brief:hn().optional(),updatedAt:pn()}),dj=yn({dependencyTaskId:hn(),dependentTaskId:hn()}),fj=yn({id:hn(),title:hn(),phase:Tn,resolution:wn.optional(),operationalState:Dn,priority:Cn,dueAt:pn().optional(),acceptanceCriteriaCount:pn().int().nonnegative(),latestVerification:vn([`passed`,`failed`,`unverified`]).optional(),nextCheckAt:pn().int().nonnegative().optional(),attention:gn(On).default([]),blockedBy:gn(Sn).default([]),allowedCommands:gn(hn()),updatedAt:pn()});yn({health:vn([`healthy`,`attention`,`idle`,`empty`]),summary:hn(),recommendedAction:hn().optional(),counts:yn({ready:pn().int().nonnegative(),moving:pn().int().nonnegative(),waiting:pn().int().nonnegative(),needsUser:pn().int().nonnegative(),done:pn().int().nonnegative()}),updatedAt:pn().int().nonnegative()});var pj=yn({project:uj,tasks:gn(fj),dependencyEdges:gn(dj),blockers:gn(yn({id:hn(),taskId:hn(),kind:hn(),title:hn(),detail:hn().optional(),href:hn().optional(),updatedAt:pn().optional()})),running:gn(yn({runId:hn(),definitionId:hn(),status:hn(),createdAt:pn()})),recentResults:gn(yn({taskId:hn(),taskTitle:hn(),receipt:En})),digest:yn({health:vn([`healthy`,`attention`,`idle`,`empty`]),summary:hn(),recommendedAction:hn().optional()})}),mj={workbench:[`webchat`,`web`,`ui`,`webui`,`gateway`],browser:[`browser_extension`],terminal:[`cli`,`tui`],telegram:[`telegram`],wechat:[`wechat`,`weixin`],feishu:[`feishu`,`lark`],api:[`api`,`mcp`],automation:[`automation`,`cron`],system:[`heartbeat`,`system`]},hj=[...Object.keys(mj),`other`],gj=[`chat`,`automation`,`workflow`,`subagent`,`system`],_j=yn({sources:gn(vn(hj)).max(hj.length).optional(),purposes:gn(vn(gj)).max(gj.length).optional(),activity:vn([`manual`,`automatic`]).optional(),agentId:hn().trim().min(1).max(128).optional(),excludeArchived:fn().optional()});function vj(e){let t=e.sourceChannel.trim().toLowerCase(),n=e.customData??{},r=`other`;for(let[e,n]of Object.entries(mj))n.includes(t)&&(r=e);n.createdSurface===`browser_extension`&&(r=`browser`),(n.origin===`automation`||n.triggerSource===`automation`||e.sessionType===`cron`)&&(r=`automation`),e.sessionType===`heartbeat`&&(r=`system`);let i=r===`system`?`system`:e.sessionType===`workflow-subagent`?`subagent`:e.sessionType===`workflow-run`?`workflow`:r===`automation`?`automation`:`chat`;return{source:r,purpose:i,automatic:r===`automation`||r===`system`}}function yj(e,t){return e.replace(/\{\{(\w+)}}/g,(e,n)=>t[n]?.trim()??``).replace(/[ \t]{2,}/g,` `).trim()}function bj(e,t,n){return{id:e,title:yj(t.title,n),prompt:yj(t.prompt,n),reason:yj(t.reason,n)}}function xj(e,t){let n={projectName:e.projectName,blockedReason:e.blockedReason,recentFailure:e.recentFailure,nextAction:e.recommendedAction};if(e.blockedReason?.trim())return bj(`project-blocked`,t.recommendations.projectBlocked,n);if(e.recentFailure?.trim())return bj(`project-failure`,t.recommendations.projectFailure,n);if(e.recommendedAction?.trim())return bj(`project-next-action`,t.recommendations.projectNextAction,n)}function Sj(e,t){let n={taskTitle:e.taskTitle,attentionSummary:e.attentionSummary,recentFailure:e.recentFailure,nextAction:e.nextAction};if(e.attentionSummary?.trim())return bj(`task-attention`,t.recommendations.taskAttention,n);if(e.recentFailure?.trim())return bj(`task-failure`,t.recommendations.taskFailure,n);if(e.phase===`review`||e.operationalState===`verifying`)return bj(`task-review`,t.recommendations.taskReview,n);if(e.phase===`closed`)return bj(`task-closed`,t.recommendations.taskClosed,n);if(e.nextAction?.trim())return bj(`task-next-action`,t.recommendations.taskNextAction,n)}function Cj(e,t){let n={workflowName:e.workflowName,recentFailure:e.recentFailure,nextAction:e.nextAction};if(e.recentFailure?.trim())return bj(`workflow-failure`,t.recommendations.workflowFailure,n);if(e.nextAction?.trim())return bj(`workflow-next-action`,t.recommendations.workflowNextAction,n);if(e.status===`succeeded`)return bj(`workflow-review`,t.recommendations.workflowReview,n)}function wj(e,t){switch(e.kind){case`project`:return xj(e,t);case`task`:return Sj(e,t);case`workflow`:return Cj(e,t);default:return}}function Tj(e,t,n={}){let r=n.contextStatus??`ready`;return{headline:e.kind===`project`&&t.projectHeadline?yj(t.projectHeadline,{projectName:e.projectName}):t.headline,contextKind:e.kind,contextStatus:r,recommendation:r===`ready`?wj(e,t):void 0}}function Ej(e){return e?.trim()||void 0}function Dj(e){return Ej(e)?.toLowerCase()}function Oj(){return{kind:`none`}}function kj(e){let t=Ej(e);return t?{kind:`project`,projectId:t}:Oj()}function Aj(){return{version:1,modelByAgent:{},executionModeByProject:{},lastChatScope:Oj()}}function jj(e){if(!e||typeof e!=`object`)return null;let t=e;if(t.kind===`none`)return Oj();if(t.kind!==`project`||typeof t.projectId!=`string`)return null;let n=Ej(t.projectId);return n?{kind:`project`,projectId:n}:null}function Mj(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e)){let e=Dj(n);if(!e||!r||typeof r!=`object`)continue;let i=r,a=typeof i.modelRef==`string`?Ej(i.modelRef):void 0;if(!a)continue;let o=typeof i.thinkingLevel==`string`?Ej(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 Nj(e){return!e||typeof e!=`object`||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).flatMap(([e,t])=>{let n=Ej(e);return n&&(t===`local_checkout`||t===`managed_worktree`)?[[n,t]]:[]}))}function Pj(e){let t=Aj();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`?Dj(n.selectedAgentId):void 0;return{version:1,...r?{selectedAgentId:r}:{},modelByAgent:Mj(n.modelByAgent),executionModeByProject:Nj(n.executionModeByProject),lastChatScope:jj(n.lastChatScope)??Oj()}}function Fj(e,t){let n=Dj(t),{selectedAgentId:r,...i}=e;return n?{...i,selectedAgentId:n}:i}function Ij(e,t,n){let r=Dj(t);if(!r)return e;let i={...e.modelByAgent},a=n?Ej(n.modelRef):void 0;if(!n||!a)delete i[r];else{let e=Ej(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 Lj(e,t){let n=Ej(t);return{...e,lastChatScope:n?{kind:`project`,projectId:n}:Oj()}}function Rj(e,t){let n=Dj(t);return n?e.modelByAgent[n]:void 0}function zj(e,t,n){let r=Ej(t);if(!r)return e;let i={...e.executionModeByProject};return n===`local_checkout`||n===`managed_worktree`?i[r]=n:delete i[r],{...e,executionModeByProject:i}}function Bj(e,t){let n=Ej(t);return n?e.executionModeByProject[n]:void 0}function Vj(e,t){return e.kind===`project`?kj(e.projectId):e.kind===`none`?Oj():e.kind===`inherit-current`?kj(t.currentSession?.projectId??``):t.lastChatScope?.kind===`project`?kj(t.lastChatScope.projectId):Oj()}function Hj(e,t){let n=Vj(e.project,t),r=Dj(e.agentId)??(e.project.kind===`inherit-current`?Dj(t.currentSession?.agentId):void 0)??Dj(t.projectDefaultAgentId)??Dj(t.selectedAgentId)??Dj(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 Uj(e,t){return[Ej(e)??`default`,Dj(t.agentId)??`main`,Ej(t.projectId)??`none`].join(`:`)}var Wj=cn(`kind`,[yn({kind:_n(`scene_result`),activationId:hn().min(1),presentationId:hn().min(1)}),yn({kind:_n(`scene_digest`),digestId:hn().min(1)}),yn({kind:_n(`chat`),conversationId:hn().min(1)}),yn({kind:_n(`task`),taskId:hn().min(1)}),yn({kind:_n(`home`)}),yn({kind:_n(`automation_run`),automationId:hn().min(1),runId:hn().min(1)}),yn({kind:_n(`work_discovery`),runId:hn().min(1),conversationId:hn().min(1)})]),Gj=vn([`scene.result`,`scene.digest`,`chat.completed`,`chat.failed`,`task.needs_input`,`task.blocked`,`task.failed`,`task.completed`,`automation.completed`,`automation.failed`,`work_discovery.completed`,`work_discovery.failed`,`home.opportunity`]),Kj=yn({en:hn().min(1).max(500),zh:hn().min(1).max(500)}),qj=yn({schemaVersion:_n(1),id:hn().min(1).max(160),type:Gj,target:Wj,priority:vn([`normal`,`high`]),title:Kj,body:Kj.optional(),payload:iee(hn(),un()),createdAt:pn().int().nonnegative()});function Jj(e,t){return{...e,localizedTitle:e.title[t],...e.body?{localizedBody:e.body[t]}:{}}}function Yj(e,t){switch(e.kind){case`scene_result`:return`/scenes/${encodeURIComponent(e.activationId)}?result=${encodeURIComponent(e.presentationId)}`;case`scene_digest`:return`/scenes/inbox?digest=${encodeURIComponent(e.digestId)}`;case`chat`:return`/chat/${encodeURIComponent(e.conversationId)}`;case`task`:return`/tasks/${encodeURIComponent(e.taskId)}`;case`home`:return`/`;case`automation_run`:return t===`mobile`?`/automation/runs/${encodeURIComponent(e.runId)}`:`/automations?automation=${encodeURIComponent(e.automationId)}&run=${encodeURIComponent(e.runId)}`;case`work_discovery`:return t===`web`?`/user-model?workDiscovery=review&run=${encodeURIComponent(e.runId)}`:`/chat/${encodeURIComponent(e.conversationId)}`}}function Xj(e,t,n){for(let r of[n,t])if(e.options.includes(r))return r;return e.initialValue}var Zj=7200*1e3,Qj=1024*1024*1024,$j=8*1024*1024;function eM(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:`调整后续判断`,evidence:`证据引用`,useful:`有帮助`,notUseful:`没帮助`,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:`被阻塞`,failed:`执行失败`,cancelled:`执行已取消`,needsUser:`需要你处理`,review:`等待验收`,completed:`已完成`,ended:`已结束`,paused:`已暂停`},detailStatusDescriptions:{captured:`任务已记录,但尚未进入执行队列。安排后,xopc 会开始推进。`,ready:`任务已经准备好,可以交给 xopc 开始执行。`,queued:`任务已进入执行队列,xopc 将在资源可用时开始。`,running:`xopc 正在推进这个任务。`,verifying:`xopc 正在根据完成标准核验结果。`,waiting:`任务正在等待外部条件满足。`,blocked:`当前存在阻塞条件,解除后才能继续。`,failed:`最近一次执行失败;查看运行记录后可以重试。`,cancelled:`最近一次执行已取消;任务仍可重新开始。`,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:`安排执行`,scheduleRecurringTask:`定时执行`,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:`Follow-up policy`,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`,evidence:`Evidence references`,useful:`Useful`,notUseful:`Not useful`,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`,failed:`Execution failed`,cancelled:`Execution cancelled`,needsUser:`Needs your attention`,review:`Ready for review`,completed:`Completed`,ended:`Ended`,paused:`Paused`},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.`,failed:`The latest run failed. Review its result before retrying.`,cancelled:`The latest run was cancelled. This task can be started again.`,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:`Automatic progress and reminders are paused. Other waiting conditions still apply after resuming.`},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:`Helpful result`,needsFix:`Unhelpful result`,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`,scheduleRecurringTask:`Schedule`,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`}}}function tM(e,t){return e?[`task-detail`,e,t??``]:null}function nM(e,t){return t.source!==`user`||e===void 0||t.version>e}function rM(e){let t=At(e=>e.conversationId),[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=Xr(tM(e,t),()=>oe(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.activeConversationId)return;let n=`${e}:${t.task.version}`;c.current!==n&&(c.current=n,a(!0),s(null),ve(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=kn.safeParse(t.detail);!i.success||i.data.taskId!==e||nM(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}}function iM(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 aM=(0,Z.memo)(function(e){let t=(0,Q.c)(50),{taskId:n}=e,r=b(),i=Pt(oM),a;t[0]===i?a=t[1]:(a=eM(i),t[0]=i,t[1]=a);let o=a,{data:s}=rM(n);if(!s)return null;let{task:c,operationalState:l}=s,u=s.receipts[0],d=s.attention.length>0,f;t[2]!==l||t[3]!==c.phase?(f=c.phase!==`closed`&&[`queued`,`running`,`verifying`].includes(l),t[2]=l,t[3]=c.phase,t[4]=f):f=t[4];let p=f,m=d?s.attention[0]?.summary??u?.nextAction??u?.summary:c.phase===`closed`?u?.summary:u?.nextAction??u?.summary??o.noDecisionNeeded,h;t[5]===u?.evidence?h=t[6]:(h=u?.evidence.filter(sM).length??0,t[5]=u?.evidence,t[6]=h);let g=h,_=o.taskProgress.title,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(_D,{className:`size-4`,"aria-hidden":!0}),t[7]=v):v=t[7];let x;t[8]===p?x=t[9]:(x=p?(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]=p,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:[v,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]!==l||t[15]!==c.phase?(w=q(`rounded-full border px-1.5 py-0.5 text-[10px] font-medium`,iM(c.phase,l)),t[14]=l,t[15]=c.phase,t[16]=w):w=t[16];let T;t[17]!==l||t[18]!==w||t[19]!==c.phase?(T=(0,$.jsxs)(`span`,{className:w,children:[c.phase,` · `,l]}),t[17]=l,t[18]=w,t[19]=c.phase,t[20]=T):T=t[20];let E;t[21]!==o.taskProgress.evidence||t[22]!==g?(E=g>0?(0,$.jsxs)(`span`,{className:`text-[11px] text-fg-muted`,children:[g,` `,o.taskProgress.evidence]}):null,t[21]=o.taskProgress.evidence,t[22]=g,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]===m?k=t[31]:(k=m?(0,$.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-5 text-fg-muted`,children:m}):null,t[30]=m,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=Se(j,c.id),t[36]=j,t[37]=c.id,t[38]=M):M=t[38];let N=d?o.taskProgress.decide:o.taskProgress.open,P;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,$.jsx)(te,{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":_,"aria-live":`polite`,children:I}),t[47]=o.taskProgress.title,t[48]=I,t[49]=L):L=t[49],L});function oM(e){return e.language}function sM(e){return e.strength===`verified`}function cM(e){return`${Math.floor(e/60)}:${(e%60).toString().padStart(2,`0`)}`}function lM(e){let t=(0,Q.c)(8),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onAgentDecide:s,onCancel:c}=e;if(!n)return null;let l;return t[0]!==a||t[1]!==s||t[2]!==c||t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==r?(l=(0,$.jsx)(uM,{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onAgentDecide:s,onCancel:c},n.requestId),t[0]=a,t[1]=s,t[2]=c,t[3]=o,t[4]=n,t[5]=i,t[6]=r,t[7]=l):l=t[7],l}function uM(e){let t=(0,Q.c)(70),{prompt:n,submitting:r,submitError:i,labels:a,onSubmit:o,onAgentDecide:s,onCancel:c}=e,[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(0),p=(0,Z.useRef)(null),m,h;t[0]===n.expiresAt?(m=t[1],h=t[2]):(m=()=>{if(!n.expiresAt)return;let e=window.setInterval(()=>f(dM),1e3);return()=>window.clearInterval(e)},h=[n.expiresAt],t[0]=n.expiresAt,t[1]=m,t[2]=h),(0,Z.useEffect)(m,h);let g,_;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{p.current?.focus()},_=[],t[3]=g,t[4]=_):(g=t[3],_=t[4]),(0,Z.useEffect)(g,_);let v;t[5]===o?v=t[6]:(v=e=>{o(e)},t[5]=o,t[6]=v);let y=v,b=n.expiresAt?Math.max(0,Math.ceil((n.expiresAt-Date.now())/1e3)):null,x=`clarify-meta-${n.requestId}`,S=i?`clarify-err-${n.requestId}`:void 0,C;t[7]!==c||t[8]!==r?(C=e=>{e.key===`Escape`&&!r&&(e.preventDefault(),e.stopPropagation(),c())},t[7]=c,t[8]=r,t[9]=C):C=t[9];let w=C,T=Array.isArray(n.choices)&&n.choices.length>=2,E;t[10]!==a.clarifySuggestedChoice||t[11]!==n.suggestedAnswer?(E=n.suggestedAnswer?a.clarifySuggestedChoice.replace(`{{text}}`,n.suggestedAnswer):null,t[10]=a.clarifySuggestedChoice,t[11]=n.suggestedAnswer,t[12]=E):E=t[12];let D=E,O;t[13]!==a.clarifyTimeRemaining||t[14]!==b?(O=b===null?null:a.clarifyTimeRemaining.replace(`{{time}}`,cM(b)),t[13]=a.clarifyTimeRemaining,t[14]=b,t[15]=O):O=t[15];let k=O,A=a.clarifyRegionAria,j;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(j=q(`mb-4 rounded-lg border border-edge bg-surface-panel px-4 py-3 text-sm text-fg shadow-sm outline-none`,$r.focusRingPanel),t[16]=j):j=t[16];let M;t[17]===a.clarifyResumeHint?M=t[18]:(M=(0,$.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:a.clarifyResumeHint}),t[17]=a.clarifyResumeHint,t[18]=M);let N;t[19]===n.question?N=t[20]:(N=(0,$.jsx)(Ne,{content:n.question,compact:!0,className:`mb-3`}),t[19]=n.question,t[20]=N);let P=n.kind===`approval`?a.clarifyApprovalTimeout:a.clarifyDurableNote,F;t[21]===P?F=t[22]:(F=(0,$.jsx)(`li`,{children:P}),t[21]=P,t[22]=F);let I;t[23]===k?I=t[24]:(I=k?(0,$.jsx)(`li`,{children:k}):null,t[23]=k,t[24]=I);let L;t[25]!==x||t[26]!==F||t[27]!==I?(L=(0,$.jsxs)(`ul`,{id:x,className:`mb-3 list-inside list-disc space-y-1 text-xs text-fg-muted`,children:[F,I]}),t[25]=x,t[26]=F,t[27]=I,t[28]=L):L=t[28];let R;t[29]!==S||t[30]!==i?(R=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[29]=S,t[30]=i,t[31]=R):R=t[31];let z;t[32]!==l||t[33]!==T||t[34]!==a.clarifyChoicesGroupAria||t[35]!==a.clarifyCustomLabel||t[36]!==a.clarifyPlaceholder||t[37]!==a.clarifySend||t[38]!==a.clarifyUseSuggested||t[39]!==o||t[40]!==y||t[41]!==n.choices||t[42]!==n.suggestedAnswer||t[43]!==r||t[44]!==D?(z=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)(X,{type:`button`,variant:`secondary`,disabled:r,className:q(`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.suggestedAnswer?(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:r,className:q(`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.suggestedAnswer),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=l.trim();t&&o(t)},children:[(0,$.jsx)(`input`,{type:`text`,value:l,onChange:e=>u(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)(X,{type:`submit`,variant:`primary`,disabled:r||!l.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=l.trim();t&&(o(t),u(``))},children:[(0,$.jsx)(`input`,{type:`text`,value:l,onChange:e=>u(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)(X,{type:`submit`,variant:`primary`,disabled:r||!l.trim(),className:`shrink-0 rounded-lg px-4 py-2 shadow-surface`,children:a.clarifySend}),n.suggestedAnswer?(0,$.jsx)(X,{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.suggestedAnswer),children:a.clarifyUseSuggested}):null]}),t[32]=l,t[33]=T,t[34]=a.clarifyChoicesGroupAria,t[35]=a.clarifyCustomLabel,t[36]=a.clarifyPlaceholder,t[37]=a.clarifySend,t[38]=a.clarifyUseSuggested,t[39]=o,t[40]=y,t[41]=n.choices,t[42]=n.suggestedAnswer,t[43]=r,t[44]=D,t[45]=z):z=t[45];let B;t[46]!==a.clarifyAgentDecide||t[47]!==s||t[48]!==n.kind||t[49]!==r?(B=n.kind===`input`&&s?(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:r,className:`text-fg-muted hover:text-fg`,onClick:()=>void s(),children:a.clarifyAgentDecide}):null,t[46]=a.clarifyAgentDecide,t[47]=s,t[48]=n.kind,t[49]=r,t[50]=B):B=t[50];let V;t[51]===c?V=t[52]:(V=()=>void c(),t[51]=c,t[52]=V);let H;t[53]!==a.clarifyCancel||t[54]!==r||t[55]!==V?(H=(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:r,className:`text-fg-muted hover:text-fg`,onClick:V,children:a.clarifyCancel}),t[53]=a.clarifyCancel,t[54]=r,t[55]=V,t[56]=H):H=t[56];let U;t[57]!==B||t[58]!==H?(U=(0,$.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center justify-end gap-2 border-t border-edge-subtle pt-3`,children:[B,H]}),t[57]=B,t[58]=H,t[59]=U):U=t[59];let W;return t[60]!==a.clarifyRegionAria||t[61]!==x||t[62]!==w||t[63]!==M||t[64]!==N||t[65]!==L||t[66]!==R||t[67]!==z||t[68]!==U?(W=(0,$.jsxs)(`section`,{ref:p,tabIndex:-1,"aria-label":A,"aria-describedby":x,onKeyDown:w,className:j,children:[M,N,L,R,z,U]}),t[60]=a.clarifyRegionAria,t[61]=x,t[62]=w,t[63]=M,t[64]=N,t[65]=L,t[66]=R,t[67]=z,t[68]=U,t[69]=W):W=t[69],W}function dM(e){return e+1}function fM(e){if(typeof e==`string`)try{return fM(JSON.parse(e))}catch{return null}return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function pM(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>t[n]??``)}function mM(e){return e.trim().toLowerCase().replace(/-/g,`_`).split(`__`).at(-1)?.split(`.`).at(-1)??``}var hM={automation:`automation`,browser_automation:`browser`,browser_use:`browser`,clarify:`clarification`,computer_use:`computer`,create_desktop_pet:`desktopPet`,create_share:`share`,delegate_task:`delegation`,image_generate:`imageGeneration`,image:`imageInspection`,language_diagnostics:`diagnostics`,managed_job:`job`,memory_maintenance:`memoryMaintenance`,knowledge_get:`memoryRead`,knowledge_write:`memoryUpdate`,user_context_get:`memoryRead`,user_context_update:`memoryUpdate`,publish_artifacts:`publish`,update_plan:`planning`,read_media:`mediaRead`,review_workspace:`review`,send_media:`mediaSend`,send_message:`message`,session_recall:`sessionRecall`,session_search:`sessionSearch`,session_status:`sessionStatus`,skill_install:`skillInstall`,skill_manage:`skillManage`,skills_marketplace_search:`skillSearch`,skills_list:`skillSearch`,skill_view:`skillView`,text_to_speech:`speech`,structured_output:`structuredOutput`,todo:`todo`,tool_manual:`manual`,web_extract:`webExtract`,workflow:`workflow`,xopc_require_connection:`connection`};function gM(e){let t=mM(e);return t===`xopc_use`||t in hM}var _M=new Set([`list`,`get`,`get_card`,`history`,`list_milestones`,`list_updates`,`mail_sources`,`preview_edit`,`resolve_workspace`]),vM=new Set([`create`,`create_milestone`,`create_update`,`follow_up`,`start`]),yM=new Set([`add_context`,`append`,`command`,`remove_context`,`update`,`update_dependencies`,`update_follow_up`,`update_milestone`]),bM=new Set([`delete`]),xM=new Set([`run`,`resume`]),SM=new Set([`cancel`,`pause`]),CM=new Set([`check`,`validate`]),wM=new Set([`open`]),TM=new Set([`continue_card`]);function EM(e){return _M.has(e)?`inspect`:vM.has(e)?`create`:yM.has(e)?`update`:bM.has(e)?`remove`:xM.has(e)?`run`:SM.has(e)?`stop`:CM.has(e)?`validate`:wM.has(e)?`open`:TM.has(e)?`continue`:`use`}function DM(e,t){return e===`project`&&t.includes(`milestone`)?`milestone`:e===`project`&&t.includes(`update`)?`projectUpdate`:e===`project`?`project`:e===`automation`?`automation`:e===`note`?`note`:e===`task`?`task`:e===`task_run`?`taskRun`:e===`local_app`?`localApp`:e===`settings`?`settings`:e===`context`?`context`:e===`scene`?`scene`:e===`chat_preview`?`chatPreview`:`productItem`}function OM(e){return(e.trim().split(`__`).at(-1)?.split(`.`).at(-1)??e.trim()).replace(/[-_]+/g,` `).replace(/\s+/g,` `).trim()||`tool`}var kM={list:`inspect`,get:`inspect`,read:`inspect`,fetch:`inspect`,find:`inspect`,search:`inspect`,query:`inspect`,create:`create`,add:`create`,generate:`create`,install:`create`,update:`update`,edit:`update`,write:`update`,append:`update`,set:`update`,delete:`remove`,remove:`remove`,uninstall:`remove`,run:`run`,execute:`run`,start:`run`,trigger:`run`,stop:`stop`,cancel:`stop`,pause:`stop`,validate:`validate`,check:`validate`,test:`validate`,verify:`validate`,analyze:`validate`,review:`validate`,open:`open`,navigate:`open`,continue:`continue`,resume:`continue`};function AM(e,t,n){let[r,...i]=OM(e).split(` `),a=kM[r.toLowerCase()],o=i.join(` `).trim();return!a||!o?null:pM(n.actions[a][t],{object:o})}function jM(e,t,n,r,i,a){let o=mM(e);if(o===`xopc_use`){let e=fM(t),i=typeof e?.mode==`string`?e.mode.trim().toLowerCase():``,a=typeof e?.command==`string`?e.command.trim().toLowerCase():``,o=EM(a),s=DM(i,a);return pM(r.actions[o][n],{object:r.objects[s]})}let s=hM[o];if(s){let e=r.builtins[s][n],i=fM(t),a=s===`skillView`?i?.name:void 0;return typeof a==`string`&&a.trim()?`${e} · ${a.trim().replace(/\s+/g,` `).slice(0,100)}`:e}let c=a??Ur(e,n===`running`?`running`:`completed`);return c.category!==`other`||c.action!==`use`?NM(e,i,c):AM(e,n,r)??pM(r.fallback[n],{name:OM(e)})}function MM(e,t){if(e===`user_context_search`||e===`knowledge_search`)return`memorySearch`;let n=t??Ur(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 NM(e,t,n){let r=n??Ur(e,`running`);if(r.category===`planning`)return t.updatePlan??t.unknownTool.replace(`{{name}}`,e);let i=MM(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 PM(e,t){if(!e.payload)throw Error(e.error??t);return e.payload}async function FM(){return PM(await J(Y(`/api/connectors/catalog`)),`Could not load connector catalog.`).connectors}async function IM(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),PM(await J(Y(`/api/connectors/composio/catalog${t.size?`?${t.toString()}`:``}`)),`Could not load Composio catalog.`)}async function LM(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),PM(await J(Y(`/api/capabilities/connectors${t.size?`?${t.toString()}`:``}`)),`Could not load Store connector capabilities.`)}async function RM(e,t){return PM(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 zM(e,t,n,r){let i=await J(Y(`/api/capabilities/connectors/${encodeURIComponent(e)}/install`),{method:`POST`,body:JSON.stringify({...t,version:n,reviewHash:r})});return ni(),PM(i,`Could not install Store connector.`).instance}async function BM(){return PM(await J(Y(`/api/connectors/installed`)),`Could not load installed connectors.`).instances}async function VM(e,t){return PM(await J(Y(`/api/connectors/${encodeURIComponent(e)}/auth/start`),{method:`POST`,body:JSON.stringify({accountId:t})}),`Could not start connector authorization.`).authorization}async function HM(e,t=12e4){let n=Date.now()+t;for(;Date.now()<n;){let t=(await BM()).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 UM(){return PM(await J(Y(`/api/connectors/composio/setup-status`)),`Could not check the connection service.`)}async function WM(e,t){PM(await J(Y(`/api/connectors/composio/setup`),{method:`POST`,body:JSON.stringify({apiKey:e,replaceBackendId:t})}),`Could not enable the connection service.`)}async function GM(e){await J(Y(`/api/connectors/composio/setup`),{method:`POST`,body:JSON.stringify(e)})}async function KM(e){await J(Y(`/api/connectors/composio/backends/${encodeURIComponent(e)}`),{method:`DELETE`})}async function qM(e){await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}`),{method:`DELETE`})}async function JM(e,t){let n=await J(Y(`/api/connectors/${encodeURIComponent(e)}/install`),{method:`POST`,body:JSON.stringify(t)});return ni(),PM(n,`Could not install connector.`).instance}async function YM(e,t={}){return PM(await J(Y(`/api/connectors/preview`),{method:`POST`,body:JSON.stringify({...t,definition:e})}),`Could not preview connector capabilities.`).preview}async function XM(e,t){return PM(await J(Y(`/api/connectors/${encodeURIComponent(e)}/config`),{method:`POST`,body:JSON.stringify(t)}),`Could not update connector config.`).instance}async function ZM(e){await J(Y(`/api/connectors/${encodeURIComponent(e)}`),{method:`DELETE`}),ni()}async function QM(e){return PM(await J(Y(`/api/connectors/${encodeURIComponent(e)}/test`),{method:`POST`}),`Connector test failed.`)}async function $M(){return PM(await J(Y(`/api/connectors/composio/connections`)),`Could not load Composio connections.`).connections}async function eN(e){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/auth-configs`)),`Could not load Composio auth configs.`).auth}async function tN(e,t,n=12e4,r){let i=Date.now()+n,a=1500;for(;Date.now()<i;){if(r){let e=await nN(r);if(e.status===`failed`)throw Error(`Authorization failed or a different account was authorized. The original account was not changed.`);if(e.status===`expired`)throw Error(`Authorization expired. Start a new connection.`);if(e.status!==`succeeded`){await new Promise(e=>window.setTimeout(e,a)),a=Math.min(5e3,a*1.5);continue}}let n=(await $M().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 nN(e){return PM(await J(Y(`/api/connectors/composio/authorizations/${encodeURIComponent(e)}`)),`Could not check authorization.`).attempt}async function rN(e,t){return PM(await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)}),`Could not update Composio connection.`).connection}async function iN(e,t){await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})}async function aN(e){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/health`)),`Could not check Composio connector health.`).health}async function oN(e){await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}/refresh`),{method:`POST`})}async function sN(e){await J(Y(`/api/connectors/composio/connections/${encodeURIComponent(e)}`),{method:`DELETE`})}async function cN(e){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/scope`)),`Could not load Composio scope.`).scope}async function lN(e,t){let n=await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/scope`),{method:`POST`,body:JSON.stringify({scope:t})});return ni(),PM(n,`Could not update Composio scope.`).scope}async function uN(e){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/policy`)),`Could not load Composio policy.`)}async function dN(e,t){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/policy`),{method:`PATCH`,body:JSON.stringify(t)}),`Could not update Composio policy.`).policy}async function fN(e){return PM(await J(Y(`/api/connectors/composio/${encodeURIComponent(e)}/tools`)),`Could not load Composio tools.`).tools}async function pN(e=50){return PM(await J(Y(`/api/connectors/composio/triggers?limit=${encodeURIComponent(String(e))}`)),`Could not load Composio trigger events.`).events}async function mN(e){return PM(await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}/learning`),{method:`POST`}),`Could not start learning from this connection.`).job}async function hN(){return PM(await J(Y(`/api/connectors/learning`)),`Could not load connector learning jobs.`).jobs}async function gN(e){return PM(await J(Y(`/api/connectors/composio/accounts/${encodeURIComponent(e)}/sync-policy`)),`Could not load connector sync policy.`).policy}async function _N(e,t){return PM(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 vN(e){return PM(await J(Y(`/api/connectors/${encodeURIComponent(e)}/source-sync`),{method:`POST`}),`Could not sync connector source.`)}async function yN(e=`pending`){return PM(await J(Y(`/api/connectors/approvals?status=${encodeURIComponent(e)}`)),`Could not load connector approvals.`).approvals}async function bN(e,t){return PM(await J(Y(`/api/connectors/approvals/respond`),{method:`POST`,body:JSON.stringify({id:e,decision:t})}),`Could not update connector approval.`).approval}async function xN(e,t){let n=await J(Y(`/api/connectors/${encodeURIComponent(e)}/${t?`enable`:`disable`}`),{method:`POST`});return ni(),PM(n,`Could not update connector state.`).instance}function SN({voice:e,conversationId:t,m:n}){let r=At(e=>e.conversationId),[i,a]=(0,Z.useState)(!1),o=(0,Z.useRef)(!1),s=(0,Z.useRef)(null),[c,l]=(0,Z.useState)(null),u=Xr(r?[`voice-approvals`,t,r]:null,()=>yN(),{refreshInterval:3e3}),d=u.data?.filter(e=>e.conversationId===t)??[],f=async e=>{if(!o.current){o.current=!0,a(!0),l(null);try{await e()}catch(e){l(e instanceof Error?e.message:String(e))}finally{o.current=!1,a(!1)}}},p=(t,n)=>{let r=e.clarification;if(!r)return;let i=`${r.requestId}\n${r.version}\n${t}\n${n??``}`;return s.current?.signature!==i&&(s.current={signature:i,idempotencyKey:crypto.randomUUID()}),f(async()=>{await J(Y(`/api/clarifications/${encodeURIComponent(r.requestId)}/responses`),{method:`POST`,body:JSON.stringify({action:t,answer:n,expectedVersion:r.version,idempotencyKey:s.current.idempotencyKey})}),s.current=null,e.dismissClarification(r.requestId)})};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:[NM(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)(lM,{prompt:e.clarification,labels:n,submitting:i,submitError:c,onSubmit:e=>p(`answer`,e),onAgentDecide:()=>p(`agent_decide`),onCancel:()=>p(`cancel`)}),d.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)(X,{variant:`secondary`,disabled:i,onClick:()=>void f(async()=>{await bN(e.id,t),await u.mutate()}),children:t===`approved`?n.callApprove:n.callDeny},t))})]},e.id)),c&&!e.clarification?(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-red-600`,children:c}):null]})}function CN(e,t){let n=(0,Q.c)(13),r=At(TN),i=At(wN),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 Hr(e)?void 0:(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=Xr(a,o,s),{mutate:l}=c,u,d;return n[8]!==e||n[9]!==l||n[10]!==t?(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`,`task-collaboration-entry-added`,`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]=e,n[9]=l,n[10]=t,n[11]=u,n[12]=d):(u=n[11],d=n[12]),(0,Z.useEffect)(u,d),c}function wN(e){return e.baseUrl}function TN(e){return e.conversationId}function EN(e){let t=(0,Q.c)(22),{conversationId:n}=e,{data:r}=CN(n,!0),i=Pt(DN),{pathname:a,search:o}=b(),s,c,l,u,d,f;if(t[0]!==r?.work.delegatedTaskCount||t[1]!==r?.work.delegatedTasks||t[2]!==i||t[3]!==a||t[4]!==o){f=Symbol.for(`react.early_return_sentinel`);bb0:{let e=r?.work.delegatedTasks?.slice(0,3)??[];if(!e.length){f=null;break bb0}l=`rounded-lg border border-edge bg-surface-panel p-3`,u=i===`zh`?`后台任务`:`Background tasks`,d=(0,$.jsxs)(`h3`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:[i===`zh`?`后台任务`:`Background tasks`,` · `,r?.work.delegatedTaskCount??e.length]}),s=`space-y-1`;let n;t[11]!==a||t[12]!==o?(n=e=>(0,$.jsxs)(y,{to:Se(`${a}${o}`,e.id),className:`flex min-w-0 items-center gap-2 rounded-md px-1 py-1 text-xs text-fg hover:bg-surface-hover`,children:[(0,$.jsx)(_D,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.latestUpdate?.body,children:[e.title,e.latestUpdate?(0,$.jsx)(`span`,{className:`block truncate text-fg-subtle`,children:e.latestUpdate.body}):null]}),(0,$.jsx)(`span`,{className:`shrink-0 text-fg-subtle`,children:e.runStatus??e.phase})]},e.id),t[11]=a,t[12]=o,t[13]=n):n=t[13],c=e.map(n)}t[0]=r?.work.delegatedTaskCount,t[1]=r?.work.delegatedTasks,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f}else s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10];if(f!==Symbol.for(`react.early_return_sentinel`))return f;let p;t[14]!==s||t[15]!==c?(p=(0,$.jsx)(`div`,{className:s,children:c}),t[14]=s,t[15]=c,t[16]=p):p=t[16];let m;return t[17]!==l||t[18]!==u||t[19]!==d||t[20]!==p?(m=(0,$.jsxs)(`section`,{className:l,"aria-label":u,children:[d,p]}),t[17]=l,t[18]=u,t[19]=d,t[20]=p,t[21]=m):m=t[21],m}function DN(e){return e.language}var ON=It()(ai(e=>({captions:!0,microphoneId:``,setCaptions:t=>e({captions:t}),setMicrophoneId:t=>e({microphoneId:t})}),{name:`xopc-voice-preferences`}));function kN(){let e=ON.getState().microphoneId;return{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,...e?{deviceId:{exact:e}}:{}}}function AN(e,t,n,r){let i=e.get(t);if(i&&(n<i.revision||i.final&&!r||n===i.revision&&(i.final||!r)))return!1;if(!e.has(t)&&e.size>=256){let t=e.keys().next().value;t!==void 0&&e.delete(t)}return e.set(t,{revision:n,final:r}),!0}var jN=vn([`transcription`,`transcription.stream`,`speech`,`speech.stream`,`conversation`]),MN=ln({protocolVersion:_n(1),serviceVersion:pn().int().positive(),modes:gn(jN),transport:_n(`websocket-pcm`),inputFormat:ln({encoding:_n(`pcm_s16le`),sampleRate:_n(16e3),channels:_n(1)}),outputFormat:ln({encoding:_n(`pcm_s16le`),sampleRate:_n(24e3),channels:_n(1)}),turnDetection:gn(_n(`server_vad`)),bargeIn:fn(),tools:fn(),resumable:_n(!1),voices:gn(ln({id:hn().min(1),name:hn(),languages:gn(hn()),gender:vn([`female`,`male`]).optional(),style:hn().optional(),description:hn().optional()})),defaultVoice:hn().min(1).optional(),limits:ln({maxFrameBytes:pn().int().positive().max(65536),maxSessionSeconds:pn().int().positive()})}),NN=ln({mode:jN,model:hn().min(1).max(200),voice:hn().min(1).max(200).optional()}),PN=ln({revision:hn().min(1),catalogVersion:hn().nullable(),selections:gn(NN),models:gn(ln({id:hn(),name:hn(),voice:MN}))}),FN=32,IN=1481592883,LN=3,RN=1,zN=2,BN=1,VN=64*1024,HN=new TextEncoder,UN=new TextDecoder(`utf-8`,{fatal:!0});function WN(e){let t=HN.encode(e.id);if(!t.length||t.length>160||!Number.isInteger(e.connectionEpoch)||e.connectionEpoch<1||e.connectionEpoch>4294967295||!Number.isInteger(e.seq)||e.seq<1||e.seq>4294967295||!Number.isFinite(e.timestampMs)||e.timestampMs<0||e.durationMs!==20||e.flags<0||e.flags>3||!e.audio.length||e.audio.length%2||FN+t.length+e.audio.length>VN)throw Error(`Invalid voice media frame`);let n=new Uint8Array(FN+t.length+e.audio.length),r=new DataView(n.buffer);return r.setUint32(0,IN),r.setUint8(4,LN),r.setUint8(5,e.kind),r.setUint8(6,BN),r.setUint8(7,e.flags),r.setUint32(8,e.connectionEpoch),r.setUint32(12,e.seq),r.setFloat64(16,e.timestampMs),r.setUint16(24,e.durationMs),r.setUint16(26,t.length),r.setUint32(28,e.audio.length),n.set(t,FN),n.set(e.audio,FN+t.length),n}function GN(e,t){if(e.length<=FN||e.length>VN)throw Error(`Invalid voice media frame`);let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n.getUint8(5),i=n.getUint32(8),a=n.getUint32(12),o=n.getFloat64(16),s=n.getUint16(24),c=n.getUint16(26),l=n.getUint32(28),u=FN+c,d=n.getUint8(7);if(n.getUint32(0)!==IN||n.getUint8(4)!==LN||r!==t||n.getUint8(6)!==BN||d>3||!i||!a||!Number.isFinite(o)||o<0||s!==20||!c||c>160||!l||l%2||u+l!==e.length)throw Error(`Invalid voice media header`);return{kind:r,connectionEpoch:i,id:UN.decode(e.subarray(FN,u)),seq:a,timestampMs:o,durationMs:s,flags:d,audio:e.slice(u)}}function KN(e){let t=GN(e,zN);return{connectionEpoch:t.connectionEpoch,responseId:t.id,seq:t.seq,mediaTimestampMs:t.timestampMs,durationMs:t.durationMs,audio:t.audio}}function qN(e){return WN({kind:RN,connectionEpoch:e.connectionEpoch,id:e.utteranceId,seq:e.audioSeq,timestampMs:e.capturedAtMonotonicMs,durationMs:e.durationMs,flags:!!e.start|(e.end?2:0),audio:e.audio})}var JN=class{session;eventSeq=0;audioSeq=0;ready=!1;closed=!1;cancelled=new Set;constructor(e){this.session=e}event(e){if(this.closed)throw Error(`Voice session closed`);if(e.sessionId!==this.session.sessionId||e.seq!==this.eventSeq+1)throw Error(`Invalid voice event sequence`);if(this.eventSeq=e.seq,e.type===`session.ready`){if(this.ready||e.payload.connectionEpoch!==this.session.connectionEpoch||e.payload.purpose!==this.session.purpose||e.payload.inputMode!==this.session.inputMode||e.payload.inputFormat.sampleRate!==this.session.inputFormat.sampleRate||e.payload.mode!==this.session.mode||e.payload.route.engine!==this.session.route.engine)throw Error(`Voice session mismatch`);this.ready=!0}e.type===`response.cancelled`&&this.cancel(e.payload.responseId),e.type===`session.closed`&&(this.ready=!1,this.closed=!0)}audio(e){if(!this.ready||e.connectionEpoch!==this.session.connectionEpoch||e.seq!==this.audioSeq+1)throw Error(`Invalid voice audio sequence`);return this.audioSeq=e.seq,!this.cancelled.has(e.responseId)}cancel(e){if(!this.cancelled.has(e)){if(this.cancelled.size>=1e4)throw Error(`Voice response limit exceeded`);this.cancelled.add(e)}}},YN=`/api/voice/realtime/v3/ws`,XN=64*1024,ZN=15e3,QN=bn(),$N=pn().int().nonnegative(),eP=vn([`dictation`,`conversation`]),tP=vn([`natural`,`assistant`]),nP=_n(`server_vad`),rP=vn([`zh`,`en`]),iP=ln({encoding:_n(`pcm_s16le`),sampleRate:dn([_n(16e3),_n(24e3)]),channels:_n(1)}),aP=ln({provider:hn().min(1).max(100),model:hn().min(1).max(200),managed:fn()}),oP=cn(`engine`,[ln({engine:_n(`dictation`),stt:aP}),ln({engine:_n(`agent`),stt:aP,tts:aP}),ln({engine:_n(`omni`),omni:aP})]),sP=ln({available:fn(),reasonCode:vn([`VOICE_DISABLED`,`PROVIDER_UNAVAILABLE`]).optional()});yn({enabled:fn(),defaultMode:tP,omni:aP.nullable(),stt:aP.nullable(),tts:aP.extend({voice:hn().optional()}).nullable(),capabilities:ln({dictation:sP,assistant:sP,natural:sP,languages:gn(rP),bargeIn:fn(),mediaTransports:mn([_n(`websocket-pcm`)])})}),ln({purpose:eP,mode:tP.optional(),conversationId:hn().min(1).max(512).optional(),language:rP.optional(),supportedProtocolVersions:mn([_n(3)]),mediaPreferences:mn([_n(`websocket-pcm`)])}).superRefine((e,t)=>{e.purpose===`conversation`&&!e.conversationId&&t.addIssue({code:`custom`,path:[`conversationId`],message:`conversationId is required for conversation`}),e.purpose!==`conversation`&&e.mode!==void 0&&t.addIssue({code:`custom`,path:[`mode`],message:`mode is only supported for conversation`})});var cP=ln({sessionId:QN,ticket:hn().min(32).max(512),ticketExpiresAt:xn(),websocketPath:_n(YN),protocolVersion:_n(3),connectionEpoch:pn().int().positive(),purpose:eP,mode:tP.optional(),inputMode:nP,bargeIn:fn(),inputFormat:iP,media:ln({transport:_n(`websocket-pcm`),codec:_n(`pcm_s16le`),frameDurationMs:_n(20)}),limits:ln({maxBinaryFrameBytes:_n(XN),maxSessionMs:pn().int().positive(),idleTimeoutMs:pn().int().positive()}),route:oP}),lP=(e,t)=>ln({protocolVersion:_n(3),messageId:QN,type:_n(e),sentAt:$N,payload:t});cn(`type`,[lP(`session.start`,ln({sessionId:QN,ticket:hn().min(32).max(512)})),lP(`session.metric`,ln({responseId:hn().min(1).max(160),metric:vn([`speech_end_to_audio_received`,`local_stop`]),durationMs:pn().finite().min(0).max(6e5)})),lP(`input.mute`,ln({muted:fn()})),lP(`input.commit`,ln({})),lP(`response.stop_playback`,ln({responseId:hn().min(1).max(160)})),lP(`task.cancel`,ln({taskId:hn().min(1).max(160)})),lP(`response.audio.played`,ln({responseId:hn().min(1).max(160),playedDurationMs:pn().int().nonnegative().max(36e5)})),lP(`session.stop`,ln({reason:vn([`user_finished`,`surface_closed`,`replaced`])})),lP(`session.ping`,ln({}))]);var uP=ln({utteranceId:hn().min(1).max(160),revision:pn().int().positive(),text:hn().max(32*1024),language:rP.optional()}),dP=(e,t)=>ln({protocolVersion:_n(3),eventId:QN,seq:pn().int().positive(),type:_n(e),sentAt:$N,sessionId:QN,payload:t}),fP=cn(`type`,[dP(`session.ready`,ln({purpose:eP,mode:tP.optional(),connectionEpoch:pn().int().positive(),inputMode:nP,inputFormat:iP,media:ln({transport:_n(`websocket-pcm`),codec:_n(`pcm_s16le`),frameDurationMs:_n(20)}),route:oP,heartbeatIntervalMs:_n(ZN)})),dP(`input.speech_started`,ln({utteranceId:hn().min(1).max(160)})),dP(`input.speech_stopped`,ln({utteranceId:hn().min(1).max(160)})),dP(`input.transcript.delta`,uP),dP(`input.transcript.final`,uP),dP(`turn.decision`,ln({turnId:hn().min(1).max(160),disposition:vn([`complete`,`incomplete`,`backchannel`,`wait`]),confidence:pn().min(0).max(1),source:vn([`provider`,`semantic`,`heuristic`]),committed:fn()})),dP(`turn.committed`,ln({turnId:hn().min(1).max(160)})),dP(`response.created`,ln({responseId:hn().min(1).max(160)})),dP(`task.created`,ln({responseId:hn().min(1).max(160),taskId:hn().min(1).max(160)})),dP(`task.activity`,ln({taskId:hn().min(1).max(160),toolCallId:hn().min(1).max(160),toolName:hn().min(1).max(256),status:vn([`running`,`completed`,`failed`])})),dP(`task.done`,ln({taskId:hn().min(1).max(160),status:vn([`completed`,`failed`,`cancelled`,`suspended`])})),dP(`response.clarification`,ln({responseId:hn().min(1).max(160),requestId:hn().min(1).max(160),kind:vn([`input`,`approval`]),question:hn().min(1).max(8e3),choices:gn(hn().max(1e3)).max(20).optional(),suggestedAnswer:hn().max(1e3).optional(),version:pn().int().positive(),createdAt:pn().nonnegative(),expiresAt:pn().nonnegative().optional()})),dP(`response.text.delta`,ln({responseId:hn().min(1).max(160),delta:hn().max(32*1024)})),dP(`response.text.done`,ln({responseId:hn().min(1).max(160)})),dP(`response.audio.started`,ln({responseId:hn().min(1).max(160),format:iP})),dP(`response.audio.done`,ln({responseId:hn().min(1).max(160)})),dP(`response.done`,ln({responseId:hn().min(1).max(160),finishReason:vn([`completed`,`text_only`,`audio_partial`]),audio:fn()})),dP(`response.cancelled`,ln({responseId:hn().min(1).max(160),reason:vn([`barge_in`,`client_cancelled`,`session_closed`])})),dP(`session.pong`,ln({})),dP(`session.error`,ln({code:hn().min(1).max(80),message:hn().min(1).max(500),recoverable:fn()})),dP(`session.closed`,ln({reason:hn().min(1).max(160)}))]);function pP(e){return fP.parse(e)}function mP(e,t){return{protocolVersion:3,messageId:crypto.randomUUID(),type:e,sentAt:Date.now(),payload:t}}function hP(e){let t=new URL(Y(e));return t.protocol=t.protocol===`https:`?`wss:`:`ws:`,t.toString()}var gP=class e{socket;session;receive;heartbeatId;inputRemainder=new Uint8Array;utteranceId=crypto.randomUUID();inputSeq=0;constructor(e,t){this.socket=e,this.session=t,this.receive=new JN(t)}static async preflight(e){e.purpose===`conversation`&&e.conversationId&&await new Fr().materialize(e.conversationId,`voice`),await J(Y(`/api/voice/realtime/preflight`),{method:`POST`,signal:e.signal,body:JSON.stringify({purpose:e.purpose,mode:e.mode,conversationId:e.conversationId,supportedProtocolVersions:[3],mediaPreferences:[`websocket-pcm`]})})}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.mode?{mode:t.mode}:{},...t.conversationId?{conversationId:t.conversationId}:{},supportedProtocolVersions:[3],mediaPreferences:[`websocket-pcm`]})}),r=cP.parse(n.payload);t.signal?.throwIfAborted();let i=new WebSocket(hP(r.websocketPath));i.binaryType=`arraybuffer`;let a=new e(i,r);return await new Promise((e,n)=>{let o=!1,s,c=e=>{o||(o=!0,s!==void 0&&window.clearTimeout(s),i.close(),n(e))};s=window.setTimeout(()=>c(Error(`Realtime voice connection timed out`)),15e3);let l=()=>{o?i.close():c(Error(`Realtime voice connection cancelled`))};if(t.signal?.addEventListener(`abort`,l,{once:!0}),i.addEventListener(`close`,()=>t.signal?.removeEventListener(`abort`,l),{once:!0}),t.signal?.aborted){l();return}i.onerror=()=>c(Error(`Realtime voice connection failed`)),i.onclose=e=>{o?t.onClose?.(e.reason):c(Error(e.reason||`Realtime voice connection closed`))},i.onopen=()=>{i.send(JSON.stringify(mP(`session.start`,{sessionId:r.sessionId,ticket:r.ticket})))},i.onmessage=n=>{if(typeof n.data!=`string`){try{let e=KN(new Uint8Array(n.data));a.receive.audio(e)&&t.onAudio?.(e.audio.slice().buffer,e.responseId)}catch{i.close(4400,`Invalid voice audio frame`)}return}try{let i=pP(JSON.parse(n.data));if(a.receive.event(i),t.onEvent(i),i.type===`session.ready`&&!o){if(i.payload.connectionEpoch!==r.connectionEpoch||i.payload.mode!==r.mode)throw Error(`Voice session mismatch`);o=!0,window.clearTimeout(s),a.startHeartbeat(i.payload.heartbeatIntervalMs),e()}else i.type===`session.error`&&!i.payload.recoverable&&c(Error(i.payload.message))}catch(e){o?i.close(4400,`Invalid voice protocol frame`):c(e instanceof Error?e:Error(String(e)))}}}),a}sendAudio(e){if(!e.byteLength||this.socket.readyState!==WebSocket.OPEN)return;let t=new Uint8Array(e),n=new Uint8Array(this.inputRemainder.byteLength+t.byteLength);n.set(this.inputRemainder),n.set(t,this.inputRemainder.byteLength);let r=0;for(;r+640<=n.byteLength;){let e=qN({connectionEpoch:this.session.connectionEpoch,utteranceId:this.utteranceId,audioSeq:++this.inputSeq,capturedAtMonotonicMs:performance.now(),durationMs:20,...this.inputSeq===1?{start:!0}:{},audio:n.slice(r,r+640)});this.socket.send(e.buffer),r+=640}this.inputRemainder=n.slice(r)}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}),this.inputRemainder=new Uint8Array,e||(this.utteranceId=crypto.randomUUID(),this.inputSeq=0)}commit(){this.sendControl(`input.commit`,{})}cancelResponse(e){this.sendControl(`response.stop_playback`,{responseId:e})}acknowledgeAudio(e,t){this.sendControl(`response.audio.played`,{responseId:e,playedDurationMs:Math.floor(t/48)})}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&&(e===`response.stop_playback`&&`responseId`in t&&this.receive.cancel(t.responseId),this.socket.send(JSON.stringify(mP(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)}},_P=1.7,vP=class{context=new AudioContext({sampleRate:24e3});output=this.context.createGain();ringbackOutput=this.context.createGain();limiter=this.context.createDynamicsCompressor();sources=new Set;ringbackSources=new Map;ringbackDelay=null;ringbackInterval=null;ringbackActive=!1;nextStartTime=0;hasStartedAudio=!1;constructor(){this.output.gain.value=_P,this.limiter.threshold.value=-6,this.limiter.knee.value=6,this.limiter.ratio.value=12,this.limiter.attack.value=.003,this.limiter.release.value=.12,this.output.connect(this.limiter),this.limiter.connect(this.context.destination),this.ringbackOutput.gain.value=0,this.ringbackOutput.connect(this.context.destination)}async start(){await this.context.resume()}get hasPendingAudio(){return this.sources.size>0}startRingback(){this.stopRingback(),this.context.state!==`closed`&&(this.ringbackActive=!0,this.ringbackDelay=setTimeout(()=>{this.ringbackDelay=null,!(!this.ringbackActive||this.context.state!==`running`)&&(this.ringbackOutput.gain.cancelScheduledValues(this.context.currentTime),this.ringbackOutput.gain.setValueAtTime(.14,this.context.currentTime),this.playRingbackPulse(),this.ringbackInterval=setInterval(()=>this.playRingbackPulse(),3e3))},500))}playRingbackPulse(){if(!this.ringbackActive||this.context.state!==`running`)return;let e=this.context.currentTime;for(let[t,n]of[392,494].entries()){let r=e+t*.4,i=this.context.createOscillator(),a=this.context.createGain();i.type=`sine`,i.frequency.value=n,a.gain.setValueAtTime(0,r),a.gain.linearRampToValueAtTime(.5,r+.04),a.gain.setValueAtTime(.5,r+.18),a.gain.linearRampToValueAtTime(0,r+.28),i.connect(a),a.connect(this.ringbackOutput),this.ringbackSources.set(i,a),i.onended=()=>{this.ringbackSources.delete(i),i.disconnect(),a.disconnect()},i.start(r),i.stop(r+.29)}}stopRingback(){if(this.ringbackActive=!1,this.ringbackDelay!==null&&clearTimeout(this.ringbackDelay),this.ringbackInterval!==null&&clearInterval(this.ringbackInterval),this.ringbackDelay=null,this.ringbackInterval=null,this.context.state!==`closed`){this.ringbackOutput.gain.cancelScheduledValues(this.context.currentTime),this.ringbackOutput.gain.setTargetAtTime(0,this.context.currentTime,.025);for(let[e,t]of this.ringbackSources){t.gain.cancelScheduledValues(this.context.currentTime),t.gain.setTargetAtTime(0,this.context.currentTime,.02);try{e.stop(this.context.currentTime+.12)}catch{}}}}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=this.hasStartedAudio?.015:.08,c=Math.max(this.context.currentTime+s,this.nextStartTime);o.start(c),this.hasStartedAudio=!0,this.nextStartTime=c+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?_P*.15:_P;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.hasStartedAudio=!1,this.duck(!1)}async close(){this.stopRingback(),this.clear(),this.output.disconnect(),this.ringbackOutput.disconnect(),this.limiter.disconnect(),this.context.state!==`closed`&&await this.context.close();for(let[e,t]of this.ringbackSources)e.onended=null,e.disconnect(),t.disconnect();this.ringbackSources.clear()}},yP=`/assets/pcm-capture-worklet-uW_SEACy.js`,bP=16e3;function xP(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 SP(e,t,n=bP){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 CP(e,t=bP){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 wP(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 TP=class{sourceRate;targetRate;pending=new Float32Array;position=0;constructor(e,t=bP){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,wP(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,wP(Float32Array.of(e))}},EP=`xopc-pcm-capture`,DP=1e3,OP=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=xP(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(yP);let i=r.createMediaStreamSource(t),a=new AudioWorkletNode(r,EP),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,DP);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()}},kP=null;function AP(e){return kP&&kP!==e?!1:(kP=e,!0)}function jP(e){kP===e&&(kP=null)}function MP(e){if(!(e instanceof Error))return!1;let t=e.body,n=typeof t?.error==`object`?t.error.code:void 0;return n===`VOICE_DISABLED`||n===`PROVIDER_UNAVAILABLE`}function NP(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 PP(e){return e===`requesting`||e===`starting`}async function FP(){if(!navigator.permissions?.query)return null;try{return(await navigator.permissions.query({name:`microphone`})).state}catch{return null}}function IP(e){return e instanceof DOMException||e instanceof Error?e.name:``}function LP(e,t){if(e===`permission`)return`permission`;if(e===`recorder`)return`recorder`;if(e===`session`)return`session`;let n=IP(t);return n===`NotAllowedError`||n===`SecurityError`?`permission`:`device`}function RP(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)(null),[w,T]=(0,Z.useState)(!1),E=(0,Z.useRef)(!1),[D,O]=(0,Z.useState)(null),[k,A]=(0,Z.useState)(null),[j,M]=(0,Z.useState)(!1),[N,P]=(0,Z.useState)(null),F=(0,Z.useRef)(void 0),I=(0,Z.useRef)(null),[L,R]=(0,Z.useState)(`dictation`),z=(0,Z.useRef)(Symbol(`voice-capture`)),B=(0,Z.useRef)(`idle`),V=(0,Z.useRef)(0),H=(0,Z.useRef)(null),U=(0,Z.useRef)(null),W=(0,Z.useRef)(null),G=(0,Z.useRef)(void 0),ee=(0,Z.useRef)(null),te=(0,Z.useRef)(null),ne=(0,Z.useRef)(null),K=(0,Z.useRef)(new Map),re=(0,Z.useRef)(!1),ie=(0,Z.useRef)(()=>{}),ae=(0,Z.useRef)(new Map),oe=(0,Z.useRef)(null),se=(0,Z.useRef)(null),ce=(0,Z.useRef)(!1),le=(0,Z.useRef)(null),ue=(0,Z.useRef)(!1),de=(0,Z.useRef)(0),fe=(0,Z.useRef)(6e5),pe=(0,Z.useRef)(null),me=(0,Z.useRef)(null),he=(0,Z.useRef)(r);he.current=r;let ge=(0,Z.useCallback)(e=>{B.current=e,a(e)},[]),_e=(0,Z.useCallback)(()=>{pe.current!=null&&(clearInterval(pe.current),pe.current=null)},[]),ve=(0,Z.useCallback)(()=>{te.current?.getTracks().forEach(e=>e.stop()),te.current=null},[]),ye=(0,Z.useCallback)(()=>{jP(z.current),V.current+=1,I.current?.abort(),I.current=null,_e(),me.current!==null&&clearTimeout(me.current),me.current=null,ee.current?.stopRingback(),ve(),H.current?.cancel(),H.current=null,U.current=null,W.current=null;let e=ee.current;ee.current=null,e?.close(),ne.current=null,s(0),l(0),d(``),p(``),h(``),x(`idle`),C(null),_([]),y(null),le.current=null,E.current=!1,T(!1),M(!1),ae.current.clear(),K.current.clear(),re.current=!1,oe.current=null,se.current=null},[ve,_e]),be=(0,Z.useCallback)(()=>{ye(),ge(`idle`)},[ye,ge]),xe=(0,Z.useCallback)(()=>{W.current?.stop(`user_finished`),be(),O(null),A(null),P(null)},[be]),Se=(0,Z.useCallback)(async()=>{if(re.current)return;re.current=!0;let e=V.current,t=[...K.current.values()].join(` `).trim();if(ve(),_e(),H.current?.cancel(),H.current=null,ge(`transcribing`),!t){ht(`warning`,n.voiceTranscribeEmpty),be();return}let r=t;try{let e=await J(Y(`/api/voice/transcriptions/refine`),{method:`POST`,body:JSON.stringify({text:t}),signal:AbortSignal.any([I.current.signal,AbortSignal.timeout(15e3)])});e.payload.text.trim()&&(r=e.payload.text)}catch{if(e!==V.current)return;ht(`warning`,n.voiceRefinementFailed)}e===V.current&&(he.current(r),be())},[be,n.voiceRefinementFailed,n.voiceTranscribeEmpty,ve,_e,ge]),Ce=(0,Z.useCallback)(e=>{P(e);let t=B.current;if(!(t===`idle`||t===`error`||re.current)){if(!F.current){if(t===`transcribing`&&e===`input_committed`){Se();return}_e(),ve(),H.current?.cancel(),H.current=null,W.current=null,O(n.voiceTranscribeFailed),ge(`error`);return}be()}},[Se,be,n.voiceTranscribeFailed,ve,_e,ge]),we=(0,Z.useCallback)(()=>{_e(),pe.current=setInterval(()=>{let e=ne.current;if(e===null)return;let t=performance.now()-e;if(s(Math.max(0,t/1e3)),t>=fe.current&&B.current===`recording`){if(!F.current){ie.current();return}P(`session_limit`),W.current?.stop(`user_finished`),be()}},200)},[be,_e]),Te=(0,Z.useCallback)(async(e,r,i)=>{if(t||B.current!==`idle`||e===`conversation`&&!i)return;if(!AP(z.current)){O(n.callCaptureBusy),e===`dictation`&&ht(`error`,n.callCaptureBusy);return}F.current=i;let a=new AbortController;I.current=a,O(null),A(null),P(null);let o=++V.current,c=()=>o===V.current;R(e),C(e===`conversation`?`preparing`:null),G.current=r,h(``),ge(`starting`);let u=`permission`;try{if(e===`conversation`){let e=new vP;if(ee.current=e,await e.start(),!c()){e.close();return}}if(u=`session`,await gP.preflight({purpose:e,...e===`conversation`?{mode:r,conversationId:i}:{},signal:a.signal}),!c())return;u=`permission`;let t=window.electronAPI?.system,o=await FP();if(!c()||!PP(B.current))return;if(t&&o!==`granted`){ge(`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`&&ge(`requesting`);if(!c()||!PP(B.current))return;ge(`starting`),window.dispatchEvent(new Event(`xopc-voice-recording-start`)),u=`media`;let f=await navigator.mediaDevices.getUserMedia({audio:kN()});if(!c()||!PP(B.current)){f.getTracks().forEach(e=>e.stop());return}te.current=f,e===`conversation`&&(C(`dialing`),ee.current?.startRingback(),me.current=setTimeout(()=>{c()&&(ee.current?.stopRingback(),C(`slow`),me.current=null)},12e3)),u=`session`,K.current.clear();let m=await gP.connect({purpose:e,signal:a.signal,...e===`conversation`?{mode:r,conversationId:i}:{},onEvent:t=>{if(c()&&!((t.type===`input.transcript.delta`||t.type===`input.transcript.final`)&&!AN(ae.current,t.payload.utteranceId,t.payload.revision,t.type===`input.transcript.final`))){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`&&(K.current.set(t.payload.utteranceId,n),[...K.current.values()].join(` `).length>=2e4&&B.current===`recording`&&ie.current(),p([...K.current.values()].join(` `)))}if(t.type===`input.speech_stopped`&&(le.current=performance.now(),ee.current?.duck(!1)),t.type===`response.created`){if(oe.current){oe.current!==t.payload.responseId&&W.current?.cancelResponse(t.payload.responseId);return}oe.current=t.payload.responseId,ce.current=!1,ue.current=!1,de.current=0,h(``),_([]),y(null),x(`thinking`)}if(t.type===`task.created`&&oe.current===t.payload.responseId&&(se.current=t.payload.taskId),t.type===`task.activity`&&se.current===t.payload.taskId){let e={toolCallId:t.payload.toolCallId,toolName:t.payload.toolName,status:t.payload.status};_(t=>[...t.filter(t=>t.toolCallId!==e.toolCallId),e].slice(-8))}if(t.type===`task.done`&&se.current===t.payload.taskId&&(se.current=null,_([])),t.type===`response.clarification`&&oe.current===t.payload.responseId&&y(t.payload),t.type===`response.text.delta`&&oe.current===t.payload.responseId&&(x(`speaking`),h(e=>e+t.payload.delta)),t.type===`response.audio.started`&&oe.current===t.payload.responseId&&x(`speaking`),t.type===`response.done`&&oe.current===t.payload.responseId&&(ce.current=!0,ee.current?.hasPendingAudio||(oe.current=null,x(`idle`))),t.type===`response.cancelled`&&oe.current===t.payload.responseId&&(oe.current=null,x(`idle`),ee.current?.clear()),t.type===`session.error`&&t.payload.recoverable&&t.payload.code===`RESPONSE_FAILED`&&ht(`warning`,n.voiceResponseFailed),t.type===`session.error`&&t.payload.recoverable&&t.payload.code===`INPUT_DROPPED`&&ht(`warning`,n.voiceInputDropped),t.type===`session.error`&&!t.payload.recoverable){let r=t.payload.code===`PROVIDER_UNAVAILABLE`,i=t.payload.code===`CONTEXT_CHANGED`?n.voiceContextChanged:r?n.voiceSttNotConfigured:t.payload.message;O(i),A(`session`),M(r),e===`dictation`&&ht(`error`,i,void 0,r?{href:`/settings/capabilities/voice`}:void 0),W.current?.stop(`surface_closed`),e===`conversation`?ye():(_e(),ve(),H.current?.cancel(),H.current=null,W.current=null),ge(`error`)}}},onAudio:(e,t)=>{if(!c())return;let n=oe.current;!n||t!==n||(ue.current||(ue.current=!0,le.current!==null&&W.current?.reportMetric(n,`speech_end_to_audio_received`,performance.now()-le.current),le.current=null),ee.current?.enqueue(e,()=>{oe.current===n&&(de.current+=e.byteLength,W.current?.acknowledgeAudio(n,de.current),ce.current&&!ee.current?.hasPendingAudio&&(oe.current=null,x(`idle`)))}))},onClose:e=>{c()&&Ce(e)}});if(!c()){m.stop(`surface_closed`);return}ee.current?.stopRingback(),me.current!==null&&clearTimeout(me.current),me.current=null,W.current=m,fe.current=m.session.limits.maxSessionMs,u=`recorder`;let g,v=[],b=await OP.start(f,{onSamples:e=>{if(!c()||E.current)return;if(!g){v.push(e);return}let t=(U.current??g).push(e);t&&m.sendAudio(t)},onAudioLevel:({level:t,speaking:n})=>{c()&&(E.current||(l(Math.min(1,t*8)),e===`conversation`&&m.session.bargeIn&&oe.current&&ee.current?.duck(n)))}});if(!c()||!PP(B.current)){b.cancel(),m.stop(`surface_closed`),f.getTracks().forEach(e=>e.stop());return}g=new TP(b.sampleRate,m.session.inputFormat.sampleRate);for(let e of v)m.sendAudio(g.push(e));U.current=g,H.current=b,ne.current=performance.now(),s(0),ge(`recording`),C(null),we()}catch(t){if(!c())return;let r=LP(u,t);console.error(`[chat:voice] realtime capture start failed`,{stage:u,kind:r,errorName:IP(t),errorMessage:t instanceof Error?t.message:String(t)}),W.current?.stop(`surface_closed`),ye(),ge(r===`session`?`error`:`idle`);let i=r===`session`&&MP(t),a=r===`permission`?n.voiceMicDenied:r===`device`?n.voiceMicUnavailable:r===`recorder`?n.voiceRecorderFailed:i?n.voiceSttNotConfigured:t instanceof Error?t.message:n.voiceSttNotConfigured;O(a),A(r),M(i),e===`dictation`&&ht(`error`,a,void 0,i?{href:`/settings/capabilities/voice`}:void 0)}},[t,Ce,n,ye,we,ve,_e,ge]),Ee=(0,Z.useCallback)(()=>{if(F.current)return;if(B.current===`error`&&K.current.size){Se();return}if(B.current!==`recording`)return;ge(`transcribing`),_e(),ve();let e=H.current,t=V.current;H.current=null,e?.stop().then(()=>{if(t!==V.current)return;let e=U.current?.flush();e&&W.current?.sendAudio(e),W.current?.commit()}).catch(()=>{t===V.current&&(ht(`error`,n.voiceTranscribeFailed),W.current?.stop(`surface_closed`),ye(),ge(`error`))})},[Se,n.voiceTranscribeFailed,ye,ve,_e,ge]);ie.current=Ee,(0,Z.useEffect)(()=>()=>{jP(z.current),V.current+=1,I.current?.abort(),H.current?.cancel(),W.current?.stop(`surface_closed`),ee.current?.close(),me.current!==null&&clearTimeout(me.current),ve(),_e()},[ve,_e]);let De=(0,Z.useCallback)(()=>{B.current===`error`&&(ye(),ge(`idle`),Te(L,G.current,F.current))},[Te,L,ye,ge]),Oe=(0,Z.useCallback)(()=>Te(`dictation`),[Te]),ke=(0,Z.useCallback)((e,t)=>Te(`conversation`,t,e),[Te]),Ae=(0,Z.useCallback)(()=>{let e=performance.now(),t=oe.current;ee.current?.clear(),oe.current=null,x(`idle`),t&&(W.current?.reportMetric(t,`local_stop`,performance.now()-e),W.current?.cancelResponse(t))},[]),je=(0,Z.useCallback)(()=>{let e=!E.current;E.current=e,te.current?.getAudioTracks().forEach(t=>{t.enabled=!e});let t=H.current,n=W.current;t&&n&&(U.current=new TP(t.sampleRate,n.session.inputFormat.sampleRate)),n?.setInputMuted(e),d(``),l(0),ee.current?.duck(!1),T(e)},[]);return{phase:i,voiceActive:i!==`idle`,elapsedLabel:NP(o),audioLevel:c,partialTranscript:u,finalTranscript:f,responseText:m,activities:g,clarification:v,dismissClarification:e=>y(t=>t?.requestId===e?null:t),responsePhase:b,callConnectionStage:S,muted:w,error:D,failureKind:k,settingsRequired:j,endedReason:N,mode:L,startVoiceInput:Oe,startVoiceConversation:ke,interruptResponse:Ae,toggleMute:je,cancelVoiceInput:xe,confirmVoiceInput:Ee,retryVoiceInput:De}}var zP=(0,Z.createContext)(null);function BP(){let e=(0,Z.useContext)(zP);if(!e)throw Error(`VoiceCallProvider is required`);return e}function VP(e,t,n,r){return{left:Math.max(8,Math.min(e,window.innerWidth-n-8)),top:Math.max(8,Math.min(t,window.innerHeight-r-8))}}function HP(e){let t=(0,Q.c)(176),{children:n}=e,r=Pt(JP),i;t[0]===r?i=t[1]:(i=kt(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=ON(qP),p=ON(KP),m;t[2]===a?m=t[3]:(m={disabled:!1,chat:a,onTranscript:GP},t[2]=a,t[3]=m);let h=RP(m),g=(0,Z.useRef)(!1),_=(0,Z.useRef)(0),v=(0,Z.useRef)(null),b=(0,Z.useRef)(null),x=(0,Z.useRef)(!1),[S,C]=(0,Z.useState)(null),w,T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=()=>{let e=v.current;e&&C(t=>t?VP(t.left,t.top,e.offsetWidth,e.offsetHeight):null)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},T=[],t[4]=w,t[5]=T):(w=t[4],T=t[5]),(0,Z.useEffect)(w,T);let E;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>{if(e.button!==0)return;x.current=!1;let t=v.current?.getBoundingClientRect();t&&(b.current={pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,left:t.left,top:t.top,width:t.width,height:t.height,moved:!1},e.currentTarget.setPointerCapture(e.pointerId))},t[6]=E):E=t[6];let D=E,O;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{let t=b.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientX-t.startX,r=e.clientY-t.startY;!t.moved&&Math.hypot(n,r)<4||(t.moved=!0,C(VP(t.left+n,t.top+r,t.width,t.height)))},t[7]=O):O=t[7];let k=O,A;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>{b.current?.pointerId===e.pointerId&&(x.current=b.current.moved,b.current=null)},t[8]=A):A=t[8];let j=A,M;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=e=>{b.current?.pointerId===e.pointerId&&(b.current=null,x.current=!1)},t[9]=M):M=t[9];let N=M,P=h.voiceActive&&h.phase!==`error`,F=h.phase===`recording`,I;t[10]!==P||t[11]!==h?(I=e=>{if(g.current||P)return;g.current=!0;let t=_.current+=1;h.cancelVoiceInput(),s(e),h.startVoiceConversation(e.conversationId,e.mode).finally(()=>{t===_.current&&(g.current=!1)})},t[10]=P,t[11]=h,t[12]=I):I=t[12];let L=I,R=P?o?.conversationId??null:null,z;t[13]===L?z=t[14]:(z=e=>{L(e),l(!1)},t[13]=L,t[14]=z);let B;t[15]!==P||t[16]!==R||t[17]!==z?(B={active:P,conversationId:R,open:z},t[15]=P,t[16]=R,t[17]=z,t[18]=B):B=t[18];let V=B,H;t[19]!==P||t[20]!==F||t[21]!==r||t[22]!==a.callConnecting||t[23]!==a.callConnectingSlow||t[24]!==a.callDisconnected||t[25]!==a.callFailed||t[26]!==a.callListening||t[27]!==a.callMicMuted||t[28]!==a.callPreparing||t[29]!==a.callReady||t[30]!==a.callWaiting||t[31]!==a.callWorking||t[32]!==a.voiceSpeaking||t[33]!==a.voiceThinking||t[34]!==o?.mode||t[35]!==h.activities||t[36]!==h.callConnectionStage||t[37]!==h.clarification||t[38]!==h.endedReason||t[39]!==h.error||t[40]!==h.muted||t[41]!==h.responsePhase?(H=h.error?a.callFailed:P?F?h.clarification?a.callWaiting:h.activities.some(WP)?a.callWorking:h.responsePhase===`speaking`?a.voiceSpeaking:h.responsePhase===`thinking`?o?.mode===`assistant`?r===`zh`?`正在组织回应…`:`Getting back to you…`:a.voiceThinking:h.muted?a.callMicMuted:a.callListening:h.callConnectionStage===`preparing`?a.callPreparing:h.callConnectionStage===`slow`?a.callConnectingSlow:a.callConnecting:h.endedReason?a.callDisconnected:a.callReady,t[19]=P,t[20]=F,t[21]=r,t[22]=a.callConnecting,t[23]=a.callConnectingSlow,t[24]=a.callDisconnected,t[25]=a.callFailed,t[26]=a.callListening,t[27]=a.callMicMuted,t[28]=a.callPreparing,t[29]=a.callReady,t[30]=a.callWaiting,t[31]=a.callWorking,t[32]=a.voiceSpeaking,t[33]=a.voiceThinking,t[34]=o?.mode,t[35]=h.activities,t[36]=h.callConnectionStage,t[37]=h.clarification,t[38]=h.endedReason,t[39]=h.error,t[40]=h.muted,t[41]=h.responsePhase,t[42]=H):H=t[42];let U=H,W;t[43]===h?W=t[44]:(W=()=>{_.current+=1,g.current=!1,h.cancelVoiceInput(),s(null),l(!1),d(!1),C(null)},t[43]=h,t[44]=W);let G=W,te=`/settings/capabilities/voice?returnTo=${encodeURIComponent(`/chat/${encodeURIComponent(o?.conversationId??``)}`)}`,ne;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ne=()=>l(!1),t[45]=ne):ne=t[45];let K;t[46]!==a.callSettings||t[47]!==te?(K=(0,$.jsx)(y,{to:te,onClick:ne,className:`text-sm text-accent-fg hover:underline`,children:a.callSettings}),t[46]=a.callSettings,t[47]=te,t[48]=K):K=t[48];let re=K,ie;t[49]!==F||t[50]!==G||t[51]!==c||t[52]!==r||t[53]!==a.callEnd||t[54]!==a.callMute||t[55]!==a.callUnmute||t[56]!==a.voiceConversation||t[57]!==S||t[58]!==U||t[59]!==o||t[60]!==h.elapsedLabel||t[61]!==h.muted||t[62]!==h.toggleMute?(ie=o&&!c?(0,$.jsxs)(`div`,{ref:v,style:S?{left:S.left,top:S.top,right:`auto`}:void 0,className:`fixed right-5 top-[calc(5rem+env(safe-area-inset-top))] 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`,"aria-label":r===`zh`?`展开通话`:`Expand call`,onClick:()=>{if(x.current){x.current=!1;return}l(!0)},onPointerDown:D,onPointerMove:k,onPointerUp:j,onPointerCancel:N,className:`min-w-0 touch-none select-none rounded-lg text-left cursor-grab active:cursor-grabbing 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:[U,F?` · ${h.elapsedLabel}`:``]})]}),(0,$.jsx)(X,{variant:`ghost`,disabled:!F,onClick:h.toggleMute,"aria-label":h.muted?a.callUnmute:a.callMute,children:h.muted?(0,$.jsx)(Fv,{className:`size-4`}):(0,$.jsx)(Qe,{className:`size-4`})}),(0,$.jsx)(X,{variant:`ghost`,onClick:G,"aria-label":a.callEnd,children:(0,$.jsx)(Fb,{className:`size-4 text-red-500`})})]}):null,t[49]=F,t[50]=G,t[51]=c,t[52]=r,t[53]=a.callEnd,t[54]=a.callMute,t[55]=a.callUnmute,t[56]=a.voiceConversation,t[57]=S,t[58]=U,t[59]=o,t[60]=h.elapsedLabel,t[61]=h.muted,t[62]=h.toggleMute,t[63]=ie):ie=t[63];let ae=!!(o&&c),oe;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(oe=e=>{e||l(!1)},t[64]=oe):oe=t[64];let se=o?.name,ce;t[65]===se?ce=t[66]:(ce=(0,$.jsx)(on,{className:`truncate font-medium`,children:se}),t[65]=se,t[66]=ce);let le;t[67]===a.callSessionHint?le=t[68]:(le=(0,$.jsx)(tn,{className:`text-xs text-fg-muted`,children:a.callSessionHint}),t[67]=a.callSessionHint,t[68]=le);let ue;t[69]!==ce||t[70]!==le?(ue=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[ce,le]}),t[69]=ce,t[70]=le,t[71]=ue):ue=t[71];let de;t[72]===u?de=t[73]:(de=()=>d(!u),t[72]=u,t[73]=de);let fe;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,$.jsx)(ee,{className:`size-4`}),t[74]=fe):fe=t[74];let pe;t[75]!==a.callMore||t[76]!==u||t[77]!==de?(pe=(0,$.jsx)(X,{variant:`ghost`,onClick:de,"aria-label":a.callMore,"aria-expanded":u,children:fe}),t[75]=a.callMore,t[76]=u,t[77]=de,t[78]=pe):pe=t[78];let me;t[79]===Symbol.for(`react.memo_cache_sentinel`)?(me=()=>l(!1),t[79]=me):me=t[79];let he;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,$.jsx)($e,{className:`size-4`}),t[80]=he):he=t[80];let ge;t[81]===a.callMinimize?ge=t[82]:(ge=(0,$.jsx)(X,{variant:`ghost`,onClick:me,"aria-label":a.callMinimize,children:he}),t[81]=a.callMinimize,t[82]=ge);let _e;t[83]!==pe||t[84]!==ge?(_e=(0,$.jsxs)(`div`,{className:`flex`,children:[pe,ge]}),t[83]=pe,t[84]=ge,t[85]=_e):_e=t[85];let ve;t[86]!==ue||t[87]!==_e?(ve=(0,$.jsxs)(`header`,{className:`flex shrink-0 items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[ue,_e]}),t[86]=ue,t[87]=_e,t[88]=ve):ve=t[88];let ye;t[89]!==f||t[90]!==a.callCaptions||t[91]!==u||t[92]!==p||t[93]!==re?(ye=u?(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between border-b border-edge px-4 py-2`,children:[(0,$.jsxs)(X,{variant:`ghost`,"aria-pressed":f,onClick:()=>p(!f),children:[(0,$.jsx)(Iu,{className:`size-4`}),a.callCaptions]}),re]}):null,t[89]=f,t[90]=a.callCaptions,t[91]=u,t[92]=p,t[93]=re,t[94]=ye):ye=t[94];let be;t[95]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(ps,{className:`size-10 text-accent-fg`,"aria-hidden":`true`}),t[95]=be):be=t[95];let xe;t[96]===U?xe=t[97]:(xe=(0,$.jsx)(`p`,{className:`text-lg font-medium`,role:`status`,children:U}),t[96]=U,t[97]=xe);let Se;t[98]!==P||t[99]!==F||t[100]!==a.callContinuity||t[101]!==a.callMicMuted||t[102]!==h.elapsedLabel||t[103]!==h.muted||t[104]!==h.responsePhase?(Se=F||!P?(0,$.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-fg-muted`,children:[F?h.elapsedLabel:a.callContinuity,F&&h.muted&&h.responsePhase!==`idle`?` · ${a.callMicMuted}`:``]}):null,t[98]=P,t[99]=F,t[100]=a.callContinuity,t[101]=a.callMicMuted,t[102]=h.elapsedLabel,t[103]=h.muted,t[104]=h.responsePhase,t[105]=Se):Se=t[105];let Ce;t[106]!==xe||t[107]!==Se?(Ce=(0,$.jsxs)(`div`,{children:[xe,Se]}),t[106]=xe,t[107]=Se,t[108]=Ce):Ce=t[108];let we;t[109]!==a.callErrorDetails||t[110]!==h.error?(we=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[109]=a.callErrorDetails,t[110]=h.error,t[111]=we):we=t[111];let Te;t[112]!==P||t[113]!==a.callSetupHint||t[114]!==re||t[115]!==h.failureKind?(Te=!P&&h.failureKind===`session`?(0,$.jsxs)(`div`,{className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:a.callSetupHint}),re]}):null,t[112]=P,t[113]=a.callSetupHint,t[114]=re,t[115]=h.failureKind,t[116]=Te):Te=t[116];let Ee;t[117]!==f||t[118]!==F||t[119]!==a.callYou||t[120]!==o?.name||t[121]!==h.finalTranscript||t[122]!==h.partialTranscript||t[123]!==h.responseText?(Ee=F&&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)(Ne,{content:h.responseText,compact:!0,codeCopy:!1,renderMermaid:!1})]}):null]}):null,t[117]=f,t[118]=F,t[119]=a.callYou,t[120]=o?.name,t[121]=h.finalTranscript,t[122]=h.partialTranscript,t[123]=h.responseText,t[124]=Ee):Ee=t[124];let De;t[125]===o?De=t[126]:(De=o?.taskId?(0,$.jsx)(aM,{taskId:o.taskId}):null,t[125]=o,t[126]=De);let Oe;t[127]!==F||t[128]!==o?(Oe=F&&o?(0,$.jsx)(EN,{conversationId:o.conversationId}):null,t[127]=F,t[128]=o,t[129]=Oe):Oe=t[129];let ke;t[130]!==F||t[131]!==a||t[132]!==o||t[133]!==h?(ke=F&&o?(0,$.jsx)(SN,{voice:h,conversationId:o.conversationId,m:a},o.conversationId):null,t[130]=F,t[131]=a,t[132]=o,t[133]=h,t[134]=ke):ke=t[134];let Ae;t[135]!==Ce||t[136]!==we||t[137]!==Te||t[138]!==Ee||t[139]!==De||t[140]!==Oe||t[141]!==ke?(Ae=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain px-5 py-5`,children:[be,Ce,we,Te,Ee,De,Oe,ke]}),t[135]=Ce,t[136]=we,t[137]=Te,t[138]=Ee,t[139]=De,t[140]=Oe,t[141]=ke,t[142]=Ae):Ae=t[142];let je;t[143]!==P||t[144]!==F||t[145]!==a.callMute||t[146]!==a.callReconnect||t[147]!==a.callUnmute||t[148]!==a.voiceResponseInterrupt||t[149]!==L||t[150]!==o||t[151]!==h.interruptResponse||t[152]!==h.muted||t[153]!==h.responsePhase||t[154]!==h.toggleMute?(je=P?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(X,{variant:`secondary`,disabled:!F,onClick:h.toggleMute,"aria-pressed":h.muted,children:[h.muted?(0,$.jsx)(Fv,{className:`size-4`}):(0,$.jsx)(Qe,{className:`size-4`}),h.muted?a.callUnmute:a.callMute]}),h.responsePhase===`idle`?null:(0,$.jsx)(X,{variant:`ghost`,onClick:h.interruptResponse,children:a.voiceResponseInterrupt})]}):(0,$.jsxs)(X,{variant:`primary`,onClick:()=>{o&&L(o)},children:[(0,$.jsx)(Lb,{className:`size-4`}),a.callReconnect]}),t[143]=P,t[144]=F,t[145]=a.callMute,t[146]=a.callReconnect,t[147]=a.callUnmute,t[148]=a.voiceResponseInterrupt,t[149]=L,t[150]=o,t[151]=h.interruptResponse,t[152]=h.muted,t[153]=h.responsePhase,t[154]=h.toggleMute,t[155]=je):je=t[155];let Me;t[156]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,$.jsx)(Fb,{className:`size-4 text-red-500`}),t[156]=Me):Me=t[156];let Pe;t[157]!==G||t[158]!==a.callEnd?(Pe=(0,$.jsxs)(X,{variant:`secondary`,onClick:G,children:[Me,a.callEnd]}),t[157]=G,t[158]=a.callEnd,t[159]=Pe):Pe=t[159];let Fe;t[160]!==je||t[161]!==Pe?(Fe=(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:[je,Pe]}),t[160]=je,t[161]=Pe,t[162]=Fe):Fe=t[162];let Ie;t[163]!==ve||t[164]!==ye||t[165]!==Ae||t[166]!==Fe?(Ie=(0,$.jsx)(rn,{children:(0,$.jsxs)(an,{onInteractOutside:UP,className:`xopc-dialog-content-pane fixed right-3 top-[calc(4.5rem+env(safe-area-inset-top))] z-[71] flex h-[min(480px,calc(100dvh-6rem))] w-[min(380px,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay text-fg shadow-float focus:outline-none`,children:[ve,ye,Ae,Fe]})}),t[163]=ve,t[164]=ye,t[165]=Ae,t[166]=Fe,t[167]=Ie):Ie=t[167];let Le;t[168]!==ae||t[169]!==Ie?(Le=(0,$.jsx)(sn,{open:ae,onOpenChange:oe,modal:!1,children:Ie}),t[168]=ae,t[169]=Ie,t[170]=Le):Le=t[170];let Re;return t[171]!==n||t[172]!==V||t[173]!==ie||t[174]!==Le?(Re=(0,$.jsxs)(zP.Provider,{value:V,children:[n,ie,Le]}),t[171]=n,t[172]=V,t[173]=ie,t[174]=Le,t[175]=Re):Re=t[175],Re}function UP(e){return e.preventDefault()}function WP(e){return e.status===`running`}function GP(){}function KP(e){return e.setCaptions}function qP(e){return e.captions}function JP(e){return e.language}function YP(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=q(`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 XP={show:`Show`,hide:`Hide`,copy:`Copy`,copied:`Copied`};function ZP(e){return{show:e.show,hide:e.hide,copy:e.copy,copied:e.copied}}function QP(e){return ZP(e)}function $P(e){return{show:e.show,hide:e.hide,copy:`Copy`,copied:`Copied`}}async function eF(e){try{let t=await Ft(e);if(t.ok){let e=await t.json();return e.conversationId?{status:`valid`,conversationId:e.conversationId}:{status:`failed`}}return{status:t.status===401||t.status===403?`rejected`:`failed`}}catch{return{status:`unreachable`}}}function tF({baseUrl:e,onSubmit:t,footerLeft:n,className:r,tokenInputRef:i}){let a=Pt(e=>e.language),o=kt(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 eF(e);if(f(!1),n.status!==`valid`){u(n.status===`rejected`?o.tokenRejected:n.status===`unreachable`?o.gatewayUnreachable:o.tokenVerificationFailed),p.current?.focus();return}t(n.conversationId),c(``),u(``)}return(0,$.jsxs)(`form`,{className:q(`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)(K,{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:$P(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)(X,{type:`submit`,variant:`primary`,disabled:d,children:[d?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,d?o.connecting:o.save]})]})]})}var nF=[`compact`,`default`,`large`];function rF(e){document.documentElement.dataset.fontScale=e}function iF(){try{let e=localStorage.getItem(`xopc-web-font-scale`),t=`default`;if(e){let n=JSON.parse(e).state?.preference;n&&nF.includes(n)&&(t=n)}rF(t)}catch{rF(`default`)}}var aF=It(ai(e=>({preference:`default`,setPreference:t=>{rF(t),e({preference:t})}}),{name:`xopc-web-font-scale`}));function oF(){rF(aF.getState().preference)}var sF=[`language`,`theme`,`font`];function cF(e){let t=(0,Q.c)(59),{variant:n,sections:r}=e,i=r===void 0?sF:r,a=Pt(mF),o=Pt(pF),s=Bi(fF),c=Bi(dF),l=aF(uF),u=aF(lF),d;t[0]===a?d=t[1]:(d=kt(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=q(Ii,p),t[2]=p,t[3]=m);let h=m,g=n===`page`?`flex flex-col gap-2 border-b border-edge-subtle px-4 py-3.5 last:border-b-0 sm:flex-row sm:items-center sm:justify-between sm:gap-6 sm:px-5 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)(j,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(N,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(N,{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)(j,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(N,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(N,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(N,{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)(j,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(N,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(N,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(N,{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=q(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||t[36]!==n?(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}),n===`page`?null:(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.languageDescription})]}),(0,$.jsxs)(j,{className:h,value:a,"aria-label":f.languageTitle,onChange:e=>o(e.target.value),children:[(0,$.jsx)(N,{value:`en`,children:f.langOptionEn}),(0,$.jsx)(N,{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]=n,t[37]=x):x=t[37];let S;t[38]!==f||t[39]!==g||t[40]!==h||t[41]!==c||t[42]!==v||t[43]!==s||t[44]!==n?(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}),n===`page`?null:(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.themeDescription})]}),(0,$.jsxs)(j,{className:h,value:s,"aria-label":f.themeTitle,onChange:e=>c(e.target.value),children:[(0,$.jsx)(N,{value:`light`,children:f.themeOptionLight}),(0,$.jsx)(N,{value:`dark`,children:f.themeOptionDark}),(0,$.jsx)(N,{value:`system`,children:f.themeOptionSystem})]})]}):null,t[38]=f,t[39]=g,t[40]=h,t[41]=c,t[42]=v,t[43]=s,t[44]=n,t[45]=S):S=t[45];let C;t[46]!==f||t[47]!==l||t[48]!==g||t[49]!==h||t[50]!==u||t[51]!==v||t[52]!==n?(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}),n===`page`?null:(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:f.fontScaleDescription})]}),(0,$.jsxs)(j,{className:h,value:l,"aria-label":f.fontScaleTitle,onChange:e=>u(e.target.value),children:[(0,$.jsx)(N,{value:`compact`,children:f.fontScaleCompact}),(0,$.jsx)(N,{value:`default`,children:f.fontScaleDefault}),(0,$.jsx)(N,{value:`large`,children:f.fontScaleLarge})]})]}):null,t[46]=f,t[47]=l,t[48]=g,t[49]=h,t[50]=u,t[51]=v,t[52]=n,t[53]=C):C=t[53];let w;return t[54]!==C||t[55]!==b||t[56]!==x||t[57]!==S?(w=(0,$.jsxs)(`div`,{className:b,children:[x,S,C]}),t[54]=C,t[55]=b,t[56]=x,t[57]=S,t[58]=w):w=t[58],w}function lF(e){return e.setPreference}function uF(e){return e.preference}function dF(e){return e.setPreference}function fF(e){return e.preference}function pF(e){return e.setLanguage}function mF(e){return e.language}var hF={settingsImports:`imports`,settingsOverview:`overview`,settingsAppearance:`appearance`,settingsKeyboardShortcuts:`keyboard-shortcuts`,settingsSystem:`system`,settingsDesktopPet:`desktop-pet`,settingsDesktopApp:`desktop-app`,settingsAgentDefaults:`agent-defaults`,settingsGateway:`gateway`,settingsRuntimes:`runtimes`,settingsDevices:`devices`,settingsTunnel:`remote-access`,settingsShares:`shares`};function gF(e){return hF[e]??null}var _F=new Set([`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]),vF={id:`system`,tabs:[`settingsSystem`,`settingsDesktopPet`,`settingsDesktopApp`]},yF=[{id:`general`,tabs:[`settingsOverview`,`settingsAppearance`,`settingsKeyboardShortcuts`]},{id:`capabilities`,tabs:[`settingsModels`,`settingsVoice`,`settingsSearch`,`settingsAgentDefaults`]},{id:`integrations`,tabs:[`settingsAgentBrowser`,`settingsComputerUse`]},{id:`connection`,tabs:[`settingsDevices`,`settingsTunnel`,`settingsShares`]},{id:`system`,tabs:[`settingsGateway`,`settingsRuntimes`,`settingsImports`,`sessions`,`usage`,`logs`]}],bF=`https://xopcai.github.io/xopc`;function xF(e){return e===`zh`?`${bF}/zh/`:`${bF}/`}function SF(e,t){let n=t.replace(/^\/+/,``).replace(/\.md$/,``);return e===`zh`?`${bF}/zh/${n}`:`${bF}/${n}`}function CF(e,t){let n=SF(e,`remote-access`);return t?`${n}#${t}`:n}function wF(e){if(e===`settingsKeyboardShortcuts`)return`/settings/keyboard-shortcuts`;if(e===`settingsAgentBrowser`)return`/settings/agent-browser`;if(e===`settingsComputerUse`)return`/settings/computer-use`;if(e===`settingsModels`)return EF(`models`);if(e===`settingsVoice`)return EF(`voice`);if(e===`settingsSearch`)return EF(`search`);let t=gF(e);return t?`/settings/${t}`:e===`sessions`||e===`usage`||e===`logs`?`/settings/${e}`:`/${e}`}var TF=[`models`,`image`,`voice`,`search`];function EF(e){return`/settings/capabilities/${e}`}function DF(e,t){return e===`settingsModels`?t===EF(`models`)||t===EF(`image`):t===wF(e)}function OF(){let e=(0,Q.c)(49),t=At(MF),n=At(jF),r=At(AF),i=Pt(kF),a;e[0]===i?a=e[1]:(a=kt(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)(cF,{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 ${Ai}`,children:(0,$.jsx)(`div`,{className:ji,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)(YP,{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)(tF,{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)(jd,{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=SF(i,`gateway`),e[34]=i,e[35]=C);let w;e[36]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(te,{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 kF(e){return e.language}function AF(e){return e.setBrowserSession}function jF(e){return e.tokenExpired}function MF(e){return e.baseUrl}function NF(){return sa()?window.electronAPI?.platform??`web`:`web`}function PF({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 FF=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=Pt(IF),i;t[0]===r?i=t[1]:(i=kt(r),t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=q(`size-8 shrink-0 rounded-xl p-0`,ji,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(ot,{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)(X,{type:`button`,variant:`ghost`,className:o,title:a.titleBarCommandPalette,"aria-label":a.titleBarCommandPalette,onClick:LF,children:s}),t[5]=a.titleBarCommandPalette,t[6]=o,t[7]=c):c=t[7],c});function IF(e){return e.language}function LF(){return window.dispatchEvent(new CustomEvent(`open-command-palette`))}function RF(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 zF;function BF(){let e=(0,Q.c)(10),t=b(),n=g(),r;e[0]!==t.key||e[1]!==n?(r=()=>(zF=RF(zF,t.key,n),zF),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=()=>{zF=RF(zF,t.key,n),a(zF)},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,l=i.index<i.entries.length-1,u;return e[7]!==c||e[8]!==l?(u={canGoBack:c,canGoForward:l},e[7]=c,e[8]=l,e[9]=u):u=e[9],u}var VF=(0,Z.memo)(function(e){let t=(0,Q.c)(24),{className:n}=e,r=Pt(HF),i;t[0]===r?i=t[1]:(i=kt(r),t[0]=r,t[1]=i);let a=i,o=l(),{canGoBack:s,canGoForward:c}=BF();if(!sa())return null;let u;t[2]===n?u=t[3]:(u=q(`flex shrink-0 items-center gap-0.5`,n),t[2]=n,t[3]=u);let d=!s,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=q(`size-7 shrink-0 rounded-md p-0`,ji),t[4]=f):f=t[4];let p;t[5]===o?p=t[6]:(p=()=>o(-1),t[5]=o,t[6]=p);let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(Wo,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}),t[7]=m):m=t[7];let h;t[8]!==a.historyBack||t[9]!==d||t[10]!==p?(h=(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:d,className:f,title:a.historyBack,"aria-label":a.historyBack,onClick:p,children:m}),t[8]=a.historyBack,t[9]=d,t[10]=p,t[11]=h):h=t[11];let g=!c,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=q(`size-7 shrink-0 rounded-md p-0`,ji),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)(Jo,{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)(X,{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]!==u||t[22]!==h?(x=(0,$.jsxs)(`div`,{className:u,children:[h,b]}),t[20]=b,t[21]=u,t[22]=h,t[23]=x):x=t[23],x});function HF(e){return e.language}var UF=(0,Z.memo)(function(e){let t=(0,Q.c)(8),{className:n}=e,r=Pt(WF),i;t[0]===r?i=t[1]:(i=kt(r),t[0]=r,t[1]=i);let a=i.notes,o;t[2]===n?o=t[3]:(o=q(`size-8 shrink-0 rounded-xl p-0`,ji,n),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(kE,{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)(X,{type:`button`,variant:`ghost`,className:o,title:a.quickCapturePlaceholder,"aria-label":a.quickCapturePlaceholder,onClick:GF,children:s}),t[5]=a.quickCapturePlaceholder,t[6]=o,t[7]=c):c=t[7],c});function WF(e){return e.language}function GF(){return window.dispatchEvent(new CustomEvent(`open-quick-capture`))}var KF=`xopc-web-sidebar-collapsed`,qF=`xopc-web-sidebar-expanded-width-px`;function JF(){try{return globalThis.localStorage?.getItem(KF)===`1`}catch{return!1}}function YF(e){try{globalThis.localStorage?.setItem(KF,e?`1`:`0`)}catch{}}function XF(e){return Math.min(480,Math.max(248,Math.round(e)))}function ZF(){try{let e=globalThis.localStorage?.getItem(qF);if(e==null)return XF(256);let t=Number.parseInt(e,10);return XF(Number.isFinite(t)?t:256)}catch{return XF(256)}}function QF(e){try{globalThis.localStorage?.setItem(qF,String(e))}catch{}}var $F=It((e,t)=>({collapsed:JF(),setCollapsed:t=>{e({collapsed:t}),queueMicrotask(()=>YF(t))},toggleCollapsed:()=>{t().setCollapsed(!t().collapsed)},expandedWidthPx:ZF(),setExpandedWidthPx:n=>{let r=XF(n);t().expandedWidthPx!==r&&(e({expandedWidthPx:r}),queueMicrotask(()=>QF(r)))}})),eI=(0,Z.memo)(function(e){let t=(0,Q.c)(15),{variant:n,className:r}=e,i=n===void 0?`sidebar`:n,a=Pt(tI),o;t[0]===a?o=t[1]:(o=kt(a),t[0]=a,t[1]=o);let s=o,c=$F(nI),l=$F(rI),u=i===`sidebar`?`hidden md:inline-flex`:`inline-flex`,d;t[2]!==r||t[3]!==u?(d=q(`size-8 shrink-0 rounded-xl p-0`,u,ji,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)(ib,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0}):(0,$.jsx)(tb,{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)(X,{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 tI(e){return e.language}function nI(e){return e.collapsed}function rI(e){return e.toggleCollapsed}var iI=(0,Z.memo)(function(e){let t=(0,Q.c)(10),{sidebarToggleVariant:n,className:r}=e,i;t[0]===r?i=t[1]:(i=q(`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)(eI,{variant:n}),t[2]=n,t[3]=a);let o,s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(UF,{}),s=(0,$.jsx)(FF,{}),c=(0,$.jsx)(VF,{}),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}),aI=(0,Z.memo)(function(e){let t=(0,Q.c)(4),{className:n}=e,{pathname:r}=b(),i=$F(oI),a=PF({runtime:NF(),sidebarCollapsed:i,mobileNavOpen:!1});if(r.startsWith(`/settings`)||!i||!a.mainHeaderQuickActionsVisible||a.mainHeaderLeadingInsetClass)return null;let o;t[0]===n?o=t[1]:(o=q(`hidden md:flex`,n),t[0]=n,t[1]=o);let s;return t[2]===o?s=t[3]:(s=(0,$.jsx)(iI,{sidebarToggleVariant:`main`,className:o}),t[2]=o,t[3]=s),s});function oI(e){return e.collapsed}var sI=It(e=>({mobileNavOpen:!1,setMobileNavOpen:t=>e({mobileNavOpen:t}),toggleMobileNav:()=>e(e=>({mobileNavOpen:!e.mobileNavOpen}))})),cI=(0,Z.memo)(function(){let e=(0,Q.c)(12),t=Pt(lI),n;e[0]===t?n=e[1]:(n=kt(t),e[0]=t,e[1]=n);let r=n,i=sI(uI),a=sI(dI),o=i&&`hidden`,s;e[2]===o?s=e[3]:(s=q(`size-11 shrink-0 rounded-xl p-0 md:hidden`,ji,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)(Dv,{className:`size-5`,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)(X,{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 lI(e){return e.language}function uI(e){return e.mobileNavOpen}function dI(e){return e.setMobileNavOpen}var fI={startExtra:null,main:null,end:null},pI=It(e=>({...fI,setPageHeader:t=>e(t),clearPageHeader:()=>e(fI)})),mI=(0,Z.memo)(function(){let e=(0,Q.c)(28),{pathname:t}=b(),n=pI(hI),r=pI(gI),i=pI(_I),a=pI(vI),o=$F(yI),s=sI(bI),c;e[0]===t?c=e[1]:(c=t.startsWith(`/settings`),e[0]=t,e[1]=c);let l=!c,u,d,f;if(e[2]!==a||e[3]!==s||e[4]!==o){let t=PF({runtime:NF(),sidebarCollapsed:o,mobileNavOpen:s});f=q(`grid min-w-0 shrink-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-1 bg-surface-panel`,Mi,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`)?(u=q(`flex min-w-0 shrink-0 items-center gap-1 sm:gap-2.5`,ji),e[8]=u):u=e[8],d=t.mainHeaderLeadingInsetClass?(0,$.jsx)(iI,{sidebarToggleVariant:`main`,className:q(`hidden md:flex`,t.mainHeaderLeadingInsetClass)}):null,e[2]=a,e[3]=s,e[4]=o,e[5]=u,e[6]=d,e[7]=f}else u=e[5],d=e[6],f=e[7];let p;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(aI,{}),e[9]=p):p=e[9];let m;e[10]===l?m=e[11]:(m=l?(0,$.jsx)(cI,{}):null,e[10]=l,e[11]=m);let h;e[12]!==n||e[13]!==u||e[14]!==d||e[15]!==m?(h=(0,$.jsxs)(`div`,{className:u,children:[d,p,m,n]}),e[12]=n,e[13]=u,e[14]=d,e[15]=m,e[16]=h):h=e[16];let g;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(g=q(`w-fit max-w-full`,ji),e[17]=g):g=e[17];let _;e[18]===r?_=e[19]:(_=(0,$.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col justify-center overflow-hidden`,children:(0,$.jsx)(`div`,{className:g,children:r})}),e[18]=r,e[19]=_);let v;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(v=q(`flex min-w-0 shrink-0 items-center justify-end gap-2`,ji),e[20]=v):v=e[20];let y;e[21]===i?y=e[22]:(y=(0,$.jsx)(`div`,{className:v,children:i}),e[21]=i,e[22]=y);let x;return e[23]!==y||e[24]!==f||e[25]!==h||e[26]!==_?(x=(0,$.jsxs)(`header`,{className:f,children:[h,_,y]}),e[23]=y,e[24]=f,e[25]=h,e[26]=_,e[27]=x):x=e[27],x});function hI(e){return e.startExtra}function gI(e){return e.main}function _I(e){return e.end}function vI(e){return e.className}function yI(e){return e.collapsed}function bI(e){return e.mobileNavOpen}var xI=`
|
|
3
|
+
|
|
4
|
+
`,SI=/\r\n/g,CI=`xopc.npmPendingRestart`;function wI(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))}function TI(e,t){try{sessionStorage.setItem(CI,JSON.stringify({installedVersion:e,automaticRestart:t}))}catch{}window.dispatchEvent(new CustomEvent(`xopc:npm-update-installed`,{detail:{version:e,automaticRestart:t}})),t&&window.dispatchEvent(new Event(`gateway-restart-initiated`))}var EI=typeof window<`u`&&window.electronAPI?.updater!==void 0;function DI(){return null}function OI(e){if(!(!e||typeof window>`u`))try{let t=sessionStorage.getItem(CI);if(!t)return;let n=JSON.parse(t),r=typeof n.installedVersion==`string`?n.installedVersion.trim():``;r&&r===e&&sessionStorage.removeItem(CI)}catch{}}function kI(e){return OI(e.currentVersion),e}function AI(){let[e,t]=(0,Z.useState)(null),[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(()=>DI()),[o,s]=(0,Z.useState)(EI?{state:`idle`}:DI()),c=(0,Z.useRef)(null),l=EI||i!==null;(0,Z.useEffect)(()=>{if(l)return;MI().then(e=>t(kI(e))).catch(()=>{});let e=e=>{let n=e.detail;if(n===null)t(e=>e&&kI({...e,updateAvailable:!1,latestVersion:null,channel:null}));else if(n&&typeof n==`object`){let e=n;t(kI({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(!EI)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 Mt(Y(`/api/update/check`),{method:`POST`});if(!e.ok)return!1;let n=await e.json();return n.payload?(t(kI(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 Mt(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 NI(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=wI(e);TI(e.installedVersion,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(EI){window.electronAPI.updater.check();return}},[i]),p=(0,Z.useCallback)(()=>{EI&&window.electronAPI.updater.quitAndInstall()},[]);return{npm:e,electron:EI?o:i??o,isElectron:l,checkNow:u,runNpmUpdate:d,npmUpdateRunning:n,electronCheck:f,electronQuitAndInstall:p}}var jI=null;async function MI(){return jI||(jI=(async()=>{let e=await Mt(Y(`/api/update/status`));if(!e.ok)throw Error(`HTTP ${e.status}`);return(await e.json()).payload})().finally(()=>{jI=null}),jI)}async function NI(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(`
|
|
5
|
+
`)){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(SI,`
|
|
6
|
+
`);let c=r.split(xI);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 PI=`xopc.updateReminder.dismissed`,FI=typeof window<`u`&&window.electronAPI?.updater!==void 0,II=`xopc:electron-update-recheck`;function LI(){if(typeof window>`u`)return{};try{let e=localStorage.getItem(PI);if(!e)return{};let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return{}}}var RI=160;function zI(e){let t=e.trim();return t.length<=RI?t:`${t.slice(0,RI-1)}…`}function BI(){let{npm:e,electron:t,isElectron:n,electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}=AI(),[o,s]=(0,Z.useState)(LI),[c,l]=(0,Z.useState)({downloading:!1,electronError:!1}),[u,d]=(0,Z.useState)(()=>{if(typeof window>`u`||FI)return null;try{let e=sessionStorage.getItem(CI);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(CI)}catch{}d(null)}(0,Z.useEffect)(()=>{if(n)return;let e=()=>{try{let e=sessionStorage.getItem(CI);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(PI,JSON.stringify(t))}catch{}return t})};return window.addEventListener(II,e),()=>window.removeEventListener(II,e)},[]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.version?.trim();t&&s(e=>{let n={...e,npm:t};try{localStorage.setItem(PI,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:zI(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(CI)}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(PI,JSON.stringify(e))}catch{}s(e)},[o,m]),electronQuitAndInstall:r,runNpmUpdate:i,npmUpdateRunning:a}}var VI={version:`0.0.361`,commit:`c3713a75dd635137e4f6960938cdfb02b0274049`,buildTimeIso:`2026-10-08T10:37:55.105Z`},HI=`https://github.com/xopcai/xopc`,UI=new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}),WI=new Intl.DateTimeFormat(`en-US`,{year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1});function GI(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return(t===`zh`?UI:WI).format(n)}catch{return n.toISOString()}}function KI({open:e,onOpenChange:t}){let n=Pt(e=>e.language),r=kt(n),i=r.aboutDialog,a=r.updatePanel,{isElectron:o,electron:s,electronCheck:c,checkNow:l,npm:u,runNpmUpdate:d,npmUpdateRunning:f}=AI(),[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}=la(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=kt(n).updatePanel,t=await d();if(t.ok){oi({tone:`success`,title:e.updateSuccess,message:wI(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=VI.commit,T=n===`zh`?`zh-CN`:`en-US`,E=GI(VI.buildTimeIso,T),D=new Date().getFullYear(),O=i.copyright.replace(`{year}`,String(D));return(0,$.jsx)(sn,{open:e,onOpenChange:S,children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[200] bg-scrim`}),(0,$.jsxs)(an,{className:q(`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-overlay 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)(nn,{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)(Dt,{className:`size-4`,strokeWidth:2})})})}),(0,$.jsxs)(`div`,{className:`-mt-2 flex flex-col items-center text-center`,children:[(0,$.jsx)(YP,{className:`size-[4.5rem]`,alt:r.appBrand}),(0,$.jsx)(on,{className:`mt-3 text-xl font-semibold tracking-tight text-fg`,children:r.appBrand}),(0,$.jsx)(tn,{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:VI.version}),(0,$.jsx)(`button`,{type:`button`,className:q(`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(II)),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)(Ye,{className:`size-3 animate-spin`}),i.checkUpdatesChecking]}):i.checkUpdates})]})]}),o&&p&&(0,$.jsx)(qI,{state:s?.state,version:s?.version,percent:s?.percent,d:i}),!o&&p&&(0,$.jsx)(JI,{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:HI,target:`_blank`,rel:`noopener noreferrer`,children:i.repositoryLink})}),(0,$.jsx)(`p`,{className:`mt-2`,children:O})]})]})]})]})})}function qI(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)(Ye,{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)(tf,{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)(iS,{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)(G,{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)(G,{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)(L,{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 JI(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)(Ye,{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)(L,{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)(Ye,{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)(L,{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)(iS,{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=q(`w-full rounded-lg bg-accent px-3 py-1.5 text-center text-xs font-medium text-on-accent`,`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)(tf,{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 YI=q(`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-overlay`),XI=q(`overflow-hidden rounded-xl border border-edge bg-surface-overlay shadow-popover`,`dark:border-edge`);function ZI(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=q(`touch-target flex w-full items-center justify-between gap-2 rounded-none px-3 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-inset focus-visible:ring-accent`,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=q(`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 QI(e){let t=(0,Q.c)(220),{onNavigate:n,onAboutClick:r,onSupportClick:i,onDeviceConnectClick:a}=e,[o,s]=(0,Z.useState)(null),[c,l]=(0,Z.useState)(null),u=Pt(iL),d=Pt(rL),f=Bi(nL),p=Bi(tL),m=aF(eL),h=aF($I),g;t[0]===u?g=t[1]:(g=kt(u),t[0]=u,t[1]=g);let _=g,v=_.appearanceSettings,b=u===`zh`?v.langOptionZh:v.langOptionEn,x=f===`light`?v.themeOptionLight:f===`dark`?v.themeOptionDark:v.themeOptionSystem,S=m===`compact`?v.fontScaleCompact:m===`large`?v.fontScaleLarge:v.fontScaleDefault,C=typeof window<`u`?window.electronAPI?.pet:void 0,w=!!C,E=c?.visible?v.hideDesktopPet:v.showDesktopPet,D,O;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>{if(!C)return;let e=!1;C.getState().then(t=>{e||l(t)});let t=C.onStateChanged(t=>{e||l(t)});return()=>{e=!0,t()}},O=[C],t[2]=D,t[3]=O):(D=t[2],O=t[3]),(0,Z.useEffect)(D,O);let k;t[4]===c?.visible?k=t[5]:(k=async()=>{C&&(c?.visible?await C.hide():await C.show(),l(await C.getState()))},t[4]=c?.visible,t[5]=k);let A=k,j;t[6]===o?j=t[7]:(j=e=>q(`absolute left-full top-0 z-[60] min-w-[8.75rem] max-w-[min(calc(100vw-2rem),12rem)]`,`ml-2 sm:ml-2.5`,o===e?`block`:`hidden`),t[6]=o,t[7]=j);let M=j,N;t[8]===o?N=t[9]:(N=e=>q(`absolute left-full top-0 z-[55] h-full w-8 sm:w-9`,o===e?`pointer-events-auto`:`pointer-events-none`),t[8]=o,t[9]=N);let P=N,F;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>s(null),t[10]=F):F=t[10];let I;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>s(`lang`),t[11]=I):I=t[11];let L=o===`lang`&&`bg-surface-hover`,R;t[12]===L?R=t[13]:(R=q(YI,L),t[12]=L,t[13]=R);let z=o===`lang`,B;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(ze,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[14]=B):B=t[14];let V;t[15]===v.languageTitle?V=t[16]:(V=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:v.languageTitle}),t[15]=v.languageTitle,t[16]=V);let H;t[17]===b?H=t[18]:(H=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:b}),t[17]=b,t[18]=H);let U;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[19]=U):U=t[19];let W;t[20]!==R||t[21]!==z||t[22]!==V||t[23]!==H?(W=(0,$.jsxs)(`button`,{type:`button`,className:R,"aria-haspopup":`menu`,"aria-expanded":z,children:[B,V,H,U]}),t[20]=R,t[21]=z,t[22]=V,t[23]=H,t[24]=W):W=t[24];let G;t[25]===P?G=t[26]:(G=P(`lang`),t[25]=P,t[26]=G);let ee;t[27]===G?ee=t[28]:(ee=(0,$.jsx)(`div`,{className:G,"aria-hidden":!0}),t[27]=G,t[28]=ee);let ne;t[29]===M?ne=t[30]:(ne=M(`lang`),t[29]=M,t[30]=ne);let K=u===`en`,re;t[31]===d?re=t[32]:(re=()=>d(`en`),t[31]=d,t[32]=re);let ie;t[33]!==v.langOptionEn||t[34]!==K||t[35]!==re?(ie=(0,$.jsx)(ZI,{selected:K,label:v.langOptionEn,onSelect:re}),t[33]=v.langOptionEn,t[34]=K,t[35]=re,t[36]=ie):ie=t[36];let ae=u===`zh`,oe;t[37]===d?oe=t[38]:(oe=()=>d(`zh`),t[37]=d,t[38]=oe);let se;t[39]!==v.langOptionZh||t[40]!==ae||t[41]!==oe?(se=(0,$.jsx)(ZI,{selected:ae,label:v.langOptionZh,onSelect:oe}),t[39]=v.langOptionZh,t[40]=ae,t[41]=oe,t[42]=se):se=t[42];let ce;t[43]!==ie||t[44]!==se?(ce=(0,$.jsxs)(`div`,{className:XI,children:[ie,se]}),t[43]=ie,t[44]=se,t[45]=ce):ce=t[45];let le;t[46]!==v.languageTitle||t[47]!==ne||t[48]!==ce?(le=(0,$.jsx)(`div`,{className:ne,role:`menu`,"aria-label":v.languageTitle,children:ce}),t[46]=v.languageTitle,t[47]=ne,t[48]=ce,t[49]=le):le=t[49];let ue;t[50]!==W||t[51]!==ee||t[52]!==le?(ue=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:I,children:[W,ee,le]}),t[50]=W,t[51]=ee,t[52]=le,t[53]=ue):ue=t[53];let de;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>s(`theme`),t[54]=de):de=t[54];let fe=o===`theme`&&`bg-surface-hover`,pe;t[55]===fe?pe=t[56]:(pe=q(YI,fe),t[55]=fe,t[56]=pe);let me=o===`theme`,he;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,$.jsx)(Wy,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[57]=he):he=t[57];let ge;t[58]===v.themeTitle?ge=t[59]:(ge=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:v.themeTitle}),t[58]=v.themeTitle,t[59]=ge);let _e;t[60]===x?_e=t[61]:(_e=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:x}),t[60]=x,t[61]=_e);let ve;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[62]=ve):ve=t[62];let ye;t[63]!==pe||t[64]!==me||t[65]!==ge||t[66]!==_e?(ye=(0,$.jsxs)(`button`,{type:`button`,className:pe,"aria-haspopup":`menu`,"aria-expanded":me,children:[he,ge,_e,ve]}),t[63]=pe,t[64]=me,t[65]=ge,t[66]=_e,t[67]=ye):ye=t[67];let be;t[68]===P?be=t[69]:(be=P(`theme`),t[68]=P,t[69]=be);let xe;t[70]===be?xe=t[71]:(xe=(0,$.jsx)(`div`,{className:be,"aria-hidden":!0}),t[70]=be,t[71]=xe);let Se;t[72]===M?Se=t[73]:(Se=M(`theme`),t[72]=M,t[73]=Se);let Ce=f===`light`,we;t[74]===p?we=t[75]:(we=()=>p(`light`),t[74]=p,t[75]=we);let Te;t[76]!==v.themeOptionLight||t[77]!==Ce||t[78]!==we?(Te=(0,$.jsx)(ZI,{selected:Ce,label:v.themeOptionLight,onSelect:we}),t[76]=v.themeOptionLight,t[77]=Ce,t[78]=we,t[79]=Te):Te=t[79];let Ee=f===`dark`,De;t[80]===p?De=t[81]:(De=()=>p(`dark`),t[80]=p,t[81]=De);let Oe;t[82]!==v.themeOptionDark||t[83]!==Ee||t[84]!==De?(Oe=(0,$.jsx)(ZI,{selected:Ee,label:v.themeOptionDark,onSelect:De}),t[82]=v.themeOptionDark,t[83]=Ee,t[84]=De,t[85]=Oe):Oe=t[85];let ke=f===`system`,Ae;t[86]===p?Ae=t[87]:(Ae=()=>p(`system`),t[86]=p,t[87]=Ae);let je;t[88]!==v.themeOptionSystem||t[89]!==ke||t[90]!==Ae?(je=(0,$.jsx)(ZI,{selected:ke,label:v.themeOptionSystem,onSelect:Ae}),t[88]=v.themeOptionSystem,t[89]=ke,t[90]=Ae,t[91]=je):je=t[91];let Me;t[92]!==Te||t[93]!==Oe||t[94]!==je?(Me=(0,$.jsxs)(`div`,{className:XI,children:[Te,Oe,je]}),t[92]=Te,t[93]=Oe,t[94]=je,t[95]=Me):Me=t[95];let Ne;t[96]!==v.themeTitle||t[97]!==Se||t[98]!==Me?(Ne=(0,$.jsx)(`div`,{className:Se,role:`menu`,"aria-label":v.themeTitle,children:Me}),t[96]=v.themeTitle,t[97]=Se,t[98]=Me,t[99]=Ne):Ne=t[99];let Pe;t[100]!==ye||t[101]!==xe||t[102]!==Ne?(Pe=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:de,children:[ye,xe,Ne]}),t[100]=ye,t[101]=xe,t[102]=Ne,t[103]=Pe):Pe=t[103];let Fe;t[104]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=()=>s(`font`),t[104]=Fe):Fe=t[104];let Ie=o===`font`&&`bg-surface-hover`,Le;t[105]===Ie?Le=t[106]:(Le=q(YI,Ie),t[105]=Ie,t[106]=Le);let Re=o===`font`,Be;t[107]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,$.jsx)(VO,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[107]=Be):Be=t[107];let Ve;t[108]===v.fontScaleTitle?Ve=t[109]:(Ve=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:v.fontScaleTitle}),t[108]=v.fontScaleTitle,t[109]=Ve);let He;t[110]===S?He=t[111]:(He=(0,$.jsx)(`span`,{className:`max-w-20 truncate text-xs font-medium text-fg-muted`,children:S}),t[110]=S,t[111]=He);let Ue;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[112]=Ue):Ue=t[112];let We;t[113]!==Le||t[114]!==Re||t[115]!==Ve||t[116]!==He?(We=(0,$.jsxs)(`button`,{type:`button`,className:Le,"aria-haspopup":`menu`,"aria-expanded":Re,children:[Be,Ve,He,Ue]}),t[113]=Le,t[114]=Re,t[115]=Ve,t[116]=He,t[117]=We):We=t[117];let Ge;t[118]===P?Ge=t[119]:(Ge=P(`font`),t[118]=P,t[119]=Ge);let Ke;t[120]===Ge?Ke=t[121]:(Ke=(0,$.jsx)(`div`,{className:Ge,"aria-hidden":!0}),t[120]=Ge,t[121]=Ke);let qe;t[122]===M?qe=t[123]:(qe=M(`font`),t[122]=M,t[123]=qe);let Je=m===`compact`,Ye;t[124]===h?Ye=t[125]:(Ye=()=>h(`compact`),t[124]=h,t[125]=Ye);let Xe;t[126]!==v.fontScaleCompact||t[127]!==Je||t[128]!==Ye?(Xe=(0,$.jsx)(ZI,{selected:Je,label:v.fontScaleCompact,onSelect:Ye}),t[126]=v.fontScaleCompact,t[127]=Je,t[128]=Ye,t[129]=Xe):Xe=t[129];let Ze=m==="default",Qe;t[130]===h?Qe=t[131]:(Qe=()=>h(`default`),t[130]=h,t[131]=Qe);let $e;t[132]!==v.fontScaleDefault||t[133]!==Ze||t[134]!==Qe?($e=(0,$.jsx)(ZI,{selected:Ze,label:v.fontScaleDefault,onSelect:Qe}),t[132]=v.fontScaleDefault,t[133]=Ze,t[134]=Qe,t[135]=$e):$e=t[135];let et=m===`large`,tt;t[136]===h?tt=t[137]:(tt=()=>h(`large`),t[136]=h,t[137]=tt);let nt;t[138]!==v.fontScaleLarge||t[139]!==et||t[140]!==tt?(nt=(0,$.jsx)(ZI,{selected:et,label:v.fontScaleLarge,onSelect:tt}),t[138]=v.fontScaleLarge,t[139]=et,t[140]=tt,t[141]=nt):nt=t[141];let rt;t[142]!==Xe||t[143]!==$e||t[144]!==nt?(rt=(0,$.jsxs)(`div`,{className:XI,children:[Xe,$e,nt]}),t[142]=Xe,t[143]=$e,t[144]=nt,t[145]=rt):rt=t[145];let it;t[146]!==v.fontScaleTitle||t[147]!==qe||t[148]!==rt?(it=(0,$.jsx)(`div`,{className:qe,role:`menu`,"aria-label":v.fontScaleTitle,children:rt}),t[146]=v.fontScaleTitle,t[147]=qe,t[148]=rt,t[149]=it):it=t[149];let at;t[150]!==We||t[151]!==Ke||t[152]!==it?(at=(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:Fe,children:[We,Ke,it]}),t[150]=We,t[151]=Ke,t[152]=it,t[153]=at):at=t[153];let ot;t[154]!==E||t[155]!==A?(ot=w?(0,$.jsxs)(`button`,{type:`button`,className:YI,onClick:()=>void A(),onMouseEnter:()=>s(null),onFocus:()=>s(null),children:[(0,$.jsx)(vb,{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:E})]}):null,t[154]=E,t[155]=A,t[156]=ot):ot=t[156];let st;t[157]===a?st=t[158]:(st=()=>a?.(),t[157]=a,t[158]=st);let ct,lt,ut;t[159]===Symbol.for(`react.memo_cache_sentinel`)?(ct=()=>s(null),lt=()=>s(null),ut=(0,$.jsx)(Lv,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[159]=ct,t[160]=lt,t[161]=ut):(ct=t[159],lt=t[160],ut=t[161]);let dt;t[162]===_.endpointToolsSettings.deviceAccess.flow.title?dt=t[163]:(dt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.endpointToolsSettings.deviceAccess.flow.title}),t[162]=_.endpointToolsSettings.deviceAccess.flow.title,t[163]=dt);let ft;t[164]!==st||t[165]!==dt?(ft=(0,$.jsxs)(`button`,{type:`button`,className:YI,onClick:st,onMouseEnter:ct,onFocus:lt,children:[ut,dt]}),t[164]=st,t[165]=dt,t[166]=ft):ft=t[166];let pt;t[167]===Symbol.for(`react.memo_cache_sentinel`)?(pt=(0,$.jsx)(`div`,{className:`my-2 h-px bg-edge-subtle`,role:`separator`}),t[167]=pt):pt=t[167];let mt;t[168]===r?mt=t[169]:(mt=()=>r?.(),t[168]=r,t[169]=mt);let ht,gt,_t;t[170]===Symbol.for(`react.memo_cache_sentinel`)?(ht=()=>s(null),gt=()=>s(null),_t=(0,$.jsx)(nv,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[170]=ht,t[171]=gt,t[172]=_t):(ht=t[170],gt=t[171],_t=t[172]);let vt;t[173]===v.aboutApp?vt=t[174]:(vt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:v.aboutApp}),t[173]=v.aboutApp,t[174]=vt);let yt;t[175]!==mt||t[176]!==vt?(yt=(0,$.jsxs)(`button`,{type:`button`,className:YI,onClick:mt,onMouseEnter:ht,onFocus:gt,children:[_t,vt]}),t[175]=mt,t[176]=vt,t[177]=yt):yt=t[177];let bt;t[178]===u?bt=t[179]:(bt=xF(u),t[178]=u,t[179]=bt);let xt,St,Ct;t[180]===Symbol.for(`react.memo_cache_sentinel`)?(xt=()=>s(null),St=()=>s(null),Ct=(0,$.jsx)(cl,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[180]=xt,t[181]=St,t[182]=Ct):(xt=t[180],St=t[181],Ct=t[182]);let wt;t[183]===_.sidebar.helpDocs?wt=t[184]:(wt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.sidebar.helpDocs}),t[183]=_.sidebar.helpDocs,t[184]=wt);let Tt;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,$.jsx)(te,{className:`size-3.5 shrink-0 text-fg-subtle`,strokeWidth:2,"aria-hidden":!0}),t[185]=Tt):Tt=t[185];let Et;t[186]!==bt||t[187]!==wt?(Et=(0,$.jsxs)(`a`,{href:bt,target:`_blank`,rel:`noopener noreferrer`,className:YI,onMouseEnter:xt,onFocus:St,children:[Ct,wt,Tt]}),t[186]=bt,t[187]=wt,t[188]=Et):Et=t[188];let Dt;t[189]===i?Dt=t[190]:(Dt=()=>i?.(),t[189]=i,t[190]=Dt);let Ot,J,At;t[191]===Symbol.for(`react.memo_cache_sentinel`)?(At=()=>s(null),Ot=()=>s(null),J=(0,$.jsx)(Nv,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[191]=Ot,t[192]=J,t[193]=At):(Ot=t[191],J=t[192],At=t[193]);let jt;t[194]===_.supportReport.menu?jt=t[195]:(jt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-left`,children:_.supportReport.menu}),t[194]=_.supportReport.menu,t[195]=jt);let Mt;t[196]!==jt||t[197]!==Dt?(Mt=(0,$.jsxs)(`button`,{type:`button`,className:YI,onClick:Dt,onMouseEnter:At,onFocus:Ot,children:[J,jt]}),t[196]=jt,t[197]=Dt,t[198]=Mt):Mt=t[198];let Nt,Ft,It;t[199]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=q(YI,`text-accent-fg hover:bg-accent-soft hover:text-accent-fg`),Ft=()=>s(null),It=()=>s(null),t[199]=Nt,t[200]=Ft,t[201]=It):(Nt=t[199],Ft=t[200],It=t[201]);let Y;t[202]===n?Y=t[203]:(Y=()=>n?.(),t[202]=n,t[203]=Y);let Lt;t[204]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,$.jsx)(DC,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[204]=Lt):Lt=t[204];let Rt;t[205]===v.openFullPreferences?Rt=t[206]:(Rt=(0,$.jsx)(`span`,{className:`min-w-0 flex-1`,children:v.openFullPreferences}),t[205]=v.openFullPreferences,t[206]=Rt);let zt;t[207]!==Y||t[208]!==Rt?(zt=(0,$.jsxs)(y,{to:`/settings/overview`,className:Nt,onMouseEnter:Ft,onFocus:It,onClick:Y,children:[Lt,Rt]}),t[207]=Y,t[208]=Rt,t[209]=zt):zt=t[209];let Bt;return t[210]!==Mt||t[211]!==zt||t[212]!==ue||t[213]!==Pe||t[214]!==at||t[215]!==ot||t[216]!==ft||t[217]!==yt||t[218]!==Et?(Bt=(0,$.jsxs)(`div`,{className:`w-[min(calc(100vw-2rem),13rem)] shrink-0 py-0.5`,onMouseLeave:F,children:[ue,Pe,at,ot,ft,pt,yt,Et,Mt,zt]}),t[210]=Mt,t[211]=zt,t[212]=ue,t[213]=Pe,t[214]=at,t[215]=ot,t[216]=ft,t[217]=yt,t[218]=Et,t[219]=Bt):Bt=t[219],Bt}function $I(e){return e.setPreference}function eL(e){return e.preference}function tL(e){return e.setPreference}function nL(e){return e.preference}function rL(e){return e.setLanguage}function iL(e){return e.language}var aL=`open-support-report`;function oL(e={}){window.dispatchEvent(new CustomEvent(aL,{detail:e}))}var sL=(0,Z.lazy)(()=>s(()=>import(`./device-pairing-wizard-D8sTDd5s.js`).then(e=>e.n).then(e=>({default:e.DevicePairingWizard})),__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,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function cL({collapsed:e=!1,onNavigate:t}){let n=kt(Pt(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-CHKsZFAN.js`),__vite__mapDeps([45,1,4,6,7,16,17])),s(()=>import(`./sessions-page-CV0JlaXS.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,47,10,25,48,23,24,18,28,43,13,49,50,51,52,53,15,16,17,54,41,55,56,57,31,20,58,35,59,32,60,33,34,61,14,36,62])),s(()=>import(`./logs-page-48nrZNQe.js`),__vite__mapDeps([63,1,2,3,4,5,6,7,47,10,25,48,23,24,18,28,43,13,53,15,16,17,64,41,65,54,55,20,61,14,27,36])),s(()=>import(`./automations-page-8kZugDcf.js`),__vite__mapDeps([66,4,1,67,68,2,3,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,8,70,25,9,47,48,23,24,28,43,57,11,12,71,72,73,34,74,53,75,20,76,77,78])),s(()=>import(`./capabilities-page-BBi4ef3u.js`),__vite__mapDeps([79,1,7,4,6,16,17,28,18,80,53,10,48,3,5,23,24,20]))},[]),(0,$.jsxs)(`div`,{className:q(`flex shrink-0 flex-col`,e&&`mt-auto`,e?`items-center px-1 py-2`:`p-3`),children:[c?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(sL,{open:!0,onOpenChange:l})}):null,(0,$.jsxs)(Qi,{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)(ua,{variant:`avatar`,className:`size-10`})}),(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:q(`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)(DC,{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:q(`flex size-10 shrink-0 items-center justify-center rounded-full 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)(ua,{variant:`avatar`,className:`size-10`})}),(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:q(`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)(DC,{className:`size-[18px] shrink-0`,strokeWidth:1.5})]})})]}),(0,$.jsx)(Yi,{children:(0,$.jsx)(Zi,{className:q(`z-50 w-max max-w-[min(calc(100vw-1rem),28rem)] overflow-visible`,`rounded-xl border border-edge bg-surface-overlay 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)(QI,{onNavigate:()=>{i(!1),t?.()},onAboutClick:()=>{o(!0),i(!1)},onSupportClick:()=>{i(!1),oL()},onDeviceConnectClick:()=>{i(!1),l(!0)}})})})]}),(0,$.jsx)(KI,{open:a,onOpenChange:o})]})}var lL=new Map,uL=`xopc-agent-avatar-updated`;function dL(e){let t=(lL.get(e)??0)+1;return lL.set(e,t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(uL,{detail:{agentId:e}})),t}function fL(e){return lL.get(e)??0}var pL=`xopc:custom`,mL=`xopc:dicebear:`,hL=[`adventurer`,`bottts`,`lorelei`,`thumbs`,`fun-emoji`],gL=[...hL,`pixel-art`];function _L(e){return gL.includes(e)}function vL(e){if(!e.startsWith(mL))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!_L(r)||!i.trim()?null:{styleId:r,seed:i}}function yL(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)>>>0;return t}function bL(e,t=128){let n=yL(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 xL(e,t,n,r){let i=t?.trim()??``,a=bL(e,n);if(i.startsWith(`xopc:loopi:`)){let e=i.slice(11);if(e===`idle`||e===`listen`||e===`curious`||e===`care`)return{kind:`loopi`,mood:e}}if(!i)return{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:a};if(i===`xopc:custom`){let t=Y(`/api/agents/${encodeURIComponent(e)}/avatar`),n=new URLSearchParams;r>0&&n.set(`v`,String(r));let i=n.toString();return{kind:`authenticated`,url:i?`${t}?${i}`:t,fallbackSrc:a}}if(/^https?:\/\//i.test(i))return{kind:`sync`,src:i};let o=vL(i);return o?{kind:`dicebear`,styleId:o.styleId,seed:o.seed,fallbackSrc:a}:{kind:`dicebear`,styleId:`adventurer`,seed:e,fallbackSrc:a}}function SL(e){let t=At(e=>e.conversationId),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(uL,e),()=>window.removeEventListener(uL,e)},[r]);let c=fL(r),l=(0,Z.useMemo)(()=>xL(r,i,a,c),[r,i,n,a,c]),u=l.kind===`sync`?l.src:l.kind===`loopi`?bL(r,a):l.fallbackSrc,[d,f]=(0,Z.useState)(u);return(0,Z.useEffect)(()=>{f(u)},[u]),(0,Z.useEffect)(()=>{if(l.kind!==`authenticated`||(f(l.fallbackSrc),!n))return;let e=new AbortController,t;return fetch(l.url,{credentials:`same-origin`,signal:e.signal,redirect:`error`}).then(async n=>{if(!n.ok)return;let r=await n.blob();e.signal.aborted||(t=URL.createObjectURL(r),f(t))}).catch(()=>{}),()=>{e.abort(),t&&URL.revokeObjectURL(t)}},[l,n]),(0,Z.useEffect)(()=>{if(l.kind!==`dicebear`)return;let e=!1;return s(async()=>{let{dicebearToDataUri:e}=await import(`./agent-avatar-dicebear-DUhFW_Go.js`);return{dicebearToDataUri:e}},__vite__mapDeps([81,1])).then(({dicebearToDataUri:t})=>{e||f(t(l.styleId,l.seed,a))}).catch(()=>{e||f(l.fallbackSrc)}),()=>{e=!0}},[l,a]),l.kind===`loopi`?(0,$.jsx)(`span`,{className:q(`inline-flex items-center justify-center rounded-full bg-surface-hover`,e.className),style:{width:a,height:a},children:(0,$.jsx)(ua,{variant:`avatar`,mood:l.mood,className:`size-full`})}):(0,$.jsx)(`img`,{src:d,alt:``,width:a,height:a,className:q(`rounded-full object-cover bg-surface-hover`,e.className),draggable:!1,onError:()=>{f(bL(r,a))}})}var CL={loopi:`idle`,"loopi-curious":`curious`,"loopi-care":`care`};function wL(e){let t=(0,Q.c)(8),{appearance:n,agentId:r,className:i}=e,a=i===void 0?``:i;if(n===`custom`&&r){let e;return t[0]!==r||t[1]!==a?(e=(0,$.jsx)(SL,{agentId:r,avatar:`xopc:custom`,className:a}),t[0]=r,t[1]=a,t[2]=e):e=t[2],e}let o=n===`custom`?`idle`:CL[n],s=`personal-avatar-motion inline-flex items-center justify-center ${a}`,c;t[3]===o?c=t[4]:(c=(0,$.jsx)(ua,{variant:`avatar`,mood:o,className:`size-full`}),t[3]=o,t[4]=c);let l;return t[5]!==s||t[6]!==c?(l=(0,$.jsx)(`span`,{className:s,"aria-hidden":`true`,children:c}),t[5]=s,t[6]=c,t[7]=l):l=t[7],l}function TL(e){return XA[e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)]}function EL(e,t){return t.path.startsWith(`/extensions/`)?t.path:`/extensions/${e}/${t.id.startsWith(`${e}.`)?t.id.slice(e.length+1):t.id}`}var DL=()=>s(()=>import(`./sessions-page-CV0JlaXS.js`),__vite__mapDeps([46,1,2,3,4,5,6,7,8,47,10,25,48,23,24,18,28,43,13,49,50,51,52,53,15,16,17,54,41,55,56,57,31,20,58,35,59,32,60,33,34,61,14,36,62])),OL=()=>s(()=>import(`./usage-page-DKwKfszc.js`),__vite__mapDeps([82,1,4,8,83,10,47,25,48,3,5,23,24,18,28,43,57,16,17,20,61,14])),kL=()=>s(()=>import(`./automations-page-8kZugDcf.js`),__vite__mapDeps([66,4,1,67,68,2,3,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,8,70,25,9,47,48,23,24,28,43,57,11,12,71,72,73,34,74,53,75,20,76,77,78])),AL=()=>s(()=>import(`./scenes-page-DeFdMf2q.js`),__vite__mapDeps([84,1,68,2,3,4,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,8,47,25,48,23,24,28,43,85,86,87,75,64,65,20,88,31,89,90,54,55,91,92,59,93,94,32,95,96,97])),jL=()=>s(()=>import(`./browser-automations-page-HVXiBKXE.js`),__vite__mapDeps([98,1,4,6,7,83,10,85,12,34,74,16,17,20,5,18,28,78,47,25,48,3,23,24,43])),ML=()=>s(()=>import(`./home-page-KFs5suD1.js`),__vite__mapDeps([99,1,68,2,3,4,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,9,57,11,12,14,100,101,102,25,26,71,77,49,103,31,104,51,34,105,53,106,54,55,92,107,28,93,108,109,38,35,44,110,111,47,48,23,24,43,30,20,21,22,96,90,97,112,113,95,87,75,114])),NL=()=>s(()=>import(`./task-detail-page-B5JyH4z7.js`),__vite__mapDeps([115,1,68,2,3,4,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,8,47,25,48,23,24,28,43,11,71,14,100,101,102,26,77,49,103,31,104,51,34,105,53,106,54,55,92,107,93,108,109,38,35,44,110,111,30,20,21,22,96,90,97,112,113,95,50,73,74,116,9,88,89,64,65,91,59,94,32,117])),PL=()=>s(()=>import(`./projects-page-CdEmmBCz.js`),__vite__mapDeps([118,1,2,3,4,5,6,7,47,10,25,48,23,24,18,28,43,49,31,52,119,53,15,16,17,20])),FL=()=>s(()=>import(`./project-detail-page-Cro1OE8P.js`),__vite__mapDeps([120,1,121,4,122,8,123,68,2,3,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,25,9,47,48,23,24,28,43,57,11,124,26,14,100,101,102,71,77,49,103,31,104,51,34,105,53,106,54,55,92,107,93,108,109,38,35,44,110,111,30,20,21,22,96,90,97,112,113,95,72,86,73,74,119,75,67,70,12,76,78,56,116,58,125,89,64,65,91,59,94,32,88,126,127,128,129,130,131,132,117,62])),IL=()=>s(()=>import(`./notes-page-CKTTfxw-.js`),__vite__mapDeps([133,1,68,2,3,4,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,8,47,25,48,23,24,28,43,71,86,31,101,53,75,106,107,125,11,26,14,77,34,74,89,64,65,90,54,55,91,92,59,93,94,32,20,88,95,96,97,126,113,127,128])),LL=()=>s(()=>import(`./workflows-page-DgNy6mBQ.js`),__vite__mapDeps([134,1,135,121,4,122,8,123,68,2,3,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,83,25,9,47,48,23,24,28,43,26,71,72,86,50,34,74,119,53,75,136,20,58,35,114,137,76,77,94,32,127,128])),RL=()=>s(()=>import(`./capabilities-page-BBi4ef3u.js`),__vite__mapDeps([79,1,7,4,6,16,17,28,18,80,53,10,48,3,5,23,24,20])),zL=()=>s(()=>import(`./user-model-page-BsgADrGL.js`),__vite__mapDeps([138,1,2,3,4,5,6,7,8,83,10,25,9,47,48,23,24,18,28,43,57,11,12,13,71,49,72,31,34,52,53,75,15,16,17,139,140,107,20,116,58,35])),BL=()=>s(()=>import(`./logs-page-48nrZNQe.js`),__vite__mapDeps([63,1,2,3,4,5,6,7,47,10,25,48,23,24,18,28,43,13,53,15,16,17,64,41,65,54,55,20,61,14,27,36])),VL=()=>s(()=>import(`./settings-page-CHKsZFAN.js`),__vite__mapDeps([45,1,4,6,7,16,17])),HL=()=>s(()=>import(`./browser-settings-page-DpxAXNvM.js`),__vite__mapDeps([141,1,4,6,7,8,47,10,25,48,3,5,23,24,18,28,43,11,13,14,77,49,31,16,17,56,57,20,32,60,142,61,62])),UL=()=>s(()=>import(`./computer-settings-page-De-pjlvn.js`),__vite__mapDeps([143,1,4,6,7,8,25,10,30,52,16,17,20,5,18,28,59,55,32,61,14,38])),WL=()=>s(()=>import(`./extension-page-DypBVBTt.js`),__vite__mapDeps([144,1,4,6,7,145,8,16,17,41,64,65,96,90,42,97,89,54,55,91,92,59,93,94,32,146,110,127,128])),GL=()=>s(()=>import(`./extension-settings-page-DzzkBN9y.js`),__vite__mapDeps([147,1,4,6,7,8,47,10,25,48,3,5,23,24,18,28,43,16,17,145,41,64,65,96,90,42,97,89,54,55,91,92,59,93,94,32,146,110,127,128,56,57,31,20,148,149,11,26,77,27,36,35,150,142,61,14,151,152])),KL=()=>s(()=>import(`./extension-debug-page-VxCq29jC.js`),__vite__mapDeps([153,1,4,16,17,145,8,41,64,65,96,90,42,97,89,54,55,91,92,59,7,93,94,32,146,110,127,128,61,14,10,18])),qL=()=>s(()=>import(`./share-preview-page-BPDWUuH_.js`),__vite__mapDeps([154,1,7,68,2,3,4,5,6,10,13,52,15,16,17,18,39,40,41,42,27,69,102,25,26,71,14,77,49,103,31,104,51,34,105,53,106,54,55,92,107,28,93,108,109,38,35,44,110])),JL=()=>s(()=>import(`./local-apps-page-BcLijQx4.js`),__vite__mapDeps([155,1,4,6,7,8,52,10,16,17,20,5,18,28])),YL=()=>s(()=>import(`./local-app-workbench-page-CcU1OLWQ.js`),__vite__mapDeps([156,1,2,3,4,5,6,7,8,25,10,11,12,14,31,119,75,15,16,17,42,41,20,18,28,114,137,88,89,64,65,90,54,55,91,92,59,93,94,32,95,96,97])),XL=()=>s(()=>import(`./product-open-page-D1ARqS3r.js`),__vite__mapDeps([157,4,1,6,7,8,16,17,40,41,42,28,18])),ZL=()=>s(()=>Promise.resolve().then(()=>Ide),void 0),QL=()=>s(()=>import(`./work-discovery-overlay-x1vZDBhu.js`),__vite__mapDeps([158,1,2,3,4,5,15,10,16,17,20,18])),$L=()=>s(()=>import(`./setup-status-panel-CC58OVOe.js`),__vite__mapDeps([159,1,4,6,7,8,70,10,9,11,31,16,17,18,59,55,32,60,33,34,35,142,28,61,14,38,150,65])),eR=()=>s(()=>import(`./appearance-settings-CccnRRrL.js`),__vite__mapDeps([160,1,4,47,10,25,48,3,5,23,24,18,28,43,16,17,32,8,60,61,14,35,127,128])),tR=()=>s(()=>import(`./keyboard-shortcuts-settings-CexiL-Ey.js`),__vite__mapDeps([161,1,4,16,17,18,61,14,10,38])),nR=()=>s(()=>import(`./system-settings-panel-Dho_dlBS.js`),__vite__mapDeps([162,1,4,14,10,16,17,18,33,34,35,61,38,62])),rR=()=>s(()=>import(`./desktop-pet-settings-qoFZBKe9.js`),__vite__mapDeps([163,1,4,6,7,47,10,25,48,3,5,23,24,18,28,43,57,14,104,119,16,17,164,61,38,35])),iR=()=>s(()=>import(`./app-management-settings-panel-DEig00YU.js`),__vite__mapDeps([165,1,2,3,4,5,8,26,10,16,17,18,20,28,33,34,35,142,61,14,27,38,62,43])),aR=()=>s(()=>import(`./capabilities-settings-panel-IxszGl-Q.js`),__vite__mapDeps([166,1,7,2,3,4,5,6,8,9,10,47,25,48,23,24,18,28,43,11,167,168,14,149,26,77,31,27,36,35,150,101,34,74,52,87,15,16,17,56,57,20,58,32,169,170,59,55,37,38,60,33,142,61,151,152,62])),oR=()=>s(()=>import(`./gateway-settings--M7ZH_37.js`),__vite__mapDeps([171,1,4,6,7,8,47,10,25,48,3,5,23,24,18,28,43,57,149,11,26,77,31,27,36,35,150,105,16,17,20,58,32,60,33,34,142,61,14,62])),sR=()=>s(()=>import(`./runtime-tools-settings-panel-DtmQbC72.js`),__vite__mapDeps([172,1,4,8,47,10,25,48,3,5,23,24,18,28,43,57,11,13,119,16,17,20,60,142,61,14])),cR=()=>s(()=>import(`./remote-access-hub-C9_ea_4p.js`),__vite__mapDeps([173,1,2,3,4,5,6,7,8,25,10,9,26,14,149,11,77,31,18,27,36,35,150,30,16,17,20,21,22,23,24,58,29,28,32,33,34,37,38,60,61,62,43])),lR=()=>s(()=>import(`./shares-settings-DaXvdH8c.js`),__vite__mapDeps([174,1,2,3,4,5,6,7,8,25,10,47,48,23,24,18,28,43,168,26,49,31,50,52,111,14,30,15,16,17,20,21,22,27,58,35,32,94,33,34,142,61,113,36,62])),uR=()=>s(()=>import(`./agent-defaults-settings-panel-BNILmgey.js`),__vite__mapDeps([175,1,4,6,7,8,47,10,25,48,3,5,23,24,18,28,43,11,101,53,75,16,17,56,57,31,20,59,55,32,176,15,169,61,14,152,38])),dR=()=>s(()=>import(`./management-settings-B_gzl_Vh.js`),__vite__mapDeps([177,1,2,3,4,5,6,7,8,70,10,9,47,25,48,23,24,18,28,43,52,53,15,106,16,17,20,58,35,0,11,12,13,14,19,21,22,26,27,29,30,31,32,33,34,36,37,38,39,40,41,42,44,142,61])),fR=new Set;function pR(e){fR.has(e)||(fR.add(e),e().catch(()=>{fR.delete(e)}))}function mR(e){let[t]=e.split(/[?#]/,1);return t||`/`}function hR(e){pR(VL);let t=e.slice(10);if(t===`overview`)return pR($L);if(t===`appearance`)return pR(eR);if(t===`keyboard-shortcuts`)return pR(tR);if(t===`system`)return pR(nR);if(t===`desktop-pet`)return pR(rR);if(t===`desktop-app`)return pR(iR);if(t.startsWith(`capabilities/`))return pR(aR);if(t===`gateway`)return pR(oR);if(t===`runtimes`)return pR(sR);if(t===`devices`)return pR(dR);if(t===`tunnel`||t===`remote-access`)return pR(cR);if(t===`shares`)return pR(lR);if(t===`agent-defaults`)return pR(uR);if(t===`agent-browser`)return pR(HL);if(t===`computer-use`)return pR(UL)}function gR(e){if(!e.startsWith(`/`))return;let t=mR(e);if(t===`/capabilities`||t.startsWith(`/capabilities/`))return pR(RL);if(t===`/user-model`)return pR(zL);if(t===`/automations`)return pR(kL);if(t===`/scenes`||t.startsWith(`/scenes/`))return pR(AL);if(t===`/browser-automations`)return pR(jL);if(t===`/`)return pR(ML);if(t.startsWith(`/tasks/`))return pR(NL);if(t===`/projects`)return pR(PL);if(t.startsWith(`/projects/`))return pR(FL);if(t===`/notes`||t.startsWith(`/notes/`))return pR(IL);if(t===`/workflows`||t.startsWith(`/workflows/`))return pR(LL);if(t.startsWith(`/extensions/`))return pR(WL);if(t===`/local-apps`)return pR(JL);if(t.startsWith(`/local-apps/`))return pR(YL);if(t===`/open`)return pR(XL);if(t===`/onboarding/workspace`)return pR(ZL);if(t.startsWith(`/share/`))return pR(qL);if(t===`/settings/sessions`)return pR(DL);if(t===`/settings/usage`)return pR(OL);if(t===`/settings/logs`)return pR(BL);if(t===`/settings/extensions/debug`)return pR(KL);if(t.startsWith(`/settings/ext/`))return pR(GL);if(t.startsWith(`/settings/`))return hR(t)}var _R=3,vR=5,yR=[`work-overview`,`capabilities-skills`,`automation-triggers`,`capabilities-connectors`,`work-projects`,`work-notes`,`capabilities-agents`,`capabilities-channels`,`automation-workflows`,`automation-browser`,`apps-library`,`capabilities-extensions`,`automation-scenes`],bR={"work-overview":`work`,"work-projects":`work`,"work-notes":`work`,"apps-library":`apps`,"automation-scenes":`automation`,"automation-triggers":`automation`,"automation-workflows":`automation`,"automation-browser":`automation`,"capabilities-agents":`capabilities`,"capabilities-skills":`capabilities`,"capabilities-connectors":`capabilities`,"capabilities-channels":`capabilities`,"capabilities-extensions":`capabilities`},xR={"work-overview":Q_,"work-projects":F_,"work-notes":_y,"apps-library":kl,"automation-scenes":lf,"automation-triggers":PA,"automation-workflows":Re,"automation-browser":Iv,"capabilities-agents":wk,"capabilities-skills":cv,"capabilities-connectors":ru,"capabilities-channels":ix,"capabilities-extensions":bx},SR=new Map(rj.flatMap(e=>e.sections.map(e=>[e.id,e])));function CR(e,t,n=!1){return q(`flex w-full items-center text-sm font-medium 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`,n?`gap-2 rounded-md px-2 py-1.5 text-left leading-5`:e?`justify-center rounded-xl p-2.5 leading-6`:`gap-2 rounded-lg px-3 py-2.5 text-left leading-6 md:py-1.5`,t?`bg-surface-active text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`)}function wR(e){let t=(0,Q.c)(2),{Icon:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(n,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),t[0]=n,t[1]=r),r}function TR(e){let t=(0,Q.c)(52),{collapsed:n,onNavigate:r,visibleLimit:i}=e,a=n===void 0?!1:n,o=i===void 0?_R:i,{pathname:s,search:c}=b(),l=kt(Pt(FR)),u=l.productNavigation,d;t[0]!==s||t[1]!==c?(d=oj(s,c),t[0]=s,t[1]=c,t[2]=d):d=t[2];let f=d,p=Kr(),m=At(PR),h;t[3]===m?h=t[4]:(h=m?[`personal-agent-nav`,m]:null,t[3]=m,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g={revalidateOnFocus:!1},t[5]=g):g=t[5];let{data:_,mutate:v}=Xr(h,NR,g),x,S;t[6]===v?(x=t[7],S=t[8]):(x=()=>{let e=e=>{let t=e.detail;t===void 0?v():v({ok:!0,payload:t},{revalidate:!1})};return window.addEventListener(`personal-agent-updated`,e),()=>window.removeEventListener(`personal-agent-updated`,e)},S=[v],t[6]=v,t[7]=x,t[8]=S),(0,Z.useEffect)(x,S);let[C,w]=(0,Z.useState)(!1),T=yR.map(e=>{let t=SR.get(e);return{id:e,label:u.sections[e],to:t.path,Icon:xR[e],active:f===e}}),E;t[9]===o?E=t[10]:(E=Math.round(o),t[9]=o,t[10]=E);let D=Math.min(vR,Math.max(1,E)),O=T.slice(0,D),k=T.slice(D),A;t[11]===s?A=t[12]:(A=e=>e.activationEligible===!1?[]:(e.ui?.contributions?.pages??[]).filter(MR).map(t=>{let n=EL(e.id,t);return{id:`extension:${e.id}:${t.id}`,label:t.title,to:n,Icon:t.navIcon?TL(t.navIcon)??bx:bx,active:s===n||s.startsWith(`${n}/`)}}),t[11]=s,t[12]=A);let j=p.flatMap(A),M=[`work`,`automation`,`capabilities`,`apps`].map(e=>({id:e,label:u.domains[e],items:k.filter(t=>bR[t.id]===e)})).filter(jR),N=k.some(AR)||j.some(kR),P;t[13]!==a||t[14]!==r||t[15]!==w?(P=(e,t)=>{let n=t===void 0?!1:t;return(0,$.jsxs)(y,{to:e.to,"aria-current":e.active?`page`:void 0,className:CR(a,e.active,n),title:e.label,onMouseEnter:()=>gR(e.to),onFocus:()=>gR(e.to),onClick:()=>{w(!1),r?.()},children:[(0,$.jsx)(wR,{Icon:e.Icon}),!a||n?(0,$.jsx)(`span`,{className:`truncate`,children:e.label}):null]},e.id)},t[13]=a,t[14]=r,t[15]=w,t[16]=P):P=t[16];let F=P,I=s===`/personal`?`page`:void 0,L=s===`/personal`,R;t[17]!==a||t[18]!==L?(R=CR(a,L),t[17]=a,t[18]=L,t[19]=R):R=t[19];let z=_?.payload?.displayName||`Ada`,B;t[20]===r?B=t[21]:(B=()=>r?.(),t[20]=r,t[21]=B);let V=_?.payload?.appearance??`loopi`,H=_?.payload?.agentId,U;t[22]!==V||t[23]!==H?(U=(0,$.jsx)(`span`,{className:`flex size-5 shrink-0 items-center justify-center`,"aria-hidden":!0,children:(0,$.jsx)(wL,{appearance:V,agentId:H,className:`size-5`})}),t[22]=V,t[23]=H,t[24]=U):U=t[24];let W;t[25]!==a||t[26]!==_?.payload?.displayName?(W=!a&&(0,$.jsx)(`span`,{className:`truncate`,children:_?.payload?.displayName||`Ada`}),t[25]=a,t[26]=_?.payload?.displayName,t[27]=W):W=t[27];let G;t[28]!==I||t[29]!==R||t[30]!==z||t[31]!==B||t[32]!==U||t[33]!==W?(G=(0,$.jsxs)(y,{to:`/personal`,"aria-current":I,className:R,title:z,onMouseEnter:OR,onFocus:DR,onClick:B,children:[U,W]}),t[28]=I,t[29]=R,t[30]=z,t[31]=B,t[32]=U,t[33]=W,t[34]=G):G=t[34];let te;t[35]===F?te=t[36]:(te=e=>F(e),t[35]=F,t[36]=te);let ne=O.map(te),K=l.sidebar.moreAppsAria,re=l.sidebar.moreApps,ie=a?`justify-center rounded-xl p-2.5`:`gap-2 rounded-lg px-3 py-2.5 text-left md:py-1.5`,ae=C||N?`bg-surface-active text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`,oe;t[37]!==ie||t[38]!==ae?(oe=q(`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`,ie,ae),t[37]=ie,t[38]=ae,t[39]=oe):oe=t[39];let se;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,$.jsx)(ee,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),t[40]=se):se=t[40];let ce=Xi,le=Xi,ue=ER,de=l.sidebar.moreAppsAria,fe=M.map(e=>(0,$.jsxs)(`section`,{"aria-labelledby":`sidebar-more-${e.id}`,children:[(0,$.jsx)(`div`,{id:`sidebar-more-${e.id}`,className:`px-2 pb-1 pt-1.5 text-[11px] font-semibold tracking-wide text-fg-subtle`,children:e.label}),(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:e.items.map(e=>F(e,!0))})]},e.id)),pe=j.length>0?(0,$.jsxs)(`section`,{"aria-labelledby":`sidebar-more-extension-apps`,children:[(0,$.jsx)(`div`,{id:`sidebar-more-extension-apps`,className:`px-2 pb-1 pt-1.5 text-[11px] font-semibold tracking-wide text-fg-subtle`,children:l.sidebar.extensionAppsHeading}),(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:j.map(e=>F(e,!0))})]}):null,me;t[41]!==l||t[42]!==fe||t[43]!==pe?(me=(0,$.jsxs)(`nav`,{className:`flex flex-col gap-1`,"aria-label":de,children:[fe,pe]}),t[41]=l,t[42]=fe,t[43]=pe,t[44]=me):me=t[44];let he;t[45]!==le.Content||t[46]!==ue||t[47]!==me?(he=(0,$.jsx)(le.Content,{side:`right`,align:`start`,sideOffset:8,collisionPadding:8,className:`z-50 max-h-[min(32rem,var(--radix-popover-content-available-height))] min-w-[14rem] max-w-[20rem] overflow-y-auto rounded-lg border border-edge bg-surface-panel p-1 shadow-popover`,onOpenAutoFocus:ue,children:me}),t[45]=le.Content,t[46]=ue,t[47]=me,t[48]=he):he=t[48];let ge;return t[49]!==ce.Portal||t[50]!==he?(ge=(0,$.jsx)(ce.Portal,{children:he}),t[49]=ce.Portal,t[50]=he,t[51]=ge):ge=t[51],(0,$.jsxs)($.Fragment,{children:[G,ne,(0,$.jsxs)(Qi,{open:C,onOpenChange:w,children:[(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":K,title:re,className:oe,children:[se,a?null:(0,$.jsx)(`span`,{className:`truncate`,children:l.sidebar.moreApps})]})}),ge]})]})}function ER(e){return e.preventDefault()}function DR(){return gR(`/personal`)}function OR(){return gR(`/personal`)}function kR(e){return e.active}function AR(e){return e.active}function jR(e){return e.items.length>0}function MR(e){return e.showInNav}function NR(){return J(Y(`/api/personal-agent`))}function PR(e){return e.conversationId}function FR(e){return e.language}var IR={sources:[],purposes:[],activity:``,project:``,days:``,status:`visible`,agentId:``,details:!1};function LR(e){return!!(e.sources.length||e.purposes.length||e.activity||e.project||e.days||e.agentId||e.status!==`visible`)}function RR(e,t,n=Date.now()){return{search:t.trim()||void 0,sources:e.sources.length?e.sources:void 0,purposes:e.purposes.length?e.purposes:[...gj],activity:e.activity||void 0,projectId:e.project&&e.project!==`__unassigned`?e.project:void 0,unassigned:e.project===`__unassigned`||void 0,updatedAfter:e.days?n-Number(e.days)*864e5:void 0,status:e.status===`visible`?void 0:e.status,excludeArchived:e.status!==`archived`,agentId:e.agentId||void 0,sortBy:`updatedAt`,sortOrder:`desc`}}function zR(e){return`xopc-session-filters-v1:${e}`}function BR(e){try{let t=_j.safeParse({sources:e.sources,purposes:e.purposes,activity:e.activity||void 0,agentId:e.agentId||void 0});return t.success?{...IR,...t.data,sources:t.data.sources??[],purposes:t.data.purposes??[],activity:t.data.activity??``,agentId:t.data.agentId??``,project:typeof e.project==`string`?e.project:``,days:typeof e.days==`string`&&[``,`7`,`30`,`60`].includes(e.days)?e.days:``,status:e.status===`pinned`||e.status===`archived`?e.status:`visible`,details:e.details===!0}:{...IR}}catch{return{...IR}}}function VR(e){try{return BR(JSON.parse(localStorage.getItem(zR(e))??`{}`))}catch{return{...IR}}}function HR(e,t){try{localStorage.setItem(zR(e),JSON.stringify(t))}catch{}}async function UR(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 WR(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}`))).project}async function GR(e){let t=await J(Y(`/api/projects/${encodeURIComponent(e)}/operating-view`));return pj.parse(t&&typeof t==`object`?t.view:void 0)}async function KR(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 qR(e){return(await J(Y(`/api/projects`),{method:`POST`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify(e)})).project}async function JR(e,t,n){return(await J(Y(`/api/projects/${encodeURIComponent(e)}`),{method:`PATCH`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify({...t,expectedVersion:n})})).project}async function YR(e,t,n){return JR(e,{name:t},n)}async function XR(e,t){return JR(e,{status:`archived`},t)}async function ZR(e,t){return JR(e,{status:`active`},t)}async function QR(e,t){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/pin`),{method:`POST`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify({expectedVersion:t})})).project}async function $R(e,t){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/unpin`),{method:`POST`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify({expectedVersion:t})})).project}async function ez(e,t){await J(Y(`/api/projects/${encodeURIComponent(e)}`),{method:`DELETE`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify({expectedVersion:t})})}async function tz(e){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/sessions?limit=100`))).sessions}async function nz(e){await J(Y(`/api/projects/${encodeURIComponent(e)}/digest-knowledge`),{method:`POST`,body:JSON.stringify({})})}async function rz(e,t){return(await J(Y(`/api/projects/${encodeURIComponent(e)}/blockers`),{method:`POST`,body:JSON.stringify(t)})).blocker}async function iz(e,t){let n=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),r=Wr.parse(n.space),i=new URLSearchParams;t&&i.set(`path`,t);let a=i.toString(),o=Gr.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 az(e){let t=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),n=Wr.parse(t.space),r=gee.parse(await J(Y(`/api/files/spaces/${encodeURIComponent(n.id)}/root`)));return{fileId:r.resource.id,name:r.resource.name}}async function oz(e,t,n=50){let r=await J(Y(`/api/files/contexts/project/${encodeURIComponent(e)}`)),i=Wr.parse(r.space),a=new URLSearchParams({q:t.trim(),limit:String(n),spaceId:i.id});return Gr.parse(await J(Y(`/api/files/search?${a}`))).items.map(e=>({name:e.name,path:e.relativePath,isDirectory:e.kind===`directory`}))}async function sz(){let e=[];for(let t=0;;){let n=await UR({limit:100,offset:t,sortBy:`name`,sortOrder:`asc`});if(e.push(...n.items),t+=n.items.length,!n.items.length||t>=n.total)return e}}var cz=e=>`xopc-session-views-v1:${e}`;function lz(e){try{let t=JSON.parse(localStorage.getItem(cz(e))??`[]`);return Array.isArray(t)?t.filter(e=>e&&typeof e.id==`string`&&typeof e.name==`string`&&e.name.trim()).slice(0,20).map(e=>({id:e.id,name:e.name.slice(0,60),filters:BR(e.filters??{}),search:typeof e.search==`string`?e.search.slice(0,500):``})):[]}catch{return[]}}function uz(e,t){try{return localStorage.setItem(cz(e),JSON.stringify(t)),!0}catch{return!1}}var dz=`rounded-md px-2 py-1.5 text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent disabled:opacity-50`,fz=`flex size-8 shrink-0 items-center justify-center rounded-md text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`;function pz(e){let t=(0,Q.c)(10),{label:n,summary:r,onClick:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`span`,{className:`shrink-0`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-right text-xs text-fg-muted`,title:r,children:r}),t[2]=r,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(T,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[4]=s):s=t[4];let c;return t[5]!==n||t[6]!==i||t[7]!==a||t[8]!==o?(c=(0,$.jsxs)(`button`,{type:`button`,onClick:i,className:`flex min-h-10 w-full min-w-0 items-center gap-3 rounded-md px-2 py-2 text-left text-sm hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":n,children:[a,o,s]}),t[5]=n,t[6]=i,t[7]=a,t[8]=o,t[9]=c):c=t[9],c}function mz(e){let t=(0,Q.c)(261),{filters:n,onChange:r,search:i,onSearch:a,labels:o,gateway:s,agents:c}=e,[l,u]=(0,Z.useState)(!1),[d,f]=(0,Z.useState)(`home`),[p,m]=(0,Z.useState)(``),h;t[0]===s?h=t[1]:(h=()=>lz(s),t[0]=s,t[1]=h);let[g,_]=(0,Z.useState)(h),[v,y]=(0,Z.useState)(``),[b,x]=(0,Z.useState)(!1),S=(0,Z.useRef)(null),C=(0,Z.useRef)(`home`),T=(0,Z.useId)(),E=(0,Z.useId)(),D;if(t[2]!==n||t[3]!==g||t[4]!==i){let e;t[6]!==n||t[7]!==i?(e=e=>e.search===i&&JSON.stringify(e.filters)===JSON.stringify(n),t[6]=n,t[7]=i,t[8]=e):e=t[8],D=g.find(e),t[2]=n,t[3]=g,t[4]=i,t[5]=D}else D=t[5];let O=D,A;t[9]!==n.project||t[10]!==s||t[11]!==l||t[12]!==d?(A=l&&d===`project`||n.project?[`session-filter-projects`,s]:null,t[9]=n.project,t[10]=s,t[11]=l,t[12]=d,t[13]=A):A=t[13];let{data:j,error:M,mutate:N}=Xr(A,sz),P;t[14]!==n||t[15]!==r?(P=e=>r({...n,...e}),t[14]=n,t[15]=r,t[16]=P):P=t[16];let F=P,I;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>{f(e),m(``),x(!1)},t[17]=I):I=t[17];let L=I,R;t[18]===d?R=t[19]:(R=()=>L(d===`save`?`views`:[`purposes`,`status`,`agent`].includes(d)?`advanced`:`home`),t[18]=d,t[19]=R);let z=R,B;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{u(e),e&&L(`home`)},t[20]=B):B=t[20];let V=B,H,U;t[21]!==l||t[22]!==d?(H=()=>{l&&C.current!==d&&(S.current?.querySelector(`[data-page-autofocus]`))?.focus(),C.current=d},U=[l,d],t[21]=l,t[22]=d,t[23]=H,t[24]=U):(H=t[23],U=t[24]),(0,Z.useLayoutEffect)(H,U);let W;t[25]===n?W=t[26]:(W=LR({...n,activity:``}),t[25]=n,t[26]=W);let G=W,te=n.status!==`visible`,ne;t[27]!==n.activity||t[28]!==n.agentId||t[29]!==n.days||t[30]!==n.project||t[31]!==n.purposes.length||t[32]!==n.sources.length||t[33]!==te?(ne=[n.sources.length,n.purposes.length,n.project,n.days,n.agentId,n.activity,te].filter(Boolean),t[27]=n.activity,t[28]=n.agentId,t[29]=n.days,t[30]=n.project,t[31]=n.purposes.length,t[32]=n.sources.length,t[33]=te,t[34]=ne):ne=t[34];let K=ne.length,re=n.status!==`visible`,ie;t[35]!==n.agentId||t[36]!==n.purposes.length||t[37]!==re?(ie=[n.purposes.length,n.agentId,re].filter(Boolean),t[35]=n.agentId,t[36]=n.purposes.length,t[37]=re,t[38]=ie):ie=t[38];let ae=ie.length,oe;t[39]===o.selectedCount?oe=t[40]:(oe=e=>o.selectedCount.replace(`{{count}}`,String(e)),t[39]=o.selectedCount,t[40]=oe);let se=oe,ce;t[41]!==n.sources||t[42]!==o.all||t[43]!==o.sources?(ce=n.sources.length?n.sources.map(e=>o.sources[e]).join(` · `):o.all,t[41]=n.sources,t[42]=o.all,t[43]=o.sources,t[44]=ce):ce=t[44];let le=ce,ue;t[45]!==n.purposes||t[46]!==o.all||t[47]!==o.purposes?(ue=n.purposes.length?n.purposes.map(e=>o.purposes[e]).join(` · `):o.all,t[45]=n.purposes,t[46]=o.all,t[47]=o.purposes,t[48]=ue):ue=t[48];let de=ue,fe;t[49]!==n.project||t[50]!==o.unassigned||t[51]!==j?(fe=n.project===`__unassigned`?o.unassigned:j?.find(e=>e.id===n.project)?.name??n.project,t[49]=n.project,t[50]=o.unassigned,t[51]=j,t[52]=fe):fe=t[52];let pe=fe,me;t[53]!==n.days||t[54]!==o.anyTime||t[55]!==o.days?(me=n.days?o.days.replace(`{{days}}`,n.days):o.anyTime,t[53]=n.days,t[54]=o.anyTime,t[55]=o.days,t[56]=me):me=t[56];let he=me,ge;t[57]!==o.agent||t[58]!==o.filters||t[59]!==o.moreFilters||t[60]!==o.project||t[61]!==o.purposesLabel||t[62]!==o.saveView||t[63]!==o.savedViews||t[64]!==o.sourcesLabel||t[65]!==o.status||t[66]!==o.time?(ge={home:o.filters,sources:o.sourcesLabel,purposes:o.purposesLabel,project:o.project,time:o.time,status:o.status,agent:o.agent,advanced:o.moreFilters,views:o.savedViews,save:o.saveView},t[57]=o.agent,t[58]=o.filters,t[59]=o.moreFilters,t[60]=o.project,t[61]=o.purposesLabel,t[62]=o.saveView,t[63]=o.savedViews,t[64]=o.sourcesLabel,t[65]=o.status,t[66]=o.time,t[67]=ge):ge=t[67];let _e=ge,ve,ye,be,xe,Se;if(t[68]!==c||t[69]!==z||t[70]!==n.agentId||t[71]!==n.days||t[72]!==n.project||t[73]!==n.purposes||t[74]!==n.sources||t[75]!==n.status||t[76]!==o||t[77]!==p||t[78]!==d||t[79]!==F||t[80]!==j){let e;if(t[86]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[86]=e):e=t[86],Se=e,d===`sources`){let e;t[87]===o.sources?e=t[88]:(e=e=>({value:e,label:o.sources[e]}),t[87]=o.sources,t[88]=e),ye=hj.map(e),Se=n.sources;let r;t[89]===F?r=t[90]:(r=e=>F({sources:e}),t[89]=F,t[90]=r),ve=r}else if(d===`purposes`){let e;t[91]===o.purposes?e=t[92]:(e=e=>({value:e,label:o.purposes[e]}),t[91]=o.purposes,t[92]=e),ye=gj.map(e),Se=n.purposes;let r;t[93]===F?r=t[94]:(r=e=>F({purposes:e}),t[93]=F,t[94]=r),ve=r}else if(d===`project`){ye=[{value:``,label:o.allProjects},{value:`__unassigned`,label:o.unassigned},...(j??[]).map(gz)],n.project&&!ye.some(e=>e.value===n.project)&&ye.push({value:n.project,label:n.project});let e;t[95]===n.project?e=t[96]:(e=[n.project],t[95]=n.project,t[96]=e),Se=e;let r;t[97]!==z||t[98]!==F?(r=e=>{let[t]=e;F({project:t}),z()},t[97]=z,t[98]=F,t[99]=r):r=t[99],ve=r}else if(d===`time`){ye=[{value:``,label:o.anyTime},...[`7`,`30`,`60`].map(e=>({value:e,label:o.days.replace(`{{days}}`,e)}))];let e;t[100]===n.days?e=t[101]:(e=[n.days],t[100]=n.days,t[101]=e),Se=e;let r;t[102]!==z||t[103]!==F?(r=e=>{let[t]=e;F({days:t}),z()},t[102]=z,t[103]=F,t[104]=r):r=t[104],ve=r}else if(d===`status`){ye=[`visible`,`pinned`,`archived`].map(e=>({value:e,label:o[e]}));let e;t[105]===n.status?e=t[106]:(e=[n.status],t[105]=n.status,t[106]=e),Se=e;let r;t[107]!==z||t[108]!==F?(r=e=>{let[t]=e;F({status:t}),z()},t[107]=z,t[108]=F,t[109]=r):r=t[109],ve=r}else if(d===`agent`){ye=[{value:``,label:o.allAgents},...c.map(hz)],n.agentId&&!ye.some(e=>e.value===n.agentId)&&ye.push({value:n.agentId,label:n.agentId});let e;t[110]===n.agentId?e=t[111]:(e=[n.agentId],t[110]=n.agentId,t[111]=e),Se=e;let r;t[112]!==z||t[113]!==F?(r=e=>{let[t]=e;F({agentId:t}),z()},t[112]=z,t[113]=F,t[114]=r):r=t[114],ve=r}be=d===`project`||d===`agent`,xe=ye?.filter(e=>e.label.toLocaleLowerCase().includes(p.trim().toLocaleLowerCase())),t[68]=c,t[69]=z,t[70]=n.agentId,t[71]=n.days,t[72]=n.project,t[73]=n.purposes,t[74]=n.sources,t[75]=n.status,t[76]=o,t[77]=p,t[78]=d,t[79]=F,t[80]=j,t[81]=ve,t[82]=ye,t[83]=be,t[84]=xe,t[85]=Se}else ve=t[81],ye=t[82],be=t[83],xe=t[84],Se=t[85];let Ce=xe,we;t[115]!==n.details||t[116]!==r||t[117]!==d||t[118]!==F?(we=()=>{d===`sources`?F({sources:[]}):d===`purposes`?F({purposes:[]}):r({...IR,details:n.details})},t[115]=n.details,t[116]=r,t[117]=d,t[118]=F,t[119]=we):we=t[119];let Te=we,Ee=l&&`bg-surface-hover opacity-100`,De;t[120]===Ee?De=t[121]:(De=q(fz,`relative size-6 text-fg-subtle opacity-0 transition-[color,background-color,opacity] group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 [@media(hover:none)]:opacity-100`,Ee),t[120]=Ee,t[121]=De);let Oe=`${o.filters}${K?` (${K})`:``}`,ke;t[122]!==K||t[123]!==o.filters||t[124]!==se?(ke=K?`${o.filters} · ${se(K)}`:o.filters,t[122]=K,t[123]=o.filters,t[124]=se,t[125]=ke):ke=t[125];let Ae;t[126]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,$.jsx)(ee,{className:`size-3.5`,"aria-hidden":!0}),t[126]=Ae):Ae=t[126];let je;t[127]!==K||t[128]!==i?(je=K>0||i.trim()?(0,$.jsx)(`span`,{className:`absolute top-0.5 right-0.5 size-1 rounded-full bg-fg-muted`,"aria-hidden":!0}):null,t[127]=K,t[128]=i,t[129]=je):je=t[129];let Me;t[130]!==De||t[131]!==Oe||t[132]!==ke||t[133]!==je?(Me=(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:De,"aria-label":Oe,title:ke,children:[Ae,je]})}),t[130]=De,t[131]=Oe,t[132]=ke,t[133]=je,t[134]=Me):Me=t[134];let Ne;t[135]!==z||t[136]!==d?(Ne=e=>{d!==`home`&&(e.preventDefault(),z())},t[135]=z,t[136]=d,t[137]=Ne):Ne=t[137];let Pe;t[138]!==z||t[139]!==o.back||t[140]!==d||t[141]!==be?(Pe=d===`home`?null:(0,$.jsx)(`button`,{type:`button`,className:fz,"aria-label":o.back,onClick:z,"data-page-autofocus":!be&&d!==`save`?``:void 0,children:(0,$.jsx)(Wo,{className:`size-4`,"aria-hidden":!0})}),t[138]=z,t[139]=o.back,t[140]=d,t[141]=be,t[142]=Pe):Pe=t[142];let Fe=_e[d],Ie;t[143]!==E||t[144]!==Fe?(Ie=(0,$.jsx)(`span`,{id:E,className:`min-w-0 flex-1 truncate px-1 font-medium`,children:Fe}),t[143]=E,t[144]=Fe,t[145]=Ie):Ie=t[145];let Le;t[146]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,$.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),t[146]=Le):Le=t[146];let Re;t[147]===o.close?Re=t[148]:(Re=(0,$.jsx)($i,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:fz,"aria-label":o.close,children:Le})}),t[147]=o.close,t[148]=Re);let ze;t[149]!==Pe||t[150]!==Ie||t[151]!==Re?(ze=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 border-b border-edge px-2 py-2`,children:[Pe,Ie,Re]}),t[149]=Pe,t[150]=Ie,t[151]=Re,t[152]=ze):ze=t[152];let Be;t[153]!==o.searchOptions||t[154]!==p||t[155]!==be?(Be=be?(0,$.jsx)(`div`,{className:`shrink-0 px-3 pt-2`,children:(0,$.jsx)(`input`,{type:`search`,"data-page-autofocus":!0,value:p,onChange:e=>m(e.target.value),placeholder:o.searchOptions,"aria-label":o.searchOptions,className:`w-full rounded-md border border-edge bg-surface-base px-2 py-1.5 text-sm outline-none focus:border-edge-strong focus:ring-1 focus:ring-edge-strong`})}):null,t[153]=o.searchOptions,t[154]=p,t[155]=be,t[156]=Be):Be=t[156];let Ve;t[157]!==o.search||t[158]!==a||t[159]!==d||t[160]!==i?(Ve=d===`home`?(0,$.jsx)(`div`,{className:`shrink-0 px-3 pt-2`,children:(0,$.jsxs)(`label`,{className:`flex min-w-0 items-center gap-2 rounded-md border border-edge bg-surface-base px-2 py-1.5 focus-within:border-edge-strong focus-within:ring-1 focus-within:ring-edge-strong`,children:[(0,$.jsx)(ot,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsx)(`input`,{type:`search`,value:i,onChange:e=>a(e.target.value),placeholder:o.search,"aria-label":o.search,className:`min-w-0 w-full bg-transparent text-sm text-fg outline-none`})]})}):null,t[157]=o.search,t[158]=a,t[159]=d,t[160]=i,t[161]=Ve):Ve=t[161];let He;t[162]!==ae||t[163]!==G||t[164]!==n.activity||t[165]!==n.details||t[166]!==o||t[167]!==r||t[168]!==d||t[169]!==pe||t[170]!==g.length||t[171]!==se||t[172]!==O?.name||t[173]!==le||t[174]!==he?(He=d===`home`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`mb-2 flex gap-1 rounded-md bg-surface-base p-1`,role:`group`,"aria-label":o.filters,children:[``,`manual`,`automatic`].map(e=>(0,$.jsx)(`button`,{type:`button`,"data-page-autofocus":e===``?``:void 0,className:q(dz,`min-w-0 flex-1 px-1`,!G&&n.activity===e&&`bg-surface-active text-fg`),"aria-pressed":!G&&n.activity===e,onClick:()=>{r({...IR,details:n.details,activity:e}),u(!1)},children:e?o[e]:o.all},e))}),(0,$.jsx)(pz,{label:o.sourcesLabel,summary:le,onClick:()=>L(`sources`)}),(0,$.jsx)(pz,{label:o.project,summary:pe||o.allProjects,onClick:()=>L(`project`)}),(0,$.jsx)(pz,{label:o.time,summary:he,onClick:()=>L(`time`)}),(0,$.jsx)(`div`,{className:`my-2 border-t border-edge`}),(0,$.jsx)(pz,{label:o.moreFilters,summary:ae?se(ae):``,onClick:()=>L(`advanced`)}),(0,$.jsx)(pz,{label:o.savedViews,summary:O?.name??(g.length?String(g.length):``),onClick:()=>L(`views`)})]}):null,t[162]=ae,t[163]=G,t[164]=n.activity,t[165]=n.details,t[166]=o,t[167]=r,t[168]=d,t[169]=pe,t[170]=g.length,t[171]=se,t[172]=O?.name,t[173]=le,t[174]=he,t[175]=He):He=t[175];let Ue;t[176]!==ve||t[177]!==o.noOptions||t[178]!==o.projectError||t[179]!==o.retry||t[180]!==Ce||t[181]!==ye||t[182]!==d||t[183]!==M||t[184]!==j||t[185]!==N||t[186]!==_e||t[187]!==Se?(Ue=ye&&ve?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(k,{options:Ce??[],values:Se,multiple:d===`sources`||d===`purposes`,onChange:ve,ariaLabel:_e[d]}),d===`project`&&!j&&!M?(0,$.jsxs)(`div`,{"aria-busy":`true`,className:`space-y-3 p-2`,children:[(0,$.jsx)(ta,{className:`h-5 w-3/4`}),(0,$.jsx)(ta,{className:`h-5 w-2/3`})]}):null,d===`project`&&M?(0,$.jsxs)(`div`,{role:`alert`,className:`p-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`p`,{children:o.projectError}),(0,$.jsx)(`button`,{type:`button`,className:dz,onClick:()=>void N(),children:o.retry})]}):null,!Ce?.length&&!(d===`project`&&!j)?(0,$.jsx)(`p`,{className:`p-2 text-xs text-fg-muted`,children:o.noOptions}):null]}):null,t[176]=ve,t[177]=o.noOptions,t[178]=o.projectError,t[179]=o.retry,t[180]=Ce,t[181]=ye,t[182]=d,t[183]=M,t[184]=j,t[185]=N,t[186]=_e,t[187]=Se,t[188]=Ue):Ue=t[188];let We;t[189]!==c||t[190]!==n.agentId||t[191]!==n.details||t[192]!==n.status||t[193]!==o||t[194]!==d||t[195]!==F||t[196]!==de?(We=d===`advanced`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(pz,{label:o.purposesLabel,summary:de,onClick:()=>L(`purposes`)}),(0,$.jsx)(pz,{label:o.status,summary:o[n.status],onClick:()=>L(`status`)}),c.length>1||n.agentId?(0,$.jsx)(pz,{label:o.agent,summary:c.find(e=>e.id===n.agentId)?.name??(n.agentId||o.allAgents),onClick:()=>L(`agent`)}):null,(0,$.jsxs)(`label`,{className:`mt-2 flex min-h-10 items-center gap-3 border-t border-edge px-2 pt-2 text-sm`,children:[(0,$.jsx)(`input`,{type:`checkbox`,checked:n.details,onChange:e=>F({details:e.target.checked})}),o.details]})]}):null,t[189]=c,t[190]=n.agentId,t[191]=n.details,t[192]=n.status,t[193]=o,t[194]=d,t[195]=F,t[196]=de,t[197]=We):We=t[197];let Ge;t[198]!==s||t[199]!==o.deleteView||t[200]!==o.noViews||t[201]!==r||t[202]!==a||t[203]!==d||t[204]!==g||t[205]!==O?.id?(Ge=d===`views`?(0,$.jsxs)($.Fragment,{children:[g.length?null:(0,$.jsx)(`p`,{className:`px-2 py-4 text-sm text-fg-muted`,children:o.noViews}),g.map(e=>(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex min-h-10 min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>{r(e.filters),a(e.search),u(!1)},"aria-pressed":O?.id===e.id,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.name,children:e.name}),O?.id===e.id?(0,$.jsx)(w,{className:`size-4 shrink-0`,"aria-hidden":!0}):null]}),(0,$.jsx)(`button`,{type:`button`,className:fz,"aria-label":o.deleteView.replace(`{{name}}`,e.name),onClick:()=>{let t=g.filter(t=>t.id!==e.id);uz(s,t)?(_(t),x(!1)):x(!0)},children:(0,$.jsx)(vO,{className:`size-3.5`,"aria-hidden":!0})})]},e.id))]}):null,t[198]=s,t[199]=o.deleteView,t[200]=o.noViews,t[201]=r,t[202]=a,t[203]=d,t[204]=g,t[205]=O?.id,t[206]=Ge):Ge=t[206];let Ke;t[207]!==n||t[208]!==T||t[209]!==s||t[210]!==o.saveViewHint||t[211]!==o.viewLimit||t[212]!==o.viewName||t[213]!==d||t[214]!==g||t[215]!==i||t[216]!==v?(Ke=d===`save`?(0,$.jsxs)(`form`,{id:T,className:`space-y-3 p-1`,onSubmit:e=>{e.preventDefault();let t=v.trim();if(!t||g.length>=20)return;let r=[...g,{id:crypto.randomUUID(),name:t,filters:n,search:i}];if(!uz(s,r)){x(!0);return}_(r),y(``),L(`views`)},children:[(0,$.jsxs)(`label`,{className:`block space-y-2 text-sm`,children:[(0,$.jsx)(`span`,{children:o.viewName}),(0,$.jsx)(`input`,{"data-page-autofocus":!0,value:v,onChange:e=>y(e.target.value),maxLength:60,placeholder:o.viewName,"aria-label":o.viewName,className:`w-full rounded-md border border-edge bg-surface-base px-2 py-2 focus-visible:ring-2 focus-visible:ring-accent`})]}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:o.saveViewHint}),g.length>=20?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:o.viewLimit}):null]}):null,t[207]=n,t[208]=T,t[209]=s,t[210]=o.saveViewHint,t[211]=o.viewLimit,t[212]=o.viewName,t[213]=d,t[214]=g,t[215]=i,t[216]=v,t[217]=Ke):Ke=t[217];let qe;t[218]!==o.viewSaveError||t[219]!==b?(qe=b?(0,$.jsx)(`p`,{role:`alert`,className:`p-2 text-xs text-danger`,children:o.viewSaveError}):null,t[218]=o.viewSaveError,t[219]=b,t[220]=qe):qe=t[220];let Je;t[221]!==d||t[222]!==He||t[223]!==Ue||t[224]!==We||t[225]!==Ge||t[226]!==Ke||t[227]!==qe?(Je=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-y-contain p-2`,"data-session-filter-scroll":!0,children:[He,Ue,We,Ge,Ke,qe]},d),t[221]=d,t[222]=He,t[223]=Ue,t[224]=We,t[225]=Ge,t[226]=Ke,t[227]=qe,t[228]=Je):Je=t[228];let Ye;t[229]!==Te||t[230]!==K||t[231]!==o.clear||t[232]!==o.clearSelection||t[233]!==o.saveView||t[234]!==d||t[235]!==g.length||t[236]!==Se?(Ye=d===`home`||d===`sources`||d===`purposes`?(0,$.jsx)(`button`,{type:`button`,className:dz,disabled:d===`home`?!K:!Se.length,onClick:Te,children:d===`home`?o.clear:o.clearSelection}):d===`views`?(0,$.jsx)(`button`,{type:`button`,className:dz,disabled:g.length>=20,onClick:()=>L(`save`),children:o.saveView}):(0,$.jsx)(`span`,{}),t[229]=Te,t[230]=K,t[231]=o.clear,t[232]=o.clearSelection,t[233]=o.saveView,t[234]=d,t[235]=g.length,t[236]=Se,t[237]=Ye):Ye=t[237];let Xe;t[238]!==z||t[239]!==T||t[240]!==o.done||t[241]!==o.saveView||t[242]!==d||t[243]!==g.length||t[244]!==v?(Xe=d===`save`?(0,$.jsx)(`button`,{type:`submit`,form:T,className:q(dz,`bg-surface-active text-fg`),disabled:!v.trim()||g.length>=20,children:o.saveView}):(0,$.jsx)(`button`,{type:`button`,className:q(dz,`bg-surface-active text-fg`),onClick:()=>d===`home`?u(!1):z(),children:o.done}),t[238]=z,t[239]=T,t[240]=o.done,t[241]=o.saveView,t[242]=d,t[243]=g.length,t[244]=v,t[245]=Xe):Xe=t[245];let Ze;t[246]!==Ye||t[247]!==Xe?(Ze=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-t border-edge px-3 py-2`,children:[Ye,Xe]}),t[246]=Ye,t[247]=Xe,t[248]=Ze):Ze=t[248];let Qe;t[249]!==E||t[250]!==Ne||t[251]!==ze||t[252]!==Be||t[253]!==Ve||t[254]!==Je||t[255]!==Ze?(Qe=(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{ref:S,side:`bottom`,align:`start`,sideOffset:8,collisionPadding:12,sticky:`always`,"aria-labelledby":E,className:`z-50 flex h-[min(26rem,calc(100dvh-1.5rem))] max-h-[var(--radix-popover-content-available-height)] w-[min(20rem,calc(100vw-1.5rem))] max-w-[var(--radix-popover-content-available-width)] flex-col overflow-hidden rounded-xl border border-edge bg-surface-panel text-sm text-fg shadow-popover`,onEscapeKeyDown:Ne,children:[ze,Be,Ve,Je,Ze]})}),t[249]=E,t[250]=Ne,t[251]=ze,t[252]=Be,t[253]=Ve,t[254]=Je,t[255]=Ze,t[256]=Qe):Qe=t[256];let $e;return t[257]!==l||t[258]!==Me||t[259]!==Qe?($e=(0,$.jsx)(`div`,{className:`ml-auto shrink-0`,children:(0,$.jsxs)(Qi,{open:l,onOpenChange:V,children:[Me,Qe]})}),t[257]=l,t[258]=Me,t[259]=Qe,t[260]=$e):$e=t[260],$e}function hz(e){return{value:e.id,label:e.name||e.id}}function gz(e){return{value:e.id,label:e.name}}var _z=30;function vz(e,t){let n=(0,Q.c)(47),r;n[0]===e?r=n[1]:(r=()=>VR(e),n[0]=e,n[1]=r);let[i,a]=(0,Z.useState)(r),[o,s]=(0,Z.useState)(``),[c]=fa(o,250),[l,u]=(0,Z.useState)(!1),d;n[2]!==i||n[3]!==o?(d=LR(i)||!!o.trim(),n[2]=i,n[3]=o,n[4]=d):d=n[4];let f=d,p;n[5]!==f||n[6]!==e||n[7]!==t?(p=f&&t?[`session-filter-projects`,e]:null,n[5]=f,n[6]=e,n[7]=t,n[8]=p):p=n[8];let{data:m}=Xr(p,sz),h;n[9]!==c||n[10]!==i?(h=RR(i,c),n[9]=c,n[10]=i,n[11]=h):h=n[11];let g=h,_;n[12]!==f||n[13]!==e||n[14]!==g||n[15]!==t?(_=(n,r)=>!t||!f||r&&!r.hasMore?null:[`session-discovery`,e,t,g,n],n[12]=f,n[13]=e,n[14]=g,n[15]=t,n[16]=_):_=n[16];let v;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(v={revalidateOnFocus:!1,revalidateOnReconnect:!1,keepPreviousData:!1},n[17]=v):v=n[17];let{data:y,error:b,isValidating:x,size:S,setSize:C,mutate:w}=Qr(_,xz,v),T;n[18]===e?T=n[19]:(T=t=>{a(t),HR(e,t)},n[18]=e,n[19]=T);let E=T,D;n[20]===w?D=n[21]:(D=()=>{u(!1),w()},n[20]=w,n[21]=D);let O=D,k,A;n[22]===f?(k=n[23],A=n[24]):(k=()=>{if(!f)return;let e=()=>u(!0),t=[`session-list-refresh`,`session-created`,`session-updated`,`session-transcript-updated`,`project-updated`];return t.forEach(t=>window.addEventListener(t,e)),()=>t.forEach(t=>window.removeEventListener(t,e))},A=[f],n[22]=f,n[23]=k,n[24]=A),(0,Z.useEffect)(k,A);let j;n[25]===y?j=n[26]:(j=[...new Map(y?.flatMap(bz).map(yz)??[]).values()],n[25]=y,n[26]=j);let M=j,N=y?.[0]?.total??0,P=!b&&(!y||o!==c),F;n[27]===y?F=n[28]:(F=y?.at(-1)?.hasMore??!1,n[27]=y,n[28]=F);let I=x&&!!y,L;n[29]!==C||n[30]!==S?(L=()=>void C(S+1),n[29]=C,n[30]=S,n[31]=L):L=n[31];let R;return n[32]!==f||n[33]!==b||n[34]!==i||n[35]!==M||n[36]!==l||n[37]!==m||n[38]!==O||n[39]!==o||n[40]!==N||n[41]!==P||n[42]!==F||n[43]!==I||n[44]!==L||n[45]!==E?(R={projects:m,filters:i,updateFilters:E,search:o,setSearch:s,active:f,items:M,total:N,loading:P,error:b,hasMore:F,loadingMore:I,loadMore:L,refresh:O,pendingUpdate:l},n[32]=f,n[33]=b,n[34]=i,n[35]=M,n[36]=l,n[37]=m,n[38]=O,n[39]=o,n[40]=N,n[41]=P,n[42]=F,n[43]=I,n[44]=L,n[45]=E,n[46]=R):R=n[46],R}function yz(e){return[e.key,e]}function bz(e){return e.items}function xz(e){let[,,,t,n]=e;return Un({...t,limit:_z,offset:n*_z})}function Sz(e,t){let{source:n,purpose:r}=vj(e),i=r===`chat`?[t.sources[n]]:[t.purposes[r]];return r!==`chat`&&n!==`other`&&!(r===`automation`&&n===`automation`)&&!(r===`system`&&n===`system`)&&i.push(t.sources[n]),r===`chat`&&n===`other`&&e.sourceChannel&&i.push(e.sourceChannel),[...new Set(i)].join(` · `)}var Cz={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 wz(e){let t=(0,Q.c)(16),{sourceChannel:n,className:r,session:i}=e,a=vj(i??{sourceChannel:n}),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={automation:H,workflow:kA,subagent:Re,system:st},t[0]=o):o=t[0];let s=o,c=a.purpose===`chat`?void 0:s[a.purpose];if(c){let e;t[1]===r?e=t[2]:(e=q(`shrink-0`,r),t[1]=r,t[2]=e);let n;return t[3]!==c||t[4]!==e?(n=(0,$.jsx)(c,{className:e,strokeWidth:1.75,"aria-hidden":!0}),t[3]=c,t[4]=e,t[5]=n):n=t[5],n}let l=Cz[n.trim().toLowerCase()];if(l&&[`telegram`,`wechat`,`feishu`].includes(a.source)){let e;t[6]===r?e=t[7]:(e=q(`shrink-0`,r),t[6]=r,t[7]=e);let n;return t[8]!==l||t[9]!==e?(n=(0,$.jsx)(`img`,{src:l,alt:``,draggable:!1,className:e,"aria-hidden":!0}),t[8]=l,t[9]=e,t[10]=n):n=t[10],n}let u=a.source===`workbench`?Ze:a.source===`browser`?fb:a.source===`terminal`?xD:a.source===`api`?ix:kv,d;t[11]===r?d=t[12]:(d=q(`shrink-0`,r),t[11]=r,t[12]=d);let f;return t[13]!==u||t[14]!==d?(f=(0,$.jsx)(u,{className:d,strokeWidth:1.75,"aria-hidden":!0}),t[13]=u,t[14]=d,t[15]=f):f=t[15],f}var Tz=e=>Y(`/api/projects/${encodeURIComponent(e)}/understanding`);function Ez(e){return J(Tz(e))}function Dz(e){return J(Tz(e),{method:`POST`})}function Oz(e,t){return J(Tz(e),{method:`PATCH`,body:JSON.stringify({content:t})})}function kz(e){return e===`queued`||e===`probing`||e===`analyzing`}function Az(){let e=(0,Q.c)(2),t=Pt(jz),n;return e[0]===t?n=e[1]:(n=kt(t),e[0]=t,e[1]=n),n.projectsPage.understanding}function jz(e){return e.language}function Mz(e){let t=(0,Q.c)(14),{checked:n,onChange:r,disabled:i}=e,a=Az(),o;t[0]===r?o=t[1]:(o=e=>r(e.target.checked),t[0]=r,t[1]=o);let s;t[2]!==n||t[3]!==i||t[4]!==o?(s=(0,$.jsx)(`input`,{type:`checkbox`,className:`mt-1 accent-accent`,checked:n,disabled:i,onChange:o}),t[2]=n,t[3]=i,t[4]=o,t[5]=s):s=t[5];let c;t[6]===a.hint?c=t[7]:(c=(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-subtle`,children:a.hint}),t[6]=a.hint,t[7]=c);let l;t[8]!==a.auto||t[9]!==c?(l=(0,$.jsxs)(`span`,{children:[a.auto,c]}),t[8]=a.auto,t[9]=c,t[10]=l):l=t[10];let u;return t[11]!==s||t[12]!==l?(u=(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-2.5 text-sm text-fg`,children:[s,l]}),t[11]=s,t[12]=l,t[13]=u):u=t[13],u}function Nz(e){let t=(0,Q.c)(11),n=At(Iz),r=At(Fz),i;t[0]!==r||t[1]!==n||t[2]!==e?(i=r?[`project-understanding`,n,r,e]:null,t[0]=r,t[1]=n,t[2]=e,t[3]=i):i=t[3];let a;t[4]===e?a=t[5]:(a=()=>Ez(e),t[4]=e,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o={refreshInterval:Pz,revalidateOnFocus:!1},t[6]=o):o=t[6];let s=Xr(i,a,o),{mutate:c}=s,l,u;return t[7]!==c||t[8]!==e?(l=()=>{let t=t=>{t.detail?.id===e&&c()};return window.addEventListener(`project-updated`,t),()=>window.removeEventListener(`project-updated`,t)},u=[c,e],t[7]=c,t[8]=e,t[9]=l,t[10]=u):(l=t[9],u=t[10]),(0,Z.useEffect)(l,u),s}function Pz(e){return kz(e?.status)?3e3:0}function Fz(e){return e.conversationId}function Iz(e){return e.baseUrl}function Lz({projectId:e,onStarted:t,className:n}){let r=Az(),{data:i,mutate:a}=Nz(e),[o,s]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(!1),u=kz(i?.status),d=async()=>{s(!0),l(!1);try{await Dz(e),await a(),t?.()}catch{l(!0)}finally{s(!1)}};return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`button`,{type:`button`,className:n??`text-xs text-fg-muted hover:text-fg disabled:opacity-50`,disabled:o||u,onClick:()=>void d(),children:u||o?r.running:i?.status===`failed`||i?.status===`canceled`?r.retry:i?.status===`completed`?r.refresh:r.start}),c?(0,$.jsx)(`p`,{role:`alert`,className:`px-2 text-xs text-danger`,children:r.failed}):null]})}function Rz({projectId:e}){let t=Az(),{data:n,error:r,isLoading:i,mutate:a}=Nz(e),[o,s]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(``),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(!1),m=async()=>{d(!0),p(!1);try{await Oz(e,c),await a(),s(!1)}catch{p(!0)}finally{d(!1)}};return i?(0,$.jsx)(ta,{className:`h-12 w-full rounded-xl`}):(0,$.jsxs)(`section`,{className:`rounded-xl border border-edge bg-surface-panel px-5 py-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-subtle`,children:[(0,$.jsx)(`span`,{children:kz(n?.status)?t.running:n?.status===`failed`||n?.status===`canceled`||r?t.failed:t.title}),kz(n?.status)?null:(0,$.jsx)(Lz,{projectId:e})]}),n?.overview?(0,$.jsxs)(`details`,{className:`mt-2`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer text-sm text-fg-muted`,children:t.view}),o?(0,$.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[(0,$.jsx)(`textarea`,{"aria-label":t.title,className:`min-h-48 w-full rounded-lg border border-edge bg-surface-base p-3 text-sm text-fg`,value:c,onChange:e=>l(e.target.value),maxLength:6e3,disabled:u}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(X,{onClick:()=>void m(),disabled:u||!c.trim(),children:t.save}),(0,$.jsx)(X,{variant:`ghost`,disabled:u,onClick:()=>s(!1),children:t.cancel})]}),f?(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:t.saveFailed}):null]}):(0,$.jsxs)(`div`,{className:`mt-3`,children:[(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg-muted`,children:n.overview}),(0,$.jsx)(`button`,{type:`button`,className:`mt-2 text-xs text-fg-subtle hover:text-fg`,onClick:()=>{l(n.overview??``),s(!0)},children:t.edit})]})]}):null]})}function zz(e,t){if(!e||typeof e!=`object`)return!0;let n=e.key??e.conversationId;return typeof n!=`string`||!n.trim()||!t.has(n)}var Bz=null;async function Vz(){return Bz||(Bz=Hz().finally(()=>{Bz=null}),Bz)}async function Hz(){let e=await Mt(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 ii()).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}}function Uz(e){let t=zr(t=>ir(t.sessions[e])),[n,r]=(0,Z.useState)(()=>Br(e)),i=(0,Z.useRef)(e);return i.current!==e&&(i.current=e,r(Br(e))),(0,Z.useEffect)(()=>{r(Br(e))},[e,t]),(0,Z.useEffect)(()=>{let t=t=>{t.detail?.chatId===e&&r(Br(e))};return window.addEventListener(Tr,t),()=>window.removeEventListener(Tr,t)},[e]),t||n}function Wz(e){return e.trim()}var Gz=It(e=>({runs:{},markRunning:t=>{let n=Wz(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=Wz(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=Wz(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=Wz(t);n&&e(e=>{let t=e.runs[n];return t?.unread?{runs:{...e.runs,[n]:{...t,unread:!1}}}:e})},clear:t=>{let n=Wz(t);n&&e(e=>{if(!(n in e.runs))return e;let{[n]:t,...r}=e.runs;return{runs:r}})}}));function Kz(e){Gz.getState().markRunning(e)}function qz(e,t){Gz.getState().markCompleted(e,t)}function Jz(e,t){Gz.getState().markFailed(e,t)}function Yz(e){Gz.getState().clear(e)}function Xz(e){Gz.setState(t=>({runs:{...t.runs,[e]:{status:`waiting`,startedAt:t.runs[e]?.startedAt??Date.now(),updatedAt:Date.now(),unread:!1}}}))}var Zz=`xopc.recentWorkspaceDirs.v1`,Qz=10;function $z(){try{let e=localStorage.getItem(Zz);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 eB(e){let t=e.trim();if(t)try{let e=[t,...$z().filter(e=>e!==t)].slice(0,Qz);localStorage.setItem(Zz,JSON.stringify(e))}catch{}}function tB(e){let t=e.trim().replace(/[/\\]+$/,``);if(!t)return e;let n=t.split(/[/\\]/);return n[n.length-1]||t}async function nB(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 rB(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&&eB(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 nB(t);e&&await l(e)}finally{s(!1)}})();return}a(!0)},[l,c,t]),confirmPick:l,picking:o}}async function iB(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 aB(){return(await J(Y(`/api/host/fs/meta`))).payload}async function oB(e,t){return(await J(Y(`/api/host/fs/directory`),{method:`POST`,body:JSON.stringify({parentPath:e,name:t})})).payload.absolutePath}function sB(){return q(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 font-mono text-sm text-fg`,`placeholder:text-fg-subtle`,Ri,`dark:border-edge`)}function cB(e){return/^[A-Za-z]:\\?$/.test(e.replace(/\\$/,`\\`))}function lB(e){return!e||e.currentPath===``?!1:e.parentPath===null?e.currentPath===`/`?!1:!!cB(e.currentPath):!0}var uB={metaHostname:null,listState:null,listLoading:!1,listError:null,manualPath:``,createFolderOpen:!1,createFolderName:``,createFolderLoading:!1,createFolderError:null,selectedFilePath:``};function dB({open:e,onOpenChange:t,initialAbsolutePath:n,onConfirm:r,wd:i,selectKind:a=`directory`,fileExtensions:o,title:s,description:c,confirmLabel:l,nested:u=!1}){let d=(0,Z.useId)(),f=(0,Z.useId)(),[p,m]=(0,Z.useReducer)(ha,uB),{metaHostname:h,listState:g,listLoading:_,listError:v,manualPath:y,createFolderOpen:b,createFolderName:x,createFolderLoading:S,createFolderError:C,selectedFilePath:w}=p,T=(0,Z.useCallback)(async e=>{m({type:`patch`,patch:{listLoading:!0,listError:null,selectedFilePath:``}});try{m({type:`patch`,patch:{listState:await iB(e)}})}catch(e){m({type:`patch`,patch:{listError:e instanceof Error?e.message:String(e),listState:null}})}finally{m({type:`patch`,patch:{listLoading:!1}})}},[]);(0,Z.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{try{let e=await aB();t||m({type:`patch`,patch:{metaHostname:e.hostname}})}catch{t||m({type:`patch`,patch:{metaHostname:null}})}})(),()=>{t=!0}},[e]),(0,Z.useEffect)(()=>{if(!e)return;let t=n?.trim()??``;m({type:`patch`,patch:{manualPath:t,createFolderOpen:!1,createFolderName:``,createFolderLoading:!1,createFolderError:null,selectedFilePath:``}});let r=!1;return(async()=>{m({type:`patch`,patch:{listLoading:!0,listError:null}});try{if(t)try{let e=await iB(t);r||m({type:`patch`,patch:{listState:e}})}catch{let e=await iB();r||m({type:`patch`,patch:{listState:e}})}else{let e=await iB();r||m({type:`patch`,patch:{listState:e}})}}catch(e){let t=e instanceof Error?e.message:String(e);r||m({type:`patch`,patch:{listError:t,listState:null}})}finally{r||m({type:`patch`,patch:{listLoading:!1}})}})(),()=>{r=!0}},[e,n]);let E=e=>{e.isDirectory&&(m({type:`patch`,patch:{selectedFilePath:``}}),T(e.absolutePath))},D=()=>{if(!g)return;let{parentPath:e,currentPath:t}=g;if(e!==null){T(e);return}t===`/`||t===``||cB(t)&&T(void 0)},O=g?.currentPath===``?i.pickerDrives:g?.currentPath??``,k=!!g&&g.currentPath!==``&&!_&&!v,A=o?.map(e=>e.replace(/^\./,``).toLocaleLowerCase()),j=e=>{if(a!==`file-or-directory`||e.isDirectory)return!1;if(!A?.length)return!0;let t=e.name.includes(`.`)?e.name.split(`.`).pop()?.toLocaleLowerCase():``;return!!(t&&A.includes(t))},M=k&&!S,N=()=>{m({type:`patch`,patch:{createFolderOpen:!1,createFolderName:``,createFolderError:null}})},P=async()=>{let e=x.trim();if(!(!g||g.currentPath===``||!e||S)){m({type:`patch`,patch:{createFolderLoading:!0,createFolderError:null}});try{let t=await oB(g.currentPath,e);m({type:`patch`,patch:{createFolderOpen:!1,createFolderName:``,createFolderError:null}}),await T(t)}catch(e){let t=e?.status;m({type:`patch`,patch:{createFolderError:t===409?i.pickerCreateFolderExists:t===400?i.pickerCreateFolderInvalid:t===403?i.pickerCreateFolderPermission:i.pickerCreateFolderError}})}finally{m({type:`patch`,patch:{createFolderLoading:!1}})}}},F=async()=>{let e=w||g?.currentPath;if(e)try{await r(e),t(!1)}catch{}},I=async()=>{let e=y.trim();if(e)try{await r(e),t(!1)}catch{}},L=_&&g;return(0,$.jsx)(sn,{open:e,onOpenChange:t,children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:q(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[2px]`,u?`z-[139]`:`z-[100]`)}),(0,$.jsxs)(an,{className:q(`xopc-dialog-content fixed left-1/2 top-1/2 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-overlay p-4 shadow-popover`,u?`z-[140]`:`z-[101]`,`dark:border-edge`),onOpenAutoFocus:e=>e.preventDefault(),children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:s??i.pathModalTitle}),(0,$.jsx)(tn,{className:`mt-1 text-sm leading-relaxed text-fg-muted`,children:c??i.pathModalDescription}),h?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:i.pickerHostHint.replace(`{{hostname}}`,h)}):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)(X,{type:`button`,variant:`secondary`,className:`shrink-0 gap-1 px-2 py-1.5 text-xs`,disabled:_||!lB(g)||!!v,onClick:()=>D(),title:i.pickerUp,children:[(0,$.jsx)(Fd,{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:O,children:_&&!g?i.pickerLoading:O||`—`}),(0,$.jsxs)(X,{type:`button`,variant:`secondary`,className:`shrink-0 gap-1 px-2 py-1.5 text-xs`,disabled:!M,onClick:()=>m({type:`patch`,patch:{createFolderOpen:!0,createFolderName:``,createFolderError:null}}),title:i.pickerNewFolder,children:[(0,$.jsx)(R_,{className:`size-4`,"aria-hidden":!0}),i.pickerNewFolder]})]}),b?(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge-subtle bg-surface-base p-2`,children:[(0,$.jsx)(`label`,{htmlFor:f,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:f,type:`text`,value:x,onChange:e=>m({type:`patch`,patch:{createFolderName:e.target.value,createFolderError:null}}),className:sB(),autoFocus:!0,autoComplete:`off`,spellCheck:!1,disabled:S,onKeyDown:e=>{e.key===`Enter`&&x.trim()?(e.preventDefault(),P()):e.key===`Escape`&&(e.preventDefault(),N())}}),(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`shrink-0`,disabled:S,onClick:N,children:i.pickerCreateFolderCancel}),(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`shrink-0`,disabled:!x.trim()||S,onClick:()=>void P(),children:[S?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,i.pickerCreateFolder]})]}),C?(0,$.jsx)(`p`,{className:`mt-1.5 text-xs text-danger`,role:`alert`,children:C}):null]}):null,(0,$.jsxs)(`div`,{className:q(`relative min-h-[12rem] overflow-y-auto rounded-lg border border-edge-subtle/80 bg-surface-hover/20 p-1 dark:border-edge-subtle`,$r.focusRingPanel),role:`listbox`,"aria-label":s??i.pathModalTitle,children:[L?(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)(Ye,{className:`size-6 animate-spin text-fg-muted`})}):null,_&&!g?(0,$.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-12 text-sm text-fg-muted`,children:[(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}),i.pickerLoading]}):null,v?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerListError}):null,!_&&g&&!v&&g.entries.length===0?(0,$.jsx)(`p`,{className:`px-2 py-8 text-center text-sm text-fg-muted`,children:i.pickerEmptyFolder}):null,g?.entries.map(e=>{let t=j(e),n=w===e.absolutePath;return(0,$.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":n,disabled:!e.isDirectory&&!t,className:q(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm`,e.isDirectory||t?`cursor-pointer text-fg hover:bg-surface-hover`:`cursor-default text-fg-muted opacity-60`,n&&`bg-accent-soft text-accent-fg ring-1 ring-inset ring-accent`),onClick:()=>e.isDirectory?E(e):t&&m({type:`patch`,patch:{selectedFilePath:e.absolutePath}}),children:[e.isDirectory?(0,$.jsx)(M_,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}):(0,$.jsx)(Xh,{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:d,className:`text-xs text-fg-muted`,children:i.pickerManualPath}),(0,$.jsx)(`input`,{id:d,type:`text`,value:y,onChange:e=>m({type:`patch`,patch:{manualPath:e.target.value}}),placeholder:i.pathInputPlaceholder,className:sB(),autoComplete:`off`,spellCheck:!1,onKeyDown:e=>{e.key===`Enter`&&y.trim()&&(e.preventDefault(),I())}})]})]}),(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)(X,{type:`button`,variant:`ghost`,onClick:()=>t(!1),children:i.pathModalCancel}),(0,$.jsx)(X,{type:`button`,variant:`secondary`,disabled:!y.trim(),onClick:()=>void I(),children:i.pickerApplyManual}),(0,$.jsx)(X,{type:`button`,disabled:!w&&!k,onClick:()=>void F(),children:l??i.pickerUseThisFolder})]})]})]})})}var fB=(0,Z.createContext)(!1),pB=(0,Z.createContext)({}),mB=(0,Z.memo)(function(e){let t=(0,Q.c)(27),{child:n,activeTaskId:r,onNavigate:i,sb:a}=e,o=b(),s;t[0]===n.activeConversationId?s=t[1]:(s=e=>n.activeConversationId?e.runs[n.activeConversationId]:void 0,t[0]=n.activeConversationId,t[1]=s);let c=Gz(s),l;t[2]!==n.activeConversationId||t[3]!==n.taskId||t[4]!==o?(l=n.activeConversationId?`/chat/task/${encodeURIComponent(n.taskId)}`:Ie(`${o.pathname}${o.search}`,n.taskId),t[2]=n.activeConversationId,t[3]=n.taskId,t[4]=o,t[5]=l):l=t[5];let u=r===n.taskId&&`bg-surface-active text-fg`,d;t[6]===u?d=t[7]:(d=q(`ml-8 flex min-h-8 items-center gap-2 rounded-lg px-2 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg`,u),t[6]=u,t[7]=d);let f;t[8]===i?f=t[9]:(f=()=>i?.(),t[8]=i,t[9]=f);let p;t[10]!==c||t[11]!==a?(p=c?.unread?(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-accent`,"aria-label":c.status===`failed`?a.taskSessionAgentFailed:a.taskSessionAgentCompleted}):null,t[10]=c,t[11]=a,t[12]=p):p=t[12];let m;t[13]===n.title?m=t[14]:(m=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.title}),t[13]=n.title,t[14]=m);let h=n.runStatus??n.phase,g;t[15]!==a||t[16]!==h?(g=EB(h,a),t[15]=a,t[16]=h,t[17]=g):g=t[17];let _;t[18]===g?_=t[19]:(_=(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:g}),t[18]=g,t[19]=_);let v;return t[20]!==_||t[21]!==l||t[22]!==d||t[23]!==f||t[24]!==p||t[25]!==m?(v=(0,$.jsxs)(y,{to:l,className:d,onClick:f,children:[p,m,_]}),t[20]=_,t[21]=l,t[22]=d,t[23]=f,t[24]=p,t[25]=m,t[26]=v):v=t[26],v}),hB=20,gB=12,_B=5,vB=60,yB=`application/x-xopc-sidebar-item`;function bB(e,t,n,r){let i=e.filter(e=>e!==t),a=i.indexOf(n);return a<0?e:(i.splice(a+ +!!r,0,t),i)}function xB(e,t,n){if(!t?.length)return e;let r=new Map(t.map((e,t)=>[e,t]));return e.map((e,t)=>({item:e,index:t,rank:r.get(n(e))})).sort((e,t)=>e.rank!==void 0&&t.rank!==void 0?e.rank-t.rank:e.rank===void 0?t.rank===void 0?e.index-t.index:-1:1).map(({item:e})=>e)}function SB({spec:e,children:t}){let[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(null);return e?(0,$.jsxs)(`div`,{draggable:!0,className:q(`relative cursor-grab transition-[opacity,transform] duration-200 ease-out active:cursor-grabbing`,n&&`opacity-50`),onDragStart:t=>{r(!0),t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(yB,JSON.stringify({containerId:e.containerId,itemId:e.itemId}))},onDragEnd:()=>{r(!1),a(null)},onDragOver:e=>{e.preventDefault();let t=e.currentTarget.getBoundingClientRect();a(e.clientY>=t.top+t.height/2?`after`:`before`)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||a(null)},onDrop:t=>{t.preventDefault();let n=t.currentTarget.getBoundingClientRect(),r=t.clientY>=n.top+n.height/2;a(null);try{let n=JSON.parse(t.dataTransfer.getData(yB));if(n.containerId!==e.containerId||n.itemId===e.itemId)return;e.onReorder(e.containerId,bB(e.itemIds,n.itemId,e.itemId,r))}catch{}},children:[i===`before`?(0,$.jsx)(`span`,{className:`pointer-events-none absolute inset-x-1 top-0 z-30 h-0.5 rounded-full bg-accent`}):null,t,i===`after`?(0,$.jsx)(`span`,{className:`pointer-events-none absolute inset-x-1 bottom-0 z-30 h-0.5 rounded-full bg-accent`}):null]}):t}function CB(e,t){return e.name?.trim()||t}function wB(e){let t=/^\/chat\/([^/]+)$/.exec(e);if(!t)return;let n=decodeURIComponent(t[1]);if(n!==`new`)return n}function TB(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function EB(e,t){return e===`running`||e===`active`||e===`verifying`?t.delegatedTaskRunning:e===`completed`||e===`succeeded`||e===`closed`?t.delegatedTaskCompleted:e===`failed`?t.delegatedTaskFailed:e===`backlog`||e===`ready`||e===`queued`||e===`waiting`?t.delegatedTaskWaiting:e}function DB(e){let t=new Date(e.updatedAt).getTime();return Number.isFinite(t)?t:0}function OB(e){return q(`group relative flex min-h-8 w-full min-w-0 items-center rounded-lg pr-1 text-left text-sm leading-5 transition-colors duration-200 ease-out`,`pl-6`,`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 kB=`text-xs font-normal leading-5 text-fg-subtle`,AB=q(kB,`transition-colors hover:text-fg-muted`);function jB(e){let t=(0,Q.c)(5),{indented:n}=e,r=(n===void 0?!1:n)&&`pl-6`,i;t[0]===r?i=t[1]:(i=q(`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)(ta,{className:`h-3 w-4/5 animate-none`}),(0,$.jsx)(ta,{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 MB(){let e=(0,Q.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsxs)(`div`,{children:[(0,$.jsx)(ta,{className:`mb-1.5 h-2.5 w-14 animate-none`}),(0,$.jsx)(jB,{})]}),n=(0,$.jsx)(ta,{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)(jB,{}),(0,$.jsx)(jB,{indented:!0}),(0,$.jsx)(jB,{indented:!0})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(ta,{className:`mb-1.5 h-2.5 w-12 animate-none`}),(0,$.jsx)(jB,{}),(0,$.jsx)(jB,{})]})]}),e[2]=r):r=e[2],r}var NB=(0,Z.memo)(function({session:e,isActive:t,onNavigate:n,mutate:r,onRequestRename:i,onRequestDelete:a,sb:o,sess:s,clipboard:c,defaultUnnamedTitle:l,contextLabel:u,sort:d,showTaskChildren:f=!0}){let p=(0,Z.useContext)(pB)[e.key],m=b(),h=/^\/chat\/task\/([^/]+)$/.exec(m.pathname)?.[1],g=p?.items.some(e=>e.taskId===h||e.activeConversationId===wB(m.pathname))??!1,[_,v]=(0,Z.useState)(g);(0,Z.useEffect)(()=>{g&&v(!0)},[g]);let x=(0,Z.useContext)(fB),S=vj(e),C=S.source!==`workbench`||S.purpose!==`chat`,w=Sz(e,o.sessionFilters),T=[w,u].filter(Boolean).join(` · `),[E,D]=(0,Z.useState)(!1),[O,k]=(0,Z.useState)(!1),A=Uz(e.key),j=Gz(t=>t.runs[e.key]),M=CB(e,l),N=e.status===`pinned`,P=A||!!j?.unread,F=async()=>{if(!O){k(!0);try{N?await Hn(e.key):await Ln(e.key),D(!1),r()}catch{}finally{k(!1)}}},I=async()=>{let t=await Yr(e.key);if(D(!1),t){ht(`success`,o.taskChatIdCopied,void 0,{duration:2e3});return}ht(`warning`,c.copyFailed,void 0,{duration:4e3})};return(0,$.jsx)(SB,{spec:d,children:(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:OB(t),children:[f&&p?.total?(0,$.jsx)(`button`,{type:`button`,className:`absolute left-0 flex size-6 items-center justify-center text-fg-subtle hover:text-fg`,"aria-label":_?o.delegatedTasksCollapse:o.delegatedTasksExpand,"aria-expanded":_,onClick:()=>v(e=>!e),children:(0,$.jsx)(jd,{className:q(`size-3.5 transition-transform`,!_&&`-rotate-90`),"aria-hidden":!0})}):null,(0,$.jsxs)(y,{to:`/chat/${encodeURIComponent(e.key)}`,className:q(`min-w-0 flex-1 self-stretch 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`,P?`pr-[4.75rem]`:`pr-12`),title:`${M} — ${T}`,"aria-label":`${M} — ${T}`,onClick:()=>n?.(),onDoubleClick:t=>{t.preventDefault(),t.stopPropagation(),i(e)},children:[C?(0,$.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center text-fg-muted`,title:w,children:(0,$.jsx)(wz,{sourceChannel:e.sourceChannel,session:e,className:`size-3.5`})}):null,(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate`,children:M}),x?(0,$.jsx)(`span`,{className:`block truncate text-xs font-normal text-fg-muted`,children:T}):null]})]}),A?(0,$.jsxs)(`span`,{className:`pointer-events-none absolute right-2 top-1/2 z-10 flex size-2.5 -translate-y-1/2 items-center justify-center`,title:o.taskSessionAgentRunning,"aria-label":o.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})]}):j?.unread?(0,$.jsx)(`span`,{className:q(`pointer-events-none absolute right-2 top-1/2 z-10 size-2.5 -translate-y-1/2 rounded-full`,j.status===`failed`?`bg-red-500`:`bg-emerald-500`),title:j.status===`failed`?o.taskSessionAgentFailed:o.taskSessionAgentCompleted,"aria-label":j.status===`failed`?o.taskSessionAgentFailed:o.taskSessionAgentCompleted}):null,(0,$.jsxs)(`div`,{className:q(`pointer-events-none absolute inset-y-0 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`,P?`right-7`:`right-1`,E&&`pointer-events-auto opacity-100`),children:[(0,$.jsx)(`button`,{type:`button`,className:q(`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":N?s.unpin:s.pin,title:N?s.unpin:s.pin,"aria-pressed":N,disabled:O,onClick:()=>void F(),children:O?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):N?(0,$.jsx)(Zb,{className:`size-4 rotate-45`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Yb,{className:`size-4 rotate-45`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsxs)(Qi,{open:E,onOpenChange:D,children:[(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:q(`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":o.taskSessionMenuAria,title:o.taskSessionMenuAria,"aria-expanded":E,children:(0,$.jsx)(ee,{className:`size-4`,strokeWidth:2,"aria-hidden":!0})})}),(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{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:()=>{D(!1),i(e)},children:[(0,$.jsx)(tt,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),o.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 I(),children:[(0,$.jsx)(Bf,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),o.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:()=>{D(!1),a(e.key)},children:[(0,$.jsx)(vO,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),o.taskDeleteTask]})]})})]})]})]}),f&&_&&p?.items.map(e=>(0,$.jsx)(mB,{child:e,activeTaskId:h,onNavigate:n,sb:o},e.taskId))]})})});function PB(e){let t=(0,Q.c)(74),{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){ht(`warning`,c.projectOpenInExplorerUnavailable,void 0,{duration:3500}),u(!1);return}let e=await window.electronAPI.shell.openPath(f);u(!1),e.ok===!1&&ht(`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=q(`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)(ee,{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)(ea,{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)(te,{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]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>u(!1),t[21]=E):E=t[21];let D;t[22]===n.id?D=t[23]:(D=(0,$.jsx)(Lz,{projectId:n.id,onStarted:E,className:`flex w-full rounded-md px-2 py-1.5 text-left text-xs font-medium text-fg hover:bg-surface-hover disabled:opacity-50`}),t[22]=n.id,t[23]=D);let O;t[24]!==i||t[25]!==n?(O=()=>{u(!1),i(n)},t[24]=i,t[25]=n,t[26]=O):O=t[26];let k;t[27]===m?k=t[28]:(k=m?(0,$.jsx)(Zb,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Yb,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[27]=m,t[28]=k);let A=m?c.projectUnpin:c.projectPin,j;t[29]!==O||t[30]!==k||t[31]!==A?(j=(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:O,children:[k,A]}),t[29]=O,t[30]=k,t[31]=A,t[32]=j):j=t[32];let M;t[33]===g?M=t[34]:(M=()=>void g(),t[33]=g,t[34]=M);let N=!p,P=p?void 0:c.projectOpenInExplorerUnavailable,F;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(Le,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[35]=F):F=t[35];let I;t[36]!==c.projectOpenInExplorer||t[37]!==M||t[38]!==N||t[39]!==P?(I=(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:M,disabled:N,title:P,children:[F,c.projectOpenInExplorer]}),t[36]=c.projectOpenInExplorer,t[37]=M,t[38]=N,t[39]=P,t[40]=I):I=t[40];let L;t[41]!==a||t[42]!==n?(L=()=>{u(!1),a(n)},t[41]=a,t[42]=n,t[43]=L):L=t[43];let R;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(tt,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[44]=R):R=t[44];let z;t[45]!==c.projectRename||t[46]!==L?(z=(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:L,children:[R,c.projectRename]}),t[45]=c.projectRename,t[46]=L,t[47]=z):z=t[47];let B;t[48]!==o||t[49]!==n?(B=()=>{u(!1),o(n)},t[48]=o,t[49]=n,t[50]=B):B=t[50];let V;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(vo,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[51]=V):V=t[51];let H;t[52]!==c.projectArchive||t[53]!==B?(H=(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:B,children:[V,c.projectArchive]}),t[52]=c.projectArchive,t[53]=B,t[54]=H):H=t[54];let U;t[55]!==s||t[56]!==n?(U=()=>{u(!1),s(n)},t[55]=s,t[56]=n,t[57]=U):U=t[57];let W;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(vO,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[58]=W):W=t[58];let G;t[59]!==c.projectRemove||t[60]!==U?(G=(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:U,children:[W,c.projectRemove]}),t[59]=c.projectRemove,t[60]=U,t[61]=G):G=t[61];let ne;t[62]!==T||t[63]!==D||t[64]!==j||t[65]!==I||t[66]!==z||t[67]!==H||t[68]!==G?(ne=(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{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:FB,children:[T,D,j,I,z,H,G]})}),t[62]=T,t[63]=D,t[64]=j,t[65]=I,t[66]=z,t[67]=H,t[68]=G,t[69]=ne):ne=t[69];let K;return t[70]!==l||t[71]!==ne||t[72]!==x?(K=(0,$.jsxs)(Qi,{open:l,onOpenChange:u,children:[x,ne]}),t[70]=l,t[71]=ne,t[72]=x,t[73]=K):K=t[73],K}function FB(e){return e.preventDefault()}function IB(e){let t=(0,Q.c)(70),{group:n,isExpanded:r,isCollapsed:i,activeConversationId: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,excludedConversationIds:x,projectSort:S,onReorder:C}=e,w;t[0]!==x||t[1]!==n.sessions?(w=x?n.sessions.filter(e=>!x.has(e.key)):n.sessions,t[0]=x,t[1]=n.sessions,t[2]=w):w=t[2];let T=w,E;t[3]!==r||t[4]!==T?(E=r?T:T.slice(0,_B),t[3]=r,t[4]=T,t[5]=E):E=t[5];let D=E,O=T.length>_B,k=n.sessionHasMore||O,A=r&&!n.sessionHasMore&&O,j;t[6]===a?j=t[7]:(j=e=>e.key===a,t[6]=a,t[7]=j);let M=T.some(j),N=n.project.name,P=M?`text-fg`:`text-fg-muted`,F;t[8]===P?F=t[9]:(F=q(`group flex h-7 min-w-0 items-center gap-1.5 rounded-lg px-2 text-sm font-medium leading-5`,P),t[8]=P,t[9]=F);let I;t[10]!==n.project.id||t[11]!==s?(I=()=>s(n.project.id),t[10]=n.project.id,t[11]=s,t[12]=I):I=t[12];let L=!i,R;t[13]===i?R=t[14]:(R=i?(0,$.jsx)(z_,{className:`size-3.5 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Le,{className:`size-3.5 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),t[13]=i,t[14]=R);let z;t[15]===n.project.name?z=t[16]:(z=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n.project.name}),t[15]=n.project.name,t[16]=z);let B;t[17]!==n.project.name||t[18]!==z||t[19]!==I||t[20]!==L||t[21]!==R?(B=(0,$.jsxs)(`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:I,title:n.project.name,"aria-expanded":L,children:[R,z]}),t[17]=n.project.name,t[18]=z,t[19]=I,t[20]=L,t[21]=R,t[22]=B):B=t[22];let V;t[23]!==n.project||t[24]!==d||t[25]!==p||t[26]!==f||t[27]!==u||t[28]!==l||t[29]!==_?(V=(0,$.jsx)(PB,{project:n.project,onNavigate:p,onPinToggle:l,onRequestRename:u,onArchive:d,onRequestRemove:f,sb:_}),t[23]=n.project,t[24]=d,t[25]=p,t[26]=f,t[27]=u,t[28]=l,t[29]=_,t[30]=V):V=t[30];let H;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(H=q(`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[31]=H):H=t[31];let U;t[32]!==n.project||t[33]!==c?(U=()=>c(n.project),t[32]=n.project,t[33]=c,t[34]=U):U=t[34];let W;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(rt,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[35]=W):W=t[35];let G;t[36]!==_.projectNewChat||t[37]!==U?(G=(0,$.jsx)(`button`,{type:`button`,className:H,onClick:U,title:_.projectNewChat,"aria-label":_.projectNewChat,children:W}),t[36]=_.projectNewChat,t[37]=U,t[38]=G):G=t[38];let ee;t[39]!==B||t[40]!==V||t[41]!==G||t[42]!==F?(ee=(0,$.jsxs)(`div`,{className:F,children:[B,V,G]}),t[39]=B,t[40]=V,t[41]=G,t[42]=F,t[43]=ee):ee=t[43];let te;t[44]!==a||t[45]!==k||t[46]!==y||t[47]!==b||t[48]!==n.project.id||t[49]!==n.sessionLoading||t[50]!==i||t[51]!==m||t[52]!==p||t[53]!==C||t[54]!==g||t[55]!==h||t[56]!==o||t[57]!==_||t[58]!==v||t[59]!==A||t[60]!==T||t[61]!==D?(te=i?null:(0,$.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[D.map(e=>(0,$.jsx)(NB,{session:e,isActive:a===e.key,onNavigate:p,mutate:m,onRequestRename:h,onRequestDelete:g,sb:_,sess:v,clipboard:y,defaultUnnamedTitle:b,sort:{containerId:`project:${n.project.id}`,itemId:e.key,itemIds:T.map(LB),onReorder:C}},e.key)),k?(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)(Ye,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(jd,{className:q(`size-3.5 transition-transform duration-150 ease-out`,A&&`rotate-180`),strokeWidth:1.75,"aria-hidden":!0}),A?_.projectShowLess:_.projectShowMore]}):null]}),t[44]=a,t[45]=k,t[46]=y,t[47]=b,t[48]=n.project.id,t[49]=n.sessionLoading,t[50]=i,t[51]=m,t[52]=p,t[53]=C,t[54]=g,t[55]=h,t[56]=o,t[57]=_,t[58]=v,t[59]=A,t[60]=T,t[61]=D,t[62]=te):te=t[62];let ne;t[63]!==n.project.name||t[64]!==ee||t[65]!==te?(ne=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":N,children:[ee,te]}),t[63]=n.project.name,t[64]=ee,t[65]=te,t[66]=ne):ne=t[66];let K;return t[67]!==S||t[68]!==ne?(K=(0,$.jsx)(SB,{spec:S,children:ne}),t[67]=S,t[68]=ne,t[69]=K):K=t[69],K}function LB(e){return e.key}function RB(e){let t=(0,Q.c)(49),{sessions:n,hasMore:r,loadingMore:i,isCollapsed:a,onToggleCollapsed:o,onCreateChat:s,onLoadMore:c,activeConversationId:l,onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_,excludedConversationIds:v,onReorder:y,sortable:b}=e,x=b===void 0?!0:b,S;t[0]!==v||t[1]!==n?(S=v?n.filter(e=>!v.has(e.key)):n,t[0]=v,t[1]=n,t[2]=S):S=t[2];let C=S;if(C.length===0&&!r)return null;let w=m.inboxHeading,T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=q(`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`,AB),t[3]=T):T=t[3];let E=!a,D=m.inboxHeading,O=a&&`-rotate-90`,k;t[4]===O?k=t[5]:(k=q(`size-3.5 transition-transform duration-150 ease-out`,O),t[4]=O,t[5]=k);let A;t[6]===k?A=t[7]:(A=(0,$.jsx)(jd,{className:k,strokeWidth:1.75,"aria-hidden":!0}),t[6]=k,t[7]=A);let j;t[8]!==o||t[9]!==m.inboxHeading||t[10]!==E||t[11]!==A?(j=(0,$.jsxs)(`button`,{type:`button`,className:T,onClick:o,"aria-expanded":E,children:[D,A]}),t[8]=o,t[9]=m.inboxHeading,t[10]=E,t[11]=A,t[12]=j):j=t[12];let M;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=q(`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]=M):M=t[13];let N;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(rt,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[14]=N):N=t[14];let P;t[15]!==_||t[16]!==s?(P=(0,$.jsx)(`button`,{type:`button`,className:M,onClick:s,title:_,"aria-label":_,children:N}),t[15]=_,t[16]=s,t[17]=P):P=t[17];let F;t[18]!==j||t[19]!==P?(F=(0,$.jsxs)(`div`,{className:`group flex min-w-0 items-center pb-1`,children:[j,P]}),t[18]=j,t[19]=P,t[20]=F):F=t[20];let I=a&&`hidden`,L;t[21]===I?L=t[22]:(L=q(`flex flex-col gap-0.5`,I),t[21]=I,t[22]=L);let R;t[23]!==l||t[24]!==g||t[25]!==_||t[26]!==d||t[27]!==u||t[28]!==y||t[29]!==p||t[30]!==f||t[31]!==m||t[32]!==h||t[33]!==x||t[34]!==C?(R=C.map(e=>(0,$.jsx)(NB,{session:e,isActive:l===e.key,onNavigate:u,mutate:d,onRequestRename:f,onRequestDelete:p,sb:m,sess:h,clipboard:g,defaultUnnamedTitle:_,sort:x?{containerId:`inbox`,itemId:e.key,itemIds:C.map(zB),onReorder:y}:void 0},e.key)),t[23]=l,t[24]=g,t[25]=_,t[26]=d,t[27]=u,t[28]=y,t[29]=p,t[30]=f,t[31]=m,t[32]=h,t[33]=x,t[34]=C,t[35]=R):R=t[35];let z;t[36]!==r||t[37]!==i||t[38]!==c||t[39]!==m.projectShowMore?(z=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)(Ye,{className:`size-3.5 animate-spin`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(jd,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),m.projectShowMore]}):null,t[36]=r,t[37]=i,t[38]=c,t[39]=m.projectShowMore,t[40]=z):z=t[40];let B;t[41]!==L||t[42]!==R||t[43]!==z?(B=(0,$.jsxs)(`div`,{className:L,children:[R,z]}),t[41]=L,t[42]=R,t[43]=z,t[44]=B):B=t[44];let V;return t[45]!==m.inboxHeading||t[46]!==F||t[47]!==B?(V=(0,$.jsxs)(`section`,{className:`flex flex-col gap-0.5`,"aria-label":w,children:[F,B]}),t[45]=m.inboxHeading,t[46]=F,t[47]=B,t[48]=V):V=t[48],V}function zB(e){return e.key}function BB(e){let t=(0,Q.c)(21),{sessions:n,activeConversationId:r,onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d,onReorder:f}=e;if(n.length===0)return null;let p=l.pinnedSessions,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=q(`px-2 pb-1`,kB),t[0]=m):m=t[0];let h;t[1]===l.pinnedSessions?h=t[2]:(h=(0,$.jsx)(`h2`,{className:m,children:l.pinnedSessions}),t[1]=l.pinnedSessions,t[2]=h);let g;t[3]!==r||t[4]!==u||t[5]!==d||t[6]!==a||t[7]!==i||t[8]!==f||t[9]!==s||t[10]!==o||t[11]!==c||t[12]!==l||t[13]!==n?(g=n.map(e=>(0,$.jsx)(NB,{session:e,isActive:r===e.key,onNavigate:i,mutate:a,onRequestRename:o,onRequestDelete:s,sb:c,sess:l,clipboard:u,defaultUnnamedTitle:d,sort:{containerId:`pinned`,itemId:e.key,itemIds:n.map(VB),onReorder:f}},e.key)),t[3]=r,t[4]=u,t[5]=d,t[6]=a,t[7]=i,t[8]=f,t[9]=s,t[10]=o,t[11]=c,t[12]=l,t[13]=n,t[14]=g):g=t[14];let _;t[15]===g?_=t[16]:(_=(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:g}),t[15]=g,t[16]=_);let v;return t[17]!==l.pinnedSessions||t[18]!==h||t[19]!==_?(v=(0,$.jsxs)(`section`,{className:`mb-3 flex flex-col gap-0.5`,"aria-label":p,children:[h,_]}),t[17]=l.pinnedSessions,t[18]=h,t[19]=_,t[20]=v):v=t[20],v}function VB(e){return e.key}function HB(e){let t=(0,Q.c)(4),{onNavigate:n,scrollHeader:r}=e,i=At(UB),a;return t[0]!==i||t[1]!==n||t[2]!==r?(a=(0,$.jsx)(WB,{gateway:i,onNavigate:n,scrollHeader:r},i),t[0]=i,t[1]=n,t[2]=r,t[3]=a):a=t[3],a}function UB(e){return e.baseUrl}function WB({onNavigate:e,gateway:t,scrollHeader:n}){let r=Pt(e=>e.language),i=kt(r),a=i.sidebar,o=i.sessions,s=i.projectsPage,c=i.chat.workingDirectory,u=At(e=>e.conversationId),d=vz(t,u),f=a.sessionFilters,p=(0,Z.useRef)(null),m=(0,Z.useRef)(0);(0,Z.useLayoutEffect)(()=>{p.current&&(p.current.scrollTop=d.active?0:m.current)},[d.active]);let h=At(e=>e.openTokenDialog),{data:g,mutate:_}=Xr(u?[`gateway-chat-agents`,u]:null,Vz,{revalidateOnFocus:!1}),v=g?.defaultId??`main`;(0,Z.useEffect)(()=>{let e=()=>void _();return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[_]);let{pathname:y}=b(),x=l(),S=wB(y),C=(0,Z.useMemo)(()=>Date.now()-vB*24*60*60*1e3,[]),[w,T]=(0,Z.useState)(null),[E,D]=(0,Z.useState)(``),[O,k]=(0,Z.useState)(null),[A,j]=(0,Z.useState)(null),[M,N]=(0,Z.useState)(``),[P,F]=(0,Z.useState)(null),[I,L]=(0,Z.useState)(!1),[R,z]=(0,Z.useState)(``),[B,V]=(0,Z.useState)(``),[H,U]=(0,Z.useState)(null),[W,G]=(0,Z.useState)(!1),[ee,te]=(0,Z.useState)(!0),[ne,K]=(0,Z.useState)(()=>S),[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)({}),[he,ge]=(0,Z.useState)(()=>new Set),[ve,ye]=(0,Z.useState)([]),[be,xe]=(0,Z.useState)(null),[Se,Ce]=(0,Z.useState)(!1),[we,Te]=(0,Z.useState)({}),Ee=(0,Z.useRef)(new Set),De=rB({initialPath:B,onPicked:V}),{data:Oe,size:ke,setSize:Ae,isValidating:je,mutate:Me}=Qr((e,t)=>!u||t&&!t.projects.hasMore?null:[`sidebar-chat-list`,u,ne??``,e],async([,,e,t])=>zn({projectLimit:gB,projectOffset:t*gB,sessionPreviewLimit:_B,inboxLimit:t===0?hB:1,inboxOffset:0,staleDays:vB,includeConversationId:e||void 0}),{keepPreviousData:!0,revalidateOnFocus:!1}),Ne=(0,Z.useMemo)(()=>{let e=Oe??[],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:he.has(e.project.id)})}return xB(t.map(e=>({...e,sessions:xB(e.sessions,we[`project:${e.project.id}`],e=>e.key)})),we.projects,e=>e.project.id)},[Oe,he,we,de]),Pe=(0,Z.useMemo)(()=>{let e={};for(let t of Oe??[])Object.assign(e,t.childrenByConversationId);return{...e,...pe}},[Oe,pe]),Fe=Oe?.[0]?.inbox,Ie=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of[...Fe?.items??[],...ve])t.has(n.key)||(t.add(n.key),e.push(n));return e.sort((e,t)=>DB(t)-DB(e)),xB(e,we.inbox??Oe?.[0]?.layouts.inbox?.itemIds,e=>e.key)},[Oe,Fe?.items,ve,we.inbox]),Re=be??Fe?.hasMore??!1,ze=(0,Z.useMemo)(()=>{let e=[],t=new Set;for(let n of Ne)for(let r of n.sessions)t.has(r.key)||(t.add(r.key),e.push(r));for(let n of Ie)t.has(n.key)||(t.add(n.key),e.push(n));return e},[Ie,Ne]),Be=(0,Z.useMemo)(()=>new Set(ze.map(e=>e.key)),[ze]),Ve=Ne.length>0||Ie.length>0,He=(0,Z.useMemo)(()=>xB(Oe?.[0]?.pinned??[],we.pinned,e=>e.key),[Oe,we.pinned]),Ue=(0,Z.useMemo)(()=>new Set(He.map(e=>e.key)),[He]),We=!!(Oe&&ke>Oe.length),Ge=(Oe?.[Oe.length-1])?.projects.hasMore??!1,Ke=!!(u&&!Oe&&je),qe=(0,Z.useCallback)(()=>{fe({}),ye([]),xe(null),me({}),Me()},[Me]),Je=(0,Z.useCallback)((e,t)=>{if(Ee.current.has(e))return;let n=Oe?.[0]?.layouts[e]?.revision??0;Te(n=>({...n,[e]:t})),Ee.current.add(e),(async()=>{try{await Rn({containerId:e,itemIds:t,expectedRevision:n}),await Me()}catch{ht(`warning`,r===`zh`?`未能保存侧栏顺序,已恢复原位置`:`Could not save sidebar order; the previous order was restored`,void 0,{duration:3500})}finally{Ee.current.delete(e),Te(t=>{let n={...t};return delete n[e],n})}})()},[Oe,r,Me]),Xe=(0,Z.useCallback)(e=>{let t=e.currentTarget;if(d.active||(m.current=t.scrollTop,!Ge||We))return;let{scrollTop:n,scrollHeight:r,clientHeight:i}=t;r-n-i>100||Ae(e=>e+1)},[d.active,Ge,We,Ae]);(0,Z.useEffect)(()=>{if(!u)return;let e=()=>{qe()},t=e=>{if(!e.detail?.key){qe();return}qe()},n=e=>{zz(e.detail,Be)&&qe()};return window.addEventListener(`session-updated`,t),window.addEventListener(`session-created`,e),window.addEventListener(`project-updated`,e),window.addEventListener(`task-updated`,e),window.addEventListener(`session-transcript-updated`,n),()=>{window.removeEventListener(`session-updated`,t),window.removeEventListener(`session-created`,e),window.removeEventListener(`project-updated`,e),window.removeEventListener(`task-updated`,e),window.removeEventListener(`session-transcript-updated`,n)}},[u,qe,Be]),(0,Z.useEffect)(()=>{!u||!S||!Oe||ze.some(e=>e.key===S)||K(e=>e===S?e:S)},[S,Oe,ze,u]);let Ze=(0,Z.useCallback)(e=>{T(e.key),D(CB(e,i.chat.newSession))},[i.chat.newSession]),Qe=async()=>{if(!w)return;let e=E.trim();if(e)try{await Bn(w,e),T(null),d.refresh(),qe()}catch{}},$e=async e=>{try{await Vn(e),d.refresh(),S===e&&x(`/chat/new?projectScope=none`,{state:{forceNewChat:!0}}),qe()}catch{}},et=(0,Z.useCallback)(e=>{j(e.id),N(e.name.trim())},[]),tt=async()=>{if(!A||!dt)return;let e=M.trim();if(e)try{await YR(A,e,dt.version),j(null),qe(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:A}}))}catch{}},nt=(0,Z.useCallback)(async e=>{try{await XR(e.id,e.version),y===`/projects/${encodeURIComponent(e.id)}`&&x(`/projects`),qe(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[x,y,qe]),it=(0,Z.useCallback)(async e=>{try{e.pinnedAt?await $R(e.id,e.version):await QR(e.id,e.version),qe(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch{}},[qe]),at=async e=>{let t=e.id;try{await ez(t,e.version),y===`/projects/${encodeURIComponent(t)}`&&x(`/projects`),qe(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:t}}))}catch{}},ot=(0,Z.useCallback)(e=>{let t=Ne.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||he.has(e))&&(ge(t=>new Set(t).add(e)),(async()=>{try{let n=await Un({projectId:e,limit:5e3,offset:0,updatedAfter:C,includePinned:!0,includeConversationId:S,rootConversationsOnly:!0});me(e=>({...e,...n.childrenByConversationId})),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));let s=xB(o,we[`project:${e}`]??Oe?.[0]?.layouts[`project:${e}`]?.itemIds,e=>e.key);return{...r,[e]:{sessions:s,sessionTotal:n.total,hasMore:!1}}})}finally{ge(t=>{let n=new Set(t);return n.delete(e),n})}})())}},[S,Oe,le,he,we,Ne,C]),st=(0,Z.useCallback)(e=>{ce(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),ct=(0,Z.useCallback)(()=>{!Re||Se||(Ce(!0),(async()=>{try{let e=await Un({unassigned:!0,limit:5e3,offset:0,updatedAfter:C,includePinned:!0,includeConversationId:S,rootConversationsOnly:!0});me(t=>({...t,...e.childrenByConversationId})),ye(t=>{let n=new Set([...Fe?.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 xB(r,we.inbox??Oe?.[0]?.layouts.inbox?.itemIds,e=>e.key)}),xe(!1)}finally{Ce(!1)}})())},[S,Oe,Fe?.items,Re,Se,we.inbox,C]),lt=(0,Z.useCallback)(t=>{x(_e(t.id),{state:{forceNewChat:!0,agentId:t.defaultAgentId??v}}),e?.()},[v,x,e]),ut=(0,Z.useCallback)(async e=>{e.preventDefault();let t=R.trim(),n=B.trim();if(!(!t||!n||W)){G(!0),U(null);try{let e=await qR({name:t,workspaceRoot:n,autoUnderstand:ee});z(``),V(``),te(!0),L(!1),qe(),window.dispatchEvent(new CustomEvent(`project-updated`,{detail:{id:e.id}}))}catch(e){U(e instanceof Error?e.message:String(e))}finally{G(!1)}}},[R,B,W,qe,ee]),dt=A?Ne.find(e=>e.project.id===A)?.project:void 0,ft=P?Ne.find(e=>e.project.id===P)?.project:void 0;return u?(0,$.jsx)(fB,{value:d.filters.details,children:(0,$.jsx)(pB,{value:Pe,children:(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{ref:p,className:`app-sidebar-nav-scroll min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-2`,onScroll:Xe,children:[n,(0,$.jsx)(`div`,{hidden:d.active||Ke,className:`px-2`,children:(0,$.jsx)(BB,{sessions:He,activeConversationId:S,onNavigate:e,mutate:qe,onRequestRename:Ze,onRequestDelete:k,sb:a,sess:o,clipboard:i.clipboard,defaultUnnamedTitle:i.chat.newSession,onReorder:Je})}),(0,$.jsx)(`div`,{className:`px-2`,children:(0,$.jsxs)(`div`,{className:`group flex min-w-0 items-center gap-1.5 px-2 pb-1`,children:[(0,$.jsxs)(`button`,{type:`button`,className:q(`flex shrink-0 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`,AB),onClick:()=>ie(e=>!e),"aria-expanded":!re,children:[a.projectsHeading,(0,$.jsx)(jd,{className:q(`size-3.5 transition-transform duration-150 ease-out`,re&&`-rotate-90`),strokeWidth:1.75,"aria-hidden":!0})]}),(0,$.jsx)(mz,{filters:d.filters,onChange:d.updateFilters,search:d.search,onSearch:d.setSearch,labels:f,gateway:t,agents:g?.items??[]}),(0,$.jsx)(`button`,{type:`button`,className:q(`flex size-6 shrink-0 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 [@media(hover:none)]:opacity-100`,I&&`opacity-100`),onClick:()=>L(!0),"aria-label":s.createTitle,title:s.createTitle,children:(0,$.jsx)(rt,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0})})]})}),d.active?(0,$.jsxs)(`div`,{className:`px-2 py-2`,children:[d.pendingUpdate?(0,$.jsx)(`button`,{type:`button`,className:`mb-2 w-full rounded-md px-2 py-1 text-xs text-accent-fg hover:bg-surface-hover`,onClick:d.refresh,children:f.refresh}):null,d.error?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 p-2 text-xs text-fg-muted`,children:[(0,$.jsx)(`p`,{children:f.error}),(0,$.jsx)(X,{variant:`secondary`,onClick:d.refresh,children:f.retry})]}):d.loading?(0,$.jsx)(MB,{}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`px-2 pb-2 text-xs text-fg-muted`,"aria-live":`polite`,children:f.results.replace(`{{count}}`,String(d.total))}),d.items.length?null:(0,$.jsx)(`p`,{className:`px-2 py-4 text-xs text-fg-muted`,children:f.empty}),(0,$.jsx)(fB,{value:!0,children:d.items.map(t=>(0,$.jsx)(NB,{session:t,isActive:t.key===S,showTaskChildren:!1,contextLabel:t.projectId?d.projects?.find(e=>e.id===t.projectId)?.name??Ne.find(e=>e.project.id===t.projectId)?.project.name??t.projectId:f.unassigned,onNavigate:e,mutate:()=>{d.refresh(),qe()},onRequestRename:Ze,onRequestDelete:k,sb:a,sess:o,clipboard:i.clipboard,defaultUnnamedTitle:i.chat.newSession},t.key))}),d.loadingMore?(0,$.jsx)(jB,{}):d.hasMore?(0,$.jsx)(`button`,{type:`button`,className:`w-full rounded-md py-2 text-xs text-fg-muted hover:bg-surface-hover`,onClick:d.loadMore,children:f.more}):null]})]}):null,(0,$.jsxs)(`div`,{hidden:d.active,children:[Ke?(0,$.jsx)(MB,{}):Ve?(0,$.jsxs)(`div`,{className:`flex flex-col px-2`,children:[Ne.length>0?(0,$.jsx)(`div`,{className:`pb-1`,children:re?null:Ne.map(t=>(0,$.jsx)(IB,{group:t,isExpanded:le.has(t.project.id),isCollapsed:se.has(t.project.id),activeConversationId:S,onToggleExpanded:ot,onToggleCollapsed:st,onCreateProjectChat:e=>void lt(e),onToggleProjectPin:e=>void it(e),onRequestProjectRename:et,onArchiveProject:e=>void nt(e),onRequestProjectRemove:e=>F(e.id),onNavigate:e,mutate:qe,onRequestRename:Ze,onRequestDelete:k,sb:a,sess:o,clipboard:i.clipboard,defaultUnnamedTitle:i.chat.newSession,excludedConversationIds:Ue,projectSort:{containerId:`projects`,itemId:t.project.id,itemIds:Ne.map(e=>e.project.id),onReorder:Je},onReorder:Je},t.project.id))}):null,(0,$.jsx)(RB,{sessions:Ie.filter(e=>vj(e).source!==`system`),hasMore:Re,loadingMore:Se,isCollapsed:ae,onToggleCollapsed:()=>oe(e=>!e),onCreateChat:()=>{x(`/chat/new?projectScope=none`,{state:{forceNewChat:!0}}),e?.()},onLoadMore:ct,activeConversationId:S,onNavigate:e,mutate:qe,onRequestRename:Ze,onRequestDelete:k,sb:a,sess:o,clipboard:i.clipboard,defaultUnnamedTitle:i.chat.newSession,excludedConversationIds:Ue,onReorder:Je}),Ie.some(e=>vj(e).source===`system`)?(0,$.jsxs)(`details`,{className:`mt-3`,open:Ie.some(e=>e.key===S&&vj(e).source===`system`),children:[(0,$.jsx)(`summary`,{className:`cursor-pointer px-2 py-2 text-xs text-fg-muted`,children:r===`zh`?`系统活动`:`System activity`}),(0,$.jsx)(RB,{sessions:Ie.filter(e=>vj(e).source===`system`),hasMore:!1,loadingMore:Se,isCollapsed:!1,onToggleCollapsed:()=>void 0,onCreateChat:()=>{x(`/chat/new?projectScope=none`,{state:{forceNewChat:!0}}),e?.()},onLoadMore:ct,activeConversationId:S,onNavigate:e,mutate:qe,onRequestRename:Ze,onRequestDelete:k,sb:a,sess:o,clipboard:i.clipboard,defaultUnnamedTitle:i.chat.newSession,excludedConversationIds:Ue,onReorder:Je,sortable:!1})]}):null]}):(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:a.taskListEmpty})}),We?(0,$.jsx)(`div`,{className:`flex justify-center py-2`,"aria-busy":!0,children:(0,$.jsx)(Ye,{className:`size-4 animate-spin text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})}):null]})]}),(0,$.jsx)(sn,{open:I,onOpenChange:e=>{W||(L(e),e||U(null))},children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(an,{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-overlay shadow-float focus:outline-none`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge px-5 py-4`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:s.createTitle}),(0,$.jsx)(tn,{className:`mt-1 text-sm text-fg-muted`,children:s.createDescription})]}),(0,$.jsxs)(`form`,{onSubmit:ut,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:[s.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:R,onChange:e=>z(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:s.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:De.pick,disabled:W||De.picking,children:[De.picking?(0,$.jsx)(Ye,{className:`size-5 shrink-0 animate-spin text-accent`,"aria-hidden":!0}):(0,$.jsx)(Le,{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:B?c.chooseFolder:c.selectWorkingDirectory}),(0,$.jsx)(`span`,{className:q(`mt-0.5 block truncate font-mono text-xs font-normal`,B?`text-fg-muted`:`text-fg-subtle`),title:B||void 0,children:B||s.workspaceSelectionPlaceholder})]})]}),(0,$.jsx)(`p`,{className:`text-xs font-normal text-fg-subtle`,children:s.workspaceSelectionHint})]}),(0,$.jsx)(Mz,{checked:ee,onChange:te,disabled:W}),H?(0,$.jsx)(`p`,{className:`rounded-lg bg-danger-soft px-3 py-2 text-xs text-danger`,role:`alert`,children:H}):null]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-5 py-4`,children:[(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:W,children:s.cancel})}),(0,$.jsx)(X,{type:`submit`,variant:`primary`,disabled:W||!R.trim()||!B.trim(),children:W?s.home.creating:s.create})]})]})]})]})}),De.hasNativePicker?null:(0,$.jsx)(dB,{open:De.modalOpen,onOpenChange:De.setModalOpen,initialAbsolutePath:B||void 0,onConfirm:De.confirmPick,wd:c}),(0,$.jsx)(sn,{open:w!==null,onOpenChange:e=>!e&&T(null),children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(an,{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-overlay p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:a.taskRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-rename-input`,children:a.taskRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-rename-input`,type:`text`,value:E,onChange:e=>D(e.target.value),className:q(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,Li,`dark:border-edge`),placeholder:i.chat.newSession,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),Qe())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:()=>T(null),children:a.taskRenameCancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,onClick:()=>void Qe(),disabled:!E.trim(),children:a.taskRenameSave})]})]})]})}),(0,$.jsx)(sn,{open:O!==null,onOpenChange:e=>!e&&k(null),children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(an,{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-overlay p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:o.deleteSessionTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:O?TB(o.deleteSessionMessage,{name:ze.find(e=>e.key===O)?.name?.trim()||i.chat.newSession}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:()=>k(null),children:o.cancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{O&&$e(O),k(null)},children:o.delete})]})]})]})}),(0,$.jsx)(sn,{open:A!==null,onOpenChange:e=>!e&&j(null),children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(an,{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-overlay p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:a.projectRenameTitle}),(0,$.jsx)(`label`,{className:`mt-3 block text-xs font-medium text-fg-subtle`,htmlFor:`sidebar-project-rename-input`,children:a.projectRenamePlaceholder}),(0,$.jsx)(`input`,{id:`sidebar-project-rename-input`,type:`text`,value:M,onChange:e=>N(e.target.value),className:q(`mt-1.5 w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg`,Li,`dark:border-edge`),placeholder:dt?.name??``,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),tt())}}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:()=>j(null),children:a.taskRenameCancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,onClick:()=>void tt(),disabled:!M.trim(),children:a.taskRenameSave})]})]})]})}),(0,$.jsx)(sn,{open:P!==null,onOpenChange:e=>!e&&F(null),children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(an,{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-overlay p-4 shadow-popover dark:border-edge`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:a.projectRemoveTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-fg-muted`,children:ft?TB(a.projectRemoveMessage,{name:ft.name}):``}),(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:()=>F(null),children:o.cancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,className:`bg-red-600 hover:bg-red-700`,onClick:()=>{ft&&at(ft),F(null)},children:a.projectRemove})]})]})]})})]})})}):(0,$.jsxs)(`div`,{className:`app-sidebar-nav-scroll min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-2`,children:[n,(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:a.taskListNeedToken}),(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:`mt-3 h-8 w-full text-xs font-medium`,onClick:()=>{h(),e?.()},children:a.taskListAddToken})]})})]})}var GB=42,KB=1,qB=5,JB=3,YB=`xopc-web-sidebar-visible-app-count-v2`;function XB(e){return Math.min(qB,Math.max(KB,e))}function ZB(){try{let e=Number.parseInt(globalThis.localStorage?.getItem(YB)??``,10);return Number.isFinite(e)?XB(e):JB}catch{return JB}}function QB({onNavigate:e,collapsed:t=!1}){let n=kt(Pt(e=>e.language)),[r,i]=(0,Z.useState)(ZB),a=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{try{globalThis.localStorage?.setItem(YB,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)/GB);i(XB(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=>XB(e+1))):e.key===`ArrowUp`||e.key===`ArrowLeft`?(e.preventDefault(),i(e=>XB(e-1))):e.key===`Home`?(e.preventDefault(),i(KB)):e.key===`End`&&(e.preventDefault(),i(qB))}return(0,$.jsxs)(`div`,{className:`app-sidebar-content flex min-h-0 flex-1 flex-col`,children:[(0,$.jsx)(`div`,{className:q(`flex min-h-0 flex-1 flex-col overflow-hidden`,t&&`hidden`),"aria-hidden":t?!0:void 0,children:(0,$.jsx)(HB,{onNavigate:e,scrollHeader:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`app-sidebar-sticky-surface sticky top-0 z-20 px-4 pt-1.5 pb-0.5`,children:(0,$.jsxs)(y,{to:`/chat/new`,state:{forceNewChat:!0},className:q(`flex w-full items-center gap-2 rounded-lg px-3 py-2.5 text-left text-sm font-medium leading-6 transition-colors duration-200 ease-out md:py-1.5`,`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-muted hover:bg-surface-hover hover:text-fg`),title:n.sidebar.newTask,onClick:()=>e?.(),children:[(0,$.jsx)(rt,{className:`size-4 shrink-0 opacity-90`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:n.sidebar.newTask})]})}),(0,$.jsx)(`nav`,{className:`px-4`,"aria-label":`Main`,children:(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:(0,$.jsx)(TR,{onNavigate:e,visibleLimit:r})})}),(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`horizontal`,"aria-label":n.sidebar.resizeApps,"aria-valuemin":KB,"aria-valuemax":qB,"aria-valuenow":r,tabIndex:0,className:`group flex h-3 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-transparent transition-colors group-hover:bg-edge group-focus-visible:bg-accent`})}),(0,$.jsx)(`div`,{className:`h-2`,"aria-hidden":!0})]})})}),t?(0,$.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto px-1.5 pb-2 pt-4`,"aria-label":`Main`,children:(0,$.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:(0,$.jsx)(TR,{collapsed:!0,onNavigate:e,visibleLimit:JB})})}):null,(0,$.jsx)(cL,{collapsed:t,onNavigate:e})]})}var $B=`(min-width: 768px)`,eV=(0,Z.memo)(function(){let e=(0,Q.c)(42),t=Pt(tV),n;e[0]===t?n=e[1]:(n=kt(t),e[0]=t,e[1]=n);let r=n,i=$F(nV),a=$F(rV),o=$F(iV),s=sI(aV),c=sI(oV),[l,u]=(0,Z.useState)(!1),d=PF({runtime:NF(),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=$F.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=XF(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($B),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=q(`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:q(`sidebar-chrome-row flex min-w-0`,Mi,d.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,d.sidebarLeadingInsetClass,i?`justify-center gap-1 px-1.5 max-md:flex`:q(`justify-start gap-1`,d.sidebarLeadingInsetClass?`sidebar-chrome-row-darwin pr-3`:`px-3`),i&&`md:hidden`),children:[s?(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:q(`size-8 shrink-0 rounded-xl p-0 md:hidden`,ji),"aria-label":r.closeMenu,title:r.closeMenu,onClick:()=>c(!1),children:(0,$.jsx)(Dt,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0})}):null,d.sidebarQuickActionsVisible&&!i?(0,$.jsx)(iI,{sidebarToggleVariant:`sidebar`,className:`overflow-hidden`}):null]}):null,k;e[25]===c?k=e[26]:(k=(0,$.jsx)(QB,{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:q(`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`,ji)}),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 tV(e){return e.language}function nV(e){return e.collapsed}function rV(e){return e.expandedWidthPx}function iV(e){return e.setExpandedWidthPx}function aV(e){return e.mobileNavOpen}function oV(e){return e.setMobileNavOpen}function sV(e){let t=(0,Q.c)(42),{open:n,title:r,description:i,confirmLabel:a,cancelLabel:o,destructive:s,overlayClassName:c,contentClassName:l,checkboxLabel:u,checkboxChecked:d,onCheckboxCheckedChange:f,onConfirm:p,onCancel:m}=e,h=d===void 0?!1:d,g=(0,Z.useId)(),_;t[0]===m?_=t[1]:(_=e=>{e||m()},t[0]=m,t[1]=_);let v;t[2]===c?v=t[3]:(v=q(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[1px]`,ia,c),t[2]=c,t[3]=v);let y;t[4]===v?y=t[5]:(y=(0,$.jsx)($t,{className:v}),t[4]=v,t[5]=y);let b;t[6]===l?b=t[7]:(b=q(`xopc-dialog-content fixed left-1/2 top-1/2 w-[min(100%-2rem,28rem)] -translate-x-1/2 -translate-y-1/2`,na,`rounded-2xl border border-edge bg-surface-overlay p-5 sm:p-6 shadow-popover outline-none dark:border-edge`,l),t[6]=l,t[7]=b);let x;t[8]===r?x=t[9]:(x=(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:r}),t[8]=r,t[9]=x);let S;t[10]===i?S=t[11]:(S=(0,$.jsx)(tn,{className:`mt-2 max-h-[min(50vh,16rem)] overflow-y-auto text-sm text-fg-muted overscroll-contain whitespace-pre-wrap break-words`,children:i}),t[10]=i,t[11]=S);let C;t[12]!==h||t[13]!==g||t[14]!==u||t[15]!==f?(C=u?(0,$.jsxs)(`label`,{htmlFor:g,className:`touch-target mt-5 flex w-fit cursor-pointer items-center gap-2.5 text-sm text-fg`,children:[(0,$.jsx)(`input`,{id:g,type:`checkbox`,checked:h,onChange:e=>f?.(e.target.checked),className:`size-4 rounded border-edge accent-accent`}),(0,$.jsx)(`span`,{children:u})]}):null,t[12]=h,t[13]=g,t[14]=u,t[15]=f,t[16]=C):C=t[16];let w;t[17]!==o||t[18]!==m?(w=(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:m,children:o}),t[17]=o,t[18]=m,t[19]=w):w=t[19];let T=s&&`border-danger/40 bg-danger text-white hover:bg-danger/90 dark:border-danger/40`,E;t[20]===T?E=t[21]:(E=q(T),t[20]=T,t[21]=E);let D;t[22]!==a||t[23]!==p||t[24]!==E?(D=(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:E,onClick:p,children:a}),t[22]=a,t[23]=p,t[24]=E,t[25]=D):D=t[25];let O;t[26]!==D||t[27]!==w?(O=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-end gap-2`,children:[w,D]}),t[26]=D,t[27]=w,t[28]=O):O=t[28];let k;t[29]!==O||t[30]!==b||t[31]!==x||t[32]!==S||t[33]!==C?(k=(0,$.jsxs)(an,{className:b,children:[x,S,C,O]}),t[29]=O,t[30]=b,t[31]=x,t[32]=S,t[33]=C,t[34]=k):k=t[34];let A;t[35]!==k||t[36]!==y?(A=(0,$.jsxs)(rn,{children:[y,k]}),t[35]=k,t[36]=y,t[37]=A):A=t[37];let j;return t[38]!==n||t[39]!==A||t[40]!==_?(j=(0,$.jsx)(sn,{open:n,onOpenChange:_,children:A}),t[38]=n,t[39]=A,t[40]=_,t[41]=j):j=t[41],j}var cV=450,lV=900;function uV(e){return new Promise(t=>window.setTimeout(t,e))}function dV({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},lV)},[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=cV-(Date.now()-t);n>0&&await uV(n),y()}finally{p(!1)}};return(0,$.jsx)(X,{type:c,variant:s,className:q(`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:q(`size-4 transition-transform duration-150 ease-out`,i),strokeWidth:a,"aria-hidden":!0}):(0,$.jsx)(iS,{className:q(`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 fV(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 pV(e){let t=(0,Q.c)(45),{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||!sa()||!window.electronAPI?.shell?.getOpenWithAppsForFileResource){l([]);return}let e=!1;return window.electronAPI.shell.getOpenWithAppsForFileResource(n.fileId).then(t=>{e||l(t.recommended.map(bV))}).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.delete||t[12]!==r.desktopUpdateRequired||t[13]!==r.download||t[14]!==r.openDefault||t[15]!==r.openDirectory||t[16]!==r.openWith||t[17]!==r.preview||t[18]!==r.recommendedApps||t[19]!==r.revealInFolder||t[20]!==r.share||t[21]!==r.trash||t[22]!==a||t[23]!==i||t[24]!==c){let e=n.fileId?c.map(yV):[],s=sa()?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},...r.delete?[{action:`delete`,label:r.delete}]:[]];t[29]===a?_=t[30]:(_=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[29]=a,t[30]=_),m=`relative shrink-0`;let p=a&&`opacity-100`,v;t[31]===p?v=t[32]:(v=q(`rounded-md p-1 text-fg-muted opacity-0 transition-opacity hover:bg-surface-hover hover:text-fg`,`group-hover:opacity-100`,p),t[31]=p,t[32]=v);let y,b;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{e.stopPropagation(),o(_V)},b=(0,$.jsx)(ee,{className:`size-3.5`,"aria-hidden":!0}),t[33]=y,t[34]=b):(y=t[33],b=t[34]),t[35]!==a||t[36]!==v?(h=(0,$.jsx)(`button`,{type:`button`,className:v,"aria-haspopup":`menu`,"aria-expanded":a,"aria-label":`More`,onPointerDown:vV,onClick:y,children:b}),t[35]=a,t[36]=v,t[37]=h):h=t[37],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:gV,children:[sa()&&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(hV).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(mV).map(e=>{let{action:t,label:r,appPath:a}=e;return(0,$.jsx)(`button`,{type:`button`,role:`menuitem`,className:q(`block w-full px-3 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,(t===`trash`||t===`delete`)&&`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.delete,t[12]=r.desktopUpdateRequired,t[13]=r.download,t[14]=r.openDefault,t[15]=r.openDirectory,t[16]=r.openWith,t[17]=r.preview,t[18]=r.recommendedApps,t[19]=r.revealInFolder,t[20]=r.share,t[21]=r.trash,t[22]=a,t[23]=i,t[24]=c,t[25]=m,t[26]=h,t[27]=g,t[28]=_}else m=t[25],h=t[26],g=t[27],_=t[28];let v;t[38]!==m||t[39]!==h||t[40]!==g?(v=(0,$.jsxs)(`div`,{className:m,children:[h,g]}),t[38]=m,t[39]=h,t[40]=g,t[41]=v):v=t[41];let y;return t[42]!==_||t[43]!==v?(y=(0,$.jsxs)($.Fragment,{children:[_,v]}),t[42]=_,t[43]=v,t[44]=y):y=t[44],y}function mV(e){return e.action!==`openDefault`}function hV(e){return e.action===`openDefault`}function gV(e){return e.stopPropagation()}function _V(e){return!e}function vV(e){return e.stopPropagation()}function yV(e){return{action:`openWithApp`,label:e.name,appPath:e.path}}function bV(e){return{name:e.name,path:e.path}}function xV(e){return Array.from(e.dataTransfer.types).includes(`Files`)}function SV(e){let t=e.lastIndexOf(`/`);return t<0?``:e.slice(0,t)}function CV(e){let t=(0,Q.c)(109),{entry:n,depth:r,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l,onFileDragStart:u,onUploadFiles:d,onUploadTargetEnter:f}=e,[p,m]=(0,Z.useState)(!1),[h,g]=(0,Z.useState)(!1),_=a||p,v=i===n.path;if(n.isDirectory){let e=n.path,p=v&&`bg-accent-soft text-accent-fg`,y=h&&`bg-accent-soft text-accent-fg ring-1 ring-inset ring-accent`,b;t[0]!==p||t[1]!==y?(b=q(`flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 pr-2 text-left text-sm`,`hover:bg-surface-hover`,p,y),t[0]=p,t[1]=y,t[2]=b):b=t[2];let x=8+r*12,S;t[3]===x?S=t[4]:(S={paddingLeft:x},t[3]=x,t[4]=S);let C;t[5]!==n.path||t[6]!==s||t[7]!==o||t[8]!==_?(C=()=>{let e=!_;m(e),e&&s?.(n.path),o(n.path,!0)},t[5]=n.path,t[6]=s,t[7]=o,t[8]=_,t[9]=C):C=t[9];let w;t[10]!==d||t[11]!==f?(w=d?e=>{xV(e)&&(e.preventDefault(),e.stopPropagation(),f?.(),g(!0))}:void 0,t[10]=d,t[11]=f,t[12]=w):w=t[12];let E;t[13]===d?E=t[14]:(E=d?e=>{xV(e)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`,g(!0))}:void 0,t[13]=d,t[14]=E);let D;t[15]===d?D=t[16]:(D=d?e=>{e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||g(!1)}:void 0,t[15]=d,t[16]=D);let O;t[17]!==n.path||t[18]!==d?(O=d?e=>{if(!xV(e))return;e.preventDefault(),e.stopPropagation(),g(!1);let t=Array.from(e.dataTransfer.files);t.length&&d(t,n.path)}:void 0,t[17]=n.path,t[18]=d,t[19]=O):O=t[19];let k=_&&`rotate-90`,A;t[20]===k?A=t[21]:(A=q(`size-3.5 shrink-0 transition-transform`,k),t[20]=k,t[21]=A);let j;t[22]===A?j=t[23]:(j=(0,$.jsx)(T,{className:A,"aria-hidden":!0}),t[22]=A,t[23]=j);let M;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(z_,{className:`size-3.5 shrink-0 text-fg-muted`,"aria-hidden":!0}),t[24]=M):M=t[24];let N;t[25]===n.name?N=t[26]:(N=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[25]=n.name,t[26]=N);let P;t[27]!==n.path||t[28]!==D||t[29]!==O||t[30]!==j||t[31]!==N||t[32]!==b||t[33]!==S||t[34]!==C||t[35]!==w||t[36]!==E||t[37]!==_?(P=(0,$.jsxs)(`button`,{type:`button`,"aria-expanded":_,"data-file-drop-directory":e,className:b,style:S,onClick:C,onDragEnter:w,onDragOver:E,onDragLeave:D,onDrop:O,children:[j,M,N]}),t[27]=n.path,t[28]=D,t[29]=O,t[30]=j,t[31]=N,t[32]=b,t[33]=S,t[34]=C,t[35]=w,t[36]=E,t[37]=_,t[38]=P):P=t[38];let F;t[39]!==l||t[40]!==n||t[41]!==c?(F=c&&l?(0,$.jsx)(pV,{entry:n,labels:l,onAction:c}):null,t[39]=l,t[40]=n,t[41]=c,t[42]=F):F=t[42];let I;t[43]!==P||t[44]!==F?(I=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[P,F]}),t[43]=P,t[44]=F,t[45]=I):I=t[45];let L;t[46]!==l||t[47]!==r||t[48]!==n.children||t[49]!==a||t[50]!==c||t[51]!==s||t[52]!==u||t[53]!==o||t[54]!==d||t[55]!==f||t[56]!==i||t[57]!==_?(L=_&&n.children?.length?(0,$.jsx)(`div`,{children:n.children.map(e=>(0,$.jsx)(CV,{entry:e,depth:r+1,selectedPath:i,forceOpen:a,onSelect:o,onExpandDir:s,onAction:c,actionLabels:l,onFileDragStart:u,onUploadFiles:d,onUploadTargetEnter:f},e.path))}):null,t[46]=l,t[47]=r,t[48]=n.children,t[49]=a,t[50]=c,t[51]=s,t[52]=u,t[53]=o,t[54]=d,t[55]=f,t[56]=i,t[57]=_,t[58]=L):L=t[58];let R;return t[59]!==I||t[60]!==L?(R=(0,$.jsxs)(`div`,{className:`select-none`,children:[I,L]}),t[59]=I,t[60]=L,t[61]=R):R=t[61],R}let y=!!u,b=u&&`cursor-grab active:cursor-grabbing`,x=v&&`bg-accent-soft text-accent-fg`,S=h&&`bg-accent-soft text-accent-fg ring-1 ring-inset ring-accent`,C;t[62]!==b||t[63]!==x||t[64]!==S?(C=q(`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`,b,x,S),t[62]=b,t[63]=x,t[64]=S,t[65]=C):C=t[65];let w=8+r*12,E;t[66]===w?E=t[67]:(E={paddingLeft:w},t[66]=w,t[67]=E);let D;t[68]!==n.path||t[69]!==o?(D=()=>o(n.path,!1),t[68]=n.path,t[69]=o,t[70]=D):D=t[70];let O;t[71]!==n||t[72]!==u?(O=u?e=>u(e,n):void 0,t[71]=n,t[72]=u,t[73]=O):O=t[73];let k;t[74]!==d||t[75]!==f?(k=d?e=>{xV(e)&&(e.preventDefault(),e.stopPropagation(),f?.(),g(!0))}:void 0,t[74]=d,t[75]=f,t[76]=k):k=t[76];let A;t[77]===d?A=t[78]:(A=d?e=>{xV(e)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`,g(!0))}:void 0,t[77]=d,t[78]=A);let j;t[79]===d?j=t[80]:(j=d?e=>{e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||g(!1)}:void 0,t[79]=d,t[80]=j);let M;t[81]!==n.path||t[82]!==d?(M=d?e=>{if(!xV(e))return;e.preventDefault(),e.stopPropagation(),g(!1);let t=Array.from(e.dataTransfer.files);t.length&&d(t,SV(n.path))}:void 0,t[81]=n.path,t[82]=d,t[83]=M):M=t[83];let N;t[84]===n.name?N=t[85]:(N=q(`size-3.5 shrink-0`,fV(n.name)),t[84]=n.name,t[85]=N);let P;t[86]===N?P=t[87]:(P=(0,$.jsx)(zg,{className:N,"aria-hidden":!0}),t[86]=N,t[87]=P);let F;t[88]===n.name?F=t[89]:(F=(0,$.jsx)(`span`,{className:`truncate`,children:n.name}),t[88]=n.name,t[89]=F);let I;t[90]!==y||t[91]!==k||t[92]!==A||t[93]!==j||t[94]!==M||t[95]!==P||t[96]!==F||t[97]!==C||t[98]!==E||t[99]!==D||t[100]!==O?(I=(0,$.jsxs)(`button`,{type:`button`,draggable:y,className:C,style:E,onClick:D,onDragStart:O,onDragEnter:k,onDragOver:A,onDragLeave:j,onDrop:M,children:[P,F]}),t[90]=y,t[91]=k,t[92]=A,t[93]=j,t[94]=M,t[95]=P,t[96]=F,t[97]=C,t[98]=E,t[99]=D,t[100]=O,t[101]=I):I=t[101];let L;t[102]!==l||t[103]!==n||t[104]!==c?(L=c&&l?(0,$.jsx)(pV,{entry:n,labels:l,onAction:c}):null,t[102]=l,t[103]=n,t[104]=c,t[105]=L):L=t[105];let R;return t[106]!==I||t[107]!==L?(R=(0,$.jsxs)(`div`,{className:`group flex w-full items-stretch gap-0.5`,children:[I,L]}),t[106]=I,t[107]=L,t[108]=R):R=t[108],R}function wV(e,t){return e.name.toLocaleLowerCase().includes(t)||e.path.toLocaleLowerCase().includes(t)}function TV(e,t){return t?e.flatMap(e=>{let n=e.children?TV(e.children,t):void 0;return wV(e,t)||n?.length?[{...e,children:n}]:[]}):e}function EV(e){let t=(0,Q.c)(42),{tree:n,selectedPath:r,onSelectFile:i,onSelectEntry:a,onExpandDir:o,onAction:s,actionLabels:c,emptyHint:l,searchQuery:u,emptySearchHint:d,onFileDragStart:f,onUploadFiles:p,uploadDropHint:m}=e,[h,g]=(0,Z.useState)(!1),_=u??``,v;t[0]===_?v=t[1]:(v=_.trim().toLocaleLowerCase(),t[0]=_,t[1]=v);let y=v,b;t[2]!==y||t[3]!==n?(b=TV(n,y),t[2]=y,t[3]=n,t[4]=b):b=t[4];let x=b,S;t[5]!==a||t[6]!==i?(S=(e,t)=>{a?.(e,t),t||i(e)},t[5]=a,t[6]=i,t[7]=S):S=t[7];let C=S,w=h&&`bg-accent-soft/60 ring-1 ring-inset ring-accent`,T;t[8]===w?T=t[9]:(T=q(`relative min-h-0 flex-1 overflow-y-auto py-2`,w),t[8]=w,t[9]=T);let E;t[10]===p?E=t[11]:(E=p?e=>{xV(e)&&(e.preventDefault(),g(!0))}:void 0,t[10]=p,t[11]=E);let D;t[12]===p?D=t[13]:(D=p?e=>{xV(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,g(!0))}:void 0,t[12]=p,t[13]=D);let O;t[14]===p?O=t[15]:(O=p?e=>{e.currentTarget.contains(e.relatedTarget)||g(!1)}:void 0,t[14]=p,t[15]=O);let k;t[16]===p?k=t[17]:(k=p?e=>{if(!xV(e))return;e.preventDefault(),g(!1);let t=Array.from(e.dataTransfer.files);t.length&&p(t,``)}:void 0,t[16]=p,t[17]=k);let A;t[18]!==h||t[19]!==m?(A=h&&m?(0,$.jsx)(`div`,{className:`pointer-events-none sticky top-0 z-20 mx-2 mb-1 rounded-md border border-accent bg-surface-panel/95 px-3 py-2 text-center text-xs font-medium text-accent-fg shadow-sm`,children:m}):null,t[18]=h,t[19]=m,t[20]=A):A=t[20];let j;t[21]!==c||t[22]!==l||t[23]!==d||t[24]!==C||t[25]!==y||t[26]!==s||t[27]!==o||t[28]!==f||t[29]!==p||t[30]!==r||t[31]!==n.length||t[32]!==x?(j=n.length?x.length?x.map(e=>(0,$.jsx)(CV,{entry:e,depth:0,selectedPath:r,forceOpen:!!y,onSelect:C,onExpandDir:o,onAction:s,actionLabels:c,onFileDragStart:f,onUploadFiles:p,onUploadTargetEnter:()=>g(!1)},e.path)):(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:d??l}):(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:l}),t[21]=c,t[22]=l,t[23]=d,t[24]=C,t[25]=y,t[26]=s,t[27]=o,t[28]=f,t[29]=p,t[30]=r,t[31]=n.length,t[32]=x,t[33]=j):j=t[33];let M;return t[34]!==k||t[35]!==A||t[36]!==j||t[37]!==T||t[38]!==E||t[39]!==D||t[40]!==O?(M=(0,$.jsxs)(`div`,{className:T,"data-file-drop-directory":``,onDragEnter:E,onDragOver:D,onDragLeave:O,onDrop:k,children:[A,j]}),t[34]=k,t[35]=A,t[36]=j,t[37]=T,t[38]=E,t[39]=D,t[40]=O,t[41]=M):M=t[41],M}async function DV(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:(ht(`warning`,n?.error||t,void 0,{duration:4e3}),!1)}catch{return ht(`warning`,t,void 0,{duration:4e3}),!1}}function OV(e){return e.map(e=>({fileId:e.id,name:e.name,path:e.path,isDirectory:e.isDirectory,children:e.isDirectory?[]:void 0}))}function kV(e,t,n){return e.map(e=>e.path===t?{...e,children:n}:e.isDirectory&&e.children?.length?{...e,children:kV(e.children,t,n)}:e)}function AV(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{conversationId: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([Tee(``,_),Oee(_)]);i(OV(e.entries)),o(OV([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=OV(await ya(e,_));i(n=>kV(n,e,t))}catch{d.current.delete(e)}}},[_]),refreshDirectory:(0,Z.useCallback)(async e=>{let t=OV(await ya(e,_));i(e?n=>kV(n,e,t):t),d.current.add(e)},[_]),reset:(0,Z.useCallback)(()=>{i([]),o(null),u(null),d.current.clear()},[])}}var jV=`application/x-xopc-workspace-file`;function MV(e,t){e.effectAllowed=`copy`,e.setData(jV,JSON.stringify(t))}function NV(e){return!!(e&&Array.from(e.types).includes(`application/x-xopc-workspace-file`))}function PV(e){if(!e)return null;try{let t=JSON.parse(e.getData(jV)),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.conversationId==`string`&&t.conversationId.trim()?{conversationId:t.conversationId.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 FV({resourceId:e,displayName:t,className:n}){let r=kt(Pt(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=sa(),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=>{ht(`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);ht(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)(X,{variant:`ghost`,className:q(`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)(Rv,{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)(Qi,{open:i,onOpenChange:e=>{a(e),e&&g()},children:[(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(X,{variant:`ghost`,className:q(`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)(Rv,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:C?.name??t??r.openLocation}),(0,$.jsx)(jd,{className:`size-3.5 shrink-0`,"aria-hidden":!0})]})}),(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{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)(Rv,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:C.name})]}):null,(0,$.jsx)(`div`,{className:q(C&&`border-t border-edge pt-1`),children:(0,$.jsxs)(`button`,{type:`button`,disabled:u,className:S,onClick:()=>void v(),children:[(0,$.jsx)(Le,{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)(Rv,{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)(Rv,{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)(Rv,{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)(W,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),r.copyPath]})]})]})})]})}var IV=It(e=>({agentId:``,setAgentId:t=>e({agentId:t})})),LV=`xopc-web-workspace-panel-open`,RV=`xopc-web-workspace-panel-width-px`;function zV(){try{return globalThis.localStorage?.getItem(LV)===`1`}catch{return!1}}function BV(e){try{globalThis.localStorage?.setItem(LV,e?`1`:`0`)}catch{}}function VV(e){return Math.min(520,Math.max(200,Math.round(e)))}function HV(){try{let e=globalThis.localStorage?.getItem(RV);if(e==null)return 320;let t=Number.parseInt(e,10);return Number.isFinite(t)?VV(t):320}catch{return 320}}function UV(e){try{globalThis.localStorage?.setItem(RV,String(e))}catch{}}var WV=It((e,t)=>({open:zV(),setOpen:t=>{e(t?{open:t}:{open:t,conversationIdOverride:null}),queueMicrotask(()=>BV(t))},toggleOpen:()=>{t().setOpen(!t().open)},conversationIdOverride:null,openForSession:t=>{e({open:!0,conversationIdOverride:t.trim()||null}),queueMicrotask(()=>BV(!0))},widthPx:HV(),setWidthPx:n=>{let r=VV(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>UV(r)))}})),GV=It(e=>({path:null,line:null,projectId:null,conversationId: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,conversationId:t&&i?.trim()||null})})),KV=(0,Z.memo)(function({elevated:e=!1}){let t=kt(Pt(e=>e.language)),{pathname:n,search:r}=b(),{conversationId:i}=p(),a=n.startsWith(`/chat`)&&i&&i!==`new`?decodeURIComponent(i):null,o=WV(e=>e.open),s=(0,Z.useRef)(o),c=WV(e=>e.setOpen),l=WV(e=>e.conversationIdOverride),u=WV(e=>e.widthPx),d=WV(e=>e.setWidthPx),f=l??a,m=!f&&n.startsWith(`/chat`)?new URLSearchParams(r).get(`projectId`):null,[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(!1),[y,x]=(0,Z.useState)(``),[S,C]=(0,Z.useState)([]),[w,T]=(0,Z.useState)(!1),[E,D]=(0,Z.useState)(null),[O,k]=(0,Z.useState)(null),[A,j]=(0,Z.useState)(null),M=GV(e=>e.path),N=GV(e=>e.setPath),P=IV(e=>e.agentId),{tree:F,rootResource:I,loading:L,error:R,loadRoot:z,loadChildren:B,refreshDirectory:V,reset:H}=AV(P,f,m),U=f?`session:${f}`:m?`project:${m}`:`agent:${P}`,W=(0,Z.useMemo)(()=>m?{projectId:m}:f==null?P.trim()?{agentId:P.trim()}:void 0:{conversationId:f},[f,m,P]),G=y.trim(),ee=sa(),te=(0,Z.useCallback)((e,t)=>{N(null),MV(e.dataTransfer,{name:t.name,path:t.path,...W})},[N,W]),{dialogOpen:ne,loading:K,result:re,error:ie,pendingParams:ae,createShareLink:oe,confirmShareLink:se,handleOpenChange:ce}=he(),le=(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=WV.getState().widthPx,a=e.pointerId,s=0,c=i,l=i,u=()=>{s=0,l=c,n?.style.setProperty(`--workspace-panel-px`,`${l}px`)},f=e=>{c=VV(i+(r-e.clientX)),s===0&&(s=window.requestAnimationFrame(u))},p=()=>{s!==0&&(window.cancelAnimationFrame(s),u());try{t.releasePointerCapture(a)}catch{}g(!1),d(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)},[o,d]);(0,Z.useEffect)(()=>{n.startsWith(`/chat`)||c(!1)},[n,c]),(0,Z.useEffect)(()=>{let e=s.current;if(s.current=o,!o){H(),e&&N(null);return}N(null),z()},[o,U,z,H,N]),(0,Z.useEffect)(()=>{if(!o)return;let e=e=>{if(e.key===`Escape`){if(_){e.preventDefault(),e.stopPropagation(),x(``),v(!1);return}GV.getState().path||c(!1)}};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[_,o,c]),(0,Z.useEffect)(()=>{if(!o||!_||!G){C([]),T(!1),D(null);return}let e=!1;T(!0),D(null),C([]);let t=window.setTimeout(()=>{va(G,W,50).then(t=>{e||C(t)}).catch(t=>{e||D(t instanceof Error?t.message:String(t))}).finally(()=>{e||T(!1)})},180);return()=>{e=!0,window.clearTimeout(t)}},[_,G,o,W]),(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 ue=(0,Z.useCallback)(e=>{B(e)},[B]),de=(0,Z.useCallback)(async(e,n,r)=>{switch(e){case`preview`:if(n.isDirectory)return;N(n.path);break;case`download`:if(n.isDirectory)return;try{let e=dt(n.path);if(_t(xt(e))!==`text`)Dee(e,await(await ga(n.path,W)).arrayBuffer(),si(e)??`application/octet-stream`);else{let{content:t}=await _a(n.path,W);Aee(e,t)}}catch{}break;case`copyPath`:try{await Yr(n.path)&&ht(`success`,t.workspace.pathCopied,void 0,{duration:2500})}catch{}break;case`openDefault`:await DV(()=>window.electronAPI?.shell?.openFileResource?.(n.fileId),t.workspace.openFileFailed);break;case`openWith`:await DV(()=>window.electronAPI?.shell?.chooseAppAndOpenFileResource?.(n.fileId),t.workspace.openFileFailed);break;case`openWithApp`:if(!r)return;await DV(()=>window.electronAPI?.shell?.openFileResourceWithApp?.(n.fileId,r),t.workspace.openFileFailed);break;case`revealInFolder`:await DV(()=>window.electronAPI?.shell?.showFileResourceInFolder?.(n.fileId),t.workspace.revealFileFailed);break;case`trash`:k(n);break;case`delete`:n.isDirectory||j(n);break;case`share`:await oe({path:n.path,...n.isDirectory?{kind:`directory`,directoryMode:`browse`}:{},...W});break;default:break}},[oe,t.workspace.openFileFailed,t.workspace.pathCopied,t.workspace.revealFileFailed,N,W]),fe=(0,Z.useCallback)(async()=>{let e=O;if(!e)return;let n=await window.electronAPI?.shell?.trashFileResource?.(e.fileId);if(!n?.ok){ht(`warning`,n?.error??t.workspace.trashFailed,void 0,{duration:4e3});return}M===e.path&&N(null),k(null),await z(),ht(`success`,t.workspace.trashSuccess,void 0,{duration:2500})},[z,t.workspace.trashFailed,t.workspace.trashSuccess,O,M,N]),pe=(0,Z.useCallback)(async(e,n)=>{try{await Promise.all(e.map(e=>kee(e,n,W))),await V(n).catch(()=>void 0),ht(`success`,t.workspace.uploadSuccess.replace(`{{count}}`,String(e.length)),void 0,{duration:2500})}catch(e){await V(n).catch(()=>void 0),ht(`warning`,`${t.workspace.uploadFailed}: ${e instanceof Error?e.message:String(e)}`,void 0,{duration:4e3})}},[t.workspace.uploadFailed,t.workspace.uploadSuccess,V,W]),me=(0,Z.useCallback)(async()=>{let e=A;if(e)try{await jee(e.fileId),M===e.path&&N(null),j(null);let n=e.path.lastIndexOf(`/`);await V(n<0?``:e.path.slice(0,n)).catch(()=>void 0),ht(`success`,t.workspace.deleteSuccess,void 0,{duration:2500})}catch(e){ht(`warning`,`${t.workspace.deleteFailed}: ${e instanceof Error?e.message:String(e)}`,void 0,{duration:4e3})}},[t.workspace.deleteFailed,t.workspace.deleteSuccess,A,M,V,N]);return(0,$.jsxs)($.Fragment,{children:[o?(0,$.jsx)(`button`,{type:`button`,className:q(`fixed inset-0 bg-scrim md:hidden`,e?`z-[109]`:`z-40`),"aria-label":t.closeMenu,onClick:()=>c(!1)}):null,(0,$.jsx)(`aside`,{id:`app-workspace-panel`,"aria-label":t.workspace.title,"aria-hidden":!o,className:q(`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":`${u}px`}:void 0,children:o?(0,$.jsxs)(`div`,{className:q(`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:le,className:q(`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`,ji)}),(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}),ee?I?(0,$.jsx)(FV,{resourceId:I.fileId,displayName:I.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)(z_,{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)(X,{type:`button`,variant:`ghost`,className:q(`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)(ot,{className:`size-4`,strokeWidth:1.75})}),(0,$.jsx)(dV,{className:`size-9 shrink-0 rounded-md p-0`,loading:L,label:t.cron.refresh,onClick:z}),(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`size-9 shrink-0 rounded-md p-0`,"aria-label":t.workspace.close,title:t.workspace.close,onClick:()=>c(!1),children:(0,$.jsx)(Dt,{className:`size-4`,strokeWidth:1.75})})]})]}),_?(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge bg-surface-inset/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)(ot,{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=>x(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:()=>{x(``),v(!1)},children:(0,$.jsx)(Dt,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})]})}):null,R?(0,$.jsxs)(`p`,{className:`shrink-0 px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:[t.workspace.loadError,`: `,R]}):null,G?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto py-2`,children:w?(0,$.jsxs)(`div`,{className:`space-y-2 px-3 py-1`,children:[(0,$.jsx)(ta,{className:`h-11 w-full`}),(0,$.jsx)(ta,{className:`h-11 w-full`}),(0,$.jsx)(ta,{className:`h-11 w-full`})]}):E?(0,$.jsxs)(`p`,{className:`px-3 py-2 text-xs text-red-600 dark:text-red-400`,children:[t.workspace.loadError,`: `,E]}):S.length===0?(0,$.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:t.workspace.noSearchResults}):S.map(e=>(0,$.jsxs)(`button`,{type:`button`,draggable:!0,className:q(`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`,M===e.path&&`bg-accent-soft text-accent-fg`),onClick:()=>N(e.path),onDragStart:t=>te(t,e),title:e.path,children:[(0,$.jsx)(zg,{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)(EV,{tree:F,selectedPath:M,onSelectFile:e=>N(e),onExpandDir:ue,onAction:de,onFileDragStart:te,onUploadFiles:(e,t)=>void pe(e,t),uploadDropHint:t.workspace.dropToUpload,actionLabels:{preview:t.workspace.preview,download:t.workspace.download,copyPath:t.workspace.copyPath,share:t.workspace.shareLink,delete:t.workspace.deleteFile,...ee?{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)(wt,{open:ne,onOpenChange:ce,loading:K,error:ie,result:re,pendingParams:ae,onConfirm:e=>void se(e)}),(0,$.jsx)(sV,{open:!!O,title:t.workspace.trashConfirmTitle,description:t.workspace.trashConfirmDescription.replace(`{{name}}`,O?.name??``),confirmLabel:t.workspace.moveToTrash,cancelLabel:t.workspace.cancel,destructive:!0,onConfirm:()=>void fe(),onCancel:()=>k(null)}),(0,$.jsx)(sV,{open:!!A,title:t.workspace.deleteConfirmTitle,description:t.workspace.deleteConfirmDescription.replace(`{{name}}`,A?.name??``),confirmLabel:t.workspace.deleteFile,cancelLabel:t.workspace.cancel,destructive:!0,onConfirm:()=>void me(),onCancel:()=>j(null)})]})}),qV=RegExp(`^\\/skill:(${ma})`),JV=[],YV=new Map;function XV(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)}JV=Array.from(t).toSorted((e,t)=>t.length-e.length).map(e=>({key:e})),YV.clear()}function ZV(e,t){if(t>=e.length)return!0;let n=e[t];return!/[a-zA-Z0-9_-]/.test(n)}function QV(e,t){return!(e[t]!==`/`||t>0&&!/\s/.test(e[t-1]))}function $V(e,t){if(!QV(e,t)||JV.length===0)return null;let n=e.slice(t);if(n.startsWith(`/skill:`))return null;for(let{key:e}of JV){let t=`/${e}`;if(n.startsWith(t)&&ZV(n,t.length))return{len:t.length,matchedKey:e}}return null}function eH(e){let t=[],n=0;for(;n<e.length;){if(e[n]!==`/`){n+=1;continue}let r=e.slice(n).match(qV);if(r?.[0]){n+=r[0].length;continue}let i=$V(e,n);i?(t.push({start:n,end:n+i.len}),n+=i.len):n+=1}return t}function tH(e){for(let t=e.length-1;t>=0;--t){if(e[t]!==`/`||e.startsWith(`/skill:`,t))continue;let n=$V(e,t);if(n&&t+n.len===e.length)return!0}return!1}function nH(e){if(!e.startsWith(`/`)||JV.length===0||e.startsWith(`/skill:`))return!1;let t=$V(e,0);return t?e.length===t.len||!/[a-zA-Z0-9_-]/.test(e[t.len]):!1}function rH(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function iH(e){let t=YV.get(e);return t||(t=RegExp(`(${rH(e)})([ \\t\\f\\v]*)$`),YV.set(e,t)),t}function aH(e){for(let{key:t}of JV){let n=`/${t}`;if(!e.endsWith(n))continue;let r=e.length-n.length;if($V(e,r))return{tokenStart:r}}return null}function oH(e){for(let{key:t}of JV){let n=`/${t}`,r=e.match(iH(n));if(!r)continue;let i=e.length-r[0].length;if($V(e,i))return{tokenStart:i}}return null}var sH=``,cH=``,lH=RegExp(`^\\/skill:(${ma})`);function uH(e){return!!e.dataset.skill}function dH(e){return!!e.dataset.contextRefId}function fH(e){return e.dataset.slashCommand!=null&&e.dataset.slashCommand!==``}var pH=new WeakMap;function mH(e){let t=Mr(),n,r=-1;for(;(n=t.exec(e))!==null;)r=n.index+n[0].length;return r===e.length}function hH(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=mH(t)||/\/skill:\S+$/.test(t)||tH(t),r=n.startsWith(`@xopc-ref:`)||n.startsWith(`/skill:`)||nH(n);(e||r)&&(t+=` `)}}t+=n}return t}function gH(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;let t=e.tagName;return t===`DIV`||t===`P`||t===`PRE`||t===`BLOCKQUOTE`}function _H(e,t){if(e.nodeType===Node.TEXT_NODE)t.push((e.textContent??``).replaceAll(sH,``));else if(e.nodeType===Node.ELEMENT_NODE){let n=e;if(uH(n)){let e=n.dataset.skill??``;e&&t.push(`/skill:${e}`)}else if(dH(n)){let e=n.dataset.contextRefId??``;e&&t.push(Er(e))}else if(fH(n)){let e=n.dataset.slashCommand??``;e&&t.push(`/${e}`)}else n.tagName===`BR`?t.push(`
|
|
7
|
+
`):vH(n,t)}}function vH(e,t){let n=Array.from(e.childNodes);for(let e=0;e<n.length;e++){let r=n[e],i=n[e+1];_H(r,t),i!=null&&(gH(r)||gH(i))&&t.push(`
|
|
8
|
+
`)}}function yH(e,t){vH(e,t)}function bH(e){let t=[];return yH(e,t),hH(t).replaceAll(cH,``)}function xH(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 SH(e){let t=bH(e);return t.length>0||e.childNodes.length===0?t:(LH(e,``),xH(e),``)}function CH(e){let t=new Set,n=pa(),r;for(;(r=n.exec(e))!==null;){let e=r[1];e&&t.add(e)}return t}function wH(e){let t=window.getSelection();if(!t||t.rangeCount===0)return bH(e).length;let n=t.getRangeAt(0);if(!e.contains(n.startContainer))return bH(e).length;let r=document.createRange();r.selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset);let i=document.createElement(`div`);return i.appendChild(r.cloneContents()),bH(i).length}var TH=new WeakMap;function EH(e,t){TH.set(e,t);for(let n of e.querySelectorAll(`[data-skill]`)){let e=`/${t(n.dataset.skill??``)}`;n.textContent!==e&&(n.textContent=e),n.title=`/${n.dataset.skill}`}}function DH(e,t){pH.set(e,t);for(let n of e.querySelectorAll(`[data-context-ref-id]`)){let e=t(n.dataset.contextRefId??``);n.textContent=e?`@${e.title}`:`@reference`,n.title=e?.title??``,n.dataset.refKind=e?.kind??``,n.dataset.fileKind=e?.fileKind??``}}function OH(e,t){let n=document.createElement(`span`);n.contentEditable=`false`,n.dataset.skill=t,n.className=`chat-skill-pill`,n.textContent=`/${TH.get(e)?.(t)??t}`,n.title=`/${t}`,e.appendChild(n),e.appendChild(document.createTextNode(sH))}function kH(e,t){let n=pH.get(e)?.(t),r=document.createElement(`span`);r.contentEditable=`false`,r.dataset.contextRefId=t,r.dataset.refKind=n?.kind??``,r.dataset.fileKind=n?.fileKind??``,r.className=`chat-context-ref-pill`,r.textContent=n?`@${n.title}`:`@reference`,r.title=n?.title??``,e.appendChild(r),e.appendChild(document.createTextNode(sH))}function AH(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(sH))}function jH(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(pa()),n(Mr());for(let n of eH(e))t.push(n);return t.sort((e,t)=>e.start-t.start),t}function MH(e,t){for(let{start:n,end:r}of jH(e))if(t>n&&t<=r)return{wire:e.slice(0,n)+e.slice(r),caret:n};return null}function NH(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=[wee];for(let e of i){let t=r(e);if(t)return t}let a=aH(n);if(a){let n=a.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}if(t===e.length){let r=[Cee];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=oH(n);if(i){let n=i.tokenStart;return{wire:e.slice(0,n)+e.slice(t),caret:n}}}return null}function PH(e){let t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return!1;let n=t.getRangeAt(0),r=bH(e),i=wH(e);i===0&&r.length>0&&n.startContainer===e&&n.startOffset===e.childNodes.length&&(i=r.length);let a=MH(r,i);return a||=NH(r,i),a?(LH(e,a.wire,a.caret),e.dispatchEvent(new InputEvent(`input`,{bubbles:!0})),!0):!1}function FH(e,t){let n=e.slice(t);return lH.test(n)||Mr().exec(n)?.index===0?!0:$V(e,t)!=null}function IH(e,t,n){let r=t.slice(n),i=[],a=r.match(lH);a?.[0]&&i.push({len:a[0].length,apply:()=>OH(e,a[1]??``)});let o=Mr().exec(r);o?.index===0&&o[0]&&i.push({len:o[0].length,apply:()=>kH(e,o[1]??``)});let s=$V(t,n);if(s&&i.push({len:s.len,apply:()=>AH(e,s.matchedKey)}),i.length===0){let r=n+1;for(;r<t.length&&!FH(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 LH(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)+cH+t.slice(e)}let i=0;for(;i<r.length;)i=IH(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]===cH){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 RH(e,t){for(let n of e)if(n.isActive()&&n.handleKey(t))return!0;return!1}function zH(e){return`${e.name}\0${e.size}`}function BH(e){if(!e)return[];let t=new Set,n=[],r=e=>{if(!e||e.size===0)return;let r=zH(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 VH=8*1024,HH=80,UH=2*1024,WH=20;function GH(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 KH(e){let t=new TextEncoder().encode(e).byteLength,n=e.split(/\r\n|\n|\r/).length,r=GH(e);return t>=VH||n>=HH||r!==`text`&&(t>=UH||n>=WH)?{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 qH(e){if(!e)return null;let t=BH(e);if(t.length>0)return{kind:`files`,files:t};let n=e.getData(`text/plain`);if(!n)return null;let r=KH(n);return r?{kind:`text-attachment`,attachment:r}:{kind:`inline-text`,text:n}}async function JH(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)}}var YH=`fill-chat-composer`;function XH(e,t,n){window.dispatchEvent(new CustomEvent(YH,{detail:{text:e,attachments:t,contextRefs:n}}))}function ZH(e,t){let n=t.toLowerCase().startsWith(`zh`)?`zh-CN`:`en`,r=e.localizations?.[n]??e.localizations?.en,i=r?.displayName.trim()||e.name,a=r?.description.trim()||e.description,o=new Set([e.name]),s=new Set([e.description]);for(let t of Object.values(e.localizations??{}))t?.displayName.trim()&&o.add(t.displayName.trim()),t?.description.trim()&&s.add(t.description.trim());return o.delete(i),s.delete(a),{displayName:i,description:a,aliases:[...o],searchTerms:[...s]}}async function QH(){let e=await Mt(Y(`/api/skills`),{cache:`no-store`});if(!e.ok)throw Error(await Vee(e));let t=await e.json();if(!t.payload)throw Error(`Invalid response`);return t.payload}async function $H(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 eU(){let e=await Mt(Y(`/api/commands`));if(!e.ok)throw Error(await $H(e));return(await e.json()).payload?.commands??[]}var tU=6e4,nU=null,rU=0,iU=null,aU=null,oU=0,sU=null,cU=0,lU=new Map,uU=new Map,dU=0;function fU(e,t){let n=At.getState();return`${e?.trim()||`main`}\u0000${JSON.stringify([n.baseUrl,n.conversationId,t?.trim()||``])}`}async function pU(e=!1){return!e&&nU&&Date.now()<rU?(XV(nU),nU):iU||(iU=eU().then(e=>(nU=e,rU=Date.now()+tU,XV(e),e)).catch(e=>{throw XV([]),e}).finally(()=>{iU=null}),iU)}async function mU(e,t,n=!1){let r=At.getState().conversationId,i=t?await Hr(t):void 0;if(r!==At.getState().conversationId)throw Error(`Active Gateway changed`);i&&(e=i.creation.agentId,t=void 0);let a=fU(e,t),o=Date.now(),s=lU.get(a);if(!n&&s&&o<s.expiry)return s.payload;let c=uU.get(a);if(c)return c;let l=dU,u=new URLSearchParams({agentId:e?.trim()||`main`});t?.trim()&&u.set(`conversationId`,t.trim());let d=Mt(Y(`/api/chat/skills?${u.toString()}`)).then(async e=>{if(!e.ok)throw Error(await $H(e));let t=await e.json();if(!t.payload||!Array.isArray(t.payload.skills))throw Error(`Invalid /api/chat/skills response`);return l===dU&&lU.set(a,{payload:t.payload,expiry:Date.now()+tU}),t.payload}).finally(()=>{uU.delete(a)});return uU.set(a,d),d}async function hU(e,t,n){let r=e?.trim()||`main`,i=await mU(r,n,!0),a=new Set(i.effectiveAllowlist??i.agentAllowlist??[]);a.add(t);let o=await Mt(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 $H(o));gU(r)}function gU(e){if(dU+=1,e){let t=`${e.trim()}\u0000`;for(let e of lU.keys())e.startsWith(t)&&lU.delete(e);for(let e of uU.keys())e.startsWith(t)&&uU.delete(e);return}lU.clear(),uU.clear()}async function _U(e){let t=await Mt(Y(`/api/chat/workspace-trust?${new URLSearchParams({conversationId:e}).toString()}`));if(!t.ok)throw Error(await $H(t));let n=await t.json();if(!n.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return n.payload}async function vU(e,t){let n=await Mt(Y(`/api/chat/workspace-trust`),{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({conversationId:e,trusted:t})});if(!n.ok)throw Error(await $H(n));let r=await n.json();if(!r.payload)throw Error(`Invalid /api/chat/workspace-trust response`);return yU(),r.payload}function yU(e){gU(e),e||(cU+=1,aU=null,oU=0,sU=null)}async function bU(e=!1){if(!e&&aU&&Date.now()<oU)return aU;if(sU)return sU;let t=cU;return sU=QH().then(e=>(t===cU&&(aU=e,oU=Date.now()+tU),e)).finally(()=>{sU=null}),sU}function xU(e,t,n){let r=(0,Q.c)(20),i=n===void 0?!0:n,a=Pt(wU),o=At(CU),s=At(SU),c;r[0]!==e||r[1]!==s||r[2]!==t||r[3]!==i||r[4]!==o?(c=i&&o?[`chat-skill-labels`,s,o,e??`main`,t??``]:null,r[0]=e,r[1]=s,r[2]=t,r[3]=i,r[4]=o,r[5]=c):c=r[5];let l;r[6]!==e||r[7]!==t?(l=()=>mU(e,t),r[6]=e,r[7]=t,r[8]=l):l=r[8];let u;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(u={revalidateOnFocus:!1,shouldRetryOnError:!1},r[9]=u):u=r[9];let{data:d,mutate:f}=Xr(c,l,u),p,m;r[10]!==i||r[11]!==o||r[12]!==f?(p=()=>{if(!i||!o)return;let e=e=>{let t=e.detail?.section;(t===`skills`||t===`agents`)&&f()};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},m=[i,o,f],r[10]=i,r[11]=o,r[12]=f,r[13]=p,r[14]=m):(p=r[13],m=r[14]),(0,Z.useEffect)(p,m);let h;r[15]!==d?.skills||r[16]!==a?(h=new Map(d?.skills.map(e=>[e.name,ZH(e,a).displayName])),r[15]=d?.skills,r[16]=a,r[17]=h):h=r[17];let g=h,_;return r[18]===g?_=r[19]:(_=e=>g.get(e)??e,r[18]=g,r[19]=_),_}function SU(e){return e.baseUrl}function CU(e){return e.conversationId}function wU(e){return e.language}function TU(e,t){e.classList.toggle(`composer-input-empty`,t.length===0)}function EU(e){let{disabled:t,initialValue:n=``,onValueChange:r,autoFocusKey:i,welcomeDraftSeed:a,onExternalTextReplace:o,shouldSyncSelectionRef:s,resolveContextRef:c}=e,l=xU(e.agentId,e.conversationId),[u,d]=(0,Z.useState)(n),[f,p]=(0,Z.useState)(n.length),[m,h]=(0,Z.useState)(!1),g=(0,Z.useRef)(null),_=(0,Z.useRef)(u),v=(0,Z.useRef)(f),y=(0,Z.useRef)(null),b=(0,Z.useRef)(0),x=(0,Z.useRef)(r),S=(0,Z.useRef)(!0),C=(0,Z.useRef)(null),w=(0,Z.useRef)(!1);_.current=u,v.current=f,x.current=r;let T=(0,Z.useCallback)(()=>{let e=g.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,128)}px`)},[]);(0,Z.useLayoutEffect)(()=>{let e=g.current;!e||m||(EH(e,l),c&&DH(e,c),T())},[l,c,m,T]),(0,Z.useLayoutEffect)(()=>{if(w.current)return;let e=g.current;e&&(w.current=!0,c&&DH(e,c),LH(e,n,n.length),TU(e,n),T())},[T,n,c]);let E=(0,Z.useCallback)(()=>{let e=g.current;if(!e)return;e.focus({preventScroll:!0});let t=window.getSelection(),n=y.current;if(t&&n?.startContainer.isConnected&&n.endContainer.isConnected&&e.contains(n.startContainer)&&e.contains(n.endContainer)){t.removeAllRanges(),t.addRange(n);return}LH(e,_.current,v.current)},[]),D=(0,Z.useCallback)(e=>{let t=e?.nextText??``,n=e?.caretOffset??t.length;d(t),x.current?.(t),_.current=t,p(n),v.current=n,y.current=null;let r=g.current;r&&(LH(r,t,n),TU(r,t),e?.focus&&r.focus({preventScroll:!0})),T()},[T]);(0,Z.useEffect)(()=>{T()},[u,T]);let O=(0,Z.useRef)(a?.id??0);return a&&a.id!==O.current&&(O.current=a.id,b.current=a.id,o?.(),D({nextText:a.text,focus:typeof globalThis.matchMedia==`function`&&globalThis.matchMedia(`(hover: hover) and (pointer: fine)`).matches})),(0,Z.useLayoutEffect)(()=>{if(t){S.current=!0;return}let e=i??null,n=S.current,r=e!=null&&e!==C.current;if(!n&&!r)return;S.current=!1,e!=null&&(C.current=e);let a=requestAnimationFrame(()=>{typeof globalThis.matchMedia==`function`&&globalThis.matchMedia(`(hover: hover) and (pointer: fine)`).matches&&g.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(a)},[t,i]),(0,Z.useEffect)(()=>{let e=g.current;if(!e)return;let t=!1,n=null,r=!1,i=-1,a=()=>{let t=window.getSelection();if(!t?.rangeCount||!e.contains(t.anchorNode)||!e.contains(t.focusNode))return null;let n=wH(e);return v.current=n,y.current=t.getRangeAt(0).cloneRange(),n},o=()=>{if(n=null,r=!1,document.activeElement!==e)return;let t=a();t!==null&&t!==i&&(i=t,s.current&&p(t))},c=()=>{t&&(r||(r=!0,n=requestAnimationFrame(o)))},l=()=>{t||(t=!0,document.addEventListener(`selectionchange`,c),c())},u=()=>{t&&(t=!1,document.removeEventListener(`selectionchange`,c),n!=null&&cancelAnimationFrame(n),n=null,r=!1)},d=()=>l(),f=()=>{a(),u()};return e.addEventListener(`focus`,d),e.addEventListener(`blur`,f),document.activeElement===e&&l(),()=>{e.removeEventListener(`focus`,d),e.removeEventListener(`blur`,f),u()}},[s]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;typeof t?.text==`string`&&(o?.(t),D({nextText:t.text,focus:!0}))};return window.addEventListener(YH,e),()=>window.removeEventListener(YH,e)},[o,D]),{value:u,cursor:f,isComposing:m,setIsComposing:h,editorRef:g,valueRef:_,adjustHeight:T,focusForExternalPaste:E,resetEditor:D,onWireInput:(0,Z.useCallback)((e,t)=>{_.current=e,v.current=t,d(e),x.current?.(e),p(t)},[])}}var DU=(0,Z.memo)(function(e){let t=(0,Q.c)(35),{editorRef:n,disabled:r,hidden:i,compact:a,placeholder:o,ariaLabel:s,onWireInput:c,adjustHeight:l,processFiles:u,processPastedText:d,setIsComposing:f,kbdRef:p,chatMessages:m}=e,h=a===void 0?!1:a,g=(0,Z.useRef)(!1),_,v;t[0]!==r||t[1]!==n?(_=()=>{let e=n.current;if(!e||r)return;let t=t=>{t.inputType!==`deleteContentBackward`||!t.cancelable||t.isComposing||g.current||PH(e)&&t.preventDefault()};return e.addEventListener(`beforeinput`,t),()=>e.removeEventListener(`beforeinput`,t)},v=[r,n],t[0]=r,t[1]=n,t[2]=_,t[3]=v):(_=t[2],v=t[3]),(0,Z.useEffect)(_,v);let y=s??o,b=!r,x=h?`max-h-32 min-h-10 py-2`:`max-h-24 min-h-12 py-1.5 sm:max-h-32 sm:min-h-16 sm:py-2`,S;t[4]===x?S=t[5]:(S=q(`composer-input box-border m-0 w-full overflow-y-auto border-0 bg-transparent px-0 text-[0.9375rem] leading-6 text-fg focus:outline-none focus:ring-0 disabled:opacity-50`,x,`composer-input-empty`),t[4]=x,t[5]=S);let C;t[6]!==l||t[7]!==c?(C=e=>{let t=e.currentTarget,n=g.current?bH(t):SH(t);TU(t,n),c(n,wH(t)),l()},t[6]=l,t[7]=c,t[8]=C):C=t[8];let w;t[9]===f?w=t[10]:(w=()=>{g.current=!0,f(!0)},t[9]=f,t[10]=w);let T;t[11]!==l||t[12]!==n||t[13]!==c||t[14]!==f?(T=()=>{g.current=!1,f(!1),queueMicrotask(()=>{let e=n.current;if(!e||g.current)return;let t=SH(e);TU(e,t),c(t,wH(e)),l()})},t[11]=l,t[12]=n,t[13]=c,t[14]=f,t[15]=T):T=t[15];let E;t[16]!==m||t[17]!==u||t[18]!==d?(E=async e=>{let t=qH(e.clipboardData);t&&(e.preventDefault(),await JH(t,{processFiles:u,processPastedText:d,insertText:OU,onUnsupportedFiles:()=>ht(`warning`,m.clipboardFileTypeUnsupported)}))},t[16]=m,t[17]=u,t[18]=d,t[19]=E):E=t[19];let D;t[20]!==n||t[21]!==p?(D=e=>{let t=p.current;if(e.key===`Backspace`&&!t.isComposing&&!g.current&&!e.nativeEvent.isComposing&&n.current&&PH(n.current)){e.preventDefault();return}if(RH(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,`
|
|
9
|
+
`);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||t.contextRefsLen>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[20]=n,t[21]=p,t[22]=D):D=t[22];let O;return t[23]!==n||t[24]!==i||t[25]!==o||t[26]!==T||t[27]!==E||t[28]!==D||t[29]!==y||t[30]!==b||t[31]!==S||t[32]!==C||t[33]!==w?(O=(0,$.jsx)(`div`,{ref:n,hidden:i,role:`textbox`,"aria-multiline":`true`,"aria-label":y,contentEditable:b,suppressContentEditableWarning:!0,spellCheck:!0,className:S,"data-placeholder":o,onInput:C,onCompositionStart:w,onCompositionEnd:T,onPaste:E,onKeyDown:D}),t[23]=n,t[24]=i,t[25]=o,t[26]=T,t[27]=E,t[28]=D,t[29]=y,t[30]=b,t[31]=S,t[32]=C,t[33]=w,t[34]=O):O=t[34],O});function OU(e){return document.execCommand(`insertText`,!1,e)}function kU(e){let t=(0,Q.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({children:n,dragging:a,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=(a===void 0?!1:a)&&`ring-2 ring-accent ring-inset`,s;t[5]!==r||t[6]!==o?(s=q(`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`,o,r),t[5]=r,t[6]=o,t[7]=s):s=t[7];let c;return t[8]!==n||t[9]!==i||t[10]!==s?(c=(0,$.jsx)(`div`,{className:s,...i,children:n}),t[8]=n,t[9]=i,t[10]=s,t[11]=c):c=t[11],c}function AU(e,t){return e.displayNames?.[t.toLowerCase().startsWith(`zh`)?`zh-CN`:`en`]||e.name}function jU(e,t,n){if(t===`computer-use`)return e.filter(e=>!!e.computerUse);let r=e=>e.computerUse?.profile!==void 0&&e.computerUse.profile!==`openai-responses-computer-v1`;if(t!==`vision`)return e.filter(e=>!r(e)||e.id===n);let i=e.filter(e=>e.vision===!0&&!r(e));if(!n||i.some(e=>e.id===n))return i;let a=e.find(e=>e.id===n);if(a)return[a,...i];let o=n.indexOf(`/`),s=o>=0?n.slice(0,o):``;return[{id:n,name:(o>=0?n.slice(o+1):n)||n,provider:s||`—`,vision:!1},...i]}function MU(e){return`${e.id} ${e.name} ${Object.values(e.displayNames??{}).join(` `)} ${e.provider}`.toLowerCase()}var NU=[];function PU(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=n.split(/\s+/).filter(Boolean);return e.filter(e=>{let t=MU(e);return r.every(e=>t.includes(e))})}function FU(e){let t=(0,Q.c)(99),{value:n,disabled:r,placeholder:i,searchPlaceholder:a,noMatches:o,models:s,modelsLoading:c,modelsError:u,capabilitiesFilter:d,outOfFilterNote:f,registryEmptyHint:p,allowEmpty:m,emptyLabel:h,compact:g,showProviderInTrigger:_,contentSide:v,contentAlign:y,className:b,popoverContentClassName:x,showProviderSettingsFooter:S,settingsFooterLink:C,ariaLabel:T,onChange:k}=e,j=m===void 0?!1:m,M=_===void 0?!0:_,N=v===void 0?`bottom`:v,P=y===void 0?`end`:y,F=l(),L=Pt(LU),R;t[0]===L?R=t[1]:(R=kt(L),t[0]=L,t[1]=R);let z=R.chat,[B,V]=(0,Z.useState)(!1),[H,U]=(0,Z.useState)(``),[W,G]=(0,Z.useState)(null),ee=A(),te=D(W),ne=I(ee,te!==null),K;t[2]!==z||t[3]!==C||t[4]!==S?(K=C??(S?{label:z.modelProviderSettingsLink,path:`/settings/capabilities/models`}:void 0),t[2]=z,t[3]=C,t[4]=S,t[5]=K):K=t[5];let re=K,ie;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ie={revalidateOnFocus:!1},t[6]=ie):ie=t[6];let ae=Xr(s?null:Di,Ti,ie),oe=s??ae.data??NU,se=s?!!c:ae.isLoading,ce=s?u:ae.error,le;t[7]===n?le=t[8]:(le=n.trim(),t[7]=n,t[8]=le);let ue=le,de;t[9]!==d||t[10]!==oe||t[11]!==ue?(de=jU(oe,d,ue),t[9]=d,t[10]=oe,t[11]=ue,t[12]=de):de=t[12];let fe=de,pe=d===`computer-use`||fe.length>10,me=pe?H:``,he;t[13]!==fe||t[14]!==me?(he=PU(fe,me),t[13]=fe,t[14]=me,t[15]=he):he=t[15];let ge=he,_e;t[16]!==oe||t[17]!==fe||t[18]!==n?(_e=oe.find(e=>e.id===n)??fe.find(e=>e.id===n),t[16]=oe,t[17]=fe,t[18]=n,t[19]=_e):_e=t[19];let ve=_e,ye;t[20]!==L||t[21]!==i||t[22]!==ve||t[23]!==M||t[24]!==n?(ye=ve?M?`${AU(ve,L)} (${ve.provider})`:AU(ve,L):n||i,t[20]=L,t[21]=i,t[22]=ve,t[23]=M,t[24]=n,t[25]=ye):ye=t[25];let be=ye,xe=!ce&&!!d&&fe.length===0,Se=Xi,Ce=r||se,we;t[26]!==L||t[27]!==i||t[28]!==ve?(we=ve?`${AU(ve,L)} (${ve.provider})`:i,t[26]=L,t[27]=i,t[28]=ve,t[29]=we):we=t[29];let Te=g&&`py-1.5 text-[13px]`,Ee;t[30]!==b||t[31]!==Te?(Ee=q(Fi,`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`,$r.transition,`hover:border-edge hover:bg-surface-hover/45`,Pi,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,Te,b),t[30]=b,t[31]=Te,t[32]=Ee):Ee=t[32];let De=se?`…`:be,Oe;t[33]===De?Oe=t[34]:(Oe=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:De}),t[33]=De,t[34]=Oe);let ke;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,$.jsx)(O,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[35]=ke):ke=t[35];let Ae;t[36]!==T||t[37]!==Ce||t[38]!==we||t[39]!==Ee||t[40]!==Oe?(Ae=(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{ref:G,type:`button`,"aria-label":T,disabled:Ce,title:we,className:Ee,children:[Oe,ke]})}),t[36]=T,t[37]=Ce,t[38]=we,t[39]=Ee,t[40]=Oe,t[41]=Ae):Ae=t[41];let je=Xi,Me=te??void 0,Ne=Xi,Pe=q(ne,E,`w-[min(22rem,calc(100vw-2rem))] rounded-xl border border-edge-subtle bg-surface-panel p-1 shadow-elevated dark:border-edge-subtle`,x),Fe;t[42]!==H||t[43]!==a||t[44]!==pe?(Fe=pe?(0,$.jsx)(`input`,{type:`search`,"aria-label":a,className:q(`mb-1 w-full shrink-0 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`,Li),placeholder:a,value:H,onChange:e=>U(e.target.value)}):null,t[42]=H,t[43]=a,t[44]=pe,t[45]=Fe):Fe=t[45];let Ie;t[46]!==j||t[47]!==h||t[48]!==k||t[49]!==i||t[50]!==ue?(Ie=j?(0,$.jsxs)(`button`,{type:`button`,className:q(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-fg hover:bg-surface-hover`,ue===``&&`bg-surface-hover/90 font-medium dark:bg-surface-hover/70`),onClick:()=>{k(``),V(!1),U(``)},children:[(0,$.jsx)(w,{className:q(`size-4 shrink-0`,ue!==``&&`invisible`),"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-fg-muted`,children:h??i})]}):null,t[46]=j,t[47]=h,t[48]=k,t[49]=i,t[50]=ue,t[51]=Ie):Ie=t[51];let Le;t[52]===ce?Le=t[53]:(Le=ce?(0,$.jsx)(`div`,{className:`p-2 text-xs text-red-600 dark:text-red-400`,children:ce instanceof Error?ce.message:`Failed to load models`}):null,t[52]=ce,t[53]=Le);let Re;t[54]!==ce||t[55]!==o||t[56]!==p||t[57]!==xe?(Re=!ce&&xe?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:p??o}):null,t[54]=ce,t[55]=o,t[56]=p,t[57]=xe,t[58]=Re):Re=t[58];let ze;t[59]!==ce||t[60]!==ge||t[61]!==o||t[62]!==xe?(ze=!ce&&!xe&&ge.length===0?(0,$.jsx)(`div`,{className:`px-2 py-3 text-center text-xs text-fg-muted`,children:o}):null,t[59]=ce,t[60]=ge,t[61]=o,t[62]=xe,t[63]=ze):ze=t[63];let Be=d===`vision`?f:void 0,Ve;t[64]===k?Ve=t[65]:(Ve=e=>{k(e),V(!1),U(``)},t[64]=k,t[65]=Ve);let He;t[66]!==ge||t[67]!==o||t[68]!==a||t[69]!==Be||t[70]!==Ve||t[71]!==n?(He=(0,$.jsx)(RU,{models:ge,value:n,searchPlaceholder:a,noMatches:o,showSearch:!1,outOfFilterNote:Be,onChange:Ve}),t[66]=ge,t[67]=o,t[68]=a,t[69]=Be,t[70]=Ve,t[71]=n,t[72]=He):He=t[72];let Ue;t[73]!==Ie||t[74]!==Le||t[75]!==Re||t[76]!==ze||t[77]!==He?(Ue=(0,$.jsxs)(`div`,{className:`flex min-h-0 max-h-60 flex-1 flex-col overflow-hidden`,children:[Ie,Le,Re,ze,He]}),t[73]=Ie,t[74]=Le,t[75]=Re,t[76]=ze,t[77]=He,t[78]=Ue):Ue=t[78];let We;t[79]!==re||t[80]!==F?(We=re?(0,$.jsx)(`div`,{className:`mt-1 shrink-0 border-t border-edge-subtle pt-1`,children:(0,$.jsxs)(`button`,{type:`button`,className:q(`flex w-full items-center gap-2 rounded-md p-2 text-left text-sm font-medium text-accent`,$r.transition,`hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`),onClick:()=>{F(re.path),V(!1),U(``)},children:[(0,$.jsx)(st,{className:`size-4 shrink-0 opacity-90`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0`,children:re.label})]})}):null,t[79]=re,t[80]=F,t[81]=We):We=t[81];let Ge;t[82]!==P||t[83]!==N||t[84]!==Ne.Content||t[85]!==Pe||t[86]!==Fe||t[87]!==Ue||t[88]!==We?(Ge=(0,$.jsxs)(Ne.Content,{className:Pe,side:N,sideOffset:4,align:P,collisionPadding:8,onOpenAutoFocus:IU,children:[Fe,Ue,We]}),t[82]=P,t[83]=N,t[84]=Ne.Content,t[85]=Pe,t[86]=Fe,t[87]=Ue,t[88]=We,t[89]=Ge):Ge=t[89];let Ke;t[90]!==je.Portal||t[91]!==Me||t[92]!==Ge?(Ke=(0,$.jsx)(je.Portal,{container:Me,children:Ge}),t[90]=je.Portal,t[91]=Me,t[92]=Ge,t[93]=Ke):Ke=t[93];let qe;return t[94]!==B||t[95]!==Se.Root||t[96]!==Ae||t[97]!==Ke?(qe=(0,$.jsxs)(Se.Root,{open:B,onOpenChange:V,children:[Ae,Ke]}),t[94]=B,t[95]=Se.Root,t[96]=Ae,t[97]=Ke,t[98]=qe):qe=t[98],qe}function IU(e){return e.preventDefault()}function LU(e){return e.language}function RU({models:e,value:t,onChange:n,searchPlaceholder:r,noMatches:i,disabled:a,showSearch:o=e.length>10,outOfFilterNote:s}){let c=Pt(e=>e.language),[l,u]=(0,Z.useState)(``),d=PU(e,o?l:``);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:l,onChange:e=>u(e.target.value),className:q(`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`,{"data-select-scroll-region":!0,className:M,children:[d.length===0&&(0,$.jsx)(`p`,{className:`px-3 py-4 text-sm text-fg-muted`,children:i}),d.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:q(`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`,$r.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:AU(r,c)}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,children:r.provider}),r.computerUse&&(0,$.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:`Computer Use`}),s&&!r.vision&&r.id===t&&(0,$.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:s})]}),(0,$.jsx)(w,{className:q(`size-4 shrink-0 text-accent-fg`,r.id!==t&&`invisible`),"aria-hidden":!0})]},r.id))]})]})}function zU({chat:e,sessionModel:t,modelDisabled:n,onModelChange:r,thinkingLevel:i,thinkingDisabled:a,onThinkingChange:o}){let s=Pt(e=>e.language),c=Xr(Di,Ti,{revalidateOnFocus:!1}),[l,u]=(0,Z.useState)(`config`),d=(0,Z.useRef)(null),f=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{(l===`models`?f:d).current?.focus()},[l]);let[p,m]=(0,Z.useState)(!1),[h,g]=(0,Z.useState)(``),[_,v]=(0,Z.useState)(``),b=c.data??[],x=b.find(e=>e.id===t),S=!!(t&&c.data&&!x),C=x?AU(x,s):t.slice(t.indexOf(`/`)+1)||e.modelConfigure,w=C.split(`/`).at(-1)||C,E=x?.thinking,D=E?.mode===`levels`||E?.mode===`toggle`,O=E?Xj(E,i):i,k=t=>E?.mode===`toggle`&&t!==`off`?e.modelThinkingOn:e.thinkingLevels[t]??t,A=D?k(O):E?.mode===`fixed`?e.modelThinkingFixed:``,j=p||n;async function M(t,n=!1){m(!0),g(``),v(``);try{await t(),n&&u(`config`),v(e.modelConfigSaved)}catch(e){g(e instanceof Error?e.message:String(e))}finally{m(!1)}}return(0,$.jsxs)(Qi,{onOpenChange:e=>{e||(u(`config`),g(``),v(``))},children:[(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":`${e.modelConfigLabel}: ${w}${A?` · ${A}`:``}`,title:w,className:q(`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`,$r.focusRingPanel,$r.transition),children:[c.isLoading||!t&&b.length>0?(0,$.jsx)(ta,{className:`h-4 w-28`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:w}),S?(0,$.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:e.modelUnavailable}):A&&(0,$.jsxs)(`span`,{className:`shrink-0 text-fg-muted`,children:[`· `,A]})]}),(0,$.jsx)(jd,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0})]})}),(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{side:`top`,align:`end`,sideOffset:8,collisionPadding:12,"aria-label":e.modelConfigLabel,className:q(oa,`xopc-composer-config-popover flex max-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:[l===`models`?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`button`,{ref:f,type:`button`,onClick:()=>u(`config`),className:q(`mb-2 flex min-h-11 shrink-0 items-center gap-2 rounded-lg px-2 text-sm text-fg hover:bg-surface-hover`,$r.focusRingPanel),children:[(0,$.jsx)(Wo,{className:`size-4`,"aria-hidden":!0}),e.modelBack]}),(0,$.jsx)(RU,{models:b,value:t,disabled:j,searchPlaceholder:e.modelSearchPlaceholder,noMatches:e.modelNoMatches,onChange:e=>{let t=b.find(t=>t.id===e),n=t?.thinking?Xj(t.thinking,O):O;M(()=>r(e,n),!0)}})]}):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto overscroll-contain`,children:c.isLoading?(0,$.jsxs)(`div`,{className:`space-y-4 p-3`,children:[(0,$.jsx)(ta,{className:`h-6 w-40`}),(0,$.jsx)(ta,{className:`h-4 w-24`}),(0,$.jsx)(ta,{className:`h-11 w-full`})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`button`,{ref:d,type:`button`,disabled:j||!b.length,onClick:()=>u(`models`),className:q(`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`,$r.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:C}),(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:t,children:x?.provider||t})]}),(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0})]}),S&&(0,$.jsx)(`p`,{className:`px-3 py-2 text-sm text-fg-muted`,children:e.modelUnavailable}),x&&(0,$.jsxs)(`div`,{className:`mb-2 mt-4 px-3`,children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs font-medium text-fg-muted`,children:e.modelThinkingLabel}),D?(0,$.jsx)(`div`,{role:`group`,"aria-label":e.modelThinkingLabel,className:q(`grid gap-1 rounded-lg bg-surface-base p-1`,E.options.length>4?`grid-cols-3`:E.options.length===4?`grid-cols-4`:E.options.length===3?`grid-cols-3`:`grid-cols-2`),children:E.options.map(e=>(0,$.jsx)(`button`,{type:`button`,"aria-pressed":e===O,disabled:j||a,onClick:()=>void M(()=>o(e)),className:q(`min-h-11 min-w-11 flex-1 rounded-md px-2 text-sm text-fg hover:bg-surface-hover disabled:opacity-50`,$r.focusRingPanel,e===O&&`bg-accent-soft font-medium text-accent-fg`),children:k(e)},e))}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:E?.mode===`none`?e.thinkingUnsupported:E?.mode===`fixed`?e.modelThinkingFixed:e.modelThinkingUnknown})]})]})}),(p||h||c.error||_)&&(0,$.jsx)(`div`,{className:`shrink-0 px-3 py-2 text-xs`,"aria-live":`polite`,children:p?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-fg-muted`,children:[(0,$.jsx)(Ye,{className:`size-3 animate-spin`,"aria-hidden":!0}),e.modelConfigSaving]}):h?(0,$.jsx)(`span`,{role:`alert`,className:`text-danger`,children:h}):c.error?(0,$.jsx)(`button`,{type:`button`,onClick:()=>void c.mutate(),className:q(`text-accent-fg`,$r.focusRingPanel),children:e.modelRetry}):_?(0,$.jsxs)(`span`,{className:`text-fg-muted`,children:[_,` · `,w,A?` · ${A}`:``]}):null}),(0,$.jsx)(y,{to:`/settings/capabilities/models`,className:q(`shrink-0 rounded-lg border-t border-edge-subtle px-3 py-3 text-sm text-fg-muted hover:bg-surface-hover`,$r.focusRingPanel),children:b.length?e.modelManage:e.modelConfigure})]})})]})}function BU(){return typeof navigator>`u`?!1:navigator.platform?.includes(`Mac`)??navigator.userAgent.includes(`Mac`)}function VU(e,t=BU()){return UU(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 HU(e=BU()){return e?`meta+.`:`control+.`}function UU(e){return e.split(`+`).map(qU).filter(Boolean).join(`+`)}function WU(e){if(e.key===`Escape`||[`Meta`,`Control`,`Alt`,`Shift`].includes(e.key))return null;let t=e.key===` `?`space`:qU(e.key);return t?[...[e.metaKey?`meta`:``,e.ctrlKey?`control`:``,e.altKey?`alt`:``,e.shiftKey?`shift`:``].filter(Boolean),t].join(`+`):null}var GU=It(ai(e=>({shortcut:HU(),setShortcut:t=>e({shortcut:UU(t)||HU()})}),{name:`xopc-quick-capture-shortcut`,version:2,migrate:e=>{let t=e;return!BU()&&t.shortcut===`meta+.`?{...t,shortcut:HU(!1)}:{...t,shortcut:UU(t.shortcut??``)||HU()}}})),KU={cmd:`meta`,command:`meta`,ctrl:`control`,ctl:`control`,opt:`alt`,option:`alt`};function qU(e){let t=e.toLowerCase().trim();return KU[t]??t}function JU(e,t){let n=UU(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 YU(e=BU()){return e?`meta+shift+m`:`control+shift+m`}var XU=It(ai(e=>({shortcut:YU(),setShortcut:t=>e({shortcut:UU(t)||YU()})}),{name:`xopc-voice-input-shortcut`,version:1}));function ZU(e){let t=(0,Q.c)(10),{disabled:n,chat:r,onStart:i}=e,a=XU(QU),o=r.voiceInput,s;t[0]===a?s=t[1]:(s=VU(a).join(`+`),t[0]=a,t[1]=s);let c=`${o} (${s})`,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=q(`relative inline-flex size-11 sm:size-8 shrink-0 items-center justify-center rounded-lg border border-transparent text-fg-subtle hover:bg-surface-hover hover:text-fg`,$r.transition,$r.press,$r.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)(Qe,{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 QU(e){return e.shortcut}function $U(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function eW(e){let t=(0,Q.c)(12),{disabled:n,runBusy:r,attachmentCount:i,maxAttachments:a,chat:o,onPickFiles:s}=e,c=i>=a,l;t[0]!==i||t[1]!==c||t[2]!==o.attachFile||t[3]!==o.maxAttachmentsReached||t[4]!==a?(l=c?$U(o.maxAttachmentsReached,{max:a}):`${o.attachFile} (${i}/${a})`,t[0]=i,t[1]=c,t[2]=o.attachFile,t[3]=o.maxAttachmentsReached,t[4]=a,t[5]=l):l=t[5];let u=l,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=q(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.transition,$r.press,$r.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),t[6]=d):d=t[6];let f=c||n||r,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(rt,{className:`size-4`}),t[7]=p):p=t[7];let m;return t[8]!==s||t[9]!==f||t[10]!==u?(m=(0,$.jsx)(`button`,{type:`button`,className:d,disabled:f,title:u,"aria-label":u,onClick:s,children:p}),t[8]=s,t[9]=f,t[10]=u,t[11]=m):m=t[11],m}function tW(e){let t=(0,Q.c)(14),{disabled:n,voiceActive:r,runBusy:i,hasDraft:a,showSteeringInterrupt:o,chat:s,onSend:c,onQueue:l,onAbort:u,onInterrupt:d}=e,f;return t[0]!==n||t[1]!==a||t[2]!==s.abort||t[3]!==s.followUpQueueAdd||t[4]!==s.sendMessage||t[5]!==s.steeringInterruptSend||t[6]!==u||t[7]!==d||t[8]!==l||t[9]!==c||t[10]!==i||t[11]!==o||t[12]!==r?(f=(0,$.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:i?(0,$.jsxs)($.Fragment,{children:[a&&l?(0,$.jsx)(`button`,{type:`button`,className:q(`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`,$r.transition,$r.press,$r.focusRingPanel),disabled:n||r,title:s.followUpQueueAdd,"aria-label":s.followUpQueueAdd,onClick:()=>void l(),children:(0,$.jsx)(yv,{className:`size-4 stroke-[1.75]`})}):null,o&&d?(0,$.jsx)(`button`,{type:`button`,className:q(`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`,$r.transition,$r.press,$r.focusRingPanel),title:s.steeringInterruptSend,"aria-label":s.steeringInterruptSend,onClick:()=>void d(),children:(0,$.jsx)(xC,{className:`size-4 stroke-[1.75]`})}):null,(0,$.jsx)(`button`,{type:`button`,className:q(`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`,$r.transition,$r.press,$r.focusRingPanel),title:s.abort,"aria-label":s.abort,onClick:u,children:(0,$.jsx)(dE,{className:`size-4 stroke-[1.75]`})})]}):(0,$.jsx)(`button`,{type:`button`,className:q(`inline-flex size-8 shrink-0 items-center justify-center rounded-lg border transition-colors duration-150 ease-out`,$r.press,$r.focusRingPanel,a?`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||r||!a,title:s.sendMessage,"aria-label":s.sendMessage,onClick:c,children:(0,$.jsx)(xC,{className:`size-4 stroke-[1.75]`})})}),t[0]=n,t[1]=a,t[2]=s.abort,t[3]=s.followUpQueueAdd,t[4]=s.sendMessage,t[5]=s.steeringInterruptSend,t[6]=u,t[7]=d,t[8]=l,t[9]=c,t[10]=i,t[11]=o,t[12]=r,t[13]=f):f=t[13],f}function nW(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;t[3]===n?i=t[4]:(i=q(`flex flex-wrap items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(`div`,{className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var rW=(0,Z.memo)(function(e){let t=(0,Q.c)(45),{disabled:n,sending:r,streaming:i,runBusy:a,chat:o,hasDraft:s,showSteeringInterrupt:c,attachmentCount:l,maxAttachments:u,onPickFiles:d,thinkingLevel:f,onThinkingChange:p,voiceActive:m,onStartVoiceInput:h,voiceConversationEnabled:g,onStartVoiceConversation:_,onSend:v,onQueue:y,onAbort:b,onInterrupt:x,sessionModel:S,showModelSelector:C,onModelChange:w,modelDisabled:T}=e;if(m)return null;let E;t[0]!==l||t[1]!==n||t[2]!==o||t[3]!==u||t[4]!==d||t[5]!==a?(E=(0,$.jsx)(eW,{disabled:n,runBusy:a,attachmentCount:l,maxAttachments:u,chat:o,onPickFiles:d}),t[0]=l,t[1]=n,t[2]=o,t[3]=u,t[4]=d,t[5]=a,t[6]=E):E=t[6];let D;t[7]!==n||t[8]!==o||t[9]!==T||t[10]!==w||t[11]!==p||t[12]!==r||t[13]!==S||t[14]!==C||t[15]!==i||t[16]!==f?(D=C?(0,$.jsx)(zU,{chat:o,sessionModel:S,modelDisabled:T,onModelChange:w,thinkingLevel:f,thinkingDisabled:n||r||i,onThinkingChange:p}):null,t[7]=n,t[8]=o,t[9]=T,t[10]=w,t[11]=p,t[12]=r,t[13]=S,t[14]=C,t[15]=i,t[16]=f,t[17]=D):D=t[17];let O;t[18]!==n||t[19]!==o||t[20]!==_||t[21]!==h||t[22]!==m||t[23]!==g?(O=m?null:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ZU,{disabled:n,chat:o,onStart:h}),(0,$.jsx)(`button`,{type:`button`,className:q(`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`,$r.transition,$r.press,$r.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),disabled:n||!g,title:o.voiceConversation,"aria-label":o.voiceConversation,onClick:()=>void _(),children:(0,$.jsx)(ps,{className:`size-4 stroke-[1.75]`})})]}),t[18]=n,t[19]=o,t[20]=_,t[21]=h,t[22]=m,t[23]=g,t[24]=O):O=t[24];let k;t[25]!==n||t[26]!==s||t[27]!==o||t[28]!==b||t[29]!==x||t[30]!==y||t[31]!==v||t[32]!==a||t[33]!==c||t[34]!==m?(k=(0,$.jsx)(tW,{disabled:n,voiceActive:m,runBusy:a,hasDraft:s,showSteeringInterrupt:c,chat:o,onSend:v,onQueue:y,onAbort:b,onInterrupt:x}),t[25]=n,t[26]=s,t[27]=o,t[28]=b,t[29]=x,t[30]=y,t[31]=v,t[32]=a,t[33]=c,t[34]=m,t[35]=k):k=t[35];let A;t[36]!==O||t[37]!==k?(A=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[O,k]}),t[36]=O,t[37]=k,t[38]=A):A=t[38];let j;t[39]!==D||t[40]!==A?(j=(0,$.jsxs)(`div`,{className:`ml-auto flex min-w-0 items-center gap-2`,children:[D,A]}),t[39]=D,t[40]=A,t[41]=j):j=t[41];let M;return t[42]!==E||t[43]!==j?(M=(0,$.jsxs)(nW,{children:[E,j]}),t[42]=E,t[43]=j,t[44]=M):M=t[44],M}),iW=(0,Z.memo)(function(e){let t=(0,Q.c)(18),{spotlight:n,onPickPrompt:r,compact:i}=e,a=i===void 0?!1:i,o=Pt(aW),s=n.recommendation,c=a?`gap-4 pb-3 pt-5`:`gap-5 pb-6 pt-32 sm:pt-36 [@media(max-height:800px)]:pt-12`,l;t[0]===c?l=t[1]:(l=q(`flex flex-col items-center px-3 text-center`,c),t[0]=c,t[1]=l);let u=a?`size-24`:`size-28 sm:size-32 [@media(max-height:800px)]:size-24`,d;t[2]===u?d=t[3]:(d=q(`shrink-0`,u),t[2]=u,t[3]=d);let f;t[4]!==o||t[5]!==d?(f=(0,$.jsx)(ua,{className:d,interactive:!0,language:o,mood:`listen`}),t[4]=o,t[5]=d,t[6]=f):f=t[6];let p;t[7]===n.headline?p=t[8]:(p=(0,$.jsx)(`h1`,{className:`max-w-xl text-balance text-xl font-semibold tracking-tight text-fg`,children:n.headline}),t[7]=n.headline,t[8]=p);let m;t[9]!==r||t[10]!==s||t[11]!==n.contextKind?(m=s?(0,$.jsxs)(`button`,{type:`button`,onClick:()=>r({suggestionId:s.id,contextKind:n.contextKind,prompt:s.prompt}),className:q(`mt-4 flex min-h-16 w-full max-w-xl items-center gap-3 rounded-xl border border-edge bg-surface-panel px-4 py-3 text-left hover:border-edge-strong hover:bg-surface-hover`,$r.transition,$r.press,$r.focusRingPanel),children:[(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`line-clamp-2 block text-sm font-medium leading-snug text-fg sm:text-[0.9375rem]`,children:s.title}),(0,$.jsx)(`span`,{className:`mt-1 block truncate text-xs text-fg-muted`,children:s.reason})]}),(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0})]}):null,t[9]=r,t[10]=s,t[11]=n.contextKind,t[12]=m):m=t[12];let h;return t[13]!==l||t[14]!==f||t[15]!==p||t[16]!==m?(h=(0,$.jsxs)(`div`,{className:l,children:[f,p,m]}),t[13]=l,t[14]=f,t[15]=p,t[16]=m,t[17]=h):h=t[17],h});function aW(e){return e.language}function oW(e,t){let n=t?.split(`;`)[0]?.trim();return!n?.startsWith(`image/`)||e.type===n?e:new Blob([e],{type:n})}function sW(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?li(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=ci(t,o),n[6]=o,n[7]=t,n[8]=r):r=n[8],s=r}let c=s,l=`${e.uri??``}\n${t.conversationId??``}\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.conversationId||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 yt({uri:e.uri,conversationId:t.conversationId,taskId:e.taskId});if(r)return;if(!i.ok){d({key:l,status:`error`});return}let a=URL.createObjectURL(oW(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.conversationId,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.conversationId||n[24]!==l?(p=[c,e.taskId,e.uri,i,t.authToken,t.conversationId,l],n[18]=e.taskId,n[19]=e.uri,n[20]=c,n[21]=i,n[22]=t.authToken,n[23]=t.conversationId,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 cW(e){let t=(0,Q.c)(51),{attachment:n,authToken:r,conversationId: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=Pt(lW),g;t[0]===h?g=t[1]:(g=kt(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,conversationId:i},t[5]=r,t[6]=i,t[7]=x):x=t[7];let S=sW(n,x),C;t[8]===n?C=t[9]:(C=!!n.uri&&!li(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} · ${ui(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=q(`group relative min-w-0`,V,l),t[19]=l,t[20]=V,t[21]=H):H=t[21];let U;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?(U=b?(0,$.jsxs)(`div`,{className:z,children:[(0,$.jsxs)(`div`,{className:`relative size-full min-h-0`,children:[(0,$.jsxs)(`button`,{type:`button`,className:q(B,$r.transition,$r.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)(Be,{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:q(`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:q(`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`,$r.transition,$r.press,$r.focusRingPanel),children:[j?(0,$.jsx)(ie,{className:q(`shrink-0 text-accent-fg`,M?`size-3.5`:`size-8`),"aria-hidden":!0}):k?(0,$.jsx)(Fg,{className:`size-8 shrink-0 text-fg-subtle`,"aria-hidden":!0}):(0,$.jsx)(zg,{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:q(`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]=U):U=t[42];let W;t[43]!==_.chat.attachmentPreviewRemove||t[44]!==o||t[45]!==f?(W=f?(0,$.jsx)(`button`,{type:`button`,className:q(`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`,$r.transition,$r.press,$r.focusRingPanel),onClick:e=>{e.stopPropagation(),o?.()},title:_.chat.attachmentPreviewRemove,"aria-label":_.chat.attachmentPreviewRemove,children:(0,$.jsx)(Dt,{className:`size-3`})}):null,t[43]=_.chat.attachmentPreviewRemove,t[44]=o,t[45]=f,t[46]=W):W=t[46];let G;return t[47]!==H||t[48]!==U||t[49]!==W?(G=(0,$.jsxs)(`div`,{className:H,children:[U,W]}),t[47]=H,t[48]=U,t[49]=W,t[50]=G):G=t[50],G}function lW(e){return e.language}function uW(e){let t=(0,Q.c)(11),{layout:n,conversationId:r,workspaceConversationId:i,projectId:a}=e,[o,s]=(0,Z.useState)(null),c=GV(dW),l;t[0]!==r||t[1]!==n||t[2]!==a||t[3]!==c||t[4]!==i?(l=e=>{let t=i??r;if(n===`assistant`&&e.workspaceRelativePath?.trim()&&(a?.trim()||t?.trim())){c(e.workspaceRelativePath.trim(),null,a,t);return}s(e)},t[0]=r,t[1]=n,t[2]=a,t[3]=c,t[4]=i,t[5]=l):l=t[5];let u=l,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>s(null),t[6]=d):d=t[6];let f=d,p=o!==null,m;return t[7]!==o||t[8]!==u||t[9]!==p?(m={active:o,open:p,openAttachment:u,closePreview:f},t[7]=o,t[8]=u,t[9]=p,t[10]=m):m=t[10],m}function dW(e){return e.setPath}function fW(e){let t=Math.max(0,Math.floor(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`}function pW(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function mW(e){let t=(0,Q.c)(9),{att:n,conversationId:r}=e,i;t[0]!==n.content||t[1]!==n.data||t[2]!==n.taskId||t[3]!==n.uri||t[4]!==r?(i=JSON.stringify([n.uri,n.content,n.data,n.taskId,r]),t[0]=n.content,t[1]=n.data,t[2]=n.taskId,t[3]=n.uri,t[4]=r,t[5]=i):i=t[5];let a;return t[6]!==e||t[7]!==i?(a=(0,$.jsx)(hW,{...e},i),t[6]=e,t[7]=i,t[8]=a):a=t[8],a}function hW({att:e,align:t=`start`,embedded:n=!1,conversationId:r}){let i=Pt(e=>e.language),a=i===`zh`,o=kt(i).chat,s=(0,Z.useId)(),c=(0,Z.useRef)(null),[l,u]=(0,Z.useState)(),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(0),[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)(0),T=C||(pW(e.durationSeconds)?e.durationSeconds:0),[E,D]=(0,Z.useState)(0),O=e.content??e.data;(0,Z.useEffect)(()=>{let t=new AbortController,n;return f(!1),u(void 0),(async()=>{try{if(O){u(`data:${e.mimeType||`audio/mpeg`};base64,${O.replace(/\s/g,``)}`);return}if(!e.uri)throw Error(`Missing audio source`);let i=await Mt(Y(di(e.uri,r,e.taskId)),{signal:t.signal});if(!i.ok)throw Error(`Audio unavailable`);let a=await i.blob();if(t.signal.aborted)return;n=URL.createObjectURL(a),u(n)}catch{t.signal.aborted||f(!0)}})(),()=>{t.abort(),n&&URL.revokeObjectURL(n)}},[O,e.mimeType,e.uri,e.taskId,r,p]),(0,Z.useEffect)(()=>{let e=c.current,t=()=>e?.pause(),n=e=>{let n=e.detail?.id;n&&n!==s&&t()};return window.addEventListener(`xopc-voice-recording-start`,t),window.addEventListener(`xopc-voice-playback-start`,n),()=>{t(),window.removeEventListener(`xopc-voice-recording-start`,t),window.removeEventListener(`xopc-voice-playback-start`,n)}},[s]);let k=()=>{let e=c.current;if(d){m(e=>e+1);return}!e||!l||(h?e.pause():e.play().catch(e=>{e instanceof DOMException&&e.name===`AbortError`||f(!0)}))},A=()=>{let e=c.current?.duration;pW(e)&&w(e)},j=a?`播放选项`:`Playback options`;return(0,$.jsx)(`div`,{className:q(`flex min-w-0`,t===`end`&&`justify-end`,t===`center`&&`justify-center`),children:(0,$.jsxs)(`div`,{className:q(`w-60 max-w-full rounded-xl`,!n&&`bg-surface-base px-1`),role:`group`,"aria-label":o.voiceAriaRegion,children:[!l&&!d?(0,$.jsx)(`span`,{className:`sr-only`,role:`status`,children:o.voiceLoading}):null,(0,$.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2`,children:[(0,$.jsx)(`button`,{type:`button`,onClick:k,disabled:!l&&!d,className:`inline-flex size-11 shrink-0 items-center justify-center rounded-full text-fg hover:bg-surface-hover disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":d?a?`重试播放`:`Retry playback`:h?o.voicePause:o.voicePlay,children:d?(0,$.jsx)(it,{className:`size-5`,"aria-hidden":!0}):h?(0,$.jsx)(et,{className:`size-5`,"aria-hidden":!0}):(0,$.jsx)(nt,{className:`size-5`,"aria-hidden":!0})}),(0,$.jsx)(`div`,{className:`min-w-0 flex-1`,"aria-hidden":!0,children:!l&&!d?(0,$.jsx)(ta,{className:`h-1 w-full`}):(0,$.jsx)(`div`,{className:`h-1 overflow-hidden rounded-full bg-surface-active`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-accent`,style:{width:`${T>0?Math.min(100,E/T*100):0}%`}})})}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>v(!_),"aria-label":j,"aria-expanded":_,"aria-controls":`${s}-options`,className:`flex min-h-11 shrink-0 items-center gap-1 rounded-lg px-2 text-[13px] tabular-nums text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[E>0||T>0?fW(E>0?E:T):`—`,(0,$.jsx)(jd,{className:q(`size-3`,_&&`rotate-180`),"aria-hidden":!0})]})]}),d?(0,$.jsx)(`p`,{role:`alert`,className:`px-2 pb-2 text-xs text-fg-muted`,children:a?`音频无法播放,请重试`:`Audio unavailable. Try again.`}):null,_?(0,$.jsxs)(`div`,{id:`${s}-options`,className:`space-y-2 px-2 pb-3`,children:[(0,$.jsxs)(`label`,{className:`block text-xs text-fg-muted`,children:[a?`播放进度`:`Playback position`,(0,$.jsx)(`input`,{type:`range`,min:0,max:T||1,step:.1,value:Math.min(E,T),disabled:!l||!T||d,onChange:e=>{c.current&&(c.current.currentTime=Number(e.target.value),D(Number(e.target.value)))},className:`block h-11 w-full accent-accent`})]}),(0,$.jsx)(F,{contentClassName:`[&_button]:min-h-11`,value:String(x),allowEmpty:!1,placeholder:`1×`,ariaLabel:o.voicePlaybackSpeed,triggerClassName:`min-h-11`,options:[.75,1,1.25,1.5,2].map(e=>({value:String(e),label:`${e}×`})),onChange:e=>{let t=Number(e);S(t),c.current&&(c.current.playbackRate=t)}})]}):null,e.extractedText?.trim()?(0,$.jsxs)(`div`,{className:`px-2 pb-1`,children:[(0,$.jsx)(`button`,{type:`button`,className:`min-h-11 rounded-lg text-xs text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>b(!y),"aria-expanded":y,"aria-controls":`${s}-text`,children:y?a?`收起文字`:`Hide transcript`:a?`查看文字`:`Show transcript`}),y?(0,$.jsx)(`p`,{id:`${s}-text`,className:`whitespace-pre-wrap break-words pb-2 text-sm text-fg-muted`,children:e.extractedText}):null]}):null,(0,$.jsx)(`audio`,{ref:c,src:l,preload:`metadata`,className:`hidden`,onLoadedMetadata:A,onDurationChange:A,onTimeUpdate:e=>D(e.currentTarget.currentTime),onError:()=>{l&&(g(!1),f(!0))},onPlay:e=>{e.currentTarget.playbackRate=x,g(!0),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:s}}))},onPause:()=>g(!1),onEnded:()=>{g(!1),D(0)}})]})})}function gW(e){return e.type===`voice`||e.type===`audio`||e.mimeType?.startsWith(`audio/`)===!0}var _W=9;function vW(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<=_W?{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`}:{container:`grid grid-cols-3 ${n} ${r}`,tileSize:`grid-cell`,overflowCount:e-(_W-1)}}function yW(e){let t=(0,Q.c)(29),{attachments:n,authToken:r,conversationId:i,workspaceConversationId:a,projectId:o,layout:s,centerUserVoiceRow:c}=e,l=s===void 0?`assistant`:s,u=c===void 0?!1:c,d;t[0]!==i||t[1]!==l||t[2]!==o||t[3]!==a?(d={layout:l,conversationId:i,workspaceConversationId:a,projectId:o},t[0]=i,t[1]=l,t[2]=o,t[3]=a,t[4]=d):d=t[4];let f=uW(d);if(!n?.length)return null;let p,m,h,g;if(t[5]!==n||t[6]!==r||t[7]!==u||t[8]!==i||t[9]!==l||t[10]!==f.openAttachment){let e=n.filter(xW),a=n.filter(gW),o=n.filter(bW);p=`flex flex-col gap-2`,m=e.length>0?(()=>{let t=vW(e.length,l===`user`),n=t.overflowCount==null?e:e.slice(0,_W-1);return(0,$.jsxs)(`div`,{className:q(`w-full min-w-0`,t.container),children:[n.map((e,n)=>(0,$.jsx)(cW,{attachment:e,authToken:r,conversationId:i,imageSize:t.tileSize,compact:l===`user`,onOpen:f.openAttachment},e.id??`${e.name}-${n}`)),t.overflowCount==null?null:(0,$.jsx)(cW,{attachment:e[_W-1],authToken:r,conversationId:i,imageSize:`grid-cell`,compact:l===`user`,overflowLabel:`+${t.overflowCount}`,onOpen:f.openAttachment},e[_W-1]?.id??`overflow-${_W-1}`)]})})():null,h=a.length>0?(0,$.jsx)(`div`,{className:q(`flex flex-col gap-2`,l===`user`&&(u?`items-center`:`items-end`)),children:a.map((e,t)=>(0,$.jsx)(mW,{att:e,conversationId:i,align:l===`user`?u?`center`:`end`:`start`,embedded:l===`user`},e.id??`${e.name}-${t}`))}):null,g=o.length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:o.map((e,t)=>(0,$.jsx)(cW,{attachment:e,authToken:r,conversationId:i,onOpen:f.openAttachment},e.id??`${e.name}-${t}`))}):null,t[5]=n,t[6]=r,t[7]=u,t[8]=i,t[9]=l,t[10]=f.openAttachment,t[11]=p,t[12]=m,t[13]=h,t[14]=g}else p=t[11],m=t[12],h=t[13],g=t[14];let _;t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_=(0,$.jsxs)(`div`,{className:p,children:[m,h,g]}),t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19];let v;t[20]!==r||t[21]!==i||t[22]!==f.active||t[23]!==f.closePreview||t[24]!==f.open?(v=(0,$.jsx)(me,{open:f.open,attachment:f.active,authToken:r,conversationId:i,onClose:f.closePreview}),t[20]=r,t[21]=i,t[22]=f.active,t[23]=f.closePreview,t[24]=f.open,t[25]=v):v=t[25];let y;return t[26]!==_||t[27]!==v?(y=(0,$.jsxs)($.Fragment,{children:[_,v]}),t[26]=_,t[27]=v,t[28]=y):y=t[28],y}function bW(e){return e.type!==`image`&&!e.mimeType?.startsWith(`image/`)&&!gW(e)}function xW(e){return e.type===`image`||e.mimeType?.startsWith(`image/`)}function SW(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 CW(e){return e?.length?e.flatMap((e,t)=>{let n=SW(e,t);return n?[n]:[]}):[]}function wW(e){let t=[];for(let n of e)if(n.type===`text`){if(n.presentation===`pending`||n.presentation===`narration`)continue;t.push(n.text)}else n.type===`image`&&t.push(`[image]`);return t.join(`
|
|
10
|
+
|
|
11
|
+
`).trim()}function TW(e){if(!e.trim())return``;let t=Pe.parse(e,{gfm:!0,breaks:!1});return new DOMParser().parseFromString(`<div>${t}</div>`,`text/html`).body.textContent?.trim()??``}function EW(e){let t=[];for(let n of e)if(n.type===`text`){if(n.presentation===`pending`||n.presentation===`narration`)continue;t.push(TW(n.text))}else n.type===`image`&&t.push(`[image]`);return t.join(`
|
|
12
|
+
|
|
13
|
+
`).trim()}function DW(e){let t=[];((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)})})(pa(),e=>({kind:`skill`,name:e[1]??``}));for(let n of eH(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 n=[],r=0;for(let i of t)i.start<r||(i.start>r&&n.push({kind:`text`,text:e.slice(r,i.start)}),n.push(i.seg),r=i.end);return r<e.length&&n.push({kind:`text`,text:e.slice(r)}),n.length===0&&n.push({kind:`text`,text:e}),n}function OW(e){return e.kind===`text`?`t:${e.text}`:e.kind===`skill`?`s:${e.name}`:e.kind===`context_ref`?`r:${e.refId}`:`c:${e.name}`}function kW(e,t){let n=e[t-1],r=e[t-2],i=e[t+1],a=n?.kind===`text`&&n.text.trim()===``&&r!==void 0&&r.kind!==`text`;return q(n?.kind===`text`&&/\s$/u.test(n.text)&&!a&&`ms-1`,i?.kind===`text`&&/^\s/u.test(i.text)&&`me-1`)}function AW(e){let t=(0,Q.c)(6),{contextRef:n}=e;if(n?.kind===`file`&&n.fileKind===`directory`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(z_,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[0]=e):e=t[0],e}if(n?.kind===`file`){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(zg,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[1]=e):e=t[1],e}if(n?.kind===`session`){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Pv,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[2]=e):e=t[2],e}if(n?.kind===`browser_tab`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(mo,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[3]=e):e=t[3],e}if(n?.kind===`mcp_resource`){let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(Lm,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[4]=e):e=t[4],e}let r;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(hy,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[5]=r):r=t[5],r}var jW=(0,Z.memo)(function(e){let t=(0,Q.c)(20),{text:n,conversationId:r,document:i,contextRefs:a}=e,o;bb0:{if(!i){let e;t[0]===n?e=t[1]:(e=DW(n),t[0]=n,t[1]=e),o=e;break bb0}let e;if(t[2]!==a||t[3]!==i.parts){let n=new Map(a?.flatMap(MW)??[]);e=i.parts.flatMap(e=>e.type===`text`?DW(e.text):[{kind:`context_ref`,refId:e.refId,ref:n.get(e.refId)}]),t[2]=a,t[3]=i.parts,t[4]=e}else e=t[4];o=e}let s=o,c;if(t[5]!==s){let e=new Map;c=s.map(t=>{let n=OW(t),r=e.get(n)??0;return e.set(n,r+1),{part:t,key:`${n}#${String(r)}`}}),t[5]=s,t[6]=c}else c=t[6];let l=c,u;t[7]===s?u=t[8]:(u=s.some(NW),t[7]=s,t[8]=u);let d=xU(void 0,r,u);if(!s.some(PW)){let e;return t[9]===n?e=t[10]:(e=(0,$.jsx)(`div`,{className:`markdown-content min-w-0`,children:(0,$.jsx)(Ne,{content:n,compact:!0,breaks:!0})}),t[9]=n,t[10]=e),e}let f;if(t[11]!==s||t[12]!==l||t[13]!==d){let e;t[15]!==s||t[16]!==d?(e=(e,t)=>{let{part:n,key:r}=e;return n.kind===`skill`?(0,$.jsxs)(`span`,{className:`chat-skill-pill max-w-full shrink-0`,"data-skill":n.name,title:`/${n.name}`,children:[`/`,d(n.name)]},r):n.kind===`command`?(0,$.jsxs)(`span`,{className:`chat-command-pill max-w-full shrink-0`,"data-slash-command":n.name,children:[`/`,n.name]},r):n.kind===`context_ref`?(0,$.jsxs)(`span`,{className:q(`chat-context-ref-pill chat-context-ref-pill-message max-w-full shrink-0`,kW(s,t)),"data-context-ref-id":n.refId,"data-ref-kind":n.ref?.kind??``,"data-file-kind":n.ref?.fileKind??``,title:n.ref?.title,"aria-label":n.ref?.title??`reference`,children:[(0,$.jsx)(AW,{contextRef:n.ref}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:n.ref?.title??`reference`})]},r):n.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)(Ne,{content:n.text,compact:!0,breaks:!0})},r):null},t[15]=s,t[16]=d,t[17]=e):e=t[17],f=l.map(e),t[11]=s,t[12]=l,t[13]=d,t[14]=f}else f=t[14];let p;return t[18]===f?p=t[19]:(p=(0,$.jsx)(`span`,{className:`inline-flex max-w-full flex-wrap items-baseline gap-x-0 gap-y-1 [text-align:inherit]`,children:f}),t[18]=f,t[19]=p),p});function MW(e){return e.refId?[[e.refId,e]]:[]}function NW(e){return e.kind===`skill`}function PW(e){return e.kind!==`text`}function FW(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 IW(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)(iv,{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)(pp,{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)(Qk,{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)(L,{className:`size-4`,strokeWidth:1.75}),t[3]=e):e=t[3],e}}}function LW(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 RW(e){let t=(0,Q.c)(46),{payload:n}=e,r=l(),i=Pt(BW),a,o;t[0]!==i||t[1]!==n?(a=kt(i).chat,o=FW(n,a),t[0]=i,t[1]=n,t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s=o,c=LW(n.code),u=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`,d=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`,f=c===`amber`?`text-amber-900 dark:text-amber-100`:`text-red-900 dark:text-red-100`,p=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=zW,y;t[4]===u?y=t[5]:(y=q(`flex flex-col gap-2 rounded-xl border p-3`,u),t[4]=u,t[5]=y);let b;t[6]===d?b=t[7]:(b=q(`flex size-8 shrink-0 items-center justify-center rounded-lg`,d),t[6]=d,t[7]=b);let x;t[8]===n.code?x=t[9]:(x=(0,$.jsx)(IW,{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]===f?C=t[14]:(C=q(`text-sm font-semibold`,f),t[13]=f,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]===p?T=t[19]:(T=q(`mt-1 text-xs leading-relaxed`,p),t[18]=p,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:q(`inline-flex h-8 items-center rounded-lg px-3 py-1.5 text-xs font-medium transition-colors`,g),onClick:()=>v(`/models/credits/purchase`),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/credits/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:q(`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:q(`cursor-pointer select-none underline-offset-2`,m),children:a.agentRunErrorDetailToggle}),(0,$.jsx)(`pre`,{className:q(`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 zW(e){return window.open(`https://console.xopc.ai${e}`,`_blank`,`noopener,noreferrer`)}function BW(e){return e.language}function VW(e){let t=(0,Q.c)(8),{errorText:n}=e,r;t[0]===n?r=t[1]:(r=dr(n),t[0]=n,t[1]=r);let i=r;if(!i)return null;let a;t[2]===i?a=t[3]:(a=Rr(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)(HW,{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)(RW,{payload:i})}),t[6]=i,t[7]=s),s}function HW(e){let t=(0,Q.c)(32),{payload:n}=e,r=l(),i=Pt(UW),a,o,s,c;t[0]!==i||t[1]!==n.kind||t[2]!==n.provider?(o=kt(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 u=s,d=a?o.agentRunErrorCtaProviders:o.providerSetupRequiredCta,f=a?o.agentRunErrorDetailToggle:o.providerSetupRequiredDetailToggle,p=a?`alert`:`status`,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=q(`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=q(`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)(iv,{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]===u?v=t[13]:(v=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:u}),t[12]=u,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=q(`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]!==d||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:d})}),t[21]=d,t[22]=x,t[23]=S):S=t[23];let C;t[24]!==f||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:f}),(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]=f,t[25]=n.message,t[26]=C):C=t[26];let w;return t[27]!==S||t[28]!==C||t[29]!==p||t[30]!==y?(w=(0,$.jsxs)(`section`,{role:p,"aria-live":`polite`,className:m,children:[y,S,C]}),t[27]=S,t[28]=C,t[29]=p,t[30]=y,t[31]=w):w=t[31],w}function UW(e){return e.language}var WW=/^No API key found for (\S+)/i;function GW(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=WW.exec(t);return n?{kind:`provider_setup_required`,provider:n[1].replace(/[.,]$/,``),deepLink:`/settings/capabilities/models`,message:t}:null}function KW(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function qW(e){let t=e.match(/^ {0,3}(`{3,}|~{3,})(.*)$/),n=t?.[1];return!n||!t?null:{marker:n[0],length:n.length,rest:t[2]??``}}function JW(e){let t=null,n=null,r=0;for(let i of e.match(/[^\n]*(?:\n|$)/g)??[]){if(!i)continue;let e=i.endsWith(`
|
|
14
|
+
`)?i.slice(0,-1):i;if(!n){let n=qW(e);if(n){if(!t){if(n.marker===`~`||!n.rest.includes("`")){t={marker:n.marker,length:n.length},r+=i.length;continue}}else if(n.marker===t.marker&&n.length>=t.length&&!n.rest.trim()){t=null,r+=i.length;continue}}}if(!t)for(let t=0;t<e.length;){if(e[t]!=="`"||KW(e,t)){t+=1;continue}let i=t+1;for(;e[i]==="`";)i+=1;let a=i-t;n?n.delimiterLength===a&&(n=null):n={start:r+t,delimiterLength:a},t=i}r+=i.length}return t?null:n}function YW(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 XW(e){let t=e.replace(/\r$/,``);return t.slice(YW(t).length)}function ZW(e){return XW(e).trim().replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim())}function QW(e){return(XW(e).match(/\|/g)??[]).length}function $W(e){let t=XW(e).trim();return t?t.startsWith(`|`)?ZW(e).length>=2:QW(e)>=2:!1}function eG(e){let t=XW(e).trim();return t.includes(`-`)&&/^[\s|:-]+$/.test(t)}function tG(e){let t=XW(e).trim();return t.length>0&&/^[\s|:]+$/.test(t)}function nG(e){return ZW(e).filter(e=>e.includes(`-`)).length}function rG(e,t=``){return`${t}| ${Array.from({length:e},()=>`---`).join(` | `)} |`}function iG(e,t){let n=ZW(e);for(;n.length<t;)n.push(``);return`${YW(e)}| ${n.slice(0,t).join(` | `)} |`}function aG(e){return(e.match(/^\s*(```|~~~)/gm)??[]).length%2==1}function oG(e){let t=JW(e),n=t?e.slice(0,t.start):e;if(!n.includes(`|`)||aG(n))return n;let r=n.split(`
|
|
15
|
+
`),i=r.length-1;for(;i>0&&r[i-1]?.trim();)i--;let a=r.slice(i).findIndex(e=>$W(e));if(a<0)return n;let o=i+a,s=r[o]??``,c=ZW(s).length;if(c<2)return n;let l=YW(s),u=o+1,d=r[u];if(d===void 0)return`${n}${n.endsWith(`
|
|
16
|
+
`)?``:`
|
|
17
|
+
`}${rG(c,l)}`;if(!XW(d).trim()){let e=[...r];return e[u]=rG(c,l),e.join(`
|
|
18
|
+
`)}if(eG(d)&&nG(d)<c||tG(d)){let e=[...r];return e[u]=rG(c,l),e.join(`
|
|
19
|
+
`)}if(!eG(d))return n;let f=r.length-1,p=r[f]??``;if(f>u&&$W(p)&&!eG(p)&&!p.trim().endsWith(`|`)){let e=[...r];return e[f]=iG(p,c),e.join(`
|
|
20
|
+
`)}return n}function sG(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 cG=/^\s*\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)+\|?\s*$/m,lG=/^\s{0,3}(?:[-+*]|\d+[.)])\s+/m,uG=/^\s{0,3}```/gm;function dG(e){return(e.match(uG)?.length??0)%2==1?`code`:cG.test(e)?`table`:lG.test(e)?`list`:e.length>=4096?`long_text`:`plain`}var fG={plain:32,long_text:48,list:40,table:72,code:64},pG=48,mG=16,hG=6,gG=512;function _G({tailKind:e,latestParseMs:t}){let n=fG[e];return!Number.isFinite(t)||t<=16?n:Math.min(120,Math.max(n,Math.ceil(t*2)))}function vG({intervalMs:e,elapsedMs:t,firstCommit:n}){return n?Math.max(pG,e):Math.max(0,e-t)}function yG({visibleLength:e,pendingContent:t}){if(e>=t.length)return t.length;let n=Math.min(gG,Math.max(hG,Math.ceil(t.length/mG))),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 bG(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,xe(n,e.length)),!m.current){d.current=e,l(e);return}if(!t&&c!==e){Me(n,e.length-c.length),f.current!==null&&(window.clearTimeout(f.current),f.current=null),d.current=e,p.current=null,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=_G({tailKind:dG(e.slice(-8192)),latestParseMs:je(n)}),a=performance.now(),o=p.current,s=vG({intervalMs:r,elapsedMs:o===null?0:a-o,firstCommit:o===null});f.current=window.setTimeout(()=>{f.current=null;let e=u.current,t=yG({visibleLength:d.current.length,pendingContent:e}),r=e.slice(0,t);d.current=r,p.current=performance.now(),Ee(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 xG(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 SG(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-inset text-fg-secondary`,s;t[0]===r?s=t[1]:(s=r?(0,$.jsx)(Ye,{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-inset px-1.5 py-0.5 text-[11px] font-medium text-fg-secondary`,children:i?`Collecting changes`:`Review assistant`}):(0,$.jsx)(`div`,{className:q(`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)(Ne,{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(CG)}),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-inset 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 CG(e,t){let n=xG(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-inset 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 wG({resolution:e,conversationId:t,onClose:n}){let r=Pt(e=>e.language),i=kt(r).chat.fileReference,[a,o]=(0,Z.useState)(!1),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(!1),d=sa()&&!!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)(()=>{Yr(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 Eee(p.fileRefId,e,{conversationId: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:q(`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)(Ye,{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)(L,{className:`size-3.5 shrink-0 text-warning`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(ae,{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:q(`ml-auto inline-flex size-5 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.focusRingPanel),"aria-label":i.closeActions,children:(0,$.jsx)(Dt,{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:TG,disabled:l,onClick:()=>void _(`openExternal`),children:[(0,$.jsx)(te,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.openExternal})]}):null,d&&p?.capabilities.includes(`revealInFolder`)?(0,$.jsxs)(`button`,{type:`button`,className:TG,disabled:l,onClick:()=>void _(`revealInFolder`),children:[(0,$.jsx)(Le,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:i.revealInFolder})]}):null,p?.manageRoute?(0,$.jsxs)(`a`,{className:TG,href:`#${p.manageRoute}`,children:[(0,$.jsx)(DC,{className:`size-3`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:kt(r).nav.settings})]}):null,(0,$.jsxs)(`button`,{type:`button`,className:TG,onClick:g,children:[(0,$.jsx)(W,{className:`size-3`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:a?kt(r).chat.messageCopied:i.copyPath})]})]}),s?(0,$.jsx)(`p`,{role:`alert`,className:`text-warning`,children:s}):null]})}var TG=q(`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`,$r.focusRingPanel,$r.press);function EG(e){let t=(0,Q.c)(35),{content:n,compact:r,conversationId: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=bG(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=De(y),t[3]=y,t[4]=b);let x=b,S,C;t[5]!==d||t[6]!==_?(S=()=>{if(_)return Ce(d),()=>Oe(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);ke(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=GV(OG),D=Pt(DG),O;t[14]===D?O=t[15]:(O=kt(D),t[14]=D,t[15]=O);let k=O.chat.fileReference,[A,j]=(0,Z.useState)(null),M;t[16]!==i||t[17]!==k.resolveFailedDescription||t[18]!==a||t[19]!==E?(M=e=>{if(e.kind===`workspace-relative`){j({status:`loading`,target:e}),(async()=>{let t=await ba(e.path,{projectId:a?.trim()||void 0,conversationId:i?.trim()||void 0});if(t?.scope===`workspace`&&t.workspaceRelativePath){E(t.workspaceRelativePath,e.line,a,i),j(null);return}let n=!a&&i?await ba(e.path):null;if(n?.scope===`workspace`&&n.workspaceRelativePath){E(n.workspaceRelativePath,e.line),j(null);return}j(t?{status:`ready`,target:e,ref:t}:{status:`error`,target:e,message:k.resolveFailedDescription})})().catch(t=>j({status:`error`,target:e,message:t instanceof Error?t.message:String(t)}));return}j({status:`loading`,target:e}),ba(e.path,{projectId:a?.trim()||void 0,conversationId: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]=i,t[17]=k.resolveFailedDescription,t[18]=a,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)(Ne,{content:_&&e.isTail?oG(e.content):e.content,compact:r,className:q(`markdown-stream-block`,e.isTail&&`markdown-stream-tail`),onWorkspaceFileOpen:N,renderMermaid:!_||!e.isTail,mermaidActions:!0,streamingMetricsKey:d},e.key))}):(0,$.jsx)(Ne,{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]!==i||t[30]!==A?(F=A?(0,$.jsx)(wG,{resolution:A,conversationId:i,onClose:()=>j(null)}):null,t[29]=i,t[30]=A,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 DG(e){return e.language}function OG(e){return e.setPath}function kG(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.type===`text`){if(n)return(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(jW,{text:Ir(e.text??``),conversationId:s,document:f,contextRefs:p})},t);let i=GW(e.text??``);return i?(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(HW,{payload:i})},t):(0,$.jsx)(`div`,{className:`assistant-markdown-content markdown-content min-w-0`,children:(0,$.jsx)(EG,{content:e.text,compact:!0,conversationId:c??s,projectId:l,streaming:r,animateInitialContent:u,onProgressiveRenderComplete:d})},t)}if(e.type===`image`&&e.source?.data){let n=o??0;return a?(0,$.jsx)(`button`,{type:`button`,className:q(`inline-block max-w-full rounded-lg p-0 text-left`,$r.press,$r.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)(SG,{review:e},t):null}function AG(e){let t=(0,Q.c)(16),{content:n,isUser:r,isAssistantMessageStreaming:i,imagePreviewLabel:a,onImagePreview:o,conversationId:s,workspaceConversationId:c,projectId:l,progressiveRender:u,onProgressiveRenderComplete:d,userTurnDocument:f,contextRefs:p}=e,m=u===void 0?!1:u,h;t[0]!==n||t[1]!==r?(h=r?n:sG(n),t[0]=n,t[1]=r,t[2]=h):h=t[2];let g=h,_=g.findLastIndex(jG),v=g.at(-1),y=_<0&&v?.type===`text`&&v.presentation===void 0?g.length-1:-1,b=i?Math.max(_,y):-1,x;if(t[3]!==p||t[4]!==s||t[5]!==a||t[6]!==r||t[7]!==o||t[8]!==d||t[9]!==m||t[10]!==l||t[11]!==g||t[12]!==b||t[13]!==f||t[14]!==c){let e=[],n=0,i=0;for(;n<g.length;){let t=g[n];if(t.type===`thinking`||t.type===`tool_use`)for(;n<g.length;){let e=g[n];if(e.type!==`thinking`&&e.type!==`tool_use`)break;n++}else{let u=t.type===`image`?i++:0,h=kG(t,`block-${n}`,r,n===b,a,o,t.type===`image`?u:n,s,c,l,m,d,r&&n===0?f:void 0,r&&n===0?p:void 0);h&&e.push(h),n++}}x=(0,$.jsx)($.Fragment,{children:e}),t[3]=p,t[4]=s,t[5]=a,t[6]=r,t[7]=o,t[8]=d,t[9]=m,t[10]=l,t[11]=g,t[12]=b,t[13]=f,t[14]=c,t[15]=x}else x=t[15];return x}function jG(e){return e.type===`text`&&e.presentation===`pending`}var MG=[`readFile`,`editFile`,`writeFile`,`runCommand`,`memorySearch`,`codeSearch`,`webSearch`,`search`,`fetchUrl`,`openUrl`,`listDir`,`other`];function NG(e,t){return MM(e,t)}function PG(e){let t=new Map;for(let n of e){if(n.type!==`tool_use`)continue;let e=NG(n.name,n.activity),r=t.get(e)??{total:0,running:0};r.total+=1,(n.status===`running`||n.activity?.status===`running`)&&(r.running+=1),t.set(e,r)}return t}function FG(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 IG(e,t){return FG(e,t)}function LG(e,t,n){let r=PG(e),i=[];for(let e of MG){let t=r.get(e);t&&t.running>0&&i.push(e)}if(i.length===1){let r=[...e].reverse().find(e=>e.type===`tool_use`&&(e.status===`running`||e.activity?.status===`running`));return(r?n?.(r):null)||FG(i[0],t)}return i.length>1?t.mixed:e.some(e=>e.type===`thinking`&&e.streaming)?t.thinking:r.size>0?t.mixed:null}function RG(e){return e.filter(e=>e.type!==`thinking`||!!e.text?.trim()||!!e.streaming)}function zG(e,t,n){return LG(e,t,n)}function BG(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function VG(e){if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}}function HG(e){let t=BG(VG(e));if(!t)return[];let n=BG(t.details)?.results??t.results;if(Array.isArray(n))return n.map(BG).filter(e=>e!==null);let r=Array.isArray(t.content)?t.content:[];for(let e of r){let t=BG(e)?.text,n=BG(VG(t));if(Array.isArray(n?.results))return n.results.map(BG).filter(e=>e!==null)}return[]}function UG(e,t){return e.replace(/\{\{count\}\}/g,String(t))}function WG(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=HG(e.result),r=e.activity?.count??n.length;return{title:r===0?t.empty:UG(r===1?t.found_one:t.found_other,r),purpose:t.purpose}}function GG(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 KG(e){if(e==null)return null;try{return typeof e==`string`?JSON.parse(e):e}catch{return null}}function qG(e){let t=KG(e),n=t?.path??t?.file_path??t?.filepath??t?.file??t?.qualified_name??t?.function_name;return typeof n==`string`?n:``}function JG(e){let t=KG(e),n=t?.url??t?.href??t?.uri??t?.website;return typeof n==`string`?n:``}function YG(e){let t=KG(e),n=t?.command??t?.cmd??t?.shell??t?.script;return typeof n==`string`?n:``}var XG=120;function ZG(e){if(e==null)return``;let t=KG(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>XG?`${t.slice(0,XG)}…`:t}if(typeof e==`number`&&Number.isFinite(e))return String(e)}return``}function QG(e){return e.startsWith(`@@`)?`hunk`:e.startsWith(`+++`)||e.startsWith(`---`)||e.startsWith(`diff `)||e.startsWith(`index `)?`meta`:e.startsWith(`+`)?`add`:e.startsWith(`-`)?`del`:`context`}function $G(e){let t=e.details?.diff;if(typeof t!=`string`||t.length===0)return null;let n=t.split(`
|
|
21
|
+
`),r=[],i=0,a=0;for(let e of n){let t=QG(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 eK(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function tK(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(`
|
|
22
|
+
`)}function nK(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:eK(t.details),text:tK(t.content),isStructured:!0}:{details:null,text:``,isStructured:!1}}if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`))try{let e=eK(JSON.parse(t));if(e&&(`content`in e||`details`in e))return{details:eK(e.details),text:tK(e.content),isStructured:!0}}catch{}return{details:null,text:e,isStructured:!1}}return{details:null,text:String(e),isStructured:!1}}var rK=`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`,iK=`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`,aK=`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`,oK=`cursor-pointer select-none text-xs text-fg-subtle underline-offset-2 hover:text-fg-muted group-open:text-fg-muted`;function sK(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=q(rK,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 cK(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:iK,title:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var lK=(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 Yr(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=q(`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`,$r.transition,$r.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)(W,{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 uK(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:oK,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 dK(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(`pre`,{className:aK,children:n}),t[0]=n,t[1]=r),r}function fK(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>{let r=t[n];return r==null?``:String(r)})}function pK(e){return e.details??{}}var mK=/\[(\d+)\/(\d+) lines\]\s*$/;function hK(e){let t=e.match(mK);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 gK(e){return e.replace(mK,``).trimEnd()}var _K=(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=qG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=nK(n.result),t[2]=n.result,t[3]=o);let s=o.text,c;t[4]===s?c=t[5]:(c=hK(s),t[4]=s,t[5]=c);let l=c,u;t[6]===s?u=t[7]:(u=gK(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(`
|
|
23
|
+
`),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(`
|
|
24
|
+
`);if(e.length<=12){m=d;break bb1}m=`${e.slice(0,12).join(`
|
|
25
|
+
`)}\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)(cK,{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)(sK,{children:l&&l.shown<l.total?fK(r.linesPartial,{shown:l.shown,total:l.total}):fK(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)(lK,{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)(uK,{summary:r.viewContent,children:(0,$.jsx)(dK,{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 vK(e){let t=(0,Q.c)(4),{lines:n}=e,r;t[0]===n?r=t[1]:(r=n.map(yK),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 yK(e,t){return(0,$.jsx)(`div`,{className:q(`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 bK=(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=qG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=nK(n.result),t[2]=n.result,t[3]=o);let s=o,c;t[4]===s?c=t[5]:(c=$G(s),t[4]=s,t[5]=c);let l=c,u;t[6]===a?u=t[7]:(u=a?(0,$.jsx)(cK,{title:a,children:a}):null,t[6]=a,t[7]=u);let d;t[8]!==l||t[9]!==r?(d=l?(0,$.jsx)(sK,{tone:`accent`,children:fK(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)(lK,{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)(uK,{summary:r.viewDiff,defaultOpen:!0,children:(0,$.jsx)(vK,{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 xK(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 SK=(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=qG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=nK(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=pK(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)(cK,{title:a,children:a}):null,t[10]=a,t[11]=l),u=n==null?null:(0,$.jsx)(sK,{children:fK(r.sizeBadge,{size:xK(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)(lK,{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}),CK=12;function wK(e){if(!e)return{preview:``,truncated:!1};let t=e.split(`
|
|
26
|
+
`);return t.length<=CK?{preview:e,truncated:!1}:{preview:`${t.slice(0,CK).join(`
|
|
27
|
+
`)}\n…`,truncated:!0}}var TK=(0,Z.memo)(function(e){let t=(0,Q.c)(29),{block:n,labels:r}=e,i;t[0]===n.input?i=t[1]:(i=YG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=nK(n.result),t[2]=n.result,t[3]=o);let s=o,c=n.details&&typeof n.details==`object`&&!Array.isArray(n.details)?n.details:null,l;t[4]!==c||t[5]!==s?(l=c??pK(s),t[4]=c,t[5]=s,t[6]=l):l=t[6];let u=l,d=!!u.truncated,f=typeof u.aggregatedOutput==`string`&&u.aggregatedOutput.length>0?u.aggregatedOutput:s.text,p;t[7]===f?p=t[8]:(p=wK(f),t[7]=f,t[8]=p);let{preview:m}=p,h;t[9]===a?h=t[10]:(h=a?(0,$.jsxs)(cK,{title:a,children:[(0,$.jsx)(`span`,{className:`mr-1 text-fg-disabled`,children:`$`}),a]}):null,t[9]=a,t[10]=h);let g;t[11]!==r||t[12]!==d?(g=d?(0,$.jsx)(sK,{children:r.truncatedBadge}):null,t[11]=r,t[12]=d,t[13]=g):g=t[13];let _;t[14]!==a||t[15]!==r?(_=a?(0,$.jsx)(lK,{text:a,label:r.copyCommand,copiedLabel:r.copied}):null,t[14]=a,t[15]=r,t[16]=_):_=t[16];let v;t[17]!==h||t[18]!==g||t[19]!==_?(v=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:[h,g,_]}),t[17]=h,t[18]=g,t[19]=_,t[20]=v):v=t[20];let y;t[21]!==n.status||t[22]!==r||t[23]!==f||t[24]!==m?(y=f?(0,$.jsx)(uK,{summary:r.viewOutput,children:(0,$.jsx)(dK,{children:m})}):n.status===`running`?null:(0,$.jsx)(`p`,{className:`text-xs text-fg-disabled`,children:r.noOutput}),t[21]=n.status,t[22]=r,t[23]=f,t[24]=m,t[25]=y):y=t[25];let b;return t[26]!==v||t[27]!==y?(b=(0,$.jsxs)(`div`,{className:`space-y-1.5`,children:[v,y]}),t[26]=v,t[27]=y,t[28]=b):b=t[28],b}),EK=(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=JG(n.input),t[0]=n.input,t[1]=i);let a=i,o;t[2]===n.result?o=t[3]:(o=nK(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=pK(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(`
|
|
28
|
+
`);if(e.length<=12){i=s.text;break bb0}i=`${e.slice(0,12).join(`
|
|
29
|
+
`)}\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)(sK,{children:fK(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)(uK,{summary:r.viewContent,children:(0,$.jsx)(dK,{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}),DK=It(ai(e=>({showRawToolData:!1,setShowRawToolData:t=>e({showRawToolData:t})}),{name:`xopc-web-dev-view`}));function OK(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`}function kK(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;return typeof t.id!=`string`||!t.id||typeof t.conversationId!=`string`||typeof t.summary!=`string`||typeof t.expiresAt!=`string`||!Number.isFinite(Date.parse(t.expiresAt))||![`external_effect`,`destructive`,`sensitive`].includes(String(t.risk))||![`pending`,`approved`,`denied`,`consumed`,`expired`].includes(String(t.status))?null:t}function AK(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;if(t.kind!==`browser_approval_required`)return null;let n=t.error&&typeof t.error==`object`&&!Array.isArray(t.error)?t.error:null,r=n?.approval&&typeof n.approval==`object`&&!Array.isArray(n.approval)?n.approval:null;return!r||typeof r.id!=`string`||typeof r.summary!=`string`||typeof r.expiresAt!=`string`||![`external_effect`,`destructive`,`sensitive`].includes(String(r.risk))?null:r}function jK({approval:e,conversationId:t}){let[n,r]=(0,Z.useState)(!1),[i,a]=(0,Z.useState)(!1),o=(0,Z.useRef)(!1),s=(0,Z.useRef)(0),c=At(e=>e.conversationId),l=At(e=>e.baseUrl);(0,Z.useEffect)(()=>(o.current=!1,r(!1),a(!1),()=>{s.current+=1}),[e.id,t,c,l]);let u=Pt(e=>e.language)===`zh`?{title:`浏览器操作需要确认`,risk:`风险`,deny:`拒绝`,approve:`仅批准本次`,approved:`已批准本次操作,请让助手继续。`,denied:`已拒绝。`,consumed:`本次批准已使用。`,expired:`本次请求已过期,请让助手重新发起。`,error:`无法确认当前审批状态,请重新检查。`,retry:`重新检查`}:{title:`Browser action needs approval`,risk:`Risk`,deny:`Deny`,approve:`Approve once`,approved:`Approved once. Ask the agent to continue.`,denied:`Denied.`,consumed:`This approval has been used.`,expired:`This request expired. Ask the agent to request approval again.`,error:`Could not verify approval status. Check again.`,retry:`Check again`},{data:d,error:f,isLoading:p,mutate:m}=Xr(t&&c?[`browser-approval`,l,c,t,e.id]:null,async()=>{let n=(await J(Y(`/api/browser/approvals?conversationId=${encodeURIComponent(t)}`))).approvals.map(kK).find(n=>n?.id===e.id&&n.conversationId===t);if(!n)throw Error(`Approval unavailable`);return n},{refreshInterval:e=>e?.status===`pending`||e?.status===`approved`?1e4:0});(0,Z.useEffect)(()=>{if(!d||![`pending`,`approved`].includes(d.status))return;let e=Date.parse(d.expiresAt)-Date.now();if(e<=0)return;let t=window.setTimeout(()=>{m()},e+1);return()=>window.clearTimeout(t)},[d,m]);let h=d&&Date.parse(d.expiresAt)<=Date.now()&&[`pending`,`approved`].includes(d.status)?`expired`:d?.status;async function g(n){if(o.current||!d||h!==`pending`||Date.parse(d.expiresAt)<=Date.now())return;o.current=!0,r(!0),a(!1);let i=s.current,u=()=>i===s.current&&At.getState().conversationId===c&&At.getState().baseUrl===l;try{let r=kK((await J(Y(`/api/browser/approvals/respond`),{method:`POST`,body:JSON.stringify({id:e.id,decision:n})})).approval);if(!r||r.id!==e.id||r.conversationId!==t)throw Error(`Invalid approval response`);if(!u())return;await m(r,{revalidate:!1})}catch{if(!u())return;a(!0),m()}finally{u()&&(o.current=!1,r(!1))}}return(0,$.jsxs)(`section`,{className:`mt-2 rounded-xl border border-edge bg-surface-panel p-3 text-sm`,children:[(0,$.jsx)(`div`,{className:`font-medium text-fg`,children:u.title}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-pre-wrap break-words text-sm text-fg`,children:d?.summary??e.summary}),(0,$.jsxs)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:[u.risk,`: `,(d?.risk??e.risk).replace(`_`,` `)]}),p?(0,$.jsx)(ta,{className:`mt-3 h-8 w-full`}):f||i||!d?(0,$.jsxs)(`div`,{className:`mt-2`,children:[(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:u.error}),(0,$.jsx)(X,{className:`mt-2 h-8 text-xs`,disabled:n||!t||!c,onClick:()=>{a(!1),m()},children:u.retry})]}):h===`pending`?(0,$.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2`,children:[(0,$.jsx)(X,{className:`h-8 text-xs`,disabled:n,onClick:()=>void g(`denied`),children:u.deny}),(0,$.jsx)(X,{variant:`primary`,className:`h-8 text-xs`,disabled:n,onClick:()=>void g(`approved`),children:u.approve})]}):(0,$.jsx)(`p`,{role:`status`,className:`mt-2 text-xs text-fg-muted`,children:h?u[h]:u.error})]})}function MK(e){return e.split(`/`).filter(Boolean).map(e=>encodeURIComponent(e)).join(`/`)}function NK(e,t){let n=MK(t);return Y(`/api/extensions/${encodeURIComponent(e)}/assets/${n}`)}var PK={"capability:xopc.notes.create":`Create notes in this workspace`,"capability:xopc.notes.update":`Change notes in this workspace at an exact revision`,"capability:xopc.notes.append":`Append content to notes in this workspace`,"capability:xopc.notes.get":`Read notes in this workspace by ID`,"capability:xopc.notes.list":`Search and list notes in this workspace`,"capability:xopc.tasks.get":`Read tasks and their context in this workspace`,"capability:xopc.tasks.list":`Search and list tasks in this workspace`,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`,"config.read":`Read extension configuration`,"config.write":`Write extension configuration`,storage:`Read and write extension storage`,notification:`Show in-app notifications`},FK={"capability:xopc.notes.create":`在当前工作区创建笔记`,"capability:xopc.notes.update":`按精确版本修改当前工作区的笔记`,"capability:xopc.notes.append":`向当前工作区的笔记追加内容`,"capability:xopc.notes.get":`按 ID 读取当前工作区的笔记`,"capability:xopc.notes.list":`搜索和列出当前工作区的笔记`,"capability:xopc.tasks.get":`读取当前工作区的任务及其上下文`,"capability:xopc.tasks.list":`搜索和列出当前工作区的任务`,theme:`读取主题(浅色/深色)`,"agent.send":`向助手发送消息`,"agent.subscribe":`接收会话的实时助手流式事件`,"session.read":`列出并打开聊天会话`,"config.read":`读取扩展配置`,"config.write":`写入扩展配置`,storage:`读写扩展存储`,notification:`显示应用内通知`};function IK(e,t){let n=PK[e];return t===`zh`&&FK[e]?FK[e]:n??e}function LK(e){let t=(0,Q.c)(59),{open:n,onOpenChange:r,extensionId:i,extensionName:a,permissions:o,onConfirm:s,confirmDisabled:c}=e,l=Pt(zK),u,d,f,p,m,h,g,_,v,y,b,x;t[0]!==a||t[1]!==l||t[2]!==r||t[3]!==n?(m=kt(l).extensionUi,p=sn,b=n,x=r,f=rn,t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[130] bg-scrim`}),t[16]=y):y=t[16],d=an,_=`xopc-dialog-content 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-overlay p-5`,v=RK,u=on,h=`text-base font-semibold text-fg`,g=m.permissionTitle.replace(`{{name}}`,a),t[0]=a,t[1]=l,t[2]=r,t[3]=n,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]=x):(u=t[4],d=t[5],f=t[6],p=t[7],m=t[8],h=t[9],g=t[10],_=t[11],v=t[12],y=t[13],b=t[14],x=t[15]);let S;t[17]!==u||t[18]!==h||t[19]!==g?(S=(0,$.jsx)(u,{className:h,children:g}),t[17]=u,t[18]=h,t[19]=g,t[20]=S):S=t[20];let C;t[21]===i?C=t[22]:(C=(0,$.jsxs)(`span`,{className:`font-mono text-xs text-fg-muted`,title:i,children:[`(`,i,`)`]}),t[21]=i,t[22]=C);let w;t[23]!==m.permissionSubtitle||t[24]!==C?(w=(0,$.jsxs)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:[m.permissionSubtitle,` `,C]}),t[23]=m.permissionSubtitle,t[24]=C,t[25]=w):w=t[25];let T;t[26]!==l||t[27]!==o||t[28]!==m.permissionsNone?(T=o.length===0?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-fg-muted`,children:m.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:IK(e,l)},e))}),t[26]=l,t[27]=o,t[28]=m.permissionsNone,t[29]=T):T=t[29];let E;t[30]===m.deny?E=t[31]:(E=(0,$.jsx)(nn,{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-inset`,children:m.deny})}),t[30]=m.deny,t[31]=E);let D;t[32]!==s||t[33]!==r?(D=()=>{s(),r(!1)},t[32]=s,t[33]=r,t[34]=D):D=t[34];let O;t[35]!==c||t[36]!==m.allow||t[37]!==D?(O=(0,$.jsx)(`button`,{type:`button`,disabled:c,className:`rounded-lg bg-accent px-3 py-2 text-sm font-medium text-on-accent hover:opacity-90`,onClick:D,children:m.allow}),t[35]=c,t[36]=m.allow,t[37]=D,t[38]=O):O=t[38];let k;t[39]!==E||t[40]!==O?(k=(0,$.jsxs)(`div`,{className:`mt-6 flex justify-end gap-2`,children:[E,O]}),t[39]=E,t[40]=O,t[41]=k):k=t[41];let A;t[42]!==d||t[43]!==w||t[44]!==T||t[45]!==k||t[46]!==_||t[47]!==v||t[48]!==S?(A=(0,$.jsxs)(d,{className:_,onOpenAutoFocus:v,children:[S,w,T,k]}),t[42]=d,t[43]=w,t[44]=T,t[45]=k,t[46]=_,t[47]=v,t[48]=S,t[49]=A):A=t[49];let j;t[50]!==f||t[51]!==A||t[52]!==y?(j=(0,$.jsxs)(f,{children:[y,A]}),t[50]=f,t[51]=A,t[52]=y,t[53]=j):j=t[53];let M;return t[54]!==p||t[55]!==j||t[56]!==b||t[57]!==x?(M=(0,$.jsx)(p,{open:b,onOpenChange:x,children:j}),t[54]=p,t[55]=j,t[56]=b,t[57]=x,t[58]=M):M=t[58],M}function RK(e){return e.preventDefault()}function zK(e){return e.language}async function BK(e){let{grant:t}=await J(Y(`/api/extensions/${encodeURIComponent(e)}/ui-grant`));return t}async function VK(e,t){return(await J(Y(`/api/extensions/${encodeURIComponent(e)}/ui-grant`),{method:`POST`,body:JSON.stringify({manifestDigest:t})})).grant}var HK=48,UK=2e3,WK=`allow-scripts allow-forms allow-popups`;function GK(e){let t=(0,Q.c)(98),{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?UK:l,p=u===void 0?HK:u,m=Pt(YK),h;t[0]===m?h=t[1]:(h=kt(m),t[0]=m,t[1]=h);let g=h.extensionUi,_=_ee(),v=At(JK),y=At(qK),b=(0,Z.useRef)(0),x=(0,Z.useRef)(!1),S=(0,Z.useRef)(null),C=Bi(KK),w;t[2]!==n||t[3]!==r?(w=r?.trim()||n,t[2]=n,t[3]=r,t[4]=w):w=t[4];let T=w,E;t[5]!==n||t[6]!==o?(E=o?.trim()||`Extension ${n}`,t[5]=n,t[6]=o,t[7]=E):E=t[7];let D=E,O;t[8]===a?O=t[9]:(O=JSON.stringify(Array.from(a??[]).toSorted()),t[8]=a,t[9]=O);let k=O,A;t[10]===k?A=t[11]:(A=JSON.parse(k),t[10]=k,t[11]=A);let j=A,M=c??Math.min(f,Math.max(p,320)),N;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(N=[],t[12]=N):N=t[12];let P;t[13]===M?P=t[14]:(P={allowed:!1,dialogOpen:!1,reloadKey:0,loadError:!1,dynamicHeight:M,grantResolved:!1,grantError:null,manifestDigest:null,grantedPermissions:N},t[13]=M,t[14]=P);let[F,I]=(0,Z.useReducer)(ha,P),{allowed:L,dialogOpen:R,reloadKey:z,loadError:B,dynamicHeight:V,grantResolved:H,grantError:U}=F,W;t[15]===n?W=t[16]:(W=()=>{let e=!0;return x.current=!1,I({type:`patch`,patch:{allowed:!1,dialogOpen:!1,grantResolved:!1,grantError:null,manifestDigest:null,grantedPermissions:[]}}),BK(n).then(t=>{if(e){if(t.extensionId!==n||!t.manifestDigest)throw Error(`Could not verify extension permissions`);I({type:`patch`,patch:{allowed:t.granted,dialogOpen:!t.granted,grantResolved:!0,manifestDigest:t.manifestDigest,grantedPermissions:t.permissions}})}}).catch(t=>{e&&I({type:`patch`,patch:{allowed:!1,dialogOpen:!0,grantResolved:!0,grantError:t instanceof Error?t.message:String(t)}})}),()=>{e=!1,b.current+=1}},t[15]=n,t[16]=W);let G;t[17]!==n||t[18]!==v||t[19]!==y||t[20]!==j||t[21]!==z?(G=[n,j,v,y,z],t[17]=n,t[18]=v,t[19]=y,t[20]=j,t[21]=z,t[22]=G):G=t[22],(0,Z.useEffect)(W,G);let ee;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(ee=e=>I({type:`patch`,patch:{dialogOpen:e}}),t[23]=ee):ee=t[23];let te=ee,ne;t[24]!==i||t[25]!==n?(ne=NK(n,i),t[24]=i,t[25]=n,t[26]=ne):ne=t[26];let K=ne,re;t[27]!==L||t[28]!==n||t[29]!==c||t[30]!==f||t[31]!==p||t[32]!==_||t[33]!==F.grantedPermissions||t[34]!==F.manifestDigest?(re=()=>{if(!L)return;let e=S.current;if(!e)return;_.registerIframe(n,e,F.grantedPermissions,F.manifestDigest??void 0);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&&I({type:`patch`,patch:{dynamicHeight:Math.min(f,Math.max(p,t))}})});return()=>{t(),_.unregisterIframe(n)}},t[27]=L,t[28]=n,t[29]=c,t[30]=f,t[31]=p,t[32]=_,t[33]=F.grantedPermissions,t[34]=F.manifestDigest,t[35]=re):re=t[35];let ie;t[36]!==L||t[37]!==n||t[38]!==c||t[39]!==f||t[40]!==p||t[41]!==z||t[42]!==_||t[43]!==F.grantedPermissions||t[44]!==F.manifestDigest?(ie=[L,n,c,f,p,F.grantedPermissions,F.manifestDigest,_,z],t[36]=L,t[37]=n,t[38]=c,t[39]=f,t[40]=p,t[41]=z,t[42]=_,t[43]=F.grantedPermissions,t[44]=F.manifestDigest,t[45]=ie):ie=t[45],(0,Z.useLayoutEffect)(re,ie);let ae,oe;t[46]!==L||t[47]!==n||t[48]!==C||t[49]!==_?(ae=()=>{if(!L)return;let e=qr(C);_.sendEvent(n,`theme.changed`,e)},oe=[L,n,C,_],t[46]=L,t[47]=n,t[48]=C,t[49]=_,t[50]=ae,t[51]=oe):(ae=t[50],oe=t[51]),(0,Z.useEffect)(ae,oe);let se;t[52]!==V||t[53]!==c?(se=c===void 0?{width:`100%`,height:V,border:`none`}:{width:`100%`,height:c,border:`none`},t[52]=V,t[53]=c,t[54]=se):se=t[54];let ce=se,le;t[55]!==n||t[56]!==v||t[57]!==y||t[58]!==F.manifestDigest?(le=()=>{if(x.current||!F.manifestDigest)return;x.current=!0;let e=b.current,t=()=>b.current===e&&At.getState().baseUrl===v&&At.getState().conversationId===y;VK(n,F.manifestDigest).then(e=>{if(t()){if(!e.granted||e.extensionId!==n||e.manifestDigest!==F.manifestDigest)throw Error(`Permission grant was not persisted`);I({type:`patch`,patch:{allowed:!0,grantError:null}})}}).catch(e=>{t()&&I({type:`patch`,patch:{allowed:!1,manifestDigest:null,grantError:e instanceof Error?e.message:String(e)}})}).finally(()=>{t()&&(x.current=!1)})},t[55]=n,t[56]=v,t[57]=y,t[58]=F.manifestDigest,t[59]=le):le=t[59];let ue=le;if(!H){let e=`${s??``} min-h-32 animate-pulse rounded-lg bg-surface-inset`,n;return t[60]===e?n=t[61]:(n=(0,$.jsx)(`div`,{className:e}),t[60]=e,t[61]=n),n}if(!L){let e=!F.manifestDigest,r;t[62]!==R||t[63]!==T||t[64]!==n||t[65]!==ue||t[66]!==e||t[67]!==F.grantedPermissions?(r=(0,$.jsx)(LK,{open:R,onOpenChange:te,extensionId:n,extensionName:T,permissions:F.grantedPermissions,confirmDisabled:e,onConfirm:ue}),t[62]=R,t[63]=T,t[64]=n,t[65]=ue,t[66]=e,t[67]=F.grantedPermissions,t[68]=r):r=t[68];let i;t[69]!==s||t[70]!==R||t[71]!==U||t[72]!==z||t[73]!==g?(i=R?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:[U?(0,$.jsx)(`p`,{className:`mb-2 text-danger`,children:U}):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:()=>I({type:`patch`,patch:{reloadKey:z+1}}),children:g.reviewPermissions})]}),t[69]=s,t[70]=R,t[71]=U,t[72]=z,t[73]=g,t[74]=i):i=t[74];let a;return t[75]!==r||t[76]!==i?(a=(0,$.jsxs)($.Fragment,{children:[r,i]}),t[75]=r,t[76]=i,t[77]=a):a=t[77],a}let de;t[78]!==B||t[79]!==z||t[80]!==g?(de=B?(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:()=>{I({type:`patch`,patch:{loadError:!1,reloadKey:z+1}})},children:g.retryLoad})]}):null,t[78]=B,t[79]=z,t[80]=g,t[81]=de):de=t[81];let fe=`${n}-${i}-${z}`,pe;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(pe=()=>I({type:`patch`,patch:{loadError:!0}}),t[82]=pe):pe=t[82];let me;t[83]!==n||t[84]!==d||t[85]!==m||t[86]!==_?(me=()=>{I({type:`patch`,patch:{loadError:!1}}),_.sendInit(n,qr(Bi.getState().resolved),m),d!==void 0&&_.sendEvent(n,`widget.data`,d)},t[83]=n,t[84]=d,t[85]=m,t[86]=_,t[87]=me):me=t[87];let he;t[88]!==s||t[89]!==D||t[90]!==K||t[91]!==ce||t[92]!==fe||t[93]!==me?(he=(0,$.jsx)(`iframe`,{ref:S,className:s,title:D,src:K,style:ce,sandbox:WK,referrerPolicy:`no-referrer`,onError:pe,onLoad:me},fe),t[88]=s,t[89]=D,t[90]=K,t[91]=ce,t[92]=fe,t[93]=me,t[94]=he):he=t[94];let ge;return t[95]!==de||t[96]!==he?(ge=(0,$.jsxs)(`div`,{className:`flex flex-1 min-h-0 min-w-0 flex-col`,children:[de,he]}),t[95]=de,t[96]=he,t[97]=ge):ge=t[97],ge}function KK(e){return e.resolved}function qK(e){return e.conversationId}function JK(e){return e.baseUrl}function YK(e){return e.language}function XK(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)(GK,{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 ZK(e){let t=Kr();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])}function QK(e){if(e.scrollHeight<=e.clientHeight)return!1;let t=window.getComputedStyle(e).overflowY;return t===`auto`||t===`scroll`}function $K(e,t,n){let r=[],i=e instanceof HTMLElement?e:t;for(;i&&i!==t;)QK(i)&&r.push(i),i=i.parentElement;return t.scrollHeight>t.clientHeight&&r.push(t),n!==t&&r.push(n),r}function eq(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 tq(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=$K(e.target,t,n);e.preventDefault(),eq(e.deltaY*i,a)}var nq=`workflow`;function rq(e){return e.name===nq}function iq(e){if(e.result!=null){let t=aq(nK(e.result).details);if(t)return t}return aq(e.details)}function aq(e){if(!e||typeof e!=`object`)return null;let t=e;return typeof t.name!=`string`||!Array.isArray(t.agents)?null:e}function oq(e){return e.status===`running`?`running`:sq(e)||e.status===`error`?`failed`:`completed`}function sq(e){if(e.status===`error`)return!0;let t=pq(e).toLowerCase().trim();return!!(t.startsWith(`workflow failed`)||t.includes(`workflow graph validation failed`)||t.includes(`workflow aborted`)||t.includes(`timed out`)||lq(e))}function cq(e){let t=iq(e),n=pq(e).trim(),r=lq(e);return{headline:uq(n,r),detailLines:dq(n,r,t),snapshot:t,logs:t?.logs??[],failedAgents:t?.agents.filter(e=>e.status===`error`||e.status===`skipped`||!!e.error?.trim())??[]}}function lq(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=nK(e.result).details?.error;if(typeof t==`string`&&t.trim())return t.trim()}return``}function uq(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 dq(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=pq(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 pq(e){let t=lq(e);if(t)return t;if(e.result==null)return``;let n=nK(e.result);return n.text?n.text:typeof e.result==`string`?e.result:``}function mq(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(hq(t,n))}}let o=e.agents.filter(e=>!a.has(e.id));return{phases:i,unphased:o.length>0?hq(`unphased`,o):null}}function hq(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 gq(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 _q(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=_q(e,t);return n==null?``:gq(n)}function yq(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 bq(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 xq(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 Sq=(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=q(`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=q(`shrink-0 rounded-full px-2 py-0.5 text-[10px] font-medium`,xq(n.status)),t[27]=n.status,t[28]=C);let w;t[29]!==n||t[30]!==i?(w=bq(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:q(`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.focusRingPanel),"aria-label":i.close,onClick:o,children:(0,$.jsx)(Dt,{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=q(`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(Cq)]}):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)(jd,{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(wq)})]}):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 Cq(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 wq(e){return(0,$.jsx)(`div`,{className:`wrap-break-word`,children:e},e)}var Tq=(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]:(_=q(`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)(Ye,{className:`size-4 animate-spin text-accent-fg`}):(0,$.jsx)(Y_,{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=q(`inline-flex size-7 items-center justify-center rounded-md`,`text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.transition,$r.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)(jd,{className:`size-4`}):(0,$.jsx)(Fd,{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}),Eq={queued:(0,$.jsx)(z,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0}),running:(0,$.jsx)(Ye,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}),done:(0,$.jsx)(R,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}),error:(0,$.jsx)(L,{className:`size-3.5 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),skipped:(0,$.jsx)(Df,{className:`size-3.5 shrink-0 text-fg-disabled`,"aria-hidden":!0})},Dq=(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(Oq),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=Eq[n.status]??(0,$.jsx)(B,{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=q(`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`,_,$r.transition,$r.focusRingPanel),t[13]=_,t[14]=v);let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(T,{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 E;t[30]===p?E=t[31]:(E=p?(0,$.jsx)(`span`,{className:`ml-7 truncate text-xs text-fg-subtle`,children:p}):null,t[30]=p,t[31]=E);let D;return t[32]!==w||t[33]!==E||t[34]!==m||t[35]!==h||t[36]!==g||t[37]!==v?(D=(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,E]})}),t[32]=w,t[33]=E,t[34]=m,t[35]=h,t[36]=g,t[37]=v,t[38]=D):D=t[38],D});function Oq(e){return e+1}var kq=(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(`
|
|
30
|
+
`),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 T=C,E=s?.doneCount??0,D=s?.agentCount??0,O=v.length||s?.errorCount||0,k=!!S||T.length>0||g.length>0||b.length>0,[A,j]=(0,Z.useState)(!1),[M,N]=(0,Z.useState)(!1),[P,F]=(0,Z.useState)(!1),I=!A,L;t[14]!==S||t[15]!==m?(L=async()=>{await Yr(S||m)&&(F(!0),window.setTimeout(()=>F(!1),1500))},t[14]=S,t[15]=m,t[16]=L):L=t[16];let R=L,z=Aq[n],B;t[17]===f?B=t[18]:(B=(0,$.jsx)(`span`,{className:`shrink-0 text-sm font-semibold tracking-tight text-fg`,children:f}),t[17]=f,t[18]=B);let V;t[19]===m?V=t[20]:(V=(0,$.jsx)(`span`,{className:`min-w-0 truncate text-sm text-fg-muted`,children:m}),t[19]=m,t[20]=V);let H;t[21]!==B||t[22]!==V?(H=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[B,V]}),t[21]=B,t[22]=V,t[23]=H):H=t[23];let U;t[24]!==k||t[25]!==A||t[26]!==u.expandHint?(U=A&&k?(0,$.jsx)(`div`,{className:`mt-0.5 text-xs text-fg-subtle`,children:u.expandHint}):null,t[24]=k,t[25]=A,t[26]=u.expandHint,t[27]=U):U=t[27];let G;t[28]!==H||t[29]!==U?(G=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[H,U]}),t[28]=H,t[29]=U,t[30]=G):G=t[30];let ee;t[31]===I?ee=t[32]:(ee=(0,$.jsx)(`span`,{className:`inline-flex size-7 shrink-0 items-center justify-center rounded-md text-fg-muted`,"aria-hidden":!0,children:I?(0,$.jsx)(Fd,{className:`size-4`}):(0,$.jsx)(jd,{className:`size-4`})}),t[31]=I,t[32]=ee);let te;t[33]!==G||t[34]!==ee||t[35]!==z?(te=(0,$.jsxs)($.Fragment,{children:[z,G,ee]}),t[33]=G,t[34]=ee,t[35]=z,t[36]=te):te=t[36];let ne=te,K;t[37]===d?K=t[38]:(K=q(`min-w-0 rounded-xl border border-edge bg-surface-panel shadow-surface`,d),t[37]=d,t[38]=K);let re;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(re=()=>j(jq),t[39]=re):re=t[39];let ie=I?u.collapse:u.expand,ae=I?`rounded-t-xl border-b border-edge-subtle`:`rounded-xl`,oe;t[40]===ae?oe=t[41]:(oe=q(`flex w-full min-w-0 items-center gap-2 px-3 py-2 text-left`,ae,`hover:bg-surface-hover`,$r.transition,$r.focusRingPanel),t[40]=ae,t[41]=oe);let se;t[42]!==ne||t[43]!==I||t[44]!==ie||t[45]!==oe?(se=(0,$.jsx)(`button`,{type:`button`,onClick:re,"aria-expanded":I,"aria-label":ie,className:oe,children:ne}),t[42]=ne,t[43]=I,t[44]=ie,t[45]=oe,t[46]=se):se=t[46];let ce;t[47]!==k||t[48]!==P||t[49]!==S||t[50]!==E||t[51]!==O||t[52]!==R||t[53]!==I||t[54]!==u||t[55]!==g||t[56]!==l||t[57]!==M||t[58]!==T||t[59]!==c||t[60]!==D||t[61]!==m||t[62]!==b?(ce=I?(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:()=>N(Mq),"aria-expanded":M,className:q(`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`,$r.transition,$r.focusRingPanel),children:[(0,$.jsx)(`span`,{className:`truncate`,children:u.detailsHeading}),M?(0,$.jsx)(Fd,{className:`size-3`}):(0,$.jsx)(jd,{className:`size-3`})]}),(0,$.jsxs)(`button`,{type:`button`,onClick:R,className:q(`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`,$r.transition,$r.focusRingPanel),"aria-label":P?u.copyReasonDone:u.copyReason,title:P?u.copyReasonDone:u.copyReason,children:[P?(0,$.jsx)(w,{className:`size-3.5`}):(0,$.jsx)(W,{className:`size-3.5`}),(0,$.jsx)(`span`,{children:P?u.copyReasonDone:u.copyReason})]})]}),M?(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})]}),D>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(E,D,O)})]}):null,T.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:T.map(Nq)})]}):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)(Dq,{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(`
|
|
31
|
+
`)})]}):null,k?null:(0,$.jsx)(`div`,{className:`text-xs text-fg-disabled`,children:u.noExtraDetails})]}):null,t[47]=k,t[48]=P,t[49]=S,t[50]=E,t[51]=O,t[52]=R,t[53]=I,t[54]=u,t[55]=g,t[56]=l,t[57]=M,t[58]=T,t[59]=c,t[60]=D,t[61]=m,t[62]=b,t[63]=ce):ce=t[63];let le;return t[64]!==K||t[65]!==se||t[66]!==ce||t[67]!==f?(le=(0,$.jsxs)(`div`,{className:K,role:`group`,"aria-label":f,children:[se,ce]}),t[64]=K,t[65]=se,t[66]=ce,t[67]=f,t[68]=le):le=t[68],le}),Aq={validation_error:(0,$.jsx)(Ey,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0}),aborted:(0,$.jsx)(Nf,{className:`size-4 shrink-0 text-fg-muted`,"aria-hidden":!0}),timeout:(0,$.jsx)(XD,{className:`size-4 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),runtime_error:(0,$.jsx)(DO,{className:`size-4 shrink-0 text-rose-600 dark:text-rose-400`,"aria-hidden":!0})};function jq(e){return!e}function Mq(e){return!e}function Nq(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 Pq=(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)(Ye,{className:`size-3.5 shrink-0 animate-spin text-accent-fg`,"aria-hidden":!0}):n.complete?(0,$.jsx)(R,{className:`size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}):(0,$.jsx)(Pf,{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(Fq),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=q(`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`,$r.transition,$r.focusRingPanel),t[7]=h):h=t[7];let g=s&&`rotate-90`,_;t[8]===g?_=t[9]:(_=q(`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)(T,{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 E;t[29]!==S||t[30]!==C||t[31]!==w?(E=(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]=E):E=t[32];let D;t[33]!==s||t[34]!==p||t[35]!==x||t[36]!==E||t[37]!==v||t[38]!==y?(D=(0,$.jsxs)(`button`,{type:`button`,onClick:m,"aria-expanded":s,className:h,children:[v,p,y,x,E]}),t[33]=s,t[34]=p,t[35]=x,t[36]=E,t[37]=v,t[38]=y,t[39]=D):D=t[39];let O;t[40]!==i||t[41]!==o||t[42]!==s||t[43]!==n.agents||t[44]!==a?(O=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)(Dq,{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]=O):O=t[45];let k;return t[46]!==D||t[47]!==O?(k=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[D,O]}),t[46]=D,t[47]=O,t[48]=k):k=t[48],k});function Fq(e){return!e}function Iq(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(Bq),t[0]=n.agents,t[1]=c);let l=c,u;t[2]===n.agents?u=t[3]:(u=n.agents.filter(zq),t[2]=n.agents,t[3]=u);let d=u,f;t[4]===n.agents?f=t[5]:(f=n.agents.filter(Rq),t[4]=n.agents,t[5]=f);let p=f,m;t[6]===n.agents?m=t[7]:(m=n.agents.filter(Lq),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)(Vq,{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)(Vq,{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)(Vq,{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)(Vq,{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)(Hq,{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 Lq(e){return e.status===`queued`}function Rq(e){return e.status===`done`}function zq(e){return e.status===`error`||e.status===`skipped`}function Bq(e){return e.status===`running`}function Vq(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)(Dq,{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 Hq(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(Uq),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 Uq(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}function Wq(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)(Pq,{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)(Pq,{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(Gq)})]}):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 Gq(e){return(0,$.jsx)(`div`,{className:`break-words font-mono text-xs text-fg-subtle`,children:e},e)}var Kq=5,qq=(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)(Ne,{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)(Jq,{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 Jq(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)(Yq,{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)(Qq,{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)(eJ,{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)(Xq,{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 Yq(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)(Ne,{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 Xq(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,Kq),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(Zq),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 Zq(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 Qq(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,Kq),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($q),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 $q(e,t){return(0,$.jsx)(nJ,{item:e},`${e.title}:${e.file??``}:${t}`)}function eJ(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,Kq),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(tJ),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 tJ(e,t){return(0,$.jsx)(nJ,{item:{title:e.title,severity:e.severity,detail:e.impact,recommendation:e.mitigation}},`${e.title}:${t}`)}function nJ(e){let t=(0,Q.c)(19),{item:n}=e,r=yq(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:q(`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 rJ(e){return e?e.toLowerCase().startsWith(`zh`)?`zh`:`en`:`default`}var iJ={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`})},aJ={default:new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}),en:new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`}),zh:new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`})},oJ={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`})},sJ={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`})},cJ={en:new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`}),zh:new Intl.RelativeTimeFormat(`zh-CN`,{numeric:`auto`})};function lJ(e,t){return iJ[rJ(t)].format(e)}function uJ(e,t){return aJ[rJ(t)].format(e)}function dJ(e,t){return oJ[rJ(t)].format(e)}function fJ(e,t){return sJ[rJ(t)].format(e)}function pJ(e,t,n){return cJ[rJ(n)===`zh`?`zh`:`en`].format(e,t)}function mJ(e){return e===`zh`?`zh`:`en`}function hJ(e,t){let n=mJ(t),r=n===`en`?void 0:e.metadata.i18n?.[n],i=r?.examplePrompts&&r.examplePrompts.length>0?r.examplePrompts:e.metadata.examplePrompts??[];return{description:_J(r?.description,e.description),whenToUse:vJ(r?.whenToUse,e.metadata.whenToUse),examplePrompts:i}}function gJ(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 _J(e,t){return e?.trim()||t}function vJ(e,t){return e?.trim()||t?.trim()||void 0}function yJ(e,t,n){if(e.field===`goal`){t(e.text);return}n(t=>({...t,[e.field]:e.text}))}var bJ=[`all`,`code-review`,`planning`,`research`,`writing`,`productivity`];new Set(bJ);var xJ=[`all`,`builtin`,`user`];new Set(xJ);var SJ=`agent`,CJ=`layout`,wJ=`status`,TJ=`trigger`,EJ=new Set([`runs`,`library`]),DJ=new Set([`list`,`board`]),OJ=new Set([`all`,`attention`,`running`,`queued`,`succeeded`]);new Set([`result`,`process`,`artifacts`,`source`]);var kJ={"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`]},AJ={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}]},jJ=new Set([`queued`,`running`]);function MJ(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>String(t[n]??``))}function NJ(e,t){return e?fJ(e,t):`—`}function PJ(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 FJ(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 IJ(e,t){if(t===`all`)return!0;let n=e.metadata.tags.map(e=>e.toLowerCase());return kJ[t].some(e=>n.includes(e))}function LJ(e,t){return t===`all`?!0:t===`builtin`?e.metadata.builtIn:e.metadata.source===`user`}function RJ(e,t,n,r){let i=t.trim().toLowerCase();return e.filter(e=>!IJ(e,n)||!LJ(e,r)?!1:i?gJ(e).includes(i):!0)}function zJ(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(`
|
|
32
|
+
|
|
33
|
+
`));continue}if(n.kind===`questions`){t.push([e,...n.items.map(e=>`- ${e}`)].filter(Boolean).join(`
|
|
34
|
+
`));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(`
|
|
35
|
+
|
|
36
|
+
`))].filter(Boolean).join(`
|
|
37
|
+
|
|
38
|
+
`));continue}t.push([e,...n.items.map(e=>[`### ${e.title}`,e.severity?`**Severity:** ${e.severity}`:``,e.impact??``,e.mitigation??``].filter(Boolean).join(`
|
|
39
|
+
|
|
40
|
+
`))].filter(Boolean).join(`
|
|
41
|
+
|
|
42
|
+
`))}return t.filter(Boolean).join(`
|
|
43
|
+
|
|
44
|
+
`)}function BJ(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:typeof e.summary==`string`}function VJ(e){return BJ(e)?e:null}function HJ(e){let t=e.run.metadata?.conversationId?.trim();return t&&Wn.safeParse(t).success?t:null}function UJ(e,t){let n=`/chat/${encodeURIComponent(e)}`,r=t?.trim();return r?`${n}?${new URLSearchParams({draft:r}).toString()}`:n}function WJ(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 GJ(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 KJ(e,t){let n=t.trim();return!n||n===`all`?!0:GJ(e)===n}function qJ(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 JJ(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 YJ=(0,Z.memo)(function({block:e,startedAt:t,labels:n,className:r}){let i=oq(e),a=(0,Z.useMemo)(()=>iq(e),[e]),o=l(),s=i===`failed`?fq(e):null,c=i===`failed`?pq(e):``,[u,d]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{i===`completed`&&d(!0),(i===`running`||i===`failed`)&&d(!1)},[i]);let[f,p]=(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?gq(Date.now()-t):``:a?.durationMs==null?``:gq(a.durationMs),[i,t,a?.durationMs]),[x,S]=(0,Z.useState)(!1),C=(0,Z.useCallback)(async()=>{!a||!BJ(a.result)||await Yr(zJ(a.result))&&(S(!0),window.setTimeout(()=>S(!1),1500))},[a]),T=(0,Z.useCallback)(()=>{let e=a?.runId?.trim();if(e){o(WJ(e));return}let t=a?.name?.trim();t&&o(`/workflows?def=${encodeURIComponent(t)}`)},[o,a?.name,a?.runId]),E=(0,Z.useCallback)(()=>{let e=a?.name?.trim();e&&o(`/workflows?def=${encodeURIComponent(e)}©=1`)},[o,a?.name]),D=(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(WJ(t))},[o,a?.runId]);if(sq(e)||i===`completed`&&!a){let t=s??fq(e),i=cq(e),a=i.snapshot,o=m==null||!a?null:a.agents.find(e=>e.id===m)??null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(kq,{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)(Sq,{agent:o,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})}let O=a?.agentCount??0,k=a?.doneCount??0,A=a?mq(a):{phases:[],unphased:null},j=i===`running`&&a?n.currentProgressTpl(a.currentPhase,a.runningCount,a.doneCount,a.agentCount):void 0,M=(0,$.jsx)($.Fragment,{children:i===`completed`&&a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`button`,{type:`button`,onClick:C,className:q(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.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)(W,{className:`size-4`})}),a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:E,className:q(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.focusRingPanel),"aria-label":n.saveAria,title:n.saveTitle,children:(0,$.jsx)(GS,{className:`size-4`})}):null,a?.name?(0,$.jsx)(`button`,{type:`button`,onClick:T,className:q(`inline-flex size-7 items-center justify-center rounded-md text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.focusRingPanel),"aria-label":n.openInWorkflowsAria,title:n.openInWorkflowsTitle,children:(0,$.jsx)(Re,{className:`size-4`})}):null]}):null});return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`div`,{onClick:D,className:q(`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)(Tq,{name:a?.name??e.name,description:a?.description,status:i,doneCount:k,totalCount:O,durationText:b,metaText:j,collapsed:u,onToggleCollapsed:()=>d(e=>!e),actions:M,labels:n.header}),u?null:(0,$.jsxs)(`div`,{className:`space-y-3 px-3 py-2.5`,children:[i===`completed`&&a?(0,$.jsx)(qq,{result:BJ(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:q(`rounded-md px-2 py-1 text-xs font-medium text-accent-fg hover:bg-accent-soft`,$r.focusRingPanel),onClick:T,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&&(A.phases.length>0||A.unphased)?(0,$.jsxs)(`details`,{className:`group`,open:f,onToggle:e=>p(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)(Wq,{rollup:A,currentPhase:void 0,labels:n.phase,recentLogs:[],recentLogsHeading:n.recentLogsHeading,showAllLogsLabel:n.showAllLogs,logsExpanded:!1,onToggleLogs:()=>{},selectedAgentId:m,onSelectAgent:_}),(0,$.jsx)(Sq,{agent:g,snapshot:a,labels:n.checkDetail,className:`mt-2`,onClose:v})]})]}):null]})]})})}),XJ=(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(pY),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?OK(u,a):i==null?null:OK(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 ZJ(e){let t=(0,Q.c)(116),{workLog:n,pendingStatus:r,toolLabels:i,stepLabels:a,clusterLabels:o,cardLabels:s,conversationId:c,workflowOptions:l}=e,u=Pt(iY),[d,f]=(0,Z.useState)(!1),p,m;t[0]===r?(p=t[1],m=t[2]):(p=()=>{if(f(!1),r!==`waiting`)return;let e=window.setTimeout(()=>f(!0),3e3);return()=>window.clearTimeout(e)},m=[r],t[0]=r,t[1]=p,t[2]=m),(0,Z.useEffect)(p,m);let h;t[3]===u?h=t[4]:(h=kt(u),t[3]=u,t[4]=h);let g=h.chat,_=DK(rY),v;if(t[5]!==_||t[6]!==n.items){let e;t[8]===_?e=t[9]:(e=e=>e.type!==`thinking`||_,t[8]=_,t[9]=e),v=n.items.filter(e),t[5]=_,t[6]=n.items,t[7]=v}else v=t[7];let y=v,b;t[10]===n.items?b=t[11]:(b=n.items.filter(nY),t[10]=n.items,t[11]=b);let x=b,S=y.length,C=n.active,w=n.expandedByDefault&&C,[T,E]=(0,Z.useState)(null),[D,O]=(0,Z.useState)(w),k,A;t[12]!==C||t[13]!==w?(k=()=>{w?O(!0):C||O(!1)},A=[w,C],t[12]=C,t[13]=w,t[14]=k,t[15]=A):(k=t[14],A=t[15]),(0,Z.useEffect)(k,A);let j=!n.compact&&y.length>0&&(T??D),M=n.startedAt??null,N=n.durationMs??null,P;t[16]!==a.editFile||t[17]!==a.fetchUrl||t[18]!==a.listDirectory||t[19]!==a.openUrl||t[20]!==a.readFile||t[21]!==a.runCommand||t[22]!==a.searched||t[23]!==a.searchedCode||t[24]!==a.searchedMemory||t[25]!==a.searchedWeb||t[26]!==a.unknownTool||t[27]!==a.writeFile?(P={searchedWeb:a.searchedWeb,searchedMemory:a.searchedMemory,searchedCode:a.searchedCode,searched:a.searched,readFile:a.readFile,runCommand:a.runCommand,listDirectory:a.listDirectory,writeFile:a.writeFile,editFile:a.editFile,openUrl:a.openUrl,fetchUrl:a.fetchUrl,unknownTool:a.unknownTool},t[16]=a.editFile,t[17]=a.fetchUrl,t[18]=a.listDirectory,t[19]=a.openUrl,t[20]=a.readFile,t[21]=a.runCommand,t[22]=a.searched,t[23]=a.searchedCode,t[24]=a.searchedMemory,t[25]=a.searchedWeb,t[26]=a.unknownTool,t[27]=a.writeFile,t[28]=P):P=t[28];let F=P,I;t[29]!==o.ing||t[30]!==F||t[31]!==a.toolActivity?(I=(e,t)=>{let n=NG(e.name,e.activity);if(n!==`other`&&!gM(e.name)){let t=ZG(e.input),r=IG(n,o.ing);return t?`${r.replace(/[…]+$/,``)} · ${t}`:r}return jM(e.name,e.input,t,a.toolActivity,F,e.activity)},t[29]=o.ing,t[30]=F,t[31]=a.toolActivity,t[32]=I):I=t[32];let L=I,R;bb0:{if(!C){R=null;break bb0}let e;t[33]===L?e=t[34]:(e=e=>L(e,`running`),t[33]=L,t[34]=e);let n;t[35]!==x||t[36]!==o.ing||t[37]!==e?(n=zG(x,o.ing,e),t[35]=x,t[36]=o.ing,t[37]=e,t[38]=n):n=t[38],R=n}let z=R,B=r===`sending`?g.sendingLabel:r===`waiting`?d?g.waitingLongLabel:g.waitingLabel:null,V;t[39]!==x||t[40]!==g||t[41]!==a.workLogRunning?(V=x.some(tY)?g.organizingLabel:a.workLogRunning,t[39]=x,t[40]=g,t[41]=a.workLogRunning,t[42]=V):V=t[42];let H=V,U=r??(x.some(eY)?`tool`:x.some($J)?`thinking`:x.length>0?`organizing`:`working`),W=z??B??H;if(S===0&&!C)return null;let G;t[43]!==o.ing||t[44]!==a.editFile||t[45]!==a.fetchUrl||t[46]!==a.listDirectory||t[47]!==a.memoryActivity||t[48]!==a.openUrl||t[49]!==a.rawThinking||t[50]!==a.readFile||t[51]!==a.runCommand||t[52]!==a.searched||t[53]!==a.searchedCode||t[54]!==a.searchedMemory||t[55]!==a.searchedWeb||t[56]!==a.stepDetails||t[57]!==a.thoughts||t[58]!==a.thoughtsStreaming||t[59]!==a.toolActivity||t[60]!==a.toolError||t[61]!==a.unknownTool||t[62]!==a.writeFile?(G={thoughts:a.thoughts,thoughtsStreaming:a.thoughtsStreaming,searchedWeb:a.searchedWeb,searchedMemory:a.searchedMemory,searchedCode:a.searchedCode,searched:a.searched,readFile:a.readFile,stepDetails:a.stepDetails,runCommand:a.runCommand,listDirectory:a.listDirectory,writeFile:a.writeFile,editFile:a.editFile,openUrl:a.openUrl,fetchUrl:a.fetchUrl,unknownTool:a.unknownTool,rawThinking:a.rawThinking,toolError:a.toolError,toolActivity:a.toolActivity,runningActions:o.ing,memoryActivity:a.memoryActivity},t[43]=o.ing,t[44]=a.editFile,t[45]=a.fetchUrl,t[46]=a.listDirectory,t[47]=a.memoryActivity,t[48]=a.openUrl,t[49]=a.rawThinking,t[50]=a.readFile,t[51]=a.runCommand,t[52]=a.searched,t[53]=a.searchedCode,t[54]=a.searchedMemory,t[55]=a.searchedWeb,t[56]=a.stepDetails,t[57]=a.thoughts,t[58]=a.thoughtsStreaming,t[59]=a.toolActivity,t[60]=a.toolError,t[61]=a.unknownTool,t[62]=a.writeFile,t[63]=G):G=t[63];let ee=G,te;t[64]!==W||t[65]!==C||t[66]!==N||t[67]!==M||t[68]!==u||t[69]!==U||t[70]!==a.workLogComplete||t[71]!==a.workLogFailed||t[72]!==a.workLogPartial||t[73]!==a.workLogTitle||t[74]!==n.status?(te=C?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`block min-w-0 flex-1 truncate whitespace-nowrap`,"data-status-phase":U,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:W}),(0,$.jsx)(XJ,{active:C,startedAt:M,frozenMs:null,language:u,className:`ml-1.5 w-[8ch] shrink-0 whitespace-nowrap text-right tabular-nums text-fg-muted`})]}):(0,$.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:n.status===`failed`?a.workLogFailed:n.status===`partial`?a.workLogPartial:N==null?a.workLogTitle:a.workLogComplete}),t[64]=W,t[65]=C,t[66]=N,t[67]=M,t[68]=u,t[69]=U,t[70]=a.workLogComplete,t[71]=a.workLogFailed,t[72]=a.workLogPartial,t[73]=a.workLogTitle,t[74]=n.status,t[75]=te):te=t[75];let ne=te,K;t[76]!==C||t[77]!==N||t[78]!==M||t[79]!==u?(K=C?null:(0,$.jsx)(XJ,{active:!1,startedAt:M,frozenMs:N,language:u,className:`mt-0.5 tabular-nums text-xs text-fg-muted`}),t[76]=C,t[77]=N,t[78]=M,t[79]=u,t[80]=K):K=t[80];let re=K,ie=!n.compact&&S>0,ae=C||j?`w-full`:`w-fit max-w-full`,oe;t[81]===ae?oe=t[82]:(oe=q(`my-1 min-w-0`,ae),t[81]=ae,t[82]=oe);let se;t[83]!==C||t[84]!==D||t[85]!==j||t[86]!==re||t[87]!==ne||t[88]!==ie?(se=C||ie?(0,$.jsxs)(`button`,{type:`button`,disabled:!ie,className:q(`flex max-w-full min-w-0 items-center gap-2 rounded-lg px-1 py-1.5 text-left text-sm text-fg-muted`,C?`h-11`:`min-h-11`,C?`w-full`:`w-fit`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-panel`),onClick:ie?()=>E(e=>!(e??D)):void 0,"aria-expanded":ie?j:void 0,children:[(0,$.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:(0,$.jsx)(`span`,{className:`flex h-6 w-full min-w-0 items-center`,children:ne})}),(0,$.jsx)(`span`,{className:`flex shrink-0 items-start justify-end`,children:re}),ie?(0,$.jsx)(jd,{className:q(`size-4 shrink-0 text-fg-muted transition-transform motion-reduce:transition-none`,j&&`rotate-180`),"aria-hidden":!0}):null]}):null,t[83]=C,t[84]=D,t[85]=j,t[86]=re,t[87]=ne,t[88]=ie,t[89]=se):se=t[89];let ce;if(t[90]!==s||t[91]!==c||t[92]!==ee||t[93]!==i||t[94]!==n.items||t[95]!==l){let e;t[97]!==s||t[98]!==c||t[99]!==ee||t[100]!==i||t[101]!==l?(e=e=>(0,$.jsx)(dY,{block:e,toolLabels:i,stepLabels:ee,cardLabels:s,conversationId:c,workflowOptions:l,surfaceOnly:!0},e.id),t[97]=s,t[98]=c,t[99]=ee,t[100]=i,t[101]=l,t[102]=e):e=t[102],ce=n.items.filter(QJ).map(e),t[90]=s,t[91]=c,t[92]=ee,t[93]=i,t[94]=n.items,t[95]=l,t[96]=ce}else ce=t[96];let le;t[103]!==s||t[104]!==c||t[105]!==j||t[106]!==ee||t[107]!==i||t[108]!==y||t[109]!==l?(le=j?(0,$.jsx)(`div`,{className:`mt-1 w-full min-w-0 pb-1 pl-1`,children:(0,$.jsx)(aY,{blocks:y,toolLabels:i,stepLabels:ee,cardLabels:s,conversationId:c,workflowOptions:l,className:`assistant-steps-scroll max-h-[min(60vh,28rem)] overflow-y-auto pr-1 [scrollbar-gutter:stable]`})}):null,t[103]=s,t[104]=c,t[105]=j,t[106]=ee,t[107]=i,t[108]=y,t[109]=l,t[110]=le):le=t[110];let ue;return t[111]!==oe||t[112]!==se||t[113]!==ce||t[114]!==le?(ue=(0,$.jsxs)(`div`,{className:oe,children:[se,ce,le]}),t[111]=oe,t[112]=se,t[113]=ce,t[114]=le,t[115]=ue):ue=t[115],ue}function QJ(e){return e.type===`tool_use`}function $J(e){return e.type===`thinking`&&e.streaming}function eY(e){return e.type===`tool_use`&&e.status===`running`}function tY(e){return e.type===`thinking`}function nY(e){return e.type!==`text`}function rY(e){return e.showRawToolData}function iY(e){return e.language}function aY(e){let t=(0,Q.c)(23),{blocks:n,toolLabels:r,stepLabels:i,cardLabels:a,className:o,conversationId: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=>{tq(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=q(`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,conversationId:s,workflowOptions:c},e.type===`tool_use`?e.id:e.type===`text`?e.segmentId??`narration-${t}`:`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 pl-1`,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 oY(e){let t=(0,Q.c)(15),{toolName:n,toolResult:r}=e,i=Kr(),a=ZK(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)(XK,{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 sY=new Set([`readFile`,`editFile`,`writeFile`,`runCommand`,`fetchUrl`]),cY=240;function lY(e){let t=e.split(`
|
|
45
|
+
`).map(e=>e.trim()).find(Boolean)??``;return t.length<=cY?t:`${t.slice(0,cY)}…`}function uY(e,t,n){let r=nK(e.result),i=(e.details&&typeof e.details==`object`&&!Array.isArray(e.details)?e.details:null)??r.details;if(i?.timedOut===!0)return n.timedOut;if(typeof i?.exitCode==`number`&&i.exitCode!==0)return n.exitCodeNonZero.replace(/\{\{code\}\}/g,String(i.exitCode));for(let e of[`errorMessage`,`error`,`message`,`reason`]){let t=i?.[e];if(typeof t==`string`&&t.trim())return lY(t)}return lY(r.text)||t}function dY(e){let t=(0,Q.c)(106),{block:n,toolLabels:r,stepLabels:i,cardLabels:a,conversationId:o,workflowOptions:s,surfaceOnly:c}=e,l=c===void 0?!1:c,u=DK(fY),d;bb0:{if(n.type!==`tool_use`){d=``;break bb0}if(n.status===`running`){d=``;break bb0}let e=n.result;if(e==null){d=``;break bb0}if(typeof e==`string`){let n;t[0]===e?n=t[1]:(n=e.trim(),t[0]=e,t[1]=n),d=n;break bb0}try{let n;t[2]===e?n=t[3]:(n=JSON.stringify(e,null,2),t[2]=e,t[3]=n),d=n}catch{d=String(e)}}let f=d,p;bb1:{if(n.type!==`tool_use`||n.status===`running`||n.name!==`browser_use`){p=null;break bb1}let e;t[4]===n.details?e=t[5]:(e=AK(n.details),t[4]=n.details,t[5]=e),p=e}let m=p;if(n.type===`text`){let e;t[6]===n.text?e=t[7]:(e=n.text.trim(),t[6]=n.text,t[7]=e);let r=e;if(!r)return null;let i;return t[8]===r?i=t[9]:(i=(0,$.jsx)(`div`,{className:`min-w-0 text-sm leading-relaxed text-fg-muted`,children:(0,$.jsx)(Ne,{content:r,compact:!0})}),t[8]=r,t[9]=i),i}if(n.type===`thinking`){let e=!!n.streaming,r;t[10]===n.text?r=t[11]:(r=n.text?.trim()??``,t[10]=n.text,t[11]=r);let a=r;if(!u||!a)return null;let o=e?i.thoughtsStreaming:i.thoughts,s;t[12]===o?s=t[13]:(s=(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[12]=o,t[13]=s);let c;t[14]!==u||t[15]!==i.rawThinking||t[16]!==e||t[17]!==a?(c=u&&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]=u,t[15]=i.rawThinking,t[16]=e,t[17]=a,t[18]=c):c=t[18];let l;return t[19]!==s||t[20]!==c?(l=(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[s,c]})}),t[19]=s,t[20]=c,t[21]=l):l=t[21],l}if(rq(n)){if(!l)return null;let e;return t[22]!==n||t[23]!==o||t[24]!==s.labels?(e=(0,$.jsx)(YJ,{block:n,startedAt:n.startedAt,conversationId:o,labels:s.labels}),t[22]=n,t[23]=o,t[24]=s.labels,t[25]=e):e=t[25],e}let h=n.status===`running`||n.activity?.status===`running`,g=n.status===`error`||n.activity?.status===`failed`,_;t[26]!==n||t[27]!==a||t[28]!==g||t[29]!==i.toolError?(_=g?uY(n,i.toolError,a):``,t[26]=n,t[27]=a,t[28]=g,t[29]=i.toolError,t[30]=_):_=t[30];let v=_,b=f,x=h&&n.details&&typeof n.details==`object`&&!Array.isArray(n.details)&&typeof n.details.text==`string`?n.details.text:``,S=b??``;if(S)try{let e;t[31]===S?e=t[32]:(e=JSON.stringify(JSON.parse(S),null,2),t[31]=S,t[32]=e),S=e}catch{}let C,w,T,E;if(t[33]!==n||t[34]!==g||t[35]!==h||t[36]!==i.editFile||t[37]!==i.fetchUrl||t[38]!==i.listDirectory||t[39]!==i.memoryActivity||t[40]!==i.openUrl||t[41]!==i.readFile||t[42]!==i.runCommand||t[43]!==i.runningActions||t[44]!==i.searched||t[45]!==i.searchedCode||t[46]!==i.searchedMemory||t[47]!==i.searchedWeb||t[48]!==i.toolActivity||t[49]!==i.toolError||t[50]!==i.unknownTool||t[51]!==i.writeFile){w=NG(n.name,n.activity),C=sY.has(w),T=w===`memorySearch`?WG(n,i.memoryActivity):null;let e={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},r=w===`other`||gM(n.name);E=g?i.toolError:T?.title??(h&&!r?IG(w,i.runningActions):jM(n.name,n.input,h?`running`:`completed`,i.toolActivity,e,n.activity)),t[33]=n,t[34]=g,t[35]=h,t[36]=i.editFile,t[37]=i.fetchUrl,t[38]=i.listDirectory,t[39]=i.memoryActivity,t[40]=i.openUrl,t[41]=i.readFile,t[42]=i.runCommand,t[43]=i.runningActions,t[44]=i.searched,t[45]=i.searchedCode,t[46]=i.searchedMemory,t[47]=i.searchedWeb,t[48]=i.toolActivity,t[49]=i.toolError,t[50]=i.unknownTool,t[51]=i.writeFile,t[52]=C,t[53]=w,t[54]=T,t[55]=E}else C=t[52],w=t[53],T=t[54],E=t[55];let D=E,O;t[56]!==n.input||t[57]!==T?(O=T?``:ZG(n.input),t[56]=n.input,t[57]=T,t[58]=O):O=t[58];let k=O,A;t[59]===n.input?A=t[60]:(A=n.input===void 0?``:GG(n.input),t[59]=n.input,t[60]=A);let j=A,M;t[61]!==n||t[62]!==a||t[63]!==C||t[64]!==w?(M=C?w===`readFile`?(0,$.jsx)(_K,{block:n,labels:a}):w===`editFile`?(0,$.jsx)(bK,{block:n,labels:a}):w===`writeFile`?(0,$.jsx)(SK,{block:n,labels:a}):w===`runCommand`?(0,$.jsx)(TK,{block:n,labels:a}):w===`fetchUrl`?(0,$.jsx)(EK,{block:n,labels:a}):null:null,t[61]=n,t[62]=a,t[63]=C,t[64]=w,t[65]=M):M=t[65];let N=M;if(l){let e;t[66]!==n.name||t[67]!==n.result||t[68]!==g||t[69]!==h?(e=!h&&!g?(0,$.jsx)(oY,{toolName:n.name,toolResult:n.result}):null,t[66]=n.name,t[67]=n.result,t[68]=g,t[69]=h,t[70]=e):e=t[70];let r;t[71]!==m||t[72]!==o||t[73]!==h?(r=!h&&m?(0,$.jsx)(jK,{approval:m,conversationId:o},m.id):null,t[71]=m,t[72]=o,t[73]=h,t[74]=r):r=t[74];let i;return t[75]!==r||t[76]!==e?(i=(0,$.jsxs)($.Fragment,{children:[e,r]}),t[75]=r,t[76]=e,t[77]=i):i=t[77],i}let P=!h&&u,F;t[78]===D?F=t[79]:(F=(0,$.jsx)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1`,children:(0,$.jsx)(`span`,{className:`inline-flex max-w-full min-w-0 break-words text-sm text-fg-muted [overflow-wrap:anywhere]`,children:D})}),t[78]=D,t[79]=F);let I;t[80]!==T||t[81]!==i.memoryActivity?(I=T?(0,$.jsxs)(`div`,{className:`space-y-1 text-xs text-fg-muted`,children:[(0,$.jsx)(`p`,{children:T.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[80]=T,t[81]=i.memoryActivity,t[82]=I):I=t[82];let L;t[83]===v?L=t[84]:(L=v?(0,$.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-subtle`,children:v}):null,t[83]=v,t[84]=L);let R;t[85]!==k||t[86]!==C?(R=!C&&k?(0,$.jsx)(`p`,{className:`min-w-0 break-words text-xs text-fg-muted [overflow-wrap:anywhere]`,children:k}):null,t[85]=k,t[86]=C,t[87]=R):R=t[87];let z;t[88]===x?z=t[89]:(z=x?(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:x}):null,t[88]=x,t[89]=z);let B;t[90]!==a||t[91]!==C||t[92]!==S||t[93]!==j||t[94]!==P||t[95]!==i.stepDetails||t[96]!==r?(B=P?(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:C?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:[j?(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:j})]}):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:S||r.noOutput})]})]})]}):null,t[90]=a,t[91]=C,t[92]=S,t[93]=j,t[94]=P,t[95]=i.stepDetails,t[96]=r,t[97]=B):B=t[97];let V;return t[98]!==N||t[99]!==I||t[100]!==L||t[101]!==R||t[102]!==z||t[103]!==B||t[104]!==F?(V=(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1.5`,children:[F,N,I,L,R,z,B]})}),t[98]=N,t[99]=I,t[100]=L,t[101]=R,t[102]=z,t[103]=B,t[104]=F,t[105]=V):V=t[105],V}function fY(e){return e.showRawToolData}function pY(e){return e+1}function mY(e){let t=(0,Q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,$.jsx)(wa,{delayDuration:300,skipDelayDuration:100,children:n}),t[0]=n,t[1]=r),r}function hY(e){let t=(0,Q.c)(7),{label:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,$.jsx)(xa,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,$.jsx)(Ca,{children:(0,$.jsx)(Ta,{side:`top`,sideOffset:7,collisionPadding:12,className:`z-[100] max-w-[min(18rem,90vw)] rounded-md border border-edge bg-surface-panel px-2.5 py-1.5 text-xs text-fg shadow-popover`,children:n})}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsxs)(Sa,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function gY(e){return e===`zh`?bY():yY()}function _Y(){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 vY(){return{close:`关闭`,statusQueued:`排队中`,statusRunning:`运行中`,statusDone:`已完成`,statusError:`失败`,statusSkipped:`已跳过`,workedFor:e=>`已运行 ${e}`,statusHeading:`状态`,phaseHeading:`阶段`,elapsedHeading:`耗时`,currentStepHeading:`当前步骤`,executionHeading:`执行过程`,outputHeading:`产出`,stepsHeading:`步骤`,transcriptHeading:`Transcript`,promptHeading:`输入`,logsHeading:`工作流日志`,runningPlaceholder:`等待检查项更新…`}}function yY(){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:_Y(),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 bY(){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:vY(),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 xY={noteId:null,attachmentId:null,playing:!1,currentTime:0,duration:0,loading:!1},SY=null,CY=null,wY=null,TY=null;function EY(){return SY||(SY=new Audio,SY.addEventListener(`timeupdate`,()=>{OY.setState({currentTime:SY.currentTime})}),SY.addEventListener(`loadedmetadata`,()=>{let e=SY.duration;Number.isFinite(e)&&OY.setState({duration:e})}),SY.addEventListener(`ended`,()=>{OY.setState({playing:!1,currentTime:0}),SY.currentTime=0}),SY.addEventListener(`pause`,()=>{OY.setState({playing:!1})}),SY.addEventListener(`play`,()=>{OY.setState({playing:!0})})),SY}function DY(){wY&&TY&&Ve(wY,TY),CY=null,wY=null,TY=null}var OY=It()((e,t)=>({...xY,play:async(n,r,i)=>{let a=EY(),o=t();if(o.noteId===n&&o.attachmentId===r&&CY){a.play();return}a.pause(),DY(),e({noteId:n,attachmentId:r,playing:!1,currentTime:0,duration:i??0,loading:!0});try{let t=await We(n,r);CY=t,wY=n,TY=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}),DY()}},pause:()=>{EY().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=EY();n.currentTime=t,e({currentTime:t})},reset:()=>{EY().pause(),EY().src=``,DY(),e(xY)}})),kY=!1,AY=[`play`,`pause`,`stop`,`seekto`,`seekbackward`,`seekforward`];function jY(){return typeof navigator>`u`?void 0:navigator.mediaSession}function MY(e){let t=jY();if(!t)return;kY=!0;let n={play:e.resume,pause:e.pause,stop:e.stop,seekto:({seekTime:t})=>{t!==void 0&&e.seek(t)},seekbackward:({seekOffset:t})=>e.seek(e.position()-(t??10)),seekforward:({seekOffset:t})=>e.seek(e.position()+(t??10))};for(let e of AY)try{t.setActionHandler(e,n[e])}catch{}}function NY(e){let t=jY();if(!(!kY||!t)){typeof MediaMetadata<`u`&&t.metadata?.title!==e.source?.title&&(t.metadata=e.source?new MediaMetadata({title:e.source.title,artist:`xopc`}):null),t.playbackState=e.status===`playing`?`playing`:`paused`;try{t.setPositionState(e.durationComplete&&e.duration>0?{duration:e.duration,playbackRate:e.rate,position:Math.min(e.duration,Math.max(0,e.currentTime))}:void 0)}catch{}}}function PY(){let e=jY();if(!(!kY||!e)){kY=!1,e.metadata=null,e.playbackState=`none`;for(let t of AY)try{e.setActionHandler(t,null)}catch{}try{e.setPositionState()}catch{}}}var FY=/```[\s\S]*?```|~~~[\s\S]*?~~~/g,IY=/[^。!?!?\.\n]+[。!?!?\.]?|\n+/g;function LY(e){return e.replace(FY,`
|
|
46
|
+
`).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 RY(e){if(!e.trim())return``;let t=e.replace(FY,`
|
|
47
|
+
`),n;if(typeof DOMParser>`u`)n=LY(t);else{let e=Pe.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(`
|
|
48
|
+
`))}),n=r.body.textContent??``}return n.replace(/https?:\/\/\S+/gi,``).replace(/[\t ]+/g,` `).replace(/ *\n */g,`
|
|
49
|
+
`).replace(/\n{3,}/g,`
|
|
50
|
+
|
|
51
|
+
`).trim()}function zY(e,t=420){let n=e.trim();if(!n)return[];let r=Math.max(20,t),i=n.match(IY)??[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 BY(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 VY=`xopc:read-aloud-online-consent:v1`,HY=`read-aloud`,UY={source:null,status:`idle`,currentChunkIndex:0,chunkCount:0,currentTime:0,duration:0,durationComplete:!1,currentText:``,rate:1,error:null,consentRequired:!1},WY=null,GY=null,KY=null,qY=[],JY=[],YY=[],XY=new Map,ZY=null,QY=0,$Y=0,eX=null,tX=null,nX=!1;function rX(){if(nX)return!0;try{return localStorage.getItem(VY)===`accepted`}catch{return!1}}function iX(){for(let e of JY)e&&URL.revokeObjectURL(e);JY=[],YY=[],XY.clear()}function aX(e){return YY.slice(0,e).reduce((e,t)=>e+(t||0),0)}async function oX(e){let t=await e.json().catch(()=>({}));return typeof t.error==`string`?t.error:t.error?.message||`Speech request failed (${e.status})`}async function sX(e,t){let n=JY[e];if(n)return n;let r=XY.get(e);if(r)return r;let i=GY;if(!i||!qY[e])throw Error(`Speech chunk is unavailable`);let a=(async()=>{let n=await Mt(Y(`/api/voice/speech`),{method:`POST`,signal:ZY?.signal,body:JSON.stringify({text:qY[e],language:i.language})});if(!n.ok)throw Error(await oX(n));let r=await n.blob();if(!r.size)throw Error(`Speech service returned empty audio`);if(t!==QY)throw new DOMException(`Stale speech request`,`AbortError`);let a=URL.createObjectURL(r);return JY[e]=a,a})();XY.set(e,a);try{return await a}finally{XY.get(e)===a&&XY.delete(e)}}async function cX(e,t=0,n=!0){let r=QY,i=++$Y,a=lX();fX.setState({status:`preparing`,currentChunkIndex:e,currentText:qY[e]??``,currentTime:aX(e)+t,error:null}),a.pause();try{let o=await sX(e,r);if(r!==QY||i!==$Y||(eX!==e||a.getAttribute(`src`)!==o?(eX=e,tX=t,a.src=o):a.readyState===0?tX=t:(tX=null,a.currentTime=t),a.playbackRate=fX.getState().rate,n&&await a.play(),r!==QY||i!==$Y))return;fX.setState({status:n?`playing`:`paused`}),n&&(OY.getState().pause(),window.dispatchEvent(new CustomEvent(`xopc-voice-playback-start`,{detail:{id:HY}})),MY({...fX.getState(),position:()=>fX.getState().currentTime}),NY(fX.getState())),e+1<qY.length&&sX(e+1,r).catch(()=>void 0)}catch(e){if(r!==QY||i!==$Y||e instanceof DOMException&&e.name===`AbortError`)return;fX.setState({status:`error`,error:e instanceof Error?e.message:String(e)})}}function lX(){return WY||(WY=new Audio,WY.preload=`metadata`,WY.addEventListener(`loadedmetadata`,()=>{!WY||eX===null||!GY||(Number.isFinite(WY.duration)&&WY.duration>0&&(YY[eX]=WY.duration),tX!==null&&(WY.currentTime=tX,tX=null),fX.setState({duration:YY.reduce((e,t)=>e+t,0),durationComplete:YY.length>0&&YY.every(e=>e>0)}))}),WY.addEventListener(`timeupdate`,()=>{if(!WY||eX===null||tX!==null)return;let e=fX.getState();e.status!==`playing`&&e.status!==`paused`||fX.setState({currentTime:aX(eX)+WY.currentTime})}),WY.addEventListener(`pause`,()=>{fX.getState().status===`playing`&&fX.setState({status:`paused`})}),WY.addEventListener(`ended`,()=>{let e=fX.getState().status;if(!GY||e!==`playing`&&e!==`paused`)return;let t=fX.getState().currentChunkIndex+1;t<qY.length?cX(t):fX.setState({status:`ended`,currentTime:fX.getState().duration})}),WY.addEventListener(`error`,()=>{if(fX.getState().status!==`idle`){if(eX!==null){let e=JY[eX];e&&URL.revokeObjectURL(e),JY[eX]=null,YY[eX]=0,eX=null}$Y+=1,fX.setState({status:`error`,error:`Audio playback failed`,durationComplete:!1})}}),window.addEventListener(`xopc-voice-recording-start`,()=>fX.getState().pause()),window.addEventListener(`xopc-voice-playback-start`,e=>{let t=e.detail?.id;t&&t!==HY&&(PY(),fX.getState().pause())}),WY)}function uX(){PY(),QY+=1,$Y+=1,eX=null,tX=null,fX.setState({...UY,rate:fX.getState().rate}),ZY?.abort(),ZY=null,WY&&(WY.pause(),WY.removeAttribute(`src`),WY.load()),iX(),qY=[],GY=null}function dX(e){uX();let t=zY(e.text);if(!t.length){fX.setState({source:e.source,status:`error`,error:`There is no readable text`});return}GY=e,qY=t,JY=Array.from({length:qY.length},()=>null),YY=Array.from({length:qY.length},()=>0),ZY=new AbortController,OY.getState().pause(),fX.setState({source:e.source,status:`preparing`,currentChunkIndex:0,chunkCount:qY.length,currentTime:0,duration:0,error:null,consentRequired:!1}),cX(0)}var fX=It()((e,t)=>({...UY,requestStart:n=>{let r=t(),i=r.source?.type===n.source.type&&r.source.id===n.source.id;if(i&&(r.status===`playing`||r.status===`preparing`)&&GY?.text===n.text){t().pause();return}if(i&&(r.status===`paused`||r.status===`ended`||r.status===`error`)&&GY?.text===n.text){t().resume();return}if(!rX()){KY=n,e({consentRequired:!0});return}dX(n)},acceptConsent:()=>{nX=!0;try{localStorage.setItem(VY,`accepted`)}catch{}let t=KY;KY=null,e({consentRequired:!1}),t&&dX(t)},declineConsent:()=>{KY=null,e({consentRequired:!1})},pause:()=>{let n=t();n.status!==`playing`&&n.status!==`preparing`||($Y+=1,WY?.pause(),e({status:`paused`}))},resume:()=>{let e=t();if(!e.source||!GY||e.status===`preparing`||e.status===`playing`)return;let n=e.status===`ended`?0:e.currentChunkIndex;cX(n,e.status===`ended`?0:Math.max(0,e.currentTime-aX(n)))},seek:n=>{let r=t();if(!r.durationComplete||!Number.isFinite(n)||!GY)return;let i=Math.max(0,Math.min(n,r.duration));if(i===r.duration){$Y+=1,WY?.pause(),e({status:`ended`,currentTime:i});return}let a=0,o=i;for(;a<YY.length-1&&o>=YY[a];)o-=YY[a],a+=1;cX(a,o,r.status===`playing`)},stop:uX,setRate:t=>{let n=[.75,1,1.25,1.5,2].includes(t)?t:1;WY&&(WY.playbackRate=n),e({rate:n})}}));fX.subscribe(NY);var pX=(0,Z.forwardRef)(function(e,t){let n=(0,Q.c)(36),r,i,a,o,s,c,l;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],c=n[6],l=n[7]):({input:a,labels:o,className:i,showLabel:s,disabled:c,hideNativeTitle:l,...r}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s,n[6]=c,n[7]=l);let u=s===void 0?!1:s,d=c===void 0?!1:c,f=l===void 0?!1:l,p;n[8]===a?p=n[9]:(p=typeof a==`function`?a():a,n[8]=a,n[9]=p);let m=p,h=fX(mX),g=fX(hX),_=fX(gX),v=h?.type===m.source.type&&h.id===m.source.id,y=v?g:`idle`,b=y===`preparing`?o.preparing:y===`playing`?o.pause:y===`paused`?o.resume:y===`error`?o.retry:o.read,x;n[10]!==a||n[11]!==_?(x=()=>_(typeof a==`function`?a():a),n[10]=a,n[11]=_,n[12]=x):x=n[12];let S;n[13]!==d||n[14]!==m.text?(S=d||!m.text.trim(),n[13]=d,n[14]=m.text,n[15]=S):S=n[15];let C=f?void 0:b,w=v&&(y===`playing`||y===`paused`),T=u?`min-h-11 gap-1.5 px-2.5 text-sm font-medium sm:min-h-8 sm:text-xs`:`size-11 sm:size-9`,E=v&&`bg-surface-active text-accent`,D;n[16]!==i||n[17]!==E||n[18]!==T?(D=q(`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`,T,E,i),n[16]=i,n[17]=E,n[18]=T,n[19]=D):D=n[19];let O;n[20]===y?O=n[21]:(O=y===`preparing`?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):y===`playing`?(0,$.jsx)(et,{className:`size-4`,"aria-hidden":!0}):y===`paused`?(0,$.jsx)(nt,{className:`size-4`,"aria-hidden":!0}):y===`error`?(0,$.jsx)(it,{className:`size-4`,"aria-hidden":!0}):(0,$.jsx)(Gk,{className:`size-4`,"aria-hidden":!0}),n[20]=y,n[21]=O);let k;n[22]!==b||n[23]!==u?(k=u?(0,$.jsx)(`span`,{children:b}):null,n[22]=b,n[23]=u,n[24]=k):k=n[24];let A;return n[25]!==r||n[26]!==b||n[27]!==t||n[28]!==D||n[29]!==O||n[30]!==k||n[31]!==x||n[32]!==S||n[33]!==C||n[34]!==w?(A=(0,$.jsxs)(`button`,{...r,ref:t,type:`button`,onClick:x,disabled:S,title:C,"aria-label":b,"aria-pressed":w,className:D,children:[O,k]}),n[25]=r,n[26]=b,n[27]=t,n[28]=D,n[29]=O,n[30]=k,n[31]=x,n[32]=S,n[33]=C,n[34]=w,n[35]=A):A=n[35],A});function mX(e){return e.source}function hX(e){return e.status}function gX(e){return e.requestStart}function _X(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 vX(e){return e.filter(e=>e.type===`thinking`||e.type===`tool_use`)}function yX(e){return e.some(e=>e.type===`text`&&e.presentation!==`pending`&&e.presentation!==`narration`&&!!e.text?.trim())}function bX(e){let t=Ur(e,`running`);return t.category===`web`&&t.action===`search`}function xX(e){let t=[];for(let n of e)if(!(!bX(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 SX(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function CX(e){let t=SX(e);return t?Pn(t.delivery)??Pn(SX(t.details)?.delivery)??Pn(e):null}function wX(e){let t=CX(e.details);if(t)return t;let n=nK(e.result),r=CX(n.details);if(r)return r;let i=jn(n.text);if(i)return i;if(typeof e.result==`string`)try{return CX(JSON.parse(e.result))}catch{return null}return CX(e.result)}function TX(e){let t=e.indexOf(`.`);if(t<=0)return null;let n=e.slice(t+1);if(!/^[A-Za-z0-9_-]+$/.test(n))return null;try{let e=Uint8Array.from(atob(n.replace(/-/g,`+`).replace(/_/g,`/`)),e=>e.charCodeAt(0)),t=new TextDecoder(`utf-8`,{fatal:!0}).decode(e);return t&&!t.startsWith(`/`)&&!t.includes(`\\`)&&t.split(`/`).every(e=>e!==`.`&&e!==`..`&&e!==``)?t:null}catch{return null}}function EX(e){return e.normalize(`NFKC`).trim().replace(/\s+/g,` `).toLowerCase()}function DX(e){return e.operation===`opened`?e.presentation?.kind===`diff`||e.presentation?.kind===`inline_app`||e.presentation?.kind===`inline_preview`:!0}function OX(e){return e.flatMap(({key:e,delivery:t})=>t.presentation?.kind===`diff`?[{key:e,presentation:t.presentation}]:[])}function kX(e){return{truncated:e.flatMap(({delivery:e})=>e.presentation?.kind===`table`?[e.presentation]:[]).some(e=>e.truncated)}}function AX(e){let t=e.flatMap(({key:e,delivery:t})=>t.presentation?.kind===`inline_app`?[{key:e,delivery:t,presentation:t.presentation}]:[]);return[...new Map(t.map(e=>[`${e.presentation.reference.id}:${e.presentation.snapshot.sourceHash}`,e])).values()]}function jX(e){let t=e.flatMap(({key:e,delivery:t})=>t.presentation?.kind===`inline_preview`?[{key:e,delivery:t,presentation:t.presentation}]:[]);return[...new Map(t.map(e=>[`${e.presentation.reference.id}:${e.presentation.sourceHash}`,e])).values()]}function MX(e,t){let n=e.flatMap(({key:e,delivery:n})=>(n.presentation?.kind===`table`?n.presentation.items:n.presentation?[]:[n.primary,...n.related??[]]).flatMap((r,i)=>{if(!r)return[];let a=`${r.kind}:${r.id}`;return t?.has(a)?[]:[{key:`${e}:${i}:${a}`,delivery:n,reference:r}]})),r=[...new Map(n.map(e=>[`${e.reference.kind}:${e.reference.id}`,e])).values()],i=new Map;for(let e of r){if(e.reference.kind!==`task`)continue;let t=EX(e.reference.title);t&&i.set(t,e.reference.id)}return r.filter(e=>{if(e.reference.kind!==`task`)return!0;let t=EX(e.reference.title);return!t||i.get(t)===e.reference.id})}function NX(e){return DX(e)?e.presentation||e.related?.length?!0:e.primary?e.primary.kind!==`note`||e.operation===`created`||e.operation===`updated`:!1:!1}function PX({message:e,isStreaming:t,reasoningLevel:n}){let r=(e.content??[]).filter(e=>e.type===`review`||e.type===`text`&&e.presentation!==`pending`&&e.presentation!==`narration`),i=RG(vX(e.content??[])),a=(e.content??[]).filter(e=>e.type===`tool_use`?!0:n===`off`?!1:e.type===`thinking`?!!e.text?.trim()||!!e.streaming:e.type===`text`&&(e.presentation===`pending`||e.presentation===`narration`)&&!!e.text?.trim()),o=yX(r),s=i.filter(e=>e.type===`tool_use`),c=[...s].reverse().find(e=>e.status===`running`||e.activity?.status===`running`),l=new Map;for(let e of s){let t=wX(e);t&&NX(t)&&l.set(e.id,t)}let u=[...l].map(([e,t])=>({key:e,delivery:t})),d=_X(i,t?void 0:e.completedAt??e.timestamp),f=[e.timestamp,d.startedAt].filter(e=>Number.isFinite(e)),p=f.length>0?Math.min(...f):void 0,m=p!=null&&d.completedAt!=null?Math.max(0,d.completedAt-p):void 0,h=t?`running`:e.outcome?.status===`failed`?`failed`:e.outcome?.status===`partial`?`partial`:`completed`,g=(e.content??[]).filter(e=>e.type===`image`&&!!e.source?.data),_=new Set(e.outcome?.deliverables.map(e=>e.artifactId)),v=new Set(e.outcome?.deliverables.flatMap(e=>e.uri?[e.uri]:[])),y=[...CW(g),...e.attachments??[]].filter(e=>!(e.id&&_.has(e.id)||e.uri&&v.has(e.uri))),b;return b=t?c?`using_tool`:i.some(e=>e.type===`thinking`&&!!e.streaming)?`reasoning`:o?`answering`:`starting`:e.outcome?.status===`partial`||e.outcome?.status===`failed`?`partial`:`completed`,{answerContent:r,workLog:{items:a,active:t&&(a.length>0||!o),status:h,compact:n===`off`,expandedByDefault:n===`stream`&&t&&!o,startedAt:p,durationMs:m},answer:{started:o,showStreamingCursor:t&&o&&(a.length===0||b===`answering`)},lifecycle:{state:b,activeTool:b===`using_tool`?c:void 0},outcome:e.outcome,deliveries:u,attachments:y,sources:xX(s)}}function FX(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=kt(Pt(RX)),c=a.filter(LX),l=r??xX(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(IX),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 IX(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 LX(e){return e.type===`tool_use`}function RX(e){return e.language}var zX={task:_D,project:F_,note:hy,workflow_definition:kA,workflow_run:nt,automation:C,scene:lf,local_app:mo,chat_preview:fv,file:zg,session:Mv,settings:DC},BX={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:`自动化`},scene:{en:`Monitor`,zh:`智能关注`},local_app:{en:`App`,zh:`应用`},chat_preview:{en:`Chat preview`,zh:`对话预览`},file:{en:`File`,zh:`文件`},session:{en:`Conversation`,zh:`对话`},settings:{en:`Settings`,zh:`设置`}},VX={created:{en:`Created`,zh:`已创建`},updated:{en:`Updated`,zh:`已更新`},opened:{en:`Ready`,zh:`已就绪`},started:{en:`Started`,zh:`已启动`},completed:{en:`Completed`,zh:`已完成`},failed:{en:`Failed`,zh:`失败`}},HX={active:{en:`Active`,zh:`运行中`},completed:{en:`Completed`,zh:`已完成`},disabled:{en:`Disabled`,zh:`已停用`},enabled:{en:`Enabled`,zh:`已启用`},failed:{en:`Failed`,zh:`失败`},inbox:{en:`Inbox`,zh:`收件箱`},paused:{en:`Paused`,zh:`已暂停`},ready:{en:`Ready`,zh:`已就绪`},running:{en:`Running`,zh:`运行中`}};function UX(e,t){let n=e?.trim();return n?HX[n.toLowerCase()]?.[t]??n:null}function WX(e,t,n){let r=BX[t.kind][n],i=VX[e.operation][n],a=UX(t.status,n);return`${r} · ${a&&e.operation===`opened`?a:a&&a.toLowerCase()!==i.toLowerCase()?`${i} · ${a}`:a??i}`}function GX(e,t,n){return t.phase===`closed`?t.resolution===`done`?n===`zh`?`已完成`:`Completed`:n===`zh`?`已结束`:`Closed`:t.attention?.length?n===`zh`?`需要处理`:`Needs attention`:t.operationalState===`completed`?n===`zh`?`已完成`:`Completed`:t.operationalState&&{queued:{en:`Starting soon`,zh:`即将开始`},running:{en:`In progress`,zh:`正在进行`},verifying:{en:`Checking the result`,zh:`正在核对结果`},waiting:{en:`Waiting`,zh:`暂时等待`},blocked:{en:`Needs attention`,zh:`需要处理`}}[t.operationalState]?.[n]||(e.operation===`completed`?n===`zh`?`已完成`:`Completed`:e.operation===`failed`?n===`zh`?`遇到问题`:`Ran into a problem`:e.operation===`started`?n===`zh`?`已交办`:`Assigned`:n===`zh`?`待开始`:`Ready to start`)}function KX(e,t){return t===`zh`?`继续处理${BX[e.kind].zh}「${e.title}」(ID: ${e.id}):`:`Continue working on ${BX[e.kind].en.toLowerCase()} "${e.title}" (ID: ${e.id}): `}function qX(e){let t=(0,Q.c)(84),{delivery:n,reference:r,language:i,conversationId:a,projectId:o}=e,s=l(),c=b(),u=GV(YX),d=zX[r.kind],f;t[0]===r?f=t[1]:(f=An(r),t[0]=r,t[1]=f);let p=f,m;t[2]!==r.capabilities||t[3]!==r.id||t[4]!==r.kind?(m=r.kind===`file`&&r.capabilities.includes(`preview`)?TX(r.id):null,t[2]=r.capabilities,t[3]=r.id,t[4]=r.kind,t[5]=m):m=t[5];let h=m,g;t[6]!==a||t[7]!==h||t[8]!==o?(g=h&&(a?.trim()||o?.trim()),t[6]=a,t[7]=h,t[8]=o,t[9]=g):g=t[9];let _=!!g,v;t[10]!==_||t[11]!==r.capabilities||t[12]!==p?(v=_||!!(p&&r.capabilities.includes(`open`)),t[10]=_,t[11]=r.capabilities,t[12]=p,t[13]=v):v=t[13];let y=v,x;t[14]!==r.capabilities||t[15]!==r.kind?(x=r.kind!==`note`&&r.kind!==`task`&&r.capabilities.includes(`continue_in_chat`),t[14]=r.capabilities,t[15]=r.kind,t[16]=x):x=t[16];let S=x,C=n.operation===`failed`,w=At(JX),E;t[17]!==r.id||t[18]!==r.kind||t[19]!==w?(E=r.kind===`task`?[`task-delivery`,r.id,w]:null,t[17]=r.id,t[18]=r.kind,t[19]=w,t[20]=E):E=t[20];let D;t[21]===r.id?D=t[22]:(D=()=>oe(r.id),t[21]=r.id,t[22]=D);let O;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(O={revalidateOnFocus:!0},t[23]=O):O=t[23];let k=Xr(E,D,O),A;t[24]!==r.id||t[25]!==r.kind||t[26]!==k?(A=()=>{if(r.kind!==`task`)return;let e=e=>{let t=e.detail?.taskId;(!t||t===r.id)&&k.mutate()};return window.addEventListener(`task-changed-v2`,e),window.addEventListener(`gateway-realtime-connected`,e),()=>{window.removeEventListener(`task-changed-v2`,e),window.removeEventListener(`gateway-realtime-connected`,e)}},t[24]=r.id,t[25]=r.kind,t[26]=k,t[27]=A):A=t[27];let j;t[28]!==r.id||t[29]!==r.kind||t[30]!==k.mutate?(j=[r.kind,r.id,k.mutate],t[28]=r.id,t[29]=r.kind,t[30]=k.mutate,t[31]=j):j=t[31],(0,Z.useEffect)(A,j);let M;t[32]!==n||t[33]!==i||t[34]!==r||t[35]!==k.data?.attention||t[36]!==k.data?.operationalState||t[37]!==k.data?.task?(M=r.kind===`task`?GX(n,{phase:k.data?.task.phase,resolution:k.data?.task.resolution,operationalState:k.data?.operationalState??r.status,attention:k.data?.attention},i):[WX(n,r,i),r.summary?.trim()].filter(Boolean).join(` · `),t[32]=n,t[33]=i,t[34]=r,t[35]=k.data?.attention,t[36]=k.data?.operationalState,t[37]=k.data?.task,t[38]=M):M=t[38];let N=M,P;t[39]!==_||t[40]!==a||t[41]!==h||t[42]!==c||t[43]!==s||t[44]!==o||t[45]!==r.id||t[46]!==r.kind||t[47]!==p||t[48]!==u?(P=()=>{if(h&&_){u(h,null,o,a);return}if(r.kind===`task`){s(Ie(`${c.pathname}${c.search}`,r.id));return}p&&s(Ae(p,`${c.pathname}${c.search}`))},t[39]=_,t[40]=a,t[41]=h,t[42]=c,t[43]=s,t[44]=o,t[45]=r.id,t[46]=r.kind,t[47]=p,t[48]=u,t[49]=P):P=t[49];let F=P,I=r.kind,L=y?F:void 0,R=!y,z=y&&`cursor-pointer hover:bg-surface-hover/65 active:bg-surface-active/70`,B=!y&&`cursor-default`,V;t[50]!==z||t[51]!==B?(V=q(`flex min-h-14 min-w-0 flex-1 items-center gap-3 px-3 py-2 text-left`,z,$r.transition,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,B),t[50]=z,t[51]=B,t[52]=V):V=t[52];let H=C?`bg-danger-soft text-danger`:`bg-accent-soft/70 text-accent-fg`,U;t[53]===H?U=t[54]:(U=q(`flex size-8 shrink-0 items-center justify-center rounded-lg`,H),t[53]=H,t[54]=U);let W;t[55]===d?W=t[56]:(W=(0,$.jsx)(d,{className:`size-4`,strokeWidth:1.75}),t[55]=d,t[56]=W);let G;t[57]!==U||t[58]!==W?(G=(0,$.jsx)(`span`,{className:U,"aria-hidden":!0,children:W}),t[57]=U,t[58]=W,t[59]=G):G=t[59];let ee;t[60]===r.title?ee=t[61]:(ee=(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,title:r.title,children:r.title}),t[60]=r.title,t[61]=ee);let te;t[62]===N?te=t[63]:(te=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs leading-5 text-fg-muted`,title:N,children:N}),t[62]=N,t[63]=te);let ne;t[64]!==ee||t[65]!==te?(ne=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[ee,te]}),t[64]=ee,t[65]=te,t[66]=ne):ne=t[66];let K;t[67]===y?K=t[68]:(K=y?(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}):null,t[67]=y,t[68]=K);let re;t[69]!==L||t[70]!==R||t[71]!==V||t[72]!==G||t[73]!==ne||t[74]!==K?(re=(0,$.jsxs)(`button`,{type:`button`,onClick:L,disabled:R,className:V,children:[G,ne,K]}),t[69]=L,t[70]=R,t[71]=V,t[72]=G,t[73]=ne,t[74]=K,t[75]=re):re=t[75];let ie;t[76]!==S||t[77]!==i||t[78]!==r?(ie=S?(0,$.jsx)(`button`,{type:`button`,className:q(`m-2 inline-flex min-h-11 shrink-0 cursor-pointer items-center rounded-lg px-2.5 text-xs font-medium text-accent-fg`,`hover:bg-accent-soft active:bg-accent-soft/70`,$r.transition,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`),onClick:()=>XH(KX(r,i)),children:i===`zh`?`继续`:`Continue`}):null,t[76]=S,t[77]=i,t[78]=r,t[79]=ie):ie=t[79];let ae;return t[80]!==r.kind||t[81]!==re||t[82]!==ie?(ae=(0,$.jsxs)(`li`,{className:`flex min-w-0 items-stretch`,"data-product-delivery":I,children:[re,ie]}),t[80]=r.kind,t[81]=re,t[82]=ie,t[83]=ae):ae=t[83],ae}function JX(e){return e.conversationId}function YX(e){return e.setPath}function XX(e){let t=(0,Q.c)(24),{entries:n,language:r,conversationId:i,projectId:a}=e,o;t[0]!==n.length||t[1]!==r?(o=kt(r).chat.turnOutcome.fileCount.replace(`{{count}}`,String(n.length)),t[0]=n.length,t[1]=r,t[2]=o):o=t[2];let s=o,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=q(`flex min-h-14 cursor-pointer list-none items-center gap-3 px-3 py-2 text-left`,`hover:bg-surface-hover/65 active:bg-surface-active/70`,$r.transition,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`),t[3]=c):c=t[3];let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsx)(`span`,{className:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent-soft/70 text-accent-fg`,"aria-hidden":!0,children:(0,$.jsx)(Jg,{className:`size-4`,strokeWidth:1.75})}),t[4]=l):l=t[4];let u;t[5]===s?u=t[6]:(u=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-sm font-medium text-fg`,children:s}),t[5]=s,t[6]=u);let d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle transition-transform duration-150 ease-out group-open:rotate-90 motion-reduce:transition-none`,strokeWidth:1.75,"aria-hidden":!0}),t[7]=d):d=t[7];let f;t[8]===u?f=t[9]:(f=(0,$.jsxs)(`summary`,{className:c,children:[l,u,d]}),t[8]=u,t[9]=f);let p;if(t[10]!==i||t[11]!==n||t[12]!==r||t[13]!==a){let e;t[15]!==i||t[16]!==r||t[17]!==a?(e=e=>{let{key:t,delivery:n,reference:o}=e;return(0,$.jsx)(qX,{delivery:n,reference:o,language:r,conversationId:i,projectId:a},t)},t[15]=i,t[16]=r,t[17]=a,t[18]=e):e=t[18],p=n.map(e),t[10]=i,t[11]=n,t[12]=r,t[13]=a,t[14]=p}else p=t[14];let m;t[19]===p?m=t[20]:(m=(0,$.jsx)(`ul`,{className:`m-0 list-none divide-y divide-edge-subtle border-t border-edge-subtle p-0`,children:p}),t[19]=p,t[20]=m);let h;return t[21]!==f||t[22]!==m?(h=(0,$.jsx)(`li`,{"data-product-file-group":!0,children:(0,$.jsxs)(`details`,{className:`group`,children:[f,m]})}),t[21]=f,t[22]=m,t[23]=h):h=t[23],h}function ZX(e){let t=(0,Q.c)(9),{deliveries:n,language:r,excludedReferenceKeys:i,conversationId:a,projectId:o}=e,s,c;if(t[0]!==a||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==o){c=Symbol.for(`react.early_return_sentinel`);bb0:{let e=MX(n,i),t=e.filter($X),l=e.findIndex(QX);if(e.length===0){c=null;break bb0}s=e.map((e,n)=>{let{key:i,delivery:s,reference:c}=e;return c.kind!==`file`||t.length===1?(0,$.jsx)(qX,{delivery:s,reference:c,language:r,conversationId:a,projectId:o},i):n===l?(0,$.jsx)(XX,{entries:t,language:r,conversationId:a,projectId:o},`file-delivery-group`):null})}t[0]=a,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=s,t[6]=c}else s=t[5],c=t[6];if(c!==Symbol.for(`react.early_return_sentinel`))return c;let l;return t[7]===s?l=t[8]:(l=(0,$.jsx)($.Fragment,{children:s}),t[7]=s,t[8]=l),l}function QX(e){let{reference:t}=e;return t.kind===`file`}function $X(e){let{reference:t}=e;return t.kind===`file`}function eZ(e){let t=(0,Q.c)(20),{presentation:n}=e,r=Pt(tZ)===`zh`,i=r?`编辑预览`:`Edit preview`,a=r?`建议修改(尚未应用)`:`Proposed changes (not applied)`,o;t[0]===a?o=t[1]:(o=(0,$.jsx)(`h3`,{className:`text-sm font-medium text-fg`,children:a}),t[0]=a,t[1]=o);let s;t[2]===n.title?s=t[3]:(s=(0,$.jsx)(`p`,{className:`mt-1 whitespace-pre-wrap break-words text-sm text-fg-muted`,children:n.title}),t[2]=n.title,t[3]=s);let c;if(t[4]!==n.edits||t[5]!==r){let e;t[7]===r?e=t[8]:(e=(e,t)=>(0,$.jsxs)(`details`,{className:`rounded border border-edge-subtle p-2`,children:[(0,$.jsxs)(`summary`,{className:`cursor-pointer rounded text-xs text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[r?`替换范围`:`Replace range`,` `,e.from,`–`,e.to]}),(0,$.jsx)(`pre`,{className:`mt-2 whitespace-pre-wrap [overflow-wrap:anywhere] font-mono text-xs text-fg`,children:e.text})]},t),t[7]=r,t[8]=e),c=n.edits.map(e),t[4]=n.edits,t[5]=r,t[6]=c}else c=t[6];let l;t[9]===c?l=t[10]:(l=(0,$.jsx)(`div`,{className:`mt-2 max-h-80 space-y-2 overflow-y-auto`,children:c}),t[9]=c,t[10]=l);let u;t[11]!==n.truncated||t[12]!==r?(u=n.truncated?(0,$.jsx)(`p`,{role:`status`,className:`mt-2 text-xs text-fg-muted`,children:r?`仅显示部分内容,请查看完整工具结果。`:`Partial content shown. Inspect the full tool result.`}):null,t[11]=n.truncated,t[12]=r,t[13]=u):u=t[13];let d;return t[14]!==i||t[15]!==o||t[16]!==s||t[17]!==l||t[18]!==u?(d=(0,$.jsxs)(`section`,{className:`mt-2 rounded-lg border border-edge bg-surface-panel p-3`,"aria-label":i,children:[o,s,l,u]}),t[14]=i,t[15]=o,t[16]=s,t[17]=l,t[18]=u,t[19]=d):d=t[19],d}function tZ(e){return e.language}var nZ=2,rZ=(0,Z.createContext)(null);function iZ(e,t){return e.size===t.size&&[...e].every(e=>t.has(e))}function aZ(e){let t=(0,Q.c)(14),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Map,t[0]=r):r=t[0];let i=(0,Z.useRef)(r),a=(0,Z.useRef)(0),o=(0,Z.useRef)(null),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=new Set,t[1]=s):s=t[1];let[c,l]=(0,Z.useState)(s),u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=new Set,t[2]=u):u=t[2];let[d,f]=(0,Z.useState)(u),p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{if(document.visibilityState===`hidden`){l(uZ);return}let e=[...i.current.entries()].filter(lZ).sort(cZ),t=new Set(e.slice(0,nZ).map(sZ)),n=new Set(e.map(oZ));l(e=>iZ(e,t)?e:t),f(e=>iZ(e,n)?e:n)},t[3]=p):p=t[3];let m=p,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=(e,t)=>{let n=i.current.get(e);if(n&&o.current?.unobserve(n.element),!t){i.current.delete(e),m();return}i.current.set(e,{element:t,near:!1,visible:!1,manualPriority:n?.manualPriority??0,distance:1/0}),o.current?.observe(t)},t[4]=h):h=t[4];let g=h,_;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{let t=i.current.get(e);t&&(a.current+=1,t.manualPriority=a.current,t.near=!0,t.visible=!0,t.distance=0,m())},t[5]=_):_=t[5];let v=_,y,b;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>{if(typeof IntersectionObserver>`u`)return;o.current=new IntersectionObserver(e=>{for(let t of e){let e=[...i.current.values()].find(e=>e.element===t.target);if(!e)continue;let n=t.boundingClientRect;e.near=t.isIntersecting,e.visible=t.isIntersecting&&n.bottom>0&&n.top<window.innerHeight,e.distance=Math.abs((n.top+n.bottom)/2-window.innerHeight/2),e.near||(e.manualPriority=0)}m()},{rootMargin:`480px 0px`,threshold:0});for(let e of i.current.values())o.current.observe(e.element);let e=()=>m();return document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e),o.current?.disconnect(),o.current=null}},b=[m],t[6]=y,t[7]=b):(y=t[6],b=t[7]),(0,Z.useEffect)(y,b);let x;t[8]!==c||t[9]!==d?(x={activeIds:c,nearIds:d,register:g,activate:v},t[8]=c,t[9]=d,t[10]=x):x=t[10];let S=x,C;return t[11]!==n||t[12]!==S?(C=(0,$.jsx)(rZ.Provider,{value:S,children:n}),t[11]=n,t[12]=S,t[13]=C):C=t[13],C}function oZ(e){let[t]=e;return t}function sZ(e){let[t]=e;return t}function cZ(e,t){let[,n]=e,[,r]=t;return r.manualPriority-n.manualPriority||Number(r.visible)-Number(n.visible)||n.distance-r.distance}function lZ(e){let[,t]=e;return t.near||t.manualPriority>0}function uZ(e){return e.size?new Set:e}function dZ(e){let t=(0,Q.c)(16),n=(0,Z.useContext)(rZ),r=n?.register,i=n?.activate,a;t[0]!==e||t[1]!==r?(a=t=>r?.(e,t),t[0]=e,t[1]=r,t[2]=a):a=t[2];let o=a;if(!n){let e;return t[3]===o?e=t[4]:(e={active:!0,state:`active`,containerRef:o,activate:fZ},t[3]=o,t[4]=e),e}let s;t[5]!==e||t[6]!==n.activeIds?(s=n.activeIds.has(e),t[5]=e,t[6]=n.activeIds,t[7]=s):s=t[7];let c=s,l=c?`active`:n.nearIds.has(e)?`queued`:`dormant`,u;t[8]!==e||t[9]!==i?(u=()=>i?.(e),t[8]=e,t[9]=i,t[10]=u):u=t[10];let d;return t[11]!==c||t[12]!==o||t[13]!==l||t[14]!==u?(d={active:c,state:l,containerRef:o,activate:u},t[11]=c,t[12]=o,t[13]=l,t[14]=u,t[15]=d):d=t[15],d}function fZ(){}async function pZ(){return(await J(Y(`/api/local-apps`))).apps}async function mZ(e){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}`))).app}async function hZ(e){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/validate`),{method:`POST`})).validation}async function gZ(e,t){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/snapshots/${encodeURIComponent(t)}`))).snapshot}async function _Z(e,t){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/fix-guidance`),{method:`POST`,body:JSON.stringify(t)})).guidance}async function vZ(e,t,n){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/acceptance-runs`),{method:`POST`,body:JSON.stringify({sourceHash:t,...n})})).acceptance}async function yZ(e){return(await J(Y(`/api/local-apps`),{method:`POST`,body:JSON.stringify(e)})).app}async function bZ(e){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/install`),{method:`POST`})).app}async function xZ(e,t){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/releases/${encodeURIComponent(t)}/rollback`),{method:`POST`})).app}async function SZ(e,t){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/${t?`enable`:`disable`}`),{method:`POST`})).app}async function CZ(e){return(await J(Y(`/api/local-apps/${encodeURIComponent(e)}/install`),{method:`DELETE`})).app}var wZ=Object.freeze({source:`xopc-local-app-host`,version:1,type:`connect`});function TZ(e,t){let n=null,r=()=>{n?.close();let r=new MessageChannel;n=r.port1,n.onmessage=e=>t(e.data),n.start(),e.contentWindow?.postMessage(wZ,`*`,[r.port2])};return e.addEventListener(`load`,r),r(),()=>{e.removeEventListener(`load`,r),n?.close()}}function EZ(e){return e?.checks.filter(e=>e.status===`failed`).map(e=>e.message)??[]}function DZ(e){let t=e.filename?` (${e.filename}${e.line?`:${e.line}${e.column?`:${e.column}`:``}`:``})`:``;return`${e.message}${t}`}function OZ({previewId:e,reference:t,sourceHash:n,preferredHeight:r,language:i}){let a=l(),o=b(),s=(0,Z.useRef)(null),[c,u]=(0,Z.useState)(0),[d,f]=(0,Z.useState)(`booting`),[p,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)([]),[_,v]=(0,Z.useState)(!1),[y,x]=(0,Z.useState)(null),S=Math.min(720,Math.max(240,r)),C=dZ(e),w=Xr(C.active?[`inline-local-app-snapshot`,t.id,n]:null,()=>gZ(t.id,n),{revalidateOnFocus:!1,shouldRetryOnError:!1});(0,Z.useEffect)(()=>{let e=s.current;if(!e||!w.data?.previewUrl)return;f(`booting`),m(null),g([]);let t=window.setTimeout(()=>{f(e=>e===`booting`?`timeout`:e)},7e3),n=TZ(e,e=>{let t=Fn(e);if(t){if(t.type===`ready`){f(`healthy`);return}if(t.type===`error`){m(t.detail),f(`failed`),g(e=>[...e,{phase:`runtime`,message:DZ(t.detail),code:t.detail.kind}].slice(-20));return}if(t.type===`acceptance`&&t.detail.status===`failed`){f(`failed`),g(e=>[...e,...t.detail.checks.filter(e=>e.status===`failed`).map(e=>({phase:`acceptance`,code:e.id,message:e.message}))].slice(-20));return}t.type===`criteria`&&t.detail.status===`failed`&&(f(`failed`),g(e=>[...e,...t.detail.scenarios.filter(e=>e.status===`failed`).map(e=>({phase:e.failureKind===`runner`?`runner`:`acceptance`,code:e.id,message:`${e.name}: ${e.message}`}))].slice(-20)))}});return()=>{window.clearTimeout(t),n()}},[c,w.data?.previewUrl]);let T=()=>{let e=An(t);e&&a(Ae(e,`${o.pathname}${o.search}`))};if(!C.active)return(0,$.jsxs)(`section`,{ref:C.containerRef,className:`mt-3 overflow-hidden rounded-2xl border border-edge bg-surface-panel`,"data-inline-local-app":t.id,children:[(0,$.jsxs)(`header`,{className:`flex min-w-0 flex-wrap items-center gap-3 border-b border-edge-subtle px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,title:t.title,children:t.title}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:C.state===`queued`?i===`zh`?`正在等待预览资源`:`Waiting for a preview slot`:i===`zh`?`预览尚未加载`:`Preview not loaded`})]}),(0,$.jsxs)(X,{variant:`ghost`,className:`min-h-9 px-2.5 text-xs`,onClick:T,children:[(0,$.jsx)(te,{className:`size-4`}),i===`zh`?`打开`:`Open`]})]}),(0,$.jsx)(`div`,{className:`grid place-items-center bg-surface-base`,style:{height:S},children:(0,$.jsx)(X,{variant:`secondary`,onClick:C.activate,children:i===`zh`?`加载交互预览`:`Load interactive preview`})})]});if(w.isLoading)return(0,$.jsxs)(`section`,{ref:C.containerRef,className:`mt-3 overflow-hidden rounded-2xl border border-edge bg-surface-panel`,"aria-label":`Loading app preview`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge-subtle px-4 py-3`,children:[(0,$.jsx)(ta,{className:`h-5 w-40`}),(0,$.jsx)(ta,{className:`h-9 w-24`})]}),(0,$.jsx)(ta,{className:`m-3 w-[calc(100%-1.5rem)]`,style:{height:S}})]});let E=w.data;if(!E){let e=w.error,t=e instanceof Error?e.message:i===`zh`?`无法加载应用预览`:`Unable to load app preview`;return(0,$.jsx)(`section`,{ref:C.containerRef,className:`mt-3 rounded-2xl border border-danger/30 bg-danger-soft p-4 text-sm text-danger`,role:`alert`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(DO,{className:`size-4`}),t]})})}let D=E.validation.issues.map(e=>({phase:`build`,code:e.code,message:e.message}))??[],O=d===`timeout`?[{phase:`boot`,code:`boot_timeout`,message:`Preview did not report ready within 7 seconds.`}]:[],k=[...D,...h,...O],A=E.status===`invalid`||E.validation.status===`failed`,j=A||d===`failed`||d===`timeout`,M=A?i===`zh`?`校验失败`:`Validation failed`:d===`healthy`?i===`zh`?`运行正常`:`Running`:d===`booting`?i===`zh`?`正在启动`:`Starting`:d===`timeout`?i===`zh`?`启动超时`:`Start timed out`:i===`zh`?`运行错误`:`Runtime error`,N=()=>{x(null),u(e=>e+1)},P=async()=>{if(k.length){v(!0),x(null);try{XH((await _Z(t.id,{sourceHash:E.sourceHash,locale:i,diagnostics:k})).prompt)}catch(e){x(e instanceof Error?e.message:String(e))}finally{v(!1)}}};return(0,$.jsxs)(`section`,{ref:C.containerRef,className:`mt-3 overflow-hidden rounded-2xl border border-edge bg-surface-panel`,"data-inline-local-app":t.id,children:[(0,$.jsxs)(`header`,{className:`flex min-w-0 flex-wrap items-center gap-3 border-b border-edge-subtle px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,title:t.title,children:t.title}),(0,$.jsx)(`p`,{className:q(`mt-0.5 text-xs`,j?`text-danger`:`text-fg-muted`),"aria-live":`polite`,children:M})]}),(0,$.jsxs)(X,{variant:`ghost`,className:`min-h-9 px-2.5 text-xs`,onClick:N,"aria-label":i===`zh`?`重新加载预览`:`Reload preview`,children:[(0,$.jsx)(iS,{className:`size-4`}),i===`zh`?`重试`:`Retry`]}),(0,$.jsxs)(X,{variant:`ghost`,className:`min-h-9 px-2.5 text-xs`,onClick:T,children:[(0,$.jsx)(te,{className:`size-4`}),i===`zh`?`打开`:`Open`]})]}),(0,$.jsxs)(`div`,{className:`relative bg-surface-base`,style:{height:S},children:[E.previewUrl?(0,$.jsx)(`iframe`,{ref:s,title:i===`zh`?`${t.title} 交互预览`:`${t.title} interactive preview`,src:Y(E.previewUrl),sandbox:`allow-scripts allow-forms`,className:`h-full w-full border-0 bg-white`},c):null,E.previewUrl&&d===`booting`?(0,$.jsx)(`div`,{className:`pointer-events-none absolute inset-0 grid place-items-center bg-surface-base/75`,children:(0,$.jsx)(ta,{className:`h-10 w-40`})}):null]}),j?(0,$.jsxs)(`footer`,{className:`border-t border-danger/20 bg-danger-soft/60 px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,$.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-danger`,children:p?.message??k[0]?.message??(i===`zh`?`预览校验失败`:`Preview validation failed`)}),(0,$.jsxs)(X,{variant:`secondary`,className:`min-h-9 px-3 text-xs`,disabled:_||k.length===0,onClick:()=>void P(),children:[(0,$.jsx)(jA,{className:`size-4`}),_?i===`zh`?`生成修复建议…`:`Preparing fix…`:i===`zh`?`让 Coder 修复`:`Ask Coder to fix`]})]}),y?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-danger`,role:`alert`,children:y}):null]}):null]})}async function kZ(e,t){return(await J(Y(`/api/chat-previews/${encodeURIComponent(e)}/revisions/${encodeURIComponent(t)}`))).revision}async function AZ(e,t){return(await J(Y(`/api/chat-previews/${encodeURIComponent(e)}/fix-guidance`),{method:`POST`,body:JSON.stringify(t)})).guidance}async function jZ(e,t){return(await J(Y(`/api/chat-previews/${encodeURIComponent(e)}/promote`),{method:`POST`,body:JSON.stringify({sourceHash:t})})).app}function MZ(e,t){return e.replace(RegExp(`</${t}`,`gi`),`<\\/${t}`)}function NZ(e){let t=Nn.safeParse(e);return t.success?t.data:null}function PZ(e,t){let n=`(() => {
|
|
52
|
+
const channel = ${JSON.stringify(t)};
|
|
53
|
+
const bufferedErrors = [];
|
|
54
|
+
const send = (type, detail = {}) => parent.postMessage({
|
|
55
|
+
source: ${JSON.stringify(Mn)},
|
|
56
|
+
version: 1, channel, type, ...detail
|
|
57
|
+
}, '*');
|
|
58
|
+
const resize = () => send('resize', { height: Math.max(120, Math.min(2000,
|
|
59
|
+
Math.ceil(document.documentElement.getBoundingClientRect().height))) });
|
|
60
|
+
const report = (diagnostic) => { bufferedErrors.push(diagnostic); send('error', { diagnostic }); };
|
|
61
|
+
addEventListener('error', (event) => report({
|
|
62
|
+
kind: 'script_error', message: String(event.message || 'Script error'),
|
|
63
|
+
filename: event.filename || undefined, line: event.lineno || undefined,
|
|
64
|
+
column: event.colno || undefined
|
|
65
|
+
}));
|
|
66
|
+
addEventListener('unhandledrejection', (event) => report({
|
|
67
|
+
kind: 'unhandled_rejection', message: String(event.reason?.message || event.reason || 'Unhandled rejection')
|
|
68
|
+
}));
|
|
69
|
+
addEventListener('DOMContentLoaded', () => {
|
|
70
|
+
resize(); new ResizeObserver(resize).observe(document.documentElement);
|
|
71
|
+
setTimeout(() => {
|
|
72
|
+
send('ready');
|
|
73
|
+
bufferedErrors.forEach((diagnostic) => send('error', { diagnostic }));
|
|
74
|
+
}, 100);
|
|
75
|
+
});
|
|
76
|
+
})();`;return`<!doctype html>
|
|
77
|
+
<html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
|
|
78
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; connect-src 'none'; frame-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'">
|
|
79
|
+
<style>html,body{margin:0;min-height:100%;background:#fff;color:#111827;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}${MZ(e.styles,`style`)}</style>
|
|
80
|
+
</head><body>${e.markup}
|
|
81
|
+
<script>${MZ(n,`script`)}<\/script>
|
|
82
|
+
<script>${MZ(e.script,`script`)}<\/script>
|
|
83
|
+
</body></html>`}function FZ(e,t,n){let r=r=>{if(r.source!==e.contentWindow)return;let i=NZ(r.data);!i||i.channel!==t||n(i)};return window.addEventListener(`message`,r),()=>window.removeEventListener(`message`,r)}function IZ({leaseId:e,reference:t,sourceHash:n,preferredHeight:r,language:i}){let a=l(),o=(0,Z.useRef)(null),[s,c]=(0,Z.useState)(0),[u,d]=(0,Z.useState)(`booting`),[f,p]=(0,Z.useState)([]),[m,h]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(null),v=dZ(e),y=Math.min(720,Math.max(240,r)),b=(0,Z.useMemo)(()=>crypto.randomUUID(),[s,n]),x=Xr(v.active?[`chat-preview-revision`,t.id,n]:null,()=>kZ(t.id,n),{revalidateOnFocus:!1,shouldRetryOnError:!1}),S=x.data?PZ(x.data,b):void 0;(0,Z.useEffect)(()=>{let e=o.current;if(!e||!S)return;d(`booting`),p([]);let t=window.setTimeout(()=>{d(e=>e===`booting`?`timeout`:e)},7e3),n=FZ(e,b,t=>{t.type===`ready`&&d(`healthy`),t.type===`resize`&&(e.style.height=`${Math.min(720,Math.max(240,t.height))}px`),t.type===`error`&&(d(`failed`),p(e=>[...e,t.diagnostic].slice(-20)))});return()=>{window.clearTimeout(t),n()}},[b,S]);let C=()=>{_(null),c(e=>e+1)},w=async()=>{if(f.length){h(`fix`),_(null);try{XH((await AZ(t.id,{sourceHash:n,diagnostics:f,locale:i})).prompt)}catch(e){_(e instanceof Error?e.message:String(e))}finally{h(null)}}},T=async()=>{h(`promote`),_(null);try{let e=await jZ(t.id,n);a(`/local-apps/${encodeURIComponent(e.id)}`)}catch(e){_(e instanceof Error?e.message:String(e))}finally{h(null)}},E=`mt-3 overflow-hidden rounded-2xl border border-edge bg-surface-panel`;if(!v.active)return(0,$.jsxs)(`section`,{ref:v.containerRef,className:E,"data-inline-chat-preview":t.id,children:[(0,$.jsxs)(`header`,{className:`border-b border-edge-subtle px-4 py-3`,children:[(0,$.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:t.title}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:v.state===`queued`?i===`zh`?`正在等待预览资源`:`Waiting for a preview slot`:i===`zh`?`预览尚未加载`:`Preview not loaded`})]}),(0,$.jsx)(`div`,{className:`grid place-items-center bg-surface-base`,style:{height:y},children:(0,$.jsx)(X,{variant:`secondary`,className:`min-h-11`,onClick:v.activate,children:i===`zh`?`加载交互预览`:`Load interactive preview`})})]});if(x.isLoading)return(0,$.jsxs)(`section`,{ref:v.containerRef,className:E,"aria-busy":`true`,"aria-label":i===`zh`?`正在加载预览`:`Loading preview`,children:[(0,$.jsx)(`div`,{className:`border-b border-edge-subtle px-4 py-3`,children:(0,$.jsx)(ta,{className:`h-5 w-40`})}),(0,$.jsx)(ta,{className:`m-3 w-[calc(100%-1.5rem)]`,style:{height:y}})]});if(!x.data||!S){let e=x.error instanceof Error?x.error.message:i===`zh`?`无法加载预览`:`Unable to load preview`;return(0,$.jsx)(`section`,{ref:v.containerRef,className:`mt-3 rounded-2xl border border-danger/30 bg-danger-soft p-4 text-sm text-danger`,role:`alert`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(DO,{className:`size-4`}),e]})})}let D=u===`failed`||u===`timeout`,O=u===`healthy`?i===`zh`?`运行正常`:`Running`:u===`booting`?i===`zh`?`正在启动`:`Starting`:u===`timeout`?i===`zh`?`启动超时`:`Start timed out`:i===`zh`?`运行错误`:`Runtime error`;return(0,$.jsxs)(`section`,{ref:v.containerRef,className:E,"data-inline-chat-preview":t.id,children:[(0,$.jsxs)(`header`,{className:`flex min-w-0 flex-wrap items-center gap-2 border-b border-edge-subtle px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h3`,{className:`truncate text-sm font-semibold text-fg`,children:t.title}),(0,$.jsx)(`p`,{className:q(`mt-0.5 text-xs`,D?`text-danger`:`text-fg-muted`),"aria-live":`polite`,children:O})]}),(0,$.jsxs)(X,{variant:`ghost`,className:`min-h-11 px-3 text-xs`,onClick:C,"aria-label":i===`zh`?`重新加载预览`:`Reload preview`,children:[(0,$.jsx)(iS,{className:`size-4`}),i===`zh`?`重试`:`Retry`]}),(0,$.jsxs)(X,{variant:`secondary`,className:`min-h-11 px-3 text-xs`,disabled:m!==null,onClick:()=>void T(),children:[(0,$.jsx)(GS,{className:`size-4`}),m===`promote`?i===`zh`?`保存中…`:`Saving…`:i===`zh`?`保存为应用`:`Save as app`]})]}),(0,$.jsxs)(`div`,{className:`relative bg-surface-base`,style:{minHeight:y},children:[(0,$.jsx)(`iframe`,{ref:o,title:i===`zh`?`${t.title} 交互预览`:`${t.title} interactive preview`,srcDoc:S,sandbox:`allow-scripts allow-forms`,className:`block w-full border-0 bg-white`,style:{height:y}},s),u===`booting`?(0,$.jsx)(`div`,{className:`pointer-events-none absolute inset-0 grid place-items-center bg-surface-base/75`,children:(0,$.jsx)(ta,{className:`h-10 w-40`})}):null]}),D?(0,$.jsx)(`footer`,{className:`border-t border-danger/20 bg-danger-soft/60 px-4 py-3`,children:(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,$.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-danger`,role:`alert`,children:f.at(-1)?.message??(i===`zh`?`预览未能正常启动`:`The preview did not start correctly`)}),(0,$.jsxs)(X,{variant:`secondary`,className:`min-h-11 px-3 text-xs`,disabled:!f.length||m!==null,onClick:()=>void w(),children:[(0,$.jsx)(jA,{className:`size-4`}),m===`fix`?i===`zh`?`生成中…`:`Preparing…`:i===`zh`?`让 AI 修复`:`Ask AI to fix`]})]})}):null,g?(0,$.jsx)(`p`,{className:`border-t border-danger/20 px-4 py-2 text-xs text-danger`,role:`alert`,children:g}):null]})}function LZ(e){let t=(0,Q.c)(8),{children:n,label:r,className:i}=e,a;t[0]===i?a=t[1]:(a=q(`mt-2 w-full max-w-[28rem] self-start`,i),t[0]=i,t[1]=a);let o;t[2]===n?o=t[3]:(o=(0,$.jsx)(`div`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset shadow-surface`,children:n}),t[2]=n,t[3]=o);let s;return t[4]!==r||t[5]!==a||t[6]!==o?(s=(0,$.jsx)(`section`,{className:a,"aria-label":r,"data-turn-tail":!0,children:o}),t[4]=r,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function RZ(e){return{id:e.artifactId,name:e.title,type:e.kind,mimeType:e.mimeType,size:e.sizeBytes,uri:e.uri,workspaceRelativePath:e.workspaceRelativePath}}function zZ(e){let t=e.mimeType?.toLowerCase()??``,n=e.type?.toLowerCase()??``;return t.startsWith(`image/`)||n===`image`?ye:t.startsWith(`audio/`)||n===`audio`||n===`voice`?gg:t.startsWith(`video/`)||n===`video`?Eg:t.includes(`spreadsheet`)||[`spreadsheet`,`csv`,`xlsx`,`xls`].includes(n)?Fg:t.includes(`zip`)||[`archive`,`zip`].includes(n)?vo:n===`site`?kh:zg}function BZ(e,t,n){return!!(e.uri||li(e)||e.workspaceRelativePath?.trim()&&(t?.trim()||n?.trim()))}function VZ(e){let t=(0,Q.c)(46),{item:n,authToken:r,conversationId:i,projectId:a,onOpen:o}=e,s;t[0]!==r||t[1]!==i?(s={authToken:r,conversationId:i},t[0]=r,t[1]=i,t[2]=s):s=t[2];let c=sW(n.attachment,s),l;t[3]===n.attachment?l=t[4]:(l=zZ(n.attachment),t[3]=n.attachment,t[4]=l);let u=l,d,f,p;if(t[5]!==u||t[6]!==i||t[7]!==c.src||t[8]!==n.attachment||t[9]!==n.failed||t[10]!==n.href||t[11]!==n.meta||t[12]!==a){d=BZ(n.attachment,i,a);let e=d||!!n.href,r;t[16]!==u||t[17]!==c.src||t[18]!==n.failed?(r=c.src?(0,$.jsx)(`img`,{src:c.src,alt:``,className:`size-8 shrink-0 rounded-lg object-cover`,decoding:`async`,loading:`lazy`}):(0,$.jsx)(`span`,{className:q(`flex size-8 shrink-0 items-center justify-center rounded-lg`,n.failed?`bg-danger-soft text-danger`:`bg-accent-soft/70 text-accent-fg`),"aria-hidden":!0,children:(0,$.jsx)(u,{className:`size-4`,strokeWidth:1.75})}),t[16]=u,t[17]=c.src,t[18]=n.failed,t[19]=r):r=t[19];let o=n.attachment.name??`File`,s=n.attachment.name??`File`,l;t[20]!==o||t[21]!==s?(l=(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,title:o,children:s}),t[20]=o,t[21]=s,t[22]=l):l=t[22];let m;t[23]===n.meta?m=t[24]:(m=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs leading-5 text-fg-muted`,title:n.meta,children:n.meta}),t[23]=n.meta,t[24]=m);let h;t[25]!==l||t[26]!==m?(h=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[l,m]}),t[25]=l,t[26]=m,t[27]=h):h=t[27];let g=e?(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}):null,_;t[28]!==g||t[29]!==r||t[30]!==h?(_=(0,$.jsxs)($.Fragment,{children:[r,h,g]}),t[28]=g,t[29]=r,t[30]=h,t[31]=_):_=t[31],f=_,p=q(`flex min-h-14 w-full min-w-0 items-center gap-3 px-3 py-2 text-left`,e&&`cursor-pointer hover:bg-surface-hover/65 active:bg-surface-active/70`,$r.transition,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,!e&&`cursor-default`),t[5]=u,t[6]=i,t[7]=c.src,t[8]=n.attachment,t[9]=n.failed,t[10]=n.href,t[11]=n.meta,t[12]=a,t[13]=d,t[14]=f,t[15]=p}else d=t[13],f=t[14],p=t[15];let m=p;if(!d&&n.href){let e;return t[32]!==m||t[33]!==f||t[34]!==n.href?(e=(0,$.jsx)(`li`,{"data-result-attachment":!0,children:(0,$.jsx)(`a`,{href:n.href,target:`_blank`,rel:`noreferrer`,className:m,children:f})}),t[32]=m,t[33]=f,t[34]=n.href,t[35]=e):e=t[35],e}if(!d){let e;return t[36]!==m||t[37]!==f?(e=(0,$.jsx)(`li`,{className:m,"data-result-attachment":!0,children:f}),t[36]=m,t[37]=f,t[38]=e):e=t[38],e}let h;t[39]!==n.attachment||t[40]!==o?(h=()=>o(n.attachment),t[39]=n.attachment,t[40]=o,t[41]=h):h=t[41];let g;return t[42]!==m||t[43]!==f||t[44]!==h?(g=(0,$.jsx)(`li`,{"data-result-attachment":!0,children:(0,$.jsx)(`button`,{type:`button`,className:m,onClick:h,children:f})}),t[42]=m,t[43]=f,t[44]=h,t[45]=g):g=t[45],g}function HZ(e){let t=(0,Q.c)(26),{attachments:n,authToken:r,conversationId:i,projectId:a,onOpen:o,language:s}=e,c;t[0]!==n.length||t[1]!==s?(c=kt(s).chat.turnOutcome.fileCount.replace(`{{count}}`,String(n.length)),t[0]=n.length,t[1]=s,t[2]=c):c=t[2];let l=c,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=q(`flex min-h-14 cursor-pointer list-none items-center gap-3 px-3 py-2 text-left`,`hover:bg-surface-hover/65 active:bg-surface-active/70`,$r.transition,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`),t[3]=u):u=t[3];let d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(`span`,{className:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent-soft/70 text-accent-fg`,"aria-hidden":!0,children:(0,$.jsx)(Jg,{className:`size-4`,strokeWidth:1.75})}),t[4]=d):d=t[4];let f;t[5]===l?f=t[6]:(f=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-sm font-medium text-fg`,children:l}),t[5]=l,t[6]=f);let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle transition-transform duration-150 ease-out group-open:rotate-90 motion-reduce:transition-none`,strokeWidth:1.75,"aria-hidden":!0}),t[7]=p):p=t[7];let m;t[8]===f?m=t[9]:(m=(0,$.jsxs)(`summary`,{className:u,children:[d,f,p]}),t[8]=f,t[9]=m);let h;if(t[10]!==n||t[11]!==r||t[12]!==i||t[13]!==o||t[14]!==a){let e;t[16]!==r||t[17]!==i||t[18]!==o||t[19]!==a?(e=e=>(0,$.jsx)(VZ,{item:e,authToken:r,conversationId:i,projectId:a,onOpen:o},e.key),t[16]=r,t[17]=i,t[18]=o,t[19]=a,t[20]=e):e=t[20],h=n.map(e),t[10]=n,t[11]=r,t[12]=i,t[13]=o,t[14]=a,t[15]=h}else h=t[15];let g;t[21]===h?g=t[22]:(g=(0,$.jsx)(`ul`,{className:`m-0 list-none divide-y divide-edge-subtle border-t border-edge-subtle p-0`,children:h}),t[21]=h,t[22]=g);let _;return t[23]!==m||t[24]!==g?(_=(0,$.jsx)(`li`,{"data-result-attachment-group":!0,children:(0,$.jsxs)(`details`,{className:`group`,children:[m,g]})}),t[23]=m,t[24]=g,t[25]=_):_=t[25],_}function UZ(e,t){if(!e)return[];let n=kt(t).chat.turnOutcome;return e.deliverables.map(e=>{let t=RZ(e);return{key:`outcome:${e.artifactId}`,attachment:t,href:e.shareUrl,failed:e.availability===`failed`||e.availability===`missing`,meta:[n.availability[e.availability],e.sizeBytes===void 0?null:ui(e.sizeBytes)].filter(Boolean).join(` · `)}})}function WZ(e,t){let n=kt(t).chat.turnOutcome;return(e??[]).map((e,t)=>({key:`attachment:${e.id??e.uri??e.name??t}`,attachment:e,meta:[n.generatedFile,e.mimeType,typeof e.size==`number`?ui(e.size):null].filter(Boolean).join(` · `)}))}function GZ(e){let t=new Set;for(let n of e?.deliverables??[])for(let e of[n.artifactId,n.sourceFileId,n.workspaceRelativePath]){let n=e?.trim();n&&t.add(`file:${n}`)}return t}function KZ(e){let t=(0,Q.c)(58),{view:n,authToken:r,conversationId:i,projectId:a}=e,o=Pt(ZZ)===`zh`?`zh`:`en`,s;t[0]!==i||t[1]!==a?(s={layout:`assistant`,conversationId:i,projectId:a},t[0]=i,t[1]=a,t[2]=s):s=t[2];let c=uW(s),l=n.deliveries,u,d,f,p,m,h,g,_,v,y;if(t[3]!==r||t[4]!==i||t[5]!==o||t[6]!==n.attachments||t[7]!==n.deliveries||t[8]!==n.outcome){v=Symbol.for(`react.early_return_sentinel`);bb0:{y=l.filter(XZ);let e=OX(y),a=AX(y),s=jX(y);f=kX(y),p=GZ(n.outcome);let c=MX(y,p).length,b,x;t[19]!==o||t[20]!==n.attachments||t[21]!==n.outcome?(b=[...UZ(n.outcome,o),...WZ(n.attachments,o)],x=b.filter(YZ),t[19]=o,t[20]=n.attachments,t[21]=n.outcome,t[22]=b,t[23]=x):(b=t[22],x=t[23]);let S=x,C;if(t[24]!==b||t[25]!==S?(C=b.filter(e=>!S.includes(e)),t[24]=b,t[25]=S,t[26]=C):C=t[26],u=C,d=c>0||u.length>0,e.length===0&&a.length===0&&s.length===0&&!d&&!S.length){v=null;break bb0}t[27]!==r||t[28]!==i||t[29]!==S?(m=S.length>0?(0,$.jsx)(yW,{attachments:S.map(JZ),authToken:r,conversationId:i,workspaceConversationId:i,layout:`assistant`}):null,t[27]=r,t[28]=i,t[29]=S,t[30]=m):m=t[30],h=e.map(qZ);let w;t[31]===o?w=t[32]:(w=e=>{let{key:t,presentation:n}=e;return(0,$.jsx)(OZ,{previewId:`${t}:${n.reference.id}:${n.snapshot.sourceHash}`,reference:n.reference,sourceHash:n.snapshot.sourceHash,preferredHeight:n.preferredHeight,language:o},t)},t[31]=o,t[32]=w),g=a.map(w);let T;t[33]===o?T=t[34]:(T=e=>{let{key:t,presentation:n}=e;return(0,$.jsx)(IZ,{leaseId:`${t}:${n.reference.id}:${n.sourceHash}`,reference:n.reference,sourceHash:n.sourceHash,preferredHeight:n.preferredHeight,language:o},t)},t[33]=o,t[34]=T),_=s.map(T)}t[3]=r,t[4]=i,t[5]=o,t[6]=n.attachments,t[7]=n.deliveries,t[8]=n.outcome,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=g,t[16]=_,t[17]=v,t[18]=y}else u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],g=t[15],_=t[16],v=t[17],y=t[18];if(v!==Symbol.for(`react.early_return_sentinel`))return v;let b;t[35]!==u||t[36]!==r||t[37]!==i||t[38]!==d||t[39]!==o||t[40]!==c||t[41]!==a||t[42]!==f||t[43]!==p||t[44]!==y?(b=d?(0,$.jsxs)(LZ,{label:o===`zh`?`本轮交付结果`:`Turn deliverables`,children:[(0,$.jsxs)(`ul`,{className:`m-0 list-none divide-y divide-edge-subtle p-0`,children:[(0,$.jsx)(ZX,{deliveries:y,language:o,excludedReferenceKeys:p,conversationId:i,projectId:a}),u.length>1?(0,$.jsx)(HZ,{attachments:u,authToken:r,conversationId:i,projectId:a,onOpen:c.openAttachment,language:o}):u.map(e=>(0,$.jsx)(VZ,{item:e,authToken:r,conversationId:i,projectId:a,onOpen:c.openAttachment},e.key))]}),f.truncated?(0,$.jsx)(`p`,{role:`status`,className:`border-t border-edge-subtle px-3 py-2 text-xs text-fg-muted`,children:o===`zh`?`仅显示部分结果`:`Showing partial results`}):null]}):null,t[35]=u,t[36]=r,t[37]=i,t[38]=d,t[39]=o,t[40]=c,t[41]=a,t[42]=f,t[43]=p,t[44]=y,t[45]=b):b=t[45];let x;t[46]!==u.length||t[47]!==r||t[48]!==i||t[49]!==c?(x=u.length>0?(0,$.jsx)(me,{open:c.open,attachment:c.active,authToken:r,conversationId:i,onClose:c.closePreview}):null,t[46]=u.length,t[47]=r,t[48]=i,t[49]=c,t[50]=x):x=t[50];let S;return t[51]!==m||t[52]!==h||t[53]!==g||t[54]!==_||t[55]!==b||t[56]!==x?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,_,b,x]}),t[51]=m,t[52]=h,t[53]=g,t[54]=_,t[55]=b,t[56]=x,t[57]=S):S=t[57],S}function qZ(e){let{key:t,presentation:n}=e;return(0,$.jsx)(eZ,{presentation:n},t)}function JZ(e){return e.attachment}function YZ(e){return!e.failed&&e.attachment.mimeType?.startsWith(`image/`)}function XZ(e){let{delivery:t}=e;return DX(t)}function ZZ(e){return e.language}function QZ(e){let t=(0,Q.c)(39),{outcome:n}=e,r=Pt(tQ),i,a,o,s,c,l,u,d;if(t[0]!==r||t[1]!==n.changeSet||t[2]!==n.evidence||t[3]!==n.status){d=Symbol.for(`react.early_return_sentinel`);bb0:{if(o=kt(r).chat.turnOutcome,i=!!n.changeSet,a=n.evidence.length>0,!i&&!a){d=null;break bb0}let e=n.evidence.filter(eQ).length,f=n.evidence.filter($Z).length,p=n.status===`succeeded`?o.statusSucceeded:n.status===`failed`?o.statusFailed:o.statusPartial,m=n.status===`succeeded`?w:n.status===`failed`?Nf:L,h=[n.changeSet?o.changedFileCount.replace(`{{count}}`,String(n.changeSet.files.length)):null,e>0?o.passedCount.replace(`{{count}}`,String(e)):null,f>0?o.failedCount.replace(`{{count}}`,String(f)):null,a&&e===0&&f===0?`${n.evidence.length} ${o.evidence}`:null].filter(Boolean).join(` · `);l=`group mt-2 max-w-[36rem] rounded-lg bg-surface-panel/15 text-sm`;let g=n.status===`succeeded`?`grid size-5 shrink-0 place-items-center rounded-full bg-success/10 text-success`:n.status===`failed`?`grid size-5 shrink-0 place-items-center rounded-full bg-danger/10 text-danger`:`grid size-5 shrink-0 place-items-center rounded-full bg-warning/10 text-warning`,_;t[12]===m?_=t[13]:(_=(0,$.jsx)(m,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0}),t[12]=m,t[13]=_);let v;t[14]!==g||t[15]!==_?(v=(0,$.jsx)(`span`,{className:g,children:_}),t[14]=g,t[15]=_,t[16]=v):v=t[16];let y;t[17]===h?y=t[18]:(y=(0,$.jsx)(`span`,{className:`block truncate text-xs text-fg-subtle`,children:h}),t[17]=h,t[18]=y);let b=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block text-xs font-medium text-fg`,children:p}),y]}),x;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(T,{className:`size-4 shrink-0 transition-transform group-open:rotate-90 motion-reduce:transition-none`,strokeWidth:1.75,"aria-hidden":!0}),t[19]=x):x=t[19],t[20]!==b||t[21]!==v?(u=(0,$.jsxs)(`summary`,{className:`flex min-h-11 cursor-pointer list-none items-center gap-2 rounded-lg px-3 py-2 text-fg-muted transition-colors hover:bg-surface-hover/45 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,children:[v,b,x]}),t[20]=b,t[21]=v,t[22]=u):u=t[22],s=`border-t border-edge-subtle px-3 py-2.5`,c=n.changeSet?(0,$.jsxs)(`section`,{"aria-label":o.changes,children:[(0,$.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-xs`,children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:o.changeSetTitle}),(0,$.jsx)(`span`,{className:`shrink-0 text-fg-subtle`,children:o.changeStats.replace(`{{files}}`,String(n.changeSet.files.length)).replace(`{{added}}`,String(n.changeSet.added)).replace(`{{removed}}`,String(n.changeSet.removed))})]}),(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 py-1 text-xs`,children:[(0,$.jsx)(`span`,{className:`w-14 shrink-0 text-fg-subtle`,children:o.fileStatus[e.status??`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:`pt-1 text-xs text-fg-subtle`,children:o.moreFiles.replace(`{{count}}`,String(n.changeSet.files.length-8))}):null]}),n.changeSet.diff?(0,$.jsxs)(`details`,{className:`mt-2`,children:[(0,$.jsx)(`summary`,{className:`w-fit cursor-pointer rounded-md px-1.5 py-1 text-xs font-medium text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:o.viewDiff}),n.changeSet.diffTruncated?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-warning`,children:o.diffTruncated}):null,(0,$.jsx)(`pre`,{className:`mt-2 max-h-72 overflow-auto rounded-lg bg-surface-inset p-3 text-xs leading-5 text-fg-muted`,children:(0,$.jsx)(`code`,{children:n.changeSet.diff})})]}):null]}):null}t[0]=r,t[1]=n.changeSet,t[2]=n.evidence,t[3]=n.status,t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c,t[9]=l,t[10]=u,t[11]=d}else i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9],u=t[10],d=t[11];if(d!==Symbol.for(`react.early_return_sentinel`))return d;let f;t[23]!==i||t[24]!==a?(f=i&&a?(0,$.jsx)(`div`,{className:`my-2 border-t border-edge-subtle`}):null,t[23]=i,t[24]=a,t[25]=f):f=t[25];let p;t[26]!==a||t[27]!==n.evidence||t[28]!==o?(p=a?(0,$.jsxs)(`section`,{"aria-label":o.evidence,children:[(0,$.jsx)(`div`,{className:`mb-1 text-xs font-medium text-fg`,children:o.evidence}),n.evidence.map(e=>(0,$.jsxs)(`div`,{className:`flex min-h-10 items-center gap-2.5 border-b border-edge-subtle/60 py-1.5 last:border-b-0`,children:[(0,$.jsx)(hv,{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,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,children:e.label}),(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,t[26]=a,t[27]=n.evidence,t[28]=o,t[29]=p):p=t[29];let m;t[30]!==s||t[31]!==c||t[32]!==f||t[33]!==p?(m=(0,$.jsxs)(`div`,{className:s,children:[c,f,p]}),t[30]=s,t[31]=c,t[32]=f,t[33]=p,t[34]=m):m=t[34];let h;return t[35]!==l||t[36]!==u||t[37]!==m?(h=(0,$.jsxs)(`details`,{className:l,children:[u,m]}),t[35]=l,t[36]=u,t[37]=m,t[38]=h):h=t[38],h}function $Z(e){return e.status===`failed`}function eQ(e){return e.status===`passed`}function tQ(e){return e.language}function nQ(e){let t=(0,Q.c)(14),{view:n,authToken:r,conversationId:i,projectId:a,sourcesLabel:o}=e,s;t[0]!==r||t[1]!==i||t[2]!==a||t[3]!==n?(s=(0,$.jsx)(KZ,{view:n,authToken:r,conversationId:i,projectId:a}),t[0]=r,t[1]=i,t[2]=a,t[3]=n,t[4]=s):s=t[4];let c;t[5]===n.outcome?c=t[6]:(c=n.outcome?(0,$.jsx)(QZ,{outcome:n.outcome}):null,t[5]=n.outcome,t[6]=c);let l;t[7]!==o||t[8]!==n.sources?(l=n.sources.length>0?(0,$.jsx)(`section`,{className:`rounded-lg bg-surface-panel/10 px-3 py-2.5`,"aria-label":o,children:(0,$.jsx)(FX,{sources:n.sources,className:``})}):null,t[7]=o,t[8]=n.sources,t[9]=l):l=t[9];let u;return t[10]!==s||t[11]!==c||t[12]!==l?(u=(0,$.jsxs)($.Fragment,{children:[s,c,l]}),t[10]=s,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}var rQ=`NO_REPLY`;function iQ(e){if(e.role!==`assistant`||!e.content?.length)return e;let t=e.content.findIndex(e=>e.type===`text`);if(t<0)return e;let n=e.content[t];if(n.type!==`text`)return e;let r=n.text.trimStart();if(!r.startsWith(rQ))return e;if(r.length===8)return e.content.slice(t+1).some(e=>e.type===`text`&&e.text.trim().length>0)?{...e,content:e.content.filter((e,n)=>n!==t)}:e;let i=r.slice(8).trimStart();if(!i)return e;let a=[...e.content];return a[t]={...n,text:i},{...e,content:a}}function aQ(e){let t=e.trim().split(/[,,;;。\n]/,1)[0]?.trim()||e.trim(),n=Array.from(t);return n.length>32?`${n.slice(0,32).join(``)}…`:t}function oQ(e){let t=(0,Q.c)(23),{trigger:n}=e,r=b(),i=Pt(sQ),a;t[0]===i?a=t[1]:(a=kt(i),t[0]=i,t[1]=a);let o=a.chat.taskTrigger,s=n.entryId,c;t[2]===o.about?c=t[3]:(c=(0,$.jsx)(`span`,{className:`shrink-0`,children:o.about}),t[2]=o.about,t[3]=c);let l=`${r.pathname}${r.search}`,u;t[4]!==l||t[5]!==n.taskId?(u=Ie(l,n.taskId),t[4]=l,t[5]=n.taskId,t[6]=u):u=t[6];let d=n.taskTitle,f=`${o.openTask}:${n.taskTitle}`,p;t[7]===n.taskTitle?p=t[8]:(p=aQ(n.taskTitle),t[7]=n.taskTitle,t[8]=p);let m;t[9]===p?m=t[10]:(m=(0,$.jsxs)(`span`,{className:`truncate`,children:[`「`,p,`」`]}),t[9]=p,t[10]=m);let h;t[11]!==u||t[12]!==f||t[13]!==m||t[14]!==n.taskTitle?(h=(0,$.jsx)(y,{className:`inline-flex min-w-0 max-w-[min(48vw,30rem)] font-medium text-fg hover:text-accent hover:underline`,to:u,title:d,"aria-label":f,children:m}),t[11]=u,t[12]=f,t[13]=m,t[14]=n.taskTitle,t[15]=h):h=t[15];let g=o[n.kind],_;t[16]===g?_=t[17]:(_=(0,$.jsxs)(`span`,{className:`shrink-0 whitespace-nowrap`,children:[`· `,g]}),t[16]=g,t[17]=_);let v;return t[18]!==h||t[19]!==_||t[20]!==c||t[21]!==n.entryId?(v=(0,$.jsxs)(`div`,{className:`mb-4 flex min-w-0 max-w-full items-center gap-1.5 border-t border-edge-subtle pt-5 text-sm text-fg-muted`,"data-task-trigger":s,children:[c,h,_]}),t[18]=h,t[19]=_,t[20]=c,t[21]=n.entryId,t[22]=v):v=t[22],v}function sQ(e){return e.language}var cQ=3;function lQ(e){let t=(0,Q.c)(36),{refs:n,groupLabel:r,noteLabel:i,fileLabel:a,folderLabel:o,sessionLabel:s,browserTabLabel:c,mcpResourceLabel:l,truncatedLabel:u,showMoreLabel:d,showLessLabel:f,onOpen:p}=e,[m,h]=(0,Z.useState)(!1);if(n.length===0)return null;let g=n.length>cQ,_;t[0]!==m||t[1]!==n?(_=m?n:n.slice(0,cQ),t[0]=m,t[1]=n,t[2]=_):_=t[2];let v=_,y=n.length-cQ,b;if(t[3]!==c||t[4]!==a||t[5]!==o||t[6]!==r||t[7]!==l||t[8]!==i||t[9]!==p||t[10]!==s||t[11]!==u||t[12]!==v){let e;t[14]!==c||t[15]!==a||t[16]!==o||t[17]!==r||t[18]!==l||t[19]!==i||t[20]!==p||t[21]!==s||t[22]!==u?(e=e=>{let t=e.kind===`note`,n=t?`button`:`div`,d=e.kind===`file`?e.fileKind===`directory`?o:a:e.kind===`session`?s:e.kind===`browser_tab`?c:e.kind===`mcp_resource`?l:i;return(0,$.jsxs)(n,{...t?{type:`button`,onClick:()=>p(e)}:{},className:q(`group inline-flex min-h-9 min-w-0 max-w-full items-center gap-2 rounded-lg border border-edge-subtle bg-surface-panel/80 px-2 py-1.5 text-left`,t&&`transition-colors hover:border-accent/40 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`),...t?{"aria-label":`${r}: ${e.title}`}:{},title:e.truncated?u:e.title,children:[(0,$.jsx)(`span`,{className:`inline-flex size-7 shrink-0 items-center justify-center rounded-md bg-accent-soft text-accent-fg`,children:e.kind===`file`&&e.fileKind===`directory`?(0,$.jsx)(z_,{className:`size-3.5`,"aria-hidden":!0}):e.kind===`file`?(0,$.jsx)(zg,{className:`size-3.5`,"aria-hidden":!0}):e.kind===`session`?(0,$.jsx)(Pv,{className:`size-3.5`,"aria-hidden":!0}):e.kind===`browser_tab`?(0,$.jsx)(mo,{className:`size-3.5`,"aria-hidden":!0}):e.kind===`mcp_resource`?(0,$.jsx)(Lm,{className:`size-3.5`,"aria-hidden":!0}):(0,$.jsx)(hy,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-1.5`,children:[(0,$.jsx)(`span`,{className:`shrink-0 text-[11px] text-fg-muted`,children:d}),(0,$.jsx)(`span`,{className:`max-w-56 truncate text-xs font-medium text-fg sm:max-w-72`,children:e.title})]}),t?(0,$.jsx)(T,{className:`size-3.5 shrink-0 text-fg-disabled transition-transform group-hover:translate-x-0.5 group-hover:text-fg-muted`,"aria-hidden":!0}):null]},`${e.kind}:${e.sourceId}`)},t[14]=c,t[15]=a,t[16]=o,t[17]=r,t[18]=l,t[19]=i,t[20]=p,t[21]=s,t[22]=u,t[23]=e):e=t[23],b=v.map(e),t[3]=c,t[4]=a,t[5]=o,t[6]=r,t[7]=l,t[8]=i,t[9]=p,t[10]=s,t[11]=u,t[12]=v,t[13]=b}else b=t[13];let x;t[24]===b?x=t[25]:(x=(0,$.jsx)(`div`,{className:`flex min-w-0 flex-wrap gap-1.5`,children:b}),t[24]=b,t[25]=x);let S;t[26]!==g||t[27]!==m||t[28]!==y||t[29]!==f||t[30]!==d?(S=g?(0,$.jsxs)(`button`,{type:`button`,className:`inline-flex min-h-8 w-fit items-center gap-1 rounded-md px-2 text-xs text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-expanded":m,onClick:()=>h(uQ),children:[m?(0,$.jsx)(Fd,{className:`size-3.5`,"aria-hidden":!0}):(0,$.jsx)(jd,{className:`size-3.5`,"aria-hidden":!0}),m?f:d.replace(`{{count}}`,String(y))]}):null,t[26]=g,t[27]=m,t[28]=y,t[29]=f,t[30]=d,t[31]=S):S=t[31];let C;return t[32]!==r||t[33]!==x||t[34]!==S?(C=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,role:`group`,"aria-label":r,children:[x,S]}),t[32]=r,t[33]=x,t[34]=S,t[35]=C):C=t[35],C}function uQ(e){return!e}function dQ(e,t){let n=new Map;for(let r of e){let e=r.sourceName.trim(),i=r.statement.trim().replace(/\s+/g,` `),a=r.origin===`connected_source`?`${r.origin}:${e}`:r.origin,o=r.origin===`connected_source`?t.connected_source.replace(`{{source}}`,e):t[r.origin],s=n.get(a);s?s.items.some(e=>e.statement.trim().replace(/\s+/g,` `)===i)||s.items.push(r):n.set(a,{id:a,label:o,items:[r]})}return Array.from(n.values())}function fQ(e){let t=(0,Q.c)(67),{open:n,onOpenChange:r,items:i,labels:a}=e,o;t[0]!==i||t[1]!==a.origins?(o=dQ(i,a.origins),t[0]=i,t[1]=a.origins,t[2]=o):o=t[2];let s=o,c=s.reduce(gQ,0),l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=new Set,t[3]=l):l=t[3];let[u,d]=(0,Z.useState)(l),f,p;t[4]!==c||t[5]!==s||t[6]!==n?(f=()=>{!n||s.length===0||d(new Set(c<=6?s.map(hQ):[s[0].id]))},p=[c,s,n],t[4]=c,t[5]=s,t[6]=n,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,Z.useEffect)(f,p);let m;t[9]!==u||t[10]!==s?(m=s.length>0&&s.every(e=>u.has(e.id)),t[9]=u,t[10]=s,t[11]=m):m=t[11];let h=m,g;t[12]!==h||t[13]!==s?(g=()=>{d(h?new Set:new Set(s.map(mQ)))},t[12]=h,t[13]=s,t[14]=g):g=t[14];let _=g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{d(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},t[15]=v):v=t[15];let y=v,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim/60 backdrop-blur-[1px]`}),t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=q(`xopc-dialog-content fixed left-1/2 top-1/2 z-[90] flex h-[min(36rem,calc(100dvh-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-overlay shadow-popover outline-none`),t[17]=x):x=t[17];let S;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=(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)(Tf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}),t[18]=S):S=t[18];let C;t[19]===a.title?C=t[20]:(C=(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:a.title}),t[19]=a.title,t[20]=C);let w;t[21]===a.hint?w=t[22]:(w=(0,$.jsx)(tn,{className:`mt-1 text-sm leading-5 text-fg-muted`,children:a.hint}),t[21]=a.hint,t[22]=w);let T;t[23]!==c||t[24]!==a.itemsSummary?(T=a.itemsSummary.replace(`{{count}}`,String(c)),t[23]=c,t[24]=a.itemsSummary,t[25]=T):T=t[25];let E;t[26]===T?E=t[27]:(E=(0,$.jsx)(`p`,{className:`mt-2 text-xs font-medium text-fg-subtle`,children:T}),t[26]=T,t[27]=E);let D;t[28]!==C||t[29]!==w||t[30]!==E?(D=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[C,w,E]}),t[28]=C,t[29]=w,t[30]=E,t[31]=D):D=t[31];let O;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(Dt,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),t[32]=O):O=t[32];let k;t[33]===a.close?k=t[34]:(k=(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-muted transition-colors duration-150 hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":a.close,title:a.close,children:O})}),t[33]=a.close,t[34]=k);let A;t[35]!==D||t[36]!==k?(A=(0,$.jsxs)(`header`,{className:`flex shrink-0 items-start gap-3 border-b border-edge-subtle px-4 py-4 sm:px-5`,children:[S,D,k]}),t[35]=D,t[36]=k,t[37]=A):A=t[37];let j;t[38]!==s.length||t[39]!==a.groupSummary?(j=a.groupSummary.replace(`{{count}}`,String(s.length)),t[38]=s.length,t[39]=a.groupSummary,t[40]=j):j=t[40];let M;t[41]===j?M=t[42]:(M=(0,$.jsx)(`span`,{className:`text-xs text-fg-subtle`,children:j}),t[41]=j,t[42]=M);let N;t[43]!==h||t[44]!==s.length||t[45]!==a.collapseAll||t[46]!==a.expandAll||t[47]!==_?(N=s.length>1?(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1 text-xs font-medium text-accent-fg transition-colors duration-150 hover:bg-accent-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,onClick:_,children:h?a.collapseAll:a.expandAll}):null,t[43]=h,t[44]=s.length,t[45]=a.collapseAll,t[46]=a.expandAll,t[47]=_,t[48]=N):N=t[48];let P;t[49]!==M||t[50]!==N?(P=(0,$.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center justify-between gap-3 border-b border-edge-subtle px-4 sm:px-5`,children:[M,N]}),t[49]=M,t[50]=N,t[51]=P):P=t[51];let F;if(t[52]!==u||t[53]!==s){let e;t[55]===u?e=t[56]:(e=e=>{let t=u.has(e.id);return(0,$.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge-subtle bg-surface-panel`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`flex min-h-12 w-full items-center gap-3 px-3.5 py-2.5 text-left transition-colors duration-150 hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,"aria-expanded":t,onClick:()=>y(e.id),children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-fg`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 rounded-full bg-surface-hover px-2 py-0.5 text-[11px] tabular-nums text-fg-muted`,children:e.items.length}),(0,$.jsx)(jd,{className:q(`size-4 shrink-0 text-fg-subtle transition-transform duration-200`,t&&`rotate-180`),strokeWidth:1.75,"aria-hidden":!0})]}),t?(0,$.jsx)(`div`,{className:`border-t border-edge-subtle px-3.5`,children:e.items.map(pQ)}):null]},e.id)},t[55]=u,t[56]=e),F=s.map(e),t[52]=u,t[53]=s,t[54]=F}else F=t[54];let I;t[57]===F?I=t[58]:(I=(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain px-3 py-3 sm:px-4`,"data-testid":`response-context-scroll-region`,children:(0,$.jsx)(`div`,{className:`space-y-2`,children:F})}),t[57]=F,t[58]=I);let L;t[59]!==A||t[60]!==P||t[61]!==I?(L=(0,$.jsxs)(rn,{children:[b,(0,$.jsxs)(an,{className:x,children:[A,P,I]})]}),t[59]=A,t[60]=P,t[61]=I,t[62]=L):L=t[62];let R;return t[63]!==r||t[64]!==n||t[65]!==L?(R=(0,$.jsx)(sn,{open:n,onOpenChange:r,children:L}),t[63]=r,t[64]=n,t[65]=L,t[66]=R):R=t[66],R}function pQ(e){return(0,$.jsx)(`p`,{className:`border-b border-edge-subtle py-3 text-sm leading-6 text-fg last:border-b-0`,children:e.statement},e.id)}function mQ(e){return e.id}function hQ(e){return e.id}function gQ(e,t){return e+t.items.length}var _Q=q(`inline-flex size-11 shrink-0 items-center justify-center rounded-lg sm:size-9`,`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`,$r.disabled),vQ=[`misunderstood_intent`,`incorrect`,`did_not_act`,`tone_mismatch`,`too_verbose`,`other`],yQ=q(`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`,$r.disabled),bQ=700,xQ=120,SQ=(0,Z.memo)(function({message:e,personal:t=!1,followUpTrigger:n,authToken:r,conversationId:i,workspaceConversationId:a,projectId:o,isStreaming:s,progress:c,reasoningLevel:u=`on`,messageIndex:d,onDeleteRound:f,onRetryUserMessageRound:p,userMessageCanRetry:m=!1,deleteRoundDisabled:h=!1,onSaveAssistantAsNote:g,onSaveAssistantToSourceNote:_,onExtractAssistantTask:v,onForkAssistantTurn:y,readonly:x=!1,density:S=`normal`,suppressAssistantActions:C=!1,onEditUserMessage:T,userMessageCanEdit:E=!0,responseFeedbackEnabled:D=!0,showAssistantWorkLog:O=!0}){let k=(0,Z.useMemo)(()=>iQ(e),[e]),A=Pt(e=>e.language),j=kt(A),M=l(),N=b(),P=k.role===`user`,F=k.role===`assistant`,I=(0,Z.useRef)(P&&k.deliveryStatus===`sending`).current,R=P&&k.deliveryStatus===`sending`,z=P&&k.deliveryStatus===`failed`,[B,V]=(0,Z.useState)(!1),[H,U]=(0,Z.useState)(!1),[G,te]=(0,Z.useState)(()=>typeof navigator<`u`&&navigator.onLine===!1),ne=P?j.chat.you:F?j.chat.assistant:j.chat.tool;(0,Z.useEffect)(()=>{if(!R||typeof window>`u`)return;let e=()=>te(window.navigator.onLine===!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,e),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,e)}},[R]),(0,Z.useEffect)(()=>{if(R){if(B)return;let e=window.setTimeout(()=>V(!0),G?0:bQ);return()=>window.clearTimeout(e)}if(!B)return;let e=0,t=window.requestAnimationFrame(()=>{U(!0),e=window.setTimeout(()=>{V(!1),U(!1)},xQ)});return()=>{window.cancelAnimationFrame(t),window.clearTimeout(e)}},[R,G,B]);let K=z||B,re=z?`failed`:`sending`,ae=(0,Z.useCallback)(e=>{let t=`${N.pathname}${N.search}`;M(Ae(`/notes/${encodeURIComponent(e)}`,t))},[N.pathname,N.search,M]),oe=(0,Z.useMemo)(()=>({input:j.chat.toolInput,output:j.chat.toolOutput,noOutput:j.chat.noOutput}),[j.chat.toolInput,j.chat.toolOutput,j.chat.noOutput]),se=(0,Z.useMemo)(()=>({thoughts:j.chat.thoughts,thoughtsStreaming:j.chat.thoughtsStreaming,workLogTitle:j.chat.workLogTitle,workLogRunning:j.chat.workLogRunning,workLogComplete:j.chat.workLogComplete,workLogPartial:j.chat.workLogPartial,workLogFailed:j.chat.workLogFailed,searchedWeb:j.chat.stepSearchedWeb,searchedMemory:j.chat.stepSearchedMemory,searchedCode:j.chat.stepSearchedCode,searched:j.chat.stepSearched,readFile:j.chat.stepReadFile,stepDetails:j.chat.stepDetails,runCommand:j.chat.stepRunCommand,listDirectory:j.chat.stepListDirectory,writeFile:j.chat.stepWriteFile,editFile:j.chat.stepEditFile,openUrl:j.chat.stepOpenUrl,fetchUrl:j.chat.stepFetchUrl,unknownTool:j.chat.stepUnknownTool,rawThinking:j.chat.rawThinking,toolError:j.chat.toolError,toolActivity:j.chat.toolActivity,memoryActivity:j.chat.memoryActivity}),[j.chat.thoughts,j.chat.thoughtsStreaming,j.chat.workLogTitle,j.chat.workLogRunning,j.chat.workLogComplete,j.chat.workLogPartial,j.chat.workLogFailed,j.chat.stepSearchedWeb,j.chat.stepSearchedMemory,j.chat.stepSearchedCode,j.chat.stepSearched,j.chat.stepReadFile,j.chat.stepDetails,j.chat.stepRunCommand,j.chat.stepListDirectory,j.chat.stepWriteFile,j.chat.stepEditFile,j.chat.stepOpenUrl,j.chat.stepFetchUrl,j.chat.stepUnknownTool,j.chat.rawThinking,j.chat.toolError,j.chat.toolActivity,j.chat.memoryActivity]),ce=(0,Z.useMemo)(()=>({ing:j.chat.stepsClusterIng}),[j.chat.stepsClusterIng]),le=(0,Z.useMemo)(()=>j.chat.toolCard,[j.chat.toolCard]),ue=u===`off`,de=(0,Z.useMemo)(()=>F?PX({message:k,isStreaming:s,reasoningLevel:u}):null,[F,s,k,u]),fe=(0,Z.useMemo)(()=>de?.answerContent??(k.content??[]).filter(e=>e.type!==`image`),[de,k.content]),pe=(0,Z.useMemo)(()=>de?de.attachments:k.attachments,[de,k.attachments]),he=(0,Z.useMemo)(()=>{let e=new Set(k.userTurnDocument?.parts.flatMap(e=>e.type===`context_ref`?[e.refId]:[])??[]);return k.contextRefs?.filter(t=>!t.refId||!e.has(t.refId))},[k.contextRefs,k.userTurnDocument]),ge=!!(de?.workLog.active||de?.workLog.items.length),_e=!!de?.answer.started,ve=ue||F&&(ge||_e)?null:c,ye=ue?!1:!!k.content?.some(e=>e.type===`thinking`&&e.streaming),be=F?!!de?.answer.showStreamingCursor:s,xe=t&&F&&s&&!de?.answer.started&&!pe?.length,Se=s&&!ye&&(!F||!ge&&!_e),Ce=!!ve?.message||Se,we=F&&!x&&!s&&!C,Te=F&&s&&!x&&!C&&_e,Ee=(0,Z.useMemo)(()=>we?wW(k.content??[]):``,[we,k.content]),De=(0,Z.useMemo)(()=>we&&Ee?EW(k.content??[]):``,[we,Ee,k.content]),Oe=(0,Z.useMemo)(()=>we&&Ee?RY(Ee):``,[we,Ee]),ke=(0,Z.useMemo)(()=>({source:{type:`chat-message`,id:`${i??`chat`}:${k.timestamp??d??Ee.length}`,title:Oe.split(`
|
|
84
|
+
`)[0]?.slice(0,48)||j.chat.messageReadAloudTitle,href:i?`#/chat/${encodeURIComponent(i)}`:void 0,targetId:d==null?void 0:`chat-message-${d}`},text:Oe,language:BY(Oe,A)}),[Ee.length,A,j.chat.messageReadAloudTitle,k.timestamp,d,i,Oe]),je=(0,Z.useMemo)(()=>{if(!P)return``;if(k.userTurnDocument){let e=new Map(k.contextRefs?.flatMap(e=>e.refId?[[e.refId,e.title]]:[])??[]);return pr(k.userTurnDocument,t=>e.get(t))}return Zn(k.content)},[P,k.content,k.contextRefs,k.userTurnDocument]),[Me,Ne]=(0,Z.useState)(null),[Pe,Fe]=(0,Z.useState)(!1),[Ie,Le]=(0,Z.useState)(null),[Re,ze]=(0,Z.useState)(null),[Be,Ve]=(0,Z.useState)(!1),[He,Ue]=(0,Z.useState)(null),[We,Ge]=(0,Z.useState)(!1),[Ke,qe]=(0,Z.useState)(!1),[Je,Ye]=(0,Z.useState)(!1),[Xe,Ze]=(0,Z.useState)(!1),[Qe,$e]=(0,Z.useState)(null),[et,nt]=(0,Z.useState)([]),[rt,it]=(0,Z.useState)(!1),[at,ot]=(0,Z.useState)(!1),[st,ct]=(0,Z.useState)(null),[lt,ut]=(0,Z.useState)(!1),[dt,ft]=(0,Z.useState)(!1),pt=(0,Z.useRef)(null),mt=(0,Z.useCallback)((e,t)=>{let n=SW(e,t);n&&ct(n)},[]),ht=(0,Z.useCallback)(()=>{!i||!k.renderKey||zr.getState().completeProgressiveRender(i,k.renderKey)},[k.renderKey,i]),gt=(0,Z.useCallback)(()=>{De&&Yr(De).then(e=>{e&&(Ne(`plain`),window.setTimeout(()=>Ne(e=>e===`plain`?null:e),2e3))})},[De]),_t=(0,Z.useCallback)(()=>{Ee&&Yr(Ee).then(e=>{e&&(Ne(`markdown`),window.setTimeout(()=>Ne(e=>e===`markdown`?null:e),2e3))})},[Ee]),vt=(0,Z.useCallback)(()=>{!Ee||!g||Re||(ze(`create-note`),Promise.resolve(g(Ee)).then(()=>{Le(`create-note`),window.setTimeout(()=>Le(e=>e===`create-note`?null:e),2e3)}).catch(()=>void 0).finally(()=>ze(null)))},[Re,Ee,g]),yt=(0,Z.useCallback)(()=>{!Ee||!_||Re||(ze(`save-source-note`),Promise.resolve(_(Ee)).then(()=>{Le(`save-source-note`),window.setTimeout(()=>Le(e=>e===`save-source-note`?null:e),2e3)}).catch(()=>void 0).finally(()=>ze(null)))},[Re,Ee,_]),bt=(0,Z.useCallback)(()=>{!De&&!Ee||!v||Re||(ze(`extract-task`),Promise.resolve(v(De||Ee)).then(()=>{Le(`extract-task`),window.setTimeout(()=>Le(e=>e===`extract-task`?null:e),2e3)}).catch(()=>void 0).finally(()=>ze(null)))},[Re,Ee,De,v]),xt=(0,Z.useCallback)(()=>{je&&Yr(je).then(e=>{e&&(Ne(`user`),window.setTimeout(()=>Ne(e=>e===`user`?null:e),2e3))})},[je]),St=(0,Z.useCallback)(()=>{!k.turnId||!y||Be||(Ve(!0),Promise.resolve(y(k.turnId)).catch(()=>void 0).finally(()=>Ve(!1)))},[Be,k.turnId,y]),Ct=(0,Z.useCallback)((e,t)=>{!k.turnId||Ke||(qe(!0),Ge(!0),Ye(!1),J(Y(`/api/turns/${encodeURIComponent(k.turnId)}/execution-context/feedback`),{method:`POST`,body:JSON.stringify({rating:e===`helpful`?`helpful`:`irrelevant`,reason:t})}).then(()=>{Ue(e),$e(t??null),Ze(!1)}).catch(()=>Ye(!0)).finally(()=>qe(!1)))},[k.turnId,Ke]),wt=(0,Z.useCallback)(()=>{Qe&&XH(j.chat.messageFeedbackRepairPrompts[Qe])},[j.chat.messageFeedbackRepairPrompts,Qe]),Tt=(0,Z.useCallback)(()=>{!k.turnId||We||Ke||(qe(!0),J(Y(`/api/turns/${encodeURIComponent(k.turnId)}/execution-context`)).then(e=>{nt(e.resolvedItems.filter(e=>e.included).map(e=>({id:`${e.objectType}:${e.objectId}`,statement:e.content,origin:e.origin,sourceName:e.sourceLabel})))}).catch(()=>void 0).finally(()=>{Ge(!0),qe(!1)}))},[k.turnId,Ke,We]),Et=(0,Z.useCallback)(()=>{d==null||!f||ot(!0)},[d,f]),Dt=(0,Z.useCallback)(()=>{d==null||!f||(f(d),ot(!1))},[d,f]),Ot=(0,Z.useCallback)(()=>{ot(!1)},[]);(0,Z.useLayoutEffect)(()=>{if(!P)return;let e=pt.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;ft(e.scrollHeight>i*10+1)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[P,fe,je]),(0,Z.useLayoutEffect)(()=>{ut(!1)},[P,je]);let At=h||!m,jt=O&&de&&(de.workLog.active||de.workLog.items.length>0)?(0,$.jsx)(ZJ,{workLog:de.workLog,pendingStatus:k.pendingResponseStatus,toolLabels:oe,stepLabels:se,clusterLabels:ce,cardLabels:le,conversationId:i,workflowOptions:{labels:gY(A)}}):null;return(0,$.jsxs)(`article`,{className:q(`group/msg flex w-full min-w-0`,P?`justify-end`:`justify-start`,I&&`xopc-chat-user-message-enter`),children:[(0,$.jsxs)(`div`,{className:q(`min-w-0`,P?`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)]`,x&&`max-w-full`),children:[(0,$.jsx)(`span`,{className:`sr-only`,children:ne}),n?(0,$.jsx)(oQ,{trigger:n}):null,P&&Ce?(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:[ve?.message&&!ge?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:ve.detail??``,children:ve.message}):null,Se&&!ve?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:j.chat.thinkingLabel}):null]}):null,!P&&Ce&&!xe?(0,$.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-xs text-fg-disabled`,children:[ve?.message&&!ge?(0,$.jsx)(`span`,{className:`text-fg-subtle`,title:ve.detail??``,children:ve.message}):null,Se&&!ve?.message?(0,$.jsx)(`span`,{className:`text-fg-subtle`,children:j.chat.thinkingLabel}):null]}):null,(0,$.jsx)(`div`,{dir:P?`auto`:void 0,className:q(`min-w-0 text-fg`,P&&`chat-user-message`,S===`compact`?`text-sm leading-relaxed`:P?`text-[0.9375rem] leading-[1.6667]`:`text-base leading-[1.6875]`,P&&`w-fit max-w-full rounded-2xl bg-surface-hover/80 px-4 py-3 text-left dark:bg-surface-hover/50`,P&&t&&`rounded-tr-sm`,xe&&`bg-transparent p-0`),children:(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[xe?(0,$.jsxs)(`div`,{className:`xopc-personal-thinking`,role:`status`,"aria-label":j.chat.thinkingLabel,children:[(0,$.jsxs)(`svg`,{className:`xopc-personal-thinking-outline`,viewBox:`0 0 84 54`,fill:`none`,"aria-hidden":`true`,children:[(0,$.jsx)(`path`,{d:`M12 1H48C67 1 83 17 83 36V42C83 48 78 53 72 53H12C6 53 1 48 1 42V12C1 6 6 1 12 1Z`}),(0,$.jsx)(`path`,{className:`xopc-personal-thinking-trace`,pathLength:`268`,d:`M12 1H48C67 1 83 17 83 36V42C83 48 78 53 72 53H12C6 53 1 48 1 42V12C1 6 6 1 12 1Z`})]}),(0,$.jsxs)(`span`,{className:`xopc-personal-thinking-dots`,"aria-hidden":`true`,children:[(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{}),(0,$.jsx)(`i`,{})]})]}):null,n?null:jt,(fe?.length??0)>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{ref:P?pt:void 0,"data-chat-find-text":!0,className:q(`min-w-0`,P&&`flex flex-col gap-2`,P&&!lt&&`overflow-hidden`),style:P&&!lt?{maxHeight:`calc(10lh)`}:void 0,children:(0,$.jsx)(AG,{content:fe,isUser:P,isAssistantMessageStreaming:F&&s,imagePreviewLabel:j.chat.attachmentPreviewImage,onImagePreview:mt,conversationId:i,workspaceConversationId:a,projectId:o,progressiveRender:!!k.progressiveRender,onProgressiveRenderComplete:ht,userTurnDocument:k.userTurnDocument,contextRefs:k.contextRefs})}),P&&dt?(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:()=>ut(e=>!e),"aria-expanded":lt,children:[lt?(0,$.jsx)(Fd,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(jd,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:lt?j.chat.userMessageCollapse:j.chat.userMessageExpand})]}):null,be?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent align-middle`}):null]}):be?(0,$.jsx)(`span`,{className:`inline-block h-3 w-0.5 animate-pulse bg-accent`}):null,n?jt:null,de?(0,$.jsx)(nQ,{view:de,authToken:r,conversationId:a??i,projectId:o,sourcesLabel:j.chat.searchSourcesHeading.replace(`{{count}}`,String(de.sources.length))}):null,P&&he?.length?(0,$.jsx)(lQ,{refs:he,groupLabel:j.chat.commandPalette.contextLabel,noteLabel:j.chat.commandPalette.notesSection,fileLabel:j.chat.atMention.files,folderLabel:j.chat.atMention.folders,sessionLabel:j.chat.atMention.chats,browserTabLabel:j.chat.atMention.browserTabs,mcpResourceLabel:j.chat.atMention.mcpResources,truncatedLabel:j.chat.commandPalette.contextTruncated,showMoreLabel:j.chat.contextReferencesMore,showLessLabel:j.chat.contextReferencesLess,onOpen:e=>ae(e.sourceId)}):null,P&&pe?.length?(0,$.jsx)(yW,{attachments:pe,authToken:r,conversationId:i,workspaceConversationId:a,layout:`user`,centerUserVoiceRow:je.length===0}):null]})}),K?(0,$.jsxs)(`div`,{"data-delivery-status":re,role:z?`alert`:`status`,"aria-live":`polite`,"aria-hidden":H&&!z?!0:void 0,className:q(`mt-1 flex min-h-5 items-center justify-end gap-1.5 pe-1 text-xs transition-opacity duration-[120ms] ease-out motion-reduce:transition-none`,z?`text-danger`:`text-fg-subtle`,H&&!z&&`opacity-0`),children:[z?(0,$.jsx)(L,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}):null,(0,$.jsx)(`span`,{children:z?j.chat.userMessageSendFailed:G&&R?j.chat.userMessageWaitingForNetwork:j.chat.userMessageSending}),z&&p&&d!=null?(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-1.5 py-0.5 font-medium text-danger underline-offset-2 hover:bg-danger/10 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-danger/40`,onClick:()=>p(d),children:j.chat.userMessageRetry}):null]}):null,P&&!s&&!x?(0,$.jsxs)(`div`,{"data-user-message-actions":!0,className:q(`mt-1 flex h-8 w-full min-w-0 shrink-0 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:[p&&d!=null&&k.deliveryStatus!==`failed`?(0,$.jsxs)(`button`,{type:`button`,className:q(yQ,At&&`opacity-40`),onClick:()=>p(d),disabled:At,title:h?j.chat.userMessageActionsWait:m?j.chat.userMessageRetry:j.chat.userMessageRetryDisabledHint,"aria-label":j.chat.userMessageRetry,children:[(0,$.jsx)(iS,{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:j.chat.userMessageRetry})]}):null,(0,$.jsx)(`button`,{type:`button`,className:q(yQ,`size-8 px-0`),onClick:()=>{if(T&&d!=null){T(k,d);return}XH(je,Xn(k.attachments))},disabled:!je&&!k.attachments?.length&&!k.contextRefs?.length||!E,title:E?j.chat.userMessageEdit:j.chat.userMessageEditDisabledHint,"aria-label":j.chat.userMessageEdit,children:(0,$.jsx)(tt,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,className:q(yQ,`size-8 px-0`),onClick:xt,disabled:!je,title:Me===`user`?j.chat.messageCopied:j.chat.userMessageCopy,"aria-label":Me===`user`?j.chat.messageCopied:j.chat.userMessageCopy,children:Me===`user`?(0,$.jsx)(w,{className:`size-3.5 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(W,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}),f&&d!=null&&!h?(0,$.jsx)(`button`,{type:`button`,className:q(yQ,`size-8 px-0 hover:text-red-500 dark:hover:text-red-400`),onClick:Et,title:j.chat.userMessageDelete,"aria-label":j.chat.userMessageDelete,children:(0,$.jsx)(vO,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0})}):null]}):null,Te?(0,$.jsx)(`div`,{"data-assistant-actions-placeholder":!0,className:`mt-1 min-h-9 shrink-0`,"aria-hidden":`true`}):null,we&&Ee?(0,$.jsx)(mY,{children:(0,$.jsxs)(`div`,{"data-assistant-message-actions":!0,className:q(`mt-1 flex min-h-9 shrink-0 items-center gap-1 overflow-visible transition-opacity duration-150 ease-out motion-reduce:transition-none`,`pointer-events-none opacity-0 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`,(Pe||Xe||Je)&&`pointer-events-auto opacity-100`),children:[(0,$.jsx)(hY,{label:Me===`plain`?j.chat.messageCopied:j.chat.messageCopyPlainText,children:(0,$.jsx)(`button`,{type:`button`,className:_Q,onClick:gt,disabled:!De,"aria-label":Me===`plain`?j.chat.messageCopied:j.chat.messageCopyPlainText,children:Me===`plain`?(0,$.jsx)(w,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(W,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})}),(0,$.jsx)(hY,{label:j.chat.messageReadAloud,children:(0,$.jsx)(pX,{input:ke,labels:{read:j.chat.messageReadAloud,preparing:j.chat.messageReadAloudPreparing,pause:j.chat.messageReadAloudPause,resume:j.chat.messageReadAloudResume,retry:j.chat.messageReadAloudRetry},hideNativeTitle:!0})}),(0,$.jsxs)(Qi,{open:Pe,onOpenChange:e=>{Fe(e),e&&Tt()},children:[(0,$.jsx)(hY,{label:j.chat.messageMoreActions,children:(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:_Q,"aria-label":j.chat.messageMoreActions,children:(0,$.jsx)(ee,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})})})}),(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{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)($i,{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:_t,children:[Me===`markdown`?(0,$.jsx)(w,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(ie,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),Me===`markdown`?j.chat.messageCopied:j.chat.messageCopyMarkdown]})}),y&&k.turnId?(0,$.jsx)($i,{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:St,disabled:Be,children:[(0,$.jsx)(H_,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),Be?j.chat.messageForkCreating:j.chat.messageForkFromHere]})}):null,g?(0,$.jsx)($i,{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:vt,disabled:Re!==null,children:[Ie===`create-note`?(0,$.jsx)(w,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(Dg,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),Ie===`create-note`?j.chat.messageSavedToNote:j.chat.messageSaveToNote]})}):null,D&&i&&k.timestamp?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`my-1 border-t border-edge-subtle`,role:`separator`}),(0,$.jsx)($i,{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:()=>Ct(`helpful`),disabled:Ke,"aria-pressed":He===`helpful`,children:[(0,$.jsx)(zD,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),j.chat.messageHelpful]})}),(0,$.jsx)($i,{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:()=>Ze(e=>!e),disabled:Ke,"aria-pressed":He===`not_helpful`,children:[(0,$.jsx)(RD,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),j.chat.messageNotHelpful]})})]}):null,Je?(0,$.jsx)(`p`,{className:`px-2.5 py-1 text-xs text-danger`,role:`status`,children:j.chat.messageFeedbackUnavailable}):null,et.length>0?(0,$.jsx)($i,{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:()=>it(e=>!e),children:[(0,$.jsx)(Tf,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),j.chat.messageWhyThisAnswer]})}):null,_?(0,$.jsx)($i,{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:yt,disabled:!Ee||Re!==null,children:[Ie===`save-source-note`?(0,$.jsx)(w,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(zg,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),Ie===`save-source-note`?j.chat.messageSavedToSourceNote:j.chat.messageSaveToSourceNote]})}):null,v?(0,$.jsx)($i,{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:bt,disabled:!De&&!Ee||Re!==null,children:[Ie===`extract-task`?(0,$.jsx)(w,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(bv,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),Ie===`extract-task`?j.chat.messageTaskExtracted:j.chat.messageExtractTask]})}):null]})})]})]})}):null,we&&et.length>0?(0,$.jsx)(fQ,{open:rt,onOpenChange:it,items:et,labels:{title:j.chat.messageWhyThisAnswer,hint:j.chat.messageWhyThisAnswerHint,close:j.chat.messageContextClose,itemsSummary:j.chat.messageContextItemsSummary,expandAll:j.chat.messageContextExpandAll,collapseAll:j.chat.messageContextCollapseAll,groupSummary:j.chat.messageContextGroupSummary,origins:j.chat.messageContextOrigins}}):null,we&&Xe?(0,$.jsxs)(`div`,{className:`mt-2 w-full max-w-xl rounded-xl border border-edge-subtle bg-surface-panel p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:j.chat.messageFeedbackReasonTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:j.chat.messageFeedbackReasonHint}),(0,$.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-2`,children:vQ.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:Ke,onClick:()=>Ct(`not_helpful`,e),children:j.chat.messageFeedbackReasons[e]},e))})]}):null,we&&He===`not_helpful`&&Qe?(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:wt,children:[(0,$.jsx)(iS,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),j.chat.messageFeedbackRepair]}):null]}),P&&f&&d!=null&&!x?(0,$.jsx)(sV,{open:at,title:j.chat.userMessageDeleteConfirmTitle,description:j.chat.userMessageDeleteConfirm,confirmLabel:j.chat.userMessageDeleteOk,cancelLabel:j.chat.userMessageDeleteCancel,destructive:!0,onConfirm:Dt,onCancel:Ot}):null,(0,$.jsx)(me,{open:st!==null,attachment:st,authToken:r,conversationId:i,onClose:()=>ct(null)})]})});function CQ(e,t){return e.renderKey??`${e.timestamp??`n`}-${t}`}function wQ(e){return e?new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}):``}var TQ=1800*1e3;function EQ(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function DQ(e,t){return e?t?!EQ(new Date(e),new Date(t))||e-t>=TQ:!0:!1}function OQ(e,t,n){let r=new Date(e),i=new Date(t),a=new Date(i);return a.setDate(i.getDate()-1),`${EQ(r,i)?n===`zh`?`今天`:`Today`:EQ(r,a)?n===`zh`?`昨天`:`Yesterday`:new Intl.DateTimeFormat(n===`zh`?`zh-CN`:`en`,{month:`short`,day:`numeric`,year:r.getFullYear()===i.getFullYear()?void 0:`numeric`}).format(r)} ${new Intl.DateTimeFormat(n===`zh`?`zh-CN`:`en`,{hour:`2-digit`,minute:`2-digit`}).format(r)}`}var kQ=e=>{},AQ=(0,Z.memo)(function(e){let t=(0,Q.c)(48),{messages:n,personal:r,authToken:i,conversationId:a,workspaceConversationId:o,projectId:s,streaming:c,sending:l,progress:u,reasoningLevel:d,registerListContentRef:f,onPickWelcomePrompt:p,welcomeSpotlight: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,showAssistantWorkLog:O,hideAssistantActions:k,trailingContent:A}=e,j=r===void 0?!1:r,M=l===void 0?!1:l,N=g===void 0?!1:g,P=T===void 0?!1:T,F=E===void 0?!1:E,I=O===void 0?!0:O,L=k===void 0?!1:k,R=Pt(jQ),z;t[0]===R?z=t[1]:(z=kt(R),t[0]=R,t[1]=z);let B=z;if(n.length===0&&!c&&!M){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}let e;t[4]!==B||t[5]!==m?(e=m??{headline:B.chat.welcomeSpotlight.headline,contextKind:`empty`,contextStatus:`ready`},t[4]=B,t[5]=m,t[6]=e):e=t[6];let n=p??kQ,r;return t[7]!==N||t[8]!==n||t[9]!==e?(r=(0,$.jsx)(`div`,{className:`pb-1.5`,children:(0,$.jsx)(iW,{spotlight:e,onPickPrompt:n,compact:N})}),t[7]=N,t[8]=n,t[9]=e,t[10]=r):r=t[10],r}let V,H,U,W;if(t[11]!==i||t[12]!==a||t[13]!==y||t[14]!==P||t[15]!==F||t[16]!==L||t[17]!==R||t[18]!==n||t[19]!==_||t[20]!==w||t[21]!==S||t[22]!==C||t[23]!==v||t[24]!==b||t[25]!==x||t[26]!==j||t[27]!==u||t[28]!==s||t[29]!==d||t[30]!==f||t[31]!==D||t[32]!==M||t[33]!==I||t[34]!==c||t[35]!==o){let e=Date.now();V=aZ,W=f,H=`flex w-full min-w-0 flex-col gap-8 pb-8`,U=n.map((t,r)=>{if(t.role===`assistant`&&t.content?.length&&t.content.every(MQ))return null;let l=r===n.length-1,f=!!((c||M||t.pendingResponseStatus)&&l&&t.role===`assistant`),p=Ar(n,r),m=n[r-1],h=t.role===`assistant`&&m?.role===`task`&&t.turnId&&m.turnId===t.turnId?m.taskTrigger:void 0;if(t.role===`task`&&t.taskTrigger&&n[r+1]?.role===`assistant`&&t.turnId&&n[r+1]?.turnId===t.turnId)return null;let g=CQ(t,r),T=h?m?.timestamp??t.timestamp:t.timestamp,E=DQ(T,h?n[r-2]?.timestamp:m?.timestamp);return(0,$.jsxs)(`div`,{id:`chat-message-${r}`,className:q(`scroll-mt-4`,r>0&&(n[r-1]?.role===`user`||n[r-1]?.role===`task`)&&!h&&!E&&`-mt-5`),"data-chat-message-index":r,"data-chat-message-row":!0,"data-client-submission-id":t.clientSubmissionId,"data-message-render-key":t.renderKey,children:[h?(0,$.jsx)(`span`,{id:`chat-message-${r-1}`,className:`block h-0 scroll-mt-4`,"aria-hidden":!0}):null,E&&T?(0,$.jsx)(`div`,{className:`mb-8 flex justify-center`,"data-chat-time-separator":!0,children:(0,$.jsx)(`time`,{suppressHydrationWarning:!0,className:`rounded-md px-2 py-1 text-xs tabular-nums text-fg-disabled`,dateTime:new Date(T).toISOString(),children:OQ(T,e,R)})}):null,t.role===`task`&&t.taskTrigger?(0,$.jsx)(oQ,{trigger:t.taskTrigger}):(0,$.jsx)(SQ,{message:t,personal:j,followUpTrigger:h,authToken:i,conversationId:a,workspaceConversationId:o,projectId:s,isStreaming:f,progress:f?u:null,reasoningLevel:d,messageIndex:r,onDeleteRound:_,onRetryUserMessageRound:v,userMessageCanRetry:!!v&&p,deleteRoundDisabled:!!(y&&p),onSaveAssistantAsNote:b,onSaveAssistantToSourceNote:x,onExtractAssistantTask:S,onForkAssistantTurn:C,suppressAssistantActions:L,onEditUserMessage:w,userMessageCanEdit:(!P||p)&&(!F||!!t.turnId)&&t.deliveryStatus!==`sending`,responseFeedbackEnabled:D,showAssistantWorkLog:I})]},g)}),t[11]=i,t[12]=a,t[13]=y,t[14]=P,t[15]=F,t[16]=L,t[17]=R,t[18]=n,t[19]=_,t[20]=w,t[21]=S,t[22]=C,t[23]=v,t[24]=b,t[25]=x,t[26]=j,t[27]=u,t[28]=s,t[29]=d,t[30]=f,t[31]=D,t[32]=M,t[33]=I,t[34]=c,t[35]=o,t[36]=V,t[37]=H,t[38]=U,t[39]=W}else V=t[36],H=t[37],U=t[38],W=t[39];let G;t[40]!==H||t[41]!==U||t[42]!==W||t[43]!==A?(G=(0,$.jsxs)(`div`,{ref:W,className:H,children:[U,A]}),t[40]=H,t[41]=U,t[42]=W,t[43]=A,t[44]=G):G=t[44];let ee;return t[45]!==V||t[46]!==G?(ee=(0,$.jsx)(V,{children:G}),t[45]=V,t[46]=G,t[47]=ee):ee=t[47],ee});function jQ(e){return e.language}function MQ(e){return e.type===`text`&&e.text.trim()===`NO_REPLY`}function NQ(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=q(`xopc-loop-logo relative inline-block shrink-0`,r),t[0]=r,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsxs)(`linearGradient`,{id:`xopc-onboarding-ai-glass`,x1:`198`,y1:`180`,x2:`826`,y2:`844`,gradientUnits:`userSpaceOnUse`,children:[(0,$.jsx)(`stop`,{stopColor:`var(--xopc-loop-ai-highlight)`}),(0,$.jsx)(`stop`,{offset:`0.46`,stopColor:`var(--xopc-loop-ai)`}),(0,$.jsx)(`stop`,{offset:`1`,stopColor:`var(--xopc-loop-ai-shadow)`})]}),t[2]=c):c=t[2];let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,$.jsxs)(`svg`,{className:`size-full overflow-visible`,viewBox:`0 0 1024 1024`,fill:`none`,"aria-hidden":`true`,children:[(0,$.jsxs)(`defs`,{children:[c,(0,$.jsxs)(`linearGradient`,{id:`xopc-onboarding-human-glass`,x1:`340`,y1:`224`,x2:`700`,y2:`816`,gradientUnits:`userSpaceOnUse`,children:[(0,$.jsx)(`stop`,{stopColor:`var(--xopc-loop-human-highlight)`}),(0,$.jsx)(`stop`,{offset:`0.52`,stopColor:`var(--xopc-loop-human)`}),(0,$.jsx)(`stop`,{offset:`1`,stopColor:`var(--xopc-loop-human-shadow)`})]})]}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__ambient`,cx:`512`,cy:`512`,r:`330`}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__origin`,cx:`512`,cy:`512`,r:`330`}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__ai-glow`,cx:`512`,cy:`512`,r:`330`,strokeDasharray:`1419.162121 654.289030`,transform:`rotate(11.8 512 512)`}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__ai`,cx:`512`,cy:`512`,r:`330`,stroke:`url(#xopc-onboarding-ai-glass)`,strokeDasharray:`1419.162121 654.289030`,transform:`rotate(11.8 512 512)`}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__human`,cx:`512`,cy:`512`,r:`330`,stroke:`url(#xopc-onboarding-human-glass)`,strokeDasharray:`354.790530 1718.660621`,transform:`rotate(284.2 512 512)`}),(0,$.jsx)(`circle`,{className:`xopc-loop-logo__liquid-front`,cx:`512`,cy:`512`,r:`330`,strokeDasharray:`58 2015.451151`,transform:`rotate(11.8 512 512)`})]}),t[3]=l):l=t[3];let u;return t[4]!==o||t[5]!==a||t[6]!==s?(u=(0,$.jsx)(`span`,{className:s,role:`img`,"aria-hidden":o,"aria-label":a,children:l}),t[4]=o,t[5]=a,t[6]=s,t[7]=u):u=t[7],u}var PQ=(0,Z.memo)(function(e){let t=(0,Q.c)(19),{visible:n,onClick:r,edge:i,running:a}=e,o=i===void 0?`top`:i,s=a===void 0?!1:a,c=Pt(FQ),l;t[0]===c?l=t[1]:(l=kt(c),t[0]=c,t[1]=l);let u=l,d=!n,f=o===`top`?`-top-2 -translate-y-full`:`bottom-2`,p=n?`opacity-100`:`opacity-0`,m;t[2]!==f||t[3]!==p?(m=q(`pointer-events-none absolute inset-x-0 z-20 flex items-center justify-center transition-opacity duration-150 ease-out motion-reduce:transition-none`,f,p),t[2]=f,t[3]=p,t[4]=m):m=t[4];let h=n?`scale-100 opacity-100`:`pointer-events-none translate-y-1 scale-95 opacity-0`,g;t[5]===h?g=t[6]:(g=q(`group relative pointer-events-auto flex size-11 sm:size-8 shrink-0 items-center justify-center rounded-full border border-edge-subtle bg-surface-panel text-fg-muted shadow-surface`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.press,$r.focusRingPanel,h,`motion-reduce:translate-y-0 motion-reduce:scale-100`),t[5]=h,t[6]=g);let _=n?void 0:-1,v;t[7]===s?v=t[8]:(v=s?(0,$.jsx)(`span`,{"data-scroll-to-bottom-running-logo":!0,className:`flex size-5 items-center justify-center`,"aria-hidden":!0,children:(0,$.jsx)(NQ,{className:`xopc-loop-logo--stream size-5`})}):(0,$.jsx)(Bo,{"data-scroll-to-bottom-arrow":!0,className:`size-4 transition-transform duration-150 ease-out group-hover:translate-y-0.5 motion-reduce:transition-none`,strokeWidth:1.8,"aria-hidden":!0}),t[7]=s,t[8]=v);let y;t[9]!==u.chat.scrollToBottom||t[10]!==r||t[11]!==_||t[12]!==v||t[13]!==g?(y=(0,$.jsx)(`button`,{type:`button`,className:g,tabIndex:_,onClick:r,title:u.chat.scrollToBottom,"aria-label":u.chat.scrollToBottom,children:v}),t[9]=u.chat.scrollToBottom,t[10]=r,t[11]=_,t[12]=v,t[13]=g,t[14]=y):y=t[14];let b;return t[15]!==y||t[16]!==d||t[17]!==m?(b=(0,$.jsx)(`div`,{"data-scroll-to-bottom-dock":!0,"aria-hidden":d,className:m,children:y}),t[15]=y,t[16]=d,t[17]=m,t[18]=b):b=t[18],b});function FQ(e){return e.language}function IQ(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function LQ(e,t=48){return IQ(e)<=t}function RQ(e){e.scrollTop=e.scrollHeight}function zQ(e){return e.webkitDirectionInvertedFromDevice===!0?e.deltaY>0:e.deltaY<0}function BQ(e){let t=(0,Q.c)(42),{hasToken:n,showSessionLoading:r,conversationId:i,chatMessages:a,hasMore:o,loadingMore:s,loadMoreMessages:c}=e,l=(0,Z.useRef)(null),u=(0,Z.useRef)(null),d=(0,Z.useRef)(!0),f=(0,Z.useRef)(null),p=(0,Z.useRef)(0),m=(0,Z.useRef)(0),[h,g]=(0,Z.useState)(!0),_=(0,Z.useRef)(!0),v=(0,Z.useRef)(0),y;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={first:void 0,len:0,scrollHeight:0},t[0]=y):y=t[0];let b=(0,Z.useRef)(y),x;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>{d.current=e},t[1]=x):x=t[1];let S=x,C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>{let t=l.current;if(t&&!(!e?.force&&!d.current)){if(e?.force&&S(!0),e?.smooth){t.scrollTo({top:t.scrollHeight,behavior:`smooth`});return}RQ(t),g(LQ(t))}},t[2]=C):C=t[2];let w=C,T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=l.current;!e||e.scrollHeight<=e.clientHeight||(S(!1),g(LQ(e)))},t[3]=T):T=t[3];let E=T,D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>{let e=l.current;if(!e)return;let t=e.scrollHeight>p.current,n=e.clientHeight<m.current;p.current=e.scrollHeight,m.current=e.clientHeight,(t||n)&&w(),g(LQ(e))},t[4]=D):D=t[4];let O=D,k;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>{if(u.current===e||(f.current?.disconnect(),f.current=null,u.current=e,!e))return;let t=new ResizeObserver(O);t.observe(e),f.current=t},t[5]=k):k=t[5];let A=k,j,M;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>()=>{f.current?.disconnect()},M=[],t[6]=j,t[7]=M):(j=t[6],M=t[7]),(0,Z.useEffect)(j,M);let N;t[8]!==o||t[9]!==c||t[10]!==s?(N=()=>{let e=l.current;if(!e)return;let t=LQ(e);S(t),g(t),e.scrollTop<100&&!t&&o&&!s&&c()},t[8]=o,t[9]=c,t[10]=s,t[11]=N):N=t[11];let P=N,F;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{w({force:!0,smooth:e===void 0?!0:e})},t[12]=F):F=t[12];let I=F,L,R;t[13]!==n||t[14]!==r?(L=()=>{if(n){if(r){_.current=!0;return}_.current===!0&&(_.current=!1,S(!0),w({force:!0}))}},R=[r,n,S,w],t[13]=n,t[14]=r,t[15]=L,t[16]=R):(L=t[15],R=t[16]),(0,Z.useLayoutEffect)(L,R);let z;t[17]!==n||t[18]!==r?(z=()=>{!n||r||(b.current={first:void 0,len:0,scrollHeight:0},v.current=0,p.current=0,m.current=0,S(!0),w({force:!0}))},t[17]=n,t[18]=r,t[19]=z):z=t[19];let B;t[20]!==i||t[21]!==n||t[22]!==r?(B=[i,n,r,S,w],t[20]=i,t[21]=n,t[22]=r,t[23]=B):B=t[23],(0,Z.useLayoutEffect)(z,B);let V,H;t[24]!==a.length||t[25]!==r?(V=()=>{if(r)return;let e=a.length,t=v.current;v.current=e,e>t&&d.current&&w()},H=[a.length,r,w],t[24]=a.length,t[25]=r,t[26]=V,t[27]=H):(V=t[26],H=t[27]),(0,Z.useLayoutEffect)(V,H);let U;t[28]!==a[0]||t[29]!==a.length||t[30]!==r?(U=()=>{let e=l.current;if(!e||r)return;let t=b.current,n=a[0],i=a.length,o=e.scrollHeight;i>t.len&&t.len>0&&n!==void 0&&n!==t.first&&t.scrollHeight>0&&(e.scrollTop+=o-t.scrollHeight),b.current={first:n,len:i,scrollHeight:o}},t[28]=a[0],t[29]=a.length,t[30]=r,t[31]=U):U=t[31];let W;t[32]!==a||t[33]!==r?(W=[a,r],t[32]=a,t[33]=r,t[34]=W):W=t[34],(0,Z.useLayoutEffect)(U,W);let G,ee;t[35]!==n||t[36]!==r?(G=()=>{if(!n||r)return;let e=l.current;if(!e)return;let t=new ResizeObserver(O);t.observe(e);let i=e=>{Math.abs(e.deltaY)<Math.abs(e.deltaX)||Math.abs(e.deltaY)<.25||zQ(e)&&E()},a=0,o=e=>{e.touches.length===1&&(a=e.touches[0].clientY)},s=e=>{if(e.touches.length!==1)return;let t=e.touches[0].clientY,n=t-a;a=t,n>2&&E()},c=t=>{if(t.button!==0)return;let n=e.offsetWidth-e.clientWidth;if(n<=0)return;let r=e.getBoundingClientRect();t.clientX>=r.right-n&&E()};return e.addEventListener(`wheel`,i,{passive:!0}),e.addEventListener(`pointerdown`,c),e.addEventListener(`touchstart`,o,{passive:!0}),e.addEventListener(`touchmove`,s,{passive:!0}),()=>{t.disconnect(),e.removeEventListener(`wheel`,i),e.removeEventListener(`pointerdown`,c),e.removeEventListener(`touchstart`,o),e.removeEventListener(`touchmove`,s)}},ee=[n,r,E,O],t[35]=n,t[36]=r,t[37]=G,t[38]=ee):(G=t[37],ee=t[38]),(0,Z.useLayoutEffect)(G,ee);let te;return t[39]!==h||t[40]!==P?(te={scrollRef:l,atBottom:h,registerListContentRef:A,scrollToBottom:I,onScroll:P},t[39]=h,t[40]=P,t[41]=te):te=t[41],te}var VQ=256*1024,HQ=new TextEncoder;function UQ(e){return HQ.encode(e).byteLength}function WQ(e){return UQ(e)<=262144?e:new TextDecoder().decode(HQ.encode(e).subarray(0,VQ),{stream:!0})}function GQ(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(`
|
|
85
|
+
`);if((i.content.some(e=>e.type!==`text`)||i.attachments?.length)&&(n=!0),!e)continue;if(t<=256){n=!0;continue}let a=HQ.encode(e),o=a.byteLength+256>t?new TextDecoder().decode(a.subarray(0,t-256),{stream:!0}):e;o!==e&&(n=!0);let s=UQ(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 KQ=`xopc:side-chat-panes:v3`,qQ={text:``,attachments:[]};function JQ(e){return Math.min(760,Math.max(360,Math.round(e)))}function YQ(){return{panes:{},tabs:[],widthPx:520}}function XQ(){try{let e=JSON.parse(sessionStorage.getItem(KQ)||`{}`),t=Array.isArray(e.tabs)?e.tabs.filter(e=>!!(e?.id&&e.parentConversationId)):[],n=e.panes&&typeof e.panes==`object`?e.panes:{},r=Object.fromEntries(Object.entries(n).map(([e,n])=>{let r=t.filter(t=>t.parentConversationId===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.parentConversationId]??={open:!1,activeId:e.id};return{panes:r,tabs:t,widthPx:JQ(typeof e.widthPx==`number`?e.widthPx:520)}}catch{return YQ()}}function ZQ(e){try{sessionStorage.setItem(KQ,JSON.stringify(e))}catch{}}var QQ=XQ(),$Q=It((e,t)=>{let n=n=>{e(n),queueMicrotask(()=>{let e=t();ZQ({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{...QQ,drafts:{},readings:{},setDraftText:(n,r)=>e({drafts:{...t().drafts,[n]:{...t().drafts[n]??qQ,text:r}}}),setDraftAttachments:(n,r)=>e({drafts:{...t().drafts,[n]:{...t().drafts[n]??qQ,attachments:r}}}),rememberMessages:(n,r)=>{let i={...t().readings};delete i[n],i[n]=GQ(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)}),markPromoted:(e,r)=>n({tabs:t().tabs.map(t=>t.id===e?{...t,ended:`promoted`,promotedConversationId: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]??qQ},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.parentConversationId]:{open:a.panes[i.parentConversationId]?.open??!1,activeId:a.panes[i.parentConversationId]?.activeId===r?i.id:a.panes[i.parentConversationId]?.activeId??i.id}}})},reset:()=>{e({drafts:{},readings:{},pendingCreate:null,creatingRequests:{}}),n({panes:{},tabs:[]})},pendingCreate:null,creatingRequests:{},requestCreate:(n,i=[])=>{t().creatingRequests[n]||t().pendingCreate?.parentConversationId===n||(e({pendingCreate:{requestId:crypto.randomUUID(),parentConversationId:n,selections:i}}),r(n,{open:!0}))},claimPendingCreate:(n,r)=>{let i=t().pendingCreate;return!i||i.parentConversationId!==n||i.requestId!==r?null:(e({pendingCreate:null,creatingRequests:{...t().creatingRequests,[n]:r}}),i)},finishCreate:(n,r)=>{if(t().creatingRequests[n]!==r)return;let i={...t().creatingRequests};delete i[n],e({creatingRequests:i})},addTab:e=>{let r=[...t().tabs.filter(t=>t.id!==e.id),{...e,lastSelectedAt:Date.now()}],i=t().panes[e.parentConversationId]??{open:!1,activeId:null};n({tabs:r,panes:{...t().panes,[e.parentConversationId]:{...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.parentConversationId===i.parentConversationId),l=t().panes[i.parentConversationId]??{open:!1,activeId:null},u=l.activeId===r?c.at(-1)?.id??null:l.activeId;n({tabs:s,panes:{...t().panes,[i.parentConversationId]:{open:c.length>0&&l.open,activeId:u}}})},setActive:e=>{let i=t().tabs.find(t=>t.id===e);i&&(n({tabs:t().tabs.map(t=>t.id===e?{...t,lastSelectedAt:Date.now()}:t)}),r(i.parentConversationId,{activeId:e,open:!0}))},setTabRunId:(e,r)=>n({tabs:t().tabs.map(t=>t.id===e?{...t,runId:r}:t)}),setOpen:(e,n)=>{if(!n){r(e,{open:n});return}let i=t(),a=i.tabs.filter(t=>t.parentConversationId===e&&!t.ended&&!t.promotedConversationId),o=a.find(t=>t.id===i.panes[e]?.activeId)??a.reduce((e,t)=>!e||(t.lastSelectedAt??0)>=(e.lastSelectedAt??0)?t:e,void 0);r(e,{open:n,activeId:o?.id??null}),o||i.requestCreate(e)},setWidthPx:e=>n({widthPx:JQ(e)})}});At.subscribe((e,t)=>{if(e.baseUrl!==t.baseUrl||t.conversationId!==void 0&&e.conversationId!==t.conversationId){$Q.getState().reset();try{sessionStorage.removeItem(`xopc:side-chat-client-id`)}catch{}}});var e$=`xopc:side-chat-client-id`;function t$(){let e=sessionStorage.getItem(e$);if(e)return e;let t=crypto.randomUUID();return sessionStorage.setItem(e$,t),t}function n$(){return{"x-xopc-client-instance-id":t$()}}async function r$(e,t){return(await J(Y(`/api/sessions/${encodeURIComponent(e)}/side-chats`),{method:`POST`,headers:n$(),body:JSON.stringify({clientInstanceId:t$(),selections:t})})).sideChat}async function i$(e){return(await J(Y(`/api/side-chats/${e}`),{headers:n$()})).sideChat}async function a$(e){return(await J(Y(`/api/side-chats/${e}/messages`),{headers:n$()})).messages}async function o$(e,t){return(await J(Y(`/api/side-chats/${e}/config`),{method:`PATCH`,headers:n$(),body:JSON.stringify(t)})).sideChat}async function s$(e,t,n){return(await J(Y(`/api/side-chats/${e}/inputs`),{method:`POST`,headers:n$(),body:JSON.stringify({content:t,attachments:n})})).payload.runId}async function c$(e,t){await J(Y(`/api/side-chats/${e}/abort`),{method:`POST`,headers:n$(),body:JSON.stringify({runId:t})})}async function l$(e,t,n){await J(Y(`/api/side-chats/${e}/clarify/${t}`),{method:`POST`,headers:n$(),body:JSON.stringify({answer:n})})}async function u$(e){await J(Y(`/api/side-chats/${e}`),{method:`DELETE`,headers:n$()})}async function d$(e){return(await J(Y(`/api/side-chats/${e}/heartbeat`),{method:`POST`,headers:n$()})).sideChat}async function f$(e){return(await J(Y(`/api/side-chats/${e}/extend`),{method:`POST`,headers:n$()})).sideChat}async function p$(e){return J(Y(`/api/side-chats/${e}/promote`),{method:`POST`,headers:n$()})}var m$=`xopc:side-chat-close-confirm-disabled:v1`,h$=()=>{},g$=[];function _$(){try{return localStorage.getItem(m$)===`true`}catch{return!1}}function v$(){try{localStorage.setItem(m$,`true`)}catch{}}function y$(e){return e.role===`user`?e.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
86
|
+
`).trim():``}function b$(e){return(e.attachments??[]).map(e=>e.name??``).filter(Boolean).join(`
|
|
87
|
+
`)}function x$(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 S$(e,t){let n=[...e];for(let[e,r]of t){let i=y$(r),a=b$(r),o=r.timestamp??0;if(n.some(e=>e.role===`user`&&y$(e)===i&&b$(e)===a&&Math.abs((e.timestamp??o)-o)<6e4)){t.delete(e);continue}let s=n.findIndex(e=>(e.timestamp??1/0)>o);s<0?n.push(r):n.splice(s,0,r)}return n}function C$(e){let t=(0,Q.c)(129),{parentConversationId:n}=e,r=Pt(z$),i;t[0]===r?i=t[1]:(i=kt(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=$Q(o),c=$Q(R$),l;if(t[4]!==c||t[5]!==n){let e;t[7]===n?e=t[8]:(e=e=>e.parentConversationId===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=$Q(d),p=$Q(L$),m=$Q(I$),h=$Q(F$),g=$Q(P$),_=$Q(N$),v=$Q(M$),y=$Q(j$),b=$Q(A$),x=$Q(k$),S=$Q(O$),C=$Q(D$),w=At(E$),E;t[11]!==f||t[12]!==u?(E=u.find(e=>e.id===f)??null,t[11]=f,t[12]=u,t[13]=E):E=t[13];let D=E,O;t[14]===n?O=t[15]:(O=e=>!!e.creatingRequests[n],t[14]=n,t[15]=O);let k=$Q(O),[A,j]=(0,Z.useState)(null),[M,N]=(0,Z.useState)(!1),[P,F]=(0,Z.useState)(null),[I,L]=(0,Z.useState)(!1),R,z;t[16]!==_||t[17]!==h||t[18]!==g||t[19]!==a||t[20]!==n||t[21]!==p||t[22]!==b?(R=()=>{if(!p||p.parentConversationId!==n)return;let e=h(n,p.requestId);if(!e)return;j(null);let t=At.getState();r$(e.parentConversationId,e.selections).then(e=>{if(At.getState().conversationId!==t.conversationId||At.getState().baseUrl!==t.baseUrl)return;let n=$Q.getState().panes[e.parentConversationId]?.open===!0;_({id:e.id,parentConversationId:e.parentConversationId,title:`Side chat`}),n||b(e.parentConversationId,!1)}).catch(e=>{j(x$(e,a))}).finally(()=>{g(e.parentConversationId,e.requestId)})},z=[_,h,g,a,n,p,b],t[16]=_,t[17]=h,t[18]=g,t[19]=a,t[20]=n,t[21]=p,t[22]=b,t[23]=R,t[24]=z):(R=t[23],z=t[24]),(0,Z.useEffect)(R,z);let B;t[25]===v?B=t[26]:(B=e=>{let t=$Q.getState().tabs.find(t=>t.id===e)?.promotedConversationId;v(e),t||u$(e).catch(T$)},t[25]=v,t[26]=B);let V=B,H;t[27]===V?H=t[28]:(H=e=>{let t=$Q.getState(),n=t.tabs.find(t=>t.id===e),r=t.readings[e],i=t.drafts[e];if(n?.promotedConversationId){V(e);return}if(r&&!r.messages.length&&!r.truncated&&!i?.text.trim()&&!i?.attachments.length&&!n?.runId||_$()){V(e);return}L(!1),F(e)},t[27]=V,t[28]=H);let U=H,W;t[29]===S?W=t[30]:(W=e=>{e.preventDefault();let t=e.clientX,n=$Q.getState().widthPx,r=e.pointerId;e.currentTarget.setPointerCapture(r),N(!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=>{S(Math.min(760,Math.max(360,n+t-e.clientX))),N(!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[29]=S,t[30]=W);let G=W;if(!s)return null;let ee=a.paneAria,te=M&&`side-chat-panel-resizing`,ne;t[31]===te?ne=t[32]:(ne=q(`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 app-side-chat-panel-enter`,te),t[31]=te,t[32]=ne);let K=`${x}px`,re;t[33]===K?re=t[34]:(re={"--side-chat-panel-px":K},t[33]=K,t[34]=re);let ie=re,ae;t[35]!==a.resizeAria||t[36]!==G?(ae=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":a.resizeAria,onPointerDown:G,className:`absolute left-0 top-0 z-20 hidden h-full w-2 cursor-col-resize touch-none md:block`}),t[35]=a.resizeAria,t[36]=G,t[37]=ae):ae=t[37];let oe;if(t[38]!==f||t[39]!==a.closeAria||t[40]!==a.endedLabel||t[41]!==a.savedLabel||t[42]!==a.title||t[43]!==U||t[44]!==y||t[45]!==u){let e;t[47]!==f||t[48]!==a.closeAria||t[49]!==a.endedLabel||t[50]!==a.savedLabel||t[51]!==a.title||t[52]!==U||t[53]!==y?(e=e=>(0,$.jsxs)(`div`,{className:q(`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:()=>y(e.id),children:[e.title===`Side chat`?a.title:e.title,e.ended?` · ${e.ended===`promoted`?a.savedLabel: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:()=>U(e.id),children:(0,$.jsx)(Dt,{className:`size-3.5`})})]},e.id),t[47]=f,t[48]=a.closeAria,t[49]=a.endedLabel,t[50]=a.savedLabel,t[51]=a.title,t[52]=U,t[53]=y,t[54]=e):e=t[54],oe=u.map(e),t[38]=f,t[39]=a.closeAria,t[40]=a.endedLabel,t[41]=a.savedLabel,t[42]=a.title,t[43]=U,t[44]=y,t[45]=u,t[46]=oe}else oe=t[46];let se;t[55]!==n||t[56]!==m?(se=()=>m(n),t[55]=n,t[56]=m,t[57]=se):se=t[57];let ce;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(rt,{className:`size-4`}),t[58]=ce):ce=t[58];let le;t[59]!==k||t[60]!==a.newAria||t[61]!==se?(le=(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`size-8 shrink-0 p-0`,"aria-label":a.newAria,title:a.newAria,disabled:k,onClick:se,children:ce}),t[59]=k,t[60]=a.newAria,t[61]=se,t[62]=le):le=t[62];let ue;t[63]!==n||t[64]!==b?(ue=()=>b(n,!1),t[63]=n,t[64]=b,t[65]=ue):ue=t[65];let de;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsx)(T,{className:`size-4`}),t[66]=de):de=t[66];let fe;t[67]!==a.closePaneAria||t[68]!==ue?(fe=(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`ml-auto size-8 shrink-0 p-0`,"aria-label":a.closePaneAria,onClick:ue,children:de}),t[67]=a.closePaneAria,t[68]=ue,t[69]=fe):fe=t[69];let pe;t[70]!==oe||t[71]!==le||t[72]!==fe?(pe=(0,$.jsxs)(`div`,{"data-side-chat-header":!0,className:`flex h-11 shrink-0 items-center gap-1 overflow-x-auto px-2`,children:[oe,le,fe]}),t[70]=oe,t[71]=le,t[72]=fe,t[73]=pe):pe=t[73];let me;t[74]!==D||t[75]!==c||t[76]!==A||t[77]!==a.title||t[78]!==y?(me=A&&D?(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:A}),c.filter(w$).map(e=>(0,$.jsx)(`button`,{type:`button`,className:`mr-2 mt-1 rounded border border-edge px-2 py-1`,onClick:()=>{y(e.id),window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{conversationId:e.parentConversationId}}))},children:e.title===`Side chat`?a.title:e.title},e.id))]}):null,t[74]=D,t[75]=c,t[76]=A,t[77]=a.title,t[78]=y,t[79]=me):me=t[79];let he;t[80]!==D||t[81]!==A||t[82]!==k||t[83]!==a.retryCreate||t[84]!==a.temporaryDescription||t[85]!==a.title||t[86]!==n||t[87]!==m||t[88]!==C||t[89]!==w?(he=D?(0,$.jsx)(B$,{sideChatId:D.id,token:w??void 0,initialRunId:D.runId,onRunIdChange:C,parentConversationId:n},`${D.id}:${w??``}`):(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center justify-center px-8 text-center`,children:[(0,$.jsx)(Xe,{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}),k?(0,$.jsx)(ta,{className:`mt-4 h-4 w-32`}):null,A?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`mt-4 text-xs text-red-600 dark:text-red-400`,role:`alert`,children:A}),(0,$.jsx)(X,{className:`mt-3`,disabled:k,onClick:()=>m(n),children:a.retryCreate})]}):null]}),t[80]=D,t[81]=A,t[82]=k,t[83]=a.retryCreate,t[84]=a.temporaryDescription,t[85]=a.title,t[86]=n,t[87]=m,t[88]=C,t[89]=w,t[90]=he):he=t[90];let ge=P!==null,_e;t[91]!==a.closeConfirmTitle||t[92]!==a.stopCloseTitle||t[93]!==P||t[94]!==u?(_e=u.find(e=>e.id===P)?.runId?a.stopCloseTitle:a.closeConfirmTitle,t[91]=a.closeConfirmTitle,t[92]=a.stopCloseTitle,t[93]=P,t[94]=u,t[95]=_e):_e=t[95];let ve;t[96]!==a.closeConfirmDescription||t[97]!==a.stopCloseDescription||t[98]!==P||t[99]!==u?(ve=u.find(e=>e.id===P)?.runId?a.stopCloseDescription:a.closeConfirmDescription,t[96]=a.closeConfirmDescription,t[97]=a.stopCloseDescription,t[98]=P,t[99]=u,t[100]=ve):ve=t[100];let ye;t[101]!==a.closeConfirmAction||t[102]!==a.stopCloseAction||t[103]!==P||t[104]!==u?(ye=u.find(e=>e.id===P)?.runId?a.stopCloseAction:a.closeConfirmAction,t[101]=a.closeConfirmAction,t[102]=a.stopCloseAction,t[103]=P,t[104]=u,t[105]=ye):ye=t[105];let be;t[106]!==V||t[107]!==I||t[108]!==P?(be=()=>{let e=P;e&&(I&&v$(),F(null),L(!1),V(e))},t[106]=V,t[107]=I,t[108]=P,t[109]=be):be=t[109];let xe;t[110]===Symbol.for(`react.memo_cache_sentinel`)?(xe=()=>{F(null),L(!1)},t[110]=xe):xe=t[110];let Se;t[111]!==I||t[112]!==a.closeConfirmCancel||t[113]!==a.closeConfirmDontAskAgain||t[114]!==ge||t[115]!==_e||t[116]!==ve||t[117]!==ye||t[118]!==be?(Se=(0,$.jsx)(sV,{open:ge,title:_e,description:ve,confirmLabel:ye,cancelLabel:a.closeConfirmCancel,checkboxLabel:a.closeConfirmDontAskAgain,checkboxChecked:I,onCheckboxCheckedChange:L,destructive:!0,onConfirm:be,onCancel:xe}),t[111]=I,t[112]=a.closeConfirmCancel,t[113]=a.closeConfirmDontAskAgain,t[114]=ge,t[115]=_e,t[116]=ve,t[117]=ye,t[118]=be,t[119]=Se):Se=t[119];let Ce;return t[120]!==a.paneAria||t[121]!==ne||t[122]!==ie||t[123]!==ae||t[124]!==pe||t[125]!==me||t[126]!==he||t[127]!==Se?(Ce=(0,$.jsxs)(`aside`,{id:`app-side-chat-panel`,"aria-label":ee,className:ne,style:ie,children:[ae,pe,me,he,Se]}),t[120]=a.paneAria,t[121]=ne,t[122]=ie,t[123]=ae,t[124]=pe,t[125]=me,t[126]=he,t[127]=Se,t[128]=Ce):Ce=t[128],Ce}function w$(e){return!e.ended}function T$(){}function E$(e){return e.conversationId}function D$(e){return e.setTabRunId}function O$(e){return e.setWidthPx}function k$(e){return e.widthPx}function A$(e){return e.setOpen}function j$(e){return e.setActive}function M$(e){return e.removeTab}function N$(e){return e.addTab}function P$(e){return e.finishCreate}function F$(e){return e.claimPendingCreate}function I$(e){return e.requestCreate}function L$(e){return e.pendingCreate}function R$(e){return e.tabs}function z$(e){return e.language}function B$({sideChatId:e,token:t,initialRunId:n,onRunIdChange:r,parentConversationId:i}){let[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)(()=>$Q.getState().readings[e]?.messages??[]),l=$Q(t=>t.drafts[e]?.text??``),u=$Q(t=>t.drafts[e]?.attachments??g$),d=(0,Z.useCallback)(t=>$Q.getState().setDraftText(e,t),[e]),f=(0,Z.useCallback)(t=>{$Q.getState().setDraftAttachments(e,t)},[e]),[p,m]=(0,Z.useState)(()=>$Q.getState().tabs.find(t=>t.id===e)?.ended),[h,g]=(0,Z.useState)(!p),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(!1),[C,w]=(0,Z.useState)(!1),[T,E]=(0,Z.useState)(!1),[D,O]=(0,Z.useState)(()=>$Q.getState().tabs.find(t=>t.id===e)?.promotedConversationId),[k,A]=(0,Z.useState)(!1),[j,M]=(0,Z.useState)(``),[N,P]=(0,Z.useState)(Date.now),[F,I]=(0,Z.useState)(0),L=$Q(t=>t.tabs.find(t=>t.id===e)?.fresh),R=$Q(t=>t.readings[e]?.truncated??!1),z=(0,Z.useRef)(!0),B=(0,Z.useRef)(p),V=(0,Z.useRef)(At.getState()),H=(0,Z.useCallback)(()=>V.current.conversationId===At.getState().conversationId&&V.current.baseUrl===At.getState().baseUrl,[]),U=(0,Z.useCallback)(()=>z.current&&H(),[H]);(0,Z.useEffect)(()=>(z.current=!0,()=>{z.current=!1}),[]);let[W,G]=(0,Z.useState)(!!n),[ee,te]=(0,Z.useState)(n),[ne,K]=(0,Z.useState)(null),[re,ie]=(0,Z.useState)(null),[ae,oe]=(0,Z.useState)(!1),[se,ce]=(0,Z.useState)(null),le=(0,Z.useRef)(!1),ue=(0,Z.useRef)(0),de=(0,Z.useRef)(0),pe=(0,Z.useRef)(!1),me=(0,Z.useRef)(!1),he=(0,Z.useRef)(new Map),_e=kt(Pt(e=>e.language)),ve=_e.sideChat,ye=ge({chat:_e.chat,initialAttachments:u,onAttachmentsChange:f}),be=EU({conversationId:e,disabled:!!p||_,initialValue:l,onValueChange:d,autoFocusKey:e,shouldSyncSelectionRef:le}),xe=(0,Z.useRef)({}),{scrollRef:Se,atBottom:Ce,registerListContentRef:we,scrollToBottom:Te,onScroll:Ee}=BQ({hasToken:!0,showSessionLoading:!1,conversationId:e,chatMessages:s,hasMore:!1,loadingMore:!1,loadMoreMessages:h$});(0,Z.useEffect)(()=>{U()&&(s.length||!h)&&$Q.getState().rememberMessages(e,s)},[s,h,e,U]);let De=(0,Z.useCallback)(t=>{!U()||B.current||(B.current=t,ue.current+=1,m(t),G(!1),te(void 0),ie(null),o(null),M(``),K(null),v(!1),g(!1),c(e=>GQ(e).messages),$Q.getState().markEnded(e,t))},[U,e]),Oe=(0,Z.useCallback)(e=>{if(!U()||me.current)return;let t=e;t.body?.code===`EXPIRED`||t.status===410?De(t.body?.reason===`waiting`?`waiting`:`idle`):t.status===404||t.body?.code===`NOT_FOUND`?De(`unavailable`):v(!0),g(!1)},[De,U]),ke=(0,Z.useCallback)(t=>{if(!U()||B.current)return;let n=t.serverNow?Date.parse(t.serverNow):0;n&&n<de.current||(de.current=n,o(t),v(!1),t.serverNow&&I(Date.parse(t.serverNow)-Date.now()),P(Date.now()),G(t.status!==`idle`),te(t.runId),r(e,t.runId),ie(t.clarification??null))},[U,r,e]),Ae=(0,Z.useCallback)(async()=>{let t=ue.current;try{let[n,r]=await Promise.all([i$(e),a$(e)]);if(!U()||B.current)return;ue.current===t&&(ke(n),c(S$(_r(r),he.current))),g(!1)}catch(e){Oe(e)}},[ke,Oe,U,e]);(0,Z.useEffect)(()=>{if(p)return;Ae();let t=!1,n=async()=>{if(t||B.current)return;t=!0;let n=ue.current;try{let t=await d$(e);t&&n===ue.current&&ke(t)}catch(e){Oe(e)}finally{t=!1}},r=window.setInterval(()=>{P(Date.now()),n()},3e4),i=()=>{document.visibilityState!==`hidden`&&Ae()};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)}},[p,Ae,ke,Oe,e]),(0,Z.useEffect)(()=>{if(!p)return fi(`side-chat:${t$()}:${e}`,{onEvent:e=>{e.event===`expired`&&De(e.data?.reason===`waiting`?`waiting`:`idle`)},onGap:()=>Ae()})},[p,De,Ae,e]),(0,Z.useEffect)(()=>{if(!j)return;let e=window.setTimeout(()=>M(``),5e3);return()=>window.clearTimeout(e)},[j]);let je=a?.expiresAt?Date.parse(a.expiresAt)-(N+F):1/0,Me=!p&&!_&&je<=5*6e4,Ne=async()=>{if(!(y||B.current)){b(!0);try{let t=await f$(e);if(!U()||B.current)return;ke(t),K(null),M(ve.extended)}catch(e){let t=e.status;(t===404||t===410)&&Oe(e),B.current||K(ve.extendFailed)}finally{b(!1)}}},Pe=async()=>{let t=i??$Q.getState().tabs.find(t=>t.id===e)?.parentConversationId;if(!(!t||x)){S(!0),K(null);try{let n=await r$(t,[]);if(!H())return;$Q.getState().replaceTab(e,{id:n.id,parentConversationId:t,title:`Side chat`})}catch(e){if(!U())return;e.body?.code===`PARENT_NOT_FOUND`&&A(!0),K(x$(e,ve))}finally{S(!1)}}},Fe=(0,Z.useCallback)(e=>{ue.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(!(!ee||p))return fi(`run:${ee}`,{onEvent:t=>{if(!U()||B.current)return;let n=t.data?.payload??{};t.event===`assistant_message_start`?Fe(()=>{}):t.event===`assistant_delta`?Fe(e=>qn(e.content,String(n.delta??``),String(n.messageId??``))):t.event===`thinking_delta`?Fe(e=>er(e.content,String(n.delta??``),!0)):t.event===`thinking_end`?Fe(e=>Jn(e.content)):t.event===`tool_start`?Fe(e=>Cr(e.content,String(n.toolName??`tool`),n.args,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`tool_end`?Fe(e=>Sr(e.content,String(n.toolName??`tool`),n.status===`error`,n.result,String(n.toolCallId??``),Date.now(),n.activity)):t.event===`clarify_request`?(ie({requestId:String(n.requestId??``),kind:n.kind===`approval`?`approval`:`input`,question:String(n.question??``),choices:Array.isArray(n.choices)?n.choices.filter(e=>typeof e==`string`):void 0,suggestedAnswer:typeof n.suggestedAnswer==`string`?n.suggestedAnswer:void 0}),ce(null),Ae()):t.event===`error`?K(String(n.message??ve.failed)):t.event===`run_end`&&(G(!1),te(void 0),r(e,void 0),ie(null),Ae())},onGap:()=>Ae()})},[p,U,Fe,r,Ae,ee,e,ve.failed]);let Ie=()=>{let t=l.trim(),n=ye.wireAttachmentsPayload();if(!t&&n.length===0||W||pe.current||B.current||_)return;if(UQ(t)>262144){K(ve.draftTooLong);return}let i={text:l,attachments:[...ye.attachmentsRef.current]};pe.current=!0,be.resetEditor(),ye.clearAttachments(),K(null),ue.current+=1;let a=crypto.randomUUID(),o={role:`user`,content:[{type:`text`,text:t}],attachments:i.attachments,timestamp:Date.now(),renderKey:`side-chat-user:${a}`};he.current.set(a,o),c(e=>[...e,o]),G(!0),s$(e,t,n).then(t=>{!H()||B.current||($Q.getState().setTabRunId(e,t),U()&&(te(t),r(e,t)))}).catch(t=>{if(!H())return;let n=$Q.getState();if(!U()&&!n.tabs.some(t=>t.id===e))return;let r=$Q.getState().drafts[e]??{text:``,attachments:[]},s={text:r.text?`${i.text}\n${r.text}`:i.text,attachments:[...i.attachments,...r.attachments]};U()?(be.resetEditor({nextText:s.text}),ye.setAttachments(s.attachments)):(d(s.text),f(s.attachments)),he.current.delete(a);let l=n.readings[e];if(l&&n.rememberMessages(e,l.messages.filter(e=>e.renderKey!==o.renderKey)),!U())return;c(e=>e.filter(e=>e.renderKey!==o.renderKey)),G(!1);let u=t.status;u===404||u===410?Oe(t):K(x$(t,ve))}).finally(()=>{pe.current=!1})},Le=async t=>{if(!(!re||B.current)){oe(!0),ce(null);try{await l$(e,re.requestId,t),ie(null),Ae()}catch(e){e.status===410?Oe(e):ce(x$(e,ve))}finally{oe(!1)}}},Re=async()=>{try{await c$(e,ee),U()&&ie(null)}catch(e){if(!U())return;let t=e.status;t===404||t===410?Oe(e):K(x$(e,ve))}},ze=(0,Z.useCallback)(e=>{be.resetEditor({nextText:e,focus:!0})},[be.resetEditor]),Be=(0,Z.useCallback)(async e=>{try{let t=await qe(e.trim(),`web`);ht(`success`,_e.chat.messageSavedToNote,void 0,{href:`/notes/${encodeURIComponent(t.id)}`})}catch(e){throw ht(`error`,e instanceof Error?e.message:_e.notes.quickCaptureFailed),e}},[_e.chat.messageSavedToNote,_e.notes.quickCaptureFailed]),Ve=(0,Z.useCallback)(async()=>{if(!(me.current||W||B.current||s.length===0)){me.current=!0,w(!0),E(!1),K(null);try{let t=await p$(e);if(!H())return;B.current=`promoted`,m(`promoted`),O(t.conversationId),G(!1),te(void 0),ie(null),o(null),r(e,void 0),$Q.getState().markPromoted(e,t.conversationId),ht(`success`,ve.savedTitle,void 0,{href:`/chat/${encodeURIComponent(t.conversationId)}`})}catch(e){if(!U())return;K(x$(e,ve)||ve.saveFailed)}finally{me.current=!1,U()&&w(!1)}}},[U,s.length,r,W,H,e,ve]),He=(0,Z.useCallback)(()=>{if(l.trim()||u.length){E(!0);return}Ve()},[u.length,l,Ve]),Ue=(0,Z.useCallback)(async t=>{let n=await o$(e,t);U()&&!B.current&&o(n)},[U,e]);return xe.current={adapters:[],send:Ie,runBusy:W,pendingFollowUpsCount:0,editingFollowUpId:null,onCancelEditFollowUp:()=>{},attachmentsLen:ye.attachments.length,contextRefsLen:0,isComposing:be.isComposing,valueRef:be.valueRef,adjustHeight:be.adjustHeight,editorRef:be.editorRef},(0,$.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[(0,$.jsxs)(`div`,{ref:Se,"data-side-chat-scroll-viewport":!0,onScroll:Ee,className:`chat-messages h-full overflow-y-auto overflow-x-hidden px-5 py-4 [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,children:[h&&!s.length?(0,$.jsxs)(`div`,{className:`space-y-5`,"aria-busy":`true`,"aria-label":ve.creating,children:[(0,$.jsx)(ta,{className:`ml-auto h-12 w-3/4`}),(0,$.jsx)(ta,{className:`h-4 w-full`}),(0,$.jsx)(ta,{className:`h-4 w-4/5`})]}):s.length?(0,$.jsx)(AQ,{messages:s,authToken:t,conversationId:e,workspaceConversationId:i,streaming:W,progress:null,reasoningLevel:`on`,registerListContentRef:we,deleteRoundDisabled:W||!!p,onSaveAssistantAsNote:Be,onEditUserMessage:p?void 0:e=>ze(y$(e)),responseFeedbackEnabled:!1}):p?null:(0,$.jsxs)(`div`,{className:`flex min-h-64 flex-col items-center justify-center text-center`,children:[(0,$.jsx)(Xe,{className:`mb-4 size-9 text-fg-muted`,strokeWidth:1.5}),(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:ve.title}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:L?ve.freshContext:ve.emptyDescription}),(0,$.jsx)(`p`,{className:`mt-2 max-w-sm text-xs leading-5 text-fg-muted`,children:ve.temporaryDescription})]}),R&&p?(0,$.jsx)(`p`,{className:`mt-3 text-xs text-fg-muted`,children:ve.partialReading}):null]}),(0,$.jsx)(PQ,{visible:!Ce,onClick:()=>Te(!0),edge:`bottom`,running:W})]}),_&&!p?(0,$.jsx)(`p`,{role:`status`,className:`shrink-0 px-4 py-2 text-xs text-fg-muted`,children:ve.connectionLost}):null,j?(0,$.jsx)(`p`,{role:`status`,className:`shrink-0 px-4 py-2 text-xs text-fg-muted`,children:j}):null,Me?(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:je<=0?ve.verifying:ve.expiring.replace(`{{minutes}}`,String(Math.max(1,Math.ceil(je/6e4))))}),(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`ml-auto h-8 text-xs`,disabled:y||je<=0,onClick:()=>void Ne(),children:ve.keepAlive})]}):null,re&&!p?(0,$.jsx)(`div`,{className:`shrink-0 border-t border-edge px-3 pt-3`,children:(0,$.jsx)(lM,{prompt:re,submitting:ae,submitError:se,labels:_e.chat,onSubmit:Le,onAgentDecide:()=>Le(`Use your best judgment and continue without additional user input.`),onCancel:Re})}):null,ne?(0,$.jsx)(`p`,{className:`border-t border-edge px-4 py-2 text-xs text-red-600 dark:text-red-400`,children:ne}):null,p===`promoted`&&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:ve.savedTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:ve.savedDescription}),(0,$.jsx)(X,{type:`button`,variant:`primary`,className:`mt-4`,onClick:()=>{window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{conversationId:D}}))},children:ve.openSavedChat})]})}):p?(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:p===`unavailable`?ve.unavailableTitle:ve.expiredTitle}),(0,$.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:k?ve.parentMissing:p===`waiting`?ve.waitExpired:s.length?ve.expiredDescription:ve.unavailableDescription}),l||u.length?(0,$.jsxs)(`div`,{className:`mt-3`,children:[(0,$.jsx)(`label`,{htmlFor:`side-chat-draft-${e}`,className:`text-xs text-fg-muted`,children:ve.unsentDraft}),(0,$.jsx)(fe,{attachments:u,topPadded:!1,onRemove:ye.removeAttachment,className:`mt-1 rounded-t-lg`}),l?(0,$.jsx)(`textarea`,{id:`side-chat-draft-${e}`,value:l,onChange:e=>d(WQ(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]}):null,(0,$.jsx)(X,{type:`button`,variant:`primary`,className:`mt-4`,disabled:x,onClick:()=>{k?i&&$Q.getState().setOpen(i,!1):Pe()},children:k?ve.closePaneAria:x?ve.creating:l.trim()||u.length?ve.newWithDraft:ve.newAria}),s.length&&!k?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:ve.replaceHint}):null]})}):(0,$.jsx)(`form`,{"data-side-chat-composer":!0,onSubmit:e=>{e.preventDefault(),Ie()},className:`shrink-0 p-3`,children:(0,$.jsxs)(kU,{dragging:ye.isDragging,onDragOver:e=>{e.dataTransfer?.types.includes(`Files`)&&(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,ye.setIsDragging(!0))},onDragLeave:e=>{e.relatedTarget===null&&ye.setIsDragging(!1)},onDrop:e=>{e.preventDefault(),ye.setIsDragging(!1);let t=e.dataTransfer?.files;t?.length&&ye.processFiles(Array.from(t))},children:[(0,$.jsx)(`input`,{ref:ye.fileInputRef,type:`file`,multiple:!0,className:`hidden`,onChange:e=>{let t=e.target.files;t&&ye.processFiles(Array.from(t)),e.target.value=``}}),(0,$.jsx)(fe,{attachments:ye.attachments,topPadded:!1,onRemove:ye.removeAttachment}),a?.context.selections.length?(0,$.jsxs)(`div`,{className:`mx-3 mt-3 inline-flex h-8 max-w-[calc(100%-1.5rem)] self-start items-center gap-1.5 rounded-lg border border-edge bg-surface-base px-2.5 text-xs font-medium text-fg-muted sm:mx-4`,title:a.context.selections.map(e=>e.label||e.text).join(`
|
|
88
|
+
`),children:[(0,$.jsx)(Mv,{className:`size-3.5 shrink-0`}),(0,$.jsx)(`span`,{className:`truncate`,children:(a.context.selections.length===1?ve.selectionCount_one:ve.selectionCount_other).replace(`{{count}}`,String(a.context.selections.length))})]}):null,(0,$.jsx)(`div`,{className:a?.context.selections.length?`px-3 sm:px-4`:`px-3 pt-1 sm:px-4`,children:(0,$.jsx)(DU,{editorRef:be.editorRef,disabled:_,placeholder:_e.chat.typeMessage,onWireInput:(e,t)=>{let n=WQ(e);UQ(e)>262144&&K(ve.draftTooLong),be.onWireInput(n,Math.min(t,n.length))},adjustHeight:be.adjustHeight,processFiles:ye.processFiles,processPastedText:ye.processPastedText,setIsComposing:be.setIsComposing,kbdRef:xe,chatMessages:_e.chat})}),(0,$.jsxs)(nW,{children:[(0,$.jsx)(eW,{disabled:_,runBusy:W,attachmentCount:ye.attachments.length,maxAttachments:10,chat:_e.chat,onPickFiles:()=>ye.fileInputRef.current?.click()}),(0,$.jsxs)(X,{type:`button`,variant:`ghost`,className:`h-8 shrink-0 px-2 text-xs`,"aria-label":ve.saveAsChat,title:W?ve.saveBusy:ve.saveAsChat,disabled:C||W||_||s.length===0,onClick:He,children:[(0,$.jsx)(GS,{className:`size-3.5`}),(0,$.jsx)(`span`,{className:`max-sm:hidden`,children:C?ve.savingChat:ve.saveAsChat})]}),(0,$.jsx)(`div`,{className:`ml-auto min-w-0`,children:a?(0,$.jsx)(zU,{chat:_e.chat,sessionModel:a.config.modelRef,modelDisabled:W||_,onModelChange:(e,t)=>Ue({modelRef:e,thinkingLevel:t}),thinkingLevel:a.config.thinkingLevel,thinkingDisabled:W||_,onThinkingChange:e=>Ue({thinkingLevel:e})}):null}),(0,$.jsx)(tW,{disabled:_||UQ(l)>262144,voiceActive:!1,runBusy:W,hasDraft:!!l.trim()||ye.attachments.length>0,showSteeringInterrupt:!1,chat:_e.chat,onSend:Ie,onAbort:()=>void Re()})]})]})}),(0,$.jsx)(sV,{open:T,title:ve.saveDraftTitle,description:ve.saveDraftDescription,confirmLabel:ve.saveDraftAction,cancelLabel:ve.closeConfirmCancel,onConfirm:()=>void Ve(),onCancel:()=>E(!1)})]})}function V$(e){XH(e)}var H$=32e3,U$=264,W$=10;function G$(){let e=(0,Q.c)(36),{pathname:t}=b(),n;e[0]===t?n=e[1]:(n=t.startsWith(`/chat/`)?t.slice(6):``,e[0]=t,e[1]=n);let r=n,i=Pt(X$),a;e[2]===i?a=e[3]:(a=kt(i),e[2]=i,e[3]=a);let o=a.sideChat,s=$Q(Y$),c=$Q(J$),l=WV(q$),[u,d]=(0,Z.useState)(null),f;e[4]!==r||e[5]!==c?(f=()=>{if(!r||r===`new`||c){d(null);return}let e=window.getSelection(),t=e?.toString().trim()??``;if(!e||e.rangeCount===0||!t||t.length>H$){d(null);return}let n=e.getRangeAt(0),i=Z$(e.anchorNode),a=Z$(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]`)){d(null);return}let u=n.getBoundingClientRect();if(u.width===0&&u.height===0){d(null);return}let f=Math.min(window.innerWidth-U$-W$,Math.max(W$,u.left+u.width/2-U$/2)),p=u.bottom+8;d({text:t,left:f,top:p+38<window.innerHeight?p:Math.max(W$,u.top-42),fromSide:l})},e[4]=r,e[5]=c,e[6]=f):f=e[6];let p=f,m,h;if(e[7]!==p||e[8]!==t?(m=()=>{if(!t.startsWith(`/chat/`)){d(null);return}let e=()=>window.requestAnimationFrame(p),n=()=>d(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)}},h=[p,t],e[7]=p,e[8]=t,e[9]=m,e[10]=h):(m=e[9],h=e[10]),(0,Z.useEffect)(m,h),!u||!r||r===`new`)return null;let g=u.fromSide?U$/2:U$,_;e[11]!==u.left||e[12]!==u.top||e[13]!==g?(_={left:u.left,top:u.top,width:g},e[11]=u.left,e[12]=u.top,e[13]=g,e[14]=_):_=e[14];let v;e[15]===u.text?v=e[16]:(v=()=>{V$(u.text),window.getSelection()?.removeAllRanges(),d(null)},e[15]=u.text,e[16]=v);let y;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(rt,{className:`size-3.5 shrink-0`}),e[17]=y):y=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]!==v||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:v,children:[y,x]}),e[20]=v,e[21]=x,e[22]=S):S=e[22];let C;e[23]!==r||e[24]!==o.askInSideChat||e[25]!==o.selectedText||e[26]!==u.fromSide||e[27]!==u.text||e[28]!==s||e[29]!==l?(C=u.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);l(!1),s(e,[{id:crypto.randomUUID(),type:`text`,text:u.text,label:o.selectedText}]),window.getSelection()?.removeAllRanges(),d(null)},children:[(0,$.jsx)(Xe,{className:`size-3.5 shrink-0`}),(0,$.jsx)(`span`,{className:`whitespace-nowrap`,children:o.askInSideChat})]}),e[23]=r,e[24]=o.askInSideChat,e[25]=o.selectedText,e[26]=u.fromSide,e[27]=u.text,e[28]=s,e[29]=l,e[30]=C):C=e[30];let w;return e[31]!==o.selectedTextActionsAria||e[32]!==S||e[33]!==C||e[34]!==_?(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:_,onPointerDown:K$,children:[S,C]}),e[31]=o.selectedTextActionsAria,e[32]=S,e[33]=C,e[34]=_,e[35]=w):w=e[35],w}function K$(e){return e.preventDefault()}function q$(e){return e.setOpen}function J$(e){return e.pendingCreate}function Y$(e){return e.requestCreate}function X$(e){return e.language}function Z$(e){return e?e.nodeType===Node.ELEMENT_NODE?e:e.parentElement:null}function Q$(){let e=(0,Q.c)(28),t=(0,Z.useRef)(null),n=At(a1),r=At(i1),i=At(r1),a=At(n1),o=At(t1),s=At(e1),c=Pt($$),l;e[0]===c?l=e[1]:(l=kt(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)($t,{className:q(`xopc-dialog-overlay fixed inset-0 bg-scrim backdrop-blur-[2px]`,ia)}),e[5]=p):p=e[5];let m,h;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=q(`xopc-dialog-content 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-overlay p-4`,na,`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)(on,{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)(tn,{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)(X,{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)(tF,{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)(rn,{children:[p,(0,$.jsxs)(an,{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)(sn,{open:n,onOpenChange:f,children:b}),e[24]=n,e[25]=f,e[26]=b,e[27]=x):x=e[27],x}function $$(e){return e.language}function e1(e){return e.conversationId}function t1(e){return e.closeTokenDialog}function n1(e){return e.setBrowserSession}function r1(e){return e.tokenExpired}function i1(e){return e.baseUrl}function a1(e){return e.tokenDialogOpen}function o1(e){let t=e+`CollectionProvider`,[n,r]=Ut(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=Qt(s),l=Z.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,$.jsx)(c,{ref:Zt(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Qt(u),p=Z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=Z.useRef(null),s=Zt(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 s1=Z.createContext(void 0);function c1(e){let t=Z.useContext(s1);return e||t||`ltr`}var l1=!1;function u1(){let[e,t]=Z.useState(l1);return Z.useEffect(()=>{l1||(l1=!0,t(!0))},[]),e}var d1=Z.useSyncExternalStore;function f1(){return()=>{}}function p1(){return d1(f1,()=>!0,()=>!1)}var m1=typeof d1==`function`?p1:u1,h1=`rovingFocusGroup.onEntryFocus`,g1={bubbles:!1,cancelable:!0},_1=`RovingFocusGroup`,[v1,y1,b1]=o1(_1),[x1,S1]=Ut(_1,[b1]),[C1,w1]=x1(_1),T1=Z.forwardRef((e,t)=>(0,$.jsx)(v1.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(v1.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,$.jsx)(E1,{...e,ref:t})})}));T1.displayName=_1;var E1=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=Zt(t,f),m=c1(a),[h,g]=Vt({prop:o,defaultProp:s??null,onChange:c,caller:_1}),[_,v]=Z.useState(!1),y=Gt(l),b=y1(n),x=Z.useRef(!1),[S,C]=Z.useState(0);return Z.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(h1,y),()=>e.removeEventListener(h1,y)},[y]),(0,$.jsx)(C1,{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(()=>C(e=>e+1),[]),onFocusableItemRemove:Z.useCallback(()=>C(e=>e-1),[]),children:(0,$.jsx)(Xt.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:Ht(e.onMouseDown,()=>{x.current=!0}),onFocus:Ht(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(h1,g1);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);M1([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:Ht(e.onBlur,()=>v(!1))})})}),D1=`RovingFocusGroupItem`,O1=Z.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Jt(),l=a||c,u=w1(D1,n),d=u.currentTabStopId===l,f=y1(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=m1();return Kt(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),Z.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,$.jsx)(v1.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,$.jsx)(Xt.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:Ht(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:Ht(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ht(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=j1(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?N1(n,r+1):n.slice(r+1)}setTimeout(()=>M1(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});O1.displayName=D1;var k1={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function A1(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function j1(e,t,n){let r=A1(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return k1[r]}function M1(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function N1(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var P1=T1,F1=O1,I1=[`Enter`,` `],L1=[`ArrowDown`,`PageUp`,`Home`],R1=[`ArrowUp`,`PageDown`,`End`],z1=[...L1,...R1],B1={ltr:[...I1,`ArrowRight`],rtl:[...I1,`ArrowLeft`]},V1={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},H1=`Menu`,[U1,W1,G1]=o1(H1),[K1,q1]=Ut(H1,[G1,Wi,S1]),J1=Wi(),Y1=S1(),[X1,Z1]=K1(H1),[Q1,$1]=K1(H1),e0=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=J1(t),[c,l]=Z.useState(null),u=Z.useRef(!1),d=Gt(a),f=c1(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)(Gi,{...s,children:(0,$.jsx)(X1,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,$.jsx)(Q1,{scope:t,onClose:Z.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};e0.displayName=H1;var t0=`MenuAnchor`,n0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=J1(n);return(0,$.jsx)(Ji,{...i,...r,ref:t})});n0.displayName=t0;var r0=`MenuPortal`,[i0,a0]=K1(r0,{forceMount:void 0}),o0=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Z1(r0,t);return(0,$.jsx)(i0,{scope:t,forceMount:n,children:(0,$.jsx)(Wt,{present:n||a.open,children:(0,$.jsx)(Bt,{asChild:!0,container:i,children:r})})})};o0.displayName=r0;var s0=`MenuContent`,[c0,l0]=K1(s0),u0=Z.forwardRef((e,t)=>{let n=a0(s0,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Z1(s0,e.__scopeMenu),o=$1(s0,e.__scopeMenu);return(0,$.jsx)(U1.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(Wt,{present:r||a.open,children:(0,$.jsx)(U1.Slot,{scope:e.__scopeMenu,children:o.modal?(0,$.jsx)(d0,{...i,ref:t}):(0,$.jsx)(f0,{...i,ref:t})})})})}),d0=Z.forwardRef((e,t)=>{let n=Z1(s0,e.__scopeMenu),r=Z.useRef(null),i=Zt(t,r);return Z.useEffect(()=>{let e=r.current;if(e)return Yt(e)},[]),(0,$.jsx)(m0,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ht(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),f0=Z.forwardRef((e,t)=>{let n=Z1(s0,e.__scopeMenu);return(0,$.jsx)(m0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),p0=Qt(`MenuContent.ScrollLock`),m0=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=Z1(s0,n),_=$1(s0,n),v=J1(n),y=Y1(n),b=W1(n),[x,S]=Z.useState(null),C=Z.useRef(null),w=Zt(t,C,g.onContentChange),T=Z.useRef(0),E=Z.useRef(``),D=Z.useRef(0),O=Z.useRef(null),k=Z.useRef(`right`),A=Z.useRef(0),j=m?qt:Z.Fragment,M=m?{as:p0,allowPinchZoom:!0}:void 0,N=e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Q0(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};Z.useEffect(()=>()=>window.clearTimeout(T.current),[]),nee();let P=Z.useCallback(e=>k.current===O.current?.side&&e2(e,O.current?.area),[]);return(0,$.jsx)(c0,{scope:n,searchRef:E,onItemEnter:Z.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:Z.useCallback(e=>{P(e)||(C.current?.focus(),S(null))},[P]),onTriggerLeave:Z.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:D,onPointerGraceIntentChange:Z.useCallback(e=>{O.current=e},[]),children:(0,$.jsx)(j,{...M,children:(0,$.jsx)(tee,{asChild:!0,trapped:i,onMountAutoFocus:Ht(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,$.jsx)(ree,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,$.jsx)(P1,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:Ht(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,$.jsx)(qi,{role:`menu`,"aria-orientation":`vertical`,"data-state":q0(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:Ht(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&&N(e.key));let i=C.current;if(e.target!==i||!z1.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);R1.includes(e.key)&&a.reverse(),X0(a)}),onBlur:Ht(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:Ht(e.onPointerMove,t2(e=>{let t=e.target,n=A.current!==e.clientX;e.currentTarget.contains(t)&&n&&(k.current=e.clientX>A.current?`right`:`left`,A.current=e.clientX)}))})})})})})})});u0.displayName=s0;var h0=`MenuGroup`,g0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(Xt.div,{role:`group`,...r,ref:t})});g0.displayName=h0;var _0=`MenuLabel`,v0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(Xt.div,{...r,ref:t})});v0.displayName=_0;var y0=`MenuItem`,b0=`menu.itemSelect`,x0=Z.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=Z.useRef(null),o=$1(y0,e.__scopeMenu),s=l0(y0,e.__scopeMenu),c=Zt(t,a),l=Z.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(b0,{bubbles:!0,cancelable:!0});e.addEventListener(b0,e=>r?.(e),{once:!0}),eee(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,$.jsx)(S0,{...i,ref:c,disabled:n,onClick:Ht(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:Ht(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:Ht(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||I1.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});x0.displayName=y0;var S0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=l0(y0,n),s=Y1(n),c=Z.useRef(null),l=Zt(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)(U1.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,$.jsx)(F1,{asChild:!0,...s,focusable:!r,children:(0,$.jsx)(Xt.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:Ht(e.onPointerMove,t2(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ht(e.onPointerLeave,t2(e=>o.onItemLeave(e))),onFocus:Ht(e.onFocus,()=>d(!0)),onBlur:Ht(e.onBlur,()=>d(!1))})})})}),C0=`MenuCheckboxItem`,w0=Z.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,$.jsx)(M0,{scope:e.__scopeMenu,checked:n,children:(0,$.jsx)(x0,{role:`menuitemcheckbox`,"aria-checked":J0(n)?`mixed`:n,...i,ref:t,"data-state":Y0(n),onSelect:Ht(i.onSelect,()=>r?.(J0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});w0.displayName=C0;var T0=`MenuRadioGroup`,[E0,D0]=K1(T0,{value:void 0,onValueChange:()=>{}}),O0=Z.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=Gt(r);return(0,$.jsx)(E0,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,$.jsx)(g0,{...i,ref:t})})});O0.displayName=T0;var k0=`MenuRadioItem`,A0=Z.forwardRef((e,t)=>{let{value:n,...r}=e,i=D0(k0,e.__scopeMenu),a=n===i.value;return(0,$.jsx)(M0,{scope:e.__scopeMenu,checked:a,children:(0,$.jsx)(x0,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Y0(a),onSelect:Ht(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});A0.displayName=k0;var j0=`MenuItemIndicator`,[M0,N0]=K1(j0,{checked:!1}),P0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=N0(j0,n);return(0,$.jsx)(Wt,{present:r||J0(a.checked)||a.checked===!0,children:(0,$.jsx)(Xt.span,{...i,ref:t,"data-state":Y0(a.checked)})})});P0.displayName=j0;var F0=`MenuSeparator`,I0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,$.jsx)(Xt.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});I0.displayName=F0;var L0=`MenuArrow`,R0=Z.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=J1(n);return(0,$.jsx)(Ki,{...i,...r,ref:t})});R0.displayName=L0;var z0=`MenuSub`,[B0,V0]=K1(z0),H0=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Z1(z0,t),o=J1(t),[s,c]=Z.useState(null),[l,u]=Z.useState(null),d=Gt(i);return Z.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,$.jsx)(Gi,{...o,children:(0,$.jsx)(X1,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,$.jsx)(B0,{scope:t,contentId:Jt(),triggerId:Jt(),trigger:s,onTriggerChange:c,children:n})})})};H0.displayName=z0;var U0=`MenuSubTrigger`,W0=Z.forwardRef((e,t)=>{let n=Z1(U0,e.__scopeMenu),r=$1(U0,e.__scopeMenu),i=V0(U0,e.__scopeMenu),a=l0(U0,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=Zt(t,i.onTriggerChange);return(0,$.jsx)(n0,{asChild:!0,...l,children:(0,$.jsx)(S0,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":q0(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ht(e.onPointerMove,t2(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:Ht(e.onPointerLeave,t2(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:Ht(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||a.searchRef.current!==``&&t.key===` `||B1[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});W0.displayName=U0;var G0=`MenuSubContent`,K0=Z.forwardRef((e,t)=>{let n=a0(s0,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=Z1(s0,e.__scopeMenu),s=$1(s0,e.__scopeMenu),c=V0(G0,e.__scopeMenu),l=Z.useRef(null),u=Zt(t,l);return(0,$.jsx)(U1.Provider,{scope:e.__scopeMenu,children:(0,$.jsx)(Wt,{present:r||o.open,children:(0,$.jsx)(U1.Slot,{scope:e.__scopeMenu,children:(0,$.jsx)(m0,{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:Ht(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Ht(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Ht(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=V1[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});K0.displayName=G0;function q0(e){return e?`open`:`closed`}function J0(e){return e===`indeterminate`}function Y0(e){return J0(e)?`indeterminate`:e?`checked`:`unchecked`}function X0(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Z0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Q0(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=Z0(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 $0(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 e2(e,t){return t?$0({x:e.clientX,y:e.clientY},t):!1}function t2(e){return t=>t.pointerType===`mouse`?e(t):void 0}var n2=e0,r2=n0,i2=o0,a2=u0,o2=g0,s2=v0,c2=x0,l2=w0,u2=O0,d2=A0,f2=P0,p2=I0,m2=R0,h2=W0,g2=K0,_2=`DropdownMenu`,[v2,Soe]=Ut(_2,[q1]),y2=q1(),[b2,x2]=v2(_2),S2=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]=Vt({prop:i,defaultProp:a??!1,onChange:o,caller:_2});return(0,$.jsx)(b2,{scope:t,triggerId:Jt(),triggerRef:l,contentId:Jt(),open:u,onOpenChange:d,onOpenToggle:Z.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,$.jsx)(n2,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};S2.displayName=_2;var C2=`DropdownMenuTrigger`,w2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=x2(C2,n),o=y2(n),s=Zt(t,a.triggerRef);return(0,$.jsx)(r2,{asChild:!0,...o,children:(0,$.jsx)(Xt.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:Ht(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:Ht(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});w2.displayName=C2;var T2=`DropdownMenuPortal`,E2=e=>{let{__scopeDropdownMenu:t,...n}=e,r=y2(t);return(0,$.jsx)(i2,{...r,...n})};E2.displayName=T2;var D2=`DropdownMenuContent`,O2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=x2(D2,n),a=y2(n),o=Z.useRef(!1);return(0,$.jsx)(a2,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:Ht(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:Ht(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)`}})});O2.displayName=D2;var k2=`DropdownMenuGroup`,A2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(o2,{...i,...r,ref:t})});A2.displayName=k2;var j2=`DropdownMenuLabel`,M2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(s2,{...i,...r,ref:t})});M2.displayName=j2;var N2=`DropdownMenuItem`,P2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(c2,{...i,...r,ref:t})});P2.displayName=N2;var F2=`DropdownMenuCheckboxItem`,I2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(l2,{...i,...r,ref:t})});I2.displayName=F2;var L2=`DropdownMenuRadioGroup`,R2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(u2,{...i,...r,ref:t})});R2.displayName=L2;var z2=`DropdownMenuRadioItem`,B2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(d2,{...i,...r,ref:t})});B2.displayName=z2;var V2=`DropdownMenuItemIndicator`,H2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(f2,{...i,...r,ref:t})});H2.displayName=V2;var U2=`DropdownMenuSeparator`,W2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(p2,{...i,...r,ref:t})});W2.displayName=U2;var G2=`DropdownMenuArrow`,K2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(m2,{...i,...r,ref:t})});K2.displayName=G2;var q2=`DropdownMenuSubTrigger`,J2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(h2,{...i,...r,ref:t})});J2.displayName=q2;var Y2=`DropdownMenuSubContent`,X2=Z.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=y2(n);return(0,$.jsx)(g2,{...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)`}})});X2.displayName=Y2;var Z2=S2,Q2=w2,$2=E2,e4=O2,t4=P2,n4=W2;function r4(e){return e?e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `):null}function i4(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)(n4,{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=r4(n.accelerator),t[1]=n.accelerator,t[2]=i);let a=i,o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=q(`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)(t4,{className:o,onSelect:s,children:[c,l]}),t[11]=s,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function a4(e){let t=(0,Q.c)(6),{groups:n}=e,r=o4,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=q(`windows-titlebar-interactive flex min-w-0 items-center gap-1`,ji),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)(Z2,{modal:!1,children:[(0,$.jsx)(Q2,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:q(`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`,ji),role:`menuitem`,children:e.label})}),(0,$.jsx)($2,{children:(0,$.jsx)(e4,{align:`start`,sideOffset:4,className:q(`windows-titlebar-interactive z-[90] min-w-52 rounded-lg border border-edge bg-surface-panel p-1 shadow-popover outline-none`,ji),children:e.items.map((t,n)=>(0,$.jsx)(i4,{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 o4(e){window.electronAPI?.menu?.invoke(e)}var s4=(0,Z.memo)(function(){let e=(0,Q.c)(11),t=Pt(c4),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(!pe())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),!pe())return null;let s,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=q(`windows-titlebar flex h-9 min-w-0 shrink-0 items-center gap-2 border-b border-edge-subtle`),c=(0,$.jsx)(`div`,{className:q(`windows-titlebar-interactive flex shrink-0 items-center gap-0.5`,ji),children:(0,$.jsx)(iI,{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)(a4,{groups:r}),e[6]=r,e[7]=l);let u;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(`div`,{className:q(`min-w-8 flex-1 self-stretch`,Ai),"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 c4(e){return e.language}function l4(){let e=(0,Q.c)(16),t=Pt(u4),n;e[0]===t?n=e[1]:(n=kt(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(!sa())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=q(`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 u4(e){return e.language}function d4(e){return{content:[{type:`text`,text:e}]}}function f4(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 p4(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 m4(e){return[{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:xi,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(t,n){if(Object.keys(t).length!==0)throw TypeError(`Expected no arguments`);let r=await e().file.pickEndpointFile();if(!r)throw new DOMException(`File selection cancelled`,`AbortError`);let i=p4(r.dataBase64);if(i.byteLength!==r.size||i.byteLength>26214400)throw Error(`Selected file payload is invalid`);return{content:[await n.uploadFile({name:r.name,mimeType:r.mimeType,bytes:i})]}}},{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:_i,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(t){let n=t.suggestedName,r=t.content;if(Object.keys(t).length!==2||typeof n!=`string`||!n||n.length>255||typeof r!=`string`||r.length>2e5||new TextEncoder().encode(r).byteLength>200*1024)throw TypeError(`Invalid file save arguments`);let i=await e().file.saveEndpointText({suggestedName:n,content:r});if(!i.saved)throw new DOMException(`File save cancelled`,`AbortError`);return d4(`Saved ${i.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:_i,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(t){let n=t.title,r=t.body;if(Object.keys(t).length!==2||typeof n!=`string`||!n.trim()||n.length>120||typeof r!=`string`||!r.trim()||r.length>500)throw TypeError(`Invalid notification arguments`);let i=e().system;if(!i)throw Error(`Desktop notifications are unavailable`);let a=await i.showEndpointNotification({title:n,body:r});if(!a.ok)throw a.error===`PERMISSION_DENIED`||a.error===`NOTIFICATIONS_DISABLED`?new DOMException(`Desktop notification permission is not granted`,`NotAllowedError`):Error(`Desktop notification failed: ${a.error}`);return d4(`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:_i,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(t){if(Object.keys(t).length!==0)throw TypeError(`Expected no arguments`);let n=e().clipboard;if(!n?.readText)throw Error(`Clipboard read is unavailable`);return d4(await n.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:_i,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(t){let n=f4(t,`text`,1e5),r=e().clipboard;if(!r?.writeText||!await r.writeText(n))throw Error(`Clipboard write failed`);return d4(`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:_i,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(t){let n=f4(t,`url`,2048),r=new URL(n);if(r.protocol!==`http:`&&r.protocol!==`https:`)throw TypeError(`Only HTTP and HTTPS URLs are allowed`);let i=e().shell;if(!i?.openExternalUrl)throw Error(`External URL opening is unavailable`);let a=await i.openExternalUrl(r.href);if(!a.ok)throw Error(a.error);return d4(`Opened ${r.href}`)}}]}var h4=m4(()=>{if(!window.electronAPI)throw Error(`Desktop bridge is unavailable`);return window.electronAPI}),g4=600,_4=[],v4=new Set;function y4(){for(let e of v4)e()}function b4(){return _4[0]}function x4(e){return v4.add(e),()=>v4.delete(e)}function S4(e){let t=JSON.stringify(e,null,2);return t.length<=g4?t:`${t.slice(0,g4)}\n…`}function C4(e){return e.deadlineAt<=Date.now()?Promise.resolve(!1):new Promise(t=>{let n=window.setTimeout(()=>w4(e.invocationId,!1),e.deadlineAt-Date.now());_4.push({invocationId:e.invocationId,title:e.title,argumentsPreview:S4(e.args),resolve:t,timeout:n}),y4()})}function w4(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 T4(){let e=_4;_4=[];for(let t of e)window.clearTimeout(t.timeout),t.resolve(!1);y4()}function E4(){return(0,Z.useSyncExternalStore)(x4,b4,b4)}function D4(){let e=(0,Q.c)(38),t=E4(),n=Pt(O4)===`zh`,r=!!t,i;e[0]===t?i=e[1]:(i=e=>{!e&&t&&w4(t.invocationId,!1)},e[0]=t,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)($t,{className:`xopc-dialog-overlay 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)(on,{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)(tn,{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&&w4(t.invocationId,!1),e[17]=t,e[18]=g);let _=n?`拒绝`:`Deny`,v;e[19]!==g||e[20]!==_?(v=(0,$.jsx)(X,{onClick:g,children:_}),e[19]=g,e[20]=_,e[21]=v):v=e[21];let y;e[22]===t?y=e[23]:(y=()=>t&&w4(t.invocationId,!0),e[22]=t,e[23]=y);let b=n?`允许`:`Allow`,x;e[24]!==y||e[25]!==b?(x=(0,$.jsx)(X,{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)(rn,{children:[a,(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay 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)(sn,{open:r,onOpenChange:i,children:C}),e[34]=r,e[35]=i,e[36]=C,e[37]=w):w=e[37],w}function O4(e){return e.language}function k4(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===`Uint8Array`}function A4(e,...t){if(!k4(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 j4(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 M4(e,t){A4(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least `+n)}function N4(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function P4(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function F4(e,t){return e<<32-t|e>>>t}function Coe(e){if(typeof e!=`string`)throw Error(`string expected`);return new Uint8Array(new TextEncoder().encode(e))}function I4(e){return typeof e==`string`&&(e=Coe(e)),A4(e),e}var woe=class{};function Toe(e){let t=t=>e().update(I4(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Eoe(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 Doe(e,t,n){return e&t^~e&n}function Ooe(e,t,n){return e&t^e&n^t&n}var koe=class extends woe{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=P4(this.buffer)}update(e){j4(this),e=I4(e),A4(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=P4(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){j4(this),M4(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,N4(this.buffer.subarray(a)),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;Eoe(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=P4(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()}},L4=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Aoe=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]),R4=new Uint32Array(64),joe=class extends koe{constructor(e=32){super(64,e,8,!1),this.A=L4[0]|0,this.B=L4[1]|0,this.C=L4[2]|0,this.D=L4[3]|0,this.E=L4[4]|0,this.F=L4[5]|0,this.G=L4[6]|0,this.H=L4[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)R4[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=R4[e-15],n=R4[e-2],r=F4(t,7)^F4(t,18)^t>>>3;R4[e]=(F4(n,17)^F4(n,19)^n>>>10)+R4[e-7]+r+R4[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=F4(o,6)^F4(o,11)^F4(o,25),u=l+t+Doe(o,s,c)+Aoe[e]+R4[e]|0,d=(F4(n,2)^F4(n,13)^F4(n,22))+Ooe(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(){N4(R4)}destroy(){this.set(0,0,0,0,0,0,0,0),N4(this.buffer)}},Moe=Toe(()=>new joe),z4=class extends Error{code;constructor(e,t){super(t),this.code=e,this.name=`EndpointToolClientError`}};function Noe(e){return[...Moe(new TextEncoder().encode(Ci(e)))].map(e=>e.toString(16).padStart(2,`0`)).join(``)}var Poe=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:Noe(t.descriptor)})}}descriptors(){return[...this.tools.values()].map(({definition:e})=>e.descriptor)}get(e){return this.tools.get(e)}},Foe=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`;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{this.assertExecutable(t,d,l,o);let e={invocationId:t,descriptor:l,arguments:r,deadlineAt:o,signal:d.controller.signal};if(await this.options.authorize?.(e),this.assertExecutable(t,d,l,o),u){this.send(`tool.progress`,{invocationId:t,message:`Waiting for approval`});let n=await this.options.confirm(e);if(this.assertExecutable(t,d,l,o),!n)throw new z4(`USER_DENIED`,`User denied the endpoint tool call`)}let n=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.assertExecutable(t,d,l,o),this.options.uploadFile(s,e,{signal:d.controller.signal,invocationId:t}))});this.assertExecutable(t,d,l,o);let i=hi.array().min(1).max(20).parse(n.content);if(this.send(`tool.result`,{invocationId:t,content:i,...n.details?{details:n.details}:{}}),this.active.delete(t),n.afterSend){let e=d.generation;setTimeout(()=>{this.generation===e&&this.now()<o&&(!l.requiresForeground||this.options.getAvailability()===`foreground`)&&n.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 z4(`TOOL_CANCELLED`,`Endpoint tool call was cancelled`);if(this.now()>=r)throw new z4(`TOOL_TIMEOUT`,`Endpoint tool deadline expired`);if(n.requiresForeground&&this.options.getAvailability()!==`foreground`)throw new z4(`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 z4?e:e instanceof Error&&e.name===`RealtimeFrameTooLargeError`?new z4(`RESULT_TOO_LARGE`,e.message):e instanceof TypeError?new z4(`INVALID_ARGUMENTS`,e.message):e instanceof Error&&e.name===`AbortError`?new z4(`USER_DENIED`,e.message):e instanceof Error&&e.name===`NotAllowedError`?new z4(`PERMISSION_DENIED`,e.message):new z4(`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})}},Ioe=`xopc-endpoint-tools`,B4=`identity`,V4=`xopc.endpoint-tools.endpoint-id`,H4;function Loe(e){if(H4?.startsWith(`${e}:`))return H4;let t=sessionStorage.getItem(V4);return t?.startsWith(`${e}:`)?(H4=t,t):(H4=`${e}:${crypto.randomUUID()}`,sessionStorage.setItem(V4,H4),H4)}function U4(e){let t=String.fromCharCode(...new Uint8Array(e));return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/u,``)}function W4(){return new Promise((e,t)=>{let n=indexedDB.open(Ioe,1);n.onupgradeneeded=()=>n.result.createObjectStore(B4),n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Endpoint identity database failed`))})}async function Roe(e){let t=await W4();try{return await new Promise((n,r)=>{let i=t.transaction(B4).objectStore(B4).get(e);i.onsuccess=()=>n(i.result),i.onerror=()=>r(i.error??Error(`Endpoint identity read failed`))})}finally{t.close()}}async function zoe(e,t){let n=await W4();try{await new Promise((r,i)=>{let a=n.transaction(B4,`readwrite`);a.objectStore(B4).put(t,e),a.oncomplete=()=>r(),a.onerror=()=>i(a.error??Error(`Endpoint identity write failed`))})}finally{n.close()}}async function Boe(e){let t=await W4();try{await new Promise((n,r)=>{let i=t.transaction(B4,`readwrite`);i.objectStore(B4).delete(e),i.oncomplete=()=>n(),i.onerror=()=>r(i.error??Error(`Endpoint identity deletion failed`))})}finally{t.close()}}async function G4(e){let t=await Roe(e);if(t)return t;let n=await crypto.subtle.generateKey({name:`ECDSA`,namedCurve:`P-256`},!0,[`sign`,`verify`]),r=U4(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 zoe(e,a),a}async function Voe(e){return await Boe(e),H4=void 0,sessionStorage.removeItem(V4),G4(e)}async function Hoe(e,t){return U4(await crypto.subtle.sign({name:`ECDSA`,hash:`SHA-256`},e,new TextEncoder().encode(t)))}var Uoe=2e3;function K4(){return document.visibilityState===`visible`&&document.hasFocus()?`foreground`:`background`}async function Woe(e){if(e.signal.aborted)return!1;let t=()=>w4(e.invocationId,!1);e.signal.addEventListener(`abort`,t,{once:!0});try{return await C4({invocationId:e.invocationId,title:e.descriptor.title,args:e.arguments,deadlineAt:e.deadlineAt})}finally{e.signal.removeEventListener(`abort`,t)}}var Goe=class{config;reconnectTimer;connectPromise;detachRealtime;stopped=!1;registrationBlocked=!1;endpointId;turnToken;registry;controller;constructor(e){this.config=e,this.registry=new Poe(e.definitions),this.controller=new Foe({registry:this.registry,getAvailability:K4,confirm:Woe,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(`gateway-authenticated`,this.onTokenSaved),await this.connect()}stop(){this.stopped=!0,document.removeEventListener(`visibilitychange`,this.onVisibilityChange),window.removeEventListener(`gateway-authenticated`,this.onTokenSaved),window.clearTimeout(this.reconnectTimer),this.detachRealtime?.(),this.detachRealtime=void 0,this.controller.disconnect(),gr(this.turnToken),this.turnToken=void 0,this.endpointId=void 0,T4()}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 G4(this.config.kind);if(this.stopped)return;let n=await Mt(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 Voe(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,vr(e,t),this.controller.connect(bi)},onMessage:e=>{this.controller.handleMessage(e)},onDisconnected:()=>{this.controller.disconnect(),gr(this.turnToken),this.turnToken=void 0,T4()}};this.detachRealtime?.(),this.detachRealtime=Si(r)}catch{this.scheduleReconnect()}}}scheduleReconnect(){this.stopped||this.reconnectTimer!==void 0||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},Uoe))}async createHello(e){let t=Loe(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:K4(),nonce:crypto.randomUUID(),signedAt:Date.now(),signature:`pending`,tools:this.registry.descriptors()},r=await Hoe(e.privateKey,mi(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 Mt(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=hi.safeParse(a?.payload);if(!o.success||o.data.type!==`file`)throw Error(`Endpoint file upload returned an invalid response`);return o.data}},q4,J4=new Set;function Y4(){for(let e of J4)e()}function Koe(e){return J4.add(e),()=>J4.delete(e)}function X4(){return!!q4}function Z4(){return q4?Promise.resolve(!1):new Promise(e=>{q4={resolve:e},Y4()})}function Q4(e){let t=q4;t&&(q4=void 0,t.resolve(e),Y4())}function qoe(){return(0,Z.useSyncExternalStore)(Koe,X4,X4)}function Joe(){let e=(0,Q.c)(21),t=qoe(),n=Pt(Qoe)===`zh`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)($t,{className:`xopc-dialog-overlay 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)(on,{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)(tn,{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)(X,{onClick:Xoe,children:l}),e[8]=l,e[9]=u);let d=n?`生成新身份`:`Create new identity`,f;e[10]===d?f=e[11]:(f=(0,$.jsx)(X,{variant:`primary`,onClick:Yoe,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)(rn,{children:[r,(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay 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)(sn,{open:t,onOpenChange:Zoe,children:m}),e[18]=t,e[19]=m,e[20]=h):h=e[20],h}function Yoe(){return Q4(!0)}function Xoe(){return Q4(!1)}function Zoe(e){return!e&&Q4(!1)}function Qoe(e){return e.language}function $4(e){return{content:[{type:`text`,text:e}]}}function e3(){if(!navigator.userActivation?.isActive)throw new DOMException(`A current user gesture is required`,`NotAllowedError`)}function t3(e){return new DOMException(e,`AbortError`)}function $oe(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 ese(){return e3(),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(t3(`File selection cancelled`))},n.oncancel=()=>t(t3(`File selection cancelled`)),n.click()})}function n3(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 r3(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 tse=[{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:xi,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){r3(e,[]);let n=await ese();if(n.size>26214400)throw TypeError(`Selected file exceeds ${pi} 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:_i,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}=$oe(e);e3();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 $4(`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:_i,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 r3(e,[]),$4(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:_i,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(r3(e,[`text`]),!navigator.clipboard||!document.hasFocus())throw new DOMException(`Clipboard access requires a focused browser tab`,`NotAllowedError`);let t=n3(e,`text`);if(t.length>1e5)throw TypeError(`text exceeds 100000 characters`);return await navigator.clipboard.writeText(t),$4(`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:_i,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){r3(e,[`url`]);let t=n3(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 i3(){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)(nse,t);let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(D4,{}),(0,$.jsx)(Joe,{})]}),e[1]=n):n=e[1],n}function nse(){let e=sa();if(e&&window.electronAPI?.computer){let e=!1,t=async()=>{try{let t=await window.electronAPI.computer.status();if(e)return;t.claim?vr(t.claim.endpointId,t.claim.token):gr()}catch{e||gr()}};t();let n=window.setInterval(()=>{t()},1e3);return()=>{e=!0,window.clearInterval(n),gr()}}let t=new Goe(e?{kind:`desktop`,platform:window.electronAPI?.platform??`desktop`,displayName:`xopc Desktop`,appVersion:`1`,definitions:h4,confirmReenrollment:Z4}:{kind:`web`,platform:`web`,displayName:`Web browser`,appVersion:`1`,definitions:tse,confirmReenrollment:Z4});return t.start(),()=>{Q4(!1),t.stop()}}var a3=`open-discussion-capture`;function o3(e){window.dispatchEvent(new CustomEvent(a3,{detail:e?{projectId:e}:{}}))}function s3(){let e=(0,Q.c)(3),t=l(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{if(!sa())return;let e=window.electronAPI;if(!e?.menu)return;let n=e.menu.onNavigate(e=>{t(e)}),r=e.menu.onTogglePalette(ase),i=e.menu.onQuickCapture(ise),a=e.menu.onToggleSidebar(rse),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 rse(){$F.getState().toggleCollapsed()}function ise(){o3()}function ase(){window.dispatchEvent(new CustomEvent(`toggle-command-palette`))}var ose=1500,sse=9e4;function cse(){let e=(0,Q.c)(16),t=Pt(dse),n;e[0]===t?n=e[1]:(n=kt(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(use);let t=Date.now()+sse;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(lse)}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=q(`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-on-accent hover:bg-accent/90`,children:r.restartPollRetry})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Ye,{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 lse(e){return setTimeout(e,ose)}function use(e){return setTimeout(e,2e3)}function dse(e){return e.language}async function c3(){if(sa()&&window.electronAPI?.gateway?.restart){let e=await window.electronAPI.gateway.restart();return e.ok&&e.token&&await Lt(),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 fse({reminder:e,compact:t}){let n=Pt(e=>e.language),r=kt(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 c3();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=kt(n).updatePanel;f(null);let t=await s();if(t.ok){oi({tone:`success`,title:e.updateSuccess,message:wI(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=q(`absolute right-2 top-1/2 z-[1] flex -translate-y-1/2 items-center gap-1 sm:right-3`,ji);return i.kind===`electron-ready`?(0,$.jsxs)(`div`,{className:q(`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`,Ai,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)(G,{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-on-accent hover:bg-accent/90`,children:[(0,$.jsx)(iS,{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)(Dt,{className:`size-4`})})]})]}):i.kind===`electron-error`?(0,$.jsxs)(`div`,{className:q(`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`,Ai,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)(L,{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)(Dt,{className:`size-4`})})]}):i.kind===`electron-downloading`?(0,$.jsxs)(`div`,{className:q(`relative flex min-h-10 w-full min-w-0 flex-col items-center justify-center gap-2 border-b border-edge bg-surface-panel px-10 py-2 text-sm text-fg-muted sm:flex-row sm:gap-4 sm:px-12`,Ai,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:`flex max-w-full items-center justify-center gap-2 text-center`,children:[(0,$.jsx)(G,{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-inset 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:q(h,`sm:right-2`),"aria-label":r.dismissAria,children:(0,$.jsx)(Dt,{className:`size-4`})})]}):i.kind===`npm-restart-required`?(0,$.jsxs)(`div`,{className:q(`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`,Ai,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:q(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,ji),children:[l?(0,$.jsx)(Ye,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(iS,{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)(Dt,{className:`size-4`})})]}):i.kind===`npm-restarting`?(0,$.jsx)(`div`,{className:q(`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`,Ai,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)(Ye,{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:q(`relative hidden min-h-10 w-full min-w-0 items-center justify-center border-b border-accent/20 bg-accent/10 py-2 text-sm md:flex`,Ai,t&&`text-xs`),children:[(0,$.jsxs)(`div`,{className:q(`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:q(`inline-flex shrink-0 items-center gap-1 rounded bg-accent px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60`,ji),children:[c?(0,$.jsx)(Ye,{className:`size-3 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(iS,{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)(Dt,{className:`size-4`})})]}):null}function pse(e,t,n){let r=kt(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(`/capabilities/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-C-RoiUJi.js`).then(e=>e.n);return{reloadSkills:e}},__vite__mapDeps([132,1,16,4,17,131])).then(({reloadSkills:e})=>e())}}]}function mse(e){if(e)return e.replace(/CmdOrCtrl/g,`Ctrl`).replace(/Command/g,`Ctrl`).replace(/\+/g,` + `)}async function hse(e,t){let n=window.electronAPI?.menu;if(!n)return[];try{let r=await n.getModel(),i=kt(e).commandPalette.groups.actions;return r.flatMap(e=>e.items.flatMap(r=>{if(r.type!==`item`||r.id.startsWith(`role.`))return[];let a=mse(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 l3(e){return kt(e).commandPalette.groups}function gse(e){let t=l3(e);return{[t.navigate]:0,[t.projects]:1,[t.connectors]:2,[t.quickSettings]:3,[t.extensions]:4,[t.sessions]:5,[t.files]:6,[t.commands]:7,[t.skills]:8,[t.actions]:9}}function _se(e){let t=l3(e);return{[t.navigate]:12,[t.projects]:8,[t.connectors]:6,[t.quickSettings]:12,[t.actions]:8,[t.extensions]:8,[t.sessions]:8,[t.files]:10,[t.commands]:6,[t.skills]:6}}function u3(e,t){return gse(e)[t]??10}var d3=null;function vse(){d3=null}function yse(){return d3||(d3=Promise.allSettled([FM(),BM()]).then(([e,t])=>{if(e.status===`rejected`&&t.status===`rejected`)throw e.reason;let n={catalog:e.status===`fulfilled`?e.value:[],instances:t.status===`fulfilled`?t.value:[]};return(e.status===`rejected`||t.status===`rejected`)&&(d3=null),n}).catch(e=>{throw d3=null,e}),d3)}function f3(e){return!(e.runtime.type===`composio`&&e.runtime.role===`credential`)}function bse(e,t){let n=t.trim().toLowerCase();return n?[e.displayName,e.description,e.category,e.kind,e.source,...e.tags??[]].some(e=>e.toLowerCase().includes(n)):!0}function xse(e,t,n){return e.filter(e=>bse(e,t)).toSorted((e,t)=>n===`source`&&e.source!==t.source?e.source.localeCompare(t.source):e.displayName.localeCompare(t.displayName))}function Sse(e,t){let n=t.trim().toLowerCase();return n?[e.displayName,e.connectorId,e.instanceId,e.status,e.connectionStatus??``,e.materialized.type,e.materialized.type===`mcp`?e.materialized.serverId:e.materialized.id].some(e=>e.toLowerCase().includes(n)):!0}function Cse(e,t){let n=t.trim().toLowerCase();return n?[e.id,e.command??``,e.url??``,e.transport].some(e=>e.toLowerCase().includes(n)):!0}function wse(e,t){return!e.enabled||e.status===`disabled`?t.disabled:e.status===`failed`||e.status===`degraded`||e.status===`not_configured`||e.status===`unauthorized`||e.connectionStatus===`error`||e.connectionStatus===`unauthorized`?t.needsSetup:e.status===`connected`||e.connectionStatus===`connected`?t.connected:t.installed}function p3(e){return e?[e.id,e.description,e.category,e.kind,...e.tags??[],...e.capabilities,...e.benefits??[]]:[]}function m3(e,t){return t?`${e} · ${t}`:e}function Tse(e){if(!e.query.trim())return[];let t=new Map(e.catalog.map(e=>[e.id,e])),n=new Set(e.instances.map(e=>e.connectorId)),r=e.instances.map(n=>{let r=t.get(n.connectorId);return{kind:`connector`,id:`connector-instance:${n.instanceId}`,title:n.displayName,subtitle:m3(wse(n,e.labels),r?.description),groupLabel:e.labels.group,keywords:[n.connectorId,n.instanceId,n.materialized.type,...p3(r)],run:()=>{e.close(),e.navigate(`/capabilities/connectors?instance=${encodeURIComponent(n.instanceId)}&tab=connected`)}}}),i=e.catalog.flatMap(t=>t.source!==`builtin`||t.integrationStrategy?.preferred===!1||!f3(t)||n.has(t.id)?[]:[{kind:`connector`,id:`connector:${t.id}`,title:t.displayName,subtitle:m3(e.labels.builtin,t.description),groupLabel:e.labels.group,keywords:p3(t),run:()=>{e.close(),e.navigate(`/capabilities/connectors?connector=${encodeURIComponent(t.id)}&tab=discover`)}}]);return[...r,...i]}function h3(e){return e.trim().toLowerCase()}function Ese(e,t){let n=h3(e),r=h3(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 Dse(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=Ese(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===`connector`||e.kind===`file`?-.1:e.kind===`session`?-.05:e.kind===`setting`||e.kind===`action`?-.02:0;return Math.max(0,i+a)}function Ose(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 kse=new Set([`logs`]),Ase=[`/settings/logs`,`/settings/extensions/debug`,`/settings/ext/`];function g3(e,t){return t===`advanced`?!0:!kse.has(e)}function _3(e,t){return t===`advanced`?!0:!Ase.some(t=>e===t||e.startsWith(t))}var v3=`/capabilities/agents`;function y3(e){return`${v3}/${encodeURIComponent(e)}`}var b3=`/capabilities/channels`;function x3(e){return`${b3}/${encodeURIComponent(e.trim().toLowerCase())}`}function jse(e){return e?.trim().toLowerCase()||null}var S3=It(ai(e=>({mode:`simple`,setMode:t=>e({mode:t}),setShowAdvanced:t=>e({mode:t?`advanced`:`simple`})}),{name:`xopc-web-settings-mode`}));function Mse(){return S3(Nse)}function Nse(e){return e.mode===`advanced`}var Pse=[`settingsAgentBrowser`,`settingsComputerUse`],Fse={settingsAgentBrowser:[`browser`,`playwright`,`automation`],settingsComputerUse:[`computer use`,`compute use`,`desktop`,`电脑控制`,`电脑操作`,`桌面控制`,`GUI`,`BYOK`]};function Ise(e,t){let n=kt(e).commandPalette.routes.agentsSubtitle;return Pse.filter(e=>g3(e,t)&&(e!==`settingsComputerUse`||ca())).map(t=>({id:`route:settings:agent:${t}`,title:Ot(e,t),subtitle:n,path:wF(t),keywords:[`agent`,`manifest`,`preset`,`config`,...Fse[t]??[]]}))}function Lse(e,t){return e.filter(e=>_3(e.path.split(`?`)[0]??e.path,t))}function Rse(e){let t=kt(e),n=t.commandPalette.routes,r=t.capabilitiesSettings,i=t.channelsSettings,a=S3.getState().mode;return Lse([{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:v3,keywords:[`agent`,`persona`,`switch`]},{id:`route:extensions`,title:t.nav.extensions,subtitle:n.extensionsSubtitle,path:nj(`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:usage`,title:t.nav.usage,subtitle:n.usageSubtitle,path:`/settings/usage`,keywords:[`usage`,`cost`,`tokens`,`model`,`用量`,`费用`]},{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:nj(`skills`),keywords:[`tools`,`catalog`]},{id:`route:connectors`,title:t.nav.connectors,subtitle:n.connectorsSubtitle,path:nj(`connectors`),keywords:[`connector`,`mcp`,`registry`,`integration`,`tools`]},{id:`route:channels`,title:t.nav.channels,subtitle:n.channelsSubtitle,path:b3,keywords:[`telegram`,`weixin`,`feishu`,`channel`]},{id:`route:channels:telegram`,title:`Telegram`,subtitle:n.channelsSubtitle,path:x3(`telegram`),keywords:[`telegram`,`bot`,`channel`,`pairing`]},{id:`route:channels:weixin`,title:`Weixin`,subtitle:n.channelsSubtitle,path:x3(`weixin`),keywords:[`weixin`,`wechat`,`channel`,`qr`]},{id:`route:channels:feishu`,title:`Feishu/Lark`,subtitle:n.channelsSubtitle,path:x3(`feishu`),keywords:[`feishu`,`lark`,`channel`]},{id:`route:channels:telegram:pairing`,title:`Telegram — ${i.hubPairingButton}`,subtitle:n.channelsSubtitle,path:x3(`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:models`,title:t.nav.settingsModels,subtitle:n.modelsSubtitle,path:EF(`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:EF(`image`),keywords:[`image`,`vision`,`generate`,`picture`,`图片`,`图像`,`视觉`,`生成图片`]},{id:`route:settings:capabilities:voice`,title:t.nav.settingsVoice,subtitle:n.voiceSubtitle,path:EF(`voice`),keywords:[`tts`,`stt`,`speech`,`microphone`,`语音`,`语音识别`,`语音合成`]},{id:`route:settings:capabilities:search`,title:t.nav.settingsSearch,subtitle:n.searchSubtitle,path:EF(`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`]},...Ise(e,a)],a)}async function zse(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 C3(e){Bi.getState().setPreference(e)}function w3(e){Pt.getState().setLanguage(e)}function Bse(e,t){let n=kt(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:()=>{C3(`light`),t.closePalette()}},{kind:`setting`,id:`setting:theme:dark`,title:r.themeDark,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`dark`,`night`],run:()=>{C3(`dark`),t.closePalette()}},{kind:`setting`,id:`setting:theme:system`,title:r.themeSystem,subtitle:r.appearanceSubtitle,groupLabel:i,keywords:[`theme`,`system`,`auto`],run:()=>{C3(`system`),t.closePalette()}},{kind:`setting`,id:`setting:lang:en`,title:r.languageEn,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`english`,`language`,`locale`],run:()=>{w3(`en`),t.closePalette()}},{kind:`setting`,id:`setting:lang:zh`,title:r.languageZh,subtitle:r.languageSubtitle,groupLabel:i,keywords:[`chinese`,`中文`,`language`],run:()=>{w3(`zh`),t.closePalette()}}]}function Vse(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:v3,keywords:[`agent`,`profile`,`personality`,`instructions`,`agent 个性`,`指令`]},{id:`field:agent:workspace`,title:t?`Agent 工作目录`:`Agent workspace`,subtitle:t?`按需覆盖该 Agent 的自动工作目录`:`Optionally override the automatic workspace`,path:v3,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-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:b3,keywords:[`telegram`,`bot`,`token`,`channel`,`频道`]},{id:`field:channels:dmPolicy`,title:t?`私聊接入策略`:`DM Access Policy`,subtitle:t?`Telegram 私聊白名单/配对策略`:`Telegram DM allowlist/pairing policy`,path:b3,keywords:[`dm`,`policy`,`pairing`,`allowlist`,`access`,`私聊`,`策略`]},{id:`field:mcp:servers`,title:t?`MCP 服务器配置`:`MCP Servers`,subtitle:t?`外部 MCP 工具服务器列表`:`External MCP tool server registry`,path:`/capabilities/connectors`,keywords:[`mcp`,`server`,`tools`,`external`,`stdio`,`服务器`,`connector`]},{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 Hse(e,t,n,r){return Vse(e).map(e=>({kind:`setting`,id:e.id,title:e.title,subtitle:e.subtitle,groupLabel:r,keywords:e.keywords,run:()=>{n(),t(e.path)}}))}function T3(e){return e.acceptsArgs?`/${e.name} `:`/${e.name}`}var E3=`xopc.webchat.newSessionPreferences`;function D3(){if(globalThis.localStorage===void 0)return Aj();try{let e=globalThis.localStorage.getItem(E3);return Pj(e?JSON.parse(e):null)}catch{return Aj()}}function O3(e){try{globalThis.localStorage?.setItem(E3,JSON.stringify(e))}catch{}return e}function k3(e){return O3(Fj(D3(),e))}function A3(e,t){return O3(Ij(D3(),e,t))}function Use(e){return O3(Lj(D3(),e))}function Wse(e,t){return O3(zj(D3(),e,t))}var Gse={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.`]},conductor:{key:`conductor`,defaultNames:[`conductor`,`Conductor`],defaultDescriptions:[`Talks with the user, delegates complex work to specialist Agents, and delivers verified results.`,`User-facing coordination Agent for task planning, delegation, progress, verification, and reporting to the user.`]},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 j3(e){return e?.trim().toLowerCase()??``}function M3(e,t){let n=j3(e);return!!n&&t.some(e=>j3(e)===n)}function N3(e){return Gse[j3(e)]}function P3(e,t){let n=e.name?.trim(),r=N3(e.id);return r&&(!n||M3(n,r.defaultNames))?t.builtInAgents[r.key].name:n||e.id}function F3(e,t){let n=e.description?.trim(),r=N3(e.id);return r&&(!n||M3(n,r.defaultDescriptions))?t.builtInAgents[r.key].description:n||``}var Kse=3e4,I3=null;function qse(e,t){return e.map(e=>({id:`file:${e.id}`,kind:`file`,name:e.name,description:e.path,relativePath:e.path,isDirectory:e.isDirectory,...t.has(e.path)?{isRecent:!0}:{},fileRef:{sourceId:e.id,expectedVersion:e.revision}}))}async function L3(e,t){let n=t.conversationId?.trim(),r=t.agentId?.trim(),i=t.limit??15,a=e.trim(),o=t.recentPaths??new Set;if(n&&a.length===0){let e=Date.now();if(I3&&I3.key===n&&e-I3.at<Kse)return I3.items.map(e=>({...e,...o.has(e.relativePath)?{isRecent:!0}:{isRecent:void 0}}))}let s={conversationId:n,agentId:r},c=qse(a.length===0?await ya(``,s):await va(a,s,i),o);return n&&a.length===0&&(I3={key:n,at:Date.now(),items:c}),c}async function Jse(e,t){return ya(e,{conversationId:t.conversationId,agentId:t.agentId})}function R3(e,...t){let n=e.trim().toLocaleLowerCase();return!n||t.some(e=>e?.toLocaleLowerCase().includes(n))}async function z3(e){let t=await Mt(Y(e)),n=await t.json().catch(()=>({}));if(!t.ok||!n.payload)throw Error(typeof n.error==`string`?n.error:`HTTP ${t.status}`);return n.payload}var B3=null;async function Yse(){if(B3&&Date.now()<B3.expiresAt)return B3.items;let e=await z3(`/api/mcp/resources`);return B3={expiresAt:Date.now()+3e4,items:e.resources},e.resources}var V3=[{kind:`file`,search:(e,t)=>L3(e,{conversationId:t.conversationId,agentId:t.currentAgentId,limit:10,recentPaths:t.recentPaths})},{kind:`note`,async search(e,t){return(await Ue({...e.trim()?{search:e.trim()}:{},limit:5,sortBy:`updatedAt`,sortOrder:`desc`})).items.filter(e=>e.status!==`trashed`&&!t.selectedContextKeys.has(`note:${e.id}`)).map(e=>({id:`note:${e.id}`,kind:`note`,name:e.title?.trim()||e.snippet?.trim()||kt(t.language).chat.commandPalette.untitledNote,description:e.snippet?.trim()||``,noteRef:{sourceId:e.id,expectedVersion:String(e.updatedAt)}}))}},{kind:`session`,async search(e,t){return(await Un({...e.trim()?{search:e.trim()}:{},limit:5,sortBy:`updatedAt`,sortOrder:`desc`})).items.filter(e=>e.key!==t.conversationId&&!t.selectedContextKeys.has(`session:${e.key}`)).map(e=>({id:`session:${e.key}`,kind:`session`,name:e.name?.trim()||e.key,description:`${e.messageCount} messages`,sessionRef:{sourceId:e.key,expectedVersion:e.updatedAt}}))}},{kind:`skill`,async search(e,t){return(await mU(t.currentAgentId,t.conversationId)).skills.flatMap(n=>{if(!n.availableForCurrentAgent)return[];let r=ZH(n,t.language);return R3(e,n.name,r.displayName,r.description,...r.searchTerms)?[{id:`skill:${n.name}`,kind:`skill`,name:r.displayName,description:r.description,canonicalName:n.name}]:[]}).slice(0,5)}},{kind:`agent`,async search(e,t){let n=await Vz(),r=kt(t.language).agentsSettings;return n.items.flatMap(t=>{let n=P3(t,r),i=F3(t,r);return R3(e,t.id,n,i)?[{id:`agent:${t.id}`,kind:`agent`,name:n,description:i,agentId:t.id,...t.avatar?{avatar:t.avatar}:{}}]:[]}).slice(0,5)}},{kind:`browser_tab`,async search(e,t){return(await z3(`/api/browser/tabs?${new URLSearchParams({conversationId:t.conversationId})}`)).tabs.flatMap(n=>!R3(e,n.title,n.url)||t.selectedContextKeys.has(`browser_tab:${n.id}`)?[]:[{id:`browser-tab:${n.id}`,kind:`browser_tab`,name:n.title||n.url,description:n.url,url:n.url,tabRef:{sourceId:n.id,expectedVersion:n.documentId}}])}},{kind:`mcp_server`,async search(e){return e.startsWith(`mcp:`)?[]:(await z3(`/api/mcp/servers`)).mergedServerIds.flatMap(t=>R3(e,t,`mcp`)?[{id:`mcp-server:${t}`,kind:`mcp_server`,name:t,description:`MCP server`,serverId:t}]:[]).slice(0,5)}},{kind:`mcp_resource`,async search(e,t){let n=e.match(/^mcp:([^/]+)\/(.*)$/u);if(!e.trim()||e.startsWith(`mcp:`)&&!n)return[];let r=``,i=``;if(n){try{r=decodeURIComponent(n[1])}catch{return[]}i=n[2]?.trim().toLocaleLowerCase()??``}else i=e.trim().toLocaleLowerCase();return(await Yse()).filter(e=>!r||e.serverId===r).filter(e=>!i||[e.name,e.title,e.description,e.uri,e.serverId].some(e=>e?.toLocaleLowerCase().includes(i))).filter(e=>!t.selectedContextKeys.has(`mcp_resource:${e.id}`)).map(e=>({id:`mcp-resource:${e.id}`,kind:`mcp_resource`,name:e.title||e.name,description:e.description||`${e.serverId} · ${e.uri}`,serverId:e.serverId,uri:e.uri,resourceRef:{sourceId:e.id,expectedVersion:e.version}}))}}];async function H3(){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 U3(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([8,1,4]));return await Promise.all([n(`settings-gateway-agents`),n(`capability-readiness`),ni()]),t.payload}function Xse(){let{pathname:e}=b(),{conversationId:t}=p();if(!e.startsWith(`/chat`)||!t)return;let n=decodeURIComponent(t);return n&&n!==`new`?n:void 0}async function W3(e){let{defaults:t}=await H3();await U3({...t,models:{...t.models,chat:{primary:e,fallbacks:[]}}})}function G3(e,t,n,r){let i=e.trim().toLowerCase();i&&(k3(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 Zse(e){switch(e.kind){case`connector`:return(0,$.jsx)(ru,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`extension`:return(0,$.jsx)(bx,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`route`:return(0,$.jsx)(Le,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`project`:return(0,$.jsx)(F_,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`session`:return(0,$.jsx)(Le,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`file`:return(0,$.jsx)(ae,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`command`:return(0,$.jsx)(xD,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`skill`:return(0,$.jsx)(ct,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});case`setting`:return(0,$.jsx)(DC,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0});case`action`:return(0,$.jsx)(PA,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0});default:return null}}function K3(e,t,n,r){if(r(),t.startsWith(`/chat`)){XH(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(()=>{XH(e)})}))}function Qse(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 $se(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 ece={query:``,selectedIndex:0,paletteLayer:`main`};async function tce(){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 nce(e){let t=await ki(),n=kt(e).agentsSettings;return t.agents.map(e=>({id:e.id,title:P3(e,n),subtitle:e.id}))}function rce({onClose:e}){let t=(0,Z.useRef)(null),n=(0,Z.useRef)(null),r=l(),{pathname:i}=b(),a=Pt(e=>e.language),o=Kr(),s=Xse(),c=IV(e=>e.agentId),u=GV(e=>e.setPath),[d,f]=(0,Z.useReducer)($se,ece),[p,m]=(0,Z.useState)(0),[h,g]=(0,Z.useState)(0),{query:_,selectedIndex:v,paletteLayer:y}=d,x=(0,Z.useMemo)(()=>Rse(a),[a]),[S]=fa(_,120);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&t.section===`skills`&&m(e=>e+1),g(e=>e+1)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},[]);let C=la(yse,[h],{enabled:y===`main`&&!!S.trim(),initial:{catalog:[],instances:[]},errorData:{catalog:[],instances:[]}}),w=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`models`})},[]),T=(0,Z.useCallback)(()=>{f({type:`setLayer`,layer:`agents`})},[]),E=la(async()=>y===`models`?tce():y===`agents`?nce(a):[],[y,a],{enabled:y===`models`||y===`agents`,initial:[],errorData:[]}),D=la(async()=>{let t=S.trim(),n=e,l=kt(a).commandPalette.groups,d=x.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=Bse(a,{closePalette:n,openModelPalette:w,openAgentPalette:T}),p=pse(a,r,n),m=Tse({query:t,...C.data,labels:{group:l.connectors,...kt(a).commandPalette.connectors},navigate:r,close:n}),h=Qse({query:t,close:n,navigate:r,uiExtensions:o,extensionsGroupLabel:l.extensions}),[g,_,v,y,b,E]=await Promise.all([pU(),bU(),t?zse(t,{types:[`project`],limit:8}).catch(()=>[]):[],Un({search:t||void 0,limit:8,offset:0}).catch(()=>({items:[]})),(async()=>{let e=s?.trim(),n=c.trim();return!e&&!n?[]:await L3(t,{conversationId:e||void 0,agentId:e?void 0:n||void 0,limit:10}).catch(()=>[])})(),hse(a,n)]),D=v.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)}})),O=g.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:()=>{K3(T3(e),i,r,n)}})),k=_.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:()=>{K3(`/skill:${e.name} `,i,r,n)}}]),A=(y.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)}`)}})),j=b.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)}}]),M=Hse(a,r,n,l.navigate),N=[...d,...f,...p,...E,...h,...M,...D,...m,...A,...j,...O,...k],P=[];for(let e of N){let n=Dse(e,t);n!==null&&P.push({...e,rank:n})}let F=_se(a),I=Ose(P),L=[],R={};for(let e of I){let t=(R[e.groupLabel]??0)+1;if(!(t>(F[e.groupLabel]??6))&&(R[e.groupLabel]=t,L.push(e),L.length>=36))break}return L.sort((e,t)=>u3(a,e.groupLabel)-u3(a,t.groupLabel)||e.rank-t.rank||e.title.localeCompare(t.title)),L},[S,x,o,r,s,c,i,u,a,w,T,e,p,C.data],{enabled:y===`main`,initial:[],errorData:[]}),O=D.data,k=D.loading,A=D.error,j=(0,Z.useMemo)(()=>{let e=_.trim().toLowerCase(),t=E.data;return e?t.filter(t=>t.title.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||(t.subtitle?.toLowerCase().includes(e)??!1)):t},[E.data,_]),M=`${y}|${_}|${String(j.length)}|${String(O.length)}`,N=(0,Z.useRef)(M);if(N.current!==M){N.current=M;let e=y===`main`?Math.max(0,O.length-1):Math.max(0,j.length);v>e&&f({type:`setSelectedIndex`,value:e})}(0,Z.useEffect)(()=>{let e=window.setTimeout(()=>t.current?.focus(),50);return()=>window.clearTimeout(e)},[]);let P=(0,Z.useEffectEvent)(t=>{if(t.key===`Escape`){if(t.preventDefault(),y!==`main`){f({type:`resetMain`});return}e();return}let n=y===`main`?Math.max(0,O.length-1):Math.max(0,j.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(),y===`models`){if(v===0){f({type:`resetMain`});return}let t=j[v-1];if(!t)return;(async()=>{await W3(t.id),ni(),yi(),e(),f({type:`resetMain`})})();return}if(y===`agents`){if(v===0){f({type:`resetMain`});return}let t=j[v-1];if(!t)return;G3(t.id,i,r,e),f({type:`resetMain`});return}let n=O[v];n&&n.run()}});(0,Z.useEffect)(()=>{let e=e=>{P(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(v)}"]`)?.scrollIntoView({block:`nearest`,inline:`nearest`})},[v,O,y,j.length]);let F=a===`zh`?`返回`:`Back`;if(y===`models`||y===`agents`){let o=j,s=E.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:_,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:y===`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`,v===0?`bg-surface-hover`:`hover:bg-surface-inset`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:0}),onClick:()=>f({type:`resetMain`}),children:[`← `,F]})}),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`,v===a?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-inset`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:a}),onClick:()=>{y===`models`?(async()=>{await W3(t.id),ni(),yi(),e(),f({type:`resetMain`})})():(G3(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 I=``;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:_,onChange:e=>f({type:`setQuery`,value:e.target.value}),placeholder:a===`zh`?`搜索…(会话 / 文件 / 连接 / 设置 / 命令)`:`Search… (sessions, files, connectors, 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":O[v]?`global-hit-${O[v].id}`:void 0,children:O.length===0?(0,$.jsx)(`li`,{className:`rounded-lg px-3 py-6 text-center text-fg-muted`,children:k?a===`zh`?`搜索中…`:`Searching…`:A?A instanceof Error?A.message:String(A):a===`zh`?`无结果`:`No results`}):O.map((e,t)=>{let n=e.groupLabel===I?``:e.groupLabel;return I=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===v?`bg-surface-hover text-fg`:`text-fg hover:bg-surface-inset`].join(` `),onMouseEnter:()=>f({type:`setSelectedIndex`,value:t}),onClick:()=>e.run(),children:[(0,$.jsx)(`span`,{className:`mt-0.5`,children:Zse(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 ice(){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(oce))};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(ace);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)(rce,{onClose:()=>n(!1)}),e[6]=l):l=e[6],l}function ace(e){return!e}function oce(e){return!e}function q3(e,t){let n=t.trim();if(!n)return e;let r=e.trim();return r?`${r} ${n}`:n}var J3=q(`inline-flex min-h-11 min-w-11 shrink-0 gap-2 px-3 items-center justify-center rounded-lg text-fg-muted`,`hover:bg-surface-hover hover:text-fg`,$r.transition,$r.press,$r.focusRingPanel,`disabled:cursor-not-allowed disabled:opacity-50`),Y3=(0,Z.memo)(function(e){let t=(0,Q.c)(47),{phase:n,elapsedLabel:r,audioLevel:i,partialTranscript:a,finalTranscript:o,error:s,settingsRequired:c,disabled:l,chat:u,onCancel:d,onConfirm:f,onRetry:p}=e,m=n===`transcribing`,h=n===`requesting`,g=n===`starting`,_=n===`error`,v=_?s||u.voiceTranscribeFailed:h?u.voiceRequestingMicrophone:g?u.voiceStartingMicrophone:m?u.voiceTranscribing:u.voiceRecordingStatus,y;t[0]!==o||t[1]!==a?(y=[o,a].filter(Boolean),t[0]=o,t[1]=a,t[2]=y):y=t[2];let b=y.join(` `),x=h||g||m,S;t[3]!==i||t[4]!==_||t[5]!==n?(S=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-fg-muted motion-safe:transition-[height] motion-safe:duration-75`,style:{height:Math.max(3,Math.round(18*Math.min(1,i*n+.08)))}},t)})}):_?(0,$.jsx)(L,{className:`size-4 shrink-0 text-danger`,"aria-hidden":!0}):(0,$.jsx)(ta,{className:`h-4 w-8`}),t[3]=i,t[4]=_,t[5]=n,t[6]=S):S=t[6];let C=_?`alert`:`status`,T;t[7]!==v||t[8]!==C?(T=(0,$.jsx)(`p`,{className:`min-w-0 flex-1 break-words text-sm text-fg-muted`,role:C,children:v}),t[7]=v,t[8]=C,t[9]=T):T=t[9];let E;t[10]!==r||t[11]!==n?(E=n===`recording`?(0,$.jsx)(`span`,{className:`shrink-0 text-sm tabular-nums text-fg-muted`,children:r}):null,t[10]=r,t[11]=n,t[12]=E):E=t[12];let D;t[13]!==S||t[14]!==T||t[15]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[S,T,E]}),t[13]=S,t[14]=T,t[15]=E,t[16]=D):D=t[16];let O;t[17]===b?O=t[18]:(O=b?(0,$.jsx)(`p`,{className:`max-h-28 overflow-y-auto overscroll-contain whitespace-pre-wrap break-words px-1 text-base text-fg`,children:b}):null,t[17]=b,t[18]=O);let k;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),t[19]=k):k=t[19];let A;t[20]!==u.voiceInputCancel||t[21]!==d?(A=(0,$.jsxs)(`button`,{type:`button`,className:J3,title:u.voiceInputCancel,"aria-label":u.voiceInputCancel,onClick:d,children:[k,u.voiceInputCancel]}),t[20]=u.voiceInputCancel,t[21]=d,t[22]=A):A=t[22];let j;t[23]!==l||t[24]!==_||t[25]!==u.voiceOpenSettings||t[26]!==u.voiceRetry||t[27]!==p||t[28]!==c?(j=_&&c?(0,$.jsxs)(`a`,{href:`#/settings/capabilities/voice`,className:q(J3,`text-accent-fg`),children:[(0,$.jsx)(st,{className:`size-4`,"aria-hidden":!0}),u.voiceOpenSettings]}):_?(0,$.jsxs)(`button`,{type:`button`,className:J3,disabled:l,"aria-label":u.voiceRetry,onClick:p,children:[(0,$.jsx)(it,{className:`size-4`,"aria-hidden":!0}),u.voiceRetry]}):null,t[23]=l,t[24]=_,t[25]=u.voiceOpenSettings,t[26]=u.voiceRetry,t[27]=p,t[28]=c,t[29]=j):j=t[29];let M;t[30]!==l||t[31]!==_||t[32]!==o||t[33]!==u.voiceInputConfirm||t[34]!==f||t[35]!==n?(M=n===`recording`||_&&o?(0,$.jsxs)(`button`,{type:`button`,className:q(J3,`rounded-full bg-accent text-on-accent hover:bg-accent-hover hover:text-on-accent`),disabled:l,"aria-label":u.voiceInputConfirm,onClick:f,children:[(0,$.jsx)(w,{className:`size-4`,"aria-hidden":!0}),u.voiceInputConfirm]}):null,t[30]=l,t[31]=_,t[32]=o,t[33]=u.voiceInputConfirm,t[34]=f,t[35]=n,t[36]=M):M=t[36];let N;t[37]!==A||t[38]!==j||t[39]!==M?(N=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[A,j,M]}),t[37]=A,t[38]=j,t[39]=M,t[40]=N):N=t[40];let P;return t[41]!==u.voiceInput||t[42]!==N||t[43]!==x||t[44]!==D||t[45]!==O?(P=(0,$.jsxs)(`section`,{className:`w-full space-y-3 py-3`,"aria-label":u.voiceInput,"aria-busy":x,children:[D,O,N]}),t[41]=u.voiceInput,t[42]=N,t[43]=x,t[44]=D,t[45]=O,t[46]=P):P=t[46],P}),X3=`xopc-voice-input-toggle`,Z3=`xopc-voice-input-cancel`,Q3=`app-shortcut-recording`,$3=!1;function e6(e,t){let n=new CustomEvent(e,{cancelable:!0,detail:{target:t}});return window.dispatchEvent(n),n.defaultPrevented}function t6(){$3=!0}function sce(){$3=!1}function cce(){return $3?($3=!1,!0):!1}function lce(e){let t=(0,Q.c)(100),{onClose:n}=e,r=l(),i=Pt(dce),a;t[0]===i?a=t[1]:(a=kt(i),t[0]=i,t[1]=a);let o=a.notes,s;t[2]===i?s=t[3]:(s=kt(i),t[2]=i,t[3]=s);let c=s.chat,u=XU(uce),[d,f]=(0,Z.useState)(``),[p,m]=(0,Z.useState)(!1),h=(0,Z.useRef)(null),g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{f(t=>q3(t,e)),window.setTimeout(()=>h.current?.focus(),0)},t[4]=g):g=t[4];let _;t[5]!==c||t[6]!==p?(_={disabled:p,chat:c,onTranscript:g},t[5]=c,t[6]=p,t[7]=_):_=t[7];let v=RP(_),{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]!==p||t[13]!==x||t[14]!==b||t[15]!==y?(E=()=>{let e=e=>{e.detail?.target===`note`&&(e.preventDefault(),!p&&(y===`recording`?C():(y===`idle`||y===`error`)&&x()))},t=e=>{e.detail?.target!==`note`||!b||(e.preventDefault(),S(),h.current?.focus())};return window.addEventListener(X3,e),window.addEventListener(Z3,t),()=>{window.removeEventListener(X3,e),window.removeEventListener(Z3,t)}},D=[S,C,p,x,b,y],t[10]=S,t[11]=C,t[12]=p,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]!==p||t[21]!==d?(O=async e=>{let t=d.trim();if(!(!t||p)){m(!0);try{let i=await qe(t,`web`);n(),e&&r(`/notes/${i.id}`)}catch{m(!1)}}},t[18]=r,t[19]=n,t[20]=p,t[21]=d,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)(kE,{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]!==p||t[35]!==d||t[36]!==v.audioLevel||t[37]!==v.cancelVoiceInput||t[38]!==v.confirmVoiceInput||t[39]!==v.elapsedLabel||t[40]!==v.error||t[41]!==v.finalTranscript||t[42]!==v.partialTranscript||t[43]!==v.phase||t[44]!==v.retryVoiceInput||t[45]!==v.settingsRequired||t[46]!==v.voiceActive?(I=v.voiceActive?(0,$.jsx)(`div`,{className:`px-4 py-3`,children:(0,$.jsx)(Y3,{phase:v.phase,elapsedLabel:v.elapsedLabel,audioLevel:v.audioLevel,partialTranscript:v.partialTranscript,finalTranscript:v.finalTranscript,error:v.error,settingsRequired:v.settingsRequired,disabled:p,chat:c,onCancel:v.cancelVoiceInput,onConfirm:v.confirmVoiceInput,onRetry:v.retryVoiceInput})}):(0,$.jsx)(`textarea`,{ref:h,value:d,onChange:e=>f(e.target.value),onKeyDown:j,placeholder:o.quickCapturePlaceholder,disabled:p,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]=p,t[35]=d,t[36]=v.audioLevel,t[37]=v.cancelVoiceInput,t[38]=v.confirmVoiceInput,t[39]=v.elapsedLabel,t[40]=v.error,t[41]=v.finalTranscript,t[42]=v.partialTranscript,t[43]=v.phase,t[44]=v.retryVoiceInput,t[45]=v.settingsRequired,t[46]=v.voiceActive,t[47]=I):I=t[47];let L=p||v.voiceActive,R;t[48]===n?R=t[49]:(R=()=>{n(),o3()},t[48]=n,t[49]=R);let z;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(ps,{className:`size-3.5`,"aria-hidden":!0}),t[50]=z):z=t[50];let B;t[51]===o.discussionCapture.title?B=t[52]:(B=(0,$.jsx)(`span`,{children:o.discussionCapture.title}),t[51]=o.discussionCapture.title,t[52]=B);let V;t[53]!==L||t[54]!==R||t[55]!==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[53]=L,t[54]=R,t[55]=B,t[56]=V):V=t[56];let H=p||v.voiceActive,U=c.voiceInput,W;t[57]===u?W=t[58]:(W=VU(u).join(`+`),t[57]=u,t[58]=W);let G=`${U} (${W})`,ee=c.voiceInput,te;t[59]===u?te=t[60]:(te=VU(u).join(`+`),t[59]=u,t[60]=te);let ne=`${ee} (${te})`,K;t[61]===v?K=t[62]:(K=()=>void v.startVoiceInput(),t[61]=v,t[62]=K);let re;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,$.jsx)(Qe,{className:`size-3.5`,"aria-hidden":!0}),t[63]=re):re=t[63];let ie;t[64]===c.voiceInput?ie=t[65]:(ie=(0,$.jsx)(`span`,{children:c.voiceInput}),t[64]=c.voiceInput,t[65]=ie);let ae;t[66]!==H||t[67]!==G||t[68]!==ne||t[69]!==K||t[70]!==ie?(ae=(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:G,"aria-label":ne,onClick:K,children:[re,ie]}),t[66]=H,t[67]=G,t[68]=ne,t[69]=K,t[70]=ie,t[71]=ae):ae=t[71];let oe;t[72]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,$.jsx)(`kbd`,{className:`rounded bg-surface-hover px-1 py-0.5 font-mono text-[10px]`,children:`Enter`}),t[72]=oe):oe=t[72];let se;t[73]===o.quickCaptureHintEnter?se=t[74]:(se=(0,$.jsxs)(`span`,{children:[oe,` `,o.quickCaptureHintEnter]}),t[73]=o.quickCaptureHintEnter,t[74]=se);let ce;t[75]===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:`Shift+Enter`}),t[75]=ce):ce=t[75];let le;t[76]===o.quickCaptureHintShift?le=t[77]:(le=(0,$.jsxs)(`span`,{children:[ce,` `,o.quickCaptureHintShift]}),t[76]=o.quickCaptureHintShift,t[77]=le);let ue;t[78]===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:`Esc`}),t[78]=ue):ue=t[78];let de;t[79]===o.quickCaptureHintEsc?de=t[80]:(de=(0,$.jsxs)(`span`,{children:[ue,` `,o.quickCaptureHintEsc]}),t[79]=o.quickCaptureHintEsc,t[80]=de);let fe;t[81]!==V||t[82]!==ae||t[83]!==se||t[84]!==le||t[85]!==de?(fe=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-[11px] text-fg-muted`,children:[V,ae,se,le,de]}),t[81]=V,t[82]=ae,t[83]=se,t[84]=le,t[85]=de,t[86]=fe):fe=t[86];let pe;t[87]===p?pe=t[88]:(pe=p&&(0,$.jsx)(`div`,{className:`size-4 animate-spin rounded-full border-2 border-accent border-t-transparent`}),t[87]=p,t[88]=pe);let me;t[89]!==fe||t[90]!==pe?(me=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-t border-edge-subtle px-4 py-2`,children:[fe,pe]}),t[89]=fe,t[90]=pe,t[91]=me):me=t[91];let he;t[92]!==F||t[93]!==I||t[94]!==me?(he=(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,me]}),t[92]=F,t[93]=I,t[94]=me,t[95]=he):he=t[95];let ge;return t[96]!==o.quickCapturePlaceholder||t[97]!==N||t[98]!==he?(ge=(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:he}),t[96]=o.quickCapturePlaceholder,t[97]=N,t[98]=he,t[99]=ge):ge=t[99],ge}function uce(e){return e.shortcut}function dce(e){return e.language}function fce(){let e=(0,Q.c)(11),[t,n]=(0,Z.useState)(!1),[r,i]=(0,Z.useState)(!1),a=At(hce),o=GU(mce),s,c;e[0]!==r||e[1]!==o||e[2]!==a?(s=()=>{let e=e=>{r||JU(e,o)&&(e.preventDefault(),a&&n(pce))};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(Q3,e),()=>{window.removeEventListener(`quick-capture-shortcut-recording`,e),window.removeEventListener(Q3,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)(lce,{onClose:()=>n(!1)}),e[10]=p):p=e[10],p}function pce(e){return!e}function mce(e){return e.shortcut}function hce(e){return e.conversationId}var gce=t({acknowledgeDiscussionConsent:()=>r6,cancelDiscussion:()=>u6,createDiscussion:()=>i6,getDiscussion:()=>a6,getDiscussionCaptureSettings:()=>n6,getDiscussionForNote:()=>o6,getDiscussionTranscript:()=>s6,getRecordingChunks:()=>f6,getRecordingJob:()=>h6,retryDiscussion:()=>l6,sealRecording:()=>m6,unlinkDiscussionProject:()=>d6,uploadDiscussionSegment:()=>c6,uploadRecordingChunk:()=>p6});function n6(){return J(Y(`/api/discussion-capture/settings`))}function r6(e){return J(Y(`/api/discussion-capture/settings`),{method:`PUT`,body:JSON.stringify({consentPolicyVersion:e})})}async function i6(e){return J(Y(`/api/discussions`),{method:`POST`,body:JSON.stringify(e)})}function a6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}`))}async function o6(e){try{return await J(Y(`/api/discussions/by-note/${encodeURIComponent(e)}`))}catch(e){if(e.status===404)return null;throw e}}function s6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/transcript`))}function c6(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 l6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/retry`),{method:`POST`})}function u6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/cancel`),{method:`POST`})}function d6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/project`),{method:`DELETE`})}function f6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/recording/chunks`))}function p6(e,t,n,r){return J(Y(`/api/discussions/${encodeURIComponent(e)}/recording/chunks/${t}`),{method:`PUT`,headers:{"Content-Type":`application/octet-stream`,"x-audio-sha256":r},body:n})}function m6(e,t){return J(Y(`/api/discussions/${encodeURIComponent(e)}/capture/seal`),{method:`POST`,body:JSON.stringify(t)})}function h6(e){return J(Y(`/api/discussions/${encodeURIComponent(e)}/recording/job`))}var _ce=`xopc-discussion-drafts`,vce=2,g6=`drafts`,_6=`chunks`,v6=`segments`;function y6(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error??Error(`IndexedDB request failed`))})}function b6(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 x6(){return typeof indexedDB>`u`?Promise.reject(Error(`Local recording storage is unavailable`)):new Promise((e,t)=>{let n=indexedDB.open(_ce,vce);n.onupgradeneeded=()=>{let e=n.result;e.objectStoreNames.contains(g6)||e.createObjectStore(g6,{keyPath:`id`}),e.objectStoreNames.contains(_6)||e.createObjectStore(_6,{keyPath:[`draftId`,`index`]}).createIndex(`draftId`,`draftId`),e.objectStoreNames.contains(v6)||e.createObjectStore(v6,{keyPath:[`draftId`,`sequence`]}).createIndex(`draftId`,`draftId`)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error??Error(`Could not open local recording storage`))})}async function S6(e){let t=await x6();try{let n=t.transaction(g6,`readwrite`);n.objectStore(g6).put(e),await b6(n)}finally{t.close()}}async function C6(e,t){let n=await x6();try{let r=n.transaction(t?[_6,g6]:[_6],`readwrite`,{durability:`strict`});r.objectStore(_6).put(e),t&&r.objectStore(g6).put(t),await b6(r)}finally{n.close()}}async function yce(){let e=await x6();try{let t=e.transaction(g6,`readonly`),n=b6(t),r=await y6(t.objectStore(g6).getAll());return await n,r.sort((e,t)=>t.updatedAt-e.updatedAt)}finally{e.close()}}async function bce(e,t){let n=await x6();try{let r=n.transaction(_6,`readonly`),i=b6(r),a=await y6(r.objectStore(_6).get([e,t]));return await i,a}finally{n.close()}}async function xce(e){let t=await x6();try{let n=t.transaction(v6,`readwrite`);n.objectStore(v6).put(e),await b6(n)}finally{t.close()}}async function w6(e){let t=await x6();try{let n=t.transaction(v6,`readonly`),r=b6(n),i=await y6(n.objectStore(v6).index(`draftId`).getAll(e));return await r,i.sort((e,t)=>e.sequence-t.sequence)}finally{t.close()}}async function Sce(e,t){let n=await x6();try{let r=n.transaction(v6,`readwrite`);r.objectStore(v6).delete([e,t]),await b6(r)}finally{n.close()}}async function T6(e){let t=await x6();try{let n=t.transaction([g6,_6,v6],`readwrite`);n.objectStore(g6).delete(e);let r=n.objectStore(_6),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(v6),o=a.index(`draftId`).openKeyCursor(IDBKeyRange.only(e));o.onsuccess=()=>{let e=o.result;e&&(a.delete(e.primaryKey),e.continue())},await b6(n)}finally{t.close()}}var E6=3e4;function Cce(e,t){let n=e?.retryAfterMs;return typeof n==`number`&&Number.isFinite(n)?Math.min(E6,Math.max(0,n)):Math.min(E6,1e3*2**Math.min(t,5))}function wce(e){let t=e?.status;return typeof t!=`number`||t===408||t===429||t>=500}function Tce(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 Ece(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(!wce(e))throw e;await Tce(Cce(e,r),n),r+=1}}}async function Dce(e){let t=await crypto.subtle.digest(`SHA-256`,await e.arrayBuffer());return Array.from(new Uint8Array(t),e=>e.toString(16).padStart(2,`0`)).join(``)}async function D6(e,t){let n=t,r=performance.now()+5*6e4;for(;n.state===`queued`||n.state===`running`;){if(performance.now()>=r)throw Error(`Recording is still processing. Your draft is saved; retry to check its result.`);await new Promise(e=>setTimeout(e,1e3)),n=await h6(e)}if(n.state!==`completed`)throw Error(n.error??`Recording processing was cancelled`);return a6(e)}async function O6(e,t,n,r=!0){if(r){let e=await a6(t);if(e.discussion.audioAttachmentId)return e;if(e.recordingJob?.state===`queued`||e.recordingJob?.state===`running`)return D6(t,e.recordingJob)}let i=new Map((await f6(t)).map(e=>[e.sequence,e]));for(let r=0;r<e.chunkCount;r+=1){let a=await bce(e.id,r);if(!a)throw Error(`Missing local recording chunk ${r}`);if(a.blob.size>8388608)throw Error(`Recording chunk exceeds the supported size`);let o=await Dce(a.blob);if(i.has(r)&&i.get(r).sha256!==o)throw Error(`Stored recording differs from this draft`);i.has(r)||await p6(t,r,a.blob,o),n(Math.round((r+1)/e.chunkCount*100))}if(r)return D6(t,await m6(t,{lastSequence:e.lastSequence,chunkCount:e.chunkCount,mimeType:e.mimeType,fileName:e.fileName??`meeting-${e.startedAt}.${e.mimeType.includes(`mp4`)?`m4a`:e.mimeType.includes(`ogg`)?`ogg`:`webm`}`}))}async function Oce(e,t){let n=await navigator.storage?.estimate?.();if(n?.quota&&n.usage!==void 0&&n.quota-n.usage<e.size*1.1)throw Error(`Not enough local storage to safely import this recording`);let r={id:t,mimeType:e.type||(/\.mp3$/i.test(e.name)?`audio/mpeg`:/\.wav$/i.test(e.name)?`audio/wav`:/\.(m4a|mp4)$/i.test(e.name)?`audio/mp4`:/\.ogg$/i.test(e.name)?`audio/ogg`:`audio/webm`),fileName:e.name,startedAt:Date.now(),updatedAt:Date.now(),durationMs:1e3,chunkCount:0,lastSequence:-1,state:`stopped`};try{for(let n=0;n<e.size;n+=$j)await C6({draftId:t,index:r.chunkCount,blob:e.slice(n,n+$j),createdAt:Date.now()}),r.chunkCount+=1;return await S6(r),r}catch(e){throw await T6(t),e}}var kce=class{now;accumulated=0;started=null;constructor(e=()=>performance.now()){this.now=e}get elapsedMs(){return this.accumulated+(this.started===null?0:Math.max(0,this.now()-this.started))}resume(){this.started===null&&(this.started=this.now())}pause(){this.accumulated=this.elapsedMs,this.started=null}reset(e=0){this.accumulated=e,this.started=null}},Ace=4,k6=15,jce=.6,Mce=.5,Nce=.5,A6=.015;function Pce(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 Fce(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 Ice=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,xP(e)>=A6?(this.hasSpeech=!0,this.silenceSamples=0):this.silenceSamples+=e.length;let t=this.sampleRate*k6;return this.bufferedSamples>=t?this.hasSpeech?[this.emit(`max`)]:(this.discardBuffered(),[]):this.hasSpeech&&this.bufferedSamples>=this.sampleRate*Ace&&this.silenceSamples>=this.sampleRate*jce?[this.emit(`silence`)]:[]}finish(){return!this.hasSpeech||this.bufferedSamples<this.sampleRate*Nce?(this.discardBuffered(),[]):[this.emit(`final`)]}cancel(){this.chunks=[],this.bufferedSamples=0}get lastSequence(){return this.sequence-1}emit(e){let t=Pce(this.chunks),n=e===`max`?Math.min(t.length,this.sampleRate*k6):t.length,r=t.slice(0,n),i=e===`max`?Math.min(n,this.sampleRate*Mce):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&&xP(a)>=A6,this.silenceSamples=this.hasSpeech?0:a.length,c}discardBuffered(){this.segmentStartSample+=this.bufferedSamples,this.chunks=[],this.bufferedSamples=0,this.silenceSamples=0,this.hasSpeech=!1}},Lce=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 OP.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 Ice(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=SP(e.samples,this.capture.sampleRate),n=new Blob([CP(t)],{type:`audio/wav`}),r=(async()=>{await this.onSegment({sequence:e.sequence,blob:n,startedAtMs:e.startedAtMs,endedAtMs:e.endedAtMs,sha256:await Fce(n)})})().catch(e=>{this.emitState.error??=e});this.emitState.pending.add(r),r.then(()=>this.emitState.pending.delete(r))}},j6=Zj,Rce=100*1024*1024,zce=32*1024*1024;function Bce(){if(!(typeof MediaRecorder>`u`))return[`audio/webm;codecs=opus`,`audio/mp4`,`audio/ogg;codecs=opus`,`audio/webm`].find(e=>MediaRecorder.isTypeSupported(e))}function Vce(){let e=(0,Z.useRef)(Symbol(`meeting-capture`)),t=(0,Z.useRef)(0),n=(0,Z.useRef)(null),[r,i]=(0,Z.useState)(`idle`),[a,o]=(0,Z.useState)(null),[s,c]=(0,Z.useState)([]),[l,u]=(0,Z.useState)(0),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!0),h=(0,Z.useRef)(null),g=(0,Z.useRef)(null),_=(0,Z.useRef)(null),v=(0,Z.useRef)(null),y=(0,Z.useRef)(0),b=(0,Z.useRef)(new kce),x=(0,Z.useRef)(Promise.resolve()),S=(0,Z.useRef)(0),C=(0,Z.useRef)(null),w=(0,Z.useRef)(null),T=(0,Z.useCallback)(async()=>{try{c(await yce())}catch{c([])}},[]);(0,Z.useEffect)(()=>{T()},[T]);let E=(0,Z.useCallback)(()=>{w.current!=null&&window.clearInterval(w.current),w.current=null,jP(e.current),_.current?.getTracks().forEach(e=>e.stop()),_.current=null,h.current=null},[]);(0,Z.useEffect)(()=>()=>{t.current+=1,g.current?.cancel(),E()},[E]);let D=(0,Z.useCallback)(e=>{let t=v.current;if(!t||e.size===0||C.current)return;if(S.current+e.size>zce){let e=Error(`Local storage cannot keep up with recording. Recording stopped; saved chunks can be recovered.`);C.current=e,f(e.message),i(`error`),g.current?.cancel(),E();return}S.current+=e.size;let n=y.current;y.current+=Math.ceil(e.size/$j),x.current=x.current.then(async()=>{for(let r=0,i=n;r<e.size;r+=$j,i+=1){if(C.current)return;let n=v.current;if(!n||n.id!==t.id)return;let a={...n,chunkCount:i+1,durationMs:Math.max(n.durationMs,b.current.elapsedMs),updatedAt:Date.now()};if(await C6({draftId:t.id,index:i,blob:e.slice(r,r+$j),createdAt:Date.now()},a),v.current?.id!==t.id)return;v.current=a,o(a)}}).catch(e=>{C.current=e instanceof Error?e:Error(`Local recording storage failed`),f(C.current.message),i(`error`),g.current?.cancel(),E()}).finally(()=>{S.current-=e.size})},[E]),O=(0,Z.useCallback)(async()=>{if(C.current)throw C.current;let e=h.current;if(!e||e.state===`inactive`)return v.current;i(`stopping`),b.current.pause();let t=g.current?await g.current.stop().catch(()=>-1):-1;if(g.current=null,await new Promise(t=>{e.addEventListener(`stop`,()=>t(),{once:!0}),e.stop()}),await x.current,C.current)throw C.current;let n=v.current;if(!n)return E(),i(`error`),f(`The recording draft could not be recovered.`),null;let r={...n,state:`stopped`,lastSequence:t,durationMs:Math.min(j6,Math.max(1e3,b.current.elapsedMs)),updatedAt:Date.now()};return await S6(r),v.current=r,o(r),u(r.durationMs),E(),i(`stopped`),await T(),r},[T,E]),k=(0,Z.useCallback)(()=>{if(n.current)return n.current;let e=O().finally(()=>{n.current=null});return n.current=e,e},[O]),A=(0,Z.useCallback)(async n=>{if(!navigator.mediaDevices?.getUserMedia||typeof MediaRecorder>`u`)return f(`Audio recording is not supported in this environment.`),i(`error`),null;if(!AP(e.current))return f(`The microphone is being used by a voice call. End the call before recording.`),null;let r=++t.current;f(null),i(`requesting_permission`);try{await x.current,C.current=null,S.current=0;let a=await navigator.storage?.estimate?.();if(a?.quota!=null&&a.usage!=null&&a.quota-a.usage<Rce)throw Error(`Not enough local storage for a discussion recording.`);let s=await navigator.mediaDevices.getUserMedia({audio:!0});if(r!==t.current)return s.getTracks().forEach(e=>e.stop()),jP(e.current),null;_.current=s;let c=Bce(),l=c?new MediaRecorder(s,{mimeType:c,audioBitsPerSecond:64e3}):new MediaRecorder(s,{audioBitsPerSecond:64e3}),d=Date.now(),p={id:crypto.randomUUID(),...n.projectId?{projectId:n.projectId}:{},mimeType:l.mimeType||c||`audio/webm`,startedAt:d,updatedAt:d,durationMs:0,chunkCount:0,lastSequence:-1,state:`recording`};await S6(p),await navigator.storage?.persist?.().catch(()=>!1),h.current=l,v.current=p,y.current=0,b.current.reset(),b.current.resume(),x.current=Promise.resolve(),l.ondataavailable=e=>D(e.data),l.onerror=()=>{f(`The microphone stopped unexpectedly. Saved audio can be recovered.`),k()},s.getAudioTracks().forEach(e=>e.addEventListener(`ended`,()=>void k(),{once:!0})),l.start(5e3);try{g.current=await Lce.start(s,e=>n.onLiveSegment(p.id,e)),m(!0)}catch{g.current=null,m(!1)}return o(p),u(0),i(`recording`),w.current=window.setInterval(()=>{let e=b.current.elapsedMs;u(e),e>=j6&&k()},1e3),p}catch(e){return g.current?.cancel(),g.current=null,E(),f(e instanceof Error?e.message:`Microphone permission was denied.`),i(`error`),null}},[D,k,E]),j=(0,Z.useCallback)(()=>{h.current?.state===`recording`&&(b.current.pause(),u(b.current.elapsedMs),h.current.pause(),g.current?.pause(),i(`paused`))},[]),M=(0,Z.useCallback)(()=>{h.current?.state===`paused`&&(b.current.resume(),h.current.resume(),g.current?.resume(),i(`recording`))},[]),N=(0,Z.useCallback)(async e=>{let t=v.current;if(!t)return;let n={...t,serverDiscussionId:e,updatedAt:Date.now()};v.current=n,o(n),await S6(n)},[]);return{phase:r,draft:a,recoverableDrafts:s,elapsedMs:l,error:d,liveTranscriptionAvailable:p,start:A,pause:j,resume:M,stop:k,restore:(0,Z.useCallback)(async e=>{await x.current,C.current=null;let t={...e,state:`stopped`,updatedAt:Date.now()};await S6(t),v.current=t,b.current.reset(t.durationMs),o(t),u(t.durationMs),f(null),i(`stopped`)},[]),discard:(0,Z.useCallback)(async e=>{await x.current,await T6(e),v.current?.id===e&&(v.current=null,o(null),u(0),i(`idle`)),await T()},[T]),markUploadFailed:(0,Z.useCallback)(async()=>{let e=v.current;if(!e)return;let t={...e,state:`upload_failed`,updatedAt:Date.now()};await S6(t),v.current=t,o(t),await T()},[T]),reset:(0,Z.useCallback)(()=>{v.current=null,b.current.reset(),o(null),u(0),f(null),i(`idle`)},[]),setServerDiscussionId:N,refreshRecoverableDrafts:T}}function Hce(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 Uce(){let e=l(),t=At(e=>e.conversationId),n=kt(Pt(e=>e.language)).notes.discussionCapture,r=Vce(),[i,a]=(0,Z.useState)(!1),[o,c]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(),[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(!1),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),[S,C]=(0,Z.useState)(0),[w,T]=(0,Z.useState)(0),[E,D]=(0,Z.useState)(null),O=(0,Z.useRef)(null),k=(0,Z.useRef)(!1),A=(0,Z.useRef)(!1),j=(0,Z.useRef)(null),M=(0,Z.useRef)(null),N=(0,Z.useRef)(null),P=(0,Z.useRef)(null),F=(0,Z.useRef)(()=>{}),I=(0,Z.useCallback)(()=>{let e=P.current;if(e)return e;let t=M.current;if(!t)return Promise.resolve();let r=new AbortController;N.current=r;let i=Ece(t,{list:w6,upload:(e,t)=>c6(e,t.sequence,t),remove:(e,t)=>Sce(e,t.sequence),onTranscript:h,onPendingCount:T},r.signal).finally(()=>{P.current===i&&(P.current=null,N.current===r&&(N.current=null))});return P.current=i,i.then(()=>{window.setTimeout(()=>F.current(),0)}).catch(e=>{r.signal.aborted||D(e instanceof Error?e.message:n.saveFailed)}),i},[]);F.current=()=>{let e=M.current;!e||P.current||w6(e.draftId).then(e=>{T(e.length),e.length>0&&I()})};let L=(0,Z.useCallback)((e,t)=>{let n=M.current;return n&&(n.draftId!==e||n.discussionId!==t)&&(N.current?.abort(),P.current=null),M.current={draftId:e,discussionId:t},I()},[I]),R=(0,Z.useCallback)(async(e,t)=>{for(M.current={draftId:e,discussionId:t};;){await I();let t=await w6(e);if(T(t.length),t.length===0)return}},[I]),z=(0,Z.useCallback)(async(e,t)=>{await xce({draftId:e,...t,createdAt:Date.now()}),T(e=>e+1),I()},[I]),B=(0,Z.useCallback)(async(e,t)=>{c(null),d(void 0),a(!0),D(null),h(null),p(null),C(0);let i=await r.start({...e?{projectId:e}:{},onLiveSegment:z});if(!i)return;A.current=!0;let o=i6({clientRequestId:i.id,...e?{contextProjectId:e}:{},consentPolicyVersion:t,source:sa()?`electron`:`web`});j.current=o;try{let e=await o;p(e),await r.setServerDiscussionId(e.discussion.id),L(i.id,e.discussion.id)}catch(e){D(e instanceof Error?e.message:n.saveFailed)}},[L,n.saveFailed,r,z]);(0,Z.useEffect)(()=>()=>N.current?.abort(),[]);let V=(0,Z.useCallback)(async e=>{if(!(!t||r.phase===`recording`||r.phase===`paused`||g)){a(!0),D(null);try{let t=await n6();if(t.consentAcknowledgedAt==null){d(e),c(t.consentPolicyVersion);return}await B(e,t.consentPolicyVersion)}catch(e){D(e instanceof Error?e.message:n.saveFailed)}}},[B,n.saveFailed,g,r.phase,t]);(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail?.projectId;V(t)};return window.addEventListener(a3,e),()=>window.removeEventListener(a3,e)},[V]),(0,Z.useEffect)(()=>{let e=r.draft,t=f?.discussion.id;!e||!t||!e.chunkCount||g||O.current||![`recording`,`paused`].includes(r.phase)||(O.current=O6(e,t,C,!1).catch(e=>D(e instanceof Error?e.message:n.saveFailed)).finally(()=>{O.current=null}))},[r.draft,r.phase,f?.discussion.id,g,n.saveFailed]);let H=(0,Z.useCallback)(async()=>{let e=f?.discussion.id;if(!e)return;let[t,n]=await Promise.all([a6(e),s6(e)]);p(t),h(n)},[f?.discussion.id]);(0,Z.useEffect)(()=>{let e=()=>void H();return window.addEventListener(`discussion-segment-updated`,e),window.addEventListener(`discussion-updated`,e),()=>{window.removeEventListener(`discussion-segment-updated`,e),window.removeEventListener(`discussion-updated`,e)}},[H]);let U=async()=>{if(o!=null)try{await r6(o),await B(u,o)}catch(e){D(e instanceof Error?e.message:n.saveFailed)}},W=async()=>{if(!k.current){k.current=!0,A.current=!1,_(!0),D(null);try{let t=await r.stop();if(!t)throw Error(n.emptyRecording);let i=await j.current;if(!i)throw Error(n.saveFailed);y(!0),await O.current,await O6(t,i.discussion.id,C),await R(t.id,i.discussion.id).catch(()=>void 0),p(await a6(i.discussion.id)),await r.discard(t.id),M.current=null,T(0),e(`/notes/${encodeURIComponent(i.note.id)}`)}catch(e){await r.markUploadFailed(),D(e instanceof Error?e.message:n.saveFailed),a(!0)}finally{k.current=!1,_(!1),y(!1)}}};(0,Z.useEffect)(()=>{r.phase===`stopped`&&A.current&&W()});let G=()=>{f&&e(`/notes/${encodeURIComponent(f.note.id)}`)},ee=async()=>{if(f)try{p(await d6(f.discussion.id))}catch(e){D(e instanceof Error?e.message:n.saveFailed)}},te=async()=>{let e=r.recoverableDrafts[0];if(!(!e||b)){x(!0),a(!0),D(null),C(0);try{await r.restore(e);let t=await n6();if(t.consentAcknowledgedAt==null)throw Error(n.consent);let i=e.serverDiscussionId?await a6(e.serverDiscussionId).catch(()=>null):null;if(i||=await i6({clientRequestId:e.id,...e.projectId?{contextProjectId:e.projectId}:{},consentPolicyVersion:t.consentPolicyVersion,source:sa()?`electron`:`web`}),j.current=Promise.resolve(i),p(i),await r.setServerDiscussionId(i.discussion.id),i.discussion.audioAttachmentId&&[`sealing`,`organizing`,`completed`].includes(i.discussion.status)){await r.discard(e.id);return}if(i.discussion.status===`cancelled`)throw Error(`This recording was cancelled`);let a=(await w6(e.id)).reduce((e,t)=>Math.max(e,t.sequence),e.lastSequence);i.discussion.audioAttachmentId||await O6({...e,lastSequence:a},i.discussion.id,C),await R(e.id,i.discussion.id).catch(()=>void 0);let o=await a6(i.discussion.id);if(o.discussion.status===`needs_attention`){let{retryDiscussion:e}=await s(async()=>{let{retryDiscussion:e}=await Promise.resolve().then(()=>gce);return{retryDiscussion:e}},void 0);await e(i.discussion.id)}else p(o);await r.discard(e.id)}catch(e){await r.markUploadFailed(),D(e instanceof Error?e.message:n.saveFailed)}finally{x(!1)}}},ne=async()=>{let e=r.recoverableDrafts[0];e&&(e.serverDiscussionId&&await u6(e.serverDiscussionId).catch(()=>void 0),await r.discard(e.id))};if(!i)return v?(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:w>0?n.syncingSegments.replace(`{{count}}`,String(w)):S>=100?n.verifyingRecording: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:`${S}%`}})}),f?(0,$.jsx)(`div`,{className:`mt-3 flex justify-end`,children:(0,$.jsxs)(X,{variant:`ghost`,onClick:G,children:[(0,$.jsx)(zg,{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)(X,{variant:`ghost`,disabled:b,onClick:()=>void ne(),children:n.discard}),(0,$.jsx)(X,{variant:`primary`,disabled:b,onClick:()=>void te(),children:b?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)(Dt,{className:`size-4`,"aria-hidden":!0})})]}),E?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-danger`,children:E}):null,(0,$.jsxs)(X,{variant:`primary`,className:`mt-5 w-full`,onClick:()=>void U(),children:[(0,$.jsx)(Qe,{className:`size-4`,"aria-hidden":!0}),n.consentAction]})]})});let K=r.phase===`recording`||r.phase===`paused`||r.phase===`requesting_permission`,re=f?.discussion.projectId&&f.discussion.projectInferenceSource!==`context`,ie=(m?.stats.uploaded??0)+(m?.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 ${K?`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:f?.note.title??n.title}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:g?n.finalizing:r.phase===`paused`?n.paused:r.phase===`requesting_permission`?n.requesting:n.recording})]})]}),!K&&!g?(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)(Dt,{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:Hce(r.elapsedMs)}),(0,$.jsxs)(`section`,{className:`max-h-40 overflow-y-auto rounded-lg border border-edge bg-surface-inset 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}),w>0?(0,$.jsx)(`span`,{children:n.syncingSegments.replace(`{{count}}`,String(w))}):ie>0?(0,$.jsx)(`span`,{children:n.processingSegments.replace(`{{count}}`,String(ie))}):null]}),(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:m?.text||(r.liveTranscriptionAvailable?n.waitingTranscript:n.liveUnavailable)})]}),re?(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 ee(),children:[(0,$.jsx)($O,{className:`size-3`,"aria-hidden":!0}),` `,n.undo]})]}):null,g&&S>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:`${S}%`}})}):null,E||r.error?(0,$.jsx)(`p`,{className:`text-sm text-danger`,children:E??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:[f?(0,$.jsxs)(X,{variant:`ghost`,onClick:G,children:[(0,$.jsx)(zg,{className:`size-4`,"aria-hidden":!0}),n.openNote]}):null,r.phase===`recording`?(0,$.jsxs)(X,{onClick:r.pause,children:[(0,$.jsx)(et,{className:`size-4`,"aria-hidden":!0}),n.pause]}):null,r.phase===`paused`?(0,$.jsxs)(X,{onClick:r.resume,children:[(0,$.jsx)(nt,{className:`size-4`,"aria-hidden":!0}),n.resume]}):null,r.phase===`recording`||r.phase===`paused`?(0,$.jsxs)(X,{variant:`primary`,disabled:g,onClick:()=>void W(),children:[(0,$.jsx)(dE,{className:`size-4`,"aria-hidden":!0}),n.stop]}):null]})]})]})}var Wce=4e3;function M6(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e,n=typeof t.conversationId==`string`?t.conversationId.trim():``,r=typeof t.runId==`string`?t.runId.trim():``;return n&&r?{conversationId:n,runId:r}:null}function Gce(e){let t=M6(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 Kce(){let e=await Mt(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(M6).filter(e=>!!e)}function N6(e){window.dispatchEvent(new CustomEvent(`session-transcript-updated`,{detail:{key:e}}))}function qce(){let e=!1,t,n,r=new Map,i=({conversationId:e,runId:t})=>`${e}\u0000${t}`,a=({conversationId:e,runId:t},n=!1)=>{r.has(i({conversationId:e,runId:t}))||(hr(e)!==t&&wr(e,t),Yn.setResumeRunId(e,t),Kz(e),n&&window.dispatchEvent(new CustomEvent(`run-started`,{detail:{conversationId:e,runId:t}})))},o=({conversationId:e,runId:t})=>{let n=Yn.reconcileInactive(e,t),r=fr(e,t);!n&&r&&zr.getState().clearStreamingState(e),(n||r)&&(Yz(e),N6(e))},s=({conversationId:e,runId:t,status:n})=>{r.set(i({conversationId:e,runId:t}),Date.now());let a=Yn.reconcileTerminal(e,t,n),o=fr(e,t);if(!a&&o){zr.getState().clearStreamingState(e);let t=zr.getState().focusedConversationId===e;n===`error`?Jz(e,!t):n===`suspended`?Xz(e):n===`success`?qz(e,!t):Yz(e),N6(e)}},c=()=>{e||t!==void 0||Nr().length===0||(t=window.setTimeout(()=>{t=void 0,l()},Wce))},l=()=>{if(n)return n;let t=Nr();return n=Kce().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.conversationId,e.runId])),c=new Map(t.map(e=>[e.conversationId,e.runId]));for(let e of n){let t=hr(e.conversationId),n=c.get(e.conversationId);t&&t!==n&&t!==e.runId||a(e,!0)}for(let e of t)s.get(e.conversationId)!==e.runId&&o(e)}).catch(()=>{}).finally(()=>{n=void 0,c()}),n},u=e=>{let t=M6(e.detail);t&&(a(t),c())},d=e=>{let t=Gce(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 Jce(){let e=(0,Q.c)(3),t=At($ce),n;e[0]===t?n=e[1]:(n=[t],e[0]=t,e[1]=n),(0,Z.useEffect)(Qce,n);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],e[2]=r):r=e[2],(0,Z.useEffect)(Yce,r)}function Yce(){let e=Zce,t=Xce;return window.addEventListener(`online`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`online`,e),document.removeEventListener(`visibilitychange`,t)}}function Xce(){document.visibilityState===`visible`&&vi()}function Zce(){return vi()}function Qce(){return gi()}function $ce(e){return e.conversationId}function P6(e){let t=new Set;return(n,r)=>{let i=hee.safeParse(r);if(!i.success)return;let a=i.data;n!==`resources:${a.kind}s`||t.has(a.eventId)||(t.add(a.eventId),t.size>1024&&t.delete(t.values().next().value),e(a))}}function ele(e,t){let n=Array.isArray(e)?e[0]:e;return typeof n==`string`&&(n===t||n.startsWith(`${t}-`)||n.startsWith(`${t}s`))}var tle=new Set([`automation-chat-agents`,`channel-routing-agents`,`gateway-chat-agents`,`picker-agents-list`,`settings-gateway-agents`,`setup-checklist-agents`,`workflow-agents`,`workflow-route-agents`]);function nle(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&tle.has(t)}function F6(){Jce();let{mutate:e}=xee(),t=At(e=>e.conversationId);return(0,Z.useEffect)(()=>bee(),[]),(0,Z.useEffect)(()=>qce(),[]),(0,Z.useEffect)(()=>{let n=(t,n)=>{e(e=>ele(e,t)),t===`project`&&window.dispatchEvent(new CustomEvent(`project-resource-changed`,{detail:{id:n}})),t===`task`&&window.dispatchEvent(new CustomEvent(`task-updated`,{detail:{id:n}}))},r=P6(e=>{e.kind!==`note`&&e.kind!==`task`&&e.kind!==`project`||(n(e.kind,e.id),e.kind===`note`&&window.dispatchEvent(new CustomEvent(`note-updated`,{detail:{noteId:e.id}})))}),i=0,a=[],o=async()=>{let e=++i;a.forEach(e=>e()),a=[];try{let{capabilities:t}=await J(Y(`/api/capabilities/operations`));if(e!==i)return;a=[`note`,`task`,`project`].filter(e=>t.some(t=>t.id===`xopc.${e}s.list`)).map(e=>{let t=fi(`resources:${e}s`,{onEvent:e=>{e.event===`resource.changed`&&r(e.topic,e.data)},onGap:()=>n(e)},0);return n(e),t})}catch{}},s=()=>{o()};return t&&o(),window.addEventListener(`gateway-realtime-connected`,s),()=>{i++,a.forEach(e=>e()),window.removeEventListener(`gateway-realtime-connected`,s)}},[e,t]),(0,Z.useEffect)(()=>{let t=()=>{gU(),e(nle)},n=e=>{vse();let t=ti(e.detail);t===`skills`?yU():t===`agents`&&gU()},r=t=>{let n=t.detail?.topic;(n===`gateway`||n===`sessions`)&&e(()=>!0)};return window.addEventListener(`agent-catalog`,t),window.addEventListener(`config-reload`,n),window.addEventListener(`realtime-gap`,r),()=>{window.removeEventListener(`agent-catalog`,t),window.removeEventListener(`config-reload`,n),window.removeEventListener(`realtime-gap`,r)}},[e]),null}var I6=`xopc.browser-notifications.v1`,L6={enabled:!1,completed:!0,failed:!0};function R6(){try{let e=JSON.parse(localStorage.getItem(I6)??`{}`);return{enabled:typeof e.enabled==`boolean`?e.enabled:L6.enabled,completed:typeof e.completed==`boolean`?e.completed:L6.completed,failed:typeof e.failed==`boolean`?e.failed:L6.failed}}catch{return{...L6}}}function rle(e){let t={...R6(),...e};try{localStorage.setItem(I6,JSON.stringify(t))}catch{}return t}var z6=`xopc.notification-delivery.v1`,ile=200;function B6(){try{let e=JSON.parse(localStorage.getItem(z6)??`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function V6(e){return B6().includes(e)}function H6(e){try{let t=[e,...B6().filter(t=>t!==e)].slice(0,ile);localStorage.setItem(z6,JSON.stringify(t))}catch{}}function U6(e){return e.notification.systemAllowed===!1||!e.preferences.enabled?{notify:!1,reason:`disabled`}: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`}}function W6(){return!sa()&&typeof Notification<`u`&&`serviceWorker`in navigator&&window.isSecureContext}async function G6(){let e=await navigator.serviceWorker.register(`/notification-sw.js`);return await navigator.serviceWorker.ready,e}async function ale(e){if(!W6()||!U6({notification:e,preferences:R6(),permissionGranted:Notification.permission===`granted`,appFocused:document.visibilityState===`visible`&&document.hasFocus(),alreadyDelivered:V6(e.id)}).notify)return!1;try{return await(await G6()).showNotification(e.title,{body:e.body,tag:e.id,icon:`/pwa-192x192.png`,data:{route:e.route}}),H6(e.id),!0}catch{return!1}}async function ole(){if(!W6())return`unsupported`;let e=Notification.permission==="default"?await Notification.requestPermission():Notification.permission;return e===`granted`&&await G6(),e}async function sle(e,t){if(!W6()||Notification.permission!==`granted`)return!1;try{return await(await G6()).showNotification(e,{body:t,tag:`xopc-notification-test`,icon:`/pwa-192x192.png`,data:{route:`/chat/new`}}),!0}catch{return!1}}async function cle(e){let t=window.electronAPI?.system;if(!sa()||!t?.showProductNotification)return!1;let n=await t.getBehavior().catch(()=>null);if(!n||!U6({notification:e,preferences:{enabled:n.notifyEnabled,completed:!0,failed:!0},permissionGranted:!0,appFocused:!1,alreadyDelivered:V6(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`?(H6(e.id),!0):!1}var K6=`xopc.notifications.cursor.v1`,q6=`xopc.notifications.consumer.v1`;function J6(e){try{return window.localStorage.getItem(e)}catch{return null}}function Y6(e,t){try{window.localStorage.setItem(e,t)}catch{}}function lle(){return J6(K6)}function X6(e){Y6(K6,e)}function ule(){let e=J6(q6);if(e)return e;let t=globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`;return Y6(q6,t),t}async function dle(){let e=[],t=lle();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 Mt(`/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=qj.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 fle(e){await Mt(`/api/notifications/${encodeURIComponent(e)}/ack`,{method:`POST`,body:JSON.stringify({consumerId:ule(),surface:sa()?`electron`:`web`})}).catch(()=>null)}function ple(e){let t=qj.safeParse(e);return t.success?t.data:null}function mle(e,t){let n=Jj(e,t),r=e.type===`chat.failed`||e.type===`task.blocked`||e.type===`task.failed`||e.type===`task.needs_input`||e.type===`automation.failed`||e.type===`work_discovery.failed`,i=e.target.kind===`automation_run`?`automation`:e.target.kind===`scene_result`||e.target.kind===`scene_digest`?`scene`:e.target.kind===`work_discovery`?`understanding`:e.target.kind;return{systemAllowed:e.payload.deliveryMode!==`auto`&&(!e.payload.deliveryChannel||[`all`,`browser`].includes(String(e.payload.deliveryChannel))),id:e.id,title:n.localizedTitle,body:n.localizedBody??n.localizedTitle,route:Yj(e.target,`web`),target:e.target,status:r?`error`:`success`,source:i}}function Z6(){let e=(0,Q.c)(3),t=Pt(gle),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=ple(e);if(!s)return;if(r.has(s.id)){o&&X6(s.id);return}r.add(s.id);let c=mle(s,t);oi({tone:c.status===`success`?`success`:`error`,title:c.title,message:c.body,source:c.source,href:c.route,dedupeKey:c.id}),a&&(cle(c),ale(c)),o&&X6(s.id),fle(s.id)},a=()=>n||(n=dle().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=hle;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 hle(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 gle(e){return e.language}async function Q6(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 _le(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 $6(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 e8(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 vle(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 yle(e,t,n={}){let r=n.fetch??J,i=n.create?await n.create():(await new Fr().createSession({agentId:`main`})).key;return await(n.send??da)(i,t,[vle(e.markdown)]),await r(Y(`/api/sessions/${encodeURIComponent(i)}`),{method:`PATCH`,body:JSON.stringify({name:e.title,tags:[`support`],replaceTags:!0,customData:{kind:`support-investigation`,supportReportCapturedAt:e.capturedAt}})}).catch(()=>void 0),i}function ble({open:e,onOpenChange:t,seed:n}){let r=kt(Pt(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 Q6({...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 T(){if(!d)return!1;let e=await Yr(d.markdown);return S(e?r.copied:r.copyFailed),e||(i.current?.focus(),i.current?.select()),e}async function E(){d&&(d.markdown.length>6e3&&await T(),await e8($6(d,r.githubTruncated))||b(r.openFailed))}async function D(){if(!(!d||!p)){v(!0),b(null);try{let e=await yle(d,p);t(!1),window.dispatchEvent(new CustomEvent(`navigate-to-chat`,{detail:{conversationId:e}}))}catch(e){b(e instanceof Error?e.message:r.sessionFailed)}finally{v(!1)}}}return(0,$.jsx)(sn,{open:e,onOpenChange:t,children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[220] bg-scrim`}),(0,$.jsxs)(an,{className:q(`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-overlay 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)(on,{className:`text-base font-semibold text-fg`,children:r.title}),(0,$.jsx)(tn,{className:`mt-1 text-sm text-fg-muted`,children:r.subtitle})]}),(0,$.jsx)(nn,{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)(Dt,{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)(ta,{className:`h-20 w-full`}),(0,$.jsx)(ta,{className:`h-24 w-full`}),(0,$.jsx)(ta,{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)(IC,{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)(ct,{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)(IC,{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)(X,{variant:`ghost`,disabled:_,onClick:()=>{f(null),m(``)},children:r.back}),(0,$.jsxs)(X,{onClick:()=>void T(),children:[(0,$.jsx)(Yf,{className:`size-4`,"aria-hidden":!0}),r.copy]}),(0,$.jsxs)(X,{onClick:()=>_le(d),children:[(0,$.jsx)(G,{className:`size-4`,"aria-hidden":!0}),r.download]}),(0,$.jsxs)(X,{onClick:()=>void E(),children:[(0,$.jsx)(te,{className:`size-4`,"aria-hidden":!0}),r.submit]}),(0,$.jsxs)(X,{variant:`primary`,disabled:_,onClick:()=>void D(),children:[_?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(ct,{className:`size-4`,"aria-hidden":!0}),_?r.startingInvestigation:r.startInvestigation]})]}):(0,$.jsxs)(X,{variant:`primary`,disabled:h,onClick:()=>void C(),children:[h?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,h?r.collecting:r.collect]})})]})]})})}function xle(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 Sle(){let e=(0,Q.c)(6),{pathname:t}=b(),[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({conversationId:xle(t),...n}),r(!0)};return window.addEventListener(aL,e),()=>window.removeEventListener(aL,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)(ble,{open:n,onOpenChange:r,seed:i}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}var Cle=new Intl.DateTimeFormat(`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),wle=new Intl.DateTimeFormat(`en`,{dateStyle:`medium`,timeStyle:`short`});function Tle(e,t){return(t===`zh`?Cle:wle).format(new Date(e))}function t8({filePath:e,onClose:t,targetLine:n,projectId:r,conversationId:i,agentId:a}){let o=Pt(e=>e.language),s=kt(o),c=Bi(e=>e.resolved),l=ut({filePath:e,projectId:r,conversationId:i,agentId:a}),{dialogOpen:u,loading:d,result:f,error:p,pendingParams:m,createShareLink:h,confirmShareLink:g,handleOpenChange:_}=he(),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),{expanded:S,setExpanded:C}=bt(!!e,u),w=e?dt(e):``,T=[`text`,`markdown`,`code`,`html`].includes(l.descriptor.type),E=(0,Z.useCallback)(async()=>{if(e){if(await Yr(e)){y(!0),ht(`success`,s.workspace.pathCopied,void 0,{duration:2500}),window.setTimeout(()=>y(!1),2e3);return}ht(`warning`,s.clipboard.copyFailed,void 0,{duration:4e3})}},[e,s.clipboard.copyFailed,s.workspace.pathCopied]),D=(0,Z.useCallback)(()=>{l.fileResourceId&&h({fileId:l.fileResourceId,fileName:w})},[h,w,l.fileResourceId]),O=(0,Z.useCallback)(async()=>{await DV(()=>l.onOpenWithSystemApp(),s.chat.attachmentPreviewOpenLocalFailed)},[s.chat.attachmentPreviewOpenLocalFailed,l.onOpenWithSystemApp]),k=(0,Z.useCallback)(async()=>{await DV(()=>l.onChooseOpenWithApp(),s.workspace.openFileFailed)},[s.workspace.openFileFailed,l.onChooseOpenWithApp]),A=(0,Z.useCallback)(async e=>{await DV(()=>l.onOpenWithRecentApp(e),s.workspace.openFileFailed)},[s.workspace.openFileFailed,l.onOpenWithRecentApp]),j=(0,Z.useCallback)(async()=>{await DV(()=>l.onRevealInFolder(),s.workspace.revealFileFailed)},[s.workspace.revealFileFailed,l.onRevealInFolder]),M=(0,Z.useCallback)(()=>{C(!1),t()},[t]),N=!!(e&&!l.loading&&!l.loadError),P={onDownload:()=>void l.onDownload(),canDownload:l.canDownload,onOpenWithSystemApp:()=>void O(),canOpenWithSystemApp:l.canOpenWithSystemApp,onChooseOpenWithApp:()=>void l.onChooseOpenWithApp(),canChooseOpenWithApp:l.canChooseOpenWithApp};if(!e)return null;let F=(0,$.jsx)(`div`,{className:q(`flex h-full min-h-0 flex-col bg-surface-panel`,S&&`fixed inset-0 z-[65] h-[100dvh] w-screen`,S&&de()),children:(0,$.jsx)(gt,{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,`: `,Tle(l.mtimeMs,o),n?` · Line ${n}`:``]}):null,l.loading?(0,$.jsx)(ta,{className:`h-3.5 w-32`}):null,T&&l.sourceEditMode&&l.saveStatus!==`idle`?(0,$.jsx)(`span`,{className:q(`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:N?()=>C(e=>!e):void 0,onClose:M,edit:T?{active:l.sourceEditMode,onToggle:()=>l.setSourceEditMode(e=>!e)}:void 0,wordWrap:T&&l.sourceEditMode?{active:b,onToggle:()=>x(e=>!e)}:void 0,share:{onClick:D,loading:d,disabled:!l.fileResourceId||l.loading||!!l.loadError},openWithSystemApp:l.canOpenWithSystemApp?{onClick:()=>void O()}:void 0,chooseApp:l.canChooseOpenWithApp?{onClick:()=>void k()}:void 0,recommendedApps:l.recommendedOpenWithApps,recentApps:l.recentOpenWithApps,onOpenWithApp:e=>void A(e),onRevealInFolder:l.canRevealInFolder?()=>void j():void 0,copyPath:{copied:v,onClick:()=>void E()}},chat:{createFile:l.createAttachmentFile,projectId:r,conversationId: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:{sourceEditMode:l.sourceEditMode,onSourceChange:l.onSourceChange,sourceWordWrap:b,isDark:c===`dark`},actions:P})});return(0,$.jsxs)($.Fragment,{children:[S?(0,Ma.createPortal)(F,document.body):F,(0,$.jsx)(wt,{open:u,onOpenChange:_,loading:d,error:p,result:f,pendingParams:m,onConfirm:e=>void g(e)})]})}var n8=(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,conversationId:i}=n,a=r===void 0?!1:r,{pathname:o,search:s}=b(),{conversationId:c}=p(),l=WV(Ele),u=GV(Dle),d;t[2]!==i||t[3]!==c||t[4]!==o||t[5]!==u||t[6]!==l?(d=u??i??l??(o.startsWith(`/chat`)&&c&&c!==`new`?decodeURIComponent(c):void 0),t[2]=i,t[3]=c,t[4]=o,t[5]=u,t[6]=l,t[7]=d):d=t[7];let f=d,m=GV(Ole),h=GV(kle),g=GV(Ale),_;t[8]!==f||t[9]!==o||t[10]!==g||t[11]!==s?(_=g??(!f&&o.startsWith(`/chat`)?new URLSearchParams(s).get(`projectId`):null),t[8]=f,t[9]=o,t[10]=g,t[11]=s,t[12]=_):_=t[12];let v=_,y=GV(jle),x=IV(Mle),S,C;t[13]!==a||t[14]!==o||t[15]!==y||t[16]!==l?(S=()=>{!a&&!l&&!o.startsWith(`/chat`)&&y(null)},C=[a,o,y,l],t[13]=a,t[14]=o,t[15]=y,t[16]=l,t[17]=S,t[18]=C):(S=t[17],C=t[18]),(0,Z.useEffect)(S,C);let w,T;if(t[19]!==m||t[20]!==y?(w=()=>{if(!m)return;let e=e=>{e.key!==`Escape`||e.defaultPrevented||(y(null),e.stopPropagation())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},T=[m,y],t[19]=m,t[20]=y,t[21]=w,t[22]=T):(w=t[21],T=t[22]),(0,Z.useEffect)(w,T),!m)return null;let E=v??void 0,D;t[23]===x?D=t[24]:(D=x.trim()||void 0,t[23]=x,t[24]=D);let O;t[25]===y?O=t[26]:(O=()=>y(null),t[25]=y,t[26]=O);let k;return t[27]!==f||t[28]!==h||t[29]!==m||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 bg-surface-panel`,children:(0,$.jsx)(t8,{filePath:m,targetLine:h,projectId:E,conversationId:f,agentId:D,onClose:O})}),t[27]=f,t[28]=h,t[29]=m,t[30]=D,t[31]=O,t[32]=E,t[33]=k):k=t[33],k});function Ele(e){return e.conversationIdOverride}function Dle(e){return e.conversationId}function Ole(e){return e.path}function kle(e){return e.line}function Ale(e){return e.projectId}function jle(e){return e.setPath}function Mle(e){return e.agentId}var r8=(0,Z.createContext)({target:null,register:()=>()=>{}});function Nle(e){let t=(0,Q.c)(9),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0];let[i,a]=(0,Z.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>(a(t=>[...t,e]),()=>a(t=>t.filter(t=>t!==e))),t[1]=o):o=t[1];let s=o,c;t[2]===i?c=t[3]:(c=i.at(-1)??null,t[2]=i,t[3]=c);let l;t[4]===c?l=t[5]:(l={target:c,register:s},t[4]=c,t[5]=l);let u=l,d;return t[6]!==n||t[7]!==u?(d=(0,$.jsx)(r8,{value:u,children:n}),t[6]=n,t[7]=u,t[8]=d):d=t[8],d}function Ple(){let e=(0,Q.c)(2),{register:t}=(0,Z.useContext)(r8),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(`div`,{ref:t,className:`min-w-0 shrink-0`}),e[0]=t,e[1]=n),n}function Fle(){return(0,Z.useContext)(r8).target}function i8(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e)):0;return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`}var a8=`inline-flex size-11 shrink-0 items-center justify-center rounded-full text-fg hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent motion-safe:transition-colors`;function Ile(){let e=(0,Q.c)(29),t=Pt(Rle)===`zh`,n=fX(),r=Fle(),[i,a]=(0,Z.useState)(!1),o=(0,Z.useId)(),s=n.source&&n.status!==`idle`,c=n.status===`preparing`,l=n.status===`playing`,u=n.status===`error`,d=n.status===`ended`,f=c?t?`正在准备语音`:`Preparing audio`:u?t?`朗读失败,请重试`:`Unable to play. Try again`:d?t?`播放完毕`:`Finished`:l?t?`正在朗读`:`Reading aloud`:t?`已暂停`:`Paused`,p;e[0]===n.source?p=e[1]:(p=e=>{let t=n.source?.targetId?document.getElementById(n.source.targetId):null;t&&(e.preventDefault(),t.scrollIntoView({behavior:`smooth`,block:`center`}))},e[0]=n.source,e[1]=p);let m=p,h;e[2]!==o||e[3]!==r||e[4]!==d||e[5]!==i||e[6]!==u||e[7]!==l||e[8]!==c||e[9]!==m||e[10]!==n||e[11]!==f||e[12]!==s||e[13]!==t?(h=s?(0,$.jsx)(`section`,{"aria-label":t?`语音播报`:`Read aloud`,className:q(`shrink-0`,r?`pb-2`:`px-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] pt-2`),children:(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl overflow-hidden rounded-xl border border-edge bg-surface-panel`,children:[(0,$.jsxs)(`div`,{className:`flex min-h-16 items-center gap-1 p-2`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>a(!i),"aria-expanded":i,"aria-controls":o,className:`flex min-h-11 min-w-0 flex-1 items-center gap-2 rounded-lg px-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:n.source?.title}),(0,$.jsxs)(`span`,{className:`block text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{role:`status`,children:f}),!u&&!c?(0,$.jsxs)(`span`,{className:`tabular-nums`,children:[` · `,i8(n.currentTime)]}):null]})]}),(0,$.jsx)(jd,{"aria-hidden":!0,className:q(`size-4 shrink-0 text-fg-muted`,i&&`rotate-180`)})]}),(0,$.jsx)(`button`,{type:`button`,onClick:l?n.pause:n.resume,disabled:c,className:q(a8,`disabled:opacity-50`),"aria-label":d?t?`重新播放`:`Replay`:u?t?`重试朗读`:`Retry reading`:l?t?`暂停朗读`:`Pause reading`:t?`继续朗读`:`Resume reading`,children:c?(0,$.jsx)(ta,{className:`size-5 rounded-full`}):u?(0,$.jsx)(it,{className:`size-5`,"aria-hidden":!0}):l?(0,$.jsx)(et,{className:`size-5`,"aria-hidden":!0}):(0,$.jsx)(nt,{className:`size-5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,onClick:n.stop,className:a8,"aria-label":t?`停止朗读`:`Stop reading`,children:(0,$.jsx)(Dt,{className:`size-5`,"aria-hidden":!0})})]}),n.durationComplete&&!i?(0,$.jsx)(`div`,{className:`h-0.5 bg-surface-active`,"aria-hidden":!0,children:(0,$.jsx)(`div`,{className:`h-full bg-accent`,style:{width:`${Math.min(100,n.currentTime/n.duration*100)}%`}})}):null,i?(0,$.jsxs)(`div`,{id:o,className:`space-y-3 border-t border-edge-subtle p-4`,children:[n.durationComplete?(0,$.jsx)(zle,{duration:n.duration,currentTime:n.currentTime,disabled:c,onSeek:n.seek,label:t?`播放进度`:`Playback position`},`${n.source?.type}:${n.source?.id}`):null,n.currentText?(0,$.jsx)(`p`,{className:`max-h-28 overflow-y-auto overscroll-contain whitespace-pre-wrap break-words text-sm text-fg-muted`,children:n.currentText}):null,n.source?.href?(0,$.jsx)(`a`,{href:n.source.href,onClick:m,className:`inline-flex min-h-11 items-center rounded-lg text-sm text-accent-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:t?`返回来源`:`Return to source`}):null,u?(0,$.jsx)(`p`,{role:`alert`,className:`break-words text-sm text-fg-muted`,children:n.error}):null,(0,$.jsx)(F,{contentClassName:`[&_button]:min-h-11`,value:String(n.rate),allowEmpty:!1,placeholder:`1×`,ariaLabel:t?`播放速度`:`Playback speed`,options:[.75,1,1.25,1.5,2].map(Lle),triggerClassName:`min-h-11 w-28`,onChange:e=>n.setRate(Number(e))})]}):null]})}):null,e[2]=o,e[3]=r,e[4]=d,e[5]=i,e[6]=u,e[7]=l,e[8]=c,e[9]=m,e[10]=n,e[11]=f,e[12]=s,e[13]=t,e[14]=h):h=e[14];let g=h,_;e[15]!==r||e[16]!==g?(_=r?(0,Ma.createPortal)(g,r):g,e[15]=r,e[16]=g,e[17]=_):_=e[17];let v=t?`使用在线朗读`:`Use online read aloud`,y=t?`朗读默认使用 Microsoft Edge 在线语音服务,待朗读文本会发送至 Microsoft 进行语音合成。`:`Read aloud uses Microsoft Edge online speech by default. The text will be sent to Microsoft for speech synthesis.`,b=t?`同意并朗读`:`Agree and read`,x=t?`取消`:`Cancel`,S;e[18]!==n.acceptConsent||e[19]!==n.consentRequired||e[20]!==n.declineConsent||e[21]!==v||e[22]!==y||e[23]!==b||e[24]!==x?(S=(0,$.jsx)(sV,{open:n.consentRequired,title:v,description:y,confirmLabel:b,cancelLabel:x,onConfirm:n.acceptConsent,onCancel:n.declineConsent}),e[18]=n.acceptConsent,e[19]=n.consentRequired,e[20]=n.declineConsent,e[21]=v,e[22]=y,e[23]=b,e[24]=x,e[25]=S):S=e[25];let C;return e[26]!==_||e[27]!==S?(C=(0,$.jsxs)($.Fragment,{children:[_,S]}),e[26]=_,e[27]=S,e[28]=C):C=e[28],C}function Lle(e){return{value:String(e),label:`${e}×`}}function Rle(e){return e.language}function zle(e){let t=(0,Q.c)(25),{duration:n,currentTime:r,disabled:i,onSeek:a,label:o}=e,[s,c]=(0,Z.useState)(null),l;t[0]!==a||t[1]!==s?(l=()=>{s!==null&&(a(s),c(null))},t[0]=a,t[1]=s,t[2]=l):l=t[2];let u=l,d;t[3]===o?d=t[4]:(d=(0,$.jsx)(`span`,{children:o}),t[3]=o,t[4]=d);let f=s??r,p;t[5]===f?p=t[6]:(p=i8(f),t[5]=f,t[6]=p);let m;t[7]===n?m=t[8]:(m=i8(n),t[7]=n,t[8]=m);let h;t[9]!==p||t[10]!==m?(h=(0,$.jsxs)(`span`,{className:`tabular-nums`,children:[p,` / `,m]}),t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]!==d||t[13]!==h?(g=(0,$.jsxs)(`span`,{className:`flex justify-between gap-3`,children:[d,h]}),t[12]=d,t[13]=h,t[14]=g):g=t[14];let _=s??Math.min(r,n),v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>c(Number(e.target.value)),t[15]=v):v=t[15];let y;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>c(null),t[16]=y):y=t[16];let b;t[17]!==u||t[18]!==i||t[19]!==n||t[20]!==_?(b=(0,$.jsx)(`input`,{type:`range`,min:0,max:n,step:.1,value:_,disabled:i,onChange:v,onPointerUp:u,onKeyUp:u,onBlur:u,onPointerCancel:y,className:`block h-11 w-full accent-accent`}),t[17]=u,t[18]=i,t[19]=n,t[20]=_,t[21]=b):b=t[21];let x;return t[22]!==b||t[23]!==g?(x=(0,$.jsxs)(`label`,{className:`block text-xs text-fg-muted`,children:[g,b]}),t[22]=b,t[23]=g,t[24]=x):x=t[24],x}function Ble(){let e=(0,Q.c)(11),t=l(),n=At(Hle),r=XU(Vle),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(Q3,e),()=>window.removeEventListener(Q3,e)},s=[],e[0]=o,e[1]=s):(o=e[0],s=e[1]),(0,Z.useEffect)(o,s);let c,u;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}e6(`xopc-voice-input-toggle`,document.querySelector(`[data-voice-input-scope="note"]`)?`note`:`chat`)||(e===`press`?(t6(),t(`/chat`)):sce())});return()=>{a.current=!1,r()}},u=[t,n],e[2]=t,e[3]=n,e[4]=c,e[5]=u):(c=e[4],u=e[5]),(0,Z.useEffect)(c,u);let d,f;return e[6]!==t||e[7]!==r||e[8]!==n?(d=()=>{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`){e6(`xopc-voice-input-cancel`,a)&&(e.preventDefault(),e.stopPropagation());return}JU(e,r)&&(e.preventDefault(),e.stopPropagation(),n&&(e6(`xopc-voice-input-toggle`,a)||(t6(),t(`/chat`))))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},f=[t,r,n],e[6]=t,e[7]=r,e[8]=n,e[9]=d,e[10]=f):(d=e[9],f=e[10]),(0,Z.useEffect)(d,f),null}function Vle(e){return e.shortcut}function Hle(e){return e.conversationId}var o8=`inline-flex items-center gap-px rounded-pill border border-edge bg-surface-hover p-1 dark:border-edge`,s8=`touch-target 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`,c8=`bg-surface-panel shadow-sm dark:bg-surface-panel dark:shadow-sm dark:ring-1 dark:ring-edge-strong/40`,Ule=[{value:`en`,label:`EN`},{value:`zh`,label:`中文`}];function Wle(e){let t=(0,Q.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=Ule.map(e=>{let t=e.value===n;return(0,$.jsx)(`button`,{type:`button`,"aria-pressed":t,className:q(s8,`h-9 min-w-11 px-2`,t?q(c8,`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:o8,role:`group`,"aria-label":`Language / 语言`,children:i}),t[3]=i,t[4]=a),a}var Gle=new Set([`anthropic`,`deepseek`,`google`,`kimi-coding`,`minimax`,`openai`,`xopc-cloud`]);function Kle(e){return Gle.has(e)}function l8(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=q(`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 qle(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)(l8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Jle(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)(l8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function u8(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)(l8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Yle(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)(l8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Xle(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)(l8,{className:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}function Zle(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)(l8,{className:n,...r,children:[i,a]}),t[5]=n,t[6]=r,t[7]=o):o=t[7],o}function Qle(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)(YP,{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)(qle,{...a}),t[4]=a,t[5]=e),e}case`minimax`:{let e;return t[6]===a?e=t[7]:(e=(0,$.jsx)(Jle,{...a}),t[6]=a,t[7]=e),e}case`kimi-coding`:{let e;return t[8]===a?e=t[9]:(e=(0,$.jsx)(u8,{...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)(u8,{...a}),t[10]=a,t[11]=e),e}case`openai`:{let e;return t[12]===a?e=t[13]:(e=(0,$.jsx)(Yle,{...a}),t[12]=a,t[13]=e),e}case`anthropic`:{let e;return t[14]===a?e=t[15]:(e=(0,$.jsx)(Xle,{...a}),t[14]=a,t[15]=e),e}case`google`:{let e;return t[16]===a?e=t[17]:(e=(0,$.jsx)(Zle,{...a}),t[16]=a,t[17]=e),e}default:{let e;t[18]===r?e=t[19]:(e=q(`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}}}function $le(e){return zi(e)}async function d8(){return(await J(Y(`/api/providers/meta`))).payload?.providers??[]}function eue(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 tue(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 f8(e){await J(Y(`/api/config`),{method:`PATCH`,body:JSON.stringify({providers:e})}),await Oa()}async function nue(e){await J(Y(`/api/providers/${encodeURIComponent(e)}/key`),{method:`DELETE`}),await Oa()}async function rue(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 p8={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.`},m8=[{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}],h8=new Map([p8,...m8].map((e,t)=>[e.id,t]));function iue(e,t){let n=e?.filter(e=>e.onboardingFeatured&&Kle(e.id)),r=n?.length?n:m8;return(t?[e?.find(e=>e.id===`xopc-cloud`)??p8,...r.filter(e=>e.id!==`google`&&e.id!==`xopc-cloud`)]:r).slice().sort((e,t)=>(h8.get(e.id)??999)-(h8.get(t.id)??999))[0]}function aue(e){let t=e.recommendedModels?.map(e=>e.name||e.id).filter(Boolean).slice(0,2);return t?.length?t.join(`, `):e.hint}function oue(e){let t=(0,Q.c)(24),{onSelect:n,onBrowseProviders:r,disabled:i,browseDisabled:a}=e,o=i===void 0?!1:i,s=a===void 0?!1:a,c=Pt(sue),l;t[0]===c?l=t[1]:(l=kt(c),t[0]=c,t[1]=l);let u=l.onboarding.providerRecommended,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1},t[2]=d):d=t[2];let{data:f}=Xr(`onboarding-provider-meta`,d8,d),p;if(t[3]!==f||t[4]!==o||t[5]!==n||t[6]!==u){let e=iue(f,sa());p=e?(0,$.jsxs)(`button`,{type:`button`,disabled:o,onClick:()=>n(e.id),className:`group flex w-full items-center gap-3.5 rounded-xl border border-accent/30 bg-accent-soft/45 p-3.5 text-left transition-[border-color,background-color] duration-200 hover:border-accent/55 hover:bg-accent-soft/65 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none`,children:[(0,$.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-[10px] border border-edge-subtle bg-surface-base/70`,children:(0,$.jsx)(Qle,{providerId:e.id,className:`size-7`})}),(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:e.name}),(0,$.jsx)(`span`,{className:`rounded-full bg-accent px-2 py-0.5 text-[10px] font-semibold text-on-accent`,children:u})]}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:aue(e)})]}),(0,$.jsx)(T,{className:`size-4.5 shrink-0 text-accent-fg/80`,"aria-hidden":!0})]}):null,t[3]=f,t[4]=o,t[5]=n,t[6]=u,t[7]=p}else p=t[7];let m=o||s,h;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-[10px] border border-edge-subtle bg-surface-panel text-fg-muted`,children:(0,$.jsx)(iv,{className:`size-5`,"aria-hidden":!0})}),t[8]=h):h=t[8];let g=c===`zh`?`连接我自己的模型服务`:`Connect my own model service`,_;t[9]===g?_=t[10]:(_=(0,$.jsx)(`span`,{className:`block text-base font-semibold text-fg`,children:g}),t[9]=g,t[10]=_);let v=s&&!o?c===`zh`?`正在加载可用的模型服务…`:`Loading available model services…`:c===`zh`?`使用自己的账号、API Key、本地模型或私有接口。`:`Use your own account, API key, local model, or private endpoint.`,y;t[11]===v?y=t[12]:(y=(0,$.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:v}),t[11]=v,t[12]=y);let b;t[13]!==y||t[14]!==_?(b=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,y]}),t[13]=y,t[14]=_,t[15]=b):b=t[15];let x;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(T,{className:`size-4.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[16]=x):x=t[16];let S;t[17]!==r||t[18]!==b||t[19]!==m?(S=(0,$.jsxs)(`button`,{type:`button`,disabled:m,onClick:r,className:`mt-3 flex min-h-16 w-full items-center gap-3.5 rounded-xl border border-edge bg-surface-base/65 p-3.5 text-left transition-[border-color,background-color] duration-200 hover:border-edge-strong hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none`,children:[h,b,x]}),t[17]=r,t[18]=b,t[19]=m,t[20]=S):S=t[20];let C;return t[21]!==S||t[22]!==p?(C=(0,$.jsxs)(`div`,{children:[p,S]}),t[21]=S,t[22]=p,t[23]=C):C=t[23],C}function sue(e){return e.language}function g8({providerId:e,displayName:t,connected:n,onConnected:r}){let i=Pt(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=sa();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 ka(e)).sessionId;!d.current;){if(await new Promise(e=>window.setTimeout(e,1e3)),d.current)return;let e=await ja(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 Oa(),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&&Aa(n).catch(()=>{})}},m=n||a===`connected`;return(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-xl border border-edge bg-surface-inset 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-lg bg-surface-active text-fg-muted`,children:(0,$.jsx)(U,{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)(R,{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)(X,{type:`button`,variant:m?`secondary`:`primary`,disabled:a===`waiting`,onClick:()=>void p(),children:[a===`waiting`?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,a===`waiting`?i?`等待授权…`:`Waiting…`:m?i?`重新授权`:`Reauthorize`:i?`授权`:`Authorize`]})]})}function _8(){if(sa())return null;let e=window.open(`about:blank`,`xopc-oauth`);return e&&(e.opener=null),e}async function v8(e,t){return sa()?(await window.electronAPI?.shell?.openExternalUrl(e))?.ok===!0:!t||t.closed?!1:(t.location.replace(e),!0)}function y8(e){e&&!e.closed&&e.close()}function b8(e,t){return e===`single`?t.getApiKey:e===`intl`?t.getApiKeyIntl:t.getApiKeyCn}var x8={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 S8(e,t){let n=x8[e];return n&&n.apiKeyUrl?[{href:n.apiKeyUrl,kind:`single`}]:[]}var C8=[`common`,`domestic`,`specialty`,`enterprise`,`oauth`,`extension`];function cue(e){let t=new Map;for(let e of C8)t.set(e,[]);for(let n of e){let e=n.category||`specialty`,r=t.get(e)??[];r.push(n),t.set(e,r)}return t}var lue=[{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 w8(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 T8(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 E8(){let e=await Mt(Y(`/api/models-json`)),t=await e.json().catch(()=>({}));if(!e.ok||!t.ok||!t.payload)throw Error(w8(t)||`HTTP ${e.status}`);return{...t.payload,config:T8(t.payload.config)}}async function D8(e){let t=await Mt(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(w8(n)||`HTTP ${t.status}`);return await Oa(),n.payload}async function uue(e){let t=await Mt(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(w8(n)||`HTTP ${t.status}`);return n.payload.models}function due(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}}var O8={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`]}]}}},k8=Object.entries(O8).map(([e,t])=>({key:e,...t}));function A8(e){return O8[e]?.providerId??e}function fue(e){return k8.find(t=>t.providerId===e)?.key}var pue=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 j8(e){if(pue.has(e))return fue(e)}function mue(e,t){let n=j8(e);if(!n)return;let r=O8[n];if(r)return{providerId:r.providerId,config:{...r.config,apiKey:t?.trim()||r.config.apiKey,models:r.config.models?.map(e=>({...e}))}}}var hue=[{value:`text`,labelKey:`inputTextOnly`},{value:`text,image`,labelKey:`inputTextVision`}];function gue(){return q(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,Ri,`dark:border-edge`)}function M8(){return q(Ii,Ni)}function _ue(e){return(e.input||[`text`]).includes(`image`)?`text,image`:`text`}function vue(e){return e===`text,image`?[`text`,`image`]:[`text`]}function N8(e,t){return e.filter(e=>e.id.startsWith(`${t.providerId}/`)&&!e.computerUse&&(!t.modelIds||t.modelIds.includes(e.id.slice(t.providerId.length+1))))}function P8({target:e,zh:t,onDone:n}){let[r,i]=(0,Z.useState)(null),[a,o]=(0,Z.useState)(``),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(!0),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(``),[h,g]=(0,Z.useState)(0),[_,v]=(0,Z.useState)(!1),[y,b]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{let t=!0;return Promise.all([Ti(!0),H3()]).then(([n,r])=>{if(!t)return;let a=N8(n,e);i({models:a,defaults:r}),o(a.length===1?a[0].id:``);let s=a.filter(e=>e.vision);c(s.length===1?s[0].id:``),m(``)}).catch(e=>{t&&m(e instanceof Error?e.message:String(e))}),()=>{t=!1}},[e,h]);let x=r?.defaults.defaults.models.chat.primary??``,S=r?.models.filter(e=>e.vision)??[],C=r?.defaults.defaults.models.imageUnderstanding?.primary??``,w=!!(a&&a===x),T=S.some(e=>e.id!==C),E=y||w&&!T||r!==null&&r.models.length===0,D=!!(r&&(l||d)&&(!l||a)&&(!d||s)&&(l&&a!==x||d&&s!==C)),O=async()=>{if(!(_||!r||!D)){v(!0),m(``);try{let n=await H3(),o=N8(await Ti(!0),e);if(l&&!o.some(e=>e.id===a)||d&&!o.some(e=>e.id===s&&e.vision))throw Error(t?`所选模型已不可用,请重新选择。`:`The selected model is no longer available. Choose another model.`);let c=await U3({...n.defaults,models:{...n.defaults.models,...l?{chat:{...n.defaults.models.chat,primary:a}}:{},...d?{imageUnderstanding:{...n.defaults.models.imageUnderstanding,primary:s,fallbacks:n.defaults.models.imageUnderstanding?.fallbacks??[]}}:{}}});b(!0),i({...r,defaults:c}),Zr(`settings-agent-defaults`,c,!1).catch(()=>{})}catch(e){m(e instanceof Error?e.message:String(e))}finally{v(!1)}}};return(0,Z.useEffect)(()=>{if(!y)return;let e=window.setTimeout(n,600);return()=>window.clearTimeout(e)},[y,n]),(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-4 px-5 py-5`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`p`,{className:`mb-3 flex items-center gap-2 text-sm text-fg-muted`,children:[(0,$.jsx)(R,{className:`size-4`,"aria-hidden":!0}),t?`模型配置完成`:`Model configuration saved`]}),(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:y?d?t?`全局默认模型配置已更新`:`Global default models updated`:t?`全局默认对话模型已更新`:`Global default conversation model updated`:w&&!T?t?`已是全局默认对话模型`:`Already the global default conversation model`:E?t?`配置已保存`:`Configuration saved`:S.length>0?t?`设置全局默认模型`:`Set global default models`:x?t?`将新模型设为全局默认对话模型?`:`Use a new model as the global default?`:t?`设置默认对话模型`:`Set the default conversation model`}),(0,$.jsx)(tn,{className:`mt-2 text-sm text-fg-muted`,children:t?`继承全局设置的智能体和未配置专用模型的任务将使用它。已单独指定模型的智能体和会话继续使用各自设置。`:`Agents inheriting global settings and tasks without a dedicated model use this default. Agents and conversations with their own model keep that selection.`})]}),(0,$.jsx)(X,{variant:`ghost`,className:`shrink-0 p-1.5`,"aria-label":t?`关闭`:`Close`,onClick:n,children:(0,$.jsx)(Dt,{className:`size-4`})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4`,children:[!r&&!p?(0,$.jsx)(ta,{className:`h-40 w-full rounded-xl`}):null,r&&r.models.length>0?(0,$.jsxs)($.Fragment,{children:[!y&&S.length>0?(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[(0,$.jsx)(`input`,{type:`checkbox`,className:`ui-checkbox`,checked:l,disabled:_,onChange:e=>{u(e.target.checked),m(``)}}),t?`更新默认对话模型`:`Update default conversation model`]}):null,(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:t?`当前默认`:`Current default`}),(0,$.jsx)(`p`,{className:`mt-2 break-all text-sm text-fg`,children:x||(t?`尚未设置`:`Not set`)})]}),y?null:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:t?`新的默认`:`New default`}),r.models.length===1?(0,$.jsx)(`p`,{className:`break-all text-sm text-fg`,children:a}):(0,$.jsx)(FU,{value:a,models:r.models,disabled:_||!l,placeholder:t?`选择默认模型`:`Select a default model`,searchPlaceholder:t?`搜索模型`:`Search models`,noMatches:t?`没有匹配的模型`:`No matching models`,ariaLabel:t?`新的默认模型`:`New default model`,className:`w-full`,contentAlign:`start`,onChange:e=>{o(e),m(``)}})]})]}):null,!y&&S.length>0?(0,$.jsxs)(`section`,{className:`space-y-3 rounded-xl border border-edge bg-surface-inset p-4`,children:[(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[(0,$.jsx)(`input`,{type:`checkbox`,className:`ui-checkbox`,checked:d,disabled:_,onChange:e=>{f(e.target.checked),m(``)}}),t?`同时设置图片理解模型`:`Also set an image understanding model`]}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:t?`用于图片和视觉内容理解。仅列出本次接入中支持图片理解的模型。`:`Used for image and visual understanding. Only vision models from this addition are listed.`}),(0,$.jsxs)(`p`,{className:`break-all text-xs text-fg-muted`,children:[t?`当前配置:`:`Current selection: `,C||(t?`未设置`:`Not set`)]}),d?(0,$.jsx)(FU,{value:s,models:S,disabled:_,placeholder:t?`选择图片理解模型`:`Select an image understanding model`,searchPlaceholder:t?`搜索图片理解模型`:`Search vision models`,noMatches:t?`没有可用的图片理解模型`:`No vision models available`,ariaLabel:t?`图片理解模型`:`Image understanding model`,className:`w-full`,contentAlign:`start`,onChange:e=>{c(e),m(``)}}):null]}):null,r?.models.length===0?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:t?`此服务商暂无可设为默认的对话模型,可稍后在全局默认配置中设置。`:`This provider has no conversation models to select yet. You can set the default later in global settings.`}):null,p?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm text-danger`,children:[(0,$.jsx)(`p`,{children:t?`模型已保存,但默认模型设置未完成。`:`The model is saved, but default model setup is incomplete.`}),(0,$.jsx)(`p`,{className:`break-words`,children:p}),r?null:(0,$.jsx)(X,{variant:`secondary`,onClick:()=>{m(``),g(e=>e+1)},children:t?`重试`:`Retry`})]}):null]}),(0,$.jsx)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:E?(0,$.jsx)(X,{variant:`primary`,onClick:n,children:t?`完成`:`Done`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(X,{variant:`ghost`,onClick:n,children:t?`暂不更改`:`Keep current default`}),(0,$.jsxs)(X,{variant:`primary`,disabled:!D||_,onClick:()=>void O(),children:[_?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,_?t?`保存中…`:`Saving…`:p&&r?t?`重试`:`Retry`:d?t?`保存默认配置`:`Save default models`:x?t?`设为全局默认`:`Set as global default`:t?`设为默认并完成`:`Set default and finish`]})]})})]})}var F8=`xopc-cloud`;function I8(e){let t=(0,Q.c)(25),{open:n,onOpenChange:r,builtinRows:i,customConfig:a,labels:o,language:s,onSaved:c}=e,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={type:`pick`},t[0]=l):l=t[0];let[u,d]=(0,Z.useState)(l),[f,p]=(0,Z.useState)(``),m=(0,Z.useRef)(0),h;t[1]===r?h=t[2]:(h=e=>{e||window.setTimeout(()=>{d({type:`pick`}),p(``),m.current=0},200),r(e)},t[1]=r,t[2]=h);let g=h,_;t[3]!==i||t[4]!==g||t[5]!==c?(_=(e,t)=>{c(e);let n=i.some(t=>t.id===e&&t.configured);t?.length===0||t===void 0&&n?g(!1):d({type:`success`,target:{providerId:e,modelIds:t}})},t[3]=i,t[4]=g,t[5]=c,t[6]=_):_=t[6];let v=_,y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)($t,{className:q(`xopc-dialog-overlay fixed inset-0 bg-scrim`,ia)}),t[7]=y):y=t[7];let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=q(`xopc-dialog-content fixed left-1/2 top-1/2 flex h-[min(40rem,calc(100vh-3rem))] w-[min(40rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay`,na),t[8]=b):b=t[8];let x;t[9]!==i||t[10]!==a||t[11]!==g||t[12]!==v||t[13]!==o||t[14]!==s||t[15]!==f||t[16]!==u.presetKey||t[17]!==u.providerId||t[18]!==u.target||t[19]!==u.type?(x=(0,$.jsxs)(rn,{children:[y,(0,$.jsx)(an,{className:b,children:u.type===`success`?(0,$.jsx)(P8,{target:u.target,zh:s===`zh`,onDone:()=>g(!1)}):u.type===`pick`?(0,$.jsx)(yue,{builtinRows:i,searchQuery:f,onSearchChange:p,labels:o,language:s,scrollTopRef:m,onPickBuiltin:e=>{let t=j8(e);d(t?{type:`custom`,presetKey:t}:{type:`builtin`,providerId:e})},onPickCustom:()=>d({type:`custom`})}):u.type===`builtin`?(0,$.jsx)(Cue,{providerId:u.providerId,builtinRows:i,labels:o,language:s,onBack:()=>d({type:`pick`}),onSaved:()=>v(u.providerId)}):(0,$.jsx)(Tue,{initialPresetKey:u.presetKey,customConfig:a,labels:o,language:s,onBack:()=>d({type:`pick`}),onSaved:v})})]}),t[9]=i,t[10]=a,t[11]=g,t[12]=v,t[13]=o,t[14]=s,t[15]=f,t[16]=u.presetKey,t[17]=u.providerId,t[18]=u.target,t[19]=u.type,t[20]=x):x=t[20];let S;return t[21]!==g||t[22]!==n||t[23]!==x?(S=(0,$.jsx)(sn,{open:n,onOpenChange:g,children:x}),t[21]=g,t[22]=n,t[23]=x,t[24]=S):S=t[24],S}function L8(e){let t=(0,Q.c)(4),{label:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=q(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.press),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),t[1]=i):i=t[1];let a;return t[2]===n?a=t[3]:(a=(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:r,"aria-label":n,children:i})}),t[2]=n,t[3]=a),a}function yue(e){let t=(0,Q.c)(60),{builtinRows:n,searchQuery:r,onSearchChange:i,labels:a,language:o,scrollTopRef:s,onPickBuiltin:c,onPickCustom:l}=e,u;t[0]===r?u=t[1]:(u=r.trim().toLowerCase(),t[0]=r,t[1]=u);let d=u,f=(0,Z.useRef)(null),p,m;t[2]===s?(p=t[3],m=t[4]):(p=()=>{let e=f.current;e&&s.current>0&&(e.scrollTop=s.current)},m=[s],t[2]=s,t[3]=p,t[4]=m),(0,Z.useLayoutEffect)(p,m);let h;bb0:{if(!d){h=n;break bb0}let e;if(t[5]!==n||t[6]!==d){let r;t[8]===d?r=t[9]:(r=e=>{let t=x8[e.id]?.aliases??[];return e.id.toLowerCase().includes(d)||e.name.toLowerCase().includes(d)||t.some(e=>e.toLowerCase().includes(d))},t[8]=d,t[9]=r),e=n.filter(r),t[5]=n,t[6]=d,t[7]=e}else e=t[7];h=e}let g=h,_,v,y,b,x,S;if(t[10]!==g||t[11]!==a||t[12]!==o||t[13]!==c||t[14]!==l||t[15]!==i||t[16]!==d||t[17]!==s||t[18]!==r){let e=g.find(Sue),n=g.filter(xue),u;t[25]===g?u=t[26]:(u=cue(g.filter(bue)),t[25]=g,t[26]=u);let p=u,m;t[27]===o?m=t[28]:(m=e=>{let t=x8[e.id];return o===`zh`?t?.descriptionZh??t?.description:t?.description},t[27]=o,t[28]=m);let h=m,C;t[29]===a.step1Title?C=t[30]:(C=(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:a.step1Title}),t[29]=a.step1Title,t[30]=C);let w;t[31]===a.step1Subtitle?w=t[32]:(w=(0,$.jsx)(tn,{className:`mt-1 text-sm text-fg-muted`,children:a.step1Subtitle}),t[31]=a.step1Subtitle,t[32]=w);let E;t[33]!==C||t[34]!==w?(E=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[C,w]}),t[33]=C,t[34]=w,t[35]=E):E=t[35];let D;t[36]===a.close?D=t[37]:(D=(0,$.jsx)(L8,{label:a.close}),t[36]=a.close,t[37]=D),t[38]!==E||t[39]!==D?(S=(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-4 px-5 pb-3 pt-5`,children:[E,D]}),t[38]=E,t[39]=D,t[40]=S):S=t[40];let O;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(ot,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-fg-subtle`,strokeWidth:1.75,"aria-hidden":!0}),t[41]=O):O=t[41];let k;t[42]===i?k=t[43]:(k=e=>i(e.target.value),t[42]=i,t[43]=k);let A=a.searchPlaceholder,j;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(j=q(`h-10 w-full rounded-xl border border-edge bg-surface-base py-2 pl-10 pr-3 text-sm text-fg placeholder:text-fg-subtle`,Ri),t[44]=j):j=t[44],t[45]!==a.searchPlaceholder||t[46]!==r||t[47]!==k?(_=(0,$.jsx)(`div`,{className:`px-5 pb-3`,children:(0,$.jsxs)(`div`,{className:`relative`,children:[O,(0,$.jsx)(`input`,{type:`search`,value:r,onChange:k,placeholder:A,autoComplete:`off`,className:j})]})}),t[45]=a.searchPlaceholder,t[46]=r,t[47]=k,t[48]=_):_=t[48],v=f,t[49]===s?y=t[50]:(y=e=>{s.current=e.currentTarget.scrollTop},t[49]=s,t[50]=y),b=`min-h-0 flex-1 overscroll-contain overflow-y-auto px-5 pb-5`,x=d&&g.length===0?(0,$.jsx)(`p`,{className:`py-6 text-center text-sm text-fg-muted`,children:a.noResults}):d?(0,$.jsx)(R8,{title:a.searchResults,children:g.map(e=>(0,$.jsx)(z8,{row:e,description:h(e),labels:a,onPick:c},e.id))}):(0,$.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[e?(0,$.jsx)(R8,{title:a.quickStart,children:(0,$.jsx)(z8,{row:e,description:h(e),labels:a,prominent:!0,onPick:c})}):null,n.length>0?(0,$.jsx)(R8,{title:a.connectedSection,children:n.map(e=>(0,$.jsx)(z8,{row:e,description:h(e),labels:a,onPick:c},e.id))}):null,C8.map(e=>{let t=p.get(e)??[];return t.length===0?null:(0,$.jsx)(R8,{title:a.categories[e]??e,children:t.map(e=>(0,$.jsx)(z8,{row:e,description:h(e),labels:a,onPick:c},e.id))},e)}),(0,$.jsxs)(`button`,{type:`button`,onClick:l,className:q(`flex w-full items-center gap-3 rounded-xl bg-surface-hover/25 px-4 py-3 text-left transition-colors`,`hover:bg-surface-hover/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`),children:[(0,$.jsx)(`span`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-surface-base/60 text-fg-muted`,children:(0,$.jsx)(ze,{className:`size-4`,strokeWidth:1.75,"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:a.addCustom}),(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs text-fg-muted`,children:a.customDescription})]}),(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":!0})]})]}),t[10]=g,t[11]=a,t[12]=o,t[13]=c,t[14]=l,t[15]=i,t[16]=d,t[17]=s,t[18]=r,t[19]=_,t[20]=v,t[21]=y,t[22]=b,t[23]=x,t[24]=S}else _=t[19],v=t[20],y=t[21],b=t[22],x=t[23],S=t[24];let C;t[51]!==v||t[52]!==y||t[53]!==b||t[54]!==x?(C=(0,$.jsx)(`div`,{ref:v,onScroll:y,className:b,children:x}),t[51]=v,t[52]=y,t[53]=b,t[54]=x,t[55]=C):C=t[55];let w;return t[56]!==_||t[57]!==C||t[58]!==S?(w=(0,$.jsxs)($.Fragment,{children:[S,_,C]}),t[56]=_,t[57]=C,t[58]=S,t[59]=w):w=t[59],w}function bue(e){return e.id!==F8&&!e.configured}function xue(e){return e.configured&&e.id!==F8}function Sue(e){return e.id===F8}function R8(e){let t=(0,Q.c)(7),{title:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,$.jsx)(`h3`,{className:`mb-1.5 px-1 text-xs font-semibold text-fg-muted`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,$.jsx)(`div`,{className:`flex flex-col gap-1 rounded-xl bg-surface-hover/20 p-1`,children:r}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,$.jsxs)(`section`,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function z8(e){let t=(0,Q.c)(27),{row:n,description:r,labels:i,prominent:a,onPick:o}=e,s=a===void 0?!1:a,c;t[0]!==o||t[1]!==n.id?(c=()=>o(n.id),t[0]=o,t[1]=n.id,t[2]=c):c=t[2];let l=s&&`bg-surface-base/80`,u;t[3]===l?u=t[4]:(u=q(`flex min-h-12 w-full items-center gap-3 rounded-lg bg-surface-base/55 px-3 py-2.5 text-left transition-colors`,`hover:bg-surface-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,l),t[3]=l,t[4]=u);let d;t[5]===n.name?d=t[6]:(d=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium text-fg`,children:n.name}),t[5]=n.name,t[6]=d);let f;t[7]!==i||t[8]!==s?(f=s?(0,$.jsx)(`span`,{className:`shrink-0 rounded-full bg-accent-soft px-2 py-0.5 text-[11px] font-medium text-accent-fg`,children:i.recommended}):null,t[7]=i,t[8]=s,t[9]=f):f=t[9];let p;t[10]!==d||t[11]!==f?(p=(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[d,f]}),t[10]=d,t[11]=f,t[12]=p):p=t[12];let m;t[13]===r?m=t[14]:(m=r?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:r}):null,t[13]=r,t[14]=m);let h;t[15]!==p||t[16]!==m?(h=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[p,m]}),t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;t[18]!==i||t[19]!==n.configured?(g=n.configured?(0,$.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-1 text-[11px] font-medium text-emerald-700 dark:text-emerald-300`,children:[(0,$.jsx)(R,{className:`size-3.5`,"aria-hidden":!0}),i.connected]}):null,t[18]=i,t[19]=n.configured,t[20]=g):g=t[20];let _;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(T,{className:`size-4 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[21]=_):_=t[21];let v;return t[22]!==g||t[23]!==c||t[24]!==u||t[25]!==h?(v=(0,$.jsxs)(`button`,{type:`button`,onClick:c,className:u,children:[h,g,_]}),t[22]=g,t[23]=c,t[24]=u,t[25]=h,t[26]=v):v=t[26],v}function Cue({providerId:e,builtinRows:t,labels:n,language:r,onBack:i,onSaved:a}){let o=t.find(t=>t.id===e),s=x8[e],c=r===`zh`?s?.descriptionZh??s?.description:s?.description,[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(!1),[p,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(!1),_=(0,Z.useRef)(null),v=kt(r).providersSettings,y=ZP(v),b=(0,Z.useMemo)(()=>S8(e,r),[e,r]),x=o?.supportsApiKey!==!1,S=o?.supportsOAuth===!0,[C,w]=(0,Z.useState)(null),[E,D]=(0,Z.useState)(null),[O,k]=(0,Z.useState)(`idle`),[A,j]=(0,Z.useState)(null),[M,N]=(0,Z.useState)(null),[P,F]=(0,Z.useState)(null),[I,L]=(0,Z.useState)(``),z=(0,Z.useRef)(null),B=(0,Z.useRef)(null),V=O===`waiting`||O===`waiting_code`;(0,Z.useEffect)(()=>{if(!C||!V)return;let t=window.setInterval(()=>{(async()=>{try{let n=await ja(C);n.status===`waiting_auth`||n.status===`waiting_code`?(k(n.status===`waiting_code`?`waiting_code`:`waiting`),D(n.message??null),j(n.authUrl??null),N(n.instructions??null),F(n.deviceCode??null),n.authUrl&&n.authUrl!==B.current&&(B.current=n.authUrl,v8(n.authUrl,z.current).catch(()=>{}))):n.status===`completed`?(window.clearInterval(t),y8(z.current),z.current=null,e===`xopc-cloud`&&await Oa(),k(`success`),D(n.message??v.saved),window.setTimeout(a,600)):(n.status===`failed`||n.status===`cancelled`)&&(window.clearInterval(t),y8(z.current),z.current=null,k(`error`),D(n.error??n.message??v.revokeFailed))}catch{}})()},1e3);return()=>window.clearInterval(t)},[C,V,a,e,v.revokeFailed,v.saved]),(0,Z.useEffect)(()=>()=>{C&&Aa(C).catch(()=>{})},[C]),(0,Z.useEffect)(()=>()=>{y8(z.current),z.current=null},[]);let H=async()=>{y8(z.current),z.current=_8(),B.current=null,k(`waiting`),D(v.oauthStarting),j(null),N(null),F(null),m(null);try{w((await ka(e)).sessionId)}catch(e){y8(z.current),z.current=null,k(`error`),D(e instanceof Error?e.message:v.revokeFailed)}},U=async()=>{if(C){try{await Wee(C)}catch{}y8(z.current),z.current=null,B.current=null,k(`idle`),D(null),w(null),j(null),N(null),F(null)}},W=async()=>{if(!(!C||!I.trim()))try{await Uee(C,I.trim()),L(``),D(v.oauthProcessingCode)}catch(e){k(`error`),D(e instanceof Error?e.message:v.revokeFailed)}},G=async()=>{let t=l.trim();if(!(!t||!x)){f(!0),m(null);try{await f8({[e]:t}),g(!0),window.setTimeout(a,600)}catch(e){m(e instanceof Error?e.message:n.saveError)}finally{f(!1)}}};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-5 pb-3 pt-5`,children:[(0,$.jsx)(`button`,{type:`button`,onClick:i,className:q(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.press),"aria-label":n.back,children:(0,$.jsx)(T,{className:`size-4 rotate-180`,"aria-hidden":!0})}),(0,$.jsx)(on,{className:`min-w-0 flex-1 text-base font-semibold text-fg`,children:o?.name??e}),(0,$.jsx)(L8,{label:n.close})]}),(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 pb-5`,children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 rounded-xl bg-surface-hover/20 p-4`,children:[c?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:c}):null,x?(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`builtin-api-key`,className:`text-sm font-medium text-fg`,children:n.apiKeyLabel}),(0,$.jsx)(K,{id:`builtin-api-key`,value:l,onChange:u,placeholder:n.apiKeyPlaceholder,labels:y,inputRef:_,onKeyDown:e=>{e.key===`Enter`&&G()}})]}):null,S?(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-lg bg-surface-base/55 p-3`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:v.oauth}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs text-fg-muted`,children:v.oauthHint})]}),(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`gap-1.5`,disabled:V,onClick:()=>void H(),children:[V?(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`,"aria-hidden":!0}):null,v.oauth]})]}),E?(0,$.jsx)(`p`,{className:q(`text-xs`,O===`error`?`text-red-600 dark:text-red-400`:`text-fg-muted`),children:E}):null,O===`waiting`||O===`waiting_code`?(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[A?(0,$.jsxs)(`a`,{href:A,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-sm font-medium text-on-accent hover:bg-accent-hover`,children:[v.openAuthPage,(0,$.jsx)(`span`,{className:`size-3`,"aria-hidden":!0,children:`↗`})]}):null,(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:()=>void U(),children:v.cancelOAuth})]}):null,M?(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:M}):null,P?(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-base/70 px-3 py-2`,children:[(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:v.deviceCodeLabel}),(0,$.jsx)(`code`,{className:`mt-1 block select-all font-mono text-lg font-semibold tracking-widest text-fg`,children:P}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:v.deviceCodeHint})]}):null,O===`waiting_code`?(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row`,children:[(0,$.jsx)(`input`,{type:`text`,value:I,onChange:e=>L(e.target.value),onKeyDown:e=>e.key===`Enter`&&void W(),placeholder:v.pasteRedirectUrl,className:q(`min-w-0 flex-1 rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg placeholder:text-fg-subtle`,Ri)}),(0,$.jsx)(X,{type:`button`,variant:`primary`,onClick:()=>void W(),children:v.submitCode})]}):null]}):null,b.length>0&&x?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:b.map(({kind:e,href:t})=>(0,$.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-xs text-accent hover:underline`,children:[b8(e,n),(0,$.jsx)(`span`,{className:`size-3`,"aria-hidden":!0,children:`↗`})]},e))}):null,p?(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:p}):null]})}),(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 bg-surface-hover/15 px-5 py-3`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:i,children:n.cancel}),x?(0,$.jsx)(X,{type:`button`,variant:`primary`,disabled:!l.trim()||d||h,onClick:()=>void G(),children:h?(0,$.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(R,{className:`size-3.5`,"aria-hidden":!0}),n.saved]}):d?(0,$.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`,"aria-hidden":!0}),n.saving]}):n.save}):null]})]})}function B8(e=`custom`){if(e!==`custom`&&O8[e]){let t=O8[e].config;return{preset:e,providerId:A8(e),baseUrl:t.baseUrl??``,api:t.api??`openai-completions`,apiKey:t.apiKey??``,modelIds:t.models?.map(e=>e.id)??[``],error:null}}return{preset:`custom`,providerId:``,baseUrl:``,api:`openai-completions`,apiKey:``,modelIds:[``],error:null}}function wue(e,t){switch(t.type){case`applyPreset`:return t.key===`custom`?{...e,preset:`custom`,error:null}:O8[t.key]?B8(t.key):e;case`setProviderId`:return{...e,providerId:t.value};case`setBaseUrl`:return{...e,baseUrl:t.value};case`setApi`:return{...e,api:t.value};case`setApiKey`:return{...e,apiKey:t.value};case`addModelSlot`:return{...e,modelIds:[...e.modelIds,``]};case`updateModelId`:return{...e,modelIds:e.modelIds.map((e,n)=>n===t.index?t.value:e)};case`setModelIds`:return{...e,modelIds:t.values.length>0?t.values:[``]};case`removeModelSlot`:return{...e,modelIds:e.modelIds.filter((e,n)=>n!==t.index)};case`setError`:return{...e,error:t.value}}}function Tue({initialPresetKey:e,customConfig:t,labels:n,language:r,onBack:i,onSaved:a}){let[o,s]=(0,Z.useReducer)(wue,void 0,()=>B8(e)),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),f=ZP(kt(r).providersSettings),{preset:p,providerId:m,baseUrl:h,api:g,apiKey:_,modelIds:v,error:y}=o,b=async()=>{let e=m.trim(),r=h.trim();if(!e){s({type:`setError`,value:n.providerIdRequired});return}if(!r){s({type:`setError`,value:n.baseUrlRequired});return}let i=v.map(e=>e.trim()).filter(Boolean);l(!0),s({type:`setError`,value:null});try{let n=t?.providers??{},o=p===`custom`?void 0:O8[p]?.config,s={...o??{},baseUrl:r,api:g,apiKey:_.trim()||void 0,models:i.map(e=>o?.models?.find(t=>t.id===e)??{id:e})};await D8({providers:{...n,[e]:s}});let c=new Set(n[e]?.models?.map(e=>e.id)??[]);a(e,s.models?.filter(e=>!c.has(e.id)&&!e.computerUse).map(e=>e.id)??[])}catch(e){s({type:`setError`,value:e instanceof Error?e.message:n.saveError})}finally{l(!1)}},x=async()=>{let e=m.trim()||A8(p)||`custom`,t=h.trim();if(!t){s({type:`setError`,value:n.baseUrlRequired});return}d(!0),s({type:`setError`,value:null});try{let r=p===`custom`?void 0:O8[p]?.config,i=(await uue({providerId:e,baseUrl:t,apiKey:_.trim()||void 0,api:g,headers:r?.headers})).map(e=>e.id).filter(e=>e&&!e.includes(`/`));s({type:`setModelIds`,values:i}),i.length===0&&s({type:`setError`,value:n.discoverModelsHint})}catch(e){s({type:`setError`,value:e instanceof Error?e.message:n.discoverModelsHint})}finally{d(!1)}},S=m.trim()&&h.trim(),C=(g===`openai-completions`||g===`openai-responses`)&&h.trim();return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-5 pb-3 pt-5`,children:[(0,$.jsx)(`button`,{type:`button`,onClick:i,className:q(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.press),"aria-label":n.back,children:(0,$.jsx)(T,{className:`size-4 rotate-180`,"aria-hidden":!0})}),(0,$.jsx)(on,{className:`min-w-0 flex-1 text-base font-semibold text-fg`,children:n.step2CustomTitle}),(0,$.jsx)(L8,{label:n.close})]}),(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 pb-4`,children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 rounded-xl bg-surface-hover/20 p-4`,children:[(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:n.customDescription}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`custom-preset`,className:`text-sm font-medium text-fg`,children:n.presetLabel}),(0,$.jsxs)(j,{id:`custom-preset`,value:p,onChange:e=>s({type:`applyPreset`,key:e.target.value}),className:M8(),children:[(0,$.jsx)(N,{value:`custom`,children:n.presetCustom}),k8.map(e=>(0,$.jsx)(N,{value:e.key,children:e.label},e.key))]})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`custom-provider-id`,className:`text-sm font-medium text-fg`,children:n.providerIdLabel}),(0,$.jsx)(`input`,{id:`custom-provider-id`,type:`text`,autoComplete:`off`,value:m,onChange:e=>s({type:`setProviderId`,value:e.target.value}),placeholder:n.providerIdPlaceholder,className:q(`rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg placeholder:text-fg-subtle`,Ri)})]}),(0,$.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`custom-base-url`,className:`text-sm font-medium text-fg`,children:n.baseUrlLabel}),(0,$.jsx)(`input`,{id:`custom-base-url`,type:`url`,autoComplete:`off`,value:h,onChange:e=>s({type:`setBaseUrl`,value:e.target.value}),placeholder:n.baseUrlPlaceholder,className:q(`rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg placeholder:text-fg-subtle`,Ri)})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`custom-api-type`,className:`text-sm font-medium text-fg`,children:n.apiTypeLabel}),(0,$.jsx)(j,{id:`custom-api-type`,value:g,onChange:e=>s({type:`setApi`,value:e.target.value}),className:M8(),children:lue.map(e=>(0,$.jsx)(N,{value:e.value,children:e.label},e.value))})]})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,$.jsx)(`label`,{htmlFor:`custom-api-key`,className:`text-sm font-medium text-fg`,children:n.apiKeyLabel}),(0,$.jsx)(K,{id:`custom-api-key`,value:_,onChange:e=>s({type:`setApiKey`,value:e}),placeholder:n.apiKeyPlaceholder,labels:f})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:n.modelIdLabel}),(0,$.jsxs)(X,{type:`button`,variant:`secondary`,className:`gap-1.5`,disabled:!C||u,onClick:()=>void x(),children:[u?(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(ot,{className:`size-3.5`,"aria-hidden":!0}),u?n.discoveringModels:n.discoverModels]})]}),v.map((e,t)=>(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`input`,{type:`text`,autoComplete:`off`,value:e,onChange:e=>s({type:`updateModelId`,index:t,value:e.target.value}),placeholder:n.modelIdPlaceholder,className:q(`flex-1 rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg placeholder:text-fg-subtle`,Ri)}),v.length>1?(0,$.jsx)(`button`,{type:`button`,onClick:()=>s({type:`removeModelSlot`,index:t}),className:q(`rounded-lg p-1.5 text-fg-subtle hover:bg-surface-hover hover:text-fg`,$r.press),children:(0,$.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})}):null]},e||`model-slot-${t}`)),(0,$.jsxs)(X,{type:`button`,variant:`ghost`,className:`w-fit gap-1.5 text-fg-muted`,onClick:()=>s({type:`addModelSlot`}),children:[(0,$.jsx)(rt,{className:`size-3.5`,"aria-hidden":!0}),n.addModel]})]}),y?(0,$.jsx)(`p`,{className:`text-sm text-red-600 dark:text-red-400`,children:y}):null]})}),(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-2 bg-surface-hover/15 px-5 py-3`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:i,children:n.cancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,disabled:!S||c,onClick:()=>void b(),children:c?(0,$.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`,"aria-hidden":!0}),n.saving]}):n.save})]})]})}function V8(){let e=(0,Q.c)(29),t=!!At(jue),{data:n,isLoading:r}=ri(t),i;e[0]===t?i=e[1]:(i=t?Y(`/api/providers/meta`):null,e[0]=t,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={revalidateOnFocus:!1},e[2]=a):a=e[2];let{data:o,isLoading:s}=Xr(i,Aue,a),c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c={revalidateOnFocus:!1},e[3]=c):c=e[3];let{data:l,isLoading:u}=Xr(t?Di:null,kue,c),d;e[4]===l?d=e[5]:(d=l===void 0?[]:l,e[4]=l,e[5]=d);let f=d,p;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(p={revalidateOnFocus:!1},e[6]=p):p=e[6];let{data:m}=Xr(t?Hee:null,Oue,p),h;bb0:{if(!o||n===void 0){let t;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[7]=t):t=e[7],h=t;break bb0}let t;e[8]!==n?.payload?.config||e[9]!==o||e[10]!==f?(t=tue(o,eue(n?.payload?.config),f),e[8]=n?.payload?.config,e[9]=o,e[10]=f,e[11]=t):t=e[11],h=t}let g=h,_;bb1:{if(!m){_=null;break bb1}let t;e[12]===m.config?t=e[13]:(t=T8(m.config),e[12]=m.config,e[13]=t),_=t}let v=_,y;if(e[14]!==g||e[15]!==v||e[16]!==o||e[17]!==f){y=[];let t=new Set((o??[]).filter(Due).map(Eue)),n;e[19]===v?n=e[20]:(n=new Set(v?Object.keys(v.providers):[]),e[19]=v,e[20]=n);let r=n;for(let e of g){if(!t.has(e.id))continue;let n=r.has(e.id),i=n?v.providers[e.id]?.models?.length??0:f.filter(t=>t.provider===e.id).length;y.push({id:e.id,name:e.name,configured:!0,isCustom:n,modelCount:i})}if(v){let t;e[21]===v.providers?t=e[22]:(t=Object.entries(v.providers),e[21]=v.providers,e[22]=t);for(let[e,n]of t)y.some(t=>t.id===e)||y.push({id:e,name:e,configured:!0,isCustom:!0,modelCount:n.models?.length??0})}e[14]=g,e[15]=v,e[16]=o,e[17]=f,e[18]=y}else y=e[18];let b=y,x=r||s||u,S;return e[23]!==g||e[24]!==b||e[25]!==v||e[26]!==x||e[27]!==f?(S={cards:b,loading:x,builtinRows:g,customConfig:v,allModels:f},e[23]=g,e[24]=b,e[25]=v,e[26]=x,e[27]=f,e[28]=S):S=e[28],S}function Eue(e){return e.id}function Due(e){return e.configured}function Oue(){return E8()}function kue(){return Ti()}async function Aue(e){let{payload:t}=await(await fetch(e,{credentials:`same-origin`,redirect:`error`})).json();return t?.providers??[]}function jue(e){return e.conversationId}function Mue(e){let t=(0,Q.c)(12),{labels:n,data:r,onAdd:i,onManage:a}=e,{cards:o,loading:s}=r;if(s){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(ta,{className:`h-6 w-48 max-w-full`}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,"aria-busy":`true`,children:[e,(0,$.jsx)(`div`,{className:`flex flex-col gap-1`,children:[1,2,3].map(Pue)})]}),t[1]=n):n=t[1],n}let c;if(t[2]!==o||t[3]!==n||t[4]!==i||t[5]!==a){let e=o.filter(Nue),r=e.length>0?n.titleCount.replace(`{{count}}`,String(e.length)):n.title,s;t[7]===r?s=t[8]:(s=(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:r}),t[7]=r,t[8]=s);let l=e.length>0?(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`gap-1.5`,onClick:i,children:[(0,$.jsx)(rt,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0}),n.addProvider]}):null,u;t[9]!==s||t[10]!==l?(u=(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],c=(0,$.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[u,e.length===0?(0,$.jsxs)(`div`,{className:`rounded-xl bg-surface-hover/25 px-6 py-10 text-center`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:n.empty}),(0,$.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:n.emptyHint}),(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`mt-4 gap-1.5`,onClick:i,children:[(0,$.jsx)(rt,{className:`size-3.5`,strokeWidth:2,"aria-hidden":!0}),n.addProvider]})]}):(0,$.jsx)(`div`,{className:`flex flex-col gap-1 rounded-xl bg-surface-hover/20 p-1`,children:e.map(e=>(0,$.jsx)(Fue,{card:e,labels:n,onManage:()=>a(e.id,e.isCustom)},e.id))})]}),t[2]=o,t[3]=n,t[4]=i,t[5]=a,t[6]=c}else c=t[6];return c}function Nue(e){return e.configured}function Pue(e){return(0,$.jsx)(ta,{className:`h-16 rounded-lg`},e)}function Fue(e){let t=(0,Q.c)(26),{card:n,labels:r,onManage:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=q(`group relative flex min-h-16 w-full flex-col justify-center gap-2 rounded-lg bg-surface-base/45 px-3 py-3 text-left transition-colors sm:flex-row sm:items-center sm:gap-4`,`hover:bg-surface-hover/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,$r.pressCard),t[0]=a):a=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsx)(R,{className:`size-4 shrink-0 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}),t[1]=o):o=t[1];let s;t[2]===n.name?s=t[3]:(s=(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-semibold leading-snug text-fg`,children:n.name}),t[2]=n.name,t[3]=s);let c;t[4]!==n.isCustom||t[5]!==r.custom?(c=n.isCustom?(0,$.jsx)(`span`,{className:`shrink-0 rounded bg-surface-hover px-1.5 py-0.5 text-[10px] font-medium text-fg-subtle`,children:r.custom}):null,t[4]=n.isCustom,t[5]=r.custom,t[6]=c):c=t[6];let l;t[7]!==s||t[8]!==c?(l=(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[o,s,c]}),t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==n.modelCount||t[11]!==r.modelsCount||t[12]!==r.noModels?(u=n.modelCount>0?r.modelsCount.replace(`{{count}}`,String(n.modelCount)):r.noModels,t[10]=n.modelCount,t[11]=r.modelsCount,t[12]=r.noModels,t[13]=u):u=t[13];let d;t[14]===u?d=t[15]:(d=(0,$.jsx)(`span`,{className:`whitespace-nowrap text-xs text-fg-subtle`,children:u}),t[14]=u,t[15]=d);let f;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(st,{className:`size-3`,"aria-hidden":!0}),t[16]=f):f=t[16];let p;t[17]===r.manage?p=t[18]:(p=(0,$.jsxs)(`span`,{className:`flex items-center gap-1 text-xs font-medium text-accent-fg`,children:[f,r.manage]}),t[17]=r.manage,t[18]=p);let m;t[19]!==d||t[20]!==p?(m=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-4 pl-6 sm:justify-end sm:pl-0`,children:[d,p]}),t[19]=d,t[20]=p,t[21]=m):m=t[21];let h;return t[22]!==i||t[23]!==m||t[24]!==l?(h=(0,$.jsxs)(`button`,{type:`button`,onClick:i,className:a,children:[l,m]}),t[22]=i,t[23]=m,t[24]=l,t[25]=h):h=t[25],h}function H8(){return J(Y(`/api/user-model`))}async function Iue(){let e=await H8();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:``},...typeof e.suggestedCallName==`string`?{suggestedCallName:e.suggestedCallName}:{}}}async function U8(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 Lue(e,t){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}/status`),{method:`PATCH`,body:JSON.stringify({status:t})})}function Rue(e,t){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}/scope`),{method:`PATCH`,body:JSON.stringify({scope:t})})}function zue(e,t){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify({statement:t})})}function Bue(e,t){return J(Y(`/api/user-model/priorities/${encodeURIComponent(e)}`),{method:`PATCH`,body:JSON.stringify(t)})}function Vue(e){let t=Date.now();return J(Y(`/api/user-model/priorities`),{method:`POST`,body:JSON.stringify({targetType:`topic`,targetId:e.title.trim(),rank:`primary`,urgency:1,scope:{type:`global`},validFrom:t,validTo:e.validTo})})}function Hue(e,t){return J(Y(`/api/user-model/rules/${encodeURIComponent(e)}/status`),{method:`PATCH`,body:JSON.stringify({status:t})})}function Uue(e){return J(Y(`/api/user-model/rules`),{method:`POST`,body:JSON.stringify({category:e.category,statement:e.statement,priority:50,scope:e.scope,conditions:{...e.conditions,requiresConfirmation:!1}})})}function Wue(e,t,n){return J(Y(`/api/knowledge-memory/${encodeURIComponent(e.id)}/review`),{method:`POST`,body:JSON.stringify({action:t,expectedStatus:e.status,...n===void 0?{}:{content:n}})})}function Gue(e){return J(Y(`/api/user-model/assertions/${encodeURIComponent(e)}`),{method:`DELETE`})}function Kue(e){return J(Y(`/api/knowledge-memory/${encodeURIComponent(e)}`),{method:`DELETE`})}function que(e){return J(Y(`/api/user-model/settings`),{method:`PATCH`,body:JSON.stringify(e)})}async function Jue(){let e=await Mt(Y(`/api/user-model/export`));if(!e.ok)throw Error(`Export failed (${e.status})`);let t=await e.blob(),n=(e.headers.get(`Content-Disposition`)??``).match(/filename="([^"]+)"/)?.[1]??`xopc-memory.json`,r=URL.createObjectURL(t),i=document.createElement(`a`);i.href=r,i.download=n,i.click(),URL.revokeObjectURL(r)}var Yue={step:`callName`,selectedProvider:null,apiKey:``,busy:!1,error:null,callName:``,connectedModelRef:null};function Xue(e,t){switch(t.type){case`patch`:return{...e,...t.patch};case`prefillCallName`:return e.callName.trim()?e:{...e,callName:t.value}}}var G8=[`callName`,`provider`,`apiKey`,`success`],K8=e=>G8.indexOf(e)+1;function q8(e){let t=(0,Q.c)(5),{step:n,label:r}=e,i=K8(n)-1,a;t[0]===i?a=t[1]:(a=G8.map((e,t)=>(0,$.jsx)(`span`,{className:q(`h-1.5 rounded-full transition-[width,background-color] duration-200 motion-reduce:transition-none`,t===i?`w-5 bg-accent`:`w-1.5`,t<i?`bg-accent/45`:t>i?`bg-edge-strong`:void 0),"aria-hidden":!0},e)),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a?(o=(0,$.jsx)(`div`,{className:`flex items-center gap-1.5`,"aria-label":r,children:a}),t[2]=r,t[3]=a,t[4]=o):o=t[4],o}function Zue({onComplete:e,onDismiss:t,canDismiss:n=!0}){let r=Pt(e=>e.language),i=Pt(e=>e.setLanguage),a=kt(r).onboarding,[o,s]=(0,Z.useReducer)(Xue,Yue),[c,l]=(0,Z.useState)(!1),u=V8(),{step:d,selectedProvider:f,apiKey:p,busy:m,error:h,callName:g}=o,_=(0,Z.useMemo)(()=>a.stepOf.replace(`{{current}}`,String(K8(d))).replace(`{{total}}`,String(G8.length)),[a.stepOf,d]),v=(0,Z.useCallback)(async e=>{s({type:`patch`,patch:{error:null}});try{return(await Ti(!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 Iue();if(e)return;let r=t.callName.trim()||n?.trim();r&&s({type:`prefillCallName`,value:r});return}catch{n<2&&await new Promise(e=>{t=setTimeout(e,250*(n+1))})}})(),()=>{e=!0,t!==void 0&&clearTimeout(t)}},[]);let y=async()=>{let e=g.trim();s({type:`patch`,patch:{busy:!0,error:null}});try{await U8({...e?{callName:e}:{},timezone:W8(),locale:r===`zh`?`zh-CN`:`en-US`}),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}})}},b=(0,Z.useCallback)(async e=>{let t=await H3();if((await U3({...t.defaults,models:{...t.defaults.models,chat:{primary:e,fallbacks:[]}}})).defaults.models.chat.primary!==e)throw Error(r===`zh`?`默认模型未能保存,请重试。`:`The default model could not be saved. Try again.`);ni(),Ei(),yi(),await U8({...g.trim()?{callName:g.trim()}:{},timezone:W8(),locale:r===`zh`?`zh-CN`:`en-US`}),s({type:`patch`,patch:{step:`success`,connectedModelRef:e,error:null}})},[g,r]),x=async()=>{s({type:`patch`,patch:{busy:!0,error:null}});try{await e()}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}},S=async()=>{if(!(!f||!p.trim())){s({type:`patch`,patch:{busy:!0,error:null}});try{let e=mue(f,p.trim());if(e){let t=await E8(),n=t.config.providers[e.providerId]??{};await D8({...t.config,providers:{...t.config.providers,[e.providerId]:{...n,...e.config}}})}else await f8({[f]:p.trim()});let t=await v(f);if(!t)throw Error(r===`zh`?`服务已连接,但没有找到可用模型。请检查服务配置或选择其他服务。`:`The service is connected, but no available model was found. Check its configuration or choose another service.`);await b(t.id)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}}},C=async()=>{s({type:`patch`,patch:{busy:!0,error:null}});try{let e=await v(`xopc-cloud`);if(!e)throw Error(r===`zh`?`XOPC Cloud 已连接,但没有找到可用模型,请稍后重试。`:`XOPC Cloud connected, but no available model was found. Try again shortly.`);await b(e.id)}catch(e){s({type:`patch`,patch:{error:e instanceof Error?e.message:String(e)}})}finally{s({type:`patch`,patch:{busy:!1}})}},w=async e=>{s({type:`patch`,patch:{busy:!0,error:null}});try{let t=await v(e);if(!t)throw Error(r===`zh`?`服务已连接,但没有找到可用模型。请检查服务配置或选择其他服务。`:`The service is connected, but no available model was found. Check its configuration or choose another service.`);await b(t.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`,"data-step":d,children:[(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)(Wle,{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)(Dt,{className:`size-4`,"aria-hidden":!0})}):null]})}),(0,$.jsxs)(`main`,{className:`xopc-onboarding-scroll relative z-10 grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(18rem,0.8fr)_minmax(30rem,1.2fr)]`,children:[(0,$.jsx)(`section`,{className:`xopc-onboarding-visual relative hidden min-h-0 items-center justify-center overflow-hidden lg:flex`,children:(0,$.jsx)(ua,{className:`size-72 text-fg-muted`,interactive:!0,language:r,mood:h?`care`:m?`work`:d===`success`?`done`:d===`callName`?`listen`:`decision`})}),(0,$.jsx)(`section`,{className:`app-main-surface xopc-onboarding-scroll flex min-h-[30rem] items-center overflow-y-auto bg-surface-panel px-5 py-8 sm:px-10 lg:min-h-0 lg:px-[clamp(3rem,6vw,6rem)]`,children:(0,$.jsxs)(`div`,{className:`xopc-onboarding-stage w-full max-w-[30rem]`,children:[(0,$.jsx)(`div`,{className:`mb-3 lg:hidden`,children:(0,$.jsx)(ua,{className:`size-20`,mood:h?`care`:m?`work`:d===`success`?`done`:`listen`})}),d===`callName`?(0,$.jsxs)(`div`,{className:`flex min-h-[30rem] flex-col`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium tracking-wide text-accent-fg`,children:a.title}),(0,$.jsx)(`h1`,{className:`mt-3 text-[2rem] font-semibold leading-tight tracking-[-0.035em] text-fg sm:text-4xl`,children:a.step0Title}),(0,$.jsx)(`p`,{className:`mt-3 max-w-md text-sm leading-6 text-fg-muted`,children:a.step0Subtitle}),(0,$.jsxs)(`label`,{className:`mt-9 block`,children:[(0,$.jsxs)(`span`,{className:`mb-2 flex items-center justify-between text-[13px] font-medium text-fg-muted`,children:[(0,$.jsx)(`span`,{children:a.profileCallNameLabel}),(0,$.jsx)(`span`,{className:`font-normal text-fg-subtle`,children:r===`zh`?`可选`:`Optional`})]}),(0,$.jsx)(`input`,{autoFocus:!0,autoComplete:`name`,value:g,onChange:e=>s({type:`patch`,patch:{callName:e.target.value}}),onKeyDown:e=>{e.key===`Enter`&&!m&&y()},placeholder:a.profileCallNamePlaceholder,className:`h-12 w-full rounded-xl border border-edge bg-surface-base/80 px-3.5 text-[15px] text-fg outline-none transition-[border-color,box-shadow,background-color] duration-200 placeholder:text-fg-subtle hover:border-edge-strong focus:border-accent focus:bg-surface-base focus:ring-4 focus:ring-accent/10 motion-reduce:transition-none`})]}),(0,$.jsx)(`div`,{className:`mt-3 min-h-5`,children:h?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:h}):null}),(0,$.jsxs)(`div`,{className:`mt-auto grid grid-cols-[1fr_auto_1fr] items-center gap-3 pt-10`,children:[(0,$.jsx)(`span`,{}),(0,$.jsx)(q8,{step:d,label:_}),(0,$.jsxs)(X,{variant:`primary`,className:`h-11 justify-self-end px-5`,disabled:m,onClick:()=>void y(),children:[m?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,m?a.savingProfile:a.continue,m?null:(0,$.jsx)(T,{className:`size-4`,"aria-hidden":!0})]})]})]}):null,d===`provider`?(0,$.jsxs)(`div`,{className:`flex min-h-[30rem] flex-col`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium tracking-wide text-accent-fg`,children:r===`zh`?`模型设置`:`Model setup`}),(0,$.jsx)(`h1`,{className:`mt-3 text-[2rem] font-semibold leading-tight tracking-[-0.035em] text-fg sm:text-4xl`,children:a.step1Title}),(0,$.jsx)(`p`,{className:`mt-3 max-w-md text-sm leading-6 text-fg-muted`,children:a.step1Subtitle}),(0,$.jsx)(`div`,{className:`mt-8`,children:(0,$.jsx)(oue,{onSelect:e=>s({type:`patch`,patch:{selectedProvider:e,step:`apiKey`,apiKey:``,error:null}}),onBrowseProviders:()=>l(!0),disabled:m,browseDisabled:u.loading})}),(0,$.jsx)(`div`,{className:`mt-3 min-h-5`,children:h?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:h}):null}),(0,$.jsxs)(`div`,{className:`mt-auto grid grid-cols-[1fr_auto_1fr] items-center gap-3 pt-8`,children:[(0,$.jsx)(X,{variant:`ghost`,className:`justify-self-start`,onClick:()=>s({type:`patch`,patch:{step:`callName`,error:null}}),children:a.back}),(0,$.jsx)(q8,{step:d,label:_}),(0,$.jsx)(`span`,{})]})]}):null,d===`apiKey`?(0,$.jsxs)(`div`,{className:`flex min-h-[30rem] flex-col`,children:[(0,$.jsx)(`p`,{className:`text-xs font-medium tracking-wide text-accent-fg`,children:a.step2Title}),(0,$.jsx)(`h1`,{className:`mt-3 text-[2rem] font-semibold leading-tight tracking-[-0.035em] text-fg sm:text-4xl`,children:f===`xopc-cloud`?r===`zh`?`连接 XOPC Cloud`:`Connect XOPC Cloud`:r===`zh`?`连接 ${f??``}`:`Connect ${f??``}`}),(0,$.jsx)(`p`,{className:`mt-3 max-w-md text-sm leading-6 text-fg-muted`,children:f===`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:f===`xopc-cloud`?(0,$.jsx)(g8,{providerId:`xopc-cloud`,displayName:`XOPC Model Service`,connected:!1,onConnected:()=>void C()}):(0,$.jsxs)($.Fragment,{children:[f&&x8[f]?.apiKeyUrl?(0,$.jsxs)(`a`,{href:x8[f].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)(te,{className:`size-3.5`})]}):null,(0,$.jsxs)(`label`,{className:`block`,children:[(0,$.jsx)(`span`,{className:`sr-only`,children:a.step2Placeholder}),(0,$.jsx)(K,{value:p,onChange:e=>s({type:`patch`,patch:{apiKey:e}}),placeholder:a.step2Placeholder,labels:ZP(kt(r).providersSettings),inputClassName:`h-12 rounded-xl bg-surface-base/80 px-3.5 text-[15px] 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)(IC,{className:`size-4 text-accent-fg`}),a.step2SecurityNote.replace(`🔒 `,``)]})]})}),m&&f===`xopc-cloud`?(0,$.jsx)(`p`,{className:`mt-4 text-sm text-fg-muted`,children:r===`zh`?`正在应用推荐模型…`:`Applying the recommended model…`}):null,(0,$.jsx)(`div`,{className:`mt-3 min-h-5`,children:h?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:h}):null}),(0,$.jsxs)(`div`,{className:`mt-auto grid grid-cols-[1fr_auto_1fr] items-center gap-3 pt-10`,children:[(0,$.jsx)(X,{variant:`ghost`,className:`justify-self-start`,disabled:m,onClick:()=>s({type:`patch`,patch:{step:`provider`,error:null}}),children:a.back}),(0,$.jsx)(q8,{step:d,label:_}),f===`xopc-cloud`?(0,$.jsx)(`span`,{}):(0,$.jsxs)(X,{variant:`primary`,className:`h-11 justify-self-end px-5`,disabled:m||!p.trim(),onClick:()=>void S(),children:[m?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,a.continue,m?null:(0,$.jsx)(T,{className:`size-4`,"aria-hidden":!0})]})]})]}):null,d===`success`?(0,$.jsxs)(`div`,{className:`flex min-h-[30rem] flex-col`,children:[(0,$.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-xl bg-emerald-500/10 text-emerald-600 dark:text-emerald-400`,children:(0,$.jsx)(R,{className:`size-6`,"aria-hidden":!0})}),(0,$.jsx)(`p`,{className:`mt-6 text-xs font-medium tracking-wide text-accent-fg`,children:r===`zh`?`模型设置完成`:`Model setup complete`}),(0,$.jsx)(`h1`,{className:`mt-3 text-[2rem] font-semibold leading-tight tracking-[-0.035em] text-fg sm:text-4xl`,children:r===`zh`?`一切准备好了`:`You’re ready to go`}),(0,$.jsx)(`p`,{className:`mt-3 max-w-md text-sm leading-6 text-fg-muted`,children:r===`zh`?ca()?`聊天模型已经可用。图片生成、语音和电脑控制等能力可以稍后按需配置。`:`聊天模型已经可用。图片生成和语音等能力可以稍后按需配置。`:ca()?`Your chat model is ready. Image, voice, and computer-use capabilities can be configured later.`:`Your chat model is ready. Image and voice capabilities can be configured later.`}),o.connectedModelRef?(0,$.jsxs)(`div`,{className:`mt-8 rounded-xl bg-surface-hover/25 px-4 py-3`,children:[(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:r===`zh`?`默认聊天模型`:`Default chat model`}),(0,$.jsx)(`p`,{className:`mt-1 truncate text-sm font-medium text-fg`,title:o.connectedModelRef,children:o.connectedModelRef})]}):null,(0,$.jsx)(`div`,{className:`mt-3 min-h-5`,children:h?(0,$.jsx)(`p`,{className:`text-sm text-danger`,role:`alert`,children:h}):null}),(0,$.jsxs)(`div`,{className:`mt-auto grid grid-cols-[1fr_auto_1fr] items-center gap-3 pt-10`,children:[(0,$.jsx)(`span`,{}),(0,$.jsx)(q8,{step:d,label:_}),(0,$.jsxs)(X,{variant:`primary`,className:`h-11 justify-self-end px-5`,disabled:m,onClick:()=>void x(),children:[m?(0,$.jsx)(Ye,{className:`size-4 animate-spin`,"aria-hidden":!0}):null,r===`zh`?`开始使用 XOPC`:`Start using XOPC`,m?null:(0,$.jsx)(T,{className:`size-4`,"aria-hidden":!0})]})]})]}):null]},d)})]}),(0,$.jsx)(I8,{open:c,onOpenChange:l,builtinRows:u.builtinRows,customConfig:u.customConfig,labels:kt(r).capabilitiesSettings.addProviderDialog,language:r,onSaved:e=>void w(e)})]})}function J8(e){return e?.enabled===!0&&(e.state.status===`not_started`||e.state.status===`in_progress`)}function Que(e){let t=!e.settingsRoute&&e.modelSetupReady&&e.needsModelSetup&&!e.modelGuideDismissed,n=e.cloudOnboardingReady&&e.cloudOnboardingPending&&(!e.desktop||e.modelSetupReady)&&!(e.desktop&&t),r=t&&!n,i=!n&&!e.settingsRoute&&e.modelSetupReady&&!e.needsModelSetup&&J8(e.workDiscovery);return{open:e.authenticated&&!e.closed&&(r||n||i),stage:n?`cloud`:r?`setup`:`work`}}async function Y8(){return J(Y(`/api/onboarding/work-discovery`))}async function X8(){await J(Y(`/api/onboarding/work-discovery`),{method:`PATCH`,body:JSON.stringify({status:`dismissed`})})}async function $ue(e){return(await J(Y(`/api/work-discovery/preview`),{method:`POST`,body:JSON.stringify({rootPath:e})})).preview}async function ede(){let e=await J(Y(`/api/work-discovery/candidates`),{method:`POST`});return{candidates:e.candidates,processingTarget:e.processingTarget}}async function Z8(e,t){return(await J(Y(`/api/context-sources/work-folders`),{method:`POST`,body:JSON.stringify({rootPath:e,processingPolicy:t})})).source}async function tde(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 Q8(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 $8(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}`))).run}async function nde(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/cancel`),{method:`POST`})).run}async function rde(e){return(await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/retry`),{method:`POST`})).run}async function e5(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 ide(e,t){await J(Y(`/api/work-discovery/runs/${encodeURIComponent(e)}/suggestions/${encodeURIComponent(t)}/select`),{method:`POST`})}var ade=new Set([`completed`,`failed`,`canceled`]);function ode(){return new Promise(e=>window.setTimeout(e,1200))}async function sde(e,t){let n=[],r=t.wait??ode;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);!ade.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 cde(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 lde={zh:{eyebrow:`当前理解`,summaryTitle:`我理解的是这样`,summaryQuestion:`可以继续,也可以随时修改。`,matches:`准确,继续`,adjust:`修改`,why:`查看依据`,evidenceHint:`这些内容只用于本次判断。`,current:`当前`,ongoing:`持续`,longTerm:`长期`,correctionTitle:`告诉我正确的重点`,correctionPlaceholder:`你现在真正想推进什么?`,continueWithCorrection:`按此继续`,starterTitle:`从这里开始`,starterHint:`可以修改后直接开始对话。`,startConversation:`进入对话`,cancel:`取消`},en:{eyebrow:`Current understanding`,summaryTitle:`Here’s how I understand it`,summaryQuestion:`Continue, or adjust this anytime.`,matches:`Accurate, continue`,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`}};function ude(e){let t=(0,Q.c)(84),{run:n,language:r,busy:i,error:a,onFinish:o,onStartConversation:s}=e,c=lde[r],l=n.result?.lowConfidence===!0,u;t[0]!==r||t[1]!==n?(u=cde(n,r),t[0]=r,t[1]=n,t[2]=u):u=t[2];let d=u,[f,p]=(0,Z.useState)(l),[m,h]=(0,Z.useState)(l?d:``),[g,_]=(0,Z.useState)(!1),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),S,C,w,T,E,D,O,k,A,j,M,N;if(t[3]!==i||t[4]!==v||t[5]!==m||t[6]!==f||t[7]!==a||t[8]!==b||t[9]!==o||t[10]!==s||t[11]!==n.result||t[12]!==c.current||t[13]!==c.evidenceHint||t[14]!==c.eyebrow||t[15]!==c.longTerm||t[16]!==c.ongoing||t[17]!==c.summaryTitle||t[18]!==c.why){let e=n.result?.workThreads?.slice(0,3)??[],r=n.result?.suggestions.find(e=>e.id===n.result?.primarySuggestionId)??n.result?.suggestions[0],l;t[31]!==m||t[32]!==o?(l=async e=>{_(!0),await o(e,e===`corrected`?m.trim():void 0)||_(!1)},t[31]=m,t[32]=o,t[33]=l):l=t[33],S=l;let u;t[34]!==m||t[35]!==s?(u=async()=>{let e=m.trim();e&&(y(!0),await s(e,`corrected`)||y(!1))},t[34]=m,t[35]=s,t[36]=u):u=t[36],C=u,w=`xopc-understanding-reveal flex min-h-full flex-1 flex-col`,T=`polite`,A=`xopc-reveal-scene mx-auto flex w-full max-w-[40rem] flex-1 flex-col justify-center py-6 text-center sm:py-10`;let d=a?`care`:i||v?`work`:f?`listen`:`decision`;t[37]===d?j=t[38]:(j=(0,$.jsx)(ua,{className:`mx-auto mb-3 size-28`,mood:d}),t[37]=d,t[38]=j),t[39]===c.eyebrow?M=t[40]:(M=(0,$.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.2em] text-accent-fg`,children:c.eyebrow}),t[39]=c.eyebrow,t[40]=M),t[41]===c.summaryTitle?N=t[42]:(N=(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:c.summaryTitle}),t[41]=c.summaryTitle,t[42]=N),E=`xopc-understanding-hero-card relative mt-8 overflow-hidden rounded-xl border border-edge bg-surface-panel px-6 py-7 text-left shadow-surface sm:px-8`,t[43]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(`div`,{className:`mb-5 flex size-9 items-center justify-center rounded-xl bg-accent-soft text-accent-fg`,"aria-hidden":!0,children:(0,$.jsx)(ct,{className:`size-[1.125rem]`})}),t[43]=D):D=t[43];let p=n.result?.projectSummary;t[44]===p?O=t[45]:(O=(0,$.jsx)(`p`,{className:`relative text-lg font-medium leading-8 text-fg sm:text-xl`,children:p}),t[44]=p,t[45]=O),k=n.result?.currentState||e.length||r?.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:()=>x(fde),children:[c.why,(0,$.jsx)(jd,{className:q(`size-3.5 transition-transform`,b&&`rotate-180`)})]}),b?(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:c.evidenceHint}),n.result?.currentState?(0,$.jsx)(`p`,{children:n.result.currentState}):null,e.length?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map(e=>(0,$.jsxs)(`span`,{className:`rounded-full bg-surface-hover px-2.5 py-1`,children:[(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:e.title}),` · `,e.horizon===`current`?c.current:e.horizon===`ongoing`?c.ongoing:c.longTerm]},e.id))}):null,r?.evidence.slice(0,3).map(dde)]}):null]}):null,t[3]=i,t[4]=v,t[5]=m,t[6]=f,t[7]=a,t[8]=b,t[9]=o,t[10]=s,t[11]=n.result,t[12]=c.current,t[13]=c.evidenceHint,t[14]=c.eyebrow,t[15]=c.longTerm,t[16]=c.ongoing,t[17]=c.summaryTitle,t[18]=c.why,t[19]=S,t[20]=C,t[21]=w,t[22]=T,t[23]=E,t[24]=D,t[25]=O,t[26]=k,t[27]=A,t[28]=j,t[29]=M,t[30]=N}else S=t[19],C=t[20],w=t[21],T=t[22],E=t[23],D=t[24],O=t[25],k=t[26],A=t[27],j=t[28],M=t[29],N=t[30];let P;t[46]!==E||t[47]!==D||t[48]!==O||t[49]!==k?(P=(0,$.jsxs)(`div`,{className:E,children:[D,O,k]}),t[46]=E,t[47]=D,t[48]=O,t[49]=k,t[50]=P):P=t[50];let F;t[51]!==S||t[52]!==i||t[53]!==v||t[54]!==m||t[55]!==f||t[56]!==l||t[57]!==C||t[58]!==g||t[59]!==c.adjust||t[60]!==c.cancel||t[61]!==c.continueWithCorrection||t[62]!==c.correctionPlaceholder||t[63]!==c.correctionTitle||t[64]!==c.matches||t[65]!==c.startConversation||t[66]!==c.starterHint||t[67]!==c.starterTitle||t[68]!==c.summaryQuestion?(F=f?(0,$.jsxs)(`div`,{className:`xopc-reveal-calibration mx-auto mt-7 w-full max-w-xl rounded-xl border border-edge bg-surface-panel p-5 text-left shadow-surface`,children:[(0,$.jsx)(`label`,{className:`text-sm font-semibold text-fg`,htmlFor:`understanding-correction`,children:l?c.starterTitle:c.correctionTitle}),l?(0,$.jsx)(`p`,{className:`mt-1.5 text-xs leading-5 text-fg-muted`,children:c.starterHint}):null,(0,$.jsx)(`textarea`,{id:`understanding-correction`,value:m,onChange:e=>h(e.target.value),placeholder:c.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:[l?null:(0,$.jsx)(X,{variant:`ghost`,disabled:g,onClick:()=>p(!1),children:c.cancel}),(0,$.jsx)(X,{variant:`primary`,disabled:i||v||!m.trim(),onClick:()=>void C(),children:l?c.startConversation:c.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:c.summaryQuestion}),(0,$.jsxs)(`div`,{className:`mt-4 flex flex-col gap-3 sm:flex-row-reverse`,children:[(0,$.jsx)(X,{className:`h-11 flex-1`,variant:`primary`,disabled:g,onClick:()=>void S(`confirmed`),children:c.matches}),(0,$.jsx)(X,{className:`h-11 flex-1`,variant:`secondary`,disabled:g,onClick:()=>p(!0),children:c.adjust})]})]}),t[51]=S,t[52]=i,t[53]=v,t[54]=m,t[55]=f,t[56]=l,t[57]=C,t[58]=g,t[59]=c.adjust,t[60]=c.cancel,t[61]=c.continueWithCorrection,t[62]=c.correctionPlaceholder,t[63]=c.correctionTitle,t[64]=c.matches,t[65]=c.startConversation,t[66]=c.starterHint,t[67]=c.starterTitle,t[68]=c.summaryQuestion,t[69]=F):F=t[69];let I;t[70]===a?I=t[71]:(I=a?(0,$.jsx)(`p`,{className:`mt-5 text-sm text-danger`,role:`alert`,children:a}):null,t[70]=a,t[71]=I);let L;t[72]!==P||t[73]!==F||t[74]!==I||t[75]!==A||t[76]!==j||t[77]!==M||t[78]!==N?(L=(0,$.jsxs)(`div`,{className:A,children:[j,M,N,P,F,I]}),t[72]=P,t[73]=F,t[74]=I,t[75]=A,t[76]=j,t[77]=M,t[78]=N,t[79]=L):L=t[79];let R;return t[80]!==w||t[81]!==T||t[82]!==L?(R=(0,$.jsx)(`section`,{className:w,"aria-live":T,children:L}),t[80]=w,t[81]=T,t[82]=L,t[83]=R):R=t[83],R}function dde(e,t){return(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(Re,{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}`)}function fde(e){return!e}function t5(e,t){return Object.fromEntries(e.map(e=>[e,t]))}function pde(e,t){let n=t5(t,`running`);for(let t of e)n[t.sourceId]=t.status;return n}async function mde(e){if(!e)return;let t=Date.now()+75e3;for(;Date.now()<t;){try{let t=await $8(e);if(r5.getState().updateDirectoryRun(t),t.status===`completed`||t.status===`failed`||t.status===`canceled`)return}catch{}await new Promise(e=>window.setTimeout(e,800))}}var n5={status:`idle`,drawerOpen:!1,directoryStatus:`idle`,directoryRun:null,sources:{},itemCounts:{},memories:[],threads:[],error:void 0},r5=It((e,t)=>({...n5,setDrawerOpen:n=>{!n&&t().status===`completed`?e({...n5}):e({drawerOpen:n})},finish:()=>e({...n5}),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`);e({directoryStatus:r,directoryRun:n,status:r===`completed`&&i?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:t5(r,`running`),itemCounts:Object.fromEntries(r.map(e=>[e,0])),memories:[],threads:[],error:void 0});try{let o=await a(r),s=pde(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 mde(n);let d=l.length?await tde(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?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)}))}}}})),hde={folder:Le,file:zg,recent:cg,git:Re,calendar:pu,task:bv,note:sl,mail:Tv,message:Pv,service:nx,data:Lm};function gde(e){let t=(0,Q.c)(28),{signals:n,ariaLabel:r,centerLabel:i}=e,a,o,s,c,l,u,d,f;if(t[0]!==r||t[1]!==i||t[2]!==n){let e=n.slice(0,3);a=Math.max(0,n.length-e.length),c=`xopc-source-convergence mx-auto mt-9 w-full max-w-[34rem] overflow-hidden rounded-xl border border-edge bg-surface-panel px-5 py-6 shadow-surface sm:px-6`,l=`img`,u=r;let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ua,{className:`size-24`,mood:`work`}),t[11]=p):p=t[11],t[12]===i?d=t[13]:(d=(0,$.jsxs)(`div`,{className:`flex flex-col items-center text-center`,"aria-hidden":!0,children:[p,(0,$.jsx)(`span`,{className:`mt-3 text-[11px] font-semibold tracking-[0.16em] text-fg-muted`,children:i})]}),t[12]=i,t[13]=d),t[14]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,$.jsx)(`div`,{className:`mt-5 h-1 overflow-hidden rounded-full bg-surface-hover`,"aria-hidden":!0,children:(0,$.jsx)(`span`,{className:`xopc-source-convergence-progress block h-full w-2/5 rounded-full bg-accent`})}),t[14]=f):f=t[14],o=`mt-5 divide-y divide-edge-subtle border-y border-edge-subtle`,s=e.map(_de),t[0]=r,t[1]=i,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f}else a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10];let p;t[15]!==o||t[16]!==s?(p=(0,$.jsx)(`div`,{className:o,children:s}),t[15]=o,t[16]=s,t[17]=p):p=t[17];let m;t[18]===a?m=t[19]:(m=a>0?(0,$.jsxs)(`p`,{className:`mt-3 text-center text-xs text-fg-muted`,"aria-hidden":!0,children:[`+`,a]}):null,t[18]=a,t[19]=m);let h;return t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==d||t[24]!==f||t[25]!==p||t[26]!==m?(h=(0,$.jsxs)(`div`,{className:c,role:l,"aria-label":u,children:[d,f,p,m]}),t[20]=c,t[21]=l,t[22]=u,t[23]=d,t[24]=f,t[25]=p,t[26]=m,t[27]=h):h=t[27],h}function _de(e){let t=hde[e.kind];return(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-3 py-2.5 text-left`,"aria-hidden":!0,children:[(0,$.jsx)(`span`,{className:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-hover text-fg-muted`,children:(0,$.jsx)(t,{className:`size-4`})}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,title:e.detail,children:[(0,$.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:e.label}),e.meta?(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,children:e.meta}):null]}),(0,$.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-accent`})]},e.id)}var vde={sm:{frame:`size-9 rounded-lg`,image:`size-7`,fallback:`size-4`},md:{frame:`size-10 rounded-xl`,image:`size-8`,fallback:`size-5`},lg:{frame:`size-12 rounded-xl`,image:`size-10`,fallback:`size-5`}};function i5(e){let t=(0,Q.c)(15),{connector:n,size:r,className:i}=e,a=r===void 0?`md`:r,o=n?.branding?.logoUrl,[s,c]=(0,Z.useState)(!1),l=vde[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=q(`flex shrink-0 items-center justify-center overflow-hidden border border-edge bg-white`,l.frame,i),t[3]=i,t[4]=l.frame,t[5]=f):f=t[5];let p=n?.displayName,m;t[6]!==l.fallback||t[7]!==l.image||t[8]!==s||t[9]!==o?(m=o&&!s?(0,$.jsx)(`img`,{src:o,alt:``,loading:`lazy`,draggable:!1,className:q(`object-contain`,l.image),onError:()=>c(!0)}):(0,$.jsx)(Iy,{className:q(`text-fg-muted`,l.fallback),"aria-hidden":!0}),t[6]=l.fallback,t[7]=l.image,t[8]=s,t[9]=o,t[10]=m):m=t[10];let h;return t[11]!==f||t[12]!==p||t[13]!==m?(h=(0,$.jsx)(`span`,{className:f,title:p,children:m}),t[11]=f,t[12]=p,t[13]=m,t[14]=h):h=t[14],h}async function a5(e,t){let n=await J(Y(e),t);if(!n.ok)throw Error(n.error??`Connection request failed.`);return n.payload}function o5({definition:e,instance:t,onClose:n,onChanged:r}){let i=Pt(e=>e.language)===`zh`,[a,o]=(0,Z.useState)(t),[s,c]=(0,Z.useState)(),[l,u]=(0,Z.useState)(),[d,f]=(0,Z.useState)(),[p,m]=(0,Z.useState)(),[h,g]=(0,Z.useState)(!1),[_,v]=(0,Z.useState)(),y=a?.instanceId??e.id,b=(0,Z.useCallback)(async()=>{let e=await a5(`/api/connectors/${encodeURIComponent(y)}/accounts`);c(e),e.authorization&&u(e.authorization)},[y]);(0,Z.useEffect)(()=>{a&&b().catch(e=>v(String(e)))},[a,b]);let x=l&&[`preparing`,`awaiting_user`,`verifying`].includes(l.status);(0,Z.useEffect)(()=>{if(!x||!l)return;let e=!1,t=!1,n=async()=>{if(!t){t=!0;try{let t=await a5(`/api/connectors/authorizations/${l.id}`);if(e)return;u(t.authorization),t.authorization.status===`succeeded`&&(await b(),a&&await r(a))}catch(t){e||v(String(t))}finally{t=!1}}},i=()=>{n()},o=()=>{document.visibilityState===`visible`&&i()};i();let s=setInterval(i,1500);return window.addEventListener(`focus`,i),document.addEventListener(`visibilitychange`,o),()=>{e=!0,clearInterval(s),window.removeEventListener(`focus`,i),document.removeEventListener(`visibilitychange`,o)}},[x,l?.id,a,r,b]);let S=l?.challenge?.type===`qr_code`?l.challenge.artifactId:void 0;(0,Z.useEffect)(()=>{if(!S){f(void 0);return}let e=!1,t;return Mt(Y(`/api/connectors/authorizations/${S}/artifact`)).then(async n=>{if(!n.ok)throw Error(`QR code unavailable.`);let r=await n.blob();e||(t=URL.createObjectURL(r),f(t))}).catch(t=>{e||v(String(t))}),()=>{e=!0,t&&URL.revokeObjectURL(t)}},[S]);let C=async t=>{g(!0),v(void 0);try{let n=a??await JM(e.id,{});o(n),u((await a5(`/api/connectors/${encodeURIComponent(n.instanceId)}/authorizations`,{method:`POST`,body:JSON.stringify({accountId:t})})).authorization)}catch(e){v(e instanceof Error?e.message:String(e))}finally{g(!1)}},w=async e=>{g(!0),v(void 0);try{await a5(`/api/connectors/${encodeURIComponent(y)}/policy`,{method:`PATCH`,body:JSON.stringify({maxScope:e})}),await b()}catch(e){v(String(e))}finally{g(!1)}},T=async e=>{g(!0),v(void 0);try{await a5(`/api/connectors/accounts/${encodeURIComponent(e)}`,{method:`DELETE`}),await b()}catch(e){v(String(e))}finally{g(!1)}},E=async e=>{if(a){g(!0),v(void 0);try{if(e===`remove`)await ZM(y),await r(a),n();else if(e===`toggle`){let e=await xN(y,!a.enabled);o(e),await r(e)}else{let e=await QM(y);m(e.ok?i?`验证通过,可用操作:${e.toolCount}`:`Verified: ${e.toolCount} actions`:e.error??e.action??e.status)}}catch(e){v(String(e))}finally{g(!1)}}},D=()=>{a&&r(a),n()};return(0,$.jsx)(sn,{open:!0,onOpenChange:e=>{e||D()},children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`fixed inset-0 z-50 bg-black/40`}),(0,$.jsxs)(an,{className:`fixed left-1/2 top-1/2 z-50 flex h-[min(38rem,calc(100dvh-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 text-fg`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-edge p-5`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(on,{className:`font-semibold`,children:e.displayName}),(0,$.jsx)(tn,{className:`mt-1 text-sm text-fg-muted`,children:i?`连接账号并设置允许的操作。`:`Connect an account and choose allowed actions.`})]}),(0,$.jsx)(X,{variant:`ghost`,onClick:D,"aria-label":i?`关闭`:`Close`,children:(0,$.jsx)(Dt,{className:`size-4`})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-5`,children:[_?(0,$.jsx)(`p`,{role:`alert`,className:`text-sm text-red-600`,children:_}):null,a&&!s?(0,$.jsx)(ta,{className:`h-24 w-full`}):null,a?(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,$.jsx)(X,{disabled:h||!!x,onClick:()=>void E(`toggle`),children:a.enabled?i?`停用`:`Disable`:i?`启用`:`Enable`}),(0,$.jsx)(X,{disabled:h||!!x||!a.enabled,onClick:()=>void E(`test`),children:i?`检查连接`:`Check connection`}),(0,$.jsx)(X,{variant:`ghost`,disabled:h||!!x,onClick:()=>void E(`remove`),children:i?`移除连接`:`Remove connection`})]}):null,p?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:p}):null,s?.accounts.map(e=>(0,$.jsxs)(`div`,{className:`space-y-2 rounded-lg border border-edge p-3`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium`,children:e.label??e.id}),(0,$.jsx)(`p`,{className:`break-all text-xs text-fg-muted`,children:String(e.identity.openId??e.identity.botId??e.identity.userId??e.id)}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:e.enabled&&e.status===`active`?i?`已连接`:`Connected`:i?`已断开`:`Disconnected`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(X,{variant:`secondary`,disabled:h||!!x||a?.enabled===!1,onClick:()=>void C(e.id),children:i?`重新连接`:`Reconnect`}),(0,$.jsx)(X,{variant:`ghost`,disabled:h||!!x||!e.enabled,onClick:()=>void T(e.id),children:i?`断开本地连接`:`Disconnect locally`})]})]},e.id)),s?.policy?(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(`p`,{className:`text-sm`,children:i?`允许的操作`:`Allowed actions`}),(0,$.jsxs)(j,{value:s.policy.maxScope,onChange:e=>void w(e.target.value),disabled:h,children:[(0,$.jsx)(N,{value:`read`,children:i?`仅查看`:`Read only`}),(0,$.jsx)(N,{value:`write`,children:i?`查看并执行操作`:`Read and write`})]}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:i?`写入操作需要确认。断开本地连接不会撤销第三方授权。`:`Writes require confirmation. Local disconnection does not revoke provider authorization.`})]}):null,l?(0,$.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-edge p-4`,"aria-live":`polite`,children:[(0,$.jsx)(`p`,{className:`text-sm`,children:l.status===`succeeded`?i?`账号验证成功`:`Account verified`:l.status===`preparing`?i?`正在准备授权…`:`Preparing authorization…`:l.status===`verifying`?i?`授权已完成,正在验证账号…`:`Authorization complete. Verifying account…`:x?i?`请完成当前步骤,返回后会自动检查结果。`:`Complete this step. We will check the result when you return.`:l.error??(i?`授权已结束,请重新连接。`:`Authorization ended. Connect again.`)}),x&&l.challenge&&l.challenge.totalSteps>1?(0,$.jsxs)(`p`,{className:`text-sm font-medium`,children:[i?`第 ${l.challenge.step} / ${l.challenge.totalSteps} 步`:`Step ${l.challenge.step} of ${l.challenge.totalSteps}`,l.challenge.step>1?i?`:上一步已完成,请打开新的授权页面继续。`:`: Previous step complete. Open the new authorization page to continue.`:i?`:完成后还需要继续授权账号。`:`: Account authorization follows this step.`]}):null,x&&l.challenge?.type===`open_url`?(0,$.jsx)(`a`,{href:l.challenge.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-accent underline`,children:i?`打开授权页面`:`Open authorization page`},l.challenge.url):null,x&&S?d?(0,$.jsx)(`img`,{src:d,alt:i?`授权二维码`:`Authorization QR code`,className:`mx-auto size-56 bg-white object-contain`}):(0,$.jsx)(ta,{className:`mx-auto size-56`}):null,x?(0,$.jsx)(X,{variant:`secondary`,onClick:()=>{a5(`/api/connectors/authorizations/${l.id}/cancel`,{method:`POST`}).then(()=>u({...l,status:`cancelled`,challenge:void 0})).catch(e=>v(String(e)))},children:i?`取消授权`:`Cancel authorization`}):null]}):null]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge p-4`,children:[(0,$.jsx)(X,{variant:`secondary`,onClick:D,children:i?`关闭`:`Close`}),(0,$.jsxs)(X,{disabled:h||!!x||a?.enabled===!1,onClick:()=>void C(),children:[h?(0,$.jsx)(Ye,{className:`mr-2 size-4 animate-spin`}):null,i?`连接账号`:`Connect account`]})]})]})]})})}function s5(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,n),e)}function c5(e,t){return e.runtime.type===`composio`?t.connectorDescriptions[e.runtime.toolkit.toLowerCase()]??e.description:e.description}function yde(e){return e instanceof Error?e.message:String(e)}function l5(e,t){let n=yde(e);return/APIKey_InsufficientPermissions/i.test(n)||/["\\]?code["\\]?\s*:\s*812\b/i.test(n)||/session_management/i.test(n)&&/write access|write permission|at least ["\\]?write/i.test(n)?t.composioSessionWritePermissionRequired:n}var u5=q(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,Ri),bde=q(u5,`min-h-28 font-mono`);function xde(e,t){return e?t.healthStatusLabels[e]??e:t.healthStatusPending}function Sde(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 Cde({draft:e,onChange:t,onClose:n,onInstalled:r,t:i}){let{connector:a}=e,o=c5(a,i),s=a.runtime.type===`composio`&&a.runtime.role===`toolkit`,c=a.runtime.type===`composio`&&a.runtime.role===`toolkit`?a.runtime.toolkit:null,l=a.understanding!=null,[u,d]=(0,Z.useState)(!s),[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(s),[g,_]=(0,Z.useState)(null),[v,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(!1),[C,w]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{if(!s)return;let e=!1;return UM().then(t=>{e||(p(t),d(t.configured))}).catch(t=>{e||_(t instanceof Error?t.message:String(t))}).finally(()=>{e||h(!1)}),()=>{e=!0}},[a.id,s]),(0,Z.useEffect)(()=>{if(!c||!u)return;let e=!1;return S(!0),eN(c).then(t=>{e||b(t)}).catch(t=>{e||_(t instanceof Error?t.message:String(t))}).finally(()=>{e||S(!1)}),()=>{e=!0}},[u,c]);let T=(0,Z.useCallback)(async()=>{let n=sa(),o=a.runtime.type===`mcp`&&a.auth.mode===`oauth`,d=(s||o)&&!n?window.open(``,`_blank`):null;d&&(d.opener=null),_(null),t({...e,installing:!0,error:null,result:null,health:null});try{if(s&&!u)throw Error(i.composioSetupSignInRequired);let f=s&&c?v??await eN(c):null,p=e.config.authConfigId?.trim();if(f?.requiresCustomAuthConfig&&!p)throw Error(i.composioAuthConfigRequired);if(p){let e=f?.authConfigs.find(e=>e.id===p);if(!e||e.status!==`ENABLED`||!e.isEnabledForToolRouter)throw Error(i.composioAuthConfigUnavailable)}let m={};for(let t of a.setup.config??[]){let n=Sde(t.type,e.config[t.key]??``);n!==void 0&&(m[t.key]=n)}p&&(m.authConfigId=p);let h=e.store?await zM(e.store.packageName,{secrets:e.secrets,config:m},e.store.version,e.store.reviewHash):await JM(a.id,{secrets:e.secrets,config:m,definition:a.source===`registry`?a:void 0}),g=null;try{if(s){let e=await VM(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 d?d.location.href=e.authorizationUrl:window.open(e.authorizationUrl,`_blank`,`noopener,noreferrer`);let t=await tN(c,e.connectionId,12e4,e.attemptId);if(d?.close(),l&&C){if(!t.accountId)throw Error(`Connector account is unavailable.`);await mN(t.accountId)}}else if(o){let e=await VM(h.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 d?d.location.href=e.authorizationUrl:window.open(e.authorizationUrl,`_blank`,`noopener,noreferrer`);await HM(h.instanceId),d?.close()}}catch(n){d?.close(),t({...e,installing:!1,result:null,health:null,error:s?l5(n,i):n instanceof Error?n.message:String(n)}),await r(h);return}if(!s)try{g=await QM(h.instanceId)}catch{g=null}t({...e,installing:!1,result:h,health:g}),await r(h)}catch(n){d?.close(),t({...e,installing:!1,error:n instanceof Error?n.message:String(n)})}},[l,v,u,c,a,e,s,C,t,r,i.composioAuthConfigRequired,i.composioAuthConfigUnavailable,i.composioSetupSignInRequired]),E=v?.authConfigs.filter(e=>e.status===`ENABLED`&&e.isEnabledForToolRouter)??[],D=v?.requiresCustomAuthConfig===!0,O=u&&D&&!e.config.authConfigId?.trim();return(0,$.jsx)(sn,{open:!0,onOpenChange:e=>{e||n()},children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,$.jsxs)(an,{className:q(`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] flex -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden`,s?`max-h-[calc(100dvh-2rem)] w-[min(100%-2rem,32rem)]`:`h-[min(100dvh-2rem,36rem)] w-[min(100%-2rem,42rem)]`,`rounded-2xl border border-edge bg-surface-overlay 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)(i5,{connector:a,size:`lg`}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:s5(i.connectDialogTitle,{name:a.displayName})}),(0,$.jsx)(tn,{className:`mt-1 line-clamp-3 text-sm text-fg-muted`,children:o})]})]}),(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:q(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.focusRingPanel),"aria-label":i.modalClose,children:[(0,$.jsx)(Dt,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`sr-only`,children:i.modalClose})]})})]}),(0,$.jsx)(`div`,{className:q(`min-h-0 overflow-y-auto px-6 py-5`,!s&&`flex-1`),children:(0,$.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[s&&m?(0,$.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,"aria-busy":`true`,"aria-label":i.composioSetupTitle,children:[(0,$.jsx)(ta,{className:`h-4 w-40`}),(0,$.jsx)(ta,{className:`mt-2 h-3 w-72 max-w-full`}),(0,$.jsx)(ta,{className:`mt-3 h-16 w-full rounded-xl`})]}):s&&!u?(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)(g8,{providerId:`xopc-cloud`,displayName:`XOPC Cloud`,connected:!1,onConnected:()=>{UM().then(e=>{p(e),d(e.configured)})}})}),(0,$.jsx)(y,{to:`/settings/connector-service`,onClick:n,className:`mt-3 block text-xs text-accent-fg`,children:i.composioSetupByok})]}):null,s&&l?(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,s&&u&&f?.mode===`managed`?(0,$.jsx)(`p`,{className:`text-xs text-fg-subtle`,children:D?i.composioCloudAuthUnavailable:i.composioSetupManaged}):null,s&&u&&f?.mode===`byok`?(0,$.jsxs)(`details`,{open:D,className:`rounded-xl border border-edge bg-surface-base p-3`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer text-xs font-medium text-fg-muted`,children:i.composioAdvancedSettings}),(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:D?i.composioAuthConfigRequiredHint:i.composioAuthConfigManaged})]}),f?.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)(te,{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})]}),x?(0,$.jsx)(ta,{className:`mt-3 h-10 w-full`}):(0,$.jsxs)(j,{className:q(u5,`mt-3`),value:e.config.authConfigId??``,onChange:n=>t({...e,config:{...e.config,authConfigId:n.currentTarget.value},error:null}),children:[D?null:(0,$.jsx)(N,{value:``,children:i.composioAuthConfigManaged}),D&&!e.config.authConfigId?(0,$.jsx)(N,{value:``,disabled:!0,children:i.composioAuthConfigSelect}):null,E.map(e=>(0,$.jsxs)(N,{value:e.id,children:[e.name,` · `,e.authScheme??`OAuth`,` · `,e.id]},e.id))]}),!x&&D&&E.length===0?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-amber-700 dark:text-amber-300`,children:i.composioAuthConfigEmpty}):null]}):null,s&&u&&f?.mode===`byok`?(0,$.jsx)(`p`,{className:`text-xs leading-5 text-fg-subtle`,children:i.composioSessionWritePermissionHint}):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.links??[]).length>0?(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2 rounded-xl border border-edge bg-surface-base p-3`,children:(a.setup.links??[]).map(e=>{let t=e.external!==!1&&/^https:\/\//i.test(e.href);return(0,$.jsxs)(`a`,{href:t?e.href:`#${e.href}`,target:t?`_blank`:void 0,rel:t?`noopener noreferrer`:void 0,className:`inline-flex items-center gap-1.5 text-sm font-medium text-accent-fg hover:underline`,children:[e.label,t?(0,$.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}):null]},`${e.label}:${e.href}`)})}):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)(K,{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:bde,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:u5,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)(Ye,{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:`min-w-0 max-w-full break-words rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600 [overflow-wrap:anywhere]`,children:e.error}):null,g?(0,$.jsx)(`p`,{className:`min-w-0 max-w-full break-words rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600 [overflow-wrap:anywhere]`,children:g}):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:q(`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:xde(e.health?.status,i)})]}),(0,$.jsx)(`p`,{className:`mt-3`,children:e.health?.ok?i.connectionReady:e.health?i.connectionNeedsSetup: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)(X,{variant:`primary`,disabled:!!e.result||e.installing||m||x||O||s&&!u,onClick:()=>void T(),children:[e.installing?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):e.result?(0,$.jsx)(R,{className:`size-4`}):(0,$.jsx)(Iy,{className:`size-4`}),e.result?i.connectedBadge:i.connect]})})]})]})})}function d5(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n=e.draft.connector.runtime.type===`cli`?(0,$.jsx)(o5,{definition:e.draft.connector,onClose:e.onClose,onChanged:e.onInstalled}):(0,$.jsx)(Cde,{...e}),t[0]=e,t[1]=n),n}function f5(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 wde=[`gmail`,`googlecalendar`,`googledrive`,`github`,`linear`];function p5({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 m5=[p5({toolkit:`gmail`,displayName:`Gmail`,description:`Find and understand recent email, then draft or send with your approval.`,category:`automation`,mode:`activity`,bootstrapWindowDays:30}),p5({toolkit:`googlecalendar`,displayName:`Google Calendar`,description:`Understand your schedule and work with approved calendar events.`,category:`automation`,mode:`activity`,bootstrapWindowDays:90,logoFileName:`google-calendar`}),p5({toolkit:`googledrive`,displayName:`Google Drive`,description:`Search and understand approved files in Google Drive.`,category:`data`,mode:`inventory`,bootstrapWindowDays:90,logoFileName:`google-drive`}),p5({toolkit:`github`,displayName:`GitHub`,description:`Understand repositories, issues, pull requests, and reviews.`,category:`code`,mode:`activity`,bootstrapWindowDays:90}),p5({toolkit:`linear`,displayName:`Linear`,description:`Understand and work with Linear issues and projects.`,category:`code`,mode:`activity`,bootstrapWindowDays:60})];function h5(e){return e.runtime.type===`composio`&&e.runtime.role===`toolkit`?e.runtime.toolkit.toLocaleLowerCase():``}function g5(e){let t=new Map(wde.map((e,t)=>[e,t]));return e.filter(e=>e.understanding!=null&&h5(e)).sort((e,n)=>(t.get(h5(e))??2**53-1)-(t.get(h5(n))??2**53-1)||e.displayName.localeCompare(n.displayName))}function Tde(e,t){let n=new Map(e.map(e=>[e.id,e]));for(let e of t)n.set(e.id,e);return g5([...n.values()])}var Ede=2500;function _5(e){return!!(e?.enabled&&(e.status===`connected`||e.connectionStatus===`connected`||e.authStatus===`connected`))}function Dde(e){return e===`gmail`?`mail`:e===`googlecalendar`?`calendar`:e===`googledrive`?`data`:e===`github`?`git`:e===`linear`?`task`:`service`}function Ode(e){let t=(0,Q.c)(58),{busy:n,onBack:r,onContinue:i,onSkip:a,onConnectedSignalsChange:o}=e,s=kt(Pt(Nde)),c=s.onboarding.workDiscovery,l=s.connectorsSettings,[u,d]=(0,Z.useState)(Mde),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 BM();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)},Ede);return BM().then(t=>{e||m(t)}).catch(t=>{e||v(t instanceof Error?t.message:String(t))}).finally(()=>{e||g(!1),window.clearTimeout(t)}),IM({page:1,pageSize:24,verification:`verified`}).then(t=>{e||d(Tde(m5,t.connectors))}).catch(jde),()=>{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(Ade)),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(!_5(O.get(e.id)))return[];let t=h5(e);return[{id:e.id,label:e.displayName,kind:Dde(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=_5(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)(i5,{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)(R,{className:`size-4`}),c.connected]}):h?(0,$.jsx)(ta,{className:`h-8 w-[4.5rem] shrink-0 rounded-lg`,"aria-label":l.loading}):(0,$.jsxs)(X,{type:`button`,variant:`secondary`,className:`h-8 shrink-0 px-3 text-xs`,onClick:()=>S(f5(e)),children:[(0,$.jsx)(rt,{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(kde),children:[y?(0,$.jsx)(Fd,{className:`size-3.5`}):(0,$.jsx)(jd,{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 z;t[32]!==c.connectorLoadFailed||t[33]!==_?(z=_?(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]=z):z=t[34];let B;t[35]===n?B=t[36]:(B=n?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):null,t[35]=n,t[36]=B);let V;t[37]!==n||t[38]!==c.startUnderstanding||t[39]!==i||t[40]!==B?(V=(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`h-11 flex-1`,disabled:n,onClick:i,children:[B,c.startUnderstanding]}),t[37]=n,t[38]=c.startUnderstanding,t[39]=i,t[40]=B,t[41]=V):V=t[41];let H;t[42]!==n||t[43]!==c.back||t[44]!==r?(H=(0,$.jsx)(X,{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]=H):H=t[45];let U;t[46]!==V||t[47]!==H?(U=(0,$.jsxs)(`div`,{className:`mt-7 flex flex-col gap-3 sm:flex-row-reverse`,children:[V,H]}),t[46]=V,t[47]=H,t[48]=U):U=t[48];let W;t[49]!==n||t[50]!==c.skipAndEnter||t[51]!==a?(W=(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]=W):W=t[52];let G;return t[53]!==l||t[54]!==x||t[55]!==w||t[56]!==S?(G=x?(0,$.jsx)(d5,{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]=G):G=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-xl 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)(R,{className:`size-3.5`}),c.connectedCount.replace(`{{count}}`,String(F))]}):null]}),I,L,z]}),U,W,G]})}function kde(e){return!e}function Ade(e){return[e.connectorId,e]}function jde(){}function Mde(){return g5(m5)}function Nde(e){return e.language}var Pde=new Set([`local-recent-files`,`chromium-bookmarks`,`apple-notes`,`apple-mail`,`apple-calendar`,`apple-reminders`]);function Fde(e){return new Set(e.filter(e=>e.availability===`available`&&Pde.has(e.id)).map(e=>e.id))}var Ide=t({WorkDiscoveryPage:()=>S5}),v5=[`folder_structure`,`recent_progress`,`next_steps`];function y5(e){return e instanceof Error?e.message:String(e)}function b5(e){return e.replaceAll(`\\`,`/`).split(`/`).filter(Boolean).slice(-2).join(`/`)||e}function x5(e,t){return e.replace(`{{count}}`,String(t))}function S5({embedded:e=!1,onRequestClose:t,onNavigateAway:n}={}){let r=Pt(e=>e.language),i=kt(r).onboarding.workDiscovery,a=kt(r).chat.workingDirectory,o=l(),[s]=u(),c=s.get(`new`)===`1`,[d,f]=(0,Z.useState)(`loading`),[p,m]=(0,Z.useState)(null),[h,g]=(0,Z.useState)(null),[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(!1),[x,S]=(0,Z.useState)(null),[C,E]=(0,Z.useState)(!1),[D,O]=(0,Z.useState)([]),[k,A]=(0,Z.useState)(()=>new Set),[j,M]=(0,Z.useState)([]),[N,P]=(0,Z.useState)(!1),[F,I]=(0,Z.useState)({current:0,total:0}),[L,R]=(0,Z.useState)([]),[z,B]=(0,Z.useState)(()=>new Set),[V,U]=(0,Z.useState)([]),W=(0,Z.useRef)(!1),G={recent_documents:`recent`,calendar:`calendar`,tasks:`task`,notes:`note`,mail:`mail`,messages:`message`,code_activity:`git`,files:`file`},ee=_?.snapshot?.projectKind??p?.projectKind,te=ee===`coding`?i.codingProject:ee===`general`?i.generalProject:ee===`unknown`?i.unknownProject:null,ne=(_?.snapshot?.files??[]).slice(0,4).map(e=>({id:`snapshot-file:${e.relativePath}`,label:b5(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})),K=_?.rootPath??p?.canonicalRootPath,re=ne.length===0?(p?.fingerprint.recentAreas??[]).slice(0,2).map(e=>({id:`recent-area:${e}`,label:e,kind:`recent`,meta:i.sourceSignals.recentArea,detail:e})):[],ie=ne.length===0?re.length>0?re:[{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}]:[],ae=_?.snapshot?.sampledPathCount,oe=[te,ae==null?null:x5(i.sourceSignals.filesScanned,ae)].filter(e=>!!e).join(` · `),se=_?.snapshot?.branch??p?.fingerprint.branch,ce=_?.snapshot?.changedPathCount??p?.fingerprint.changedFileCount,le=[{id:`work-folder`,label:K?b5(K):i.sourceSignals.workFolder,kind:`folder`,...oe?{meta:oe}:{},...K?{detail:K}:{}},...ne,...ie,{id:`git-state`,label:se??i.sourceSignals.gitState,kind:`git`,...ce==null?{}:{meta:x5(i.sourceSignals.changedFiles,ce)},...se?{detail:`Git · ${se}`}:{}},...L.filter(e=>z.has(e.id)).map(e=>({id:e.id,label:e.displayName,kind:G[e.category]??`data`})),...V],ue=e=>{B(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||(R(t),B(Fde(t)))}),()=>{e=!0}},[]);let de=(0,Z.useCallback)(e=>{r5.getState().updateDirectoryRun(e),v(e),e.status===`completed`?f(e.feedback?.recognitionDecision===`confirmed`?`recommendation`:`recognition`):e.status===`failed`||e.status===`canceled`?f(`error`):f(`running`)},[]),fe=async()=>{b(!0),S(null);try{let e=await ede();if(g(e.processingTarget),!e.candidates.length){S(i.noCandidates);return}O(e.candidates),A(new Set([e.candidates[0].rootPath])),f(`candidates`)}catch(e){S(y5(e))}finally{b(!1)}},pe=e=>{A(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},me=(0,Z.useCallback)((e,t,n)=>{r5.getState().updateDirectoryRun(e),v(e),I({current:t+1,total:n}),M(n=>{let r=[...n];return r[t]=e,r}),f(`running`)},[]),he=(0,Z.useCallback)(e=>{M(t=>t.map(t=>t?.id===e.id?e:t))},[]),ge=async()=>{let e=D.filter(e=>k.has(e.rootPath));if(!e.length)return;b(!0),S(null),M([]),I({current:1,total:e.length}),P(!0),W.current=!1;let t=!1,n=h?.remoteModel?`remote_allowed`:`local_only`;try{let r=await sde(e,{grantDirectory:e=>Z8(e,n),startRun:Q8,fetchRun:$8,shouldStop:()=>W.current,onRun:(e,r,i)=>{me(e,r,i),t||(t=!0,r5.getState().collectSources(e.id,[...z],n))},onError:(t,n,r)=>{I({current:r+1,total:e.length}),S(i.folderAnalysisFailed.replace(`{{folder}}`,n.displayName).replace(`{{error}}`,y5(t)))}});if(W.current)return;let a=r.find(e=>e.status===`completed`)??r.at(-1);a?de(a):f(`candidates`)}catch(e){S(y5(e)),f(`candidates`)}finally{P(!1),b(!1)}},_e=rB({onPicked:(0,Z.useCallback)(async e=>{b(!0),S(null);try{let t=await $ue(e);m(t),g({provider:t.provider,remoteModel:t.remoteModel}),f(`consent`)}catch(e){S(y5(e)),f(`intro`)}finally{b(!1)}},[])});(0,Z.useEffect)(()=>{if(!c){let e=r5.getState().directoryRun;if(e){de(e);return}}let e=!1,n=window.setTimeout(()=>{e||f(`intro`)},4e3);return Y8().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 $8(i.activeRunId);e||(window.clearTimeout(n),de(t));return}catch{}e||(window.clearTimeout(n),f(`intro`))}}).catch(t=>{window.clearTimeout(n),e||(S(y5(t)),f(`intro`))}),()=>{e=!0,window.clearTimeout(n)}},[de,o,t,c]),(0,Z.useEffect)(()=>{if(!_||d!==`running`||N)return;let e=!1,t=async()=>{try{let t=await $8(_.id);e||de(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)}},[de,N,d,_]);let ve=async()=>{b(!0);try{await X8()}finally{t?t():o(`/chat`,{replace:!0})}},ye=async()=>{if(p){b(!0),S(null),M([]),I({current:0,total:0});try{let e=p.remoteModel?`remote_allowed`:`local_only`;await Z8(p.canonicalRootPath,e);let t=await Q8(p.canonicalRootPath);de(t),r5.getState().collectSources(t.id,[...z],e)}catch(e){S(y5(e)),f(`consent`)}finally{b(!1)}}},be=(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}`:``}`)},xe=e=>{v(e),E(!1),e.status===`completed`?f(e.feedback?.recognitionDecision===`confirmed`?`recommendation`:`recognition`):e.status===`failed`||e.status===`canceled`?f(`error`):f(`running`)},Se=async()=>{_&&(W.current=!0,de(await nde(_.id)))},Ce=()=>{n?.(),o(`/chat`)},we=()=>{if(p){ye();return}ge()},Te=()=>{f(p?`consent`:D.length?`candidates`:`intro`)},Ee=async(e,t)=>{if(!_)return;await ide(_.id,e.id).catch(()=>{});let n=t?`${r===`zh`?`先帮我评估这个方向,不要修改文件:`:`First assess this direction without changing files:`}\n\n${e.actionPrompt}`:e.actionPrompt;be(_.conversationId,n)},De=async(e,t)=>{if(!_)return!1;b(!0),S(null);try{let n=await e5(_.id,e,t);return v(n),he(n),f(`recommendation`),!0}catch(e){return S(y5(e)),!1}finally{b(!1)}},Oe=async(e,t)=>{if(!_)return!1;b(!0),S(null);try{let n=await e5(_.id,t,t===`corrected`?e:void 0);return v(n),he(n),be(_.conversationId,e,!0),!0}catch(e){return S(y5(e)),!1}finally{b(!1)}},ke=_?.result?.suggestions.find(e=>e.id===_.result?.primarySuggestionId)??_?.result?.suggestions[0],Ae=_?.result?.suggestions.filter(e=>e.id!==ke?.id)??[],je=e=>e===`command`?i.riskCommand:e===`file_write`?i.riskFileWrite:i.riskAnalysis,Me=j.filter(e=>e?.status===`completed`),Ne=e&&d===`candidates`,Pe=Me.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:Me.map(e=>{let t=D.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-on-accent`:`bg-surface-hover text-fg hover:bg-surface-active`}`,onClick:()=>xe(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`:`xopc-work-discovery-experience relative flex min-h-full flex-1 flex-col`,children:[(0,$.jsxs)(`main`,{className:e?`app-main-surface xopc-work-discovery-stage xopc-onboarding-scroll relative z-10 mx-auto my-3 flex min-h-0 w-[calc(100%_-_1.5rem)] ${d===`recognition`?`max-w-[58rem]`:`max-w-[46rem]`} flex-1 flex-col rounded-xl bg-surface-panel px-5 py-7 shadow-surface sm:my-4 sm:w-[calc(100%_-_2rem)] sm:px-8 sm:py-9 ${Ne?`overflow-hidden`:`overflow-y-auto`}`:`app-main-surface mx-auto my-4 flex w-[calc(100%_-_2rem)] ${d===`recognition`?`max-w-[58rem]`:`max-w-[40rem]`} flex-1 flex-col rounded-xl bg-surface-panel px-5 py-10 shadow-surface sm:px-8 sm:py-16`,children:[d===`intro`?(0,$.jsx)(`div`,{className:q(`flex items-center justify-center`,e?`mb-7 sm:mb-9`:`mb-10`),children:(0,$.jsx)(ua,{className:`size-28`,mood:`curious`})}):null,d===`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,"aria-label":i.loading,children:[(0,$.jsx)(ta,{className:`size-14 rounded-xl`}),(0,$.jsx)(ta,{className:`mt-7 h-5 w-44 rounded-full`}),(0,$.jsx)(ta,{className:`mt-3 h-3.5 w-64 max-w-full rounded-full`})]}):null,d===`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:[L.length?(0,$.jsxs)(`div`,{className:`mb-5 overflow-hidden rounded-xl border border-edge bg-surface-panel text-left shadow-surface`,children:[(0,$.jsxs)(`div`,{className:`px-4 py-3.5`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:i.localSourcesTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:i.localSourcesSubtitle})]}),(0,$.jsx)(`div`,{className:`grid border-t border-edge-subtle sm:grid-cols-2`,children:L.map(e=>{let t=z.has(e.id);return(0,$.jsxs)(`button`,{type:`button`,className:q(`flex min-h-12 items-center justify-between gap-3 border-b border-edge-subtle px-4 py-3 text-left text-sm transition-colors last:border-b-0 sm:[&:nth-last-child(-n+2)]:border-b-0 sm:[&:nth-child(odd)]:border-r`,t?`bg-accent-soft/55 text-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`),"aria-pressed":t,onClick:()=>ue(e.id),children:[(0,$.jsx)(`span`,{className:`truncate font-medium`,children:e.displayName}),(0,$.jsx)(`span`,{className:q(`flex size-5 shrink-0 items-center justify-center rounded-full border transition-colors`,t?`border-accent bg-accent text-on-accent`:`border-edge`),children:t?(0,$.jsx)(w,{className:`size-3`,"aria-hidden":!0}):null})]},e.id)})})]}):null,(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`h-12 w-full gap-2`,onClick:()=>void fe(),disabled:y||_e.picking,children:[y?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):(0,$.jsx)(IC,{className:`size-4`}),i.quickScan]}),(0,$.jsxs)(X,{type:`button`,variant:`secondary`,className:`mt-3 h-11 w-full gap-2`,onClick:_e.pick,disabled:y||_e.picking,children:[_e.picking?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):(0,$.jsx)(Le,{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)(IC,{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 ve(),disabled:y,children:i.skip})]}):null,d===`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)(`p`,{className:`mb-2 text-xs font-semibold uppercase tracking-[0.16em] text-accent-fg`,children:i.sourceStepEyebrow}),(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?`xopc-onboarding-scroll mt-5 min-h-0 flex-1 space-y-2 overflow-y-auto overscroll-contain pr-1`:`mt-7 space-y-2`,children:D.map((e,t)=>{let n=k.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:()=>pe(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-on-accent`:`border-edge bg-surface-base text-transparent`}`,children:(0,$.jsx)(w,{className:`size-3.5`})}),(0,$.jsx)(Le,{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 bg-surface-hover/70 px-4 py-3 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(IC,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`}),(0,$.jsxs)(`span`,{children:[i.multiFolderPrivacyNote,` `,h?.remoteModel?i.providerDisclosure.replace(`{{provider}}`,h.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)(X,{type:`button`,variant:`primary`,className:`h-11 flex-1`,disabled:y||k.size===0,onClick:()=>f(`connectors`),children:i.continueToConnectors}),(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:`h-11 flex-1`,disabled:y,onClick:_e.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:()=>f(`intro`),children:i.back})]})]}):null,d===`consent`&&p?(0,$.jsxs)(`section`,{"aria-labelledby":`work-discovery-consent-title`,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.sourceStepEyebrow}),(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 shadow-surface`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3 border-b border-edge-subtle px-4 py-3.5`,children:[(0,$.jsx)(Le,{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:p.displayName}),(0,$.jsx)(`p`,{className:`truncate font-mono text-xs text-fg-muted`,children:p.canonicalRootPath})]}),(0,$.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2.5 py-1 text-xs font-medium text-accent-fg`,children:p.projectKind===`coding`?i.codingProject:p.projectKind===`general`?i.generalProject:i.unknownProject})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 border-b border-edge-subtle bg-surface-base/35 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:p.fingerprint.branch?i.branchValue.replace(`{{branch}}`,p.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(p.fingerprint.changedFileCount))})]}),p.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:p.fingerprint.recentAreas.map(e=>(0,$.jsx)(`code`,{className:`rounded-md bg-surface-hover 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)(zg,{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)(Dt,{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)(IC,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`}),(0,$.jsx)(`p`,{className:`text-sm leading-6 text-fg-muted`,children:p.remoteModel?i.providerDisclosure.replace(`{{provider}}`,p.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)(X,{type:`button`,variant:`primary`,className:`h-11 flex-1`,disabled:y,onClick:()=>f(`connectors`),children:i.continueToConnectors}),(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:`h-11 flex-1`,disabled:y,onClick:_e.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 ve(),children:i.skip})]}):null,d===`connectors`?(0,$.jsx)(Ode,{busy:y,onBack:Te,onContinue:we,onSkip:()=>void ve(),onConnectedSignalsChange:U}):null,d===`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}),F.total>1?(0,$.jsx)(`p`,{className:`mt-2 text-sm font-medium text-accent-fg`,children:i.analyzingFolderProgress.replace(`{{current}}`,String(F.current)).replace(`{{total}}`,String(F.total))}):null]}),(0,$.jsx)(gde,{signals:le,ariaLabel:i.sourceSignals.ariaLabel,centerLabel:i.sourceSignals.centerLabel}),(0,$.jsx)(`div`,{className:`xopc-understanding-progress mx-auto mt-6 grid max-w-[34rem] grid-cols-3 gap-2`,children:v5.map((e,t)=>{let n=Math.max(0,v5.indexOf(_.stage??`folder_structure`)),r=t<n,a=t===n;return(0,$.jsxs)(`div`,{className:`xopc-understanding-step min-w-0 text-left`,"data-active":a||void 0,"data-complete":r||void 0,children:[(0,$.jsx)(`span`,{className:q(`block h-1 rounded-full`,a||r?`bg-accent`:`bg-surface-hover`)}),(0,$.jsx)(`span`,{className:q(`mt-2 block text-[11px] leading-4`,a?`font-medium text-fg`:`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)(X,{type:`button`,variant:`secondary`,className:`h-11 w-full`,onClick:Ce,children:i.continueInBackground}),(0,$.jsx)(`button`,{type:`button`,className:`mx-auto text-sm text-fg-muted hover:text-danger hover:underline`,onClick:()=>void Se(),children:i.cancelAnalysis})]})]}):null,d===`recognition`&&_?.result?(0,$.jsx)(ude,{run:_,language:r,busy:y,error:x,onFinish:De,onStartConversation:Oe},_.id):null,d===`recommendation`&&_?.result&&ke?(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})]}),Pe,(0,$.jsx)(`article`,{className:`mt-7 rounded-xl border border-edge bg-surface-panel p-5 shadow-surface sm:p-7`,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-surface-hover text-fg-muted`,children:(0,$.jsx)(T,{className:`size-5`})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:ke.title}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:ke.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-hover px-2.5 py-1 text-fg-muted`,children:[(0,$.jsx)(H,{className:`size-3.5`}),i.estimatedMinutes.replace(`{{count}}`,String(ke.estimatedMinutes))]}),(0,$.jsx)(`span`,{className:`rounded-full bg-surface-hover px-2.5 py-1 text-fg-muted`,children:je(ke.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:ke.expectedTask})]}),(0,$.jsxs)(`div`,{className:`mt-5 flex flex-wrap gap-2`,children:[(0,$.jsx)(X,{variant:`primary`,className:`h-10 px-4`,onClick:()=>void Ee(ke,!1),children:i.startRecommendedAction}),(0,$.jsx)(X,{className:`h-10 px-4`,variant:`secondary`,onClick:()=>void Ee(ke,!0),children:i.explainFirst})]})]})]})}),Ae.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:()=>E(e=>!e),children:[i.otherDirections,(0,$.jsx)(jd,{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:Ae.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full items-start gap-3 py-4 text-left`,onClick:()=>void Ee(e,!0),children:[(0,$.jsx)(T,{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:()=>be(_.conversationId),children:i.doSomethingElse}),(0,$.jsx)(`button`,{type:`button`,className:`text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>f(`recognition`),children:i.correctUnderstanding})]})]}):null,d===`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)(Dt,{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)(X,{variant:`primary`,className:`h-11 flex-1`,onClick:()=>void rde(_.id).then(de),children:i.retry}),(0,$.jsx)(X,{variant:`secondary`,className:`h-11 flex-1`,onClick:()=>{v(null),m(null),f(`intro`)},children:i.chooseDifferent})]}),(0,$.jsx)(`button`,{type:`button`,className:`mt-6 text-sm text-fg-muted hover:text-fg hover:underline`,onClick:()=>be(_.conversationId),children:i.openConversation})]}):null]},d),_e.hasNativePicker?null:(0,$.jsx)(dB,{open:_e.modalOpen,onOpenChange:_e.setModalOpen,initialAbsolutePath:p?.canonicalRootPath,onConfirm:_e.confirmPick,wd:a})]})}function Lde(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 Rde(e){let{enabled:t,ready:n,configError:r,modelsError:i,config:a,modelsData:o}=e;if(!t||!n||r||i)return!1;let s=Lde(a),c=!Array.isArray(o)||o.length===0;return s||c}var zde=`xopc-onboarding-model-setup-dismissed`;function Bde(e){let t=(0,Q.c)(21),[n,r]=(0,Z.useState)(Vde),{data:i,error:a,isLoading:o,mutate:s}=ri(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}=Xr(e?Di:null,Ti,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=Rde({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(zde,`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 Vde(){return typeof localStorage<`u`&&localStorage.getItem(`xopc-onboarding-model-setup-dismissed`)===`1`}var C5=`/api/models/cloud-onboarding`;async function Hde(){let e=await Mt(Y(C5));if(!e.ok)throw Error(`Cloud onboarding: ${e.status}`);return(await e.json()).payload}function Ude(e){let t=(0,Q.c)(9),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={revalidateOnFocus:!1},t[0]=n):n=t[0];let{data:r,error:i,mutate:a}=Xr(e?C5:null,Hde,n),o=!!r&&!i,s=r?.status===`unseen`&&!r.hasGrant,c,l;t[1]===a?(c=t[2],l=t[3]):(c=()=>a(),l=async()=>{let e=await Mt(Y(C5),{method:`PUT`});if(!e.ok)throw Error(`Cloud onboarding dismissal: ${e.status}`);await a({status:`dismissed`,hasGrant:!1},{revalidate:!1})},t[1]=a,t[2]=c,t[3]=l);let u;return t[4]!==o||t[5]!==s||t[6]!==c||t[7]!==l?(u={ready:o,pending:s,refresh:c,dismiss:l},t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u):u=t[8],u}function Wde({context:e,onDismiss:t,onConnected:n}){let r=Pt(e=>e.language)===`zh`,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)([]),[c,l]=(0,Z.useState)(!1),u=e===`chat`?r?`为对话连接更多模型`:`Connect more models for chat`:e===`personal`?r?`为个人 Agent 一次配好模型`:`Set up models for your personal agent`:r?`连接 XOPC Cloud,省去逐个配置模型`:`Connect XOPC Cloud to simplify model setup`,d=e===`chat`?r?`连接 XOPC Cloud 后,此账号可用的聊天、图片和语音模型会自动同步。你可以继续使用当前聊天模型,稍后再切换。`:`Connect XOPC Cloud to sync the chat, image, and voice models available to your account. You can keep using your current chat model and switch later.`:e===`personal`?r?`连接一次即可为个人 Agent 准备此账号可用的聊天、图片和语音模型。已有模型和明确设置不会改变。`:`Connect once to make the chat, image, and voice models available to your personal agent. Your current model and explicit settings stay in place.`:r?`授权后会同步此账号可用的聊天、图片和语音等模型。已有的默认聊天模型及明确设置保持不变,之后可自行切换。`:`Authorize once to sync the chat, image, and voice models available to your account. Your current default chat model and explicit settings stay in place.`,f=async()=>{a(!0);try{let e=await Mt(Y(`/api/models/catalog`));if(!e.ok)throw Error(`Readiness unavailable`);let t=(await e.json()).payload.sources[`xopc-cloud`]?.models.filter(e=>e.availability===`available`)??[],n=new Set(t.map(e=>e.kind));s([...n.has(`language`)?[r?`聊天`:`chat`]:[],...t.some(e=>e.kind===`language`&&e.input.includes(`image`))?[r?`视觉理解`:`vision`]:[],...n.has(`image`)?[r?`图片生成`:`image generation`]:[],...n.has(`stt`)?[r?`语音识别`:`speech recognition`]:[],...n.has(`tts`)?[r?`语音合成`:`speech synthesis`]:[]]),l(t.length===0)}catch{l(!0)}};return(0,$.jsx)(`div`,{className:`p-5 sm:p-6`,children:(0,$.jsxs)(`div`,{className:`w-full`,children:[(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,$.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-xl bg-accent-soft text-accent-fg`,children:(0,$.jsx)(U,{className:`size-6`,"aria-hidden":!0})}),(0,$.jsx)(X,{type:`button`,variant:`ghost`,"aria-label":i?r?`继续`:`Continue`:r?`暂时不用`:`Maybe later`,onClick:i?n:t,children:(0,$.jsx)(Dt,{className:`size-4`})})]}),(0,$.jsx)(`h1`,{className:`mt-6 text-2xl font-semibold text-fg`,children:i?r?`XOPC Cloud 已连接`:`XOPC Cloud is connected`:u}),(0,$.jsx)(`p`,{className:`mt-3 text-sm leading-6 text-fg-muted`,children:i?c?r?`授权已完成,模型目录暂不可用。稍后可在模型设置中刷新。`:`Authorization completed, but the model catalog is temporarily unavailable. Refresh it later in model settings.`:r?`已同步可用能力:${o.join(`、`)||`模型目录`}。你可以稍后在模型设置中选择默认模型。`:`Available capabilities: ${o.join(`, `)||`model catalog`}. You can choose a default model later in model settings.`:d}),i?(0,$.jsx)(X,{type:`button`,variant:`primary`,className:`mt-7`,onClick:n,children:r?`继续聊天`:`Continue to chat`}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`mt-7`,children:(0,$.jsx)(g8,{providerId:`xopc-cloud`,displayName:`XOPC Cloud`,connected:!1,onConnected:()=>void f()})}),(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`mt-5`,onClick:t,children:r?`暂时不用,继续使用现有模型`:`Maybe later, keep using my current model`})]})]})})}function Gde(){let e=(0,Q.c)(59),t=At(efe),n=Pt($de),r;e[0]===n?r=e[1]:(r=kt(n),e[0]=n,e[1]=r);let i=r,{pathname:a}=b(),o=l(),s=Bde(!!t),c=Ude(!!t),u=a.startsWith(`/settings`)||a===`/personal`,[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!1),h;e[2]!==m||e[3]!==f||e[4]!==t?(h=()=>{if(m(!1),!t){f(null);return}let e=!1;return Y8().then(t=>{e||f(t)}).catch(Qde),()=>{e=!0}},e[2]=m,e[3]=f,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 _=Que({authenticated:!!t,desktop:sa(),settingsRoute:u,modelSetupReady:s.ready,needsModelSetup:s.needsSetup,modelGuideDismissed:s.guideDismissed,cloudOnboardingReady:c.ready,cloudOnboardingPending:c.pending,workDiscovery:d,closed:p}),v;e[8]===m?v=e[9]:(v=()=>{m(!0)},e[8]=m,e[9]=v);let y=v,x;e[10]!==y||e[11]!==o?(x=()=>{y(),o(`/chat`)},e[10]=y,e[11]=o,e[12]=x):x=e[12];let S=x,C;e[13]!==y||e[14]!==s?(C=()=>{y(),s.dismissPermanently(),X8().catch(Zde)},e[13]=y,e[14]=s,e[15]=C):C=e[15];let w=C,T;e[16]!==y||e[17]!==c||e[18]!==s.needsSetup||e[19]!==s.ready||e[20]!==d?(T=async()=>{await c.dismiss(),s.ready&&!s.needsSetup&&!J8(d)&&y()},e[16]=y,e[17]=c,e[18]=s.needsSetup,e[19]=s.ready,e[20]=d,e[21]=T):T=e[21];let E=T,D=_.stage!==`cloud`,O=_.open,k;e[22]!==y||e[23]!==E||e[24]!==w||e[25]!==_.stage||e[26]!==S?(k=e=>{e||(_.stage===`setup`?w():_.stage===`cloud`?E().catch(y):S())},e[22]=y,e[23]=E,e[24]=w,e[25]=_.stage,e[26]=S,e[27]=k):k=e[27];let A;e[28]===_.stage?A=e[29]:(A=_.stage===`cloud`?null:(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[55] bg-scrim backdrop-blur-md`}),e[28]=_.stage,e[29]=A);let j=_.stage===`cloud`?`bottom-4 right-4 max-h-[calc(100vh-2rem)] w-[min(32rem,calc(100vw-2rem))] overflow-y-auto rounded-2xl border border-edge bg-surface-panel shadow-xl`:`xopc-onboarding-dialog inset-0 overflow-hidden`,M;e[30]===j?M=e[31]:(M=q(`app-chrome-shell fixed z-[56] outline-none`,j),e[30]=j,e[31]=M);let N;e[32]===i.onboarding.title?N=e[33]:(N=(0,$.jsx)(on,{className:`sr-only`,children:i.onboarding.title}),e[32]=i.onboarding.title,e[33]=N);let P;e[34]===i.onboarding.subtitle?P=e[35]:(P=(0,$.jsx)(tn,{className:`sr-only`,children:i.onboarding.subtitle}),e[34]=i.onboarding.subtitle,e[35]=P);let F;e[36]!==y||e[37]!==c||e[38]!==E||e[39]!==w||e[40]!==_.stage||e[41]!==S||e[42]!==s||e[43]!==a||e[44]!==f?(F=_.stage===`setup`?(0,$.jsx)(Zue,{onComplete:async()=>{let e=await Y8().catch(Jde);f(e),await s.refresh();let t=await c.refresh().catch(qde),n=t?.status===`unseen`&&!t.hasGrant;sa()&&n&&(await c.dismiss().catch(Kde),n=!1),!J8(e)&&!n&&S()},onDismiss:w,canDismiss:!0}):_.stage===`cloud`?(0,$.jsx)(Wde,{context:a.startsWith(`/chat`)?`chat`:a===`/personal`?`personal`:`general`,onDismiss:()=>void E().catch(y),onConnected:()=>{c.refresh().catch(y)}}):(0,$.jsx)(`div`,{className:`xopc-onboarding-work-stage h-full overflow-hidden`,children:(0,$.jsx)(S5,{embedded:!0,onRequestClose:S,onNavigateAway:y})}),e[36]=y,e[37]=c,e[38]=E,e[39]=w,e[40]=_.stage,e[41]=S,e[42]=s,e[43]=a,e[44]=f,e[45]=F):F=e[45];let I;e[46]!==M||e[47]!==N||e[48]!==P||e[49]!==F?(I=(0,$.jsxs)(an,{className:M,onPointerDownOutside:Xde,onOpenAutoFocus:Yde,children:[N,P,F]}),e[46]=M,e[47]=N,e[48]=P,e[49]=F,e[50]=I):I=e[50];let L;e[51]!==A||e[52]!==I?(L=(0,$.jsxs)(rn,{children:[A,I]}),e[51]=A,e[52]=I,e[53]=L):L=e[53];let R;return e[54]!==_.open||e[55]!==L||e[56]!==D||e[57]!==k?(R=(0,$.jsx)(sn,{modal:D,open:O,onOpenChange:k,children:L}),e[54]=_.open,e[55]=L,e[56]=D,e[57]=k,e[58]=R):R=e[58],R}function Kde(){}function qde(){return null}function Jde(){return null}function Yde(e){return e.preventDefault()}function Xde(e){return e.preventDefault()}function Zde(){}function Qde(){}function $de(e){return e.language}function efe(e){return e.conversationId}function tfe(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 w5=e=>e.status===`queued`||e.status===`running`,T5=new Set,E5,D5=It((e,t)=>({sources:[],starting:!1,async start(n){if(!t().starting){e({starting:!0,error:void 0});try{await J(Y(`/api/user-model/refresh`),{method:`POST`,body:JSON.stringify(n?{sourceIds:[n]}:{})}),await t().poll()}catch(t){e({error:t instanceof Error?t.message:String(t)})}finally{e({starting:!1})}}},poll(){return E5||(E5=(async()=>{try{let n=await J(Y(`/api/user-model/refresh`)),r=new Map(t().sources.map(e=>[e.id,e.status]));e({sources:n.sources,error:void 0}),n.sources.some(e=>!w5(e)&&r.get(e.id)!==e.status)&&Zr(`/api/user-model`);for(let e of n.sources)w5(e)&&e.metadata.phase===`waiting_desktop`&&nfe(e)}catch(t){e({error:t instanceof Error?t.message:String(t)})}})().finally(()=>{E5=void 0}),E5)}}));async function nfe(e){let t=window.electronAPI?.understandingSources?.collect;if(!(!t||T5.size>0)){T5.add(e.id);try{let n;try{let r=(await t([e.adapterId])).find(t=>t.sourceId===e.adapterId);n=r?.status===`completed`?{items:r.items}:{items:[],error:r?.error??`Source collection failed. Check its permissions and retry.`}}catch{n={items:[],error:`Source collection was interrupted. Please retry.`}}await J(Y(`/api/user-model/refresh/sources/${encodeURIComponent(e.id)}/collection`),{method:`POST`,body:JSON.stringify(n)}),await D5.getState().poll()}catch(e){D5.setState({error:e instanceof Error?e.message:String(e)})}finally{T5.delete(e.id)}}}function rfe(){let e=(0,Q.c)(3),t=D5(afe),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=ife;e();let n=window.setInterval(e,t?1500:3e4);return window.addEventListener(`understanding-refresh-updated`,e),window.addEventListener(`focus`,e),()=>{window.clearInterval(n),window.removeEventListener(`understanding-refresh-updated`,e),window.removeEventListener(`focus`,e)}},r=[t],e[0]=t,e[1]=n,e[2]=r),(0,Z.useEffect)(n,r),null}function ife(){D5.getState().poll()}function afe(e){return e.sources.some(ofe)}function ofe(e){return e.status===`queued`||e.status===`running`}var sfe=new Set([`queued`,`probing`,`analyzing`]),O5=[`work-discovery-progress`,`work-discovery-completed`,`work-discovery-failed`,`work-discovery-canceled`];function k5(){let e=(0,Q.c)(7),t=r5(hfe),n=r5(mfe),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],e[0]=r):r=e[0],(0,Z.useEffect)(ffe,r);let i,a;e[1]!==t||e[2]!==n?(i=()=>{if(!t||!n||!sfe.has(n))return;let e=!1,r=async()=>{try{let n=await $8(t);e||r5.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;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],e[5]=o):o=e[5],(0,Z.useEffect)(cfe,o);let s;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(rfe,{}),e[6]=s):s=e[6],s}function cfe(){let e=lfe;for(let t of O5)window.addEventListener(t,e);return()=>{for(let t of O5)window.removeEventListener(t,e)}}function lfe(e){let t=e.detail?.runId;t&&$8(t).then(dfe).catch(ufe)}function ufe(){}function dfe(e){return r5.getState().updateDirectoryRun(e)}function ffe(){let e=!1;return Y8().then(async t=>{let{state:n}=t;if(n.status!==`in_progress`||!n.activeRunId)return;let r=await $8(n.activeRunId);e||r5.getState().updateDirectoryRun(r)}).catch(pfe),()=>{e=!0}}function pfe(){}function mfe(e){return e.directoryRun?.status}function hfe(e){return e.directoryRun?.id}var A5=`workDiscovery`;function gfe(e){return new URLSearchParams(e).get(A5)===`new`}function _fe(e){let t=new URLSearchParams(e);t.delete(A5);let n=t.toString();return n?`?${n}`:``}var vfe=(0,Z.lazy)(()=>QL().then(e=>({default:e.WorkDiscoveryOverlay}))),yfe=(0,Z.lazy)(()=>NL().then(e=>({default:e.TaskDetailModal})));function bfe(){let e=(0,Q.c)(3),t=l(),n,r;return e[0]===t?(n=e[1],r=e[2]):(n=()=>{let e=e=>{let n=e.detail;n?.conversationId&&t(`/chat/${encodeURIComponent(n.conversationId)}`)};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 xfe(){let e=(0,Q.c)(3),t=l(),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 Sfe(){let e=(0,Q.c)(3),t=At(wfe),n=`${At(Cfe)}:${t??``}`,r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsx)(Nle,{children:(0,$.jsx)(Tfe,{})}),e[0]=r):r=e[0];let i;return e[1]===n?i=e[2]:(i=(0,$.jsx)(HP,{children:r},n),e[1]=n,e[2]=i),i}function Cfe(e){return e.baseUrl}function wfe(e){return e.conversationId}function Tfe(){let e=(0,Q.c)(112),t=At(kfe),{pathname:n,search:r}=b(),i=l(),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=Pt(Ofe),u=BI(),d=GV(Dfe),p;e[2]===n?p=e[3]:(p=n.startsWith(`/chat/task/`)?``:n.startsWith(`/chat/`)?n.slice(6):``,e[2]=n,e[3]=p);let m=p,h=m&&m!==`new`?decodeURIComponent(m):null,g;e[4]===h?g=e[5]:(g=e=>h?e.panes[h]?.open===!0:!1,e[4]=h,e[5]=g);let _=$Q(g),v;e[6]!==n||e[7]!==r?(v=n===`/user-model`&&gfe(r),e[6]=n,e[7]=r,e[8]=v):v=e[8];let y=v,x;e[9]!==n||e[10]!==r?(x=n.startsWith(`/tasks/`)?null:new URLSearchParams(r).get(Te),e[9]=n,e[10]=r,e[11]=x):x=e[11];let S=x,C;e[12]!==n||e[13]!==r?(C=we(n,r),e[12]=n,e[13]=r,e[14]=C):C=e[14];let w=C,[T,E]=(0,Z.useState)(y),D,O;e[15]===y?(D=e[16],O=e[17]):(D=()=>{y&&E(!0)},O=[y],e[15]=y,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:_fe(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]!==y?(j=()=>{E(!1),y&&A(),window.requestAnimationFrame(Efe)},e[22]=A,e[23]=y,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)(s4,{}),i=(0,$.jsx)(s3,{}),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)(OF,{})}),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`||I===`personal`;if(s){let t,n,r,i,a,o,s;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(i3,{}),n=(0,$.jsx)(F6,{}),r=(0,$.jsx)(k5,{}),i=(0,$.jsx)(Z6,{}),a=(0,$.jsx)(s3,{}),o=(0,$.jsx)(s4,{}),s=se()?(0,$.jsx)(`div`,{className:q(`w-full`,Mi,Ai),"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)(i3,{}),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,U,W,G,ee,te,ne,K,re,ie,ae,oe,ce;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(F6,{}),H=(0,$.jsx)(k5,{}),U=(0,$.jsx)(Z6,{}),W=(0,$.jsx)(s3,{}),G=(0,$.jsx)(bfe,{}),ee=(0,$.jsx)(xfe,{}),te=(0,$.jsx)(ice,{}),ne=(0,$.jsx)(fce,{}),K=(0,$.jsx)(Uce,{}),re=(0,$.jsx)(Sle,{}),ie=(0,$.jsx)(Ble,{}),ae=(0,$.jsx)(G$,{}),oe=(0,$.jsx)(Q$,{}),ce=(0,$.jsx)(Gde,{}),e[48]=V,e[49]=H,e[50]=U,e[51]=W,e[52]=G,e[53]=ee,e[54]=te,e[55]=ne,e[56]=K,e[57]=re,e[58]=ie,e[59]=ae,e[60]=oe,e[61]=ce):(V=e[48],H=e[49],U=e[50],W=e[51],G=e[52],ee=e[53],te=e[54],ne=e[55],K=e[56],re=e[57],ie=e[58],ae=e[59],oe=e[60],ce=e[61]);let le;e[62]!==P||e[63]!==w||e[64]!==S?(le=S?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(yfe,{taskId:S,backgroundPath:w,onClose:P})}):null,e[62]=P,e[63]=w,e[64]=S,e[65]=le):le=e[65];let ue;e[66]!==M||e[67]!==y||e[68]!==T?(ue=T?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(vfe,{requestedOpen:y,onExited:M})}):null,e[66]=M,e[67]=y,e[68]=T,e[69]=ue):ue=e[69];let de;e[70]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsx)(s4,{}),e[70]=de):de=e[70];let fe;e[71]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,$.jsx)(l4,{}),e[71]=fe):fe=e[71];let pe;e[72]===u?pe=e[73]:(pe=(0,$.jsx)(fse,{reminder:u}),e[72]=u,e[73]=pe);let me;e[74]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,$.jsx)(cse,{}),e[74]=me):me=e[74];let he;e[75]===pe?he=e[76]:(he=(0,$.jsxs)(tfe,{children:[fe,pe,me]}),e[75]=pe,e[76]=he);let ge;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,$.jsx)(eV,{}),e[77]=ge):ge=e[77];let _e;e[78]!==o||e[79]!==d?(_e=!o&&!d?(0,$.jsx)(mI,{}):null,e[78]=o,e[79]=d,e[80]=_e):_e=e[80];let ve;e[81]!==n||e[82]!==d||e[83]!==I||e[84]!==L||e[85]!==S?(ve=(0,$.jsx)(`main`,{id:`app-main-content`,className:`flex min-h-0 flex-1 flex-col overflow-hidden`,children:d!=null&&!S?(0,$.jsx)(n8,{allowOutsideChat:n===`/personal`}):(0,$.jsx)(`div`,{className:q(`flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-surface-panel`,I!==`settings`&&`page-enter`,I===`settings`||L?`overflow-hidden`:`overflow-y-auto overscroll-contain [scrollbar-gutter:stable_both-edges]`),children:(0,$.jsx)(f,{})},I)}),e[81]=n,e[82]=d,e[83]=I,e[84]=L,e[85]=S,e[86]=ve):ve=e[86];let ye;e[87]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,$.jsx)(Ile,{}),e[87]=ye):ye=e[87];let be;e[88]!==o||e[89]!==n||e[90]!==d?(be=!o&&!n.startsWith(`/chat`)&&!d?(0,$.jsx)(cj,{}):null,e[88]=o,e[89]=n,e[90]=d,e[91]=be):be=e[91];let xe;e[92]!==_e||e[93]!==ve||e[94]!==be?(xe=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[_e,ve,ye,be]}),e[92]=_e,e[93]=ve,e[94]=be,e[95]=xe):xe=e[95];let Se;e[96]!==o||e[97]!==h||e[98]!==_||e[99]!==S?(Se=o?null:_&&h&&!S?(0,$.jsx)(C$,{parentConversationId:h}):(0,$.jsx)(KV,{elevated:!!S}),e[96]=o,e[97]=h,e[98]=_,e[99]=S,e[100]=Se):Se=e[100];let Ce;e[101]!==xe||e[102]!==Se?(Ce=(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden`,children:[ge,(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:[xe,Se]})})]}),e[101]=xe,e[102]=Se,e[103]=Ce):Ce=e[103];let Ee;e[104]!==he||e[105]!==Ce?(Ee=(0,$.jsxs)(`div`,{className:`app-chrome-shell flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[de,he,Ce]}),e[104]=he,e[105]=Ce,e[106]=Ee):Ee=e[106];let De;return e[107]!==B||e[108]!==le||e[109]!==ue||e[110]!==Ee?(De=(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,U,W,G,ee,te,ne,K,re,ie,ae,oe,ce,le,ue,Ee]}),e[107]=B,e[108]=le,e[109]=ue,e[110]=Ee,e[111]=De):De=e[111],De}function Efe(){document.querySelector(`[data-work-discovery-trigger]`)?.focus({preventScroll:!0})}function Dfe(e){return e.path}function Ofe(e){return e.language}function kfe(e){return e.conversationId}var Afe={en:`https://xopc.ai/en#download`,zh:`https://xopc.ai/zh#download`};function jfe(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 Mfe(e=Nt()){return Afe[e]}function Nfe(){let e=window.location.hash.replace(/^#\/?/,``).split(/[/?]/,1)[0];return`${window.location.origin}${window.location.pathname}${e?`#/${e}`:``}`}function Pfe({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=VI.commit===`unknown`?`unknown`:VI.commit.slice(0,12),s=[`# xopc renderer error report`,``,`- xopc web version: ${VI.version}`,`- Commit: ${o}`,`- Build time: ${VI.buildTimeIso}`,`- Captured at: ${r.toISOString()}`,`- Source: ${t}`,`- Surface: ${i}`,`- Platform: ${a}`,`- Language: ${Nt()}`,`- Page: ${Nfe()}`,`- User agent: ${navigator.userAgent}`,``,`## Error`,``,"```text",jfe(e),"```"];return n?.trim()&&s.push(``,`## React component stack`,``,"```text",n.trim(),"```"),s.join(`
|
|
89
|
+
`)}var Ffe={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 Ife(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 j5({error:e,source:t=`react`,componentStack:n}){let r=Nt(),i=Ffe[r],a=Mfe(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)(()=>Pfe({error:e,source:t,componentStack:n,capturedAt:m}),[m,n,e,t]),g=async()=>{let e=await Ife(a);s(e?`${i.openFailed} (${e})`:null)},_=async()=>{if(f)return f;d(!0),s(null);try{let e=(await Q6({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 Yr(e.markdown);return l(t?`copied`:`failed`),t},y=async()=>{let e=await _();e&&(e.markdown.length>6e3&&await v(),s(await e8($6(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)(X,{className:`sm:flex-1`,variant:`primary`,onClick:()=>void g(),children:i.download}),(0,$.jsx)(X,{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)(X,{className:`sm:flex-1`,variant:`ghost`,disabled:u,onClick:()=>void v(),children:u?i.collecting:i.copyReport}),(0,$.jsx)(X,{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 M5(){let e=(0,Q.c)(2),t=d(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(j5,{error:t,source:`route`}),e[0]=t,e[1]=n),n}var Lfe=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)(j5,{componentStack:this.state.componentStack,error:this.state.error,source:`react`}):this.props.children}},Rfe=(0,Z.memo)(function(e){let t=(0,Q.c)(19),{className:n}=e,r=Pt(zfe),i;t[0]===r?i=t[1]:(i=kt(r),t[0]=r,t[1]=i);let a=i.settingsMode,o=S3(Bfe),s=S3(Vfe),c;t[2]===n?c=t[3]:(c=q(`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)(Sw,{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 zfe(e){return e.language}function Bfe(e){return e.mode===`advanced`}function Vfe(e){return e.setShowAdvanced}var Hfe={sessions:Le,usage:hd,logs:zg,settingsImports:Le,settingsOverview:S,settingsModels:cv,settingsVoice:Qe,settingsSearch:ot,settingsAppearance:Wy,settingsKeyboardShortcuts:av,settingsSystem:KC,settingsDesktopPet:vb,settingsDesktopApp:zy,settingsAgentBrowser:ze,settingsComputerUse:Bv,settingsAgentDefaults:cv,settingsGateway:ze,settingsRuntimes:sE,settingsDevices:Ew,settingsTunnel:jx,settingsShares:kC};function Ufe(e){let t=(0,Q.c)(3),{tab:n,className:r}=e,i=Hfe[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 Wfe(e){let t=(0,Q.c)(34),{navLinkClassName:n,showAdvanced:r}=e,i=r===void 0?!0:r,a=Pt(Gfe),o;t[0]===a?o=t[1]:(o=kt(a),t[0]=a,t[1]=o);let s=o,c=Kr(),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=Kfe(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)(Xl,{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)(bx,{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)(bx,{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=qfe(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 Gfe(e){return e.language}function Kfe(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 qfe(e){return e.filter(e=>(!!e.hasConfigSchema||vee(e))&&!(Array.isArray(e.ui?.contributions?.settingsPanels)&&e.ui.contributions.settingsPanels.length>0))}function Jfe(e,t){let n=globalThis.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)}function Yfe(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=>Jfe(e,t),a=()=>Yfe(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 Xfe=`settingsBackPath`;function P5(e){if(!e||typeof e!=`object`)return`/chat`;let t=e[Xfe];if(typeof t!=`string`)return`/chat`;let n=t.trim();return!n.startsWith(`/`)||n.startsWith(`//`)?`/chat`:n}var F5=`xopc-web-settings-rail-width-px`;function I5(e){return Math.min(360,Math.max(192,Math.round(e)))}function Zfe(){try{let e=globalThis.localStorage?.getItem(F5);if(e==null)return I5(228);let t=Number.parseInt(e,10);return I5(Number.isFinite(t)?t:228)}catch{return I5(228)}}function Qfe(e){try{globalThis.localStorage?.setItem(F5,String(e))}catch{}}var L5=It((e,t)=>({widthPx:Zfe(),setWidthPx:n=>{let r=I5(n);t().widthPx!==r&&(e({widthPx:r}),queueMicrotask(()=>Qfe(r)))}}));function R5({isActive:e}){return q(`touch-target 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-surface-active text-fg [&_svg]:text-accent-fg`:`text-fg-muted hover:bg-surface-hover hover:text-fg`)}var $fe=q(`touch-target 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`),z5=q(`inline-flex size-11 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`,ji);function B5(e,t){return e.tabs.filter(e=>e===`settingsComputerUse`&&!ca()||!g3(e,t)?!1:!_F.has(e)||sa())}function epe(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=kt(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=B5(n,o);if(e.length===0){f=null;break bb0}let s=r===0&&`pt-0`,p;t[12]===s?p=t[13]:(p=q(`px-4 pb-1 pt-2 text-xs font-medium 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:wF(e),state:a.state,onMouseEnter:()=>gR(wF(e)),onFocus:()=>gR(wF(e)),className:t=>{let{isActive:n}=t;return R5({isActive:n||DF(e,a.pathname)})},children:[(0,$.jsx)(Ufe,{tab:e,className:`size-5 shrink-0 opacity-90`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Ot(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 tpe=(0,Z.memo)(function(){let e=(0,Q.c)(105),t=Pt(npe),n;e[0]===t?n=e[1]:(n=kt(t),e[0]=t,e[1]=n);let r=n,i=b(),a=S3(rpe),o=L5(ipe),s=L5(ape),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),p=N5(ra),m=PF({runtime:NF(),sidebarCollapsed:!1,mobileNavOpen:u}),h=p?m.sidebarLeadingInsetClass:``,g;e[2]===s?g=e[3]:(g=e=>{e.preventDefault();let t=e.currentTarget,n=t.parentElement;t.setPointerCapture(e.pointerId),l(!0);let r=e.clientX,i=L5.getState().widthPx,a=e.pointerId,o=0,c=i,u=i,d=()=>{o=0,u=c,n?.style.setProperty(`--settings-rail-px`,`${u}px`)},f=e=>{c=I5(i+(e.clientX-r)),o===0&&(o=window.requestAnimationFrame(d))},p=()=>{o!==0&&(window.cancelAnimationFrame(o),d());try{t.releasePointerCapture(a)}catch{}l(!1),s(u),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]=g);let v=g,x;e[4]===i.state?x=e[5]:(x=P5(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=q($fe,ji),e[6]=w):w=e[6];let T;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(Wo,{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=yF.map(ope),e[14]=k):k=e[14];let A=k,j;if(e[15]!==i.pathname||e[16]!==a){let t;e[18]===a?t=e[19]:(t=e=>B5(e,a),e[18]=a,e[19]=t);let n;e[20]===i.pathname?n=e[21]:(n=e=>DF(e,i.pathname),e[20]=i.pathname,e[21]=n),j=A.flatMap(t).find(n),e[15]=i.pathname,e[16]=a,e[17]=j}else j=e[17];let M=j,N;e[22]!==i.pathname||e[23]!==a?(N=_3(i.pathname,a),e[22]=i.pathname,e[23]=a,e[24]=N):N=e[24];let P=!N,F;e[25]!==M||e[26]!==t||e[27]!==r.nav.settings?(F=M?Ot(t,M):r.nav.settings,e[25]=M,e[26]=t,e[27]=r.nav.settings,e[28]=F):F=e[28];let I=F,L;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{d(!1)},e[29]=L):L=e[29];let R;e[30]!==i.pathname||e[31]!==i.search?(R=[i.pathname,i.search],e[30]=i.pathname,e[31]=i.search,e[32]=R):R=e[32],(0,Z.useEffect)(L,R);let z=r.nav.settings,B;e[33]!==t||e[34]!==i||e[35]!==a?(B=A.map((e,n)=>(0,$.jsx)(epe,{group:e,groupIndex:n,language:t,location:i,settingsMode:a},e.id)),e[33]=t,e[34]=i,e[35]=a,e[36]=B):B=e[36];let V=a===`advanced`,H;e[37]===V?H=e[38]:(H=(0,$.jsx)(Wfe,{navLinkClassName:R5,showAdvanced:V}),e[37]=V,e[38]=H);let U;e[39]!==B||e[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[B,H]}),e[39]=B,e[40]=H,e[41]=U):U=e[41];let W;e[42]!==r.nav.settings||e[43]!==U?(W=(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:U}),e[42]=r.nav.settings,e[43]=U,e[44]=W):W=e[44];let G;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsx)(Rfe,{}),e[45]=G):G=e[45];let ee;e[46]===W?ee=e[47]:(ee=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[W,G]}),e[46]=W,e[47]=ee);let te=ee,ne;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(Wo,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[48]=ne):ne=e[48];let K;e[49]!==C||e[50]!==S?(K=(0,$.jsx)(y,{to:S,className:z5,title:C,"aria-label":C,children:ne}),e[49]=C,e[50]=S,e[51]=K):K=e[51];let re;e[52]===r.nav.settings?re=e[53]:(re=(0,$.jsx)(`p`,{className:`text-[11px] font-medium uppercase tracking-wider text-fg-subtle`,children:r.nav.settings}),e[52]=r.nav.settings,e[53]=re);let ie;e[54]===I?ie=e[55]:(ie=(0,$.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:I}),e[54]=I,e[55]=ie);let ae;e[56]!==re||e[57]!==ie?(ae=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[re,ie]}),e[56]=re,e[57]=ie,e[58]=ae):ae=e[58];let oe;e[59]===Symbol.for(`react.memo_cache_sentinel`)?(oe=()=>d(!0),e[59]=oe):oe=e[59];let se;e[60]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,$.jsx)(Dv,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[60]=se):se=e[60];let ce;e[61]!==r.nav.settings||e[62]!==u?(ce=(0,$.jsx)(`button`,{type:`button`,className:z5,onClick:oe,"aria-label":r.nav.settings,"aria-expanded":u,children:se}),e[61]=r.nav.settings,e[62]=u,e[63]=ce):ce=e[63];let le;e[64]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsx)($t,{className:`xopc-mobile-nav-overlay fixed inset-0 z-[75] bg-scrim/45 backdrop-blur-[1px] md:hidden`}),e[64]=le):le=e[64];let ue;e[65]===r.nav.settings?ue=e[66]:(ue=(0,$.jsx)(on,{className:`sr-only`,children:r.nav.settings}),e[65]=r.nav.settings,e[66]=ue);let de;e[67]===I?de=e[68]:(de=(0,$.jsx)(tn,{className:`sr-only`,children:I}),e[67]=I,e[68]=de);let fe;e[69]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,$.jsx)(Dt,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),e[69]=fe):fe=e[69];let pe;e[70]===r.nav.settings?pe=e[71]:(pe=(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:z5,"aria-label":r.nav.settings,children:fe})}),e[70]=r.nav.settings,e[71]=pe);let me;e[72]!==O||e[73]!==pe?(me=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 px-4 pb-2 pt-4`,children:[O,pe]}),e[72]=O,e[73]=pe,e[74]=me):me=e[74];let he;e[75]!==te||e[76]!==ue||e[77]!==de||e[78]!==me?(he=(0,$.jsxs)(rn,{children:[le,(0,$.jsxs)(an,{className:`xopc-mobile-nav-content app-chrome-sidebar fixed inset-y-0 left-0 z-[76] flex w-[min(20rem,calc(100vw-3rem))] flex-col bg-surface-rail shadow-float outline-none md:hidden`,children:[ue,de,me,te]})]}),e[75]=te,e[76]=ue,e[77]=de,e[78]=me,e[79]=he):he=e[79];let ge;e[80]!==u||e[81]!==he?(ge=(0,$.jsx)(sn,{open:u,onOpenChange:d,children:he}),e[80]=u,e[81]=he,e[82]=ge):ge=e[82];let _e=c&&`settings-page-rail-resizing`,ve;e[83]===_e?ve=e[84]:(ve=q(`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`,_e),e[83]=_e,e[84]=ve);let ye=`${o}px`,be;e[85]===ye?be=e[86]:(be={"--settings-rail-px":ye},e[85]=ye,e[86]=be);let xe=be,Se=q(`flex shrink-0 items-center justify-between gap-2 pb-2 pt-4`,m.sidebarChromeDraggable&&`[-webkit-app-region:drag]`,h,p&&m.sidebarLeadingInsetClass?`pr-4`:`px-4`),Ce;e[87]!==O||e[88]!==Se?(Ce=(0,$.jsx)(`div`,{className:Se,children:O}),e[87]=O,e[88]=Se,e[89]=Ce):Ce=e[89];let we=r.sidebar.resizeHandleAria,Te=c&&`bg-surface-hover/30 before:bg-edge/80! dark:before:bg-edge/85!`,Ee;e[90]===Te?Ee=e[91]:(Ee=q(`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`,Te,`transition-[background-color] duration-150`,`touch-none select-none`,ji),e[90]=Te,e[91]=Ee);let De;e[92]!==r.sidebar.resizeHandleAria||e[93]!==v||e[94]!==Ee?(De=(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":we,onPointerDown:v,className:Ee}),e[92]=r.sidebar.resizeHandleAria,e[93]=v,e[94]=Ee,e[95]=De):De=e[95];let Oe;e[96]!==te||e[97]!==ve||e[98]!==xe||e[99]!==Ce||e[100]!==De?(Oe=(0,$.jsxs)(`div`,{className:ve,style:xe,children:[Ce,te,De]}),e[96]=te,e[97]=ve,e[98]=xe,e[99]=Ce,e[100]=De,e[101]=Oe):Oe=e[101];let ke;return e[102]!==i.pathname||e[103]!==P?(ke=(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)(`div`,{className:`settings-content-enter min-h-full`,children:(0,$.jsx)(f,{})},i.pathname)}),e[102]=i.pathname,e[103]=P,e[104]=ke):ke=e[104],(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden md:flex-row`,children:[(0,$.jsxs)(`div`,{className:q(`flex shrink-0 items-center gap-2 border-b border-edge-subtle bg-surface-panel px-3 py-2 md:hidden`,m.mainHeaderDraggable&&`[-webkit-app-region:drag]`),children:[K,ae,ce]}),ge,Oe,ke]})});function npe(e){return e.language}function rpe(e){return e.mode}function ipe(e){return e.widthPx}function ape(e){return e.setWidthPx}function ope(e){return sa()&&e.id===`system`?{...e,tabs:[...e.tabs,...vF.tabs]}:e}var spe=(0,Z.memo)(function(e){let t=(0,Q.c)(26),{children:n}=e,r=l(),i=b(),a=Pt(cpe),o;t[0]===a?o=t[1]:(o=kt(a),t[0]=a,t[1]=o);let s=o,c;t[2]===i.state?c=t[3]:(c=P5(i.state),t[2]=i.state,t[3]=c);let u=c,d=N5(ra),f,p;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)},p=[r,u],t[4]=u,t[5]=r,t[6]=f,t[7]=p):(f=t[6],p=t[7]),(0,Z.useEffect)(f,p);let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=[],t[8]=m):m=t[8],(0,Z.useEffect)(lpe,m);let h;t[9]!==u||t[10]!==r?(h=(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]=h):h=t[11];let g=h,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=q(`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]=_):_=t[12];let v;t[13]===n?v=t[14]:(v=(0,$.jsx)(P,{layer:`page`,children:n}),t[13]=n,t[14]=v);let y;t[15]!==s.nav.settings||t[16]!==v?(y=(0,$.jsx)(`div`,{className:_,role:`dialog`,"aria-modal":`true`,"aria-label":s.nav.settings,children:v}),t[15]=s.nav.settings,t[16]=v,t[17]=y):y=t[17];let x=y,S;t[18]!==x||t[19]!==g?(S=(0,$.jsxs)($.Fragment,{children:[g,x]}),t[18]=x,t[19]=g,t[20]=S):S=t[20];let C=S;if(d){let e;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(e=q(`fixed inset-0 flex min-h-0 flex-col bg-surface-base`,aa),t[21]=e):e=t[21];let n;return t[22]===C?n=t[23]:(n=(0,Ma.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 cpe(e){return e.language}function lpe(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function upe(e){let t=(0,Q.c)(24),{sk:n,onPick:r,disabled:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(ct,{className:`size-4`,"aria-hidden":!0}),t[0]=a):a=t[0];let o;t[1]===n.findCapability?o=t[2]:(o=(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-sm text-accent-fg`,children:[a,n.findCapability]}),t[1]=n.findCapability,t[2]=o);let s;t[3]===n.findWelcome?s=t[4]:(s=(0,$.jsx)(`h1`,{className:`text-xl font-semibold text-fg`,children:n.findWelcome}),t[3]=n.findWelcome,t[4]=s);let c;t[5]===n.findDescription?c=t[6]:(c=(0,$.jsx)(`p`,{className:`text-sm leading-relaxed text-fg-muted`,children:n.findDescription}),t[5]=n.findDescription,t[6]=c);let l;if(t[7]!==i||t[8]!==r||t[9]!==n.findExamples){let e;t[11]!==i||t[12]!==r?(e=e=>(0,$.jsx)(X,{disabled:i,onClick:()=>r(e),children:e},e),t[11]=i,t[12]=r,t[13]=e):e=t[13],l=n.findExamples.map(e),t[7]=i,t[8]=r,t[9]=n.findExamples,t[10]=l}else l=t[10];let u;t[14]===l?u=t[15]:(u=(0,$.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:l}),t[14]=l,t[15]=u);let d;t[16]===n.findBack?d=t[17]:(d=(0,$.jsx)(y,{to:`/capabilities/skills`,className:`text-sm text-accent-fg hover:underline`,children:n.findBack}),t[16]=n.findBack,t[17]=d);let f;return t[18]!==o||t[19]!==s||t[20]!==c||t[21]!==u||t[22]!==d?(f=(0,$.jsxs)(`section`,{className:`mx-auto flex max-w-xl flex-col items-start gap-4 py-8 sm:py-12`,children:[o,s,c,u,d]}),t[18]=o,t[19]=s,t[20]=c,t[21]=u,t[22]=d,t[23]=f):f=t[23],f}function V5(){return J(Y(`/api/browser/status`))}function dpe(){return J(Y(`/api/browser/test`),{method:`POST`})}function H5(e=!1){return J(Y(`/api/browser/extension/install`),{method:`POST`,body:JSON.stringify({force:e})})}function U5(e){return J(Y(`/api/browser/extension/open`),{method:`POST`,body:JSON.stringify({action:e})})}async function fpe(e,t){let n=await Mt(Y(`/api/browser/playwright/install/stream`),{method:`POST`,headers:{Accept:`text/event-stream`},signal:t});if(!n.ok||!n.body)throw Error(`Chromium install request failed (HTTP ${n.status}).`);let r=n.body.getReader(),i=new TextDecoder,a=``,o;try{for(;!o;){let t=await r.read();if(t.done)break;a+=i.decode(t.value,{stream:!0}),a=a.replace(/\r\n/g,`
|
|
90
|
+
`);let n=a.split(`
|
|
91
|
+
|
|
92
|
+
`);a=n.pop()??``;for(let t of n){let n=t.split(`
|
|
93
|
+
`).find(e=>e.startsWith(`event:`))?.slice(6).trim(),r=t.split(`
|
|
94
|
+
`).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(``);r&&(n===`progress`&&e(JSON.parse(r)),n===`result`&&(o=JSON.parse(r)))}}}finally{r.releaseLock()}if(!o)throw Error(`Chromium installer ended without a result.`);return o}async function ppe(){await J(Y(`/api/browser/playwright/install/cancel`),{method:`POST`})}var mpe=3e3,hpe=3e4;function gpe(e){return e?e.setupState?e.setupState:e.connected?`connected`:e.artifacts?e.artifacts.installed===!0?`installed_not_connected`:`not_installed`:`loading`:`loading`}function W5(e){let t=At(e=>e.baseUrl),n=At(e=>e.conversationId),r=Xr(e?[`chat-browser-extension-status`,t,n??`anonymous`]:null,V5,{revalidateOnFocus:!0,refreshInterval:e=>e?.payload.driverKind===`extension`&&e.payload.state===`ready`?hpe:mpe}),[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(null),c=r.data?.payload,l=gpe(c?.driverKind===`extension`?c.driverStatus:void 0),u=l===`installed_not_connected`||l===`connected`;return(0,Z.useEffect)(()=>{if(!e)return;let t=()=>void r.mutate();return window.addEventListener(`gateway-realtime-connected`,t),window.addEventListener(`realtime-gap`,t),window.addEventListener(`gateway-authenticated`,t),()=>{window.removeEventListener(`gateway-realtime-connected`,t),window.removeEventListener(`realtime-gap`,t),window.removeEventListener(`gateway-authenticated`,t)}},[e,r.mutate]),{status:c,setupState:l,installed:u,busy:i,error:o,prepareAndOpen:(0,Z.useCallback)(async()=>{a(!0),s(null);try{u||await H5(!1),await U5(`both`),await r.mutate()}catch(e){s(e instanceof Error?e.message:String(e))}finally{a(!1)}},[u,r.mutate])}}var G5=`xopc:browser-extension-nudge:v1`,_pe=720*60*60*1e3;function vpe(e=Date.now()){try{let t=Number(globalThis.localStorage?.getItem(G5));return Number.isFinite(t)&&t>0&&e-t<_pe}catch{return!1}}function ype({enabled:e}){let t=kt(Pt(e=>e.language)).chat,[n,r]=(0,Z.useState)(()=>vpe()),i=W5(e&&!n),a=i.status;return e&&!n&&a?.enabled===!0&&a.driverKind===`extension`&&a.localManagementAvailable===!0&&i.setupState!==`loading`&&i.setupState!==`connected`?(0,$.jsxs)(`section`,{role:`status`,"aria-live":`polite`,className:`flex flex-col gap-3 rounded-2xl border border-edge bg-surface-base px-4 py-3 transition-opacity duration-200 motion-reduce:transition-none sm:flex-row sm:items-center sm:px-5`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-3`,children:[(0,$.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-full bg-surface-inset text-fg`,"aria-hidden":!0,children:(0,$.jsx)(bx,{className:`size-5`,strokeWidth:1.75})}),(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:i.installed?t.browserExtensionReconnectTitle:t.browserExtensionNudgeTitle}),(0,$.jsx)(`p`,{className:`mt-0.5 text-xs leading-5 text-fg-muted`,children:i.installed?t.browserExtensionReconnectBody:t.browserExtensionNudgeBody}),i.error?(0,$.jsx)(`p`,{className:`mt-1 text-xs text-danger`,role:`alert`,children:i.error}):null]})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-end gap-1`,children:[(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`h-9 shrink-0 px-4`,disabled:i.busy,onClick:()=>void i.prepareAndOpen(),children:[i.busy?(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`}):null,i.installed?t.browserExtensionNudgeReconnect:t.browserExtensionNudgeInstall]}),(0,$.jsx)(`button`,{type:`button`,className:`flex size-8 shrink-0 items-center justify-center rounded-lg text-fg-subtle transition-colors duration-150 hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40 motion-reduce:transition-none`,"aria-label":t.browserExtensionNudgeDismiss,onClick:()=>{try{globalThis.localStorage?.setItem(G5,String(Date.now()))}catch{}r(!0)},children:(0,$.jsx)(Dt,{className:`size-4`})})]})]}):null}function bpe(e){let t=`/api/sessions/${encodeURIComponent(e)}/connection-wait`,n=zr(t=>t.sessions[e]?.localDraft),{data:r,mutate:i,isLoading:a}=Xr(n?null:[t,n===!1?`persisted`:`unknown`],async()=>await Hr(e)?null:(await J(Y(t))).payload,{refreshInterval:e=>e?.wait?5e3:0,revalidateOnFocus:!0}),o=(0,Z.useRef)(r);o.current=r;let s=(0,Z.useRef)(!1),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(),f=(0,Z.useCallback)(async(e,n,r,a,c,u)=>{let f=o.current,p=f?.wait;if(!p||s.current)return!1;s.current=!0,l(!0),d(void 0);let m=e===`connect`?_8():null;try{let o=await J(Y(`${t}/actions`),{method:`POST`,body:JSON.stringify({action:e,needKey:n,accountId:r,candidateRef:a,callbackUrl:c,instanceId:u,waitId:p.id,expectedTranscriptId:f.transcriptId,expectedVersion:p.version,idempotencyKey:crypto.randomUUID()})}),s=o.payload.snapshot;if(await i(e=>!e||e.transcriptId!==s.transcriptId||s.revision>=e.revision?s:e,!1),o.payload.authorizationUrl){if(!await v8(o.payload.authorizationUrl,m))throw Error(`Unable to open the authorization window. Allow pop-ups, then retry.`)}else y8(m);return!0}catch(e){return y8(m),e.status!==409&&d(e instanceof Error?e.message:String(e)),await i(),!1}finally{s.current=!1,l(!1)}},[t,i]);return(0,Z.useEffect)(()=>{let t=t=>{let n=t.detail;n?.conversationId===e&&(n.revision??1/0)>(o.current?.revision??0)&&i()};return window.addEventListener(`session-connection-wait-changed`,t),()=>window.removeEventListener(`session-connection-wait-changed`,t)},[e,i]),{wait:r?.wait,isLoading:a,busy:c,error:u,act:f}}var xpe={zh:{waiting:`等待连接`,install:`安装`,installing:`正在准备安装`,connect:`连接`,reconnect:`重新连接`,details:`查看详情`,skip:`跳过连接`,cancel:`取消这个目标`,ready:`已连接`,check:`我已完成授权`,authorizing:`等待完成授权`,queued:`正在恢复任务`,scope:`确认后继续`,scopeHint:`这个目标已等待了一段时间。请确认仍要按下方原始要求继续;如需修改时间范围,请先在聊天中说明。未读等条件将以实际执行时为准。`,account:`选择账号`,all:`查看全部连接`,close:`关闭`,intro:`完成连接后,将自动恢复当前目标。你也可以继续发送消息。`,callbackHint:`远程 Gateway 无法接收本地回调时,粘贴浏览器地址栏中的完整回调 URL。`,callbackPlaceholder:`完整回调 URL`,callbackSubmit:`完成连接`,replace:`更换应用`,confirmReplace:`确认改用`,apps:`个应用需要连接`,preserved:`目标已保留`,retry:`重试检查`,toolsUnavailable:`应用工具暂不可用`,toolsHint:`账号已连接,当前无法使用任务所需工具。可以重试检查,无需重新授权。`},en:{waiting:`Waiting for connection`,install:`Install`,installing:`Preparing installation`,connect:`Connect`,reconnect:`Reconnect`,details:`Details`,skip:`Skip connection`,cancel:`Cancel this objective`,ready:`Connected`,check:`Check authorization`,authorizing:`Waiting for authorization`,queued:`Resuming task`,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 connections`,close:`Close`,intro:`The current objective resumes automatically after connecting. You can keep sending messages.`,callbackHint:`If a remote Gateway cannot receive the local callback, paste the complete callback URL from the browser address bar.`,callbackPlaceholder:`Complete callback URL`,callbackSubmit:`Complete connection`,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.`}},K5=`rounded-lg border border-edge px-3 py-1.5 text-sm text-fg hover:bg-surface-hover disabled:opacity-50`,q5=`rounded-lg bg-accent px-3 py-1.5 text-sm text-on-accent disabled:opacity-50`;function Spe({conversationId:e}){let{wait:t,isLoading:n,busy:r,error:i,act:a}=bpe(e),[o,s]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(),[u,d]=(0,Z.useState)({}),[f,p]=(0,Z.useState)(),[m,h]=(0,Z.useState)(),[g,_]=(0,Z.useState)(!1),[v,y]=(0,Z.useState)(),b=Pt(e=>e.language),x=xpe[b];if(n)return(0,$.jsx)(ta,{className:`mb-2 h-10 w-full rounded-xl`});if(!t)return null;let S=t.needs[0],C=t.needs.length===1,E=t.phase===`queued`,D=t.needs.some(e=>e.capabilityError);if(t.phase===`ready`)return null;let O=E?x.queued:t.phase===`review_scope`?x.scope:C&&S.phase===`install`?g?x.installing:`${x.install} ${S.label}`:C&&S.phase===`connect`?b===`zh`?`连接 ${S.label}`:`Connect ${S.label}`:C&&S.phase===`reconnect`?x.reconnect:C&&S.phase===`authorizing`?x.check:x.details;async function k(e=S){if(e.target.type===`store-connector`){_(!0),y(void 0);try{let t=await RM(e.target.packageName,e.target.version);if(t.reviewHash!==e.target.reviewHash||t.definition.id!==e.target.connectorId||t.definition.provenance?.sha256!==e.target.sha256)throw Error(b===`zh`?`Connector 包在审查后发生了变化,请重新发起推荐。`:`The Connector package changed after review. Request a new recommendation.`);p(f5(t.definition,{packageName:t.packageName,version:t.version,reviewHash:t.reviewHash,permissions:t.permissions})),h(e.key)}catch(e){y(e instanceof Error?e.message:String(e))}finally{_(!1)}}}function A(){t?.phase===`review_scope`?s(!0):C&&S.phase===`install`?k():C&&[`connect`,`reconnect`].includes(S.phase)?a(`connect`,S.key):C&&S.phase===`authorizing`?a(`check`):s(!0)}return(0,$.jsxs)(`section`,{className:`mb-2 rounded-xl border border-edge bg-surface-panel px-3 py-2`,"aria-label":D?x.toolsUnavailable:x.waiting,children:[(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,$.jsx)(Je,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),(0,$.jsxs)(`button`,{type:`button`,className:`min-w-0 flex-1 text-left text-sm text-fg`,onClick:()=>s(!0),children:[D?x.toolsUnavailable:C?`${x.waiting} · ${S.label}`:`${t.needs.length} ${x.apps}`,(0,$.jsx)(T,{className:`ml-1 inline size-3`,"aria-hidden":!0})]}),(0,$.jsxs)(`button`,{type:`button`,className:q5,disabled:r||E||g,onClick:A,children:[r&&(0,$.jsx)(Ye,{className:`mr-1 inline size-3 animate-spin`,"aria-hidden":!0}),O]}),(0,$.jsx)(`button`,{type:`button`,className:`text-xs text-fg-muted hover:text-fg`,disabled:r||E,onClick:()=>void a(`skip`),children:x.skip})]}),(i||v)&&(0,$.jsxs)(`p`,{role:`alert`,className:`mt-2 text-xs text-fg-muted`,children:[i??v,` `,(0,$.jsx)(`button`,{type:`button`,className:`text-accent`,onClick:()=>void a(`check`),children:x.retry})]}),(0,$.jsx)(sn,{open:o,onOpenChange:s,children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between border-b border-edge px-5 py-4`,children:[(0,$.jsx)(on,{className:`font-medium text-fg`,children:x.preserved}),(0,$.jsx)(nn,{"aria-label":x.close,children:(0,$.jsx)(Dt,{className:`size-4`})})]}),(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-5`,children:[(0,$.jsx)(tn,{className:`text-sm text-fg-muted`,children:D?x.toolsHint:t.phase===`review_scope`?x.scopeHint:x.intro}),(0,$.jsx)(`p`,{className:`whitespace-pre-wrap rounded-lg border border-edge p-3 text-sm text-fg`,children:t.summary}),(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:new Date(t.objectiveUpdatedAt).toLocaleString(b===`zh`?`zh-CN`:`en-US`)}),t.timeRange&&(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[new Date(t.timeRange.from).toLocaleString(b,{timeZone:t.timeRange.timezone}),` – `,new Date(t.timeRange.to).toLocaleString(b,{timeZone:t.timeRange.timezone}),` (`,t.timeRange.timezone,`)`]}),t.needs.map(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:r||E,className:K5,onClick:()=>void a(`check`),children:x.retry}):e.phase===`ready`?(0,$.jsxs)(`span`,{className:`text-xs text-fg-muted`,children:[(0,$.jsx)(w,{className:`mr-1 inline size-3`}),x.ready]}):e.phase===`authorizing`?(0,$.jsx)(`button`,{type:`button`,disabled:r,className:K5,onClick:()=>void a(`check`),children:x.check}):e.phase===`install`?(0,$.jsx)(`button`,{type:`button`,disabled:r||E||g,className:q5,onClick:()=>void k(e),children:x.install}):e.phase!==`blocked`&&e.phase!==`choose_account`?(0,$.jsx)(`button`,{type:`button`,disabled:r||E,className:q5,onClick:()=>void a(`connect`,e.key),children:e.phase===`reconnect`?x.reconnect:x.connect}):null]}),e.accounts.length>0&&(0,$.jsx)(F,{value:e.accountId??``,options:e.accounts.map(e=>({value:e.id,label:e.label})),placeholder:x.account,ariaLabel:`${e.label}: ${x.account}`,allowEmpty:!1,disabled:r||E,onChange:t=>void a(`select_account`,e.key,t)}),e.alternatives?.length?(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(F,{value:c?.needKey===e.key?c.candidateRef:``,options:e.alternatives.map(e=>({value:e.candidateRef,label:e.label})),placeholder:x.replace,ariaLabel:`${e.label}: ${x.replace}`,disabled:r||E,allowEmpty:!1,onChange:t=>l({needKey:e.key,candidateRef:t,label:e.alternatives.find(e=>e.candidateRef===t).label})}),c?.needKey===e.key&&(0,$.jsxs)(`button`,{type:`button`,className:K5,disabled:r,onClick:()=>{a(`replace_source`,e.key,void 0,c.candidateRef),l(void 0)},children:[x.confirmReplace,` `,c.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:x.authorizing}),(0,$.jsx)(`button`,{type:`button`,disabled:r,className:`text-accent`,onClick:()=>void a(`connect`,e.key),children:x.reconnect})]}),e.phase===`authorizing`&&e.target.type===`plugin-mcp`?(0,$.jsxs)(`div`,{className:`space-y-2 border-t border-edge pt-2`,children:[(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:x.callbackHint}),(0,$.jsx)(`input`,{type:`password`,autoComplete:`off`,value:u[e.key]??``,placeholder:x.callbackPlaceholder,className:`w-full rounded-lg border border-edge bg-surface-inset px-3 py-2 text-sm text-fg`,onChange:t=>d(n=>({...n,[e.key]:t.target.value}))}),(0,$.jsx)(`button`,{type:`button`,className:K5,disabled:r||!u[e.key]?.trim(),onClick:()=>{let t=u[e.key].trim();d(t=>({...t,[e.key]:``})),a(`submit_callback`,e.key,void 0,void 0,t)},children:x.callbackSubmit})]}):null]},e.key)),(0,$.jsx)(`a`,{href:`#/capabilities/connectors`,className:`text-sm text-accent`,onClick:()=>s(!1),children:x.all})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-t border-edge p-4`,children:[(0,$.jsx)(`button`,{type:`button`,disabled:r||E,className:`text-sm text-fg-muted`,onClick:()=>void a(`cancel`),children:x.cancel}),t.phase===`review_scope`?(0,$.jsx)(`button`,{type:`button`,disabled:r||E,className:q5,onClick:()=>void a(`confirm_scope`),children:x.scope}):null]})]})]})}),f?(0,$.jsx)(d5,{draft:f,onChange:p,onClose:()=>{p(void 0),h(void 0)},onInstalled:async e=>{m&&await a(`install_complete`,m,void 0,void 0,void 0,e.instanceId)&&(p(void 0),h(void 0))},t:kt(b).connectorsSettings}):null]})}var Cpe=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function J5(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&&!Cpe.has(t.type)}function wpe(){return!!document.querySelector(`dialog[open], [aria-modal="true"], [role="dialog"][data-state="open"], [role="alertdialog"][data-state="open"]`)}function Tpe(e,t){return t.disabled||t.editorHidden||e.defaultPrevented||J5(e.target)||J5(document.activeElement)?!1:!wpe()}function Epe(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`&&t.kind!==`file`&&t.kind!==`session`&&t.kind!==`browser_tab`&&t.kind!==`mcp_resource`||typeof t.sourceId!=`string`||typeof t.version!=`string`||typeof t.title!=`string`?[]:[{...typeof t.refId==`string`?{refId:t.refId}:{},kind:t.kind,sourceId:t.sourceId,expectedVersion:t.version,title:t.title,...t.kind===`file`&&(t.fileKind===`file`||t.fileKind===`directory`)?{fileKind:t.fileKind}:{}}]}):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}]})}function Dpe(e){let t=Epe(e.inputs);if(!e.activeRunId&&e.preparation?.state!==`preparation_failed`){let e=t.findIndex(e=>e.status===`queued`);e>=0&&t.splice(e,1)}return t}var Ope=(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=Pt(kpe),f;t[0]===d?f=t[1]:(f=kt(d),t[0]=d,t[1]=f);let p=f,m=Ape,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(jpe),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=xr(e.text),x=new Map(e.contextRefs?.flatMap(Mpe)??[]),S=new Set(b?Pr(b):[]),C=e.contextRefs?.filter(e=>!e.refId||!S.has(e.refId)),w=(b?pr(b,e=>x.get(e)):e.text).trim();return!w&&e.attachments?.length&&(w=e.attachments[0]?.name?.trim()||p.chat.followUpQueueAttachmentOnly),w||=p.chat.followUpQueueEmptyPreview,(0,$.jsxs)(`div`,{role:`listitem`,onDragOver:m,onDrop:r||!c?void 0:g(t),className:q(`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:q(`flex shrink-0 cursor-grab items-center active:cursor-grabbing`,(r||!c)&&`cursor-not-allowed opacity-40`),title:p.chat.followUpQueueDrag,children:(0,$.jsx)(U_,{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:q(`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`,$r.press,$r.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)(ae,{className:`size-3 shrink-0 text-fg-muted`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:w})]}):(0,$.jsx)(`span`,{className:`block truncate`,children:w})}),C?.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:C.map(Npe).join(`, `),children:[(0,$.jsx)(hy,{className:`size-3`,"aria-hidden":!0}),C.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:q(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.press,$r.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)(Fd,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!c||h>=f.length-1,className:q(`inline-flex size-6 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.press,$r.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)(jd,{className:`size-3.5`,"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!_||v,className:q(`inline-flex size-6 items-center justify-center rounded text-accent-fg hover:bg-accent-soft/80`,$r.press,$r.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)(ct,{className:q(`size-3.5`,v&&`animate-pulse`),"aria-hidden":!0})}),(0,$.jsx)(`button`,{type:`button`,disabled:r||!d,className:q(`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`,$r.press,$r.focusRingPanel),title:p.chat.followUpQueueRemove,"aria-label":p.chat.followUpQueueRemove,onClick:t=>{t.stopPropagation(),o(e.id)},children:(0,$.jsx)(Dt,{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(Ppe)?(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 kpe(e){return e.language}function Ape(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`}function jpe(e){return e.status===`queued`}function Mpe(e){return e.refId?[[e.refId,e.title]]:[]}function Npe(e){return e.title}function Ppe(e){return e.attachments?.length}function Fpe({conversationId:e}){let t=At(e=>e.conversationId),n=Pt(e=>e.language).startsWith(`zh`),[r,i]=(0,Z.useState)(!1),[a,o]=(0,Z.useState)(``),s=Xr(e?[`session-preparation`,t,e]:null,async()=>{let t=await Hr(e);if(t&&!t.materialization)return null;let n=await J(Y(`/api/sessions/${encodeURIComponent(e)}/input-state`));return n.payload.preparation?mee.parse(n.payload.preparation):null},{refreshInterval:e=>e?.state===`preparing`?5e3:0,shouldRetryOnError:!1}),{mutate:c}=s;(0,Z.useEffect)(()=>{let t=t=>{t.detail?.conversationId===e&&c()};return window.addEventListener(`session-input-state`,t),()=>window.removeEventListener(`session-input-state`,t)},[e,c]);let l=s.data;if(!l||l.state===`ready`)return null;let u=async()=>{i(!0),o(``);try{let t=await Mt(Y(`/api/sessions/${encodeURIComponent(e)}/preparation/retry`),{method:`POST`,body:JSON.stringify({operationId:l.operationId,expectedRevision:l.revision,idempotencyKey:`${l.operationId}:${l.revision}`})});if(!t.ok)throw Error(`HTTP ${t.status}`);await c()}catch(e){o(e instanceof Error?e.message:String(e))}finally{i(!1)}};return(0,$.jsxs)(`div`,{className:`border-b border-edge-subtle px-3 py-2 text-sm text-fg-muted`,role:`status`,children:[(0,$.jsx)(`span`,{children:l.state===`preparing`?n?`正在准备会话环境…`:`Preparing conversation environment…`:l.lastError??(n?`会话环境准备失败`:`Conversation environment preparation failed`)}),l.state===`preparation_failed`?(0,$.jsx)(`button`,{type:`button`,className:`ml-2 text-accent-fg`,disabled:r,onClick:()=>void u(),children:n?`重试准备`:`Retry preparation`}):null,a?(0,$.jsx)(`span`,{role:`alert`,className:`ml-2`,children:a}):null]})}function Ipe(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:[e.kind===`file`&&e.fileKind===`directory`?(0,$.jsx)(z_,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.kind===`file`?(0,$.jsx)(zg,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.kind===`session`?(0,$.jsx)(Pv,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.kind===`browser_tab`?(0,$.jsx)(mo,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):e.kind===`mcp_resource`?(0,$.jsx)(Lm,{className:`size-3.5 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(hy,{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)(Dt,{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}var Y5=`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 Lpe(e){let t=(0,Q.c)(96),{conversationId:n,project:r,workspacePath:i,canChangeWorkspace:a,disabled:o,environmentPicker:s,onProjectChange:c,onWorkspaceChange:l}=e,u=Pt(Vpe),d;t[0]===u?d=t[1]:(d=kt(u),t[0]=u,t[1]=d);let f=d,p=f.chat.composerContext,m=At(Bpe),h=At(zpe),[g,_]=(0,Z.useState)(``),[v]=fa(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=()=>UR({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=Xr(y,b,x),C=CN(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=rB(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,I=p.label,L=r&&`bg-surface-hover`,R;t[20]===L?R=t[21]:(R=q(`flex min-w-0 max-w-full items-center rounded-full`,L),t[20]=L,t[21]=R);let z;t[22]!==o||t[23]!==f.chat.scopeRemoveProject||t[24]!==c||t[25]!==r?(z=r?(0,$.jsx)(`button`,{type:`button`,disabled:o,title:f.chat.scopeRemoveProject,"aria-label":f.chat.scopeRemoveProject,className:q(Y5,`size-7 shrink-0 px-0 ml-0.5 text-fg-muted`),onClick:()=>c(null),children:(0,$.jsx)(Dt,{className:`size-3.5`,"aria-hidden":!0})}):null,t[22]=o,t[23]=f.chat.scopeRemoveProject,t[24]=c,t[25]=r,t[26]=z):z=t[26];let B=r?.id??``,V=r?.name,H;t[27]!==S.data?.items||t[28]!==S.error?(H=S.error?[]:S.data?.items??[],t[27]=S.data?.items,t[28]=S.error,t[29]=H):H=t[29];let U;t[30]===H?U=t[31]:(U=H.map(Rpe),t[30]=H,t[31]=U);let W=p.chooseProject,G=p.changeProject,ee=p.changeProject,te=p.noProject,ne=p.searchProjects,K=S.isLoading,re=S.error?p.projectsFailed:S.data?.items.length===0?p.noProjects:void 0,ie=r&&`pl-1`,ae;t[32]===ie?ae=t[33]:(ae=q(Y5,`h-8 w-auto max-w-44 gap-1 border-0 bg-transparent pr-2.5 text-sm [&>svg]:hidden [&>span]:text-fg`,ie),t[32]=ie,t[33]=ae);let oe;t[34]!==c||t[35]!==r?.id?(oe=e=>{e!==(r?.id??``)&&c(e||null)},t[34]=c,t[35]=r?.id,t[36]=oe):oe=t[36];let 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]!==B||t[45]!==V||t[46]!==U||t[47]!==re||t[48]!==ae||t[49]!==oe?(se=(0,$.jsx)(F,{value:B,selectedLabel:V,options:U,placeholder:W,ariaLabel:G,title:ee,emptyLabel:te,disabled:o,side:`top`,align:`start`,searchPlaceholder:ne,searchValue:g,onSearchChange:_,loading:K,statusMessage:re,triggerClassName:ae,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:oe}),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]=B,t[45]=V,t[46]=U,t[47]=re,t[48]=ae,t[49]=oe,t[50]=se):se=t[50];let ce;t[51]!==R||t[52]!==z||t[53]!==se?(ce=(0,$.jsxs)(`div`,{className:R,children:[z,se]}),t[51]=R,t[52]=z,t[53]=se,t[54]=ce):ce=t[54];let le=r?s:null,ue;t[55]!==w||t[56]!==s||t[57]!==r?(ue=!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)(aw,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(sv,{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]=ue):ue=t[58];let de;t[59]!==p.retryProjects||t[60]!==S?(de=S.error?(0,$.jsx)(`button`,{type:`button`,className:q(Y5,`size-7 px-0`),"aria-label":p.retryProjects,onClick:()=>void S.mutate(),children:(0,$.jsx)(iS,{className:`size-3.5`,"aria-hidden":!0})}):null,t[59]=p.retryProjects,t[60]=S,t[61]=de):de=t[61];let fe;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?(fe=r?null:(0,$.jsxs)(`button`,{type:`button`,className:q(Y5,`max-w-52`),disabled:o||!a||j.picking,title:M,"aria-label":p.chooseFolder,onClick:j.pick,children:[(0,$.jsx)(Le,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),E?(0,$.jsx)(`span`,{className:`truncate`,children:tB(E)}):C.isLoading?(0,$.jsx)(ta,{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]=fe):fe=t[71];let pe;t[72]!==P||t[73]!==w?(pe=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)(Re,{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]=pe):pe=t[74];let me;t[75]===D?me=t[76]:(me=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]=me);let he;t[77]!==p.label||t[78]!==ce||t[79]!==le||t[80]!==ue||t[81]!==de||t[82]!==fe||t[83]!==pe||t[84]!==me?(he=(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":I,children:[ce,le,ue,de,fe,pe,me]}),t[77]=p.label,t[78]=ce,t[79]=le,t[80]=ue,t[81]=de,t[82]=fe,t[83]=pe,t[84]=me,t[85]=he):he=t[85];let ge;t[86]!==f.chat.workingDirectory||t[87]!==j.confirmPick||t[88]!==j.hasNativePicker||t[89]!==j.modalOpen||t[90]!==j.setModalOpen||t[91]!==E?(ge=j.hasNativePicker?null:(0,$.jsx)(dB,{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]=ge):ge=t[92];let _e;return t[93]!==he||t[94]!==ge?(_e=(0,$.jsxs)($.Fragment,{children:[he,ge]}),t[93]=he,t[94]=ge,t[95]=_e):_e=t[95],_e}function Rpe(e){return{value:e.id,label:e.name}}function zpe(e){return e.baseUrl}function Bpe(e){return e.conversationId}function Vpe(e){return e.language}var X5=`flex size-11 shrink-0 items-center justify-center rounded-full text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent sm:size-10`;function Hpe(e){let t=(0,Q.c)(10),{disabled:n,attachmentCount:r,maxAttachments:i,chat:a,onPickFiles:o}=e,s=r>=i,c;t[0]!==a.attachFile||t[1]!==a.maxAttachmentsReached||t[2]!==s||t[3]!==i?(c=s?$U(a.maxAttachmentsReached,{max:i}):a.attachFile,t[0]=a.attachFile,t[1]=a.maxAttachmentsReached,t[2]=s,t[3]=i,t[4]=c):c=t[4];let l=c,u=n||s,d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(rt,{className:`size-5`,"aria-hidden":!0}),t[5]=d):d=t[5];let f;return t[6]!==l||t[7]!==o||t[8]!==u?(f=(0,$.jsx)(`button`,{type:`button`,className:X5,disabled:u,"aria-label":l,title:l,onClick:o,children:d}),t[6]=l,t[7]=o,t[8]=u,t[9]=f):f=t[9],f}function Upe(e){let t=(0,Q.c)(29),{disabled:n,voiceActive:r,runBusy:i,hasDraft:a,chat:o,onStartVoiceInput:s,onSend:c,onQueue:l,onAbort:u,onInterrupt:d}=e;if(r)return null;let f=i&&a&&!!l,p=i&&!a,m=p?o.abort:f?o.followUpQueueAdd:o.sendMessage,h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(Qe,{className:`size-[1.125rem]`,"aria-hidden":!0}),t[0]=h):h=t[0];let g;t[1]!==o.voiceInput||t[2]!==n||t[3]!==s?(g=(0,$.jsx)(`button`,{type:`button`,className:X5,disabled:n,title:o.voiceInput,"aria-label":o.voiceInput,onClick:s,children:h}),t[1]=o.voiceInput,t[2]=n,t[3]=s,t[4]=g):g=t[4];let _;t[5]!==f||t[6]!==o.abort||t[7]!==o.steeringInterruptSend||t[8]!==u||t[9]!==d?(_=f&&(0,$.jsxs)(Z2,{modal:!1,children:[(0,$.jsx)(Q2,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:X5,"aria-label":o.steeringInterruptSend,title:o.steeringInterruptSend,children:(0,$.jsx)(ee,{className:`size-5`,"aria-hidden":!0})})}),(0,$.jsx)($2,{children:(0,$.jsxs)(e4,{side:`top`,align:`end`,sideOffset:8,className:`z-50 min-w-44 rounded-xl border border-edge bg-surface-overlay p-1 shadow-popover`,children:[d&&(0,$.jsx)(t4,{onSelect:d,className:`cursor-pointer rounded-lg px-3 py-2 text-sm text-fg outline-none focus:bg-surface-hover`,children:o.steeringInterruptSend}),(0,$.jsx)(t4,{onSelect:u,className:`cursor-pointer rounded-lg px-3 py-2 text-sm text-fg outline-none focus:bg-surface-hover`,children:o.abort})]})})]}),t[5]=f,t[6]=o.abort,t[7]=o.steeringInterruptSend,t[8]=u,t[9]=d,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=q(X5,`bg-accent text-on-accent hover:bg-accent-hover hover:text-on-accent disabled:bg-surface-hover disabled:text-fg-disabled`),t[11]=v):v=t[11];let y=!p&&(n||!a||i&&!l),b;t[12]!==f||t[13]!==u||t[14]!==l||t[15]!==c||t[16]!==p?(b=p?u:f?()=>void l?.():c,t[12]=f,t[13]=u,t[14]=l,t[15]=c,t[16]=p,t[17]=b):b=t[17];let x;t[18]===p?x=t[19]:(x=p?(0,$.jsx)(dE,{className:`size-4 fill-current`,"aria-hidden":!0}):(0,$.jsx)(ss,{className:`size-5`,"aria-hidden":!0}),t[18]=p,t[19]=x);let S;t[20]!==m||t[21]!==y||t[22]!==b||t[23]!==x?(S=(0,$.jsx)(`button`,{type:`button`,className:v,disabled:y,"aria-label":m,title:m,onClick:b,children:x}),t[20]=m,t[21]=y,t[22]=b,t[23]=x,t[24]=S):S=t[24];let C;return t[25]!==g||t[26]!==_||t[27]!==S?(C=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[g,_,S]}),t[25]=g,t[26]=_,t[27]=S,t[28]=C):C=t[28],C}function Wpe(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 Gpe=100,Kpe=400,Z5=900;function qpe(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 Jpe(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 Ype(e){let t=(0,Q.c)(8),{name:n,query:r}=e,i;t[0]!==n||t[1]!==r?(i=Jpe(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 Xpe=(0,Z.memo)(function(e){let t=(0,Q.c)(42),{open:n,anchorRef:r,items:i,selectedIndex:a,loading:o,query:s,noResults:c,conversationId:l,recentLabel:u,sectionLabels:d,ariaLabel:f,onSelectItem:p}=e,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={box:null,hoverPreview:null},t[0]=m):m=t[0];let[h,g]=(0,Z.useReducer)(qpe,m),_=h.box,v=h.hoverPreview,y=(0,Z.useRef)(null),b=(0,Z.useRef)(0),x=(0,Z.useRef)(null),S;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{y.current&&=(clearTimeout(y.current),null)},t[1]=S):S=t[1];let w=S,T;t[2]===l?T=t[3]:(T=(e,t,n)=>{w(),b.current+=1;let r=b.current;if(e.kind!==`file`){g({type:`set-hover`,hoverPreview:null});return}let i=e.relativePath;if(!l?.trim()||e.isDirectory||e.isBrowseUp||!i){g({type:`set-hover`,hoverPreview:null});return}y.current=setTimeout(()=>{y.current=null,r===b.current&&_a(i,{conversationId:l}).then(e=>{let{content:i}=e,a=i.length>Z5?`${i.slice(0,Z5)}…`:i;r===b.current&&g({type:`set-hover`,hoverPreview:{text:a,x:t,y:n}})}).catch(()=>{r===b.current&&g({type:`set-hover`,hoverPreview:null})})},420)},t[2]=l,t[3]=T);let E=T,D,O;t[4]!==r||t[5]!==n?(D=()=>{if(!n){g({type:`reset`}),w(),b.current+=1;return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();g({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)}},O=[n,r],t[4]=r,t[5]=n,t[6]=D,t[7]=O):(D=t[6],O=t[7]),(0,Z.useLayoutEffect)(D,O);let k,A;if(t[8]!==i.length||t[9]!==n||t[10]!==a?(k=()=>{!n||a<0||a>=i.length||(x.current?.querySelector(`#at-mention-${a}`))?.scrollIntoView({block:`nearest`})},A=[n,a,i.length],t[8]=i.length,t[9]=n,t[10]=a,t[11]=k,t[12]=A):(k=t[11],A=t[12]),(0,Z.useLayoutEffect)(k,A),!n||typeof document>`u`||_===null)return null;let j=i.length,M=Math.min(_.width,Kpe),N;t[13]!==_.left||t[14]!==_.top||t[15]!==M?(N={position:`fixed`,left:_.left,top:_.top,width:M,transform:`translateY(calc(-100% - 8px))`,zIndex:Gpe},t[13]=_.left,t[14]=_.top,t[15]=M,t[16]=N):N=t[16];let P=a>=0&&a<j?`at-mention-${a}`:void 0,F;t[17]!==o||t[18]!==j?(F=o&&j===0?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2.5 text-sm text-fg-muted`,children:[(0,$.jsx)(Ye,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:`…`})]}):null,t[17]=o,t[18]=j,t[19]=F):F=t[19];let I;t[20]!==i||t[21]!==o||t[22]!==c||t[23]!==p||t[24]!==s||t[25]!==u||t[26]!==E||t[27]!==d||t[28]!==a||t[29]!==j?(I=!o&&j===0?(0,$.jsx)(`div`,{className:`px-3 py-2 text-sm text-fg-muted`,children:c}):(0,$.jsxs)($.Fragment,{children:[i.map((e,t)=>{let n=i[t-1]?.kind,r=d[e.kind],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:q(`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(),p(e))},onPointerEnter:t=>E(e,t.clientX,t.clientY),onPointerLeave:()=>{w(),b.current+=1,g({type:`set-hover`,hoverPreview:null})},children:[(0,$.jsx)(`span`,{className:`mt-0.5 shrink-0`,children:e.kind===`note`?(0,$.jsx)(hy,{className:`size-3.5 text-accent-fg`,"aria-hidden":!0}):e.kind===`session`?(0,$.jsx)(Pv,{className:`size-3.5 text-violet-600 dark:text-violet-400`,"aria-hidden":!0}):e.kind===`skill`?(0,$.jsx)(ct,{className:`size-3.5 text-cyan-600 dark:text-cyan-400`,"aria-hidden":!0}):e.kind===`agent`?(0,$.jsx)(C,{className:`size-3.5 text-emerald-600 dark:text-emerald-400`,"aria-hidden":!0}):e.kind===`browser_tab`?(0,$.jsx)(mo,{className:`size-3.5 text-blue-600 dark:text-blue-400`,"aria-hidden":!0}):e.kind===`mcp_server`?(0,$.jsx)(ix,{className:`size-3.5 text-orange-600 dark:text-orange-400`,"aria-hidden":!0}):e.kind===`mcp_resource`?(0,$.jsx)(Lm,{className:`size-3.5 text-orange-600 dark:text-orange-400`,"aria-hidden":!0}):e.isBrowseUp?(0,$.jsx)(z_,{className:`size-3.5 text-fg-muted`,"aria-hidden":!0}):e.isDirectory?(0,$.jsx)(z_,{className:`size-3.5 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}):(0,$.jsx)(zg,{className:q(`size-3.5`,fV(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)(Ype,{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.description||r})]})]})]},e.id)}),o&&j>0?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-t border-edge-subtle px-3 py-2 text-xs text-fg-muted`,children:[(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:`…`})]}):null]}),t[20]=i,t[21]=o,t[22]=c,t[23]=p,t[24]=s,t[25]=u,t[26]=E,t[27]=d,t[28]=a,t[29]=j,t[30]=I):I=t[30];let L;t[31]!==f||t[32]!==F||t[33]!==I||t[34]!==P?(L=(0,$.jsxs)(`div`,{ref:x,className:`max-h-[min(26rem,54vh)] overflow-y-auto`,role:`listbox`,"aria-label":f,"aria-activedescendant":P,children:[F,I]}),t[31]=f,t[32]=F,t[33]=I,t[34]=P,t[35]=L):L=t[35];let R;t[36]===v?R=t[37]:(R=v?(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-overlay p-2 font-mono text-[0.7rem] text-fg shadow-lg`,style:{left:Math.min(v.x+12,window.innerWidth-320),top:Math.min(v.y+12,window.innerHeight-200)},children:v.text}):null,t[36]=v,t[37]=R);let z;return t[38]!==L||t[39]!==R||t[40]!==N?(z=(0,Ma.createPortal)((0,$.jsxs)(`div`,{"data-composer-picker-panel":!0,className:`pointer-events-auto max-h-[min(28rem,60vh)] min-h-[2.5rem] overflow-hidden rounded-lg border border-edge bg-surface-overlay shadow-lg`,style:N,role:`presentation`,children:[L,R]}),document.body),t[38]=L,t[39]=R,t[40]=N,t[41]=z):z=t[41],z});function Q5(e,t){let n=e=>{e!==!1&&t()};e instanceof Promise?e.then(n).catch(e=>{ht(`error`,e instanceof Error?e.message:String(e))}):n(e)}var $5=new Set([`abort`,`stop`,`cancel`]);function Zpe(e){if(e.kind!==`command`)return!1;if($5.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if($5.has(t.toLowerCase()))return!0;return!1}function e7(e,t,n,r){return e.slice(0,t)+r+e.slice(n)}var Qpe=(e,t)=>{let n=t.slashRange;if(!n)return;if(e.availability.status!==`available`){t.callbacks.onUnavailableSkill?.(e);return}let r=`/skill:${e.canonicalName} `,i=e7(t.editor.valueRef.current,n.start,n.end,r),a=n.start+r.length;t.editor.resetEditor({nextText:i,caretOffset:a,focus:!0})},$pe=(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=e7(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(Zpe(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}Q5(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()})},eme=(e,t)=>{let n=t.slashRange;if(!n||n.start!==0||!t.callbacks.onChatAgentChange)return;let r=t.editor.valueRef.current,i=r.slice(n.end),a=r.slice(0,n.start)+(i.startsWith(` `)?i.slice(1):i);t.editor.resetEditor({nextText:a,caretOffset:n.start}),t.callbacks.onChatAgentChange(e.agentId)};function tme(e,t){switch(e.kind){case`skill`:Qpe(e,t);return;case`command`:$pe(e,t);return;case`agent`:eme(e,t)}}var t7={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},nme=new Set([`abort`,`archive`]);function n7(e){if(e.kind===`command`){let t=e.name.toLowerCase();if(t7[t]!==void 0)return 0;if(nme.has(t))return 2}return 1}function rme(e,t){let n=n7(e),r=n7(t);if(n!==r)return n-r;if(n===0){let n=t7[e.name.toLowerCase()]??999,r=t7[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}function r7(e){if(e.kind!==`command`)return!1;if($5.has(e.name.toLowerCase()))return!0;for(let t of e.aliases??[])if($5.has(t.toLowerCase()))return!0;return!1}function i7(e,t){return e.kind!==`command`||e.acceptsArgs===!0||r7(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount>=t.maxPendingFollowUps}function ime(e,t){return e.kind!==`command`||e.acceptsArgs===!0||r7(e)||!(t.runBusy||t.pendingFollowUpsCount>0)?!1:t.pendingFollowUpsCount<t.maxPendingFollowUps}function ame(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 ome(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 sme(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)return null;let a=i.index;if(ome(e,a))return null;let o=i[0],s=o.slice(1);return ame(s)||o.startsWith(`/skill:`)?null:{start:i.index,end:r,query:s}}function cme(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;if(e.description.toLowerCase().includes(n))return 100;if(e.category.toLowerCase().includes(n))return 101;if(e.kind===`skill`&&(e.source??``).toLowerCase().includes(n))return 102;if(e.kind===`skill`){for(let t of e.searchTerms??[])if(t.toLowerCase().includes(n))return 103}return null}function lme(e,t){return t===0?0:Math.min(e,t-1)}function ume(e,t){let{query:n,value:r,commandsAllowed:i,agentsAllowed:a}=t,o=n.trim()===``,s=CH(r),c=[];for(let t of e){if(t.kind===`command`&&!i||t.kind===`agent`&&!a||t.kind===`skill`&&s.has(t.canonicalName)||t.kind===`skill`&&o&&t.availability.status!==`available`)continue;let e=cme(t,n);e!==null&&c.push({item:t,rank:e})}c.sort((e,t)=>{let n=e.item.kind===`skill`&&e.item.availability.status!==`available`;return n===(t.item.kind===`skill`&&t.item.availability.status!==`available`)?e.rank===t.rank?rme(e.item,t.item):e.rank-t.rank:n?1:-1});let l=c.map(e=>e.item),u=[],d=l.filter(e=>e.kind===`skill`),f=l.filter(e=>e.kind===`command`),p=l.filter(e=>e.kind===`agent`);d.length>0&&u.push({kind:`skill`,items:d}),f.length>0&&u.push({kind:`command`,items:f}),p.length>0&&u.push({kind:`agent`,items:p});let m=[];for(let e of u)m.push(...e.items);return{sections:u,flatItems:m}}function dme(e,t,n){let r=(0,Q.c)(47),[i,a]=(0,Z.useState)(0),[o,s]=(0,Z.useState)(0),c=Pt(mme);n?.isComposing;let l;r[0]!==t||r[1]!==n?.isComposing||r[2]!==e?(l=n?.isComposing?null:sme(e,t),r[0]=t,r[1]=n?.isComposing,r[2]=e,r[3]=l):l=r[3];let u=l,d=!!(u&&!n?.suppress),f,p;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=e=>{let t=e.detail;t&&typeof t==`object`&&`section`in t&&(t.section===`skills`||t.section===`agents`)&&s(pme)};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},p=[],r[4]=f,r[5]=p):(f=r[4],p=r[5]),(0,Z.useEffect)(f,p);let m;r[6]!==c||r[7]!==n?.conversationId||r[8]!==n?.currentAgentId?(m=async()=>{let[e,t,r]=await Promise.allSettled([pU(),mU(n?.currentAgentId,n?.conversationId),Vz()]),i=[];t.status===`rejected`&&i.push(`skill`),e.status===`rejected`&&i.push(`command`),r.status===`rejected`&&i.push(`agent`);let a=(e.status===`fulfilled`?e.value:[]).map(fme),o=(t.status===`fulfilled`?t.value.skills:[]).map(e=>{let t=ZH(e,c);return{kind:`skill`,id:`skill:${e.name}`,name:t.displayName,canonicalName:e.name,description:t.description,aliases:t.aliases,searchTerms:t.searchTerms,category:`skill`,source:e.source,availability:{status:e.availableForCurrentAgent?`available`:e.unavailableReason??`agent-denied`,reason:e.unavailableReason??void 0}}}),s=kt(c).agentsSettings,l=r.status===`fulfilled`?r.value:null,u=l&&l.items.length>1?l.items.map(e=>({kind:`agent`,id:`agent:${e.id}`,agentId:e.id,name:P3(e,s),description:F3(e,s),category:`agent`,...e.avatar?{avatar:e.avatar}:{},aliases:[e.id,...e.name?[e.name]:[]]})):[];return{items:[...o,...a,...u],failedKinds:i}},r[6]=c,r[7]=n?.conversationId,r[8]=n?.currentAgentId,r[9]=m):m=r[9];let h=n?.currentAgentId,g=n?.conversationId,_;r[10]!==c||r[11]!==o||r[12]!==h||r[13]!==g?(_=[c,h,g,o],r[10]=c,r[11]=o,r[12]=h,r[13]=g,r[14]=_):_=r[14];let v;r[15]===Symbol.for(`react.memo_cache_sentinel`)?(v=[],r[15]=v):v=r[15];let y;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=[],r[16]=y):y=r[16];let b,x;r[17]===Symbol.for(`react.memo_cache_sentinel`)?(x={items:v,failedKinds:y},b=[],r[17]=b,r[18]=x):(b=r[17],x=r[18]);let S;r[19]===Symbol.for(`react.memo_cache_sentinel`)?(S=[],r[19]=S):S=r[19];let C;r[20]===Symbol.for(`react.memo_cache_sentinel`)?(C={items:b,failedKinds:S},r[20]=C):C=r[20];let w;r[21]===d?w=r[22]:(w={enabled:d,initial:x,errorData:C},r[21]=d,r[22]=w);let T=la(m,_,w),E=T.data.items,D=T.error==null?null:T.error instanceof Error?T.error.message:String(T.error),O=u?.query??``,k=u!==null&&u.start===0,A=k,j;r[23]!==A||r[24]!==E||r[25]!==k||r[26]!==O||r[27]!==e?(j=ume(E,{query:O,value:e,commandsAllowed:k,agentsAllowed:A}),r[23]=A,r[24]=E,r[25]=k,r[26]=O,r[27]=e,r[28]=j):j=r[28];let{sections:M,flatItems:N}=j,P=u?O:``,F=(0,Z.useRef)(P);F.current!==P&&(F.current=P,i!==0&&a(0));let I;r[29]!==N.length||r[30]!==i?(I=lme(i,N.length),r[29]=N.length,r[30]=i,r[31]=I):I=r[31];let L=I,R;r[32]===N.length?R=r[33]:(R=e=>{N.length!==0&&a(t=>e===`down`?(t+1)%N.length:(t-1+N.length)%N.length)},r[32]=N.length,r[33]=R);let z=R,B;return r[34]!==A||r[35]!==k||r[36]!==N||r[37]!==T.data.failedKinds||r[38]!==T.loading||r[39]!==D||r[40]!==z||r[41]!==d||r[42]!==O||r[43]!==L||r[44]!==M||r[45]!==u?(B={open:d,slashRange:u,commandsAllowed:k,agentsAllowed:A,sections:M,flatItems:N,selectedIndex:L,query:O,loading:T.loading,failedKinds:T.data.failedKinds,loadError:D,onNavigate:z,setSelectedIndex:a},r[34]=A,r[35]=k,r[36]=N,r[37]=T.data.failedKinds,r[38]=T.loading,r[39]=D,r[40]=z,r[41]=d,r[42]=O,r[43]=L,r[44]=M,r[45]=u,r[46]=B):B=r[46],B}function fme(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,examples:e.examples}}function pme(e){return e+1}function mme(e){return e.language}var hme=100,gme=560;function a7(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 _me(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 vme=(0,Z.memo)(function(e){let t=(0,Q.c)(46),{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,skillSourceLabels:_,onSelectItem:v}=e,y=n.kind===`skill`,b=n.kind===`agent`,x;t[0]!==b||t[1]!==y||t[2]!==n.agentId||t[3]!==n.avatar?(x=b?(0,$.jsx)(SL,{agentId:n.agentId,avatar:n.avatar,size:18,className:`size-[18px] shrink-0`}):y?(0,$.jsx)(ct,{className:`size-4 shrink-0 text-accent-fg`,"aria-hidden":!0}):(0,$.jsx)(PA,{className:`size-4 shrink-0 text-amber-600 dark:text-amber-400`,"aria-hidden":!0}),t[0]=b,t[1]=y,t[2]=n.agentId,t[3]=n.avatar,t[4]=x):x=t[4];let S=x,C;t[5]!==o||t[6]!==b||t[7]!==n.name||t[8]!==a?(C=b?a?(0,$.jsx)($.Fragment,{children:a7(n.name,o)}):(0,$.jsx)(`span`,{className:`text-fg`,children:n.name}):a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{className:`text-fg`,children:`/`}),a7(n.name,o)]}):(0,$.jsxs)(`span`,{className:`text-fg`,children:[`/`,n.name]}),t[5]=o,t[6]=b,t[7]=n.name,t[8]=a,t[9]=C):C=t[9];let w=C,T=b&&s!=null&&s.length>0&&n.agentId===s,E=y&&n.availability.status!==`available`,D,O;if(t[10]!==n||t[11]!==d||t[12]!==u||t[13]!==l){let e={runBusy:l,pendingFollowUpsCount:u,maxPendingFollowUps:d};O=ime(n,e),D=i7(n,e),t[10]=n,t[11]=d,t[12]=u,t[13]=l,t[14]=D,t[15]=O}else D=t[14],O=t[15];let k=D,A=null;if(T){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),A=e}else if(E){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],A=i}else if(y&&n.source){let e=_[n.source]??n.source,r;t[21]===e?r=t[22]:(r=(0,$.jsx)(`span`,{className:`ml-2 shrink-0 text-[11px] font-normal text-fg-muted`,children:e}),t[21]=e,t[22]=r),A=r}else if(k){let e;t[23]===p?e=t[24]:(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[23]=p,t[24]=e),A=e}else if(O){let e;t[25]===f?e=t[26]:(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[25]=f,t[26]=e),A=e}let j=i===r,M=`palette-${r}`,N;t[27]!==o||t[28]!==n.description||t[29]!==a?(N=n.description?a?_me(n.description,o):n.description:null,t[27]=o,t[28]=n.description,t[29]=a,t[30]=N):N=t[30];let P=k?m:void 0,F;t[31]!==n||t[32]!==v?(F=()=>v(n),t[31]=n,t[32]=v,t[33]=F):F=t[33];let I;return t[34]!==S||t[35]!==k||t[36]!==n||t[37]!==w||t[38]!==a||t[39]!==j||t[40]!==M||t[41]!==N||t[42]!==P||t[43]!==F||t[44]!==A?(I=(0,$.jsx)(bme,{item:n,icon:S,selected:j,id:M,nameLine:w,descriptionLine:N,dimCategoryBadge:a,trailingBadge:A,disabled:k,disabledTooltip:P,onSelect:F}),t[34]=S,t[35]=k,t[36]=n,t[37]=w,t[38]=a,t[39]=j,t[40]=M,t[41]=N,t[42]=P,t[43]=F,t[44]=A,t[45]=I):I=t[45],I}),yme=(0,Z.memo)(function(e){let t=(0,Q.c)(53),{open:n,anchorRef:r,sections:i,flatItems:a,loading:o,failedKinds:s,selectedIndex:c,noResults:l,sectionLoadFailedLabel:u,query:d,skillsLabel:f,commandsLabel:p,agentsLabel:m,currentAgentId:h,currentBadgeLabel:g,runBusy:_,pendingFollowUpsCount:v,maxPendingFollowUps:y,queueBadgeLabel:b,queueFullBadgeLabel:x,queueFullTooltip:S,skillUnavailableLabel:C,skillAgentDeniedLabel:w,skillSourceLabels:T,onSelectItem:E,panelRef:D}=e,[O,k]=(0,Z.useState)(null),A,j;t[0]!==r||t[1]!==n?(A=()=>{if(!n){k(null);return}let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect();k({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)}},j=[n,r],t[0]=r,t[1]=n,t[2]=A,t[3]=j):(A=t[2],j=t[3]),(0,Z.useLayoutEffect)(A,j);let M,N;if(t[4]!==a.length||t[5]!==n||t[6]!==c?(M=()=>{!n||a.length===0||document.getElementById(`palette-${c}`)?.scrollIntoView?.({block:`nearest`})},N=[a.length,n,c],t[4]=a.length,t[5]=n,t[6]=c,t[7]=M,t[8]=N):(M=t[7],N=t[8]),(0,Z.useEffect)(M,N),!n||typeof document>`u`||O===null)return null;let P=a.length,F=a[c],I=Math.min(O.width,gme),L;t[9]===d?L=t[10]:(L=d.trim(),t[9]=d,t[10]=L);let R=L,z=R.length>0,B;t[11]!==m||t[12]!==p||t[13]!==f?(B={skill:f,command:p,agent:m},t[11]=m,t[12]=p,t[13]=f,t[14]=B):B=t[14];let V=B,H;t[15]!==h||t[16]!==g||t[17]!==R||t[18]!==y||t[19]!==E||t[20]!==v||t[21]!==b||t[22]!==x||t[23]!==S||t[24]!==_||t[25]!==c||t[26]!==z||t[27]!==w||t[28]!==T||t[29]!==C?(H={selectedIndex:c,showHighlight:z,filterQuery:R,currentAgentId:h,currentBadgeLabel:g,runBusy:_,pendingFollowUpsCount:v,maxPendingFollowUps:y,queueBadgeLabel:b,queueFullBadgeLabel:x,queueFullTooltip:S,skillUnavailableLabel:C,skillAgentDeniedLabel:w,skillSourceLabels:T,onSelectItem:E},t[15]=h,t[16]=g,t[17]=R,t[18]=y,t[19]=E,t[20]=v,t[21]=b,t[22]=x,t[23]=S,t[24]=_,t[25]=c,t[26]=z,t[27]=w,t[28]=T,t[29]=C,t[30]=H):H=t[30];let U=H,W;if(t[31]!==s||t[32]!==o||t[33]!==l||t[34]!==U||t[35]!==V||t[36]!==u||t[37]!==i||t[38]!==P){let e=new Map(i.map(xme)),n=[`skill`,`command`,`agent`].filter(t=>e.has(t)||s.includes(t)),r=0;W=o&&P===0?(0,$.jsx)(`div`,{className:`space-y-2 p-2.5`,"aria-busy":`true`,children:Array.from({length:6},Sme)}):P===0&&s.length===0?(0,$.jsx)(`div`,{className:`p-2.5 text-xs leading-normal text-fg-muted`,children:l}):n.map((t,n)=>{let i=e.get(t)?.items??[],a=r;r+=i.length;let o=`palette-section-${t}`;return(0,$.jsxs)(`div`,{role:`group`,"aria-labelledby":o,className:q(n>0&&`border-t border-edge-subtle`),children:[(0,$.jsxs)(`div`,{id:o,className:`sticky top-0 z-10 flex items-center justify-between bg-surface-overlay px-2.5 py-2 text-[0.65rem] font-medium uppercase leading-none tracking-wide text-fg-muted`,children:[(0,$.jsx)(`span`,{children:V[t]}),(0,$.jsx)(`span`,{className:`tabular-nums`,"aria-hidden":!0,children:i.length})]}),s.includes(t)?(0,$.jsx)(`div`,{className:`px-2.5 pb-2 text-[11px] leading-relaxed text-fg-muted`,children:u}):i.map((e,t)=>(0,$.jsx)(vme,{item:e,index:a+t,...U},e.id))]},t)}),t[31]=s,t[32]=o,t[33]=l,t[34]=U,t[35]=V,t[36]=u,t[37]=i,t[38]=P,t[39]=W}else W=t[39];let G=W,ee;t[40]!==O.left||t[41]!==O.top||t[42]!==I?(ee={position:`fixed`,left:O.left,top:O.top,width:I,transform:`translateY(calc(-100% - 8px))`,zIndex:hme},t[40]=O.left,t[41]=O.top,t[42]=I,t[43]=ee):ee=t[43];let te=`${f}, ${p}, ${m}`,ne=F?`${V[F.kind]}: ${F.name}`:``,K;t[44]===ne?K=t[45]:(K=(0,$.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,children:ne}),t[44]=ne,t[45]=K);let re;return t[46]!==G||t[47]!==o||t[48]!==D||t[49]!==te||t[50]!==K||t[51]!==ee?(re=(0,Ma.createPortal)((0,$.jsx)(wa,{delayDuration:0,skipDelayDuration:0,disableHoverableContent:!1,children:(0,$.jsxs)(`div`,{ref:D,className:`pointer-events-auto max-h-[min(32rem,60vh)] min-h-8 overflow-y-auto rounded-md border border-edge bg-surface-overlay text-xs leading-4 shadow-lg`,style:ee,role:`listbox`,"aria-label":te,"aria-busy":o,children:[K,G]})}),document.body),t[46]=G,t[47]=o,t[48]=D,t[49]=te,t[50]=K,t[51]=ee,t[52]=re):re=t[52],re}),bme=(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;t[0]===n.description?p=t[1]:(p=n.description.trim(),t[0]=n.description,t[1]=p);let m=p,h=m.length>0&&s!=null,g=m.length>0,_=n.description,v=n.category&&n.kind!==`skill`&&!c&&!(n.kind===`agent`&&l),y;t[2]===o?y=t[3]:(y=(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]=y);let b;t[4]!==n.category||t[5]!==v?(b=v?(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]=v,t[6]=b):b=t[6];let x;t[7]!==s||t[8]!==h?(x=h?(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]=h,t[9]=x):x=t[9];let S;t[10]!==y||t[11]!==b||t[12]!==x?(S=(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1`,children:[y,b,x]}),t[10]=y,t[11]=b,t[12]=x,t[13]=S):S=t[13];let C=S,w=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`,T;t[14]===w?T=t[15]:(T=q(`flex min-h-11 w-full min-w-0 items-center gap-2 px-2.5 py-1.5 text-left text-sm leading-5 sm:min-h-9`,w),t[14]=w,t[15]=T);let E=T,D;t[16]!==u||t[17]!==f?(D=e=>{u||e.pointerType===`mouse`&&e.button!==0||(e.preventDefault(),f())},t[16]=u,t[17]=f,t[18]=D):D=t[18];let O=D,k;t[19]===r?k=t[20]:(k=(0,$.jsx)(`span`,{className:`shrink-0 [&_svg]:align-middle`,children:r}),t[19]=r,t[20]=k);let A;t[21]!==k||t[22]!==C||t[23]!==l?(A=(0,$.jsxs)($.Fragment,{children:[k,C,l]}),t[21]=k,t[22]=C,t[23]=l,t[24]=A):A=t[24];let j=A,M=u&&d?d:g?_:null,N=u||void 0,P;t[25]!==a||t[26]!==O||t[27]!==E||t[28]!==j||t[29]!==i||t[30]!==N?(P=(0,$.jsx)(`div`,{id:a,role:`option`,"aria-selected":i,"aria-disabled":N,tabIndex:-1,className:E,onPointerDown:O,children:j}),t[25]=a,t[26]=O,t[27]=E,t[28]=j,t[29]=i,t[30]=N,t[31]=P):P=t[31];let F=P;if(M!==null){let e;t[32]===F?e=t[33]:(e=(0,$.jsx)(xa,{asChild:!0,children:F}),t[32]=F,t[33]=e);let n;t[34]===M?n=t[35]:(n=(0,$.jsx)(Ca,{children:(0,$.jsx)(Ta,{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-overlay 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:M})})}),t[34]=M,t[35]=n);let r;return t[36]!==e||t[37]!==n?(r=(0,$.jsxs)(Sa,{delayDuration:0,children:[e,n]}),t[36]=e,t[37]=n,t[38]=r):r=t[38],r}return F});function xme(e){return[e.kind,e]}function Sme(e,t){return(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-1`,children:[(0,$.jsx)(ta,{className:`size-4 shrink-0`}),(0,$.jsx)(ta,{className:`h-3 w-28`}),(0,$.jsx)(ta,{className:`h-3 flex-1`})]},t)}var o7=[],s7=null,c7=!1,l7=Promise.resolve(),u7=0;function d7(e){if(o7[0]?.text===e.text){e.id>0&&(o7[0]=e);return}o7=[e,...o7].slice(0,100)}function f7(e){let t=o7.findIndex(t=>t.id===0&&t.text===e.text);if(t>=0){o7[t]=e;return}d7(e)}function Cme(){return o7.map(e=>e.text)}function p7(e=!1){if(c7&&!e)return Promise.resolve();if(s7)return s7;let t=u7,n=!1;return s7=J(`/api/composer-history`).then(e=>{u7===t?(o7=e.items.slice(0,100),c7=!0):n=!0}).catch(()=>{}).finally(()=>{s7=null,n&&l7.then(()=>p7(!0))}),s7}function wme(e){let t=e.trim();t&&(u7+=1,d7({id:0,text:t,createdAt:Date.now()}),l7=l7.then(async()=>{f7((await J(`/api/composer-history`,{method:`POST`,body:JSON.stringify({text:t})})).item)}).catch(()=>{}))}function Tme(e){if(!e||typeof e!=`object`)return;let t=e;typeof t.id!=`number`||typeof t.text!=`string`||typeof t.createdAt!=`number`||(u7+=1,f7({id:t.id,text:t.text,createdAt:t.createdAt}))}function Eme(){u7+=1,o7=[]}function Dme(e){let t=(0,Q.c)(16),{conversationId: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=()=>{p7();let e=e=>{Tme(e.detail),l()},t=()=>{Eme(),l()},n=Ome;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=>{xr(e)||wme(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=Cme();if(t.length===0)return!1;let n=s.current,o=r.current,c=o?wH(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 Ome(){p7(!0)}function m7(e){if(e.voiceActive)return e.cancelVoiceInput(),null;let t=e.getTextValue(),n=e.getContextRefs();if(!t.trim()&&e.getAttachmentCount()===0&&n.length===0)return null;let r=e.wireAttachmentsPayload();return structuredClone({text:t,attachments:r,contextRefs:n})}function kme(e){let t=(0,Z.useRef)(e);t.current=e;let{chat:n,runBusy:r,voiceActive:i,cancelVoiceInput:a,editingFollowUpId:o,getTextValue:s,getAttachmentCount:c,wireAttachmentsPayload:l,getContextRefs:u,getThinkingLevel:d,onSend:f,onDispatched:p,onAddPendingFollowUp:m,onSteeringInterrupt:h,onCommitEditFollowUp:g,onPendingFollowUpRemove:_,pendingFollowUpsCount:v,resetEditor:y,clearAttachments:b,clearContextRefs:x,clearEditFollowUpRef:S,onUserTextCommitted:C}=e,w={getTextValue:s,getAttachmentCount:c,wireAttachmentsPayload:l,getContextRefs:u},T=(0,Z.useRef)(!1);return{send:(0,Z.useCallback)(()=>{if(r)return;let e=m7({voiceActive:i,cancelVoiceInput:a,...w});e&&Q5(f(e.text,e.attachments.length>0?e.attachments:void 0,d(),e.contextRefs.length>0?e.contextRefs:void 0,{onDispatched:t=>p?.(t,e)}),()=>{C?.(e.text);let n=t.current;n.getTextValue()!==e.text||JSON.stringify(n.wireAttachmentsPayload())!==JSON.stringify(e.attachments)||JSON.stringify(n.getContextRefs())!==JSON.stringify(e.contextRefs)||(y(),b(),x())})},[r,i,a,f,p,d,C,y,b,x,s,c,l,u]),flushSteeringDraft:(0,Z.useCallback)(async()=>{if(!r&&v===0)return;let e=m7({voiceActive:i,cancelVoiceInput:a,...w});if(e){if(o){g(o,e.text,e.attachments.length>0?e.attachments:void 0,d(),e.contextRefs.length>0?e.contextRefs:void 0),C?.(e.text),S(),y(),b(),x();return}if(m&&!T.current){if(v>=10){ht(`warning`,n.followUpQueueMaxReached,{max:10});return}T.current=!0;try{await m(e.text,e.attachments.length>0?e.attachments:void 0,e.contextRefs.length>0?e.contextRefs:void 0),C?.(e.text),y(),b(),x()}catch(e){ht(`error`,n.followUpQueueSubmitFailed,{message:e instanceof Error?e.message:String(e)})}finally{T.current=!1}}}},[r,i,a,o,v,m,g,d,n.followUpQueueMaxReached,n.followUpQueueSubmitFailed,S,C,y,b,x,s,c,l,u]),interruptDraft:(0,Z.useCallback)(()=>{if(!r||!h)return;let e=m7({voiceActive:i,cancelVoiceInput:a,...w});e&&(h(e.text,e.attachments.length>0?e.attachments:void 0,e.contextRefs.length>0?e.contextRefs:void 0),C?.(e.text),o&&(S(),_(o)),y(),b(),x())},[r,i,a,o,_,h,C,S,y,b,x,s,c,l,u])}}var h7=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function Ame(e,t,n,r,i){let a=At(e=>e.conversationId),o=a&&e?JSON.stringify([a,e]):``,s=(0,Z.useRef)({editor:t,attachments:n,refs:r,setRefs:i});s.current={editor:t,attachments:n,refs:r,setRefs:i};let c=(0,Z.useRef)(void 0),l=(0,Z.useRef)(``),[u,d]=(0,Z.useState)(0),f=(0,Z.useRef)(Promise.resolve());(0,Z.useLayoutEffect)(()=>{if(!o||!e){c.current=void 0;return}let t={scope:o,ready:!1,dirty:!1,observe:!1,snapshot:{text:s.current.editor.valueRef.current,attachments:s.current.attachments.attachmentsRef.current,refs:s.current.refs},storage:pee(e)};c.current=t,l.current&&l.current!==o&&(s.current.editor.resetEditor(),s.current.attachments.clearAttachments(),s.current.setRefs([]),t.snapshot={text:``,attachments:[],refs:[]}),l.current=o;let n=!1;return t.storage.read().then(e=>{if(n=!0,c.current!==t)return;let r=s.current;e&&!t.dirty&&!r.editor.valueRef.current&&!r.attachments.attachmentsRef.current.length&&!r.refs.length&&(r.editor.resetEditor({nextText:e.text}),r.attachments.setAttachments(e.attachments),r.setRefs(e.refs))}).catch(e=>{console.warn(`Composer draft restoration failed`,e)}).finally(()=>{c.current===t&&(t.ready=n,d(e=>e+1))}),()=>{c.current===t&&(c.current=void 0)}},[o,e]),(0,Z.useLayoutEffect)(()=>{let e=c.current;if(!e||e.scope!==o)return;if(!e.observe){e.observe=!0;return}let i={text:t.value,attachments:n.attachments,refs:r};(i.text!==e.snapshot.text||!h7(i.attachments,e.snapshot.attachments)||!h7(i.refs,e.snapshot.refs))&&(e.dirty=!0),e.snapshot=i},[o,t.value,n.attachments,r]),(0,Z.useEffect)(()=>{let e=c.current;if(!e||e.scope!==o||!e.ready&&!e.dirty)return;let i={text:t.value,attachments:n.attachments,refs:r},a=i.text||i.attachments.length||r.length?i:void 0;f.current=f.current.catch(()=>{}).then(()=>e.storage.write(a)).catch(e=>{console.warn(`Composer draft persistence failed`,e)})},[o,u,t.value,n.attachments,r])}function jme(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 window.addEventListener(`pointerdown`,e,!0),()=>window.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 g7=20,Mme=`xopc.atMention.recent:`;function _7(e){return`${Mme}${e.trim()}`}function v7(e){let t=e?.trim();if(!t||typeof localStorage>`u`)return[];try{let e=localStorage.getItem(_7(t));if(!e)return[];let n=JSON.parse(e);return Array.isArray(n)?n.filter(e=>typeof e==`string`&&e.length>0).slice(0,g7):[]}catch{return[]}}function Nme(e,t){let n=e?.trim(),r=t.trim();if(!(!n||!r||typeof localStorage>`u`))try{let e=[r,...v7(n).filter(e=>e!==r)].slice(0,g7);localStorage.setItem(_7(n),JSON.stringify(e))}catch{}}var Pme=150,Fme=[`file`,`note`,`session`,`browser_tab`,`skill`,`agent`,`mcp_server`,`mcp_resource`];function y7(e){let t={items:[],loading:e,error:null};return{file:{...t},note:{...t},session:{...t},skill:{...t},agent:{...t},browser_tab:{...t},mcp_server:{...t},mcp_resource:{...t}}}function b7(e,t){let n=Math.min(Math.max(t,0),e.length);if(n<1)return null;let r=e.slice(0,n).match(/@((?:\\.|[^\s])*)$/);if(!r||r.index===void 0)return null;let i=r.index;return i>0&&/[a-zA-Z0-9_]/.test(e[i-1])?null:{start:i,end:n,query:(r[1]??``).replace(/\\([\\\s])/gu,`$1`)}}function Ime(e){return e.replace(/[\\\s]/gu,e=>`\\${e}`)}function Lme(e){let t=e.trim();return t.length>0&&t.endsWith(`/`)&&!t.startsWith(`mcp:`)&&!/^https?:\/\//i.test(t)}function x7(e){return e.replace(/\/+$/,``).trim()}function S7(e){let t=e.replace(/\/+$/,``);if(!t)return``;let n=t.lastIndexOf(`/`);return n<=0?``:t.slice(0,n)}function Rme(e,t){return t===0?0:Math.min(e,t-1)}function zme(e){return{id:`file:${e.id}`,kind:`file`,name:e.name,description:e.path,relativePath:e.path,isDirectory:e.isDirectory,fileRef:{sourceId:e.id,expectedVersion:e.revision}}}function Bme(e,t,n){let r=(0,Q.c)(44),[i,a]=(0,Z.useState)(0),[o,s]=(0,Z.useState)(Kme),c=(0,Z.useRef)(0),l=Pt(Gme),u;bb0:{if(n.isComposing||n.slashPaletteOpen){u=null;break bb0}if(n.precomputedAtRange!==void 0){u=n.precomputedAtRange;break bb0}let i;r[0]!==t||r[1]!==e?(i=b7(e,t),r[0]=t,r[1]=e,r[2]=i):i=r[2],u=i}let d=u,f=d!==null,[p]=fa(f?d.query:``,Pme),m=f?p:``,h;r[3]===n.conversationId?h=r[4]:(h=n.conversationId?.trim()??``,r[3]=n.conversationId,r[4]=h);let g=h,_;r[5]===n.selectedContextKeys?_=r[6]:(_=[...n.selectedContextKeys??new Set].sort().join(`\0`),r[5]=n.selectedContextKeys,r[6]=_);let v=_,y;r[7]!==g||r[8]!==m||r[9]!==l||r[10]!==n||r[11]!==f||r[12]!==v?(y=()=>{let e=c.current+=1;if(!f){s(y7(!1));return}if(!g){s(y7(!!n.prepareSession)),n.prepareSession&&n.prepareSession().catch(()=>{c.current===e&&s(y7(!1))});return}let t={conversationId:g,currentAgentId:n.currentAgentId,language:l,selectedContextKeys:new Set(v?v.split(`\0`):[]),recentPaths:new Set(v7(g))};if(/^mcp:[^/]+\//u.test(m)){let n=y7(!1);n.mcp_resource={items:[],loading:!0,error:null},s(n),V3.find(Wme).search(m,t).then(t=>{c.current===e&&s(e=>({...e,mcp_resource:{items:t,loading:!1,error:null}}))}).catch(t=>{c.current===e&&s(e=>({...e,mcp_resource:{items:[],loading:!1,error:t instanceof Error?t.message:String(t)}}))});return}if(Lme(m)){let t=y7(!1);t.file={items:[],loading:!0,error:null},s(t);let r=x7(m);Jse(r,{conversationId:g,agentId:n.currentAgentId}).then(t=>{if(c.current!==e)return;let n={id:`browse-up:${r}`,kind:`file`,name:`..`,description:S7(r)||`/`,relativePath:``,isDirectory:!0,isBrowseUp:!0};s(e=>({...e,file:{items:[n,...t.map(zme)],loading:!1,error:null}}))}).catch(t=>{c.current===e&&s(e=>({...e,file:{items:[],loading:!1,error:t instanceof Error?t.message:String(t)}}))});return}s(y7(!0));for(let n of V3)n.search(m,t).then(t=>{c.current===e&&s(e=>({...e,[n.kind]:{items:t,loading:!1,error:null}}))}).catch(t=>{c.current===e&&s(e=>({...e,[n.kind]:{items:[],loading:!1,error:t instanceof Error?t.message:String(t)}}))})},r[7]=g,r[8]=m,r[9]=l,r[10]=n,r[11]=f,r[12]=v,r[13]=y):y=r[13];let b;r[14]!==g||r[15]!==m||r[16]!==l||r[17]!==n.currentAgentId||r[18]!==n.prepareSession||r[19]!==f||r[20]!==v?(b=[f,g,m,l,n.currentAgentId,n.prepareSession,v],r[14]=g,r[15]=m,r[16]=l,r[17]=n.currentAgentId,r[18]=n.prepareSession,r[19]=f,r[20]=v,r[21]=b):b=r[21],(0,Z.useEffect)(y,b);let x;r[22]===o?x=r[23]:(x=Fme.map(e=>({kind:e,...o[e]})),r[22]=o,r[23]=x);let S=x,C=f?S.flatMap(Ume):[],w;r[24]!==f||r[25]!==S?(w=f&&S.some(Hme),r[24]=f,r[25]=S,r[26]=w):w=r[26];let T=w,E;r[27]===S?E=r[28]:(E=S.flatMap(Vme),r[27]=S,r[28]=E);let D=E,O=!T&&C.length===0?D[0]??null:null,k=`${d?.start??``}:${d?.end??``}:${m}`,A;r[29]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>a(0),r[29]=A):A=r[29];let j;r[30]===k?j=r[31]:(j=[k],r[30]=k,r[31]=j),(0,Z.useEffect)(A,j);let M=Rme(i,C.length),N;r[32]===C.length?N=r[33]:(N=e=>{C.length!==0&&a(t=>e===`down`?(t+1)%C.length:(t-1+C.length)%C.length)},r[32]=C.length,r[33]=N);let P=N,F=d?.query??``,I;return r[34]!==d||r[35]!==O||r[36]!==C||r[37]!==T||r[38]!==P||r[39]!==f||r[40]!==M||r[41]!==S||r[42]!==F?(I={open:f,atRange:d,sections:S,items:C,selectedIndex:M,query:F,loading:T,error:O,onNavigate:P,setSelectedIndex:a},r[34]=d,r[35]=O,r[36]=C,r[37]=T,r[38]=P,r[39]=f,r[40]=M,r[41]=S,r[42]=F,r[43]=I):I=r[43],I}function Vme(e){return e.error?[e.error]:[]}function Hme(e){return e.loading}function Ume(e){return e.items}function Wme(e){return e.kind===`mcp_resource`}function Gme(e){return e.language}function Kme(){return y7(!1)}function qme(e){return e.kind===`note`?{refId:crypto.randomUUID(),kind:`note`,sourceId:e.noteRef.sourceId,expectedVersion:e.noteRef.expectedVersion,title:e.name}:e.kind===`file`&&!e.isBrowseUp&&e.fileRef?{refId:crypto.randomUUID(),kind:`file`,sourceId:e.fileRef.sourceId,expectedVersion:e.fileRef.expectedVersion,title:e.name,fileKind:e.isDirectory?`directory`:`file`}:e.kind===`session`?{refId:crypto.randomUUID(),kind:`session`,sourceId:e.sessionRef.sourceId,expectedVersion:e.sessionRef.expectedVersion,title:e.name}:e.kind===`browser_tab`?{refId:crypto.randomUUID(),kind:`browser_tab`,sourceId:e.tabRef.sourceId,expectedVersion:e.tabRef.expectedVersion,title:e.name}:e.kind===`mcp_resource`?{refId:crypto.randomUUID(),kind:`mcp_resource`,sourceId:e.resourceRef.sourceId,expectedVersion:e.resourceRef.expectedVersion,title:e.name}:null}function Jme(e){let{conversationId: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,prepareSession:h,contextRefs:g,onAddContextRef:_,onUnavailableSkill:v,onReviewLauncher:y,onAddPendingFollowUp:b,onAbort:x,pendingFollowUpsCount:S,maxPendingFollowUps:C,clearContextRefs:w,commandPalettePanelRef:T}=e,E=(0,Z.useMemo)(()=>b7(n,r),[n,r]),D=dme(n,r,{suppress:E!=null,isComposing:i,currentAgentId:m,conversationId:t}),O=Bme(n,r,{conversationId:t,currentAgentId:m,slashPaletteOpen:D.open,isComposing:i,precomputedAtRange:E,selectedContextKeys:new Set(g.map(e=>`${e.kind}:${e.sourceId}`)),prepareSession:h}),k=D.open||O.open||E!=null,A=(0,Z.useCallback)(()=>({slashRange:D.slashRange,runBusy:a,pendingFollowUpsCount:S,maxPendingFollowUps:C,thinkingLevel:o,editor:{valueRef:c,resetEditor:l},attachments:{clearAttachments:u},contextRefs:{current:g,clear:w},callbacks:{onSend:d,onUserTextCommitted:f,onChatAgentChange:p,onAddPendingFollowUp:b,onAbort:x,onUnavailableSkill:v,onReviewLauncher:y}}),[D.slashRange,a,S,C,o,c,l,u,g,w,d,f,p,b,x,v,y]),j=(0,Z.useCallback)(e=>{tme(e,A())},[A]),M=(0,Z.useCallback)(e=>{let n=O.atRange;if(!n)return;let r=qme(e);if(r){let i=_(r);if(!i?.refId)return;let a=`${Er(i.refId)} `;l({nextText:e7(c.current,n.start,n.end,a),caretOffset:n.start+a.length,focus:!0}),t&&e.kind===`file`&&Nme(t,e.relativePath);return}if(e.kind===`skill`){let t=`/skill:${e.canonicalName} `;l({nextText:e7(c.current,n.start,n.end,t),caretOffset:n.start+t.length,focus:!0});return}if(e.kind===`agent`){l({nextText:e7(c.current,n.start,n.end,``),caretOffset:n.start,focus:!0}),p?.(e.agentId);return}if(e.kind===`mcp_server`){let t=`@mcp:${encodeURIComponent(e.serverId)}/`;l({nextText:e7(c.current,n.start,n.end,t),caretOffset:n.start+t.length,focus:!0});return}if(e.kind!==`file`||!e.isDirectory)return;let i=`@${Ime(e.isBrowseUp?(()=>{let e=S7(x7(n.query));return e?`${e}/`:``})():`${e.relativePath.replace(/\/+$/,``)}/`)}`;l({nextText:e7(c.current,n.start,n.end,i),caretOffset:n.start+i.length,focus:!0})},[O.atRange,_,t,p,c,l]),N=(0,Z.useRef)(null);N.current=O.open?O.atRange:D.open?D.slashRange:null;let P=c,F=(0,Z.useCallback)(()=>{let e=N.current;if(!e)return;let t=P.current;l({nextText:t.slice(0,e.start)+t.slice(e.end),caretOffset:e.start})},[l,P]),I=(0,Z.useMemo)(()=>[s,T],[s,T]);jme({active:D.open||O.open,anchors:I,ignoreSelector:`[data-composer-picker-panel], [data-slash-palette-tooltip]`,onDismiss:F});let L=(0,Z.useRef)(O);L.current=O;let R=(0,Z.useRef)(D);R.current=D;let z=(0,Z.useRef)(i);z.current=i;let B=(0,Z.useRef)(j);B.current=j;let V=(0,Z.useRef)(M);V.current=M;let H=(0,Z.useRef)({runBusy:a,pendingFollowUpsCount:S,maxPendingFollowUps:C});H.current={runBusy:a,pendingFollowUpsCount:S,maxPendingFollowUps:C};let U=(0,Z.useMemo)(()=>({name:`at-mention`,isActive:()=>{let e=L.current;return e.open&&e.atRange!=null&&!z.current},handleKey:e=>{let t=L.current;if(!t.atRange)return!1;if(e.key===`Escape`){e.preventDefault();let n=t.atRange,r=P.current;return l({nextText:e7(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&&V.current(n),!0}return!1}}),[l,P]),W=(0,Z.useMemo)(()=>({name:`slash-palette`,isActive:()=>R.current.open&&!z.current,handleKey:e=>{let t=R.current;if(t.flatItems.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.flatItems[t.selectedIndex];return!n||i7(n,H.current)||B.current(n),!0}}if(e.key===`Escape`){e.preventDefault();let n=t.slashRange;if(n){let e=P.current;l({nextText:e7(e,n.start,n.end,``),caretOffset:n.start,focus:!0})}return!0}return!1}}),[l,P]);return{palette:D,atPicker:O,shouldSyncSelection:k,adapters:(0,Z.useMemo)(()=>[U,W],[U,W]),applyPalette:j,applyAtMention:M}}function C7(e){return/^[A-Za-z0-9._/@:-]+$/.test(e)?e:JSON.stringify(e)}function w7(e,t){let n=t?.trim();return n?`${e} --instructions ${C7(n)}`:e}function Yme(e){if(e.preset===`base`){if(!e.baseBranch?.trim())throw Error(`Missing base branch.`);return w7(`/review --base ${C7(e.baseBranch.trim())}`,e.instructions)}if(e.preset===`commit`){if(!e.commitSha?.trim())throw Error(`Missing commit SHA.`);return w7(`/review --commit ${C7(e.commitSha.trim())}`,e.instructions)}return e.preset,w7(`/review --uncommitted`,e.instructions)}async function Xme(e){let t=await Mt(Y(`/api/review/context?${new URLSearchParams({conversationId:e}).toString()}`)),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||!n.payload)throw Error(zt(t.status,t.statusText,n.error?.message));return n.payload}function Zme(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 Qme(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 $me(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 T7(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=q(`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`,$r.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 ehe(e){let t=(0,Q.c)(89),{open:n,conversationId: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]!==r||t[1]!==c.noSession?(x=()=>{if(!r){u(null),m(c.noSession);return}f(!0),m(null),Xme(r).then(e=>u(e)).catch(e=>{u(null),m(e instanceof Error?e.message:String(e))}).finally(()=>f(!1))},t[0]=r,t[1]=c.noSession,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=Qme(l,_),t[7]=l,t[8]=_,t[9]=T):T=t[9];let E=T,D;t[10]!==l||t[11]!==_?(D=$me(l,_),t[10]=l,t[11]=_,t[12]=D):D=t[12];let O=D,k;t[13]!==l||t[14]!==c?(k=Zme(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(Yme({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)($t,{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)(Wo,{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)(on,{className:`truncate text-sm font-semibold text-fg`,children:N}),t[26]=N,t[27]=L);let R=l?.cwd??c.description,z;t[28]===R?z=t[29]:(z=(0,$.jsx)(tn,{className:`truncate text-xs text-fg-muted`,children:R}),t[28]=R,t[29]=z);let B;t[30]!==L||t[31]!==z?(B=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[L,z]}),t[30]=L,t[31]=z,t[32]=B):B=t[32];let V;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(Dt,{className:`size-4`}),t[33]=V):V=t[33];let H;t[34]!==c.close||t[35]!==o?(H=(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:V}),t[34]=c.close,t[35]=o,t[36]=H):H=t[36];let U;t[37]!==I||t[38]!==B||t[39]!==H?(U=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-4 py-3`,children:[I,B,H]}),t[37]=I,t[38]=B,t[39]=H,t[40]=U):U=t[40];let W;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?(W=(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)(iS,{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)(X,{type:`button`,className:`mt-4 h-9 rounded-lg`,variant:`secondary`,onClick:S,children:[(0,$.jsx)(iS,{className:`size-4`}),c.retry]})]}):h===`presets`?(0,$.jsxs)(`div`,{className:`grid gap-2`,children:[(0,$.jsx)(T7,{icon:(0,$.jsx)(Re,{className:`size-4`}),title:c.presetBase,description:l?.defaultBaseBranch?c.presetBaseDescription.replace(`{{branch}}`,l.defaultBaseBranch):c.presetBaseDescriptionNoDefault,disabled:i,onClick:()=>g(`base`)}),(0,$.jsx)(T7,{icon:(0,$.jsx)(hv,{className:`size-4`}),title:c.presetUncommitted,description:A,disabled:i,onClick:()=>M(`uncommitted`)}),(0,$.jsx)(T7,{icon:(0,$.jsx)(V_,{className:`size-4`}),title:c.presetCommit,description:c.presetCommitDescription.replace(`{{count}}`,String(l?.commits.length??0)),disabled:i,onClick:()=>g(`commit`)}),(0,$.jsx)(T7,{icon:(0,$.jsx)(hv,{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)(E7,{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)(E7,{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]=W):W=t[73];let G;t[74]!==i||t[75]!==c.cancel||t[76]!==c.runReview||t[77]!==o||t[78]!==M||t[79]!==h?(G=h===`custom`?(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-4 py-3`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:`h-9 rounded-lg`,onClick:o,children:c.cancel}),(0,$.jsx)(X,{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]=G):G=t[80];let ee;t[81]!==U||t[82]!==W||t[83]!==G?(ee=(0,$.jsxs)(rn,{children:[F,(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay shadow-popover outline-none`,children:[U,W,G]})]}),t[81]=U,t[82]=W,t[83]=G,t[84]=ee):ee=t[84];let te;return t[85]!==n||t[86]!==ee||t[87]!==P?(te=(0,$.jsx)(sn,{open:n,onOpenChange:P,children:ee}),t[85]=n,t[86]=ee,t[87]=P,t[88]=te):te=t[88],te}function E7(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)(ot,{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 the(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 nhe=(0,Z.memo)(function({personal:e=!1,placeholder:t,disabled:n,sendDisabled:r=!1,sending:i,streaming:a,conversationId:o,composerContext:s,pageContextPreview:c,contextRefs:l,setContextRefs:d,onDraftAttachmentsChange:f,thinkingLevel:p,modelSupportsThinking:m,onThinkingChange:h,onSend:g,onPersonalSendDispatched:_,onAbort:v,onAddPendingFollowUp:y,onSteeringInterrupt:b,pendingFollowUps:x,editingFollowUpId:S,onBeginEditFollowUp:C,onCancelEditFollowUp:w,onCommitEditFollowUp:T,onPendingFollowUpRemove:E,onPendingFollowUpMove:D,onPendingFollowUpReorder:O,onPendingFollowUpSteer:k,steeringFollowUpId:A,welcomeDraftSeed:j,welcomeSuggestion:M,onAcceptWelcomeSuggestion:N,sessionModel:P,showModelSelector:F,onModelChange:I,modelDisabled:L,onChatAgentChange:R,currentAgentId:z,voiceAgentName:B,voiceTaskId:V,voiceMode:H,prepareVoiceSession:U,prepareContextSession:W,editingUserTurnId:G,onCancelUserMessageEdit:ee}){let te=BP(),ne=(0,Z.useRef)(!1);n||=te.conversationId===o&&te.active;let K=kt(Pt(e=>e.language)),[re,ie]=u();(0,Z.useEffect)(()=>{pU()},[]);let ae=(...e)=>r?!1:g(...e),oe=(0,Z.useRef)(!1),se=(0,Z.useRef)(null),ce=(0,Z.useRef)(null),le=(0,Z.useRef)(null),ue=(0,Z.useRef)(!1),[de,pe]=(0,Z.useState)(!1),[me,he]=(0,Z.useState)(null),[_e,ve]=(0,Z.useState)(null),[ye,be]=(0,Z.useState)(!1),xe=(0,Z.useRef)(ae),Se=(0,Z.useRef)(p);xe.current=ae,Se.current=p,(0,Z.useEffect)(()=>{if(!o||_e===o){he(null);return}let e=!1;return Hr(o).then(e=>e?null:_U(o)).then(t=>{e||he(t&&t.required&&!t.trusted&&t.decision===null?t:null)}).catch(()=>{e||he(null)}),()=>{e=!0}},[o,_e]);let Ce=(0,Z.useCallback)(()=>{!o||ye||(be(!0),vU(o,!0).then(()=>{he(null)}).catch(e=>{ht(`error`,K.chat.commandPalette.workspaceTrustFailed,{error:e instanceof Error?e.message:String(e)})}).finally(()=>be(!1)))},[K.chat.commandPalette,o,ye]),we=ge({chat:K.chat,onAttachmentsChange:e=>f?.(e.map((e,t)=>({id:e.uri||e.id||`draft:${t}:${e.name}`,title:e.name})))}),Te=(0,Z.useRef)(l);Te.current=l;let Ee=(0,Z.useCallback)(e=>{let t=l.find(t=>t.refId===e);return t?{title:t.title,kind:t.kind,fileKind:t.fileKind}:void 0},[l]),De=(0,Z.useCallback)(e=>{let t=e?.contextRefs??[];if(Te.current=t,d(t),e?.attachments){we.setAttachments(e.attachments.map(the));return}we.clearAttachments()},[we.clearAttachments,we.setAttachments,d]),Oe=(0,Z.useCallback)(e=>{let t=Te.current,n=t.find(t=>t.kind===e.kind&&t.sourceId===e.sourceId);if(n){if(n.refId)return n;let r={...n,refId:e.refId},i=t.map(e=>e===n?r:e);return Te.current=i,d(i),r}if(t.length>=5)return ht(`warning`,K.chat.commandPalette.contextLimitReached,{max:5}),null;let r=[...t,e];return Te.current=r,d(r),e},[K.chat.commandPalette.contextLimitReached,d]),ke=(0,Z.useCallback)(e=>{let t=e.availability.status===`agent-denied`?K.chat.commandPalette.skillAgentDeniedReason:K.chat.commandPalette.skillDisabledReason,n=$U(K.chat.commandPalette.skillUnavailableMessage,{name:e.name,agent:z||`main`,reason:t});if(e.availability.status===`agent-denied`&&window.confirm(`${n}\n\n${K.chat.commandPalette.skillAddToAllowlistConfirm}`)){hU(z,e.canonicalName,o).catch(e=>{window.alert(e instanceof Error?e.message:String(e))});return}window.alert(n)},[z,K.chat.commandPalette,o]),Ae=EU({disabled:n,agentId:z,conversationId:o,autoFocusKey:o,welcomeDraftSeed:j,onExternalTextReplace:De,shouldSyncSelectionRef:oe,resolveContextRef:Ee}),je=re.get(`attachmentHandoff`);Ame(o,Ae,we,l,d),(0,Z.useEffect)(()=>{if(!je)return;let e=mt(je);ie(e=>{let t=new URLSearchParams(e);return t.delete(`attachmentHandoff`),t},{replace:!0}),e&&we.processFiles([e]).then(()=>Ae.editorRef.current?.focus({preventScroll:!0}))},[je,we.processFiles,Ae.editorRef,o,ie]);let{onUserTextCommitted:Me,onWireInputClearWalk:Ne,tryInputHistoryArrow:Pe}=Dme({conversationId:o,editorRef:Ae.editorRef,valueRef:Ae.valueRef,resetEditor:Ae.resetEditor,onWireInput:Ae.onWireInput}),Fe=(0,Z.useCallback)((e,t)=>{Ne(e,t);let n=xr(e),r=new Set(n?Pr(n):[]),i=Te.current,a=i.filter(e=>!e.refId||r.has(e.refId));a.length!==i.length&&(Te.current=a,d(a))},[Ne,d]),Ie=Uz(o??``),Le=i||a||Ie;ue.current=Le;let Re=(0,Z.useCallback)(()=>{ue.current||pe(!0)},[]),ze=(0,Z.useCallback)(e=>{Q5(xe.current(e,void 0,Se.current,l),()=>{Me?.(e),d([])})},[l,Me,d]),Be=Jme({conversationId:o,editorValue:Ae.value,editorCursor:Ae.cursor,isComposing:Ae.isComposing,runBusy:Le,thinkingLevel:p,editorRef:Ae.editorRef,valueRef:Ae.valueRef,resetEditor:Ae.resetEditor,clearAttachments:we.clearAttachments,onSend:ae,onUserTextCommitted:Me,onChatAgentChange:R,currentAgentId:z,prepareSession:W,contextRefs:l,onAddContextRef:Oe,onUnavailableSkill:ke,onReviewLauncher:Re,onAddPendingFollowUp:y,onAbort:v,pendingFollowUpsCount:x.length,maxPendingFollowUps:10,clearContextRefs:()=>d([]),commandPalettePanelRef:se});oe.current=Be.shouldSyncSelection;let Ve=RP({disabled:n||te.active,chat:K.chat,onTranscript:e=>{let t=Ae.valueRef.current,n=q3(t,e);Ae.resetEditor({nextText:n,caretOffset:n.length,focus:!0})}}),{phase:He,voiceActive:Ue,startVoiceInput:We,cancelVoiceInput:Ge,confirmVoiceInput:Ke}=Ve;(0,Z.useEffect)(()=>{let e=e=>{if(!Tpe(e,{disabled:n,editorHidden:Ue&&He!==`error`}))return;let t=qH(e.clipboardData);t&&(e.preventDefault(),Ae.focusForExternalPaste(),JH(t,{processFiles:we.processFiles,processPastedText:we.processPastedText,insertText:e=>document.execCommand(`insertText`,!1,e),onUnsupportedFiles:()=>ht(`warning`,K.chat.clipboardFileTypeUnsupported)}))};return window.addEventListener(`paste`,e),()=>window.removeEventListener(`paste`,e)},[we.processFiles,we.processPastedText,n,Ae.focusForExternalPaste,K.chat.clipboardFileTypeUnsupported,Ue,He]),(0,Z.useEffect)(()=>{let e=e=>{let t=e?.detail?.target;if(!(t&&t!==`chat`)&&(e?.preventDefault(),!n)){if(He===`recording`){Ke();return}(He===`idle`||He===`error`)&&(Ae.editorRef.current?.focus({preventScroll:!0}),We())}},t=e=>{let t=e.detail?.target;t&&t!==`chat`||!Ue||(e.preventDefault(),Ge(),Ae.editorRef.current?.focus({preventScroll:!0}))};window.addEventListener(X3,e),window.addEventListener(Z3,t);let r=window.setTimeout(()=>{if(cce()){if(n){t6();return}e()}},0);return()=>{window.clearTimeout(r),window.removeEventListener(X3,e),window.removeEventListener(Z3,t)}},[Ge,Ke,n,Ae.editorRef,We,Ue,He]);let qe=(0,Z.useCallback)(()=>{le.current=null},[]),Je=kme({chat:K.chat,runBusy:Le,voiceActive:Ve.voiceActive,cancelVoiceInput:Ve.cancelVoiceInput,editingFollowUpId:S,getTextValue:()=>Ae.valueRef.current,getAttachmentCount:()=>we.attachmentsRef.current.length,wireAttachmentsPayload:we.wireAttachmentsPayload,getContextRefs:()=>l,getThinkingLevel:()=>Se.current,onSend:ae,onDispatched:e&&_?(e,t)=>{let n=Ae.editorRef.current?.getBoundingClientRect();n&&_(e,n,t)}:void 0,onAddPendingFollowUp:y,onSteeringInterrupt:b,onCommitEditFollowUp:T,onPendingFollowUpRemove:E,pendingFollowUpsCount:x.length,resetEditor:()=>{Ae.resetEditor()},clearAttachments:we.clearAttachments,clearContextRefs:()=>d([]),clearEditFollowUpRef:qe,onUserTextCommitted:Me});(0,Z.useLayoutEffect)(()=>{if(!S){le.current&&=(we.clearAttachments(),d([]),Ae.resetEditor(),null);return}if(S===le.current)return;let e=x.find(e=>e.id===S);if(!e){w();return}le.current=S,e.thinkingLevel!=null&&m&&h(e.thinkingLevel),we.setAttachments(Wpe(e.attachments??[])),d(e.contextRefs??[]),Ae.resetEditor({nextText:e.text,focus:!0})},[we.clearAttachments,we.setAttachments,Ae.resetEditor,S,w,h,x,m,d]);let Ye=(0,Z.useCallback)(e=>{C(e)},[C]),Xe=(0,Z.useRef)({});Xe.current={adapters:Be.adapters,send:Je.send,runBusy:Le,pendingFollowUpsCount:x.length,flushSteeringDraft:Je.flushSteeringDraft,interruptDraft:Je.interruptDraft,editingFollowUpId:S,onCancelEditFollowUp:w,attachmentsLen:we.attachments.length,contextRefsLen:l.length,isComposing:Ae.isComposing,valueRef:Ae.valueRef,adjustHeight:Ae.adjustHeight,editorRef:Ae.editorRef,tryInputHistoryArrow:Pe,acceptEmptySuggestion:!Le&&M&&N?()=>(N(M),!0):void 0};let Ze=Le,Qe=!!Ae.value.trim()||we.attachments.length>0||l.length>0,$e=Qe&&!!b,et=N5(`(hover: hover) and (pointer: fine)`),tt=!Ze&&!S&&M?`${M.prompt}${et?` · ${K.chat.welcomeSpotlight.acceptSuggestionHint}`:``}`:null;return(0,$.jsxs)(`div`,{className:`relative flex min-h-0 w-full flex-col`,children:[o?(0,$.jsx)(Spe,{conversationId:o},o):null,s?(0,$.jsx)(Lpe,{...s,conversationId:o,disabled:(s.disabled??n)||i||a}):null,(0,$.jsxs)(kU,{className:e?`rounded-[1.65rem] shadow-surface dark:bg-surface-panel/90`:void 0,dragging:we.isDragging,onDragOver:e=>{(e.dataTransfer?.types.includes(`Files`)||NV(e.dataTransfer))&&(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,we.setIsDragging(!0))},onDragLeave:e=>{e.relatedTarget===null&&we.setIsDragging(!1)},onDrop:async e=>{e.preventDefault(),we.setIsDragging(!1);let t=e.dataTransfer?.files;if(t?.length){await we.processFiles(Array.from(t));return}let n=PV(e.dataTransfer);if(n)try{let e=await ga(n.path,{conversationId:n.conversationId,agentId:n.agentId,projectId:n.projectId}),t=si(n.name),r=e.type&&e.type!==`application/octet-stream`?e.type:t;await we.processFiles([new File([e],n.name,{type:r})])}catch{ht(`error`,K.chat.attachmentLoadFailed,{name:n.name})}},children:[we.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:K.chat.dropFiles}):null,G?(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:K.chat.userMessageEditing}),(0,$.jsx)(`button`,{type:`button`,className:`font-medium text-accent-fg hover:underline`,onClick:ee,children:K.chat.userMessageEditCancel})]}):null,(0,$.jsx)(Fpe,{conversationId:o}),x.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)(Ope,{items:x,disabled:n,editingFollowUpId:S,onEditInComposer:Ye,onRemove:E,onMove:D,onReorder:O,onSteer:k,steeringBusyId:A})}):null,(0,$.jsx)(fe,{attachments:we.attachments,conversationId:o,topPadded:x.length>0,onRemove:we.removeAttachment}),(0,$.jsx)(Ipe,{refs:l.filter(e=>!e.refId),label:K.chat.commandPalette.contextLabel,onRemove:e=>d(t=>t.filter(t=>t.sourceId!==e))}),c,(0,$.jsxs)(`div`,{className:e?`flex min-h-0 shrink-0 items-end gap-1 px-1.5 py-1.5 sm:px-2`:`flex min-h-0 shrink-0 flex-col`,children:[(0,$.jsx)(`input`,{ref:ce,type:`file`,multiple:!0,className:`hidden`,onChange:async e=>{let t=e.target.files;t&&await we.processFiles(Array.from(t)),e.target.value=``}}),e&&!Ve.voiceActive&&(0,$.jsx)(Hpe,{disabled:n||r,attachmentCount:we.attachments.length,maxAttachments:10,chat:K.chat,onPickFiles:()=>ce.current?.click()}),(0,$.jsxs)(`div`,{className:e?`relative min-w-0 flex-1 px-1`:q(`relative px-3 pb-0 pt-1 sm:px-4`,we.attachments.length>0&&`pt-2`),children:[(0,$.jsx)(Xpe,{open:Be.atPicker.open,anchorRef:Ae.editorRef,items:Be.atPicker.items,selectedIndex:Be.atPicker.selectedIndex,loading:Be.atPicker.loading,query:Be.atPicker.query,noResults:Be.atPicker.error??K.chat.atMention.noResults,conversationId:o,recentLabel:K.chat.atMention.recentBadge,sectionLabels:{file:K.chat.atMention.files,note:K.chat.atMention.notes,session:K.chat.atMention.chats,skill:K.chat.atMention.skills,agent:K.chat.atMention.agents,browser_tab:K.chat.atMention.browserTabs,mcp_server:K.chat.atMention.mcpServers,mcp_resource:K.chat.atMention.mcpResources},ariaLabel:K.chat.atMention.placeholder,onSelectItem:Be.applyAtMention}),(0,$.jsx)(yme,{open:Be.palette.open,anchorRef:Ae.editorRef,panelRef:se,sections:Be.palette.loadError?[]:Be.palette.sections,flatItems:Be.palette.loadError?[]:Be.palette.flatItems,loading:Be.palette.loading,failedKinds:Be.palette.failedKinds,selectedIndex:Be.palette.selectedIndex,noResults:Be.palette.loadError??K.chat.commandPalette.noResults,sectionLoadFailedLabel:K.chat.commandPalette.sectionLoadFailed,query:Be.palette.query,skillsLabel:K.chat.commandPalette.skillsSection,commandsLabel:K.chat.commandPalette.commandsSection,agentsLabel:K.chat.commandPalette.agentsSection,currentAgentId:z,currentBadgeLabel:K.chat.commandPalette.currentBadge,runBusy:Le,pendingFollowUpsCount:x.length,maxPendingFollowUps:10,queueBadgeLabel:K.chat.commandPalette.queueBadge,queueFullBadgeLabel:K.chat.commandPalette.queueFullBadge,queueFullTooltip:K.chat.commandPalette.queueFullTooltip,skillUnavailableLabel:K.chat.commandPalette.skillUnavailableBadge,skillAgentDeniedLabel:K.chat.commandPalette.skillAgentDeniedBadge,skillSourceLabels:{builtin:K.chat.commandPalette.sourceBuiltin,workspace:K.chat.commandPalette.sourceWorkspace,global:K.chat.commandPalette.sourceGlobal,extra:K.chat.commandPalette.sourceExtra},onSelectItem:Be.applyPalette}),Ve.voiceActive?(0,$.jsx)(Y3,{phase:Ve.phase,elapsedLabel:Ve.elapsedLabel,audioLevel:Ve.audioLevel,partialTranscript:Ve.partialTranscript,finalTranscript:Ve.finalTranscript,error:Ve.error,settingsRequired:Ve.settingsRequired,disabled:n,chat:K.chat,onCancel:Ve.cancelVoiceInput,onConfirm:Ve.confirmVoiceInput,onRetry:Ve.retryVoiceInput}):null,(0,$.jsx)(DU,{editorRef:Ae.editorRef,disabled:n,hidden:Ve.voiceActive&&Ve.phase!==`error`,compact:e,ariaLabel:t??K.chat.inputPlaceholder,placeholder:t??tt??(Ze?S?K.chat.inputPlaceholderSteeringEdit:K.chat.inputPlaceholderSteering:K.chat.inputPlaceholder),onWireInput:Fe,adjustHeight:Ae.adjustHeight,processFiles:we.processFiles,processPastedText:we.processPastedText,setIsComposing:Ae.setIsComposing,kbdRef:Xe,chatMessages:K.chat})]}),e?(0,$.jsx)(Upe,{disabled:n||r,voiceActive:Ve.voiceActive,runBusy:Ze,hasDraft:Qe,chat:K.chat,onStartVoiceInput:Ve.startVoiceInput,onSend:Je.send,onQueue:y?Je.flushSteeringDraft:void 0,onAbort:v,onInterrupt:Je.interruptDraft}):(0,$.jsx)(rW,{disabled:n||r,sending:i,streaming:a,runBusy:Ze,chat:K.chat,hasDraft:Qe,showSteeringInterrupt:$e,attachmentCount:we.attachments.length,maxAttachments:10,onPickFiles:()=>ce.current?.click(),thinkingLevel:p,onThinkingChange:h,voiceActive:Ve.voiceActive,onStartVoiceInput:Ve.startVoiceInput,voiceConversationEnabled:!!(o||U)&&!Ze,onStartVoiceConversation:()=>{if(!ne.current){if(o){te.open({conversationId:o,name:B||z||`xopc`,taskId:V,mode:H});return}U&&(ne.current=!0,U().then(e=>te.open({conversationId:e,name:B||z||`xopc`,taskId:V,mode:H})).catch(e=>ht(`error`,e instanceof Error?e.message:K.chat.callFailed)).finally(()=>{ne.current=!1}))}},onSend:Je.send,onQueue:y?Je.flushSteeringDraft:void 0,onAbort:v,onInterrupt:Je.interruptDraft,sessionModel:P,showModelSelector:F,onModelChange:I,modelDisabled:L})]}),(0,$.jsx)(ehe,{open:de,conversationId:o,disabled:n||Ze,chat:K.chat,onClose:()=>pe(!1),onSendCommand:ze}),(0,$.jsx)(sV,{open:me!==null,title:K.chat.commandPalette.workspaceTrustTitle,description:$U(K.chat.commandPalette.workspaceTrustDescription,{path:me?.workspacePath??``}),confirmLabel:ye?K.chat.commandPalette.workspaceTrustSaving:K.chat.commandPalette.workspaceTrustConfirm,cancelLabel:K.chat.commandPalette.workspaceTrustCancel,onConfirm:Ce,onCancel:()=>{he(null),ve(o)}})]})]})});function rhe(e){let t=(0,Q.c)(42),{draft:n,onRemove:r,disabled:i,waiting:a}=e,o=i===void 0?!1:i,s=a===void 0?!1:a,c=Pt(ahe),l;t[0]===c?l=t[1]:(l=kt(c),t[0]=c,t[1]=l);let u=l.chat.pageContext,d=u.label,f;t[2]!==n.title||t[3]!==u.preview?(f=(0,$.jsxs)(`summary`,{className:`cursor-pointer break-words rounded text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[u.preview,`: `,n.title]}),t[2]=n.title,t[3]=u.preview,t[4]=f):f=t[4];let p;t[5]===u.frozen?p=t[6]:(p=(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:u.frozen}),t[5]=u.frozen,t[6]=p);let m;t[7]===n.envelope.resourceRefs?m=t[8]:(m=n.envelope.resourceRefs.map(ihe).join(`, `),t[7]=n.envelope.resourceRefs,t[8]=m);let h;t[9]===m?h=t[10]:(h=(0,$.jsx)(`p`,{className:`mt-1 break-all text-xs text-fg-muted`,children:m}),t[9]=m,t[10]=h);let g;t[11]===n.preview?g=t[12]:(g=(0,$.jsx)(`pre`,{className:`mt-2 max-h-48 overflow-y-auto whitespace-pre-wrap break-words font-sans text-sm text-fg`,children:n.preview}),t[11]=n.preview,t[12]=g);let _;t[13]!==n.truncated||t[14]!==u.truncated?(_=n.truncated?(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:u.truncated}):null,t[13]=n.truncated,t[14]=u.truncated,t[15]=_):_=t[15];let v;t[16]!==n.envelope.selection||t[17]!==u.draft||t[18]!==u.selection?(v=n.envelope.selection?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`mt-2 text-xs font-medium text-fg`,children:n.envelope.selection.draft?u.draft:u.selection}),(0,$.jsx)(`pre`,{className:`mt-1 max-h-36 overflow-y-auto whitespace-pre-wrap break-words font-sans text-sm text-fg`,children:n.envelope.selection.text})]}):null,t[16]=n.envelope.selection,t[17]=u.draft,t[18]=u.selection,t[19]=v):v=t[19];let y;t[20]!==_||t[21]!==v||t[22]!==f||t[23]!==p||t[24]!==h||t[25]!==g?(y=(0,$.jsxs)(`details`,{className:`min-w-0 flex-1`,children:[f,p,h,g,_,v]}),t[20]=_,t[21]=v,t[22]=f,t[23]=p,t[24]=h,t[25]=g,t[26]=y):y=t[26];let b=`${u.remove}: ${n.title}`,x;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),t[27]=x):x=t[27];let S;t[28]!==o||t[29]!==r||t[30]!==b?(S=(0,$.jsx)(`button`,{type:`button`,onClick:r,disabled:o,"aria-label":b,className:`inline-flex size-8 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:opacity-50`,children:x}),t[28]=o,t[29]=r,t[30]=b,t[31]=S):S=t[31];let C;t[32]!==y||t[33]!==S?(C=(0,$.jsxs)(`div`,{className:`flex items-start gap-2`,children:[y,S]}),t[32]=y,t[33]=S,t[34]=C):C=t[34];let w;t[35]!==u.pending||t[36]!==s?(w=s?(0,$.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,role:`status`,children:u.pending}):null,t[35]=u.pending,t[36]=s,t[37]=w):w=t[37];let T;return t[38]!==u.label||t[39]!==C||t[40]!==w?(T=(0,$.jsxs)(`section`,{className:`mx-4 mt-2 min-w-0 rounded-lg border border-edge bg-surface-hover p-3`,"aria-label":d,children:[C,w]}),t[38]=u.label,t[39]=C,t[40]=w,t[41]=T):T=t[41],T}function ihe(e){return`${e.kind} · ${e.id} · v${e.revision}`}function ahe(e){return e.language}function ohe(){let e=crypto.randomUUID(),t=crypto.randomUUID(),n=0,r=It(()=>({drafts:{}}));return{store:r,capture(r){return{envelope:fee({version:1,clientInstanceId:e,tabId:t,sequence:++n,surface:`web`,capturedAt:Date.now(),resourceRefs:r.resourceRefs,selection:r.selection}),title:r.title,preview:r.text.slice(0,16e3),truncated:r.text.length>16e3}},put(e,t){let n=r.getState().drafts;return n[e]||Object.keys(n).length>=20?!1:(r.setState({drafts:{...n,[e]:structuredClone(t)}}),!0)},remove(e,t){let n=r.getState().drafts;if(n[e]!==t)return;let i={...n};delete i[e],r.setState({drafts:i})}}}var D7=ohe();function O7(e,t,n){return JSON.stringify([e,t??null,n])}function she(e){let t=(0,Q.c)(30),{selection:n}=e,r=Pt(che)===`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)(sv,{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)(aw,{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)(ta,{className:`h-8 w-36 rounded-full`}):(0,$.jsx)(F,{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)(Ye,{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)(X,{variant:`ghost`,className:`size-8 rounded-full p-0`,disabled:l||o,onClick:d,"aria-label":r?`重新检查环境`:`Recheck environment`,children:(0,$.jsx)(iS,{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 che(e){return e.language}function lhe({preparation:e,conversationId:t,ready:n,onSend:r}){let i=At(e=>e.conversationId),a=At(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)(!1),m=(0,Z.useRef)(r);m.current=r;let{data:h,error:g,isValidating:_,mutate:v}=Xr(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}),y=h?.localAvailable&&h.worktreeUnavailableReason!==`git_commit_required`&&h.worktreeUnavailableReason!==`workspace_unavailable`?o?.preparation===e?o.mode:e?Bj(D3(),e.project.id)??`local_checkout`:`local_checkout`:`local_checkout`,b=!!(!g&&h?.localAvailable&&(y===`local_checkout`||!h.worktreeUnavailableReason)),x=(0,Z.useCallback)(e=>{let t=f.current;f.current=null,d(null),t?.resolve(e?t.conversationId:null)},[]);(0,Z.useEffect)(()=>{if(u){if(u.baseUrl!==a||u.token!==i){x(!1);return}u.conversationId&&(t===u.conversationId?n&&x(!0):e!==u.preparation&&x(!1))}},[u,t,n,e,x,a,i]),(0,Z.useEffect)(()=>()=>{f.current?.resolve(null),f.current=null},[]);let S=(0,Z.useCallback)(async()=>{if(!e)return t;let n=f.current;if(n)return n.preparation===e?n.completion:null;if(!b||_)return null;l(null);let r,o=new Promise(e=>{r=e}),s={preparation:e,baseUrl:a,token:i,conversationId:null,completion:o,resolve:r};return f.current=s,d(s),Promise.resolve().then(()=>e.create(y)).then(t=>{if(f.current!==s)return;Wse(e.project.id,y);let n={...s,conversationId:t};f.current=n,d(n)}).catch(t=>{f.current===s&&(l({preparation:e,message:t instanceof Error?t.message:String(t)}),v(),x(!1))}),o},[b,a,x,_,y,v,e,t,i]);return{mode:y,options:h,checking:_,checkFailed:!!g,allowed:b,busy:!!(u&&(u.preparation===e||u.conversationId&&u.conversationId===t)),failure:c?.preparation===e?c.message:null,changeMode:t=>{!e||f.current||(s({preparation:e,mode:t}),l(null))},retry:()=>void v(),prepareSession:S,send:async(...t)=>{if(e){if(p.current)return!1;p.current=!0;try{if(!await S())return!1;t[2]=void 0}finally{p.current=!1}}return m.current(...t)}}}function uhe(e,t){let n=(0,Q.c)(12),r=At(fhe),i=At(dhe),a;n[0]===e?a=n[1]:(a=t=>e?t.sessions[e]?.localDraft:void 0,n[0]=e,n[1]=a);let o=zr(a),s;n[2]!==i||n[3]!==e||n[4]!==t||n[5]!==o||n[6]!==r?(s=e||t?[`chat-project-scope`,i,r,e,t,o===!0?`draft`:o===!1?`persisted`:`unknown`]:null,n[2]=i,n[3]=e,n[4]=t,n[5]=o,n[6]=r,n[7]=s):s=n[7];let c;n[8]!==e||n[9]!==t?(c=async()=>{let n=e?await Hr(e):void 0,r=n?n.creation.projectId:e?(await In(e)).projectId:t;return r?WR(r):null},n[8]=e,n[9]=t,n[10]=c):c=n[10];let l;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(l={keepPreviousData:!1,shouldRetryOnError:!1},n[11]=l):l=n[11];let{data:u,error:d}=Xr(s,c,l);return d?null:u??null}function dhe(e){return e.baseUrl}function fhe(e){return e.conversationId}function phe(e,t){let n=P3(e,t),r=F3(e,t);return`${e.id} ${n} ${r}`.toLowerCase()}function mhe(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=phe(e,n);return i.every(e=>t.includes(e))})}function hhe(e){let t=(0,Q.c)(57),{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=Pt(_he),g;t[0]===h?g=t[1]:(g=kt(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=mhe(n,b,_),t[2]=_,t[3]=n,t[4]=b,t[5]=S):S=t[5];let C=S,T,D,k;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),D=n.find(e),T=D?P3(D,_):r||a,k=D?[P3(D,_),F3(D,_)].filter(Boolean).join(` — `):void 0,t[6]=_,t[7]=n,t[8]=a,t[9]=r,t[10]=T,t[11]=D,t[12]=k}else T=t[10],D=t[11],k=t[12];let A=k??a,j=c&&`min-w-0 max-w-[min(calc(15ch+3rem),calc(100vw-8rem))] py-1.5 text-[13px]`,N;t[15]!==d||t[16]!==j?(N=q(Fi,`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`,$r.transition,`hover:border-edge hover:bg-surface-hover/45`,Li,Pi,`disabled:cursor-not-allowed disabled:opacity-50`,`dark:border-edge-subtle dark:hover:bg-surface-hover/55`,j,d),t[15]=d,t[16]=j,t[17]=N):N=t[17];let P;t[18]!==D?.avatar||t[19]!==r?(P=r?(0,$.jsx)(SL,{agentId:r,avatar:D?.avatar,size:28,className:`shrink-0`}):null,t[18]=D?.avatar,t[19]=r,t[20]=P):P=t[20];let F=c?`max-w-[15ch] shrink`:`flex-1`,I;t[21]===F?I=t[22]:(I=q(`min-w-0 truncate text-left`,F),t[21]=F,t[22]=I);let L;t[23]!==T||t[24]!==I?(L=(0,$.jsx)(`span`,{className:I,children:T}),t[23]=T,t[24]=I,t[25]=L):L=t[25];let R;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(O,{className:`size-4 shrink-0 text-fg-subtle opacity-70`,"aria-hidden":!0}),t[26]=R):R=t[26];let z;t[27]!==i||t[28]!==L||t[29]!==A||t[30]!==N||t[31]!==P?(z=(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,disabled:i,title:A,className:N,children:[P,L,R]})}),t[27]=i,t[28]=L,t[29]=A,t[30]=N,t[31]=P,t[32]=z):z=t[32];let B;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(B=q(E,`z-50 w-[var(--radix-popover-trigger-width)] min-w-[12rem] rounded-lg border border-edge bg-surface-panel shadow-md`,$r),t[33]=B):B=t[33];let V;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>x(e.target.value),t[34]=V):V=t[34];let H;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(H=q(`w-full rounded-md border border-edge bg-surface-panel px-2.5 py-1.5 text-sm text-fg placeholder:text-fg-muted`,Li),t[35]=H):H=t[35];let U;t[36]!==b||t[37]!==o?(U=(0,$.jsx)(`div`,{className:`shrink-0 border-b border-edge p-2`,children:(0,$.jsx)(`input`,{type:`search`,value:b,onChange:V,placeholder:o,className:H,"aria-label":o})}),t[36]=b,t[37]=o,t[38]=U):U=t[38];let W;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(W=q(M,`max-h-64 p-1`),t[39]=W):W=t[39];let G;t[40]!==_||t[41]!==C||t[42]!==s||t[43]!==f||t[44]!==r?(G=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=P3(e,_),i=F3(e,_),a=i.length>0?i:void 0;return(0,$.jsx)(`li`,{role:`option`,"aria-selected":t,children:(0,$.jsxs)(`button`,{type:`button`,className:q(`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)(SL,{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]}),(0,$.jsx)(w,{className:q(`size-4 shrink-0`,t?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})},e.id)}),t[40]=_,t[41]=C,t[42]=s,t[43]=f,t[44]=r,t[45]=G):G=t[45];let ee;t[46]===G?ee=t[47]:(ee=(0,$.jsx)(`ul`,{"data-select-scroll-region":!0,className:W,role:`listbox`,children:G}),t[46]=G,t[47]=ee);let te;t[48]!==m||t[49]!==p||t[50]!==U||t[51]!==ee?(te=(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{side:p,align:m,sideOffset:4,collisionPadding:8,className:B,onOpenAutoFocus:ghe,children:[U,ee]})}),t[48]=m,t[49]=p,t[50]=U,t[51]=ee,t[52]=te):te=t[52];let ne;return t[53]!==v||t[54]!==z||t[55]!==te?(ne=(0,$.jsxs)(Qi,{open:v,onOpenChange:y,children:[z,te]}),t[53]=v,t[54]=z,t[55]=te,t[56]=ne):ne=t[56],ne}function ghe(e){return e.preventDefault()}function _he(e){return e.language}function vhe(e,t,n=[],r){let i=new Map;for(let t of e)i.set(`${t.kind}:${t.id}`,{...t,pending:!1});let a=(e,t,n,r)=>{let a=`${e}:${t}`,o=i.get(a);if(o){o.pending=!0;return}i.set(a,{kind:e,id:t,title:n,...r?{fileKind:r}:{},origins:[],pending:!0})};for(let e of t)a(e.kind,e.sourceId,e.title,e.fileKind);for(let e of n)a(`attachment`,e.id,e.title);return r&&a(`app_context`,r.id,r.title),[...i.values()]}function yhe(e){return e===`zh`?{title:`会话信息`,work:`当前工作`,sources:`关联来源`,environment:`运行位置`,independent:`独立会话`,delegatedTasks:`派出任务`,expand:`显示更多`,collapse:`收起`,session:`会话关联`,task:`任务关联`,recent:`最近引用`,draft:`待发送`,untitled:`未命名 Note`,untitledSource:`未命名来源`,unavailable:`暂无法查看`,partialUnavailable:`部分信息暂无法查看`,refresh:`重试`,more:`仅显示前 20 项`,local:`本地目录`,worktree:`Worktree`,detached:`游离 HEAD`,unavailableEnvironment:`运行目录不可用`,newEnvironment:`在另一环境新建会话`,copyEnvironmentPath:`复制环境路径`,copied:`已复制`}:{title:`Session info`,work:`Current work`,sources:`Related sources`,environment:`Run location`,independent:`Independent chat`,delegatedTasks:`Delegated tasks`,expand:`Show more`,collapse:`Show less`,session:`Linked to chat`,task:`Linked to task`,recent:`Recently used`,draft:`Pending send`,untitled:`Untitled Note`,untitledSource:`Untitled source`,unavailable:`Temporarily unavailable`,partialUnavailable:`Some details are unavailable`,refresh:`Retry`,more:`Showing the first 20 items`,local:`Local directory`,worktree:`Worktree`,detached:`Detached HEAD`,unavailableEnvironment:`Run directory unavailable`,newEnvironment:`New chat in another environment`,copyEnvironmentPath:`Copy environment path`,copied:`Copied`}}var k7=`flex min-w-0 items-center gap-3 rounded-lg px-2 py-2 text-sm text-fg transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,A7=`rounded-md px-2 py-1 text-xs text-fg-muted hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`;function bhe({conversationId:e,draftRefs:t=[],draftAttachments:n=[],draftPage:r,project:i,...a}){let[o,s]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(!1),[f,p]=(0,Z.useState)(!1),m=yhe(Pt(e=>e.language)),h=b(),g=`${h.pathname}${h.search}`,{data:_,error:v,isLoading:x,isValidating:S,mutate:C}=CN(e,o),T=v?void 0:_,E=T?.work.project??(!e&&i?{id:i.id,title:i.name}:void 0),D=T?.work.task,O=T?.work.delegatedTasks??[],k=vhe(T?.sources??[],t,n,r),A=T?.environment,j=!!(E||D||O.length),M=!!T?.unavailableSections.includes(`work`),N=!!T?.unavailableSections.includes(`sources`),P=!!T?.unavailableSections.includes(`environment`),F=[E?.title,D?.title,k.length?`${m.sources} ${k.length}${T?.sourcesHasMore?`+`:``}`:null,A?.kind===`managed_worktree`?`Worktree`:null].filter(Boolean).join(` · `)||m.title,I=()=>s(!1),L=k.some(e=>e.kind===`note`&&!e.unavailable&&e.origins.some(e=>e.kind===`session`)),R=()=>{A?.rootPath&&Yr(A.rootPath).then(e=>{e&&(p(!0),window.setTimeout(()=>p(!1),1200))})},z=()=>(0,$.jsx)(`button`,{type:`button`,className:A7,"aria-label":m.refresh,disabled:S,onClick:()=>void C(),children:(0,$.jsx)(iS,{className:`size-3.5 ${S?`animate-spin motion-reduce:animate-none`:``}`,"aria-hidden":!0})});return(0,$.jsxs)(Qi,{open:o,onOpenChange:s,children:[(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,"aria-label":m.title,title:F,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)(bv,{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)(Yi,{children:(0,$.jsxs)(Zi,{align:`end`,sideOffset:8,collisionPadding:12,"aria-label":m.title,className:`xopc-session-context-popover z-50 max-h-[min(30rem,var(--radix-popover-content-available-height))] w-[min(23rem,calc(100vw-1.5rem))] overflow-y-auto rounded-xl border border-edge bg-surface-panel p-3 shadow-popover`,children:[(0,$.jsx)(`h2`,{className:`mb-2 px-2 text-sm font-medium text-fg`,children:m.title}),x?(0,$.jsx)(`div`,{className:`space-y-2 px-2`,"aria-busy":`true`,children:[0,1,2].map(e=>(0,$.jsx)(ta,{className:`h-8 w-full`},e))}):v?(0,$.jsxs)(`div`,{className:`flex items-center justify-between px-2 py-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`span`,{children:m.unavailable}),z()]}):(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`section`,{"aria-label":m.work,children:[E?(0,$.jsxs)(y,{className:k7,to:Ae(`/projects/${encodeURIComponent(E.id)}`,g),onClick:I,children:[(0,$.jsx)(F_,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:E.title,children:E.title})]}):null,D?(0,$.jsxs)(y,{className:k7,to:Se(g,D.id),onClick:I,children:[(0,$.jsx)(_D,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:D.title,children:D.title}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:D.phase})]}):null,O.length?(0,$.jsxs)($.Fragment,{children:[O.length>2?(0,$.jsxs)(`button`,{type:`button`,className:`${k7} w-full text-left`,onClick:()=>l(!c),"aria-expanded":c,children:[(0,$.jsx)(_D,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`flex-1`,children:[m.delegatedTasks,` · `,T?.work.delegatedTaskCount??O.length]}),(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:c?m.collapse:m.expand})]}):(0,$.jsxs)(`p`,{className:`px-2 pt-2 text-xs text-fg-subtle`,children:[m.delegatedTasks,` · `,T?.work.delegatedTaskCount??O.length]}),(c?O:O.slice(0,2)).map(e=>(0,$.jsxs)(y,{className:`${k7} pl-9`,to:Se(g,e.id),onClick:I,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.title,children:e.title}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:e.runStatus??e.phase})]},e.id))]}):null,j?null:(0,$.jsx)(`p`,{className:`px-2 py-2 text-sm text-fg-muted`,children:M?m.unavailable:m.independent}),M?(0,$.jsxs)(`div`,{className:`flex items-center justify-between px-2 text-xs text-fg-muted`,children:[j?m.partialUnavailable:null,z()]}):null,E&&a.onLeaveProject?(0,$.jsx)(`button`,{type:`button`,className:A7,onClick:()=>{I(),a.onLeaveProject?.()},children:a.leaveProjectLabel}):null]}),k.length||N?(0,$.jsxs)(`section`,{className:`border-t border-edge-subtle pt-3`,children:[(0,$.jsxs)(`div`,{className:`mb-1 flex items-center justify-between px-2`,children:[(0,$.jsxs)(`h3`,{className:`text-sm text-fg-subtle`,children:[m.sources,` `,k.length?`${k.length}${T?.sourcesHasMore?`+`:``}`:``]}),N?z():null]}),(u?k:k.slice(0,3)).map(e=>{let t=e.origins.some(e=>e.kind===`session`)?m.session:e.origins.some(e=>e.kind===`task`)?m.task:e.origins.some(e=>e.kind===`recent`)?m.recent:m.draft,n=e.pending&&e.origins.length?`${t} · ${m.draft}`:e.pending?m.draft:t,r=e.kind===`file`&&e.fileKind===`directory`?z_:e.kind===`file`?zg:e.kind===`session`?Pv:e.kind===`browser_tab`||e.kind===`browser_page`||e.kind===`app_context`?mo:e.kind===`mcp_resource`?Lm:e.kind===`attachment`?pb:zg,i=e.unavailable?m.unavailable:e.title||(e.kind===`note`?m.untitled:m.untitledSource),a=(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(r,{className:`size-4 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.unavailable?void 0:e.title,children:i}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:n})]}),o=e.kind===`note`?Ae(`/notes/${encodeURIComponent(e.id)}`,g):e.kind===`session`?`/chat/${encodeURIComponent(e.id)}`:null,s=`${e.kind}:${e.id}`;return!e.unavailable&&o?(0,$.jsx)(y,{className:k7,to:o,onClick:I,children:a},s):(0,$.jsx)(`div`,{className:`flex min-w-0 items-center gap-3 px-2 py-2 text-sm text-fg-muted`,children:a},s)}),k.length?null:(0,$.jsx)(`p`,{className:`px-2 py-2 text-xs text-fg-muted`,children:m.unavailable}),k.length>0&&N?(0,$.jsx)(`p`,{className:`px-2 py-1 text-xs text-fg-muted`,children:m.partialUnavailable}):null,k.length>3?(0,$.jsx)(`button`,{type:`button`,className:A7,onClick:()=>d(!u),"aria-expanded":u,children:u?m.collapse:m.expand}):null,T?.sourcesHasMore?(0,$.jsx)(`p`,{className:`px-2 py-1 text-xs text-fg-muted`,children:m.more}):null,L&&a.onDraftSourceNote?(0,$.jsx)(`button`,{type:`button`,className:A7,onClick:()=>{I(),a.onDraftSourceNote?.()},children:a.draftSourceNoteLabel}):null]}):null,e&&(A||P)?(0,$.jsxs)(`section`,{className:`border-t border-edge-subtle pt-3`,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:m.environment}),P?z():null]}),A?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3 px-2 py-2 text-sm text-fg`,children:[(0,$.jsx)(zv,{className:`size-4 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:A.kind===`managed_worktree`?m.worktree:m.local}),A.branch||A.headSha?(0,$.jsxs)(`span`,{className:`inline-flex min-w-0 max-w-40 items-center gap-1 text-xs text-fg-muted`,children:[(0,$.jsx)(Re,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:A.branch||(A.detached?`${m.detached} · ${A.headSha?.slice(0,8)}`:A.headSha?.slice(0,8))})]}):null]}),(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 pl-9 pr-1`,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,title:A.rootPath,children:A.rootPath}),(0,$.jsx)(`button`,{type:`button`,className:A7,"aria-label":f?m.copied:m.copyEnvironmentPath,title:f?m.copied:m.copyEnvironmentPath,onClick:R,children:f?(0,$.jsx)(w,{className:`size-3.5`,"aria-hidden":!0}):(0,$.jsx)(W,{className:`size-3.5`,"aria-hidden":!0})})]}),A.available?null:(0,$.jsx)(`p`,{className:`px-2 py-1 text-xs text-fg-muted`,children:m.unavailableEnvironment}),E&&i?.workspaceRoot?(0,$.jsx)(y,{className:A7,to:_e(E.id),state:{forceNewChat:!0,agentId:a.agentId,temporary:a.temporary},onClick:I,children:m.newEnvironment}):null]}):(0,$.jsx)(`p`,{className:`px-2 py-2 text-xs text-fg-muted`,children:m.unavailable})]}):null]})]})})]})}function xhe(e){let t=(0,Q.c)(61),{conversationId:n,workspacePath:r,canChangeWorkspace:i,disabled:a,available:o,onWorkspaceChange:s}=e,c=o===void 0?!0:o,l=Pt(Ehe),u;t[0]===l?u=t[1]:(u=kt(l),t[0]=l,t[1]=u);let d=u,f=WV(The),p=WV(whe),m=$Q(Che),[h,g]=(0,Z.useState)(null),_,v;t[2]!==d.chat.workingDirectory.notSet||t[3]!==r?(_=r?.trim()??``,v=_?tB(_):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=rB(S),w=a||C.picking,T;t[11]!==n||t[12]!==f||t[13]!==m?(T=()=>{n&&m(n,!1),f(n??``)},t[11]=n,t[12]=f,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=q(`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)(Le,{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:q(`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)(M_,{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)(dB,{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 R=h!==null,z;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(z=e=>{e||g(null)},t[41]=z):z=t[41];let B;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim backdrop-blur-[2px]`}),t[42]=B):B=t[42];let V;t[43]===d.chat.workingDirectory.applyErrorTitle?V=t[44]:(V=(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:d.chat.workingDirectory.applyErrorTitle}),t[43]=d.chat.workingDirectory.applyErrorTitle,t[44]=V);let H;t[45]===h?H=t[46]:(H=h?(0,$.jsx)(tn,{className:`mt-2 whitespace-pre-wrap text-sm leading-relaxed text-fg-muted`,children:h}):null,t[45]=h,t[46]=H);let U;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>g(null),t[47]=U):U=t[47];let W;t[48]===d.chat.workingDirectory.applyErrorClose?W=t[49]:(W=(0,$.jsx)(`div`,{className:`mt-4 flex justify-end border-t border-edge-subtle pt-3`,children:(0,$.jsx)(X,{type:`button`,onClick:U,children:d.chat.workingDirectory.applyErrorClose})}),t[48]=d.chat.workingDirectory.applyErrorClose,t[49]=W);let G;t[50]!==V||t[51]!==H||t[52]!==W?(G=(0,$.jsxs)(rn,{children:[B,(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay p-4 shadow-popover`,onOpenAutoFocus:She,children:[V,H,W]})]}),t[50]=V,t[51]=H,t[52]=W,t[53]=G):G=t[53];let ee;t[54]!==R||t[55]!==G?(ee=(0,$.jsx)(sn,{open:R,onOpenChange:z,children:G}),t[54]=R,t[55]=G,t[56]=ee):ee=t[56];let te;return t[57]!==I||t[58]!==L||t[59]!==ee?(te=(0,$.jsxs)($.Fragment,{children:[I,L,ee]}),t[57]=I,t[58]=L,t[59]=ee,t[60]=te):te=t[60],te}function She(e){return e.preventDefault()}function Che(e){return e.setOpen}function whe(e){return e.open}function The(e){return e.openForSession}function Ehe(e){return e.language}function Dhe(e){return e===`darwin`?`⌘J`:`Ctrl+J`}function Ohe(e,t){return e.repeat||e.altKey||e.shiftKey||e.key.toLowerCase()!==`j`?!1:t===`darwin`?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function j7(e){return e?e===`darwin`:typeof navigator>`u`?!1:navigator.platform?.includes(`Mac`)??navigator.userAgent.includes(`Mac`)}function khe(e){return j7(e)?`⌘⇧B`:`Ctrl+Shift+B`}function Ahe(e){return j7(e)?[`⌘`,`Shift`,`B`]:[`Ctrl`,`Shift`,`B`]}function jhe(e){return j7(e)?`Meta+Shift+B`:`Control+Shift+B`}function Mhe(e,t){return e.repeat||e.altKey||!e.shiftKey||e.key.toLowerCase()!==`b`?!1:j7(t)?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}var Nhe=[];function Phe(e,t){return e[t]??Nhe}var Fhe=0;function M7(){return globalThis.crypto?.randomUUID?.()??`terminal-${Date.now()}-${++Fhe}`}function N7(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 P7=It((e,t)=>({openByConversationId:{},tabsByConversationId:{},activeTabKeyByConversationId:{},height:300,open:n=>{let r=t();if(r.tabsByConversationId[n]?.length){e({openByConversationId:{...r.openByConversationId,[n]:!0}});return}let i=M7();e({openByConversationId:{...r.openByConversationId,[n]:!0},tabsByConversationId:{...r.tabsByConversationId,[n]:[{key:i}]},activeTabKeyByConversationId:{...r.activeTabKeyByConversationId,[n]:i}})},toggle:n=>{let r=t(),i=!r.openByConversationId[n];if(!i||r.tabsByConversationId[n]?.length){e({openByConversationId:{...r.openByConversationId,[n]:i}});return}r.open(n)},close:t=>e(e=>({openByConversationId:{...e.openByConversationId,[t]:!1}})),addTerminal:n=>{let r=t(),i=r.tabsByConversationId[n]??[];if(i.length>=8)return r.activeTabKeyByConversationId[n]??i[0].key;let a=M7();return e({tabsByConversationId:{...r.tabsByConversationId,[n]:[...i,{key:a}]},activeTabKeyByConversationId:{...r.activeTabKeyByConversationId,[n]:a}}),a},closeTerminal:(t,n)=>e(e=>{let r=e.tabsByConversationId[t]??[],i=r.findIndex(e=>e.key===n);if(i<0)return e;let a=r.filter(e=>e.key!==n),o=e.activeTabKeyByConversationId[t],s=o===n?a[Math.min(i,a.length-1)]?.key:o;return{tabsByConversationId:{...e.tabsByConversationId,[t]:a},activeTabKeyByConversationId:{...e.activeTabKeyByConversationId,[t]:s}}}),setActiveTerminal:(t,n)=>e(e=>(e.tabsByConversationId[t]??[]).some(e=>e.key===n)?{activeTabKeyByConversationId:{...e.activeTabKeyByConversationId,[t]:n}}:e),setHeight:t=>e({height:N7(t)})}));function Ihe({conversationId:e}){let t=Pt(e=>e.language),n=t===`zh`?Rhe:zhe,[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),[D,O]=(0,Z.useState)(!1);(0,Z.useEffect)(()=>{if(!r||a||s)return;let t=!1;return u(!0),f(null),Promise.all([Ea(e),Ree(e),Pee()]).then(async([n,r,i])=>{if(t)return;o(n),E(i);let a=i?await Da().catch(()=>null):null;if(t)return;O(a?.publishing.allowed===!0);let s=i?await zee(e).catch(()=>[]):[];if(t)return;let l=[...s,...r].find(e=>!e.revoked&&!e.expired);l&&c(l)}).catch(e=>{t||f(e instanceof Error?e.message:String(e))}).finally(()=>{t||u(!1)}),()=>{t=!0}},[r,a,s,e]);let k=()=>{o(null),c(null),f(null),u(!1),v(``),b(!1),S([]),O(!1)},A=async()=>{if(!(!a||l)){u(!0),f(null);try{c(await(C===`hosted`?Lee:Iee)(e,{expectedTranscriptId:a.transcriptId,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)}}},M=async()=>{if(!(!s||l)){u(!0),f(null);try{let t=await Ea(e);o(t),c(await(s.delivery===`hosted`?Fee:Mee)(e,s.id,{expectedTranscriptId:t.transcriptId,expectedCutoffSeq:t.cutoffSeq,expectedMetadataUpdatedAt:t.metadataUpdatedAt}))}catch(e){f(e instanceof Error?e.message:String(e))}finally{u(!1)}}},P=async()=>{if(!(!s||l)){u(!0),f(null);try{s.delivery===`hosted`?await Bee(e,s.id):await Nee(s.id),i(!1),k()}catch(e){f(e instanceof Error?e.message:String(e)),u(!1)}}};return(0,$.jsxs)(sn,{open:r,onOpenChange:e=>{i(e),e||k()},children:[(0,$.jsx)(en,{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)(jv,{className:`size-4`})})}),(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[70] bg-scrim backdrop-blur-[2px]`}),(0,$.jsxs)(an,{className:q(`xopc-dialog-content 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-xl border border-edge bg-surface-overlay 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)(on,{className:`text-base font-semibold text-fg`,children:s?n.created:n.title}),(0,$.jsx)(tn,{className:`mt-0.5 text-xs text-fg-muted`,children:s?n.createdHint:n.hint})]}),(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(`button`,{type:`button`,className:`touch-target flex size-10 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":n.close,children:(0,$.jsx)(Dt,{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)(Ye,{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)(Tt,{shareUrl:s.shareUrl,lanUrl:s.lanUrl,reachability:s.reachability}),(0,$.jsx)(Et,{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)(te,{className:`size-3.5`})]})]}):a?(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border border-edge bg-surface-inset p-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`,children:[(0,$.jsx)(`summary`,{className:`touch-target cursor-pointer px-3 py-2.5 text-xs font-medium text-fg transition-colors hover:bg-surface-hover`,children:n.reviewContent}),(0,$.jsx)(`div`,{className:`max-h-64 space-y-3 overflow-y-auto border-t border-edge p-3`,children:a.messages.map(e=>(0,$.jsxs)(`div`,{className:`rounded-lg bg-surface-inset px-3 py-2`,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,$.jsxs)(`div`,{className:`flex gap-2 rounded-lg border border-accent/20 bg-accent-soft px-3 py-2.5 text-xs leading-5 text-fg-muted`,children:[(0,$.jsx)(IC,{className:`mt-0.5 size-4 shrink-0 text-accent-fg`,"aria-hidden":`true`}),(0,$.jsx)(`span`,{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)(j,{value:C,disabled:l,onChange:e=>w(e.target.value),children:[(0,$.jsx)(N,{value:`hosted`,children:n.hosted}),(0,$.jsx)(N,{value:`local`,children:n.local})]})]}),C===`hosted`&&!T?(0,$.jsx)(g8,{providerId:`xopc-share`,displayName:n.hosted,connected:!1,onConnected:()=>{E(!0),Da().then(e=>O(e.publishing.allowed)).catch(()=>O(!1))}}):null,C===`hosted`&&T&&!D?(0,$.jsx)(`p`,{className:`rounded-lg border border-warning/30 bg-warning-soft px-3 py-2 text-xs text-warning`,children:n.hostedDisabled}):null,a.toolActivities.length?(0,$.jsxs)(`label`,{className:`flex items-start gap-2 rounded-lg border border-edge bg-surface-inset 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 bg-surface-inset 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:Lhe(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)(j,{value:p,disabled:l,onChange:e=>m(Number(e.target.value)),children:[(0,$.jsx)(N,{value:36e5,children:n.oneHour}),(0,$.jsx)(N,{value:864e5,children:n.oneDay}),(0,$.jsx)(N,{value:6048e5,children:n.sevenDays}),(0,$.jsx)(N,{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)(j,{value:h??`unlimited`,disabled:l,onChange:e=>g(e.target.value===`unlimited`?null:Number(e.target.value)),children:[(0,$.jsx)(N,{value:`unlimited`,children:n.unlimited}),(0,$.jsx)(N,{value:1,children:`1`}),(0,$.jsx)(N,{value:10,children:`10`}),(0,$.jsx)(N,{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-inset px-3 text-sm font-normal text-fg outline-none focus-visible:border-accent/50 focus-visible:ring-2 focus-visible:ring-accent/20`})]}),(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 bg-surface-overlay px-4 py-3`,children:s?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(X,{type:`button`,variant:`ghost`,disabled:l,onClick:()=>c(null),children:n.newShare}),(0,$.jsxs)(X,{type:`button`,variant:`ghost`,disabled:l,onClick:()=>void P(),children:[(0,$.jsx)(vO,{className:`size-4`}),n.revoke]}),(0,$.jsxs)(X,{type:`button`,disabled:l||s.delivery===`hosted`&&!D,onClick:()=>void M(),children:[l?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):(0,$.jsx)(iS,{className:`size-4`}),n.refresh]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(X,{type:`button`,variant:`ghost`,children:n.cancel})}),(0,$.jsxs)(X,{type:`button`,disabled:!a||l||a.messageCount===0||C===`hosted`&&(!T||!D),onClick:()=>void A(),children:[l?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):null,n.create]})]})})]})]})]})}function Lhe(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Rhe={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 分享`,hostedDisabled:`管理员已暂停你的公网分享能力。已有托管链接当前不可访问,但仍可撤销。`,reviewContent:`检查将要公开的内容`,you:`你`,assistant:`助手`},zhe={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`,hostedDisabled:`An administrator has paused public sharing for your account. Existing hosted links are unavailable, but can still be revoked.`,reviewContent:`Review the content to publish`,you:`You`,assistant:`Assistant`},Bhe=`(max-width: 767px)`,F7=(0,Z.memo)(function(e){let t=(0,Q.c)(115),{chatHeadline:n,chatAgents:r,showChatAgentSelector:i,chatAgentId:a,onChatAgentChange:o,chatAgentDisabled:s,conversationId:c,hasMessages:l,workspacePath:u,userContextMode:d,canChangeWorkspace:f,workspaceDisabled:m,onWorkspaceChange:h,prepareTerminalSession:g,terminalDisabled:_,showContextControls:v,onFindOpen:b,projectId:x,context:S}=e,C=l===void 0?!1:l,w=d===void 0?`enabled`:d,T=f===void 0?!1:f,E=m===void 0?!1:m,D=_===void 0?!1:_,O=v===void 0?!0:v,k=Pt(Vhe),{conversationId:A}=p(),j=A&&A!==`new`?decodeURIComponent(A):null,M;t[0]!==c||t[1]!==j?(M=c?.trim()||j,t[0]=c,t[1]=j,t[2]=M):M=t[2];let N=M,{data:P,error:F,mutate:I}=CN(N??null,!1),L=!F&&(!P||!!P.environment?.available),R;t[3]===k?R=t[4]:(R=kt(k),t[3]=k,t[4]=R);let z=R,B=$F(Hhe),V;t[5]===N?V=t[6]:(V=e=>N?e.panes[N]?.open===!0:!1,t[5]=N,t[6]=V);let H=$Q(V),U=$Q(Uhe),W;t[7]===N?W=t[8]:(W=e=>N?!!e.openByConversationId[N]:!1,t[7]=N,t[8]=W);let G=P7(W),ee=P7(Whe),te=P7(Ghe),[ne,K]=(0,Z.useState)(!1),re=sI(Khe),ie=pI(qhe),ae=pI(Jhe),oe=window.electronAPI?.platform,se;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(se=Dhe(oe),t[9]=se):se=t[9];let ce=se,le;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(le=khe(oe),t[10]=le):le=t[10];let ue=le,de;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(de=jhe(oe),t[11]=de):de=t[11];let fe=de,pe=!!(O&&window.electronAPI?.terminal&&(N||g)),me;t[12]!==N||t[13]!==te||t[14]!==g||t[15]!==pe||t[16]!==D||t[17]!==ne||t[18]!==ee?(me=()=>{if(!(!pe||D||ne)){if(N){ee(N);return}g&&(K(!0),g().then(e=>{e&&te(e)}).finally(()=>K(!1)))}},t[12]=N,t[13]=te,t[14]=g,t[15]=pe,t[16]=D,t[17]=ne,t[18]=ee,t[19]=me):me=t[19];let he=me,ge;t[20]!==N||t[21]!==C||t[22]!==U?(ge=()=>{!N||!C||U(N,$Q.getState().panes[N]?.open!==!0)},t[20]=N,t[21]=C,t[22]=U,t[23]=ge):ge=t[23];let ve=ge,ye=N5(Bhe),be;t[24]!==re||t[25]!==B?(be=PF({runtime:NF(),sidebarCollapsed:B,mobileNavOpen:re}),t[24]=re,t[25]=B,t[26]=be):be=t[26];let xe=ye?!re:be.collapsedNewChatVisible,Se,Ce;t[27]===ae?(Se=t[28],Ce=t[29]):(Se=()=>()=>ae(),Ce=[ae],t[27]=ae,t[28]=Se,t[29]=Ce),(0,Z.useLayoutEffect)(Se,Ce);let we,Te;t[30]!==he||t[31]!==pe?(we=()=>{if(!pe)return;let e=e=>{Ohe(e,oe)&&(e.preventDefault(),he())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},Te=[he,pe,oe],t[30]=he,t[31]=pe,t[32]=we,t[33]=Te):(we=t[32],Te=t[33]),(0,Z.useEffect)(we,Te);let Ee,De;t[34]!==N||t[35]!==ve||t[36]!==C?(Ee=()=>{if(!N||!C)return;let e=e=>{Mhe(e,oe)&&(e.preventDefault(),ve())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},De=[N,ve,C,oe],t[34]=N,t[35]=ve,t[36]=C,t[37]=Ee,t[38]=De):(Ee=t[37],De=t[38]),(0,Z.useEffect)(Ee,De);let Oe;t[39]!==N||t[40]!==T||t[41]!==s||t[42]!==a||t[43]!==r||t[44]!==n||t[45]!==S||t[46]!==ve||t[47]!==he||t[48]!==C||t[49]!==z.chat.agentNoMatches||t[50]!==z.chat.agentPlaceholder||t[51]!==z.chat.agentSearchPlaceholder||t[52]!==z.chat.find.input||t[53]!==z.chat.temporarySession||t[54]!==z.chat.temporarySessionHint||t[55]!==z.chat.terminal.open||t[56]!==z.sideChat||t[57]!==z.sidebar.newTask||t[58]!==o||t[59]!==b||t[60]!==h||t[61]!==x||t[62]!==I||t[63]!==ie||t[64]!==i||t[65]!==O||t[66]!==xe||t[67]!==H||t[68]!==pe||t[69]!==D||t[70]!==G||t[71]!==ne||t[72]!==w||t[73]!==L||t[74]!==E||t[75]!==u?(Oe=()=>{ie({className:`bg-surface-panel`,startExtra:xe?(0,$.jsx)(y,{to:_e(x),state:{forceNewChat:!0,agentId:a,temporary:w===`temporary`},className:q(`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`,ji),title:z.sidebar.newTask,children:(0,$.jsx)(rt,{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:q(`min-w-0 truncate text-[0.9375rem] font-semibold leading-5 tracking-tight text-fg`,xe?`text-left md:text-center`:`text-left`),title:n,children:n})}),end:(0,$.jsxs)(`div`,{className:q(`flex min-w-0 max-w-[min(32rem,calc(100vw-8rem))] shrink-0 items-center justify-end gap-2`,ji),children:[i?(0,$.jsx)(`div`,{className:`min-w-0 w-fit shrink-0`,children:(0,$.jsx)(hhe,{items:r,value:a,disabled:s,placeholder:z.chat.agentPlaceholder,searchPlaceholder:z.chat.agentSearchPlaceholder,noMatches:z.chat.agentNoMatches,compact:!0,contentSide:`bottom`,contentAlign:`end`,onChange:o})}):null,w===`temporary`?(0,$.jsx)(`span`,{className:`shrink-0 rounded-full border border-edge px-2 py-1 text-xs font-medium text-fg-muted`,title:z.chat.temporarySessionHint,children:z.chat.temporarySession}):null,C&&b?(0,$.jsx)(`button`,{type:`button`,className:`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,title:`${z.chat.find.input} (${oe===`darwin`?`⌘F`:`Ctrl+F`})`,"aria-label":z.chat.find.input,"aria-keyshortcuts":`Meta+F Control+F`,onClick:b,children:(0,$.jsx)(ot,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0})}):null,N&&C?(0,$.jsx)(Ihe,{conversationId:N},`share:${N}`):null,pe?(0,$.jsx)(`button`,{type:`button`,className:q(`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,G&&`bg-surface-hover text-fg`),title:`${z.chat.terminal.open} (${ce})`,"aria-label":z.chat.terminal.open,"aria-pressed":G,disabled:D||ne,onClick:he,children:ne?(0,$.jsx)(Ye,{className:`size-4 animate-spin`}):(0,$.jsx)(sE,{className:`size-4`})}):null,O?(0,$.jsx)(bhe,{...S,agentId:a,temporary:w===`temporary`,conversationId:N??null},`context:${N??S?.project?.id??`new`}`):null,O&&(N||x)&&h?(0,$.jsx)(xhe,{conversationId:N,workspacePath:N?u:S?.project?.workspaceRoot,available:L,canChangeWorkspace:T,disabled:E,onWorkspaceChange:async e=>{await h(e),await I()}},`workspace:${N??x}`):null,N&&C?(0,$.jsx)(`button`,{type:`button`,className:q(`rounded-md p-2 text-fg-muted transition-colors hover:bg-surface-hover hover:text-fg`,H&&`bg-surface-hover text-fg`),title:`${H?z.sideChat.closePaneAria:z.sideChat.openPaneAria} (${ue})`,"aria-label":H?z.sideChat.closePaneAria:z.sideChat.openPaneAria,"aria-keyshortcuts":fe,"aria-controls":`app-side-chat-panel`,"aria-expanded":H,onClick:ve,children:(0,$.jsx)(ib,{className:`size-4`,strokeWidth:1.5,"aria-hidden":!0})}):null]})})},t[39]=N,t[40]=T,t[41]=s,t[42]=a,t[43]=r,t[44]=n,t[45]=S,t[46]=ve,t[47]=he,t[48]=C,t[49]=z.chat.agentNoMatches,t[50]=z.chat.agentPlaceholder,t[51]=z.chat.agentSearchPlaceholder,t[52]=z.chat.find.input,t[53]=z.chat.temporarySession,t[54]=z.chat.temporarySessionHint,t[55]=z.chat.terminal.open,t[56]=z.sideChat,t[57]=z.sidebar.newTask,t[58]=o,t[59]=b,t[60]=h,t[61]=x,t[62]=I,t[63]=ie,t[64]=i,t[65]=O,t[66]=xe,t[67]=H,t[68]=pe,t[69]=D,t[70]=G,t[71]=ne,t[72]=w,t[73]=L,t[74]=E,t[75]=u,t[76]=Oe):Oe=t[76];let ke;return t[77]!==N||t[78]!==T||t[79]!==s||t[80]!==a||t[81]!==r||t[82]!==n||t[83]!==S||t[84]!==ve||t[85]!==he||t[86]!==C||t[87]!==z.chat.agentNoMatches||t[88]!==z.chat.agentPlaceholder||t[89]!==z.chat.agentSearchPlaceholder||t[90]!==z.chat.find.input||t[91]!==z.chat.temporarySession||t[92]!==z.chat.temporarySessionHint||t[93]!==z.chat.terminal.open||t[94]!==z.sidebar.newTask||t[95]!==o||t[96]!==b||t[97]!==h||t[98]!==x||t[99]!==I||t[100]!==ie||t[101]!==U||t[102]!==i||t[103]!==O||t[104]!==xe||t[105]!==H||t[106]!==pe||t[107]!==D||t[108]!==G||t[109]!==ne||t[110]!==w||t[111]!==L||t[112]!==E||t[113]!==u?(ke=[n,r,i,a,o,s,xe,z.chat.agentPlaceholder,z.chat.agentSearchPlaceholder,z.chat.agentNoMatches,z.chat.temporarySession,z.chat.temporarySessionHint,z.chat.find.input,z.chat.terminal.open,ce,ue,fe,z.sidebar.newTask,x,S,G,pe,D,O,ne,N,C,b,H,U,u,L,I,w,T,E,h,he,ve,ie],t[77]=N,t[78]=T,t[79]=s,t[80]=a,t[81]=r,t[82]=n,t[83]=S,t[84]=ve,t[85]=he,t[86]=C,t[87]=z.chat.agentNoMatches,t[88]=z.chat.agentPlaceholder,t[89]=z.chat.agentSearchPlaceholder,t[90]=z.chat.find.input,t[91]=z.chat.temporarySession,t[92]=z.chat.temporarySessionHint,t[93]=z.chat.terminal.open,t[94]=z.sidebar.newTask,t[95]=o,t[96]=b,t[97]=h,t[98]=x,t[99]=I,t[100]=ie,t[101]=U,t[102]=i,t[103]=O,t[104]=xe,t[105]=H,t[106]=pe,t[107]=D,t[108]=G,t[109]=ne,t[110]=w,t[111]=L,t[112]=E,t[113]=u,t[114]=ke):ke=t[114],(0,Z.useLayoutEffect)(Oe,ke),null});function Vhe(e){return e.language}function Hhe(e){return e.collapsed}function Uhe(e){return e.setOpen}function Whe(e){return e.toggle}function Ghe(e){return e.open}function Khe(e){return e.mobileNavOpen}function qhe(e){return e.setPageHeader}function Jhe(e){return e.clearPageHeader}var I7=(0,Z.memo)(function(){let e=(0,Q.c)(13),t=Pt(Yhe),n;e[0]===t?n=e[1]:(n=kt(t),e[0]=t,e[1]=n);let r=n,i=wi(Xhe),a=wi(Zhe);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=q(`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`,$r.transition,$r.press,$r.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:Qhe,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 Yhe(e){return e.language}function Xhe(e){return e.connectionState}function Zhe(e){return e.error}function Qhe(){return vi()}function L7(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,String(n)),e)}function $he(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)(B,{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)(Vs,{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)(Pf,{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 ege(e,t){return e?`${L7(e.files.length===1?t.filesChangedOne:t.filesChangedOther,{count:e.files.length})} · +${e.added} -${e.removed}`:null}function tge(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(ige),t[0]=n.items,t[1]=s);let c=s,l=n.items.every(rge),u;t[2]!==a.completedProgress||t[3]!==n.completedCount||t[4]!==n.totalCount?(u=L7(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=L7(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=ege(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=q(`inline-flex min-h-9 min-w-0 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`,$r.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)(B,{className:`size-4 shrink-0 text-accent`,strokeWidth:2,"aria-hidden":!0}):(0,$.jsx)(hv,{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 T;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(jd,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),t[27]=T):T=t[27];let E;t[28]!==S||t[29]!==C||t[30]!==y||t[31]!==b||t[32]!==x?(E=(0,$.jsx)(ea,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,className:v,"aria-label":y,children:[b,x,S,C,T]})}),t[28]=S,t[29]=C,t[30]=y,t[31]=b,t[32]=x,t[33]=E):E=t[33];let D;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(hv,{className:`size-4 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[34]=D):D=t[34];let O;t[35]===a.heading?O=t[36]:(O=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium text-fg`,children:[D,(0,$.jsx)(`span`,{children:a.heading})]}),t[35]=a.heading,t[36]=O);let k;t[37]===n.explanation?k=t[38]:(k=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]=k);let A;t[39]!==O||t[40]!==k?(A=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[O,k]}),t[39]=O,t[40]=k,t[41]=A):A=t[41];let j;t[42]===d?j=t[43]:(j=(0,$.jsx)(`span`,{className:`shrink-0 text-xs tabular-nums text-fg-subtle`,children:d}),t[42]=d,t[43]=j);let M;t[44]!==A||t[45]!==j?(M=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge-subtle px-4 py-3`,children:[A,j]}),t[44]=A,t[45]=j,t[46]=M):M=t[46];let N=a.heading,P;t[47]===n.items?P=t[48]:(P=n.items.map(nge),t[47]=n.items,t[48]=P);let F;t[49]!==a.heading||t[50]!==P?(F=(0,$.jsx)(`ol`,{className:`max-h-[min(22rem,55vh)] overflow-y-auto px-4 py-3`,"aria-label":N,children:P}),t[49]=a.heading,t[50]=P,t[51]=F):F=t[51];let I;t[52]===m?I=t[53]:(I=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]=I);let L;t[54]!==M||t[55]!==F||t[56]!==I?(L=(0,$.jsx)(Yi,{children:(0,$.jsxs)(Zi,{side:`top`,align:`center`,sideOffset:8,collisionPadding:16,className:`z-[120] w-[min(28rem,calc(100vw-2rem))] overflow-hidden rounded-xl border border-edge bg-surface-panel shadow-popover outline-none`,children:[M,F,I]})}),t[54]=M,t[55]=F,t[56]=I,t[57]=L):L=t[57];let R;return t[58]!==E||t[59]!==L?(R=(0,$.jsx)(`div`,{className:`mx-auto flex w-full max-w-80 justify-center pb-2 pt-1`,children:(0,$.jsxs)(Qi,{children:[E,L]})}),t[58]=E,t[59]=L,t[60]=R):R=t[60],R}function nge(e){return(0,$.jsxs)(`li`,{className:q(`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)($he,{status:e.status}),(0,$.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:e.title})]},e.id)}function rge(e){return e.status===`completed`||e.status===`cancelled`}function ige(e){return e.status===`completed`}function age(e){let t=H7(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 oge=new Set([`pending`,`in_progress`,`completed`,`cancelled`]);function R7(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function z7(e){return e.trim().toLowerCase().replace(/-/g,`_`).split(`__`).at(-1)??``}function B7(e){let t=R7(e.details);return t&&Object.keys(t).length>0?t:nK(e.result).details}function V7(e){let t=typeof e==`string`?e.trim():``;return oge.has(t)?t:null}function H7(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 sge(e){if(!Array.isArray(e.plan))return null;let t=e.plan.flatMap((e,t)=>{let n=R7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`update-plan-${t}`,i=typeof n?.step==`string`?n.step.trim():``,a=V7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]});return H7(`update_plan`,typeof e.explanation==`string`&&e.explanation.trim()?e.explanation.trim():void 0,t)}function cge(e){return Array.isArray(e.items)?H7(`todo`,void 0,e.items.flatMap((e,t)=>{let n=R7(e),r=typeof n?.id==`string`&&n.id.trim()?n.id.trim():`todo-${t}`,i=typeof n?.content==`string`?n.content.trim():``,a=V7(n?.status);return i&&a?[{id:r,title:i,status:a}]:[]})):null}function lge(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=z7(n.name),i=B7(n);if(i){if(r===`update_plan`)return{found:!0,plan:sge(i)};if(r===`todo`)return{found:!0,plan:cge(i)}}}return{found:!1,plan:null}}function U7(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:0}function uge(e){let t=new Set,n=0,r=0;for(let i of e){if(i.type!==`tool_use`||i.status===`error`||z7(i.name)!==`apply_patch`)continue;let e=B7(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=R7(n),r=typeof e?.moveTo==`string`?e.moveTo:typeof e?.path==`string`?e.path:``;r.trim()&&t.add(r.trim())}n+=U7(e.added),r+=U7(e.removed)}}return t.size>0||n>0||r>0?{files:[...t],added:n,removed:r}:null}function dge(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n.role!==`assistant`)continue;let r=lge(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:uge(i)}}return null}function W7(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 dge(e.slice(n+1))}function G7(e,t){return e.bottom>t.top&&e.top<t.bottom&&e.right>t.left&&e.left<t.right}function fge(e,t,n){let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if(!G7(e,{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight})||!G7(i,r))return()=>{};let a=t.cloneNode(!0);if(typeof a.animate!=`function`)return()=>{};let o=t.closest(`article`);o&&(o.style.animation=`none`);let s=t.getBoundingClientRect();a.setAttribute(`aria-hidden`,`true`),a.setAttribute(`data-personal-send-ghost`,``),a.inert=!0,a.querySelectorAll(`[id]`).forEach(e=>e.removeAttribute(`id`)),Object.assign(a.style,{position:`fixed`,left:`${s.left}px`,top:`${s.top}px`,width:`${s.width}px`,maxWidth:`none`,margin:`0`,zIndex:`100`,pointerEvents:`none`,willChange:`transform, opacity`});let c=t.style.visibility;t.style.visibility=`hidden`,document.body.appendChild(a);let l=e.left-s.left,u=e.top-s.top,d;try{d=a.animate([{transform:`translate3d(${l}px, ${u}px, 0) scale(0.96)`,opacity:.55},{transform:`translate3d(0, 0, 0) scale(1)`,opacity:1}],{duration:260,easing:`cubic-bezier(0.22, 1, 0.36, 1)`,fill:`both`})}catch{return t.style.visibility=c,a.remove(),()=>{}}let f=!1,p=()=>{f||(f=!0,t.style.visibility=c,a.remove(),n.removeEventListener(`wheel`,p),n.removeEventListener(`touchstart`,p),window.removeEventListener(`resize`,p),d.cancel())};return n.addEventListener(`wheel`,p,{passive:!0}),n.addEventListener(`touchstart`,p,{passive:!0}),window.addEventListener(`resize`,p),d.finished.then(p,p),p}function pge(e){let t=(0,Q.c)(12),{enabled:n,conversationId:r,messages:i,viewportRef:a}=e,o=(0,Z.useRef)(null),s=(0,Z.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{o.current&&window.clearTimeout(o.current.timeout),o.current=null,s.current?.(),s.current=null},t[0]=c):c=t[0];let l=c,u;t[1]!==r||t[2]!==n?(u=(e,t,i)=>{if(l(),!n||!r||i.attachments.length>0||i.contextRefs.length>0||!i.text.trim()||document.visibilityState===`hidden`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let a={id:e.clientSubmissionId,source:{left:t.left,top:t.top,right:t.right,bottom:t.bottom},timeout:window.setTimeout(()=>{o.current===a&&(o.current=null)},500)};o.current=a},t[1]=r,t[2]=n,t[3]=u):u=t[3];let d=u,f,p;t[4]!==i||t[5]!==a?(f=()=>{let e=o.current,t=a.current;if(!e||!t||!i.some(t=>t.clientSubmissionId===e.id))return;window.clearTimeout(e.timeout),o.current=null;let n=t.querySelector(`[data-client-submission-id="${e.id}"]`)?.querySelector(`.chat-user-message`);n&&(s.current=fge(e.source,n,t))},p=[i,a],t[4]=i,t[5]=a,t[6]=f,t[7]=p):(f=t[6],p=t[7]),(0,Z.useLayoutEffect)(f,p);let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>l,t[8]=m):m=t[8];let h;return t[9]!==r||t[10]!==n?(h=[l,r,n],t[9]=r,t[10]=n,t[11]=h):h=t[11],(0,Z.useEffect)(m,h),d}function mge(e){let t=(0,Q.c)(61),{open:n,query:r,activeIndex:i,resultCount:a,searching:o,truncated:s,limitedToLoaded:c,inputRef:l,labels:u,onQueryChange:d,onPrevious:f,onNext:p,onClose:m}=e,h=o===void 0?!1:o,g=s===void 0?!1:s,_=c===void 0?!1:c;if(!n)return null;let v;t[0]===r?v=t[1]:(v=r.trim(),t[0]=r,t[1]=v);let y=!!v,b;t[2]!==i||t[3]!==y||t[4]!==u.noResults||t[5]!==u.resultCount||t[6]!==u.searching||t[7]!==a||t[8]!==h||t[9]!==g?(b=h?u.searching:y&&a===0?u.noResults:y?u.resultCount.replace(`{{current}}`,String(i+1)).replace(`{{total}}`,`${a}${g?`+`:``}`):``,t[2]=i,t[3]=y,t[4]=u.noResults,t[5]=u.resultCount,t[6]=u.searching,t[7]=a,t[8]=h,t[9]=g,t[10]=b):b=t[10];let x=b,S;t[11]!==x||t[12]!==y||t[13]!==u.loadedOnly||t[14]!==_?(S=_&&y?[x,u.loadedOnly].filter(Boolean).join(` · `):x,t[11]=x,t[12]=y,t[13]=u.loadedOnly,t[14]=_,t[15]=S):S=t[15];let C=S,w=h||a===0,T=u.input,E;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(ot,{className:`size-4 shrink-0 text-fg-muted`,strokeWidth:1.75,"aria-hidden":!0}),t[16]=E):E=t[16];let D;t[17]===d?D=t[18]:(D=e=>d(e.target.value),t[17]=d,t[18]=D);let O;t[19]!==p||t[20]!==f?(O=e=>{e.nativeEvent.isComposing||e.key===`Enter`&&(e.preventDefault(),e.shiftKey?f():p())},t[19]=p,t[20]=f,t[21]=O):O=t[21];let k;t[22]!==l||t[23]!==u.input||t[24]!==r||t[25]!==O||t[26]!==D?(k=(0,$.jsx)(`input`,{ref:l,value:r,type:`search`,autoComplete:`off`,spellCheck:!1,"aria-label":u.input,className:`h-12 min-w-0 flex-1 bg-transparent text-base text-fg outline-none placeholder:text-fg-subtle`,placeholder:u.input,onChange:D,onKeyDown:O}),t[22]=l,t[23]=u.input,t[24]=r,t[25]=O,t[26]=D,t[27]=k):k=t[27];let A;t[28]===h?A=t[29]:(A=h?(0,$.jsx)(Ye,{className:`size-4 shrink-0 animate-spin text-fg-muted`,"aria-hidden":!0}):null,t[28]=h,t[29]=A);let j;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(j=q(`inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.focusRingPanel,$r.press),t[30]=j):j=t[30];let M;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(Dt,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),t[31]=M):M=t[31];let N;t[32]!==u.close||t[33]!==m?(N=(0,$.jsx)(`button`,{type:`button`,onClick:m,className:j,"aria-label":u.close,children:M}),t[32]=u.close,t[33]=m,t[34]=N):N=t[34];let P;t[35]!==k||t[36]!==A||t[37]!==N?(P=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 px-3`,children:[E,k,A,N]}),t[35]=k,t[36]=A,t[37]=N,t[38]=P):P=t[38];let F;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(F=q(`inline-flex size-10 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.focusRingPanel,$r.press,$r.disabled),t[39]=F):F=t[39];let I;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(Fd,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),t[40]=I):I=t[40];let L;t[41]!==u.previous||t[42]!==w||t[43]!==f?(L=(0,$.jsx)(`button`,{type:`button`,disabled:w,onClick:f,className:F,"aria-label":u.previous,children:I}),t[41]=u.previous,t[42]=w,t[43]=f,t[44]=L):L=t[44];let R;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(R=q(`inline-flex size-10 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,$r.focusRingPanel,$r.press,$r.disabled),t[45]=R):R=t[45];let z;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(jd,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),t[46]=z):z=t[46];let B;t[47]!==u.next||t[48]!==w||t[49]!==p?(B=(0,$.jsx)(`button`,{type:`button`,disabled:w,onClick:p,className:R,"aria-label":u.next,children:z}),t[47]=u.next,t[48]=w,t[49]=p,t[50]=B):B=t[50];let V;t[51]===C?V=t[52]:(V=(0,$.jsx)(`span`,{className:`ml-auto px-2 text-sm tabular-nums text-fg-muted`,"aria-live":`polite`,"aria-atomic":`true`,children:C}),t[51]=C,t[52]=V);let H;t[53]!==L||t[54]!==B||t[55]!==V?(H=(0,$.jsxs)(`div`,{className:`flex h-11 items-center border-t border-edge-subtle px-1.5`,children:[L,B,V]}),t[53]=L,t[54]=B,t[55]=V,t[56]=H):H=t[56];let U;return t[57]!==u.input||t[58]!==P||t[59]!==H?(U=(0,$.jsxs)(`section`,{"data-chat-find-bar":!0,role:`search`,"aria-label":T,className:`absolute right-3 top-3 z-30 w-[min(25rem,calc(100%-1.5rem))] overflow-hidden rounded-xl border border-edge bg-surface-overlay shadow-popover`,children:[P,H]}),t[57]=u.input,t[58]=P,t[59]=H,t[60]=U):U=t[60],U}async function hge(e,t,n={}){let r=await Mt(Y(`${n.taskId?`/api/tasks/${encodeURIComponent(n.taskId)}/conversation/find`:`/api/sessions/${encodeURIComponent(e)}/find`}?${new URLSearchParams({q:t,limit:`1000`})}`),{signal:n.signal});if(!r.ok)throw Error(`HTTP ${r.status}: ${r.statusText}`);let i=await r.json();if(i.ok!==!0||!Array.isArray(i.matches)||typeof i.total!=`number`)throw Error(`Invalid chat find response`);return{query:typeof i.query==`string`?i.query:t,total:i.total,truncated:i.truncated===!0,matches:i.matches.filter(e=>Number.isInteger(e?.displayIndex)&&e.displayIndex>=0&&Number.isInteger(e?.occurrence)&&e.occurrence>=0)}}var K7=`chat-find-match`,q7=`chat-find-active`,J7=`chat-find-highlight-styles`;function Y7(){let e=globalThis.CSS,t=globalThis.Highlight;return!e?.highlights||!t?null:{registry:e.highlights,Highlight:t}}function gge(){if(document.getElementById(J7))return;let e=document.createElement(`style`);e.id=J7,e.textContent=`
|
|
95
|
+
::highlight(${K7}) {
|
|
96
|
+
color: inherit;
|
|
97
|
+
background-color: color-mix(in srgb, var(--color-warning) 38%, transparent);
|
|
98
|
+
}
|
|
99
|
+
::highlight(${q7}) {
|
|
100
|
+
color: inherit;
|
|
101
|
+
background-color: color-mix(in srgb, var(--color-warning) 78%, transparent);
|
|
102
|
+
text-decoration: underline 2px var(--color-fg);
|
|
103
|
+
}
|
|
104
|
+
`,document.head.appendChild(e)}function _ge(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){let t=e.parentElement;return!e.textContent||!t||t.closest(`button, [hidden], [aria-hidden="true"], .sr-only, script, style`)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=n.nextNode();for(;r;)t.push(r),r=n.nextNode();return t}function vge(e,t,n){let r=e.find(e=>e.end>t),i=[...e].reverse().find(e=>e.start<n);if(!r||!i)return null;let a=document.createRange();return a.setStart(r.node,t-r.start),a.setEnd(i.node,n-i.start),a}function yge(e,t){let n=t.toLowerCase(),r=e.toLowerCase();if(!n)return[];let i=[],a=0;for(;a<=r.length-n.length;){let e=r.indexOf(n,a);if(e<0)break;i.push({start:e,end:e+n.length}),a=e+Math.max(n.length,1)}return i}function bge(e,t){let n=t.trim();if(!n)return[];let r=[],i=e.querySelectorAll(`[data-chat-message-index]`);for(let e of i){let t=e.dataset.chatMessageIndex,i=t?Number.parseInt(t,10):NaN;if(!Number.isFinite(i))continue;let a=0;for(let t of e.querySelectorAll(`[data-chat-find-text]`)){let e=_ge(t),o=[],s=``;for(let t of e){let e=t.textContent??``,n=s.length;s+=e,o.push({node:t,start:n,end:s.length})}for(let e of yge(s,n)){let t=vge(o,e.start,e.end);t&&(r.push({messageIndex:i,occurrence:a,range:t}),a+=1)}}}return r}function X7(e,t){let n=Y7();if(!n||(gge(),n.registry.delete(K7),n.registry.delete(q7),e.length===0))return;n.registry.set(K7,new n.Highlight(...e.map(e=>e.range)));let r=e[t];r&&n.registry.set(q7,new n.Highlight(r.range))}function Z7(){let e=Y7();e?.registry.delete(K7),e?.registry.delete(q7)}function xge(e,t,n=96){let r=t.range.getBoundingClientRect(),i=e.getBoundingClientRect(),a=i.top+n,o=i.bottom-24;r.top>=a&&r.bottom<=o||e.scrollTo({top:Math.max(0,e.scrollTop+r.top-a),behavior:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`})}function Sge(e,t){return t===0?0:(e+t)%t}function Q7(e){return`${e.displayIndex}:${e.occurrence}`}function Cge(e,t){return e.length===t.length&&e.every((e,n)=>{let r=t[n];return r?.messageIndex===e.messageIndex&&r.occurrence===e.occurrence&&r.range.startContainer===e.range.startContainer&&r.range.startOffset===e.range.startOffset&&r.range.endContainer===e.range.endContainer&&r.range.endOffset===e.range.endOffset})}function wge(e){let t=(0,Q.c)(66),{conversationId:n,taskId:r,messages:i,displayOffset:a,viewportRef:o,onRevealDisplayIndex:s}=e,[c,l]=(0,Z.useState)(!1),[u,d]=(0,Z.useState)(``),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=[],t[0]=f):f=t[0];let[p,m]=(0,Z.useState)(f),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],t[1]=h):h=t[1];let[g,_]=(0,Z.useState)(h),[v,y]=(0,Z.useState)(!1),[b,x]=(0,Z.useState)(!1),[S,C]=(0,Z.useState)(!1),[w,T]=(0,Z.useState)(0),E=(0,Z.useRef)(null),D=(0,Z.useRef)(null),O=(0,Z.useRef)(n),k=(0,Z.useDeferredValue)(u),A;if(t[2]!==a||t[3]!==p||t[4]!==g){let e=new Map(g.map(kge));for(let t of p){let n={displayIndex:a+t.messageIndex,occurrence:t.occurrence};e.set(Q7(n),n)}A=[...e.values()].sort(Oge),t[2]=a,t[3]=p,t[4]=g,t[5]=A}else A=t[5];let j=A,M;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{requestAnimationFrame(()=>{E.current?.focus(),E.current?.select()})},t[6]=M):M=t[6];let N=M,P;t[7]===c?P=t[8]:(P=()=>{if(!c){D.current=document.activeElement instanceof HTMLElement?document.activeElement:null,l(!0);return}N()},t[7]=c,t[8]=P);let F=P,I,L;t[9]===c?(I=t[10],L=t[11]):(I=()=>{c&&N()},L=[N,c],t[9]=c,t[10]=I,t[11]=L),(0,Z.useLayoutEffect)(I,L);let R;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{l(!1),d(``),m([]),_([]),y(!1),x(!1),C(!1),T(0),Z7(),D.current?.focus(),D.current=null},t[12]=R):R=t[12];let z=R,B;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{d(e),T(0)},t[13]=B):B=t[13];let V=B,H;t[14]===j.length?H=t[15]:(H=e=>{T(t=>Sge(t+e,j.length))},t[14]=j.length,t[15]=H);let U=H,W,G;t[16]!==U||t[17]!==c||t[18]!==F?(W=()=>{let e=e=>{let t=e.metaKey||e.ctrlKey;if(t&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`f`){if(document.querySelector(`[role="dialog"][data-state="open"]`))return;e.preventDefault(),F();return}if(c){if(t&&!e.altKey&&e.key.toLowerCase()===`g`){e.preventDefault(),U(e.shiftKey?-1:1);return}e.key===`Escape`&&(e.preventDefault(),z())}};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},G=[z,U,c,F],t[16]=U,t[17]=c,t[18]=F,t[19]=W,t[20]=G):(W=t[19],G=t[20]),(0,Z.useEffect)(W,G);let ee;t[21]!==k||t[22]!==c||t[23]!==o?(ee=()=>{let e=o.current;if(!c||!e||!k.trim()){m(Dge),Z7();return}let t=bge(e,k);m(e=>Cge(e,t)?e:t)},t[21]=k,t[22]=c,t[23]=o,t[24]=ee):ee=t[24];let te;t[25]!==k||t[26]!==i||t[27]!==c||t[28]!==o?(te=[k,i,c,o],t[25]=k,t[26]=i,t[27]=c,t[28]=o,t[29]=te):te=t[29],(0,Z.useLayoutEffect)(ee,te);let ne,K;t[30]!==n||t[31]!==k||t[32]!==c||t[33]!==r?(ne=()=>{let e=k.trim();if(!c||!n||!e){_([]),y(!1),x(!1),C(!1);return}let t=new AbortController;_([]),y(!1),x(!1),C(!0);let i=window.setTimeout(()=>{hge(n,e,{taskId:r,signal:t.signal}).then(e=>{_(e.matches),y(e.truncated)}).catch(e=>{e?.name!==`AbortError`&&(_([]),y(!1),x(!0))}).finally(()=>{t.signal.aborted||C(!1)})},150);return()=>{window.clearTimeout(i),t.abort()}},K=[n,k,c,r],t[30]=n,t[31]=k,t[32]=c,t[33]=r,t[34]=ne,t[35]=K):(ne=t[34],K=t[35]),(0,Z.useEffect)(ne,K);let re,ie;t[36]===j.length?(re=t[37],ie=t[38]):(re=()=>{T(e=>Math.min(e,Math.max(0,j.length-1)))},ie=[j.length],t[36]=j.length,t[37]=re,t[38]=ie),(0,Z.useEffect)(re,ie);let ae,oe;t[39]!==w||t[40]!==j||t[41]!==a||t[42]!==p||t[43]!==s||t[44]!==o?(ae=()=>{let e=j[w],t=o.current;if(!t||!e){X7(p,-1);return}let n=e.displayIndex-a,r=p.findIndex(t=>t.messageIndex===n&&t.occurrence===e.occurrence);X7(p,r),r>=0?xge(t,p[r]):s(e.displayIndex)},oe=[w,j,a,p,s,o],t[39]=w,t[40]=j,t[41]=a,t[42]=p,t[43]=s,t[44]=o,t[45]=ae,t[46]=oe):(ae=t[45],oe=t[46]),(0,Z.useLayoutEffect)(ae,oe);let se;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(se=[],t[47]=se):se=t[47],(0,Z.useEffect)(Tge,se);let ce,le;t[48]!==n||t[49]!==c?(ce=()=>{O.current!==n&&(O.current=n,c&&z())},le=[z,n,c],t[48]=n,t[49]=c,t[50]=ce,t[51]=le):(ce=t[50],le=t[51]),(0,Z.useEffect)(ce,le);let ue,de;t[52]===U?(ue=t[53],de=t[54]):(ue=()=>U(-1),de=()=>U(1),t[52]=U,t[53]=ue,t[54]=de);let fe;return t[55]!==w||t[56]!==j.length||t[57]!==b||t[58]!==c||t[59]!==u||t[60]!==v||t[61]!==S||t[62]!==F||t[63]!==ue||t[64]!==de?(fe={open:c,query:u,inputRef:E,activeIndex:w,resultCount:j.length,truncated:v,limitedToLoaded:b,searching:S,setQuery:V,show:F,close:z,previous:ue,next:de},t[55]=w,t[56]=j.length,t[57]=b,t[58]=c,t[59]=u,t[60]=v,t[61]=S,t[62]=F,t[63]=ue,t[64]=de,t[65]=fe):fe=t[65],fe}function Tge(){return Ege}function Ege(){return Z7()}function Dge(e){return e.length===0?e:[]}function Oge(e,t){return e.displayIndex-t.displayIndex||e.occurrence-t.occurrence}function kge(e){return[Q7(e),e]}function $7(e){let t=String(e??``).trim();return!t||t===`new`?null:t}function Age(e){let t=String(e.streamConversationId??``).trim(),n=$7(e.routeConversationId);return!t||!n?!1:t===n}function e9(e){let t=$7(e.routeConversationId);return t?e.cacheConversationId===t:!1}function jge(e){let t=String(e.chatId??``).trim();if(!t)return!1;let n=$7(e.routeConversationId);return n?n===t:!1}function Mge(e,t){return e?`new`:t??null}function Nge(e,t){if(!(e||!t))return decodeURIComponent(t)}function Pge(e){if(!e.viewConversationId||e.conversationId!==e.viewConversationId)return[];if(!e.streamingMsg)return e.messages;let t=e.messages[e.messages.length-1];if(t?.role===`assistant`&&e.streamingMsg.role===`assistant`){let n=Gn([t,e.streamingMsg]);return[...e.messages.slice(0,-1),...n]}return[...e.messages,e.streamingMsg]}function Fge(e,t){let n=e[e.length-1];return n?.role!==`assistant`||n.turnId!==t?null:{messagesWithoutTail:e.slice(0,-1),tail:n}}function Ige(e){e()}function Lge(e,t){return!!(e&&(e.localDraft||e.configVersion!==void 0)&&t?.some(t=>t.id===e.model))}function Rge(e){e.sendingRef.current=!1,e.streamingRef.current=!1}function zge(e){return e.isNewRoute?`creating-session`:e.sessionRoutePending||e.showSessionLoading||e.sessionContentLoading?`loading-history`:e.messageCount===0?`ready-empty`:`ready-conversation`}function t9(e,t){if(!e||typeof e!=`object`)return null;let n=e,r=n.clarification&&typeof n.clarification==`object`?n.clarification:n;if(r.status!==void 0&&r.status!==`open`||t&&typeof r.conversationId==`string`&&r.conversationId!==t)return null;let i=typeof r.id==`string`?r.id:r.requestId,a=r.question,o=r.kind===`approval`?`approval`:`input`,s=Array.isArray(r.choices)?r.choices.filter(e=>typeof e==`string`&&!!e.trim()):void 0;return typeof i!=`string`||!i.trim()||typeof a!=`string`||!a.trim()?null:{requestId:i.trim(),kind:o,question:a.trim(),choices:s&&s.length>=2?s:void 0,suggestedAnswer:typeof r.suggestedAnswer==`string`&&r.suggestedAnswer.trim()?r.suggestedAnswer.trim():void 0,version:typeof r.version==`number`?r.version:1,createdAt:typeof r.createdAt==`number`?r.createdAt:Date.now(),expiresAt:typeof r.expiresAt==`number`?r.expiresAt:void 0}}function Bge(e){let{conversationId:t,decodedKey:n,conversationIdRef: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.useRef)(null),[_,v]=(0,Z.useState)([]),y=(0,Z.useRef)([]),[b,x]=(0,Z.useState)(null),[S,C]=(0,Z.useState)(null),w=(0,Z.useRef)(null),T=(0,Z.useRef)(-1);h.current=l,y.current=_,w.current=S;let E=(0,Z.useCallback)(e=>{if(!e||typeof e!=`object`)return;let t=e;if(t.conversationId!==r.current||typeof t.revision!=`number`||!Array.isArray(t.inputs)||t.revision<T.current)return;let n=Dpe({inputs:t.inputs,activeRunId:t.activeRunId,preparation:t.preparation});T.current=t.revision,y.current=n,v(n),w.current&&!n.some(e=>e.id===w.current)&&C(null)},[r]),D=(0,Z.useCallback)(async e=>{if(await Hr(e))return;let t=await Mt(Y(`/api/sessions/${encodeURIComponent(e)}/input-state`)).catch(()=>null);!t?.ok||r.current!==e||E((await t.json().catch(()=>null))?.payload)},[E,r]),O=(0,Z.useCallback)(async e=>{if(await Hr(e))return;let t=await Mt(Y(`/api/sessions/${encodeURIComponent(e)}/clarification`)).catch(()=>null);if(!t?.ok||r.current!==e)return;let n=await t.json().catch(()=>null);m(null),u(t9(n?.payload,e)),g.current=null},[r]);(0,Z.useEffect)(()=>{T.current=-1,y.current=[],v([]),C(null),u(null),!(!t||t!==n)&&(D(t),O(t))},[n,O,D,t]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail;E(t);let n=r.current;n&&t&&typeof t==`object`&&t.conversationId===n&&O(n)},t=e=>{let t=r.current;if(!t)return;let n=e.detail;if(n&&typeof n==`object`){let e=n.conversationId;if(typeof e==`string`&&e!==t)return}m(null),u(t9(n,t)),g.current=null},n=()=>{let e=r.current;e&&(D(e),O(e))};return window.addEventListener(`session-input-state`,e),window.addEventListener(`clarification-updated`,t),window.addEventListener(`gateway-realtime-connected`,n),()=>{window.removeEventListener(`session-input-state`,e),window.removeEventListener(`clarification-updated`,t),window.removeEventListener(`gateway-realtime-connected`,n)}},[E,O,D,r]),(0,Z.useEffect)(()=>{if(!l?.expiresAt)return;let e=Math.max(0,l.expiresAt-Date.now())+250,t=window.setTimeout(()=>{let e=r.current;e&&O(e)},e);return()=>window.clearTimeout(t)},[l?.expiresAt,O,r]);let k=(0,Z.useCallback)(()=>{m(null),u(null)},[]),A=(0,Z.useCallback)(e=>{let t=String(e??``).trim();t&&r.current===t&&(m(null),u(null))},[r]),j=(0,Z.useCallback)(()=>{m(null),u(null)},[]),M=(0,Z.useCallback)(()=>{C(null)},[]),N=(0,Z.useCallback)(()=>{m(null),u(null),C(null)},[]),P=(0,Z.useCallback)(e=>t=>{c(e)&&(i.current=!1,a.current=!1,zr.getState().setSessionFlags(e,{sending:!1,streaming:!1}),zr.getState().setSessionProgress(e,null),m(null),u(t),g.current=null)},[c,i,a]),F=(0,Z.useCallback)(async(e,t,n,i)=>{let a=e.trim();if(!a&&!t?.length&&!n?.length)return;if(y.current.length>=10)throw Error(`At most 10 pending messages are allowed`);let c=o?s:`off`,l=r.current;if(!l)throw Error(`No active session`);let u=await kr(),d=await Mt(Y(`/api/sessions/${encodeURIComponent(l)}/inputs`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({configVersion:zr.getState().sessions[l]?.configVersion,clientMessageId:crypto.randomUUID(),delivery:`next`,content:a||e,attachments:t?.length?t:void 0,thinking:c,contextRefs:n?.map(({refId:e,kind:t,sourceId:n,expectedVersion:r})=>({refId:e,kind:t,sourceId:n,expectedVersion:r})),appContext:i,origin:u})}),f=await d.json().catch(()=>null);if(!d.ok){let e=typeof f?.error==`string`?f.error:f?.error?.message;throw Error(e??`Message was not accepted`)}if(!f?.payload?.state)throw Error(`Gateway returned an invalid input state`);E(f.payload.state)},[E,o,r,s]),I=(0,Z.useCallback)(e=>{C(e)},[]),L=(0,Z.useCallback)(()=>{C(null)},[]),R=(0,Z.useCallback)((e,t,n,i,a)=>{let c=t.trim(),l=y.current,u=l.findIndex(t=>t.id===e);if(u<0){C(null);return}if(!c&&!n?.length&&!a?.length){let t=r.current;t&&Mt(Y(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${l[u].version}`),{method:`DELETE`}).then(async e=>E((await e.json().catch(()=>null))?.payload)).catch(()=>{D(t)}),C(null);return}let d=o?i??s:`off`;C(null);let f=r.current;f&&Mt(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(({refId:e,kind:t,sourceId:n,expectedVersion:r})=>({refId:e,kind:t,sourceId:n,expectedVersion:r}))})}).then(async e=>{E((await e.json().catch(()=>null))?.payload)}).catch(()=>{D(f)})},[E,o,D,r,s]),z=(0,Z.useCallback)(e=>{w.current===e&&C(null);let t=r.current,n=y.current.find(t=>t.id===e);!t||!n||Mt(Y(`/api/sessions/${encodeURIComponent(t)}/inputs/${encodeURIComponent(e)}?version=${n.version}`),{method:`DELETE`}).then(async e=>{E((await e.json().catch(()=>null))?.payload)}).catch(()=>{D(t)})},[E,D,r]),B=(0,Z.useCallback)((e,t)=>{let n=y.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||Mt(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=>E((await e.json().catch(()=>null))?.payload)).catch(()=>{D(o)})},[E,D,r]),V=(0,Z.useCallback)((e,t)=>{let n=r.current,i=y.current[e],a=y.current[t],o=y.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||Mt(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=>{E((await e.json().catch(()=>null))?.payload)}).catch(()=>{D(n)})},[E,D,r]),H=(0,Z.useCallback)(async e=>{let t=r.current;if(!t)return;let n=y.current.find(t=>t.id===e);if(!(!n?.text.trim()||n.attachments?.length||n.contextRefs?.length)){x(e);try{let r=await kr(),i=await Mt(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(),origin:r})});i.ok&&(E((await i.json().catch(()=>null))?.payload?.state),z(e))}catch{}finally{x(null)}}},[E,z,r]),U=(0,Z.useCallback)(async(e,t)=>{let n=h.current;if(!n)return;let i=`${n.requestId}\n${n.version}\n${e}\n${t??``}`;g.current?.signature!==i&&(g.current={signature:i,idempotencyKey:crypto.randomUUID()});let a=g.current.idempotencyKey;f(!0),m(null);try{let i=await Mt(Y(`/api/clarifications/${encodeURIComponent(n.requestId)}/responses`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:e,answer:t,expectedVersion:n.version,idempotencyKey:a})});if(!i.ok){m((await i.json().catch(()=>({}))).error?.message??i.statusText??`Clarify failed`);let e=r.current;e&&(i.status===409||i.status===410)&&O(e);return}g.current=null,u(null),m(null)}finally{f(!1)}},[O,r]);return{clarifyPrompt:l,clarifySubmitting:d,clarifySubmitError:p,clarifyPromptRef:h,pendingFollowUps:_,pendingFollowUpsRef:y,steeringFollowUpId:b,editingFollowUpId:S,addPendingFollowUp:F,beginEditFollowUp:I,cancelEditFollowUp:L,commitEditFollowUp:R,removePendingFollowUp:z,movePendingFollowUp:B,reorderPendingFollowUp:V,steerPendingFollowUp:H,submitClarifyAnswer:(0,Z.useCallback)(e=>U(`answer`,e),[U]),letAgentDecideClarification:(0,Z.useCallback)(()=>U(`agent_decide`),[U]),cancelClarification:(0,Z.useCallback)(()=>U(`cancel`),[U]),clearVisibleClarify:k,dismissClarify:j,dismissClarifyForSession:A,clearPendingFollowUps:M,dismissClarifyAndClearPending:N,makeOnClarifyRequest:P}}async function Vge(e){let t=await Hr(e);if(t)return{agentId:t.creation.agentId.trim().toLowerCase(),projectId:t.creation.projectId?.trim()||null};let n=await In(e);return{agentId:(n.routing?.agentId??n.agentId).trim().toLowerCase(),projectId:n.projectId?.trim()||null}}function Hge(e){let t=(0,Q.c)(58),{navigate:n,conversationIdRef:r,conversationId:i,isNewRoute:a,locationState:o,locationSearch:s}=e,c=At(Kge),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}=Xr(d,Vz,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=()=>Vge(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}=Xr(h,g,_),y=v?.agentId??``,b,x;t[11]===m?(b=t[12],x=t[13]):(b=()=>{let e=e=>{ei(e.detail)||m()};return window.addEventListener(`config-reload`,e),()=>window.removeEventListener(`config-reload`,e)},x=[m],t[11]=m,t[12]=b,t[13]=x),(0,Z.useEffect)(b,x);let[S,C]=(0,Z.useState)(Gge),w=(0,Z.useRef)(p??null),T;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(T=D3().selectedAgentId??null,t[14]=T):T=t[14];let E=(0,Z.useRef)(T),D,O;t[15]===p?(D=t[16],O=t[17]):(O=()=>{w.current=p??null},D=[p],t[15]=p,t[16]=D,t[17]=O),(0,Z.useEffect)(O,D);let k,A;t[18]===S?(k=t[19],A=t[20]):(k=()=>{E.current=S},A=[S],t[18]=S,t[19]=k,t[20]=A),(0,Z.useEffect)(k,A);let j,M;t[21]===p?(j=t[22],M=t[23]):(j=()=>{if(!p)return;let e=new Set(p.items.map(Wge));C(t=>t==null||t===``||!e.has(t)?p.defaultId:t)},M=[p],t[21]=p,t[22]=j,t[23]=M),(0,Z.useEffect)(j,M);let N;t[24]!==r||t[25]!==y?(N=()=>{if(r.current&&y)return y;let e=w.current,t=(E.current??``).trim().toLowerCase();if(!e)return t||void 0;let n=new Set(e.items.map(Uge));return t&&n.has(t)?t:e.defaultId},t[24]=r,t[25]=y,t[26]=N):N=t[26];let P=N,F;t[27]!==r||t[28]!==y||t[29]!==v?.projectId||t[30]!==a||t[31]!==s||t[32]!==o||t[33]!==n?(F=e=>{let t=e.trim().toLowerCase(),i=r.current?y||E.current:null;E.current=t,C(t),k3(t),i!==t&&n(a?`/chat/new${s}`:_e(v?.projectId),{replace:!1,state:{...a&&o&&typeof o==`object`?o:{},agentId:t,forceNewChat:!0}})},t[27]=r,t[28]=y,t[29]=v?.projectId,t[30]=a,t[31]=s,t[32]=o,t[33]=n,t[34]=F):F=t[34],v?.projectId;let I=F,L,R;t[35]===I?(L=t[36],R=t[37]):(L=()=>{let e=e=>{let t=e.detail?.agentId;typeof t!=`string`||!t.trim()||I(t)};return window.addEventListener(`xopc-set-chat-agent`,e),()=>window.removeEventListener(`xopc-set-chat-agent`,e)},R=[I],t[35]=I,t[36]=L,t[37]=R),(0,Z.useEffect)(L,R);let z,B;t[38]!==i||t[39]!==y?(z=()=>{if(!i)return;let e=y;!e||E.current===e||(E.current=e,C(e),k3(e))},B=[y,i],t[38]=i,t[39]=y,t[40]=z,t[41]=B):(z=t[40],B=t[41]),(0,Z.useLayoutEffect)(z,B);let V,H;t[42]!==i||t[43]!==v?(V=()=>{!i||!v||Use(v.projectId)},H=[v,i],t[42]=i,t[43]=v,t[44]=V,t[45]=H):(V=t[44],H=t[45]),(0,Z.useLayoutEffect)(V,H);let U,W;t[46]!==a||t[47]!==o?(U=()=>{if(!a)return;let e=o,t=typeof e?.agentId==`string`?e.agentId.trim().toLowerCase():``;t&&(E.current=t,C(t),k3(t))},W=[a,o],t[46]=a,t[47]=o,t[48]=U,t[49]=W):(U=t[48],W=t[49]),(0,Z.useLayoutEffect)(U,W);let G=y||S||p?.defaultId||`main`,ee=(p?.items.length??0)>1,te=v?.projectId??null,ne;return t[50]!==p||t[51]!==G||t[52]!==I||t[53]!==P||t[54]!==ee||t[55]!==te||t[56]!==c?(ne={token:c,chatAgentsData:p,resolveAgentIdForPost:P,onChatAgentChange:I,displayAgentId:G,showChatAgentSelector:ee,currentSessionProjectId:te},t[50]=p,t[51]=G,t[52]=I,t[53]=P,t[54]=ee,t[55]=te,t[56]=c,t[57]=ne):ne=t[57],ne}function Uge(e){return e.id}function Wge(e){return e.id}function Gge(){return D3().selectedAgentId??null}function Kge(e){return e.conversationId}async function qge(e){let t=await e.sessionMgr.createSession(e);return{kind:`create`,conversationId:t.key,session:t}}var n9=new Map,r9=0;function i9(e){let t=At.getState(),n=Uj(t.baseUrl,{agentId:e.agentId?.trim()||`main`,projectId:e.projectId??null}),r=JSON.stringify([n,t.conversationId,e.forceNew===!0,e.temporary===!0,e.executionMode,e.search]),i=n9.get(r);if(i)return i.target.opts=e,i.target.generation=++r9,i.promise;let a={opts:e,generation:++r9},o=e=>{if(a.generation!==r9)return;let t=a.opts;t.onOpened(e),(t.routeConversationId?.trim()||null)!==e&&t.navigateToSession(e,t.replaceNavigate??!1,t.search)},s=(async()=>{let t=e.agentId??void 0,{conversationId:n}=await qge({sessionMgr:e.sessionMgr,agentId:t?.trim()||`main`,projectId:e.projectId,currentConversationId:e.currentConversationId,forceNew:e.forceNew,temporary:e.temporary,initialAgentConfig:e.initialAgentConfig,executionMode:e.executionMode});return o(n),n})().finally(()=>{n9.delete(r)});return n9.set(r,{promise:s,target:a}),s}var a9={current:null},o9={current:null};function Jge(e){return!!(e&&typeof e==`object`&&e.forceNewChat===!0)}function Yge(e){let t=b(),{conversationId:n}=p(),r=e?!1:t.pathname.endsWith(`/new`),i=r&&Jge(t.state),a=e??Nge(r,n),o=Mge(r,a),s=$7(o),c=r?null:a??null,l=(0,Z.useRef)(o);return l.current=o,a9.current=c,!r&&a&&(o9.current=a),(0,Z.useLayoutEffect)(()=>{zr.getState().focusedConversationId!==c&&zr.getState().setFocusedConversationId(c)},[c]),{isNewRoute:r,forceNewChat:i,decodedKey:a,routedConversationId:o,viewConversationId:s,routedFocusedConversationId:c,routeConversationIdRef:l,locationKey:t.key,locationSearch:t.search,locationState:t.state}}var Xge={get current(){return o9.current}},s9={get current(){return a9.current},set current(e){a9.current=e,zr.getState().setFocusedConversationId(e)}};function Zge(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=At(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=D3(),i=n.resolveAgentIdForPost(),s=Hj({origin:`web-route`,project:le(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 WR(s.projectId):null;if(!a())return;!e.requestedAgentId&&c?.defaultAgentId&&(s.agentId=c.defaultAgentId);let l=Rj(r,s.agentId),u=(t,r)=>i9({sessionMgr:n.sessionMgrRef.current,agentId:s.agentId,currentConversationId:Xge.current,routeConversationId: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:ue(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=Vr(e)?.messages??t??mr(e);return n.tryResumeAgentRun(e,r)},l=e=>a()?Vr(e)?.historyStatus===`ready`?(o(e),c(e,mr(e))):n.loadSessionById(e,0).then(t=>{if(a())return c(e,t??mr(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=Vr(t.key)?.messages??e??mr(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 i9({sessionMgr:n.sessionMgrRef.current,agentId:r,currentConversationId:null,routeConversationId: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 Qge(e){let t=At(e=>e.conversationId),n=At(e=>e.baseUrl),[r,i]=(0,Z.useState)(null),{data:a,error:o}=Xr(e?[`prepared-session-model`,n,t,e.create]:null,async()=>{let t=Rj(D3(),e.agentId),[n,r]=await Promise.all([Ti(),t?.modelRef??Oi(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?Xj(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&&A3(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=Rj(D3(),e.agentId)?.thinkingByModel?.[t];i({preparation:e,selection:{model:t,thinkingLevel:r.thinking?Xj(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 $ge(e){let t=e.trim();if(!t)return!1;try{return!!(await Ti()).find(e=>e.id===t)?.reasoning}catch{return!1}}function e_e(e){let{sessionMgrRef:t,routeConversationIdRef:n,sendingRef:r,streamingRef:i,loadingSessionRef:a,messagesLenRef:o,thinkingSupportGenRef:s,navigateToSession:c,resolveAgentIdForPost:l,detachForNewConversation:u,conversationId:d,sessionAgentId:f,currentProjectId:p,taskId:m,hasMore:h}=e,g=()=>zr.getState(),_=(0,Z.useRef)(Promise.resolve(void 0)),v=(0,Z.useRef)(null),y=(0,Z.useRef)(0),b=(0,Z.useCallback)(e=>{let t=g().focusedConversationId;if(!e.trim())return++s.current===s.current&&t&&g().patchSessionMeta(t,{modelSupportsThinking:!1}),Promise.resolve();let n=++s.current;return $ge(e).then(t=>{if(n!==s.current)return;let r=g().focusedConversationId;r&&g().sessions[r]?.model===e&&g().patchSessionMeta(r,{modelSupportsThinking:t})})},[s]),x=(0,Z.useCallback)(async e=>{try{let n=await t.current.loadSessionAgentConfig(e);Lr(e,n),b(n.model)}catch{}},[t,b]),S=(0,Z.useCallback)(()=>{let e=g().focusedConversationId;if(!e||(g().sessions[e]?.name)?.trim())return;let n=++y.current,r=[700,900,900,1e3,1e3],i=a=>{a>=5||n===y.current&&g().focusedConversationId===e&&(g().sessions[e]?.name?.trim()||window.setTimeout(()=>{n===y.current&&g().focusedConversationId===e&&(g().sessions[e]?.name?.trim()||t.current.fetchSessionName(e).then(t=>{if(n===y.current){if(t){g().patchSessionMeta(e,{name:t});return}i(a+1)}}).catch(()=>{i(a+1)}))},r[a]??900))};i(0)},[t]),C=(0,Z.useCallback)(e=>jge({chatId:e,routeConversationId:n.current}),[n]),w=(0,Z.useCallback)((e,t)=>{let n=g().getSessionSnapshot(e);n&&(n.streaming||n.sending||n.streamingMsg)?(g().mergeCommittedFromServer(e,t.messages,t.hasMore),t.name!==void 0&&g().patchSessionMeta(e,{name:t.name||null})):g().setCommittedSnapshot(e,{messages:t.messages,hasMore:t.hasMore,name:t.name}),C(e)&&(v.current=t.nextBeforeCursor??null)},[C]),T=(0,Z.useCallback)(async(e,r=0,i)=>{let o=async(e,r,i)=>{let s=r===0&&!i;a.current=!0;let u=s&&oee(g().sessions[e]?.historyStatus);u&&g().setSessionHistoryStatus(e,`loading`);try{let{messages:n,hasMore:a,name:o,nextBeforeCursor:c}=await t.current.loadSession(e,r,i,m);if(s){if(g().setCommittedSnapshot(e,{messages:n,hasMore:a,name:o??null}),!C(e))return n;v.current=c??null;let r=await t.current.loadSessionAgentConfig(e);return C(e)?(Lr(e,r),b(r.model),n):n}if(v.current=c??null,!C(e))return;g().prependHistoryMessages(e,n,a);return}catch(a){if(r===0&&!i){v.current=null;let r=a instanceof Error?a.message:`Failed to load session`;g().setShellError(/^HTTP 404\b/.test(r)?JSON.stringify(yr(r)):`Failed to load session`);let i=$7(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);{v.current=null;let e=l();i9({sessionMgr:t.current,agentId:e,currentConversationId:null,routeConversationId:null,navigateToSession:c,replaceNavigate:!0,onOpened:e=>{g().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),x(e)}})}}return}finally{a.current=!1,u&&g().sessions[e]?.historyStatus===`loading`&&g().setSessionHistoryStatus(e,`ready`)}},s=_.current,u,d=new Promise(e=>{u=e});_.current=s.then(()=>d),await s;try{return await o(e,r,i)}finally{u()}},[n,C,r,i,a,c,b,l,t,m]),E=(0,Z.useCallback)(async()=>{let e=g().focusedConversationId;if(!(!e||g().loadingMore||!h)){g().setLoadingMore(!0);try{await T(e,o.current,v.current)}finally{g().setLoadingMore(!1)}}},[h,T,o]),D=(0,Z.useCallback)(async(e,n)=>{if(!d)throw Error(`No active session`);let r=g().sessions[d];if(r?.modelConfigSaving)throw Error(`Model configuration is being saved`);g().patchSessionMeta(d,{modelConfigSaving:!0});try{if(g().setShellError(null),n===void 0){let t=(await Ti()).find(t=>t.id===e);if(t?.thinking){let i=Rj(D3(),f)?.thinkingByModel?.[e];n=Xj(t.thinking,r?.thinkingLevel,i)}}let i=m?await t.current.patchTaskConversationModel(m,e,n,r?.configVersion):await t.current.patchSessionAgentConfig(d,{model:e,thinkingLevel:n,configVersion:r?.configVersion});Lr(d,i),A3(f,{modelRef:i.model,thinkingLevel:i.thinkingLevel}),b(i.model)}catch(e){let n=e instanceof Error?e.message:`Failed to update model configuration`;g().setShellError(n);let r=await t.current.loadSessionAgentConfig(d).catch(()=>null);throw r&&Lr(d,r),e}finally{g().patchSessionMeta(d,{modelConfigSaving:!1})}},[d,f,m,t,b]);return{refreshModelThinkingSupport:b,pollSessionNameAfterTurn:S,applyLoadedSessionSnapshot:w,loadSessionById:T,loadMoreMessages:E,onSessionModelChange:D,onSessionThinkingLevelChange:(0,Z.useCallback)(async e=>{let t=d?g().sessions[d]?.model:void 0;t&&await D(t,e)},[d,D]),onSessionWorkingDirectoryChange:(0,Z.useCallback)(async e=>{let n=e.trim();if(!(!d||!n))try{g().setShellError(null),await t.current.patchSessionAgentConfig(d,{workingDirectory:n}),await x(d)}catch(e){throw g().setShellError(e instanceof Error?e.message:`Failed to update working directory`),e}},[x,d,t]),createNewSession:(0,Z.useCallback)(async e=>{g().setShellError(null);let n=l(),r=Rj(D3(),n??`main`);await i9({sessionMgr:t.current,agentId:n,currentConversationId:d,routeConversationId:d,forceNew:e?.forceNew,temporary:e?.temporary,executionMode:e?.executionMode,projectId:e?.projectId===void 0?p:e.projectId,initialAgentConfig:r?{model:r.modelRef,...r.thinkingLevel?{thinkingLevel:r.thinkingLevel}:{}}:void 0,navigateToSession:c,onOpened:e=>{u(),v.current=null,g().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:null}),x(e)}})},[u,c,l,p,d,t,x]),resetCurrentSession:(0,Z.useCallback)(async()=>{if(d){g().setShellError(null);try{await t.current.resetSession(d),u(),v.current=null,g().setCommittedSnapshot(d,{messages:[],hasMore:!1,name:null}),x(d)}catch(e){g().setShellError(e instanceof Error?e.message:`Failed to reset session`)}}},[x,d,u,t])}}function t_e(e){return new Promise(t=>{Promise.resolve().then(()=>e(()=>t(!0))).then(()=>t(!1),()=>t(!1))})}function n_e(e,t,n){return e.map(e=>{if(e.clientSubmissionId!==t)return e;if(n===`failed`)return{...e,deliveryStatus:`failed`};let r={...e};return delete r.clientSubmissionId,delete r.deliveryStatus,delete r.pendingAppContext,r})}function c9(e){return e!==`suspended`}function l9(e){let{chatId:t,shouldApplyStreamUpdate:n,beforeAssistantDelta:r,reconcileHydratedAssistantText:i,setStreamingOnStreamStart:a,clearResumeRunIdOnBackgroundTerminal:o,clearResumeRunIdOnVisibleError:s,setError:c,sessionMgrRef:l,applyLoadedSessionSnapshot:u,finalizeMessage:d,fq:f}=e,p=()=>zr.getState(),m=()=>l.current.loadSession(t,0).then(e=>u(t,e)).catch(()=>{}),h=new Map,g,_=()=>{if(g!==void 0&&(window.clearTimeout(g),g=void 0),h.size===0)return;let e=Array.from(h.entries());h.clear(),r(),p().mutateSessionStreaming(t,t=>{for(let[n,r]of e)see(t.content,n,r)})},v=(e,t)=>{h.set(e,`${h.get(e)??``}${t}`),g===void 0&&(g=window.setTimeout(_,120))},y=e=>{p().clearStreamingState(t),o&&Yn.setResumeRunId(t,null),p().setSessionFlags(t,{sending:!1,streaming:!1}),p().setSessionProgress(t,null),c9(e)&&f.dismissClarifyForSession(t),m()};return{onReplayGap:m,onUserMessage:e=>{n(t)&&p().appendUserMessageIfMissing(t,e)},onWorkflowRunStarted:()=>{window.dispatchEvent(new CustomEvent(`workflow-run-started-from-chat`,{detail:{conversationId:t}}))},onStreamStart:(e,n,i)=>{Kz(t),r(),i&&p().updateSessionMessages(t,t=>t.some(t=>t.role===`task`&&t.turnId===e)?t:[...t,{role:`task`,content:[],taskTrigger:i,turnId:e,timestamp:Date.now()}]),p().updateSessionMessages(t,t=>cee(t,e)),p().mutateSessionStreaming(t,t=>{t.turnId=e,n&&(t.startsNewBubble=!0)}),p().setSessionFlags(t,{streaming:!0})},onToken:(e,a,o)=>{r(),p().mutateSessionStreaming(t,t=>{qn(t.content,e,a,{offset:o,reconcileHydratedSegment:i})}),n(t)&&p().setSessionFlags(t,{streaming:!0})},onAssistantMessageEnd:(e,n,i)=>{r(),p().mutateSessionStreaming(t,t=>{uee(t.content,e,n),i&&(t.usage=i)})},onThinking:(e,n)=>{r(),p().mutateSessionStreaming(t,t=>{!n&&e===``?aee(t.content):er(t.content,e,n)})},onThinkingEnd:()=>{r(),p().mutateSessionStreaming(t,e=>{Jn(e.content)})},onToolStart:(e,n,i,a,o)=>{r(),p().mutateSessionStreaming(t,t=>{Cr(t.content,e,n,i,a,o)}),p().setSessionFlags(t,{streaming:!0})},onToolEnd:(e,n,i,a,o,s)=>{r(),p().mutateSessionStreaming(t,t=>{Sr(t.content,e,n,i,a,o,s)})},onToolUpdate:(e,n,i)=>{r(),p().mutateSessionStreaming(t,t=>{or(t.content,e,n,i)})},onTaskPlanUpdated:e=>{p().setSessionTaskPlan(t,e)},onTurnOutcome:e=>{r(),p().mutateSessionStreaming(t,t=>{t.outcome=e})},onReview:({review:e})=>{r(),p().mutateSessionStreaming(t,t=>{ar(t.content,e)}),n(t)&&p().setSessionFlags(t,{streaming:!0})},onReviewStart:e=>{r(),p().mutateSessionStreaming(t,t=>{dee(t.content,e)}),n(t)&&p().setSessionFlags(t,{streaming:!0})},onReviewDelta:({reviewId:e,delta:t})=>{v(e,t)},onReviewEnd:({reviewId:e,status:n,message:i})=>{_(),r(),p().mutateSessionStreaming(t,t=>{lee(t.content,e,n,i)})},onProgress:e=>{p().setSessionProgress(t,e)},onTtsAudio:e=>{n(t)&&p().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=kt(Pt.getState().language).chat;if(e.status===`started`)p().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)))})`:``;p().setSessionProgress(t,{stage:`compaction`,message:`${r.contextCompacted}${n}`,timestamp:Date.now()})}else p().setSessionProgress(t,null)},onClarifyRequest:f.makeOnClarifyRequest(t),onSessionConfigUpdated:()=>{p().patchSessionMeta(t,{modelConfigSaving:!0}),l.current.loadSessionAgentConfig(t).then(e=>Lr(t,e)).catch(()=>{}).finally(()=>p().patchSessionMeta(t,{modelConfigSaving:!1}))},onResult:({status:e})=>{_();let r=n(t);if(Yn.takeUserAborted(t)||e===`cancelled`){Yz(t),r?d(t,e):y(e);return}if(e===`error`){if(Jz(t,!r),!r){y(e);return}d(t,e),m();return}if(e===`suspended`?Xz(t):qz(t,!r),!r){y(e);return}d(t,e)},onError:e=>{_();let r=n(t);if(Jz(t,!r),!r){y(`error`);return}p().clearStreamingState(t),s&&Yn.setResumeRunId(t,null),p().setSessionFlags(t,{sending:!1,streaming:!1}),p().setSessionProgress(t,null),c(e),f.dismissClarifyForSession(t)}}}function r_e(e){return Vr(e)?.streamingMsg??null}var u9=80;function i_e(e){let t=e.trim();(t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`))&&(t=t.slice(1,-1).trim());let n=t.indexOf(`
|
|
105
|
+
`);return n!==-1&&(t=t.slice(0,n).trim()),t.length>u9&&(t=t.slice(0,u9-1).trimEnd()+`…`),t}function a_e(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 o_e(e){let t=e.trimStart().match(/^\/skill:([^\s]+)(?:\s+([\s\S]*))?$/i);return t&&(t[2]?.trim()||t[1]?.trim())||e}function s_e(e){let t=o_e(a_e(Zn([{type:`text`,text:e}]))).split(/\n/)[0]?.trim();if(!t)return null;let n=i_e(t);return n.length>0?n:null}function c_e(e,t){let n=e.trim(),r=t.trim();!n||!r||window.dispatchEvent(new CustomEvent(`session-updated`,{detail:{key:n,name:r},bubbles:!0}))}var d9=new Set([`new`,`reset`,`restart`]),l_e=new Set([...d9,`clear`,`archive`]);function f9(e){let t=e.trim(),n=/^\/([^\s@]+)(?:@[^\s]+)?(?:\s+([\s\S]*))?$/.exec(t);return n?{name:n[1].toLowerCase(),args:n[2]?.trim()??``}:null}function p9(e){let t=f9(e);return!!(t&&d9.has(t.name)&&!t.args)}function m9(e){let t=f9(e);return!!(t&&l_e.has(t.name))}function u_e(e){let{conversationId:t,taskId:n,thinkingLevel:r,modelSupportsThinking:i,conversationIdRef:a,sendingRef:o,streamingRef:s,sessionMgrRef:c,sendMessageRef:l,shouldApplyStreamUpdate:u,fq:d,applyLoadedSessionSnapshot:f,loadSessionById:p,resetCurrentSession:m,pollSessionNameAfterTurn:h}=e,g=()=>zr.getState(),_=e=>g().setShellError(e),v=()=>g().setShellError(null),y=(0,Z.useCallback)((e,t)=>{let n=e??a.current;if(n&&!u(n))return;let r=n?r_e(n):null,i=null;if(r){let e=Qn(r,Date.now());Jn(e.content),tr(e.content),$n(e.content),e.completedAt=Date.now(),i=Kn(e)}i&&rr(i)&&n?g().finalizeStreamingTurn(n,i):n&&g().clearStreamingState(n),o.current=!1,s.current=!1,n&&Yn.resetRunTracking(n),(!t||c9(t))&&d.dismissClarify(),h();let c=a.current;c&&window.setTimeout(()=>{a.current===c&&(o.current||s.current||p(c,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=g().sessions[e]?.streamingMsg,i=await jr(e);if(!i){let t=g().sessions[e]?.streamingMsg;if(t?.pendingResponseStatus||t&&t!==r||Yn.isStreamingFor(e))return;let n=Yn.getResumeRunId(e);n&&Yn.reconcileInactive(e,n),g().clearStreamingState(e,{preservePendingResponse:!0}),Yz(e);return}if(Yn.isTrackingRun(e,i))return;let a=t??mr(e),l=Vr(e)?.hasMore??!1;try{let t=await c.current.loadSession(e,0,void 0,n);g().mergeCommittedFromServer(e,t.messages,t.hasMore),a=t.messages,l=t.hasMore}catch{}Yn.setUserAborted(e,!1),Yn.setResumeRunId(e,i),o.current=!0,s.current=!0,g().seedSessionIfEmpty(e,a,!0,!0,l),g().setSessionFlags(e,{sending:!0,streaming:!0}),g().setSessionProgress(e,null),Kz(e);let m=!1,h=()=>{if(m||!u(e))return;m=!0;let t=Fge(mr(e),i);t&&g().applyHydratedTail(e,t.messagesWithoutTail,Kn(t.tail))},v=()=>{g().clearStreamingState(e),Yn.getResumeRunId(e)===i&&Yn.setResumeRunId(e,null),u(e)&&(o.current=!1,s.current=!1)};try{let t=l9({chatId:e,shouldApplyStreamUpdate:u,beforeAssistantDelta:h,reconcileHydratedAssistantText:!0,setStreamingOnStreamStart:!1,clearResumeRunIdOnBackgroundTerminal:!0,clearResumeRunIdOnVisibleError:!0,setError:_,sessionMgrRef:c,applyLoadedSessionSnapshot:f,finalizeMessage:y,fq:d});await Yn.senderFor(e).resume(i,e,t)||(Yz(e),v(),await p(e,0).catch(()=>void 0))}catch(t){t.name!==`AbortError`&&console.error(`[chat] resume failed:`,t),Yz(e),v()}finally{Yn.releaseIdleSender(e)}},[o,s,u,c,f,y,p,n]),x=(0,Z.useCallback)(async(e,t,c,u)=>{if(!e.trim()&&!t?.length&&!u?.length)return;let f=a.current;if(!f||!o.current&&!s.current&&!Yn.isStreamingFor(f))return;let p=e.trim();if(n&&m9(p)){_(`A task has one continuous conversation.`);return}if(p9(p)&&!t?.length){await m();return}d.dismissClarifyAndClearPending();let h=i?c??r:`off`;Yn.setUserAborted(f,!0),Yn.abort(f),o.current=!1,s.current=!1,y(f),queueMicrotask(()=>{l.current(e,t,h,u)})},[o,s,a,d.dismissClarifyAndClearPending,i,r,y,l,m,n]),S=(0,Z.useCallback)(async(e,a,l,h,b,x,S,C)=>{if(!t||!u(t)||!e.trim()&&!a?.length&&!h?.length||o.current||s.current||Yn.isStreamingFor(t))return!1;let w=e.trim();if(n&&m9(w))return _(`A task has one continuous conversation.`),!1;if(p9(w)&&!a?.length){await m();return}let T=i?l??r:`off`,E=t,D=crypto.randomUUID(),O=`assistant-stream:${E}:${D}`,k=mr(E),A=C?k.filter(e=>e.clientSubmissionId!==C):k,j=b?A.findIndex(e=>e.role===`user`&&e.turnId===b):-1;if(b&&j<0)return!1;Yn.setUserAborted(E,!1),o.current=!0,s.current=!1,v(),d.dismissClarify();let M=j>=0?A.slice(0,j):A,N=xr(e)??void 0,P=new Map(h?.flatMap(e=>e.refId?[[e.refId,e.title]]:[])??[]),F=N?pr(N,e=>P.get(e)):e,I=[...M,{role:`user`,content:F?[{type:`text`,text:F}]:[],userTurnDocument:N,deliveryStatus:`sending`,clientSubmissionId:D,pendingAppContext:x===void 0?void 0:structuredClone(x),attachments:a,contextRefs:h?.map(e=>({refId:e.refId,kind:e.kind,sourceId:e.sourceId,version:e.expectedVersion,title:e.title,fileKind:e.fileKind})),timestamp:Date.now()}];S?.(D);let L=Vr(E);if(g().initSessionSnapshot(E,{...L??{...sr(),historyStatus:`ready`,hasMore:!1,streamingMsg:null,progress:null,taskPlan:null,sending:!1,streaming:!1},messages:I,hasMore:L?.hasMore??!1,streamingMsg:{role:`assistant`,content:[],timestamp:Date.now(),renderKey:O,pendingResponseStatus:`sending`},progress:null,sending:!0,streaming:!1}),Kz(E),!L?.name?.trim()&&F.trim()){let e=s_e(F.trim());e&&(g().patchSessionMeta(E,{name:e}),c_e(E,e))}let R=e=>{g().updateSessionMessages(E,t=>n_e(t,D,e))};return t_e(async t=>{let r=!1;try{let i=l9({chatId:E,shouldApplyStreamUpdate:u,beforeAssistantDelta:()=>{},reconcileHydratedAssistantText:!1,setStreamingOnStreamStart:!0,clearResumeRunIdOnBackgroundTerminal:!1,clearResumeRunIdOnVisibleError:!1,setError:_,sessionMgrRef:c,applyLoadedSessionSnapshot:f,finalizeMessage:y,fq:d});i.onInputAccepted=()=>{r=!0,R(`accepted`),g().setPendingResponseStatus(E,`waiting`),t()},await Yn.senderFor(E).send(e,E,a,T,i,n,b,h,x)}catch(e){if(e.name!==`AbortError`)g().clearStreamingState(E),Yz(E),u(E)&&_(x&&e instanceof Error?e.message:JSON.stringify(br())),b&&p(E,0);else{Yz(E);let e=Vr(E)?.streamingMsg;e?.renderKey===O&&e.pendingResponseStatus&&g().clearStreamingState(E)}}finally{r||R(`failed`),u(E)&&(o.current=!1,s.current=!1),g().setSessionFlags(E,{sending:!1}),Yn.releaseIdleSender(E)}})},[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&&(Yn.setUserAborted(e,!0),d.dismissClarifyAndClearPending(),Yn.abort(e),e&&Yz(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=mr(t),r=n[e];if(!r||!cr(r.role))return;if(r.deliveryStatus===`failed`){let r=[...n];r.splice(e,1),g().updateSessionMessages(t,()=>r);return}let i=nr(n,e);if(i===null)return;let l=ur(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=mr(t),r=n[e];if(!r||!cr(r.role))return;for(let t=e+1;t<n.length;t++){let e=n[t];if(e&&cr(e.role))return}let i=r.userTurnDocument?Or(r.userTurnDocument):Zn(r.content),c=Xn(r.attachments);if(!i.trim()&&!c?.length&&!r.contextRefs?.length)return;let u=r.contextRefs?.map(e=>({refId:e.refId,kind:e.kind,sourceId:e.sourceId,expectedVersion:e.version,title:e.title,fileKind:e.fileKind})),d=r.deliveryStatus===`failed`?r.clientSubmissionId:void 0;!d&&!r.turnId||l.current(i,c,void 0,u,r.turnId,r.pendingAppContext,void 0,d).catch(()=>{p(t,0)})},[a,o,s,p,l])}}function d_e(e){let t=(0,Q.c)(11),{conversationId:n,conversationIdRef: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)(p_e,c);let l,u;t[1]!==n||t[2]!==a||t[3]!==o?(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]=n,t[2]=a,t[3]=o,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(ei(e.detail))return;let t=r.current;t&&i.current.loadSessionAgentConfig(t).then(e=>{s(t,e)}).catch(f_e)};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 f_e(){}function p_e(){let e=m_e;return window.addEventListener(`session-updated`,e),()=>window.removeEventListener(`session-updated`,e)}function m_e(e){let t=e.detail;!t?.key||t.name===void 0||zr.getState().patchSessionMeta(t.key,{name:t.name||null})}function h_e(e){let t=l(),{isNewRoute:n,forceNewChat:r,decodedKey:i,viewConversationId:a,routedFocusedConversationId:o,routeConversationIdRef:s,locationKey:c,locationSearch:u,locationState:d}=Yge(e?.fixedConversationId),f=(0,Z.useRef)(new Fr),p=(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=zr(e=>e.initLoading),w=zr(e=>e.loadingMore),T=zr(e=>e.shellError),E=a,D=zr(e=>E?e.sessions[E]:void 0),O=E?ir(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=Lge(D,Xr(Di,Ti,{revalidateOnFocus:!1}).data),L=D?.modelConfigSaving??!1,R=D?.thinkingLevel??`medium`,z=D?.reasoningLevel??`on`,B=D?.modelSupportsThinking??!1,V=D?.effectiveWorkspacePath??``,H=D?.workspaceSource??`agent_default_root`,U=D?.userContextMode??`enabled`;(0,Z.useEffect)(()=>{!E||A||k||f.current.loadSessionAgentConfig(E).then(e=>Lr(E,e)).catch(()=>void 0)},[E,A,k]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail.conversationId;f.current.loadSessionAgentConfig(t).then(e=>Lr(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:W,chatAgentsData:G,resolveAgentIdForPost:ee,onChatAgentChange:te,displayAgentId:ne,showChatAgentSelector:K,currentSessionProjectId:re}=Hge({navigate:t,conversationIdRef:s9,conversationId:S,isNewRoute:n,locationState:d,locationSearch:u}),ie=i!==void 0&&S!==i,ae=!!(i&&D?.historyStatus===`loading`&&!ie),oe=(0,Z.useMemo)(()=>C&&(S==null||i===void 0),[C,S,i]),se=zge({isNewRoute:n,sessionRoutePending:ie,showSessionLoading:oe,sessionContentLoading:ae,messageCount:D?.messages.length??0}),ce=(0,Z.useCallback)((e,n=!1,r)=>{let i=r??``;t({pathname:`/chat/${encodeURIComponent(e)}`,search:i},{replace:n})},[t]),le=(0,Z.useCallback)(e=>Age({streamConversationId:e,routeConversationId:s.current}),[s]),ue=(0,Z.useCallback)(()=>{Rge({sendingRef:m,streamingRef:h})},[]),de=Bge({conversationId:S,decodedKey:i,conversationIdRef:s9,sendingRef:m,streamingRef:h,modelSupportsThinking:B,thinkingLevel:R,shouldApplyStreamUpdate:le}),fe=(0,Z.useCallback)(()=>{de.clearVisibleClarify();let e=s9.current;e&&Yn.resetRunTracking(e),Ige(ue)},[de.clearVisibleClarify,s9,ue]),{refreshModelThinkingSupport:pe,pollSessionNameAfterTurn:me,applyLoadedSessionSnapshot:he,loadSessionById:ge,loadMoreMessages:_e,onSessionModelChange:ve,onSessionThinkingLevelChange:ye,onSessionWorkingDirectoryChange:be,createNewSession:xe,resetCurrentSession:Se}=e_e({sessionMgrRef:f,routeConversationIdRef:s,sendingRef:m,streamingRef:h,loadingSessionRef:p,messagesLenRef:x,thinkingSupportGenRef:g,navigateToSession:ce,resolveAgentIdForPost:ee,detachForNewConversation:fe,conversationId:S,sessionAgentId:ne,currentProjectId:re,hasMore:N,taskId:e?.taskId}),Ce=(0,Z.useCallback)(e=>{if(!e9({cacheConversationId:e,routeConversationId:s.current}))return!1;let t=Vr(e);return!t||!ir(t)&&!Dr(e)&&!Yn.isStreamingFor(e)?!1:(m.current=t.sending,h.current=t.streaming,!0)},[s]),{tryResumeAgentRun:we,sendMessage:Te,replaceLatestUserTurn:Ee,interruptAndSend:De,abort:Oe,deleteMessageRound:ke,retryUserMessageRound:Ae}=u_e({conversationId:S,taskId:e?.taskId,thinkingLevel:R,modelSupportsThinking:B,conversationIdRef:s9,sendingRef:m,streamingRef:h,sessionMgrRef:f,sendMessageRef:b,shouldApplyStreamUpdate:le,fq:de,applyLoadedSessionSnapshot:he,loadSessionById:ge,resetCurrentSession:Se,pollSessionNameAfterTurn:me});(0,Z.useEffect)(()=>{n&&fe()},[n,fe]);let je=(0,Z.useMemo)(()=>Pge({viewConversationId:a,conversationId:E,messages:D?.messages??[],streamingMsg:O?D?.streamingMsg??null:null}),[a,E,D?.messages,D?.streamingMsg,O]),Me=(0,Z.useCallback)((e,t)=>{zr.getState().setCommittedSnapshot(e,{messages:[],hasMore:!1,name:t}),ue()},[ue]),Ne=(0,Z.useCallback)((e,t)=>{Lr(e,t),pe(t.model)},[pe]),Pe=(0,Z.useCallback)(e=>{let t=zr.getState();e.loading!==void 0&&t.setInitLoading(e.loading),e.error!==void 0&&t.setShellError(e.error)},[]),Fe=(0,Z.useCallback)(async t=>{try{let n=await f.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}Fe(S)},[S,n,Fe]),d_e({conversationId:S,conversationIdRef:s9,sendingRef:m,streamingRef:h,sessionMgrRef:f,loadSessionById:ge,loadTimelineById:Fe,applyAgentConfig:Ne});let Ie=Zge({token:W,isNewRoute:n,forceNewChat:r,temporary:d?.temporary===!0,requestedAgentId:typeof d?.agentId==`string`?d.agentId:void 0,decodedKey:i,locationKey:c,locationSearch:u,sessionMgrRef:f,resolveAgentIdForPost:ee,navigateToSession:ce,loadSessionById:ge,tryResumeAgentRun:we,restoreLiveCacheIfNeeded:Ce,adoptEmptySession:Me,applyAgentConfig:Ne,patchInitUi:Pe}),Le=Qge(Ie);return(0,Z.useEffect)(()=>{Ie&&Le.error&&zr.getState().setShellError(Le.error instanceof Error?Le.error.message:`Failed to load model configuration`)},[Ie,Le.error]),(0,Z.useEffect)(()=>{let e=e=>{let t=e.detail,n=t?.conversationId,r=t?.runId;!n||!r?.trim()||(wr(n,r),Yn.setResumeRunId(n,r),le(n)&&(Yn.isTrackingRun(n,r)||queueMicrotask(()=>{le(n)&&(Yn.isTrackingRun(n,r)||we(n,mr(n)))})))};return window.addEventListener(`run-started`,e),()=>window.removeEventListener(`run-started`,e)},[we,le]),(0,Z.useEffect)(()=>{let e=k||A,t=_.current;if(_.current=e,!t||e)return;let n=s9.current;n&&queueMicrotask(()=>{!n||!le(n)||Yn.isStreamingFor(n)||Dr(n)&&we(n,mr(n))})},[k,A,we,le]),b.current=Te,{auth:{hasToken:!!W},session:{projectPreparation:Le.preparation,conversationId:S,sessionName:P,decodedKey:i,sessionRoutePending:ie,sessionContentLoading:ae,showSessionLoading:oe,conversationPhase:se,loading:C,sessionModel:Ie?Le.model:F,modelConfigReady:Ie?Le.ready:I,modelConfigSaving:L,thinkingLevel:Ie?Le.thinkingLevel:R,onSessionThinkingLevelChange:Ie?Le.onThinkingChange:ye,onSessionWorkingDirectoryChange:be,reasoningLevel:z,modelSupportsThinking:Ie?Le.modelSupportsThinking:B,effectiveWorkspacePath:V,workspaceSource:H,userContextMode:Ie?.temporary?`temporary`:U,hasMore:N,loadingMore:w,loadMoreMessages:_e,onSessionModelChange:Ie?Le.onModelChange:ve,createNewSession:xe,sessionManager:f.current},messages:{items:je},timeline:{items:v,refresh:Fe},stream:{error:T,streaming:k,sending:A,progress:j,taskPlan:M,sendMessage:Te,replaceLatestUserTurn:Ee,abort:Oe,interruptAndSend:De,deleteMessageRound:ke,retryUserMessageRound:Ae},followUp:{addPendingFollowUp:de.addPendingFollowUp,pendingFollowUps:de.pendingFollowUps,editingFollowUpId:de.editingFollowUpId,beginEditFollowUp:de.beginEditFollowUp,cancelEditFollowUp:de.cancelEditFollowUp,commitEditFollowUp:de.commitEditFollowUp,removePendingFollowUp:de.removePendingFollowUp,movePendingFollowUp:de.movePendingFollowUp,reorderPendingFollowUp:de.reorderPendingFollowUp,steerPendingFollowUp:de.steerPendingFollowUp,steeringFollowUpId:de.steeringFollowUpId},clarify:{clarifyPrompt:de.clarifyPrompt,clarifySubmitting:de.clarifySubmitting,clarifySubmitError:de.clarifySubmitError,submitClarifyAnswer:de.submitClarifyAnswer,letAgentDecideClarification:de.letAgentDecideClarification,cancelClarification:de.cancelClarification},agents:{chatAgents:G,displayAgentId:Ie?.agentId??ne,showChatAgentSelector:K,onChatAgentChange:te}}}function g_e(e){let t=(0,Q.c)(11),n=At(__e),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]===i?a=t[3]:(a=e=>i?e.sessions[i]?.localDraft:void 0,t[2]=i,t[3]=a);let o=zr(a),s;t[4]!==o||t[5]!==n||t[6]!==i?(s=n&&i&&!o?[`chat-session-meta`,i,n,o===!1?`persisted`:`unknown`]:null,t[4]=o,t[5]=n,t[6]=i,t[7]=s):s=t[7];let c;t[8]===i?c=t[9]:(c=async()=>{if(await Hr(i))return;let e=await In(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.parentConversationId==`string`&&e.parentConversationId.trim()?e.parentConversationId.trim():null,u=e.customData?.forkedFromSessionName;return{identity:{sourceChannel:e.sourceChannel,sessionType:e.sessionType,customData:e.customData},workflowRunId:n,ownerAgentId:a,sessionType:r,sourceNoteId:c,sourceNoteTitle:null,parentConversationId:l,forkedFromSessionName:typeof u==`string`&&u.trim()?u.trim():null}},t[8]=i,t[9]=c);let l;return t[10]===Symbol.for(`react.memo_cache_sentinel`)?(l={revalidateOnFocus:!1},t[10]=l):l=t[10],Xr(s,c,l)}function __e(e){return e.conversationId}function h9(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 v_e(e,t){return h9(lr(e??``),t)}function y_e(e,t){return NM(e,t)}function b_e(e){return e===`context`||e===`branch`||e===`compaction`?e:null}function x_e(e){return h9(e.preview||e.title,72)||e.kind}function g9(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:v_e(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:y_e(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=b_e(a.kind);if(!e)continue;let o=`${a.id}:${a.kind}`;r.events.some(e=>e.key===o)||r.events.push({key:o,label:x_e(a),tone:e})}return n}function _9(e,t){return(e===1?t.toolCount_one:t.toolCount_other).replace(`{{count}}`,String(e))}function S_e(e,t){let n=e[0]?.id;for(let r of e)r.messageIndex<=t&&(n=r.id);return n}function C_e(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=q(`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=q(`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-on-accent`,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:wQ(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)(jA,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),_9(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(T_e),h.map(w_e),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 w_e(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 T_e(e){return(0,$.jsxs)(`span`,{className:q(`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)(jA,{className:`size-3 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function E_e(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=g9(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=S_e(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)(X_,{className:`size-[1.125rem]`,strokeWidth:1.8,"aria-hidden":!0}),t[6]=h):h=t[6];let g;t[7]===a?g=t[8]:(g=(0,$.jsx)(en,{asChild:!0,children:(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`size-10 shrink-0 rounded-full p-0 sm:size-9 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)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim/60 backdrop-blur-[1px] xl:hidden`}),t[9]=_):_=t[9];let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=q(`xopc-dialog-content-pane fixed inset-x-2 bottom-[max(.5rem,env(safe-area-inset-bottom))] z-[90] flex h-[min(72dvh,34rem)] flex-col overflow-hidden`,`rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,`sm:left-auto sm:right-3 sm:w-[min(24rem,calc(100vw-1.5rem))]`,`md:bottom-[max(1rem,env(safe-area-inset-bottom))] md:right-4 md:h-[min(calc(100dvh-6rem),40rem)]`,`xl:hidden`),t[10]=v):v=t[10];let y;t[11]===i.title?y=t[12]:(y=(0,$.jsx)(on,{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)(Dt,{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)(nn,{asChild:!0,children:(0,$.jsx)(X,{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-subtle px-3.5 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)(C_e,{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)(rn,{children:[_,(0,$.jsxs)(an,{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)(sn,{open:d,onOpenChange:f,children:[g,T]}),t[35]=d,t[36]=T,t[37]=g,t[38]=E):E=t[38],E}function D_e(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-accent`:`w-2.5 bg-edge-strong/45`:t?`w-3.5 bg-accent`:`w-2.5 bg-edge-strong/45`}function O_e(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(M_e),...m.map(j_e),...i>0?[`+${i}`]:[]].join(` · `):n.title;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(l=q(`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:wQ(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)(jA,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:_9(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(A_e),c=m.map(k_e),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 k_e(e){return(0,$.jsxs)(`span`,{className:q(`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 A_e(e){return(0,$.jsxs)(`span`,{className:q(`inline-flex min-w-0 max-w-[9rem] items-center gap-1.5`,e.running&&`text-accent`),children:[(0,$.jsx)(jA,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:e.label})]},e.key)}function j_e(e){return e.label}function M_e(e){return e.label}function N_e(e){let t=(0,Q.c)(44),{items:n,activeMessageIndex:r,labels:i,onSelectMessage:a}=e,o;t[0]!==n||t[1]!==i?(o=g9(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:q(`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:q(`block h-0.5 rounded-full transition-[width,background-color] duration-150 ease-out`,D_e({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)(O_e,{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 P_e(e,t){return e===`running`||e===`queued`?t.runLinkRunning:e===`succeeded`?t.runLinkCompleted:t.runLinkFinished}var F_e=(0,Z.memo)(function(e){let t=(0,Q.c)(29),{link:n,className:r}=e,i=kt(Pt(I_e)).workflows,a=l(),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(WJ(n.runId,{ownerAgentId:n.ownerAgentId})),t[3]=n.ownerAgentId,t[4]=n.runId,t[5]=a,t[6]=c):c=t[6];let u;t[7]===r?u=t[8]:(u=q(`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`,$r.focusRingPanel,r),t[7]=r,t[8]=u);let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(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)(Re,{className:`size-4`,"aria-hidden":!0})}),t[9]=d):d=t[9];let f=P_e(n.status,i),p;t[10]===f?p=t[11]:(p=(0,$.jsx)(`span`,{className:`block text-xs font-medium uppercase tracking-wide text-fg-subtle`,children:f}),t[10]=f,t[11]=p);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)(rs,{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]!==p?(v=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[p,m,h,_]}),t[19]=m,t[20]=h,t[21]=_,t[22]=p,t[23]=v):v=t[23];let y;return t[24]!==v||t[25]!==c||t[26]!==u||t[27]!==d?(y=(0,$.jsxs)(`button`,{type:`button`,onClick:c,className:u,children:[d,v]}),t[24]=v,t[25]=c,t[26]=u,t[27]=d,t[28]=y):y=t[28],y});function I_e(e){return e.language}async function L_e(){return(await J(Y(`/api/workflows/definitions`))).definitions??[]}async function R_e(e){return(await J(Y(`/api/workflows/project-presets?${new URLSearchParams({projectId:e}).toString()}`))).presets??[]}async function z_e(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 B_e(e,t){let n=new URLSearchParams({projectId:e});await J(Y(`/api/workflows/project-presets/${encodeURIComponent(t)}?${n.toString()}`),{method:`DELETE`})}async function V_e(e,t,n){return J(Y(`/api/workflows/definitions/validate`),{method:`POST`,body:JSON.stringify({name:e,graph:t,manifest:n})})}async function H_e(e){let t=(await new Fr().createSession({agentId:e.agentId,projectId:e.projectId})).key;return await da(t,e.editing?`Please use the built-in workflow-authoring skill to update the saved workflow \`${e.workflowName}\`.\n\nRequested change:\n${e.prompt}`:`Please use the built-in workflow-authoring skill to create a workflow named \`${e.workflowName}\`.\n\nGoal:\n${e.prompt}`),t}async function U_e(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 W_e(e){return(await J(Y(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions`))).revisions??[]}async function G_e(e,t){return(await J(Y(`/api/workflows/definitions/${encodeURIComponent(e)}/revisions/${t}`))).definition}async function K_e(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 q_e(e){return(await J(Y(`/api/workflows/drafts`),{method:`POST`,body:JSON.stringify(e)})).draft}async function J_e(e){await J(Y(`/api/workflows/drafts/${encodeURIComponent(e)}`),{method:`DELETE`})}function v9(e,t){let n=t?.ownerAgentId?.trim();n&&e.set(`agentId`,n)}async function Y_e(e=50,t){let n=new URLSearchParams({limit:String(e)});v9(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 y9(e,t){let n=new URLSearchParams;v9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}${r}`))).view}async function X_e(e,t){let n=new URLSearchParams;v9(n,t);let r=n.size>0?`?${n.toString()}`:``;return(await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/comparison${r}`))).comparison}async function Z_e(e,t,n){let r=new URLSearchParams;v9(r,n);let i=r.size>0?`?${r.toString()}`:``,a=await Mt(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(zt(a.status,a.statusText,t))}return a.blob()}async function Q_e(e){return J(Y(`/api/workflows/runs`),{method:`POST`,body:JSON.stringify(e)})}async function b9(e,t){let n=new URLSearchParams;v9(n,t);let r=n.size>0?`?${n.toString()}`:``;await J(Y(`/api/workflows/runs/${encodeURIComponent(e)}/cancel${r}`),{method:`POST`})}async function $_e(e,t){let n=new URLSearchParams;v9(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 eve(e,t,n){let r=new URLSearchParams;v9(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 tve(e,t){let n=Number.parseInt(e,10);return Number.isFinite(n)?n:t+1}function x9(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:tve(e.id,n),label:e.label,phase:e.phaseId?t.get(e.phaseId):void 0,prompt:e.prompt??``,invocation:e.invocation,conversationId:e.conversationId,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 S9(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 nve=(0,Z.memo)(function(e){let t=(0,Q.c)(241),{view:n,onAbortCurrentTurn:r}=e,i=gY(Pt(rve)),a=i.live,o;t[0]===n?o=t[1]:(o=x9(n),t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c=mq(s),t[2]=s,t[3]=c);let l=c,u;t[4]===n.run.status?u=t[5]:(u=jJ.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(ive),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?gq(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,R,z,B,V,H,U,W,G;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(ave).filter(Boolean),o;t[66]!==d||t[67]!==r||t[68]!==k||t[69]!==n.run.id?(o=()=>{d&&b9(n.run.id,{ownerAgentId:k}).catch(ove),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;H=`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)(Re,{className:`size-4`,"aria-hidden":!0}),t[86]=D):D=t[86];let ee;t[87]===d?ee=t[88]:(ee=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]=ee);let ne;t[89]===ee?ne=t[90]:(ne=(0,$.jsxs)(`span`,{className:`relative flex size-8 shrink-0 items-center justify-center rounded-full bg-accent-soft text-accent-fg`,children:[D,ee]}),t[89]=ee,t[90]=ne);let K=a.status[n.run.status],re;t[91]===K?re=t[92]:(re=(0,$.jsx)(`span`,{className:`font-medium text-fg`,children:K}),t[91]=K,t[92]=re);let ie;t[93]===n.run.status?ie=t[94]:(ie=q(`rounded-full border px-1.5 py-0.5`,S9(n.run.status)),t[93]=n.run.status,t[94]=ie);let ae;t[95]!==T||t[96]!==ie?(ae=(0,$.jsx)(`span`,{className:ie,children:T}),t[95]=T,t[96]=ie,t[97]=ae):ae=t[97];let oe;t[98]===E?oe=t[99]:(oe=(0,$.jsx)(`span`,{className:`truncate`,children:E}),t[98]=E,t[99]=oe);let se;t[100]!==w||t[101]!==a.elapsed?(se=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]=se):se=t[102];let ce;t[103]!==re||t[104]!==ae||t[105]!==oe||t[106]!==se?(ce=(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-fg-muted`,children:[re,ae,oe,se]}),t[103]=re,t[104]=ae,t[105]=oe,t[106]=se,t[107]=ce):ce=t[107];let le;t[108]===O?le=t[109]:(le=(0,$.jsx)(`span`,{className:`mt-0.5 block truncate text-sm font-medium leading-tight text-fg`,children:O}),t[108]=O,t[109]=le);let ue;t[110]!==ce||t[111]!==le?(ue=(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[ce,le]}),t[110]=ce,t[111]=le,t[112]=ue):ue=t[112];let de;t[113]!==C||t[114]!==ne||t[115]!==ue?(de=(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:[ne,ue]}),t[113]=C,t[114]=ne,t[115]=ue,t[116]=de):de=t[116];let fe;t[117]!==N||t[118]!==d||t[119]!==a.stop?(fe=d?(0,$.jsxs)(X,{type:`button`,variant:`ghost`,className:`hidden h-8 px-2 text-xs sm:inline-flex`,onClick:N,children:[(0,$.jsx)(Af,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[117]=N,t[118]=d,t[119]=a.stop,t[120]=fe):fe=t[120];let pe;t[121]===p?pe=t[122]:(pe=()=>p(!0),t[121]=p,t[122]=pe);let me;t[123]!==a.details||t[124]!==pe?(me=(0,$.jsx)(X,{type:`button`,variant:`secondary`,className:`h-8 px-2.5 text-xs`,onClick:pe,children:a.details}),t[123]=a.details,t[124]=pe,t[125]=me):me=t[125];let he;t[126]!==fe||t[127]!==me?(he=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[fe,me]}),t[126]=fe,t[127]=me,t[128]=he):he=t[128],t[129]!==de||t[130]!==he?(U=(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:[de,he]}),t[129]=de,t[130]=he,t[131]=U):U=t[131],M=sn,B=f,V=p,j=rn,t[132]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[120] bg-scrim backdrop-blur-[1px]`}),t[132]=z):z=t[132],A=an,I=`xopc-dialog-content 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-overlay shadow-popover outline-none`;let ge;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,$.jsx)(Re,{className:`size-4 shrink-0 text-accent`,"aria-hidden":!0}),t[133]=ge):ge=t[133];let _e;t[134]===a.title?_e=t[135]:(_e=(0,$.jsx)(on,{className:`truncate text-sm font-semibold text-fg`,children:a.title}),t[134]=a.title,t[135]=_e);let ve;t[136]===n.run.status?ve=t[137]:(ve=q(`rounded-full border px-1.5 py-0.5 text-[10px]`,S9(n.run.status)),t[136]=n.run.status,t[137]=ve);let ye=a.status[n.run.status],be;t[138]!==ve||t[139]!==ye?(be=(0,$.jsx)(`span`,{className:ve,children:ye}),t[138]=ve,t[139]=ye,t[140]=be):be=t[140];let xe;t[141]!==_e||t[142]!==be?(xe=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[ge,_e,be]}),t[141]=_e,t[142]=be,t[143]=xe):xe=t[143];let Se;t[144]===O?Se=t[145]:(Se=(0,$.jsx)(tn,{className:`mt-1 line-clamp-2 text-xs text-fg-muted`,children:O}),t[144]=O,t[145]=Se);let Ce;t[146]!==xe||t[147]!==Se?(Ce=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[xe,Se]}),t[146]=xe,t[147]=Se,t[148]=Ce):Ce=t[148];let we;t[149]!==k||t[150]!==n.run.id?(we=WJ(n.run.id,{ownerAgentId:k}),t[149]=k,t[150]=n.run.id,t[151]=we):we=t[151];let Te;t[152]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,$.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),t[152]=Te):Te=t[152];let Ee;t[153]!==a.openRun||t[154]!==we?(Ee=(0,$.jsx)(X,{asChild:!0,type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,children:(0,$.jsxs)(y,{to:we,children:[Te,a.openRun]})}),t[153]=a.openRun,t[154]=we,t[155]=Ee):Ee=t[155];let De;t[156]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,$.jsx)(Dt,{className:`size-4`,"aria-hidden":!0}),t[156]=De):De=t[156];let Oe;t[157]===a.close?Oe=t[158]:(Oe=(0,$.jsx)(nn,{asChild:!0,children:(0,$.jsx)(X,{type:`button`,variant:`ghost`,className:`size-8 p-0`,"aria-label":a.close,children:De})}),t[157]=a.close,t[158]=Oe);let ke;t[159]!==Ee||t[160]!==Oe?(ke=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[Ee,Oe]}),t[159]=Ee,t[160]=Oe,t[161]=ke):ke=t[161],t[162]!==Ce||t[163]!==ke?(L=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge px-4 py-3`,children:[Ce,ke]}),t[162]=Ce,t[163]=ke,t[164]=L):L=t[164];let Ae=a.title,je;t[165]!==m||t[166]!==h||t[167]!==S?(je=S.map(e=>(0,$.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":m===e.id,className:q(`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]=je):je=t[168],t[169]!==a.title||t[170]!==je?(R=(0,$.jsx)(`div`,{className:`flex shrink-0 gap-1 border-b border-edge px-4 py-2`,role:`tablist`,"aria-label":Ae,children:je}),t[169]=a.title,t[170]=je,t[171]=R):R=t[171],W=`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?(G=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)(hv,{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]=G):G=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)(Wq,{rollup:l,currentPhase:s.currentPhase,labels:i.phase,recentLogs:[],recentLogsHeading:i.recentLogsHeading,showAllLogsLabel:i.showAllLogs,logsExpanded:!1,onToggleLogs:sve,selectedAgentId:g?.id,onSelectAgent:_}),(0,$.jsx)(Sq,{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)(uC,{className:`size-4 text-accent`,"aria-hidden":!0}),a.logs]}),e.length?(0,$.jsx)(`div`,{className:`space-y-1`,children:e.map(cve)}):(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]=R,t[59]=z,t[60]=B,t[61]=V,t[62]=H,t[63]=U,t[64]=W,t[65]=G}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],R=t[58],z=t[59],B=t[60],V=t[61],H=t[62],U=t[63],W=t[64],G=t[65];let ee;t[191]!==m||t[192]!==i||t[193]!==a.noResult||t[194]!==n.run.result?(ee=m===`result`?BJ(n.run.result)?(0,$.jsx)(qq,{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]=ee):ee=t[195];let ne;t[196]!==P||t[197]!==F||t[198]!==ee||t[199]!==W||t[200]!==G?(ne=(0,$.jsxs)(`div`,{className:W,children:[G,P,F,ee]}),t[196]=P,t[197]=F,t[198]=ee,t[199]=W,t[200]=G,t[201]=ne):ne=t[201];let K;t[202]===n.run.definitionId?K=t[203]:(K=(0,$.jsx)(`span`,{className:`text-xs text-fg-muted`,children:n.run.definitionId}),t[202]=n.run.definitionId,t[203]=K);let re;t[204]!==N||t[205]!==d||t[206]!==a.stop?(re=d?(0,$.jsxs)(X,{type:`button`,variant:`secondary`,className:`h-8 text-xs`,onClick:N,children:[(0,$.jsx)(Af,{className:`size-3.5`,"aria-hidden":!0}),a.stop]}):null,t[204]=N,t[205]=d,t[206]=a.stop,t[207]=re):re=t[207];let ie;t[208]!==k||t[209]!==n.run.id?(ie=WJ(n.run.id,{ownerAgentId:k}),t[208]=k,t[209]=n.run.id,t[210]=ie):ie=t[210];let ae;t[211]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,$.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),t[211]=ae):ae=t[211];let oe;t[212]!==a.openRun||t[213]!==ie?(oe=(0,$.jsx)(X,{asChild:!0,type:`button`,variant:`primary`,className:`h-8 text-xs`,children:(0,$.jsxs)(y,{to:ie,children:[ae,a.openRun]})}),t[212]=a.openRun,t[213]=ie,t[214]=oe):oe=t[214];let se;t[215]!==re||t[216]!==oe?(se=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[re,oe]}),t[215]=re,t[216]=oe,t[217]=se):se=t[217];let ce;t[218]!==K||t[219]!==se?(ce=(0,$.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-edge px-4 py-3`,children:[K,se]}),t[218]=K,t[219]=se,t[220]=ce):ce=t[220];let le;t[221]!==A||t[222]!==I||t[223]!==L||t[224]!==R||t[225]!==ne||t[226]!==ce?(le=(0,$.jsxs)(A,{className:I,children:[L,R,ne,ce]}),t[221]=A,t[222]=I,t[223]=L,t[224]=R,t[225]=ne,t[226]=ce,t[227]=le):le=t[227];let ue;t[228]!==j||t[229]!==z||t[230]!==le?(ue=(0,$.jsxs)(j,{children:[z,le]}),t[228]=j,t[229]=z,t[230]=le,t[231]=ue):ue=t[231];let de;t[232]!==M||t[233]!==B||t[234]!==V||t[235]!==ue?(de=(0,$.jsx)(M,{open:B,onOpenChange:V,children:ue}),t[232]=M,t[233]=B,t[234]=V,t[235]=ue,t[236]=de):de=t[236];let fe;return t[237]!==H||t[238]!==U||t[239]!==de?(fe=(0,$.jsxs)(`div`,{className:H,children:[U,de]}),t[237]=H,t[238]=U,t[239]=de,t[240]=fe):fe=t[240],fe});function rve(e){return e.language}function ive(e){return e+1}function ave(e){return e.message}function ove(){}function sve(){}function cve(e,t){return(0,$.jsx)(`p`,{className:`break-words font-mono text-xs leading-5 text-fg-muted`,children:e},`${t}:${e}`)}function C9(e){return e.enabled?e.sourceContextPending?`pending:${e.conversationId??``}`:e.task?`task:${e.task.task.id}:${e.task.task.version}`:e.workflow?`workflow:${e.workflow.run.id}:${e.workflow.run.status}`:e.suppressProjectContext?`suppressed:${e.conversationId??``}`:e.project?`project:${e.project.id}:${e.project.name}`:e.conversationId?`session:${e.conversationId}:failed:${e.sourceContextFailed?`1`:`0`}`:`empty`:`disabled`}function w9(e){let t=C9(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.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`}}return e.suppressProjectContext?{key:t,context:{kind:`empty`},status:e.sourceContextFailed?`degraded`:`ready`}:e.project?{key:t,context:{kind:`project`,projectId:e.project.id,projectName:e.project.name},status:`ready`}:{key:t,context:{kind:`empty`},status:e.conversationId?`loading`:`ready`}}function lve(e){let{enabled:t,conversationId:n,sourceContextPending:r,sourceContextFailed:i,suppressProjectContext:a,project:o,task:s,workflow:c}=e,l=C9(e),[u,d]=(0,Z.useState)(()=>w9(e));(0,Z.useEffect)(()=>{let e=!1,u=w9({enabled:t,conversationId:n,sourceContextPending:r,sourceContextFailed:i,suppressProjectContext:a,project:o,task:s,workflow:c});if(!t||r||s||c||a||!n){d(u);return}return d(u),(async()=>{let t=!!i,r=o?.id??null;if(!r)try{let e=await Hr(n);r=e?e.creation.projectId?.trim()||null:(await In(n)).projectId?.trim()||null}catch{t=!0}if(!r){e||d({key:l,context:{kind:`empty`},status:t?`degraded`:`ready`});return}try{let[n,i]=await Promise.allSettled([o?Promise.resolve(o):WR(r),GR(r)]);if(n.status===`rejected`)throw n.reason;let a=i.status===`fulfilled`?i.value:null;a||(t=!0);let s=a?.blockers[0],c=a?.digest.health===`attention`?a.recentResults.find(({receipt:e})=>e.status===`failed`||e.verification.status===`failed`):void 0;e||d({key:l,context:{kind:`project`,projectId:r,projectName:n.value.name,recommendedAction:a?.digest.recommendedAction,blockedReason:s?.detail??s?.title,recentFailure:c?.receipt.failure?.recoveryAction??c?.receipt.summary},status:t?`degraded`:`ready`})}catch{e||d({key:l,context:{kind:`empty`},status:`degraded`})}})(),()=>{e=!0}},[n,l,t,i,r,a,o,s,c]);let f=u.key===l?u:w9(e);return{context:f.context,status:f.status}}var T9={tasks:()=>J(Y(`/api/tasks?limit=200`)),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,t=crypto.randomUUID())=>J(Y(`/api/automations/draft`),{method:`POST`,headers:{"Idempotency-Key":t},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()}`))},events:(e={})=>{let t=new URLSearchParams({limit:String(e.limit??50)});return e.type&&t.set(`type`,e.type),e.source&&t.set(`source`,e.source),J(Y(`/api/automation-events?${t.toString()}`))},deliveries:(e={})=>{let t=new URLSearchParams({limit:String(e.limit??50)});return e.runId&&t.set(`runId`,e.runId),e.status&&t.set(`status`,e.status),J(Y(`/api/automation-deliveries?${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,n=crypto.randomUUID())=>J(Y(`/api/automation-runs/${encodeURIComponent(e)}/repair-draft`),{method:`POST`,headers:{"Idempotency-Key":n},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 E9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function uve(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 dve(e,t){let n=e.trigger,r=t.explain;return n.kind===`event`?[D9(n.eventType,n.source,t),O9(n.payloadMatch,t),A9(e.safety,t),k9(e.action,t)]:[r.triggerMatched,k9(e.action,t)]}function fve(e,t,n){let r=e.triggerSnapshot,i=mve(t),a=n.explain;return r.kind===`event`?[i?D9(i.type,i.source,n):D9(r.eventType,r.source,n),O9(r.payloadMatch,n),A9(pve(t),n),k9(e.actionSnapshot,n)]:r.kind===`manual`?[a.manual,k9(e.actionSnapshot,n)]:r.kind===`webhook`?[a.webhook,k9(e.actionSnapshot,n)]:[a.schedule,k9(e.actionSnapshot,n)]}function D9(e,t,n){let r=n.explain;return t?E9(r.eventFrom,{eventType:e,source:t}):E9(r.event,{eventType:e})}function O9(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 E9(t.explain.payloadMatched,{pairs:n})}function k9(e,t){return e.kind===`workflow`?E9(t.explain.actionWorkflow,{workflowId:e.workflowId}):e.kind===`browser_automation`?`Runs browser automation ${e.automationId}.`:e.kind===`task_command`?`Starts task ${e.taskId}.`:e.kind===`system`?`Runs system capability ${e.capability}.`:t.explain.actionAgent}function A9(e,t){let n=e?.mode??`auto_apply`;return E9(t.explain.safetyMode,{mode:t.safety[n]})}function pve(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 mve(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 hve(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 gve(e,t){return new Date(e).toLocaleString(t,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}function _ve(e){return e.some(e=>[`queued`,`running`,`cancelling`].includes(e.run.status))}function j9(e){return e===`failed`||e===`timeout`||e===`cancelled`}function vve(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||j9(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),j9(e.status)&&(n.attention+=1,n.latestAttentionRun??=e);return n}function yve(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 M9(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{${t}}`,String(n)),e)}function bve(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?M9(r.feedback.summaryNeedsAttention,{total:n.total,attention:n.attention,name:n.latestAttentionRun?.automationName??r.feedback.thisAutomation}):s?M9(r.feedback.summaryRunning,{total:n.total,active:n.active}):c?M9(r.feedback.summaryRecovered,{total:n.total,recovered:n.recovered,succeeded:n.succeeded}):M9(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=q(`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)(R,{className:`size-3`,"aria-hidden":!0}),M9(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)(H,{className:`size-3`,"aria-hidden":!0}),M9(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)(DO,{className:`size-3`,"aria-hidden":!0}),M9(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)(R,{className:`size-3`,"aria-hidden":!0}),M9(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)(X,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:i,onClick:a,children:[(0,$.jsx)(ct,{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 N9({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i=3,className:a,onSaveInsight:o,isInsightSaved:s}){let c=Pt(e=>e.language),l=kt(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:_}=Xr(e&&(!n||r!==void 0)?d:null,()=>T9.productEventRuns({eventType:e,source:t,payloadKey:n,payloadValue:r,limit:i}),{revalidateOnFocus:!1,refreshInterval:e=>e?.items&&_ve(e.items)?3e3:15e3}),[v,b]=(0,Z.useState)({}),[x,w]=(0,Z.useState)({}),T=g?.items??[],E=vve(T),D=yve(T);if(!T.length)return null;let O=async(e,t)=>{p(e),h(null);try{await t(),await _()}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},k=async e=>{p(`${e.id}:repair`),h(null);try{let t=await T9.repairDraft(e.id,{language:c});b(n=>({...n,[e.id]:t.repair})),w(t=>({...t,[e.id]:!1}))}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},A=async(e,t,n=!1)=>{p(n?`${e.id}:applyAndRerun`:`${e.id}:applyRepair`),h(null);try{await T9.update(e.automationId,t.patch),n&&await T9.rerun(e.id),await _(),b(t=>{let n={...t};return delete n[e.id],n}),w(t=>{let n={...t};return delete n[e.id],n})}catch(e){h(e instanceof Error?e.message:String(e))}finally{p(null)}},j=E.latestAttentionRun&&!v[E.latestAttentionRun.id]?E.latestAttentionRun:void 0,M=j?f===`${j.id}:repair`:!1;return(0,$.jsxs)(`section`,{className:q(`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)(PA,{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:T.length})]}),(0,$.jsx)(bve,{health:E,labels:l,primaryRepairBusy:M,onPrimaryRepair:j?()=>void k(j):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:T.map(({run:e,triggerEvent:t})=>{let n=D.get(e.automationId),r=n?.id===e.id,i=j9(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=fve(e,t,l),_=s?.(e)??!1,T=e.status===`succeeded`&&!!e.summary&&!!o&&!_,E=f===`${e.id}:saveInsight`;return(0,$.jsxs)(`li`,{className:`rounded-md border border-edge/70 bg-surface-inset/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)(C,{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:q(`rounded-full border px-2 py-0.5 text-xs`,hve(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)(S,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`truncate`,children:gve(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)(ct,{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=>{w(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)(X,{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)(X,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void A(e,c),children:m?l.feedback.working:l.repair.apply}),(0,$.jsxs)(X,{variant:`primary`,className:`h-7 rounded-md px-2 text-xs`,disabled:c.requiresApproval&&!d||f!==null,onClick:()=>void A(e,c,!0),children:[(0,$.jsx)(at,{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)(R,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.savedInsight]}):null,T?(0,$.jsxs)(X,{variant:`secondary`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void O(`${e.id}:saveInsight`,()=>Promise.resolve(o(e))),children:[(0,$.jsx)(R,{className:`size-3.5`,"aria-hidden":!0}),E?l.feedback.savingInsight:l.feedback.saveInsight]}):null,e.conversationId?(0,$.jsx)(X,{asChild:!0,variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,children:(0,$.jsxs)(y,{to:`/chat/${encodeURIComponent(e.conversationId)}`,children:[(0,$.jsx)(Ze,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.chat]})}):null,e.workflowRunId?(0,$.jsx)(X,{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)(Re,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.workflow]})}):null,r&&j9(e.status)&&!c?(0,$.jsxs)(X,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void k(e),children:[(0,$.jsx)(ct,{className:`size-3.5`,"aria-hidden":!0}),p?l.repair.generating:l.repair.suggest]}):null,(0,$.jsxs)(X,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void O(`${e.id}:rerun`,()=>T9.rerun(e.id)),children:[(0,$.jsx)(at,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:rerun`?l.feedback.working:l.feedback.rerun]}),(0,$.jsxs)(X,{variant:`ghost`,className:`h-7 rounded-md px-2 text-xs`,disabled:f!==null,onClick:()=>void O(`${e.id}:pause`,()=>T9.pause(e.automationId)),children:[(0,$.jsx)(V,{className:`size-3.5`,"aria-hidden":!0}),f===`${e.id}:pause`?l.feedback.working:l.feedback.pause]}),(0,$.jsx)(X,{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)(te,{className:`size-3.5`,"aria-hidden":!0}),l.feedback.open]})})]})]},e.id)})})]})}function xve(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.workflowConversationId==`string`?n.workflowConversationId.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,workflowConversationId:i,definitionId:o,goal:s,status:c,createdAtMs:Number.isFinite(u)?u:void 0}}function Sve(e){if(!e?.length)return[];let t=new Map;for(let n of e){let e=xve(n);if(!e)continue;let r=t.get(e.runId);t.set(e.runId,{...r,...e,ownerAgentId:e.ownerAgentId??r?.ownerAgentId,workflowConversationId:e.workflowConversationId||r?.workflowConversationId||``,definitionId:e.definitionId||r?.definitionId||``,goal:e.goal||r?.goal||``})}return[...t.values()].toSorted((e,t)=>(e.createdAtMs??0)-(t.createdAtMs??0))}function Cve(e){let t=(0,Q.c)(11),n=At(wve),r;t[0]===e?r=t[1]:(r=e?.trim()||null,t[0]=e,t[1]=r);let i=r,a;t[2]===i?a=t[3]:(a=e=>i?e.sessions[i]?.localDraft:void 0,t[2]=i,t[3]=a);let o=zr(a),s;t[4]!==o||t[5]!==n||t[6]!==i?(s=n&&i&&!o?[`session-workflow-run-links`,i,n,o===!1?`persisted`:`unknown`]:null,t[4]=o,t[5]=n,t[6]=i,t[7]=s):s=t[7];let c;t[8]===i?c=t[9]:(c=async()=>await Hr(i)?[]:Sve((await In(i,{includeTranscriptRows:!0})).transcriptRows),t[8]=i,t[9]=c);let l;return t[10]===Symbol.for(`react.memo_cache_sentinel`)?(l={revalidateOnFocus:!1},t[10]=l):l=t[10],Xr(s,c,l)}function wve(e){return e.conversationId}function P9(e,t){let n=(0,Q.c)(26),r=At(Eve),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=()=>y9(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:Tve},n[12]=d):d=n[12];let f=Xr(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 Tve(e){return e&&jJ.has(e.run.status)?3e3:0}function Eve(e){return e.conversationId}var Dve=[ct,st,Ov];function Ove(e){let t=(0,Q.c)(20),{agentName:n,messages:r,disabled:i,onPick:a}=e,o;t[0]!==r.setupPromptComplete||t[1]!==r.setupPromptIdentity||t[2]!==r.setupPromptProject?(o=[r.setupPromptIdentity,r.setupPromptProject,r.setupPromptComplete],t[0]=r.setupPromptComplete,t[1]=r.setupPromptIdentity,t[2]=r.setupPromptProject,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-2xl bg-accent-soft text-accent`,children:(0,$.jsx)(ct,{className:`size-6`,strokeWidth:1.75,"aria-hidden":!0})}),t[4]=c):c=t[4];let l;t[5]===r.setupTitle?l=t[6]:(l=(0,$.jsx)(`h1`,{id:`agent-setup-title`,className:`mt-4 text-balance text-xl font-semibold tracking-tight text-fg`,children:r.setupTitle}),t[5]=r.setupTitle,t[6]=l);let u;t[7]!==n||t[8]!==r.setupDescription?(u=r.setupDescription.replace(`{{name}}`,n),t[7]=n,t[8]=r.setupDescription,t[9]=u):u=t[9];let d;t[10]===u?d=t[11]:(d=(0,$.jsx)(`p`,{className:`mt-2 max-w-xl text-pretty text-sm leading-relaxed text-fg-muted`,children:u}),t[10]=u,t[11]=d);let f;t[12]!==i||t[13]!==a||t[14]!==s?(f=(0,$.jsx)(`div`,{className:`mt-7 grid w-full gap-3 md:grid-cols-3`,children:s.map((e,t)=>{let n=Dve[t]??ct;return(0,$.jsxs)(`button`,{type:`button`,disabled:i,onClick:()=>a(e),className:q(`flex min-h-24 items-center gap-3 rounded-xl border border-edge bg-surface-panel px-4 py-4 text-left text-sm font-medium leading-relaxed text-fg`,`hover:border-accent/30 hover:bg-surface-hover`,$r.transition,$r.pressCard,$r.focusRingPanel,$r.disabled),children:[(0,$.jsx)(n,{className:`size-4 shrink-0 text-accent`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:e})]},e)})}),t[12]=i,t[13]=a,t[14]=s,t[15]=f):f=t[15];let p;return t[16]!==l||t[17]!==d||t[18]!==f?(p=(0,$.jsxs)(`section`,{className:`mx-auto flex w-full max-w-4xl flex-col items-center px-2 pb-4 pt-12 text-center sm:pt-16`,"aria-labelledby":`agent-setup-title`,children:[c,l,d,f]}),t[16]=l,t[17]=d,t[18]=f,t[19]=p):p=t[19],p}var kve={extension:bx,playwright:Iv,cdp:xD,remote:U};function Ave(e){let t=(0,Q.c)(41),{payload:n}=e,r=l(),i=Pt(jve),a;t[0]===i?a=t[1]:(a=kt(i),t[0]=i,t[1]=a);let o=a.chat,s=kve[n.driver]??ze,c=o.browserSetupRequiredTitle,u=o.browserSetupRequiredReasons[n.reason]??o.browserSetupRequiredReasons.generic,d=W5(n.driver===`extension`),f=n.driver===`extension`&&d.status?.localManagementAvailable===!0,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=q(`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]=p):p=t[2];let m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=q(`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]=m):m=t[3];let h;t[4]===s?h=t[5]:(h=(0,$.jsx)(`span`,{className:m,"aria-hidden":!0,children:(0,$.jsx)(s,{className:`size-4`,strokeWidth:1.75})}),t[4]=s,t[5]=h);let g;t[6]===c?g=t[7]:(g=(0,$.jsx)(`h3`,{className:`text-sm font-semibold text-amber-900 dark:text-amber-100`,children:c}),t[6]=c,t[7]=g);let _;t[8]===u?_=t[9]:(_=(0,$.jsx)(`p`,{className:`mt-1 text-xs leading-relaxed text-amber-900/85 dark:text-amber-100/80`,children:u}),t[8]=u,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[g,_]}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]!==h||t[14]!==v?(y=(0,$.jsxs)(`div`,{className:`flex items-start gap-3`,children:[h,v]}),t[13]=h,t[14]=v,t[15]=y):y=t[15];let b;t[16]!==f||t[17]!==d||t[18]!==o.browserSetupRequiredInstallCta||t[19]!==o.browserSetupRequiredOpenCta?(b=f?(0,$.jsxs)(X,{type:`button`,variant:`primary`,className:`h-8 px-3 py-1.5 text-xs`,disabled:d.busy,onClick:()=>void d.prepareAndOpen(),children:[d.busy?(0,$.jsx)(Ye,{className:`size-3.5 animate-spin`}):null,d.installed?o.browserSetupRequiredOpenCta:o.browserSetupRequiredInstallCta]}):null,t[16]=f,t[17]=d,t[18]=o.browserSetupRequiredInstallCta,t[19]=o.browserSetupRequiredOpenCta,t[20]=b):b=t[20];let x=f?`ghost`:`primary`,S;t[21]!==r||t[22]!==n.deepLink?(S=()=>r(n.deepLink),t[21]=r,t[22]=n.deepLink,t[23]=S):S=t[23];let C;t[24]!==o.browserSetupRequiredCta||t[25]!==x||t[26]!==S?(C=(0,$.jsx)(X,{type:`button`,variant:x,className:`h-8 px-3 py-1.5 text-xs`,onClick:S,children:o.browserSetupRequiredCta}),t[24]=o.browserSetupRequiredCta,t[25]=x,t[26]=S,t[27]=C):C=t[27];let w;t[28]!==C||t[29]!==b?(w=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[b,C]}),t[28]=C,t[29]=b,t[30]=w):w=t[30];let T;t[31]===d.error?T=t[32]:(T=d.error?(0,$.jsx)(`p`,{className:`text-xs text-danger`,role:`alert`,children:d.error}):null,t[31]=d.error,t[32]=T);let E;t[33]!==o.browserSetupRequiredDetailToggle||t[34]!==n.detail?(E=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[33]=o.browserSetupRequiredDetailToggle,t[34]=n.detail,t[35]=E):E=t[35];let D;return t[36]!==w||t[37]!==T||t[38]!==E||t[39]!==y?(D=(0,$.jsxs)(`section`,{role:`status`,"aria-live":`polite`,className:p,children:[y,w,T,E]}),t[36]=w,t[37]=T,t[38]=E,t[39]=y,t[40]=D):D=t[40],D}function jve(e){return e.language}var Mve=new Set([`extension`,`playwright`,`cdp`,`remote`]),Nve=new Set([`extension_not_installed`,`extension_not_connected`,`chromium_missing`,`cdp_unreachable`,`remote_api_key_missing`]);function Pve(e){if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;if(t.kind!==`browser_setup_required`)return null;let n=t.hint&&typeof t.hint==`object`&&!Array.isArray(t.hint)?t.hint:null;if(!n)return null;let r=n.driver,i=n.reason,a=n.deepLink;return typeof r!=`string`||!Mve.has(r)||typeof i!=`string`||!Nve.has(i)||typeof a!=`string`||!a.startsWith(`/settings/`)?null:{kind:`browser_setup_required`,driver:r,reason:i,deepLink:a,detail:typeof n.detail==`string`?n.detail:void 0}}function Fve(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n?.type!==`tool_use`||n.name!==`browser_use`)continue;let r=Pve(n.details);if(r)return r}return null}var Ive=120*1e3,F9=new Map;function Lve(){return typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Rve(e){for(let[t,n]of F9)n.expiresAt<=e&&F9.delete(t)}function zve(e,t=Date.now()){Rve(t);let n=Lve();return F9.set(n,{attachments:e.map(e=>({...e})),expiresAt:t+Ive}),n}function I9(e,t=Date.now()){let n=F9.get(e);if(!n)return null;if(n.expiresAt<=t)return F9.delete(e),null;if(!n.attachments)return null;let r=n.attachments;return n.attachments=null,r}var Bve=(0,Z.lazy)(async()=>({default:(await s(()=>import(`./chat-terminal-dock-BskUzDCS.js`),__vite__mapDeps([178,1,4,52,10,15,16,17,54,41,55,20,5,18,28,179]))).ChatTerminalDock}));function L9({embedded:e=!1,conversationId:t,taskId:n,personal:r=!1,personalWelcome:i}={}){let a=Pt(e=>e.language),o=kt(a),s=At(e=>e.conversationId),c=l(),d=b(),{pathname:f}=d,[p]=u(),m=(0,Z.useRef)(null),h=(0,Z.useRef)(0),g=(0,Z.useRef)(null),[_,v]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(()=>!!(t&&window.localStorage.getItem(`personal-calibration:${t}`))),[C,w]=(0,Z.useState)(null),[T,E]=(0,Z.useState)(null),[D,O]=(0,Z.useState)(!1),[k,A]=(0,Z.useState)(null),[j,M]=(0,Z.useState)(null),N=n?.trim()||null,{data:P}=rM(N??``),{auth:F,session:I,messages:L,timeline:R,stream:z,followUp:B,clarify:V,agents:H}=h_e({fixedConversationId:t,taskId:N??void 0}),U=!e&&!N&&p.get(`scene`)===`find-skills`,W=!e&&!N&&p.get(`agentSetup`)===`1`,G=p.get(`skill`)?.trim()??``,ee=p.get(`slash`)?.trim()??``,te=p.get(`draft`)??``,ne=p.get(`autoSend`)===`1`,K=p.get(`attachmentHandoff`),re=p.get(`attachmentsHandoff`),ie=I.decodedKey??I.conversationId,[ae,oe]=(0,Z.useState)(null),se=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{if(K){let e=vt(K);e&&oe(e),se.current=ie;return}se.current!==ie&&(se.current=ie,oe(null))},[K,ie]);let le=Gz(e=>e.markViewed),ue=Gz(e=>ie?e.runs[ie]?.unread:!1);(0,Z.useEffect)(()=>{ie&&ue&&le(ie)},[ie,ue,le]);let{data:de}=g_e(ie),fe=(0,Z.useCallback)(async e=>{if(ie)try{let t=await I.sessionManager.forkSessionAtTurn(ie,e);window.dispatchEvent(new CustomEvent(`session-created`,{detail:{key:t.conversationId,conversationId:t.conversationId}})),ht(`success`,o.chat.messageForkCreated),c(`/chat/${encodeURIComponent(t.conversationId)}`)}catch(e){throw ht(`error`,e instanceof Error?e.message:o.chat.messageForkFailed),e}},[ie,o.chat.messageForkCreated,o.chat.messageForkFailed,c,I.sessionManager]),pe=de?.workflowRunId??null,{view:me}=P9(pe,{ownerAgentId:de?.ownerAgentId??void 0}),{data:he=[],mutate:ge}=Cve(ie),ve=!!(pe&&me&&jJ.has(me.run.status)),ye=L.items.at(-1),be=r&&!x&&!z.streaming&&!z.sending&&ye?.role===`assistant`&&L.items.filter(e=>e.role===`user`).length===1&&L.items.filter(e=>e.role===`assistant`).length===1&&!L.items.some(e=>e.role===`task`),xe=e=>{S(!0),t&&window.localStorage.setItem(`personal-calibration:${t}`,`1`),e&&(h.current+=1,v({id:h.current,text:e}))},Se=ye?.role===`assistant`?Fve(ye.content):null,Ce=!e&&!z.streaming&&!z.sending&&Se!==null;(0,Z.useEffect)(()=>{if(!ie)return;let e=e=>{let t=e.detail;(t?.key??t?.conversationId)===ie&&ge()};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)}},[ie,ge]),(0,Z.useEffect)(()=>{m.current=null},[I.conversationId]),(0,Z.useEffect)(()=>{if(!F.hasToken||!G&&!ee&&!te&&!(I.projectPreparation&&re)||ne&&!I.projectPreparation||I.showSessionLoading||I.sessionRoutePending||!I.conversationId&&!I.projectPreparation)return;let e=I.projectPreparation&&re?I9(re)??void 0:void 0,t=()=>{let e=new URLSearchParams(p);e.delete(`skill`),e.delete(`slash`),e.delete(`draft`),I.projectPreparation&&(e.delete(`autoSend`),e.delete(`attachmentsHandoff`));let t=e.toString();c({pathname:f,search:t?`?${t}`:``},{replace:!0})},n=(n,r)=>{m.current!==r&&(m.current=r,queueMicrotask(()=>{e?.length?XH(n,e):(h.current+=1,v({id:h.current,text:n})),t()}))},r=ce(G,te);if(r||e?.length){let e=`${I.conversationId}:draft:${r}`;n(r??``,e);return}if(G){t();return}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(ee)){t();return}let i=`${I.conversationId}:slash:${ee}`;m.current!==i&&queueMicrotask(()=>{(async()=>{try{let e=await pU(),t=ee.toLowerCase(),n=e.find(e=>e.name.toLowerCase()===t||Array.isArray(e.aliases)&&e.aliases.some(e=>e.toLowerCase()===t));if(n){if(m.current===i)return;m.current=i,h.current+=1,v({id:h.current,text:T3(n)})}}finally{t()}})()})},[F.hasToken,G,ee,te,ne,re,I.projectPreparation,p,I.showSessionLoading,I.sessionRoutePending,I.conversationId,c,f]);let{scrollRef:we,atBottom:Te,registerListContentRef:Ee,scrollToBottom:De,onScroll:Oe}=BQ({hasToken:F.hasToken,showSessionLoading:I.showSessionLoading,conversationId:I.conversationId,chatMessages:L.items,hasMore:I.hasMore,loadingMore:I.loadingMore,loadMoreMessages:I.loadMoreMessages}),ke=pge({enabled:r,conversationId:I.conversationId,messages:L.items,viewportRef:we}),[je,Me]=(0,Z.useState)(0),Ne=(0,Z.useRef)(null),Pe=(0,Z.useRef)(null),Fe=(0,Z.useMemo)(()=>{let e=-1;for(let t of R.items)typeof t.displayIndex==`number`&&Number.isFinite(t.displayIndex)&&(e=Math.max(e,t.displayIndex));return e<0?0:Math.max(0,e+1-L.items.length)},[L.items.length,R.items]),Ie=(0,Z.useCallback)(e=>{let t=we.current;if(!t)return!1;let n=t.querySelector(`[data-chat-message-index="${e}"]`);if(!n)return!1;Me(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},[we]),Le=(0,Z.useCallback)(()=>{let e=we.current;if(!e)return;let t=Array.from(e.querySelectorAll(`[data-chat-message-index]`));if(t.length===0){Me(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)&&Me(e=>e===o?e:o)},[we]),Re=(0,Z.useCallback)(()=>{Ne.current!=null&&cancelAnimationFrame(Ne.current),Ne.current=requestAnimationFrame(()=>{Ne.current=null,Le()})},[Le]),ze=(0,Z.useCallback)(()=>{Oe(),Re()},[Oe,Re]),Be=(0,Z.useCallback)(e=>{let t=e-Fe;if(t<0||t>=L.items.length){t<0&&I.hasMore&&!I.loadingMore&&(Pe.current=e,I.loadMoreMessages());return}Pe.current=null,Ie(t)},[L.items.length,Ie,I.hasMore,I.loadMoreMessages,I.loadingMore,Fe]),Ve=wge({conversationId:I.conversationId,taskId:N,messages:L.items,displayOffset:Fe,viewportRef:we,onRevealDisplayIndex:Be});(0,Z.useEffect)(()=>{let e=Pe.current;if(e==null)return;let t=e-Fe;if(t>=0&&t<L.items.length){Pe.current=null,requestAnimationFrame(()=>Ie(t));return}if(t<0&&I.hasMore&&!I.loadingMore){I.loadMoreMessages();return}(t>=L.items.length||!I.hasMore)&&(Pe.current=null)},[L.items.length,Ie,I.hasMore,I.loadMoreMessages,I.loadingMore,Fe]),(0,Z.useEffect)(()=>{Re()},[L.items.length,Re,I.conversationId,Fe]),(0,Z.useEffect)(()=>()=>{Ne.current!=null&&cancelAnimationFrame(Ne.current)},[]),(0,Z.useEffect)(()=>{v(null)},[I.conversationId]);let Ue=(0,Z.useCallback)(e=>{h.current+=1,v({id:h.current,text:e.prompt})},[]),We=!!(I.conversationId&&!I.showSessionLoading&&!I.sessionRoutePending&&I.workspaceSource!==`project`&&I.workspaceSource!==`execution_environment`&&L.items.length===0),Je=IV(e=>e.setAgentId);(0,Z.useEffect)(()=>{if(F.hasToken)return Je(H.displayAgentId),()=>Je(``)},[F.hasToken,H.displayAgentId,Je]);let Ye=I.conversationPhase===`creating-session`,Xe=I.conversationPhase===`loading-history`,Ze=Ye||Xe,Qe=Xe,$e=!Qe&&L.items.length===0&&!z.streaming,et=(0,Z.useMemo)(()=>{if(z.taskPlan){let e=age(z.taskPlan);return e?{plan:e,changeSummary:W7(L.items,z.streaming)?.changeSummary??null}:null}return W7(L.items,z.streaming)},[L.items,z.streaming,z.taskPlan]),tt=(0,Z.useMemo)(()=>(I.sessionRoutePending&&I.decodedKey?I.decodedKey:I.conversationId)?I.sessionName?.trim()||o.chat.newSession:o.nav.chat,[I.conversationId,I.sessionName,I.sessionRoutePending,I.decodedKey,o.nav.chat,o.chat.newSession]),nt=de?.sourceNoteId??null,rt=uhe(ie,p.get(`projectId`)),it=I.projectPreparation?.project??rt,[at,ot]=(0,Z.useState)([]),[st,ct]=(0,Z.useState)([]),lt=At(e=>e.baseUrl),ut=ie?O7(lt,s,ie):null,dt=D7.store(e=>ut?e.drafts[ut]:void 0),ft=(0,Z.useRef)(void 0),[pt,mt]=(0,Z.useState)(!1);(0,Z.useLayoutEffect)(()=>{if(ft.current!==void 0){ie&&ie!==ft.current&&(ft.current=void 0);return}ot([]),ct([])},[ie]),(0,Z.useEffect)(()=>{let e=!1;if(w(null),nt)return He(nt).then(t=>{e||w(t?.title?.trim()||null)}).catch(()=>{e||w(null)}),()=>{e=!0}},[nt]);let gt=C||de?.sourceNoteTitle||o.chat.sourceNoteFallbackTitle,_t=lve({enabled:F.hasToken&&!!(ie||it)&&!W&&L.items.length===0&&!I.showSessionLoading&&!I.sessionRoutePending,conversationId:ie,suppressProjectContext:!!(nt||ae||I.workspaceSource===`execution_environment`||I.workspaceSource===`session_override`||I.workspaceSource===`agent_workspace`),project:it,task:P,workflow:me}),yt=(0,Z.useMemo)(()=>H.chatAgents?.items.find(e=>e.id===H.displayAgentId)??{id:H.displayAgentId},[H.chatAgents?.items,H.displayAgentId]),bt=(0,Z.useMemo)(()=>Tj(_t.context,o.chat.welcomeSpotlight,{contextStatus:_t.status}),[o.chat.welcomeSpotlight,_t.context,_t.status]),xt=(0,Z.useMemo)(()=>bt.recommendation?{suggestionId:bt.recommendation.id,contextKind:bt.contextKind,prompt:bt.recommendation.prompt}:null,[bt]),St=(0,Z.useCallback)((...e)=>{let[t,n,r,i,a]=e;if(dt&&(j||t.trim().startsWith(`/`)))return zr.getState().setShellError(o.chat.pageContext.pending),!1;if(j)return M(null),z.replaceLatestUserTurn(j.turnId,t,n,r,i);let s=!1,c=z.sendMessage(t,n,r,i,void 0,dt?.envelope,(e,t)=>{s=!0,a?.onDispatched?.({clientSubmissionId:e,messageRenderKey:t})});return s?(ut&&dt&&D7.remove(ut,dt),!0):c},[j,z.replaceLatestUserTurn,z.sendMessage,dt,ut,o.chat.pageContext.pending]),Ct=lhe({preparation:I.projectPreparation,conversationId:ie,ready:I.modelConfigReady&&!Ze,onSend:St}),wt=(0,Z.useCallback)(e=>{e.turnId&&(M({turnId:e.turnId}),XH(e.userTurnDocument?Or(e.userTurnDocument):Zn(e.content),Xn(e.attachments),e.contextRefs?.map(e=>({refId:e.refId,kind:e.kind,sourceId:e.sourceId,expectedVersion:e.version,title:e.title,fileKind:e.fileKind}))))},[]),Tt=(0,Z.useCallback)(()=>{M(null),XH(``)},[]);(0,Z.useEffect)(()=>{M(null)},[I.conversationId]),(0,Z.useEffect)(()=>{if(!ne||!te.trim()&&!re||!F.hasToken||I.showSessionLoading||I.sessionRoutePending||!I.conversationId||z.sending||z.streaming)return;let e=ce(G,te),t=re?I9(re):void 0;if(!e&&!t?.length)return;let n=`${I.conversationId}:auto-send:${e??``}:${re??``}`;if(m.current===n)return;m.current=n;let r=new URLSearchParams(p);r.delete(`skill`),r.delete(`slash`),r.delete(`draft`),r.delete(`autoSend`),r.delete(`attachmentsHandoff`);let i=r.toString();c({pathname:f,search:i?`?${i}`:``},{replace:!0}),St(e??``,t??void 0)},[F.hasToken,ne,re,te,St,c,f,p,I.conversationId,I.sessionRoutePending,I.showSessionLoading,G,z.sending,z.streaming]);let Et=(0,Z.useCallback)(()=>{g.current?.reject(),g.current=null,E(null),O(!1)},[]);(0,Z.useEffect)(()=>{Et()},[Et,nt]);let Dt=(0,Z.useMemo)(()=>({title:o.chat.timelineTitle,turn:o.chat.timelineTurn,messageFallback:o.chat.timelineMessageFallback,toolCount_one:o.chat.timelineToolCount_one,toolCount_other:o.chat.timelineToolCount_other,searchedWeb:o.chat.stepSearchedWeb,searchedMemory:o.chat.stepSearchedMemory,searchedCode:o.chat.stepSearchedCode,searched:o.chat.stepSearched,readFile:o.chat.stepReadFile,runCommand:o.chat.stepRunCommand,listDirectory:o.chat.stepListDirectory,writeFile:o.chat.stepWriteFile,editFile:o.chat.stepEditFile,openUrl:o.chat.stepOpenUrl,fetchUrl:o.chat.stepFetchUrl,unknownTool:o.chat.stepUnknownTool}),[o.chat.timelineTitle,o.chat.timelineTurn,o.chat.timelineMessageFallback,o.chat.timelineToolCount_one,o.chat.timelineToolCount_other,o.chat.stepSearchedWeb,o.chat.stepSearchedMemory,o.chat.stepSearchedCode,o.chat.stepSearched,o.chat.stepReadFile,o.chat.stepRunCommand,o.chat.stepListDirectory,o.chat.stepWriteFile,o.chat.stepEditFile,o.chat.stepOpenUrl,o.chat.stepFetchUrl,o.chat.stepUnknownTool]),Ot=(0,Z.useCallback)(async e=>{if(!nt)return;g.current?.reject(),O(!1);let t=o.chat.sourceNoteAppendSourceLine.replace(`{{time}}`,new Date().toLocaleString(a));return E({heading:o.chat.sourceNoteAppendHeading,content:`${t}\n\n${e.trim()}`}),new Promise((e,t)=>{g.current={sourceNoteId:nt,resolve:e,reject:t}})},[a,o.chat.sourceNoteAppendHeading,o.chat.sourceNoteAppendSourceLine,nt]),J=(0,Z.useCallback)(async e=>{try{let t=await qe(e.trim(),`web`);ht(`success`,o.chat.messageSavedToNote,void 0,{href:`/notes/${encodeURIComponent(t.id)}`})}catch(e){throw ht(`error`,e instanceof Error?e.message:o.notes.quickCaptureFailed),e}},[o.chat.messageSavedToNote,o.notes.quickCaptureFailed]),jt=(0,Z.useCallback)(async()=>{let e=g.current;if(!e||!T)return;let t=T.heading.trim()||o.chat.sourceNoteAppendHeading,n=T.content.trim();if(n){O(!0),A(null);try{await Ke(e.sourceNoteId,n,t),window.dispatchEvent(new CustomEvent(`note-updated`,{detail:{noteId:e.sourceNoteId,source:`chat`,conversationId:ie}})),e.resolve(),g.current=null,E(null)}catch(e){A(e instanceof Error?e.message:o.chat.sourceNoteSaveFailed)}finally{O(!1)}}},[ie,o.chat.sourceNoteAppendHeading,o.chat.sourceNoteSaveFailed,o.chat.sourceNoteSaveSuccess,T]),Mt=(0,Z.useCallback)(async e=>{if(!nt)return;let t=e.trim().split(/\n+/)[0]?.replace(/^[-#*>\s]+/,``).trim()||o.chat.sourceNoteTaskFallbackTitle;try{await Ge(t.slice(0,120),{sourceNoteId:nt,sourceConversationId:ie})}catch(e){throw ht(`error`,e instanceof Error?e.message:o.chat.sourceNoteTaskFailed),e}},[ie,o.chat.sourceNoteTaskFailed,o.chat.sourceNoteTaskFallbackTitle,o.chat.sourceNoteTaskSuccess,nt]),Nt=(0,Z.useCallback)(()=>{if(!nt)return;let e=o.chat.sourceNoteDigestPrompt.replace(`{{title}}`,gt);if(z.streaming||z.sending){B.addPendingFollowUp(e),oi({tone:`info`,status:`done`,title:o.chat.sourceNoteDigestQueued,source:a===`zh`?`笔记整理`:`Note digest`,dedupeKey:nt?`note-digest:${nt}`:void 0});return}z.sendMessage(e)},[B,a,o.chat.sourceNoteDigestPrompt,o.chat.sourceNoteDigestQueued,nt,gt,z]),Ft=(0,Z.useCallback)(async e=>{if(!(pt||Ct.busy)){if(I.projectPreparation){ft.current=null,c(_e(e),{state:{forceNewChat:!0,agentId:H.displayAgentId,temporary:I.userContextMode===`temporary`}});return}if(!(ft.current!==void 0||z.sending||z.streaming||Ze)){ft.current=ie,mt(!0);try{e?c(_e(e),{state:{forceNewChat:!0,agentId:H.displayAgentId,temporary:I.userContextMode===`temporary`}}):await I.createNewSession({forceNew:!0,projectId:e,temporary:I.userContextMode===`temporary`})}catch(e){ft.current=void 0,ht(`error`,o.chat.composerContext.changeFailed,{error:e instanceof Error?e.message:String(e)})}finally{mt(!1)}}}},[ie,Ze,o.chat.composerContext.changeFailed,pt,Ct.busy,I.createNewSession,I.projectPreparation,I.userContextMode,z.sending,z.streaming,c,H.displayAgentId]),It=(0,Z.useCallback)(()=>Ft(null),[Ft]),Y=(0,Z.useCallback)(async e=>{if(!(pt||Ze||z.sending||z.streaming||!We)){mt(!0);try{await I.onSessionWorkingDirectoryChange(e)}finally{mt(!1)}}},[pt,Ze,z.sending,z.streaming,We,I.onSessionWorkingDirectoryChange]),Lt=(0,Z.useMemo)(()=>({project:it,draftRefs:at,draftAttachments:st,draftPage:dt?{id:`${dt.envelope.tabId}:${dt.envelope.sequence}`,title:dt.title||(a===`zh`?`当前页面`:`Current page`)}:void 0,onLeaveProject:pt||Ct.busy?void 0:It,leaveProjectLabel:o.chat.scopeRemoveProject,onDraftSourceNote:nt?Nt:void 0,draftSourceNoteLabel:o.chat.sourceNoteDigestAction}),[pt,Ct.busy,it,at,st,dt,a,It,o.chat.scopeRemoveProject,nt,Nt,o.chat.sourceNoteDigestAction]);return F.hasToken?(z.error?dr(z.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)(I7,{}),(0,$.jsx)(F7,{chatHeadline:o.chat.sessionNotFoundTitle,chatAgents:H.chatAgents?.items??[],showChatAgentSelector:!1,chatAgentId:H.displayAgentId,onChatAgentChange:H.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)(VW,{errorText:z.error})})})]}):(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-1 flex-col overflow-hidden bg-surface-panel`,children:[(0,$.jsx)(I7,{}),e?null:(0,$.jsx)(F7,{chatHeadline:U&&L.items.length===0?o.skills.findTitle:tt,chatAgents:H.chatAgents?.items??[],showChatAgentSelector:!W&&H.showChatAgentSelector,chatAgentId:H.displayAgentId,onChatAgentChange:H.onChatAgentChange,chatAgentDisabled:Ct.busy||pt||Ze&&!I.projectPreparation,conversationId:I.conversationId,hasMessages:!Ze&&L.items.length>0,workspacePath:I.effectiveWorkspacePath,userContextMode:I.userContextMode,projectId:it?.id,context:Lt,canChangeWorkspace:!1,workspaceDisabled:Ze||z.sending||z.streaming,onWorkspaceChange:I.onSessionWorkingDirectoryChange,prepareTerminalSession:I.projectPreparation?Ct.prepareSession:void 0,terminalDisabled:!!(I.projectPreparation&&(Ct.busy||!Ct.allowed||Ct.checking)),showContextControls:!W,onFindOpen:Ve.show}),(0,$.jsxs)(`div`,{className:`relative flex min-h-0 w-full flex-1 flex-col`,children:[!e&&de?.parentConversationId?(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(de.parentConversationId)}`,className:`font-medium text-accent transition-colors hover:text-accent-fg`,children:o.chat.forkedFromConversation.replace(`{{name}}`,de.forkedFromSessionName||o.chat.forkedFromConversationFallback)}),(0,$.jsx)(`span`,{className:`ms-2`,children:o.chat.forkSharedWorkspaceNotice})]}):null,d.state?.fromAgentEditor&&H.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:y3(H.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:`←`}),o.agentsSettings.backToEditor]})}):null,e&&nt?(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:o.chat.sourceNoteBanner.replace(`{{title}}`,gt)}),(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:Nt,children:[(0,$.jsx)(zg,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),(0,$.jsx)(`span`,{children:o.chat.sourceNoteDigestAction})]}),(0,$.jsx)(y,{to:Ae(`/notes/${encodeURIComponent(nt)}`,`${d.pathname}${d.search}`),className:`font-medium text-accent transition-colors hover:text-accent-fg`,children:o.chat.sourceNoteOpen})]})]})}):null,(0,$.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,$.jsx)(mge,{open:Ve.open,query:Ve.query,activeIndex:Ve.activeIndex,resultCount:Ve.resultCount,searching:Ve.searching,truncated:Ve.truncated,limitedToLoaded:Ve.limitedToLoaded,inputRef:Ve.inputRef,labels:o.chat.find,onQueryChange:Ve.setQuery,onPrevious:Ve.previous,onNext:Ve.next,onClose:Ve.close}),e?null:(0,$.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 left-1/2 z-20 hidden w-full max-w-[calc(var(--max-width-chat-frame)+8rem)] -translate-x-1/2 xl:block`,children:(0,$.jsx)(`div`,{className:`pointer-events-auto absolute inset-y-0 right-0`,children:(0,$.jsx)(N_e,{items:R.items,activeMessageIndex:je+Fe,labels:Dt,onSelectMessage:Be})})}),(0,$.jsx)(`div`,{ref:we,"data-chat-scroll-viewport":!0,className:q(`chat-messages chat-messages--wide-viewport min-h-0 flex-1 overflow-y-auto overflow-x-hidden [overflow-anchor:none] [scrollbar-gutter:stable_both-edges]`,$e?`chat-messages--compact-welcome pt-5 pb-2`:`py-4`),onScroll:ze,"data-chat-find-open":Ve.open?``:void 0,children:(0,$.jsx)(`div`,{className:e&&!r?`px-3`:`px-3 sm:px-5 xl:px-6`,children:(0,$.jsx)(`div`,{"data-chat-message-frame":!0,className:q(`mx-auto w-full min-w-0`,(!e||r)&&`xl:max-w-[var(--max-width-chat-frame)]`),children:Xe?(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)(ta,{className:`h-11 w-[min(70%,22rem)] rounded-2xl`})}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,$.jsx)(ta,{className:`h-4 w-24`}),(0,$.jsx)(ta,{className:`h-4 w-[min(82%,36rem)]`}),(0,$.jsx)(ta,{className:`h-4 w-[min(74%,32rem)]`}),(0,$.jsx)(ta,{className:`h-4 w-[min(48%,22rem)]`})]}),(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(ta,{className:`h-11 w-[min(62%,18rem)] rounded-2xl`})})]}):(0,$.jsxs)($.Fragment,{children:[I.loadingMore?(0,$.jsx)(`div`,{className:`mb-3 text-center text-xs text-fg-muted`,children:o.chat.loadOlder}):null,z.error?(0,$.jsx)(`div`,{className:q(`sticky z-20 shrink-0 bg-transparent pe-2`,$e?`-top-5`:`-top-4`),children:(0,$.jsx)(VW,{errorText:z.error})}):null,!e&&N?(0,$.jsx)(`div`,{className:`hidden md:block`,children:(0,$.jsx)(aM,{taskId:N})}):null,he.length>0?(0,$.jsx)(`div`,{className:`mb-6 flex flex-col gap-3`,children:he.map(e=>(0,$.jsx)(F_e,{link:e},e.id))}):null,ve&&me?(0,$.jsx)(nve,{view:me,conversationId:ie,onAbortCurrentTurn:z.abort}):null,!e&&ie?(0,$.jsx)(N9,{eventType:`session.transcript.updated`,source:`sessions`,payloadKey:`conversationId`,payloadValue:ie,className:`mb-6`}):null,(0,$.jsx)(AQ,{messages:L.items,personal:r,authToken:s??void 0,conversationId:I.decodedKey??I.conversationId,projectId:it?.id,streaming:z.streaming,sending:z.sending,progress:z.progress,reasoningLevel:I.reasoningLevel,showAssistantWorkLog:!r,hideAssistantActions:r,registerListContentRef:Ee,onPickWelcomePrompt:Ue,welcomeSpotlight:bt,welcomeOverlay:r&&i?(0,$.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col items-start gap-3 px-4 py-8 text-fg`,children:[(0,$.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-3xl bg-accent/10 text-3xl text-accent`,"aria-hidden":!0,children:i.avatar??`✦`}),(0,$.jsx)(`h2`,{className:`text-2xl font-semibold`,children:a===`zh`?`你好${i.addressAs?`,${i.addressAs}`:``}。我们从哪里开始?`:`Hello${i.addressAs?`, ${i.addressAs}`:``}. Where should we start?`}),(0,$.jsx)(`p`,{className:`max-w-xl text-sm leading-relaxed text-fg-muted`,children:i.opening??(a===`zh`?`想讨论问题、整理思路或推进工作,都可以直接说。`:`Bring a question, an idea, or work to move forward.`)}),i.showSupportChoice&&(0,$.jsxs)(`div`,{className:`mt-3 w-full rounded-2xl border border-edge bg-surface-panel p-4`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:a===`zh`?`遇到难题时,你希望我先怎么回应?`:`When something is difficult, how should I respond first?`}),(0,$.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[[[`listen`,a===`zh`?`先听我说`:`Listen first`],[`untangle`,a===`zh`?`一起理清`:`Untangle it`],[`solutions`,a===`zh`?`直接给建议`:`Give advice`]].map(([e,t])=>(0,$.jsx)(`button`,{type:`button`,onClick:()=>i.onChooseSupport?.(e),className:`rounded-full border border-edge px-3 py-2 text-xs text-fg hover:bg-surface-hover`,children:t},e)),(0,$.jsx)(`button`,{type:`button`,onClick:i.onSkipSupport,className:`px-3 py-2 text-xs text-fg-muted hover:text-fg`,children:a===`zh`?`先聊正事`:`Start chatting`})]}),i.supportChoiceError&&(0,$.jsx)(`p`,{role:`alert`,className:`mt-3 text-xs text-danger`,children:i.supportChoiceError})]})]}):W?(0,$.jsx)(Ove,{agentName:yt.name?.trim()||H.displayAgentId,messages:o.agentsSettings,disabled:I.sessionRoutePending||I.showSessionLoading,onPick:e=>{h.current+=1,v({id:h.current,text:e})}}):U?(0,$.jsx)(upe,{sk:o.skills,disabled:I.sessionRoutePending||I.showSessionLoading,onPick:e=>{h.current+=1,v({id:h.current,text:ce(`find-skills`,e)})}}):void 0,compactWelcome:e,onDeleteRound:N?void 0:z.deleteMessageRound,onRetryUserMessageRound:N?void 0:z.retryUserMessageRound,deleteRoundDisabled:z.streaming||z.sending,onEditUserMessage:N?void 0:wt,editLatestUserOnly:!0,editRequiresTurnId:!0,onSaveAssistantAsNote:J,onSaveAssistantToSourceNote:nt?Ot:void 0,onExtractAssistantTask:nt?Mt:void 0,onForkAssistantTurn:!N&&de?.sessionType===`chat`?fe:void 0,trailingContent:Se?.driver===`extension`?(0,$.jsx)(ype,{enabled:Ce}):Ce&&Se?(0,$.jsx)(Ave,{payload:Se}):be?(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-2xl rounded-2xl border border-edge-subtle bg-surface-panel px-4 py-3 text-sm`,children:[(0,$.jsx)(`p`,{className:`text-fg-muted`,children:a===`zh`?`这个回答合适吗?点选后可以在输入框修改,再发给我。`:`Did that response work for you? Pick an adjustment, edit it, then send.`}),(0,$.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:[[[a===`zh`?`再短一点`:`Make it shorter`,a===`zh`?`这次回答再短一点。`:`Please make this answer shorter.`],[a===`zh`?`更温和一点`:`A little gentler`,a===`zh`?`这次回答的语气更温和一点。`:`Please make this answer a little gentler.`]].map(([e,t])=>(0,$.jsx)(`button`,{type:`button`,onClick:()=>xe(t),className:`rounded-full border border-edge px-3 py-1.5 text-xs text-fg transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:e},e)),(0,$.jsx)(`button`,{type:`button`,onClick:()=>xe(),className:`rounded-full px-3 py-1.5 text-xs text-fg-muted transition-colors hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:a===`zh`?`这样就好`:`Looks good`})]})]}):null})]})})})}),(0,$.jsx)(`div`,{className:`sticky bottom-0 z-10 shrink-0 bg-surface-panel`,children:(0,$.jsx)(`div`,{className:e&&!r?`px-3`:`px-3 sm:px-5 xl:px-6`,children:(0,$.jsxs)(`div`,{"data-chat-composer-frame":!0,className:q(`relative mx-auto w-full min-w-0`,(!e||r)&&`xl:max-w-[var(--max-width-chat-frame)]`,$e?`py-2.5`:`py-2 sm:py-4`),children:[(0,$.jsx)(PQ,{visible:!I.showSessionLoading&&!Te,onClick:()=>De(!0),running:z.streaming||z.sending}),(0,$.jsx)(`div`,{className:`absolute bottom-full right-0 z-20 mb-2 flex items-center rounded-full border border-edge-subtle bg-surface-panel/95 p-1 shadow-elevated backdrop-blur-sm empty:hidden xl:hidden`,children:e?null:(0,$.jsx)(E_e,{items:R.items,activeMessageIndex:je+Fe,labels:Dt,openLabel:o.chat.timelineOpen,closeLabel:o.chat.timelineClose,currentLabel:o.chat.timelineCurrent,onSelectMessage:Be})}),(0,$.jsx)(lM,{prompt:V.clarifyPrompt,submitting:V.clarifySubmitting,submitError:V.clarifySubmitError,labels:o.chat,onSubmit:V.submitClarifyAnswer,onAgentDecide:V.letAgentDecideClarification,onCancel:V.cancelClarification}),et?(0,$.jsx)(tge,{plan:et.plan,changeSummary:et.changeSummary,isStreaming:z.streaming,labels:{heading:o.chat.planHeading,stepProgress:o.chat.planStepProgress,completedProgress:o.chat.planCompletedProgress,finished:o.chat.planFinished,ended:o.chat.planEnded,planned:o.chat.planPlanned,filesChangedOne:o.chat.planFilesChanged_one,filesChangedOther:o.chat.planFilesChanged_other}}):null,U&&L.items.length>0?(0,$.jsx)(`div`,{className:`mb-2 text-right`,children:(0,$.jsx)(y,{to:`/capabilities/skills`,className:`text-xs text-accent-fg hover:underline`,children:o.skills.findBack})}):null,(0,$.jsx)(Ple,{}),(0,$.jsx)(nhe,{personal:r,onPersonalSendDispatched:r?ke:void 0,placeholder:r?z.streaming||z.sending?a===`zh`?`继续聊,或补充要求…`:`Keep talking or add a detail…`:a===`zh`?`发消息给「${i?.name||`Personal AI`}」…`:`Message ${i?.name||`Personal AI`}…`:W?o.agentsSettings.setupComposerPlaceholder:U?o.skills.findPlaceholder:void 0,composerContext:!W&&!e&&!N&&!j&&!Qe&&L.items.length===0?{project:it,disabled:pt||Ct.busy||Ze&&!I.projectPreparation,environmentPicker:I.projectPreparation?(0,$.jsx)(she,{selection:Ct}):void 0,workspacePath:I.effectiveWorkspacePath,canChangeWorkspace:We,onProjectChange:Ft,onWorkspaceChange:Y}:void 0,contextRefs:at,pageContextPreview:dt&&ut?(0,$.jsx)(rhe,{draft:dt,disabled:z.sending,waiting:z.streaming,onRemove:()=>D7.remove(ut,dt)}):void 0,setContextRefs:ot,onDraftAttachmentsChange:ct,disabled:Xe||Ct.busy||pt,sendDisabled:!I.modelConfigReady||!I.projectPreparation&&Ze||!!(I.projectPreparation&&!Ct.allowed)||I.modelConfigSaving||Ct.busy||pt,sending:z.sending,streaming:z.streaming,conversationId:I.conversationId,prepareContextSession:I.projectPreparation?Ct.prepareSession:void 0,welcomeDraftSeed:_,welcomeSuggestion:!U&&$e?xt:null,onAcceptWelcomeSuggestion:Ue,thinkingLevel:I.thinkingLevel,modelSupportsThinking:I.modelSupportsThinking,onThinkingChange:I.onSessionThinkingLevelChange,onSend:Ct.send,editingUserTurnId:j?.turnId,onCancelUserMessageEdit:Tt,onAbort:z.abort,onAddPendingFollowUp:async(e,t,n)=>{await B.addPendingFollowUp(e,t,n,dt?.envelope),ut&&dt&&D7.remove(ut,dt)},onSteeringInterrupt:dt?void 0:(e,t,n)=>void z.interruptAndSend(e,t,void 0,n),pendingFollowUps:B.pendingFollowUps,editingFollowUpId:B.editingFollowUpId,onBeginEditFollowUp:B.beginEditFollowUp,onCancelEditFollowUp:B.cancelEditFollowUp,onCommitEditFollowUp:(e,t,n,r,i)=>void B.commitEditFollowUp(e,t,n,r,i),onPendingFollowUpRemove:B.removePendingFollowUp,onPendingFollowUpMove:B.movePendingFollowUp,onPendingFollowUpReorder:B.reorderPendingFollowUp,onPendingFollowUpSteer:e=>void B.steerPendingFollowUp(e),steeringFollowUpId:B.steeringFollowUpId,sessionModel:I.sessionModel,showModelSelector:!r,onModelChange:I.onSessionModelChange,modelDisabled:Ze&&!I.projectPreparation||Ct.busy||z.streaming||z.sending||I.modelConfigSaving,onChatAgentChange:!r&&!W&&!N&&H.showChatAgentSelector?H.onChatAgentChange:void 0,currentAgentId:H.displayAgentId,voiceAgentName:r&&i?i.name:yt.name,voiceTaskId:N??void 0,voiceMode:r?`assistant`:void 0,prepareVoiceSession:I.projectPreparation?()=>I.projectPreparation.create(Ct.mode):void 0})]})})})]})]}),!e&&ie&&window.electronAPI?.terminal?(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(Bve,{conversationId:ie},ie)}):null,(0,$.jsx)(sn,{open:T!==null,onOpenChange:e=>{!e&&!D&&Et()},children:(0,$.jsxs)(rn,{children:[(0,$.jsx)($t,{className:`xopc-dialog-overlay fixed inset-0 z-[80] bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(an,{className:`xopc-dialog-content 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-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`shrink-0 border-b border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(on,{className:`text-base font-semibold text-fg`,children:o.chat.sourceNoteSaveDialogTitle}),(0,$.jsx)(tn,{className:`mt-1 text-sm text-fg-muted`,children:o.chat.sourceNoteSaveDialogDescription.replace(`{{title}}`,gt)})]}),(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-5 py-4`,children:[k?(0,$.jsxs)(`p`,{className:`rounded-lg border border-danger/25 bg-danger-soft px-3 py-2 text-sm text-danger`,role:`alert`,children:[o.chat.sourceNoteSaveFailed,`: `,k]}):null,(0,$.jsxs)(`label`,{className:`flex flex-col gap-1.5 text-sm font-medium text-fg`,children:[(0,$.jsx)(`span`,{children:o.chat.sourceNoteSaveDialogHeadingLabel}),(0,$.jsx)(`input`,{value:T?.heading??``,onChange:e=>E(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:D})]}),(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:o.chat.sourceNoteSaveDialogContentLabel}),(0,$.jsx)(`textarea`,{value:T?.content??``,onChange:e=>E(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:D})]})]}),(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-5 py-4`,children:[(0,$.jsx)(X,{type:`button`,variant:`secondary`,onClick:Et,disabled:D,children:o.chat.sourceNoteSaveDialogCancel}),(0,$.jsx)(X,{type:`button`,variant:`primary`,onClick:()=>void jt(),disabled:D||!T?.content.trim(),children:D?o.chat.sourceNoteSaveDialogSaving:o.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:o.chat.needToken})}function Vve(){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 Hve=`:conversationId?`;function Uve(){let e=(0,Q.c)(5),{taskId:t}=p(),n=t===void 0?``:t,{data:r,error:i,isLoading:a,conversationLoading:o,conversationError:s}=rM(n),c=r?.conversation.activeConversationId??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)(ta,{className:`h-10 w-64`}),(0,$.jsx)(ta,{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)(L9,{conversationId:c,taskId:n}),e[2]=c,e[3]=n,e[4]=l):l=e[4],l}function R9(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 Wve(e,t,n){return typeof t!=`number`||typeof n!=`number`?``:e.progressSuffix.replace(/\{\{completed\}\}/g,String(t)).replace(/\{\{total\}\}/g,String(n))}function z9(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 Gve(e,t,n,r,i){let a=NM(t,e,i);return{action:R9(e.tipTool,{action:a,detail:r?R9(e.targetSuffix,{detail:r}):``}),animation:z9(n),priority:`normal`}}function Kve(e,t,n,r){return{action:R9(t===`running`?e.tipValidate:e.tipProgress,{progress:Wve(e,n,r)}),animation:z9(t),priority:`normal`}}function B9(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function V9(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim())return t.trim()}}function qve(e){if(!e||e.includes(`
|
|
106
|
+
`)||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 Jve(e){if(e)try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`?t.host:void 0}catch{return}}function Yve(e,t){let n=t??Ur(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 Xve(e,t,n){let r=B9(t),i=n??Ur(e??``,`running`),a={phase:Yve(e,i)};return a.phase===`reading`||a.phase===`editing`?a.detail=qve(V9(r,`path`,`filePath`,`file`)):a.phase===`browsing`&&(a.detail=Jve(V9(r,`url`,`href`))),(i.category===`command`||i.action===`search`)&&delete a.detail,a}function Zve(e){let t=B9(e),n=V9(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 H9(e){return e&&typeof e==`object`?e:{}}function U9(e){return typeof e==`string`&&e.trim()?e.trim():void 0}function W9(e){let t=U9(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 Qve=new Set([`working`,`waiting`,`success`,`error`]),$ve=new Set([`making_progress`,`waiting_safely`,`completed`,`work_preserved`,`details_available`]),G9=new Set([`open_session`,`confirm`,`review_error`]);function eye(e){let t=H9(e);if(t.version!==2||!Qve.has(String(t.taskState))||t.sensitivity!==`public`&&t.sensitivity!==`private`)return;let n=H9(t.nextAction),r=G9.has(String(n.type))&&G9.has(String(n.label))?{type:String(n.type),label:String(n.label)}:void 0,i=H9(t.progress),a=typeof i.completed==`number`&&typeof i.total==`number`&&i.total>0?{completed:i.completed,total:i.total}:void 0,o=$ve.has(String(t.reassurance))?t.reassurance:void 0,s=t.sensitivity===`public`?W9(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 tye(e,t,n,r){if(!e.conversationId)return null;let i=H9(e.event),a=H9(i.payload),o=U9(i.type);if(!o)return null;let s=U9(i.runId)??`active`,c={conversationId:e.conversationId,runId:s,sessionLabel:n,sequence:t,timestamp:Date.now()},l=eye(a.petFeedback??i.petFeedback),u=l?l.publicSummary:W9(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=U9(i.toolName)??U9(a.toolName)??`tool`,t=H9(a.activity),n=typeof t.category==`string`&&typeof t.action==`string`?t:void 0,o=Xve(e,a.args,n),s=o.phase??`running`,l=Gve(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`}:Zve(a),t=e.phase??`preparing`,n=Kve(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=U9(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 nye(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 rye(){let e=(0,Q.c)(10),t=Pt(sye),n;e[0]===t?n=e[1]:(n=kt(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(!sa()||!e)return;let t=t=>{p.current.set(t.conversationId,t),e.sendEvent(t).catch(oye)},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),Mt(Y(`/api/sessions/${encodeURIComponent(e)}?offset=0&limit=1`)).then(aye).then(t=>{t&&s.current.set(e,t)}).catch(iye).finally(()=>l.current.delete(e))),t??r.fallbackSessionLabel},o=e=>{let o=e.detail;if(!o.conversationId)return;let s=i(o.conversationId),c=(a.current.get(o.conversationId??``)??0)+1,l=tye(o,c,s,nye(r));if(!l)return;a.current.set(l.conversationId,c);let u=d.current.get(l.conversationId)??p.current.get(l.conversationId),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.conversationId),t(l);return}d.current.set(l.conversationId,l),m.current===null&&(m.current=window.setTimeout(n,500))};return window.addEventListener(Jr,o),()=>{window.removeEventListener(Jr,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 iye(){}async function aye(e){return e.ok?(await e.json()).session?.name?.trim():void 0}function oye(){}function sye(e){return e.language}async function cye(e){let t=await Mt(e);if(!t.ok){let e=await t.json().catch(()=>({})),n=zt(t.status,t.statusText,e.error?.message);throw Error(n)}return t.json()}function lye(e){let t=(0,Q.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={fetcher:cye,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)(See,{value:r,children:n}),t[1]=n,t[2]=i),i}var uye=(0,Z.lazy)(()=>DL().then(e=>({default:e.SessionsPage}))),dye=(0,Z.lazy)(()=>OL().then(e=>({default:e.UsageSettingsPage}))),fye=(0,Z.lazy)(()=>kL().then(e=>({default:e.AutomationsPage}))),pye=(0,Z.lazy)(()=>jL().then(e=>({default:e.BrowserAutomationsPage}))),mye=(0,Z.lazy)(()=>AL().then(e=>({default:e.ScenesPage}))),hye=(0,Z.lazy)(()=>ML().then(e=>({default:e.HomePage}))),gye=(0,Z.lazy)(()=>NL().then(e=>({default:e.TaskDetailPage}))),_ye=(0,Z.lazy)(()=>PL().then(e=>({default:e.ProjectsPage}))),K9=(0,Z.lazy)(()=>FL().then(e=>({default:e.ProjectDetailPage}))),q9=(0,Z.lazy)(()=>IL().then(e=>({default:e.NotesPage}))),vye=(0,Z.lazy)(()=>LL().then(e=>({default:e.WorkflowsPage}))),yye=(0,Z.lazy)(()=>LL().then(e=>({default:e.WorkflowDetailPage}))),J9=(0,Z.lazy)(()=>LL().then(e=>({default:e.WorkflowEditorPage}))),bye=(0,Z.lazy)(()=>LL().then(e=>({default:e.WorkflowRunPage}))),xye=(0,Z.lazy)(()=>s(()=>import(`./imports-page-BKy0ImXk.js`).then(e=>({default:e.ImportsPage})),__vite__mapDeps([180,1,2,3,4,5,6,7,25,10,13,53,87,15,16,17,18,20,142,28,61,14,43]))),Sye=(0,Z.lazy)(()=>s(()=>import(`./capabilities-page-BBi4ef3u.js`).then(e=>({default:e.CapabilitiesPage})),__vite__mapDeps([79,1,7,4,6,16,17,28,18,80,53,10,48,3,5,23,24,20]))),Cye=(0,Z.lazy)(()=>zL().then(e=>({default:e.UserModelPage}))),wye=(0,Z.lazy)(()=>s(()=>import(`./connector-service-page-Qc1mVfp9.js`).then(e=>e.n).then(e=>({default:e.ConnectorServicePage})),__vite__mapDeps([181,1,2,3,4,5,6,7,8,149,10,11,26,77,31,18,27,36,35,150,15,16,17,20,28]))),Tye=(0,Z.lazy)(()=>BL().then(e=>({default:e.LogsPage}))),Eye=(0,Z.lazy)(()=>VL().then(e=>({default:e.SettingsPage}))),Dye=(0,Z.lazy)(()=>aR().then(e=>({default:e.CapabilitiesSettingsPanel}))),Oye=(0,Z.lazy)(()=>HL().then(e=>({default:e.AgentBrowserSettingsPage}))),kye=(0,Z.lazy)(()=>UL().then(e=>({default:e.ComputerSettingsPage}))),Y9=(0,Z.lazy)(()=>WL().then(e=>({default:e.ExtensionPage}))),X9=(0,Z.lazy)(()=>GL().then(e=>({default:e.ExtensionSettingsPage}))),Aye=(0,Z.lazy)(()=>KL().then(e=>({default:e.ExtensionDebugPage}))),jye=(0,Z.lazy)(()=>qL().then(e=>({default:e.SharePreviewPage}))),Mye=(0,Z.lazy)(()=>s(()=>import(`./desktop-pet-GKEfqHDF.js`).then(e=>({default:e.DesktopPetPage})),__vite__mapDeps([182,1,4,15,10,16,17,164,18]))),Nye=(0,Z.lazy)(()=>JL().then(e=>({default:e.LocalAppsPage}))),Pye=(0,Z.lazy)(()=>YL().then(e=>({default:e.LocalAppWorkbenchPage}))),Fye=(0,Z.lazy)(()=>XL().then(e=>({default:e.ProductOpenPage}))),Iye=(0,Z.lazy)(()=>ZL().then(e=>({default:e.WorkDiscoveryPage}))),Lye=(0,Z.lazy)(()=>s(()=>import(`./personal-page-Cfl1FR3i.js`).then(e=>({default:e.PersonalPage})),__vite__mapDeps([183,1,68,2,3,4,5,6,7,10,13,52,15,16,17,18,39,40,41,42,27,69,25,47,48,23,24,28,43,74,87,89,64,65,90,54,55,91,92,59,93,94,32,8,152])));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)(ta,{className:`h-5 w-44`}),(0,$.jsx)(ta,{className:`h-3 w-64 max-w-full`})]}),(0,$.jsx)(ta,{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(zye)}),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(Rye)})]})}),e[2]=r):r=e[2],r}function Rye(e,t){return(0,$.jsx)(ta,{className:`h-36 rounded-lg`},t)}function zye(e,t){return(0,$.jsx)(ta,{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)(ta,{className:`h-8 w-48 max-w-full`}),n=(0,$.jsx)(ta,{className:`mt-6 h-36 rounded-xl`}),r=(0,$.jsx)(ta,{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)(ta,{className:`h-20 rounded-xl`}),(0,$.jsx)(ta,{className:`h-20 rounded-xl`})]})]})}),e[3]=i):i=e[3],i}var Bye=v([{path:`/desktop-pet`,errorElement:(0,$.jsx)(M5,{}),element:(0,$.jsx)(Z.Suspense,{fallback:null,children:(0,$.jsx)(Mye,{})})},{path:`/share/:token`,errorElement:(0,$.jsx)(M5,{}),element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(jye,{})})},{path:`/`,element:(0,$.jsx)(Sfe,{}),errorElement:(0,$.jsx)(M5,{}),children:[{path:`personal`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Lye,{})})},{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(hye,{})})},{path:`open`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Fye,{})})},{path:`onboarding/workspace`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Iye,{})})},{path:`chat`,element:(0,$.jsx)(Vve,{}),children:[{path:`task/:taskId`,element:(0,$.jsx)(Uve,{})},{path:Hve,element:(0,$.jsx)(L9,{})}]},...[`scenes`,`scenes/inbox`,`scenes/new/:templateKey`,`scenes/:activationId`].map(e=>({path:e,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(mye,{})})})),{path:`automations`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(fye,{})})},{path:`browser-automations`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(pye,{})})},{path:`user-model`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Cye,{})})},{path:`tasks/:taskId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(gye,{})})},{path:`projects`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(_ye,{})})},{path:`:projectId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(K9,{})})},{path:`:projectId/:tabId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(K9,{})})},{path:`:projectId/notes/:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(K9,{})})}]},{path:`notes`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(q9,{})})},{path:`:noteId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(q9,{})})}]},{path:`workflows`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(vye,{})})},{path:`new`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(J9,{})})},{path:`runs/:runId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(bye,{})})},{path:`:definitionId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(yye,{})})},{path:`:definitionId/edit`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(J9,{})})}]},{path:`capabilities/:section?/:detailId?`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Sye,{})})},{path:`settings/connector-service`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(wye,{})})},{path:`local-apps`,children:[{index:!0,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Nye,{})})},{path:`:appId`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Pye,{})})}]},{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)(spe,{children:(0,$.jsx)(tpe,{})}),children:[{index:!0,element:(0,$.jsx)(_,{to:`overview`,replace:!0})},{path:`imports`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(xye,{})})},{path:`sessions`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(uye,{})})},{path:`usage`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(dye,{})})},{path:`logs`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Z9,{}),children:(0,$.jsx)(Tye,{})})},{path:`computer-use`,element:ca()?(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(kye,{})}):(0,$.jsx)(_,{to:`/settings/agent-browser`,replace:!0})},{path:`agent-browser`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Oye,{})})},{path:`capabilities/:capability`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Dye,{})})},{path:`extensions/debug`,element:(0,$.jsx)(Z.Suspense,{fallback:(0,$.jsx)(Q9,{}),children:(0,$.jsx)(Aye,{})})},{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)(Eye,{})})}]}]}]);function Vye(){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)(Hye,t),null}function Hye(){let e=Bi.persist.onFinishHydration(Wye),t=aF.persist.onFinishHydration(Uye),n=Rt(),r=Vi();return()=>{e?.(),t?.(),n(),r()}}function Uye(){oF()}function Wye(){Hi()}function Gye(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(Vye,{}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(lye,{children:(0,$.jsx)(yee,{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)(rye,{}),(0,$.jsx)(Gee,{router:Bye})]})]})})}),e[1]=n):n=e[1],n}function $9(e){return e instanceof DOMException&&e.name===`AbortError`}function Kye(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 qye(e){let t=!1,n=n=>{if(t||!n.message&&n.error==null)return;let r=Kye(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 Jye(){let e=(0,ZA.createRoot)(document.getElementById(`root`)),t=!1,n=(n,r)=>{t||(t=!0,console.error(`Renderer fatal error (${r})`,n),e.render((0,$.jsx)(j5,{error:n,source:r})))};qye(n);try{jt(Nt()),Ui(),iF(),await Lt(),e.render((0,$.jsx)(Z.StrictMode,{children:(0,$.jsx)(Lfe,{children:(0,$.jsx)(Gye,{})})}))}catch(e){n(e,`bootstrap`)}}Jye();export{r5 as $,ej as $a,CF as $i,qJ as $n,tb as $o,FV as $r,Xh as $s,r6 as $t,V_e as A,fN as Aa,Hc as Ac,uR as Ai,Z2 as An,IC as Ao,Iq as Ar,rv as As,v8 as At,fpe as B,mN as Ba,lR as Bi,bZ as Bn,Cx as Bo,VU as Br,G_ as Bs,o8 as Bt,K_e as C,aN as Ca,zl as Cc,UR as Ci,Sse as Cn,sE as Co,hJ as Cr,dv as Cs,M8 as Ct,U_e as D,eN as Da,Cl as Dc,oz as Di,e4 as Dn,Sw as Do,dJ as Dr,sv as Ds,S8 as Dt,q_e as E,UM as Ea,kl as Ec,nz as Ei,o3 as En,Ew as Eo,pJ as Er,cv as Es,x8 as Et,O7 as F,KM as Fa,Jo as Fc,oR as Fi,EZ as Fn,eC as Fo,ZU as Fr,Z_ as Fs,$le as Ft,S5 as G,rN as Ga,hL as Gi,CZ as Gn,ix as Go,AU as Gr,F_ as Gs,sle as Gt,dpe as H,vN as Ha,EL as Hi,vZ as Hn,bx as Ho,GU as Hr,B_ as Hs,t8 as Ht,D7 as I,ZM as Ia,Wo as Ic,tR as Ii,TZ as In,GS as Io,YU as Ir,X_ as Is,f8 as It,l5 as J,_N as Ja,dL as Ji,fX as Jn,Yb as Jo,ZH as Jr,zg as Js,P6 as Jt,f5 as K,dN as Ka,pL as Ki,hZ as Kn,nx as Ko,mU as Kr,M_ as Ks,R6 as Kt,ppe as L,sN as La,Io as Lc,cR as Li,yZ as Ln,lS as Lo,XU as Lr,J_ as Ls,rue as Lt,Phe as M,hN as Ma,ps as Mc,eR as Mi,Q2 as Mn,DC as Mo,mq as Mr,tv as Ms,g8 as Mt,P7 as N,YM as Na,ss as Nc,rR as Ni,$Q as Nn,EC as No,GK as Nr,ev as Ns,nue as Nt,H_e as O,gN as Oa,vl as Oc,$R as Oi,t4 as On,KC as Oo,qq as Or,ov as Os,b8 as Ot,Ahe as P,oN as Pa,rs as Pc,dR as Pi,DZ as Pn,xC as Po,DK as Pr,$_ as Ps,d8 as Pt,i5 as Q,Qj as Qa,SF as Qi,gY as Qn,ib as Qo,IV as Qr,tg as Qs,S6 as Qt,V5 as R,GM as Ra,vo as Rc,sR as Ri,mZ as Rn,iS as Ro,HU as Rr,q_ as Rs,c8 as Rt,eve as S,nN as Sa,fu as Sc,tz as Si,xse as Sn,dE as So,yJ as Sr,pv as Ss,_ue as St,z_e as T,cN as Ta,jl as Tc,ZR as Ti,c3 as Tn,gT as To,lJ as Tr,lv as Ts,D8 as Tt,N5 as U,QM as Ua,wL as Ui,xZ as Un,mx as Uo,zU as Ur,z_ as Us,W6 as Ut,U5 as V,VM as Va,nR as Vi,pZ as Vn,Sx as Vo,WU as Vr,W_ as Vs,n8 as Vt,D5 as W,iN as Wa,SL as Wi,SZ as Wn,fx as Wo,FU as Wr,R_ as Ws,ole as Wt,s5 as X,rM as Xa,TF as Xi,BY as Xn,wb as Xo,GV as Xr,lg as Xs,O6 as Xt,c5 as Y,tN as Ya,pI as Yi,RY as Yn,Lb as Yo,BH as Yr,fg as Ys,Oce as Yt,o5 as Z,eM as Za,EF as Zi,OY as Zn,pb as Zo,WV as Zr,cg as Zs,T6 as Zt,R_e as _,IM as _a,xf as _c,WR as _i,x3 as _n,IE as _o,DJ as _r,vv as _s,I8 as _t,N9 as a,zP as aa,Jp as ac,dB as ai,Z3 as an,vk as ao,HJ as ar,Bv as as,W8 as at,Y_e as b,LM as ba,jd as bc,GR as bi,y3 as bn,CE as bo,OJ as br,hv as bs,gue as bt,uve as c,OP as ca,Rp as cc,Vz as ci,q3 as cn,$O as co,FJ as cr,Av as cs,Wue as ct,b9 as d,gP as da,Yf as dc,wz as di,F3 as dn,vO as do,jJ as dr,Tv as ds,Hue as dt,cF as ea,Ph as ec,AV as ei,i6 as en,PA as eo,JJ as er,zy as es,zue as et,J_e as f,PN as fa,Uf as fc,Sz as fi,P3 as fn,QD as fo,SJ as fr,wv as fs,que as ft,X_e as g,qM as ga,Af as gc,ez as gi,b3 as gn,_D as go,CJ as gr,bv as gs,V8 as gt,y9 as h,WM as ha,Nf as hc,rz as hi,Mse as hn,xD as ho,EJ as hr,xv as hs,Mue as ht,P9 as i,YP as ia,cm as ic,sV as ii,Q3 as in,Sk as io,MJ as ir,Vv as is,Kue as it,N7 as j,pN as ja,xc as jc,iR as ji,n4 as jn,kC as jo,vq as jr,nv as js,_8 as jt,Q_e as k,$M as ka,cl as kc,JR as ki,$2 as kn,VC as ko,Wq as kr,iv as ks,y8 as kt,T9 as l,TP as la,Lp as lc,Mz as li,H3 as ln,GO as lo,UJ as lr,kv as ls,Rue as lt,G_e as m,kN as ma,Pf as mc,qR as mi,S3 as mn,RD as mo,bJ as mr,Sv as ms,U8 as mt,L9 as n,ZP as na,Lm as nc,EV as ni,o6 as nn,tA as no,PJ as nr,_y as ns,Uue as nt,dve as o,BP as oa,Wp as oc,rB as oi,X3 as on,mk as oo,VJ as or,zv as os,Jue as ot,Z_e as p,ON as pa,Bf as pc,XR as pi,k3 as pn,zD as po,AJ as pr,Cv as ps,Bue as pt,d5 as q,XM as qa,vL as qi,pX as qn,Zb as qo,QH as qr,v_ as qs,rle as qt,zve as r,QP as ra,xm as rc,dV as ri,l6 as rn,Gk as ro,NJ as rr,dy as rs,Gue as rt,E9 as s,RP as sa,Vp as sc,tB as si,Y3 as sn,tk as so,KJ as sr,Lv as ss,H8 as st,z9 as t,XP as ta,kh as tc,DV as ti,n6 as tn,jA as to,RJ as tr,Iy as ts,Vue as tt,x9 as u,vP as ua,pp as uc,Rz as ui,U3 as un,DO as uo,zJ as ur,Ev as us,Lue as ut,L_e as v,FM as va,tf as vc,KR as vi,jse as vn,NE as vo,xJ as vr,_v as vs,P8 as vt,$_e as w,uN as wa,Fl as wc,QR as wi,f3 as wn,UT as wo,uJ as wr,uv as ws,due as wt,B_e as x,RM as xa,pu as xc,az as xi,Cse as xn,SE as xo,TJ as xr,mv as xs,vue as xt,W_e as y,BM as ya,Pd as yc,iz as yi,v3 as yn,kE as yo,wJ as yr,gv as ys,hue as yt,H5 as z,lN as za,go as zc,$L as zi,_Z as zn,Qx as zo,BU as zr,K_ as zs,s8 as zt};
|