@xopcai/xopc 0.0.476 → 0.0.477
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/dist/assets/{auth-CKIyOA1a.js → auth-B658Oa_i.js} +2 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/dingtalk/xopc.extension.json +10 -4
- package/dist/extensions/discord/xopc.extension.json +9 -3
- package/dist/extensions/slack/xopc.extension.json +10 -4
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/wecom/xopc.extension.json +10 -4
- package/dist/gateway/server/chunks.bin +739 -686
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/af-CYmDZ4fF-CZxsvT2y.js +1 -0
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Bicuh10_.js → agent-defaults-settings-panel-rc9N1-Xr.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-hRZYhcLp.js → agent-plugin-dialog-D8zi6y5l.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-C2DH8M4z.js → agents-D3Kx5DCA.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BrO0gY6b.js → app-management-settings-panel-CGIFJmRj.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-h82Or0g-.js → appearance-settings-CNy2QkvT.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-B9Ho8S53.js → apps-page-BWSZCO1g.js} +1 -1
- package/dist/gateway/static/root/assets/as-Hwl1DGzz-F6qyW8uH.js +1 -0
- package/dist/gateway/static/root/assets/{automation-run-list-CLjSIujK.js → automation-run-list-BzKslhcr.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-BS-RT312.js → automation-task-card-f5_tNbzB.js} +2 -2
- package/dist/gateway/static/root/assets/{automations-page-BL6ASYrU.js → automations-page-DT6lvXDX.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-BFk-AF43.js → automations-workspace-uq7eZeoX.js} +4 -4
- package/dist/gateway/static/root/assets/be-BgqsjH7X-BYVdQd18.js +1 -0
- package/dist/gateway/static/root/assets/bg-Dr9AqrKw-B5xv6TfF.js +1 -0
- package/dist/gateway/static/root/assets/{block-editor-Dtz8JtrO.js → block-editor-BIAtRF39.js} +1 -1
- package/dist/gateway/static/root/assets/bn-CSXZX5iN-BGS6_hxH.js +1 -0
- package/dist/gateway/static/root/assets/{browser-settings-page-CDUHHu0n.js → browser-settings-page-C2Jx09LX.js} +3 -3
- package/dist/gateway/static/root/assets/{button-ChmVQg9O.js → button-C5tRaJxt.js} +1 -1
- package/dist/gateway/static/root/assets/ca-IXHA7IHe-DrduLk3W.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-DgQ9OosE.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-ComYXaP1.js → capabilities-settings-panel-BjiHKpmd.js} +2 -2
- package/dist/gateway/static/root/assets/{capability-header-actions-BfLcB3Kh.js → capability-header-actions-Ck3ILShB.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-Aa2Iun4r.js → channels-C9AQ0m77.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-DA2S21y2.js → chat-chart-block-BNmGrz2N.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-CJiXMjMM.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BALrP7_l.js → chat-terminal-dock-Bndihzyb.js} +1 -1
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-BPb7KheU.js → chunk-KS7C4IRE-DbzE-1bp.js} +1 -1
- package/dist/gateway/static/root/assets/composer-attachment-handoff-LTJZHQTE.js +1 -0
- package/dist/gateway/static/root/assets/{composer-model-config-control-BFC8jNyK.js → composer-model-config-control-Bnx68cDQ.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CVWaJ3L8.js → computer-settings-page-MMiCgCEw.js} +1 -1
- package/dist/gateway/static/root/assets/{confirm-dialog-DkviAS5j.js → confirm-dialog-MHCmEEUZ.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-NZP4qb6S.js → connected-providers-grid-BPydj2zS.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-BNoFtMol.js → connection-usage-guide-CHGPjgHg.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-CzrdJ4JY.js → connector-service-page-CjH7WEIw.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-BUqNvStL.js → connectors-page-aIaFZHw3.js} +1 -1
- package/dist/gateway/static/root/assets/cop-B5tK6J-Z-Dw82IjCr.js +1 -0
- package/dist/gateway/static/root/assets/{copy-text-row-BnSoJ0FX.js → copy-text-row-gqdh0Bg1.js} +1 -1
- package/dist/gateway/static/root/assets/cs-5GDhZ_Ce-BI5q4aVA.js +1 -0
- package/dist/gateway/static/root/assets/cu-BSm1hoGS-BRCy0UAr.js +1 -0
- package/dist/gateway/static/root/assets/cy-C9DIxPZF-Cag4snSk.js +1 -0
- package/dist/gateway/static/root/assets/da-BsG0TGcE-BWliw5hZ.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DgTDENzF.js → date-picker-BWrSxZf1.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-Gw4oSOk9.js → date-time-picker-Zhl9Yyzk.js} +1 -1
- package/dist/gateway/static/root/assets/de-1901-qqf2iWLB-BlgpCKr2.js +1 -0
- package/dist/gateway/static/root/assets/de-1996-LtGglqob-BjfWxQKM.js +1 -0
- package/dist/gateway/static/root/assets/de-ch-1901-COn1CKDv-_Xg3_np3.js +1 -0
- package/dist/gateway/static/root/assets/{dependency-picker-BJDpQtKY.js → dependency-picker-clYjcOx9.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BbIPYbvc.js → desktop-pet-CGRfEFeD.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-Cqzplufb.js → desktop-pet-settings-CUVZPqVA.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-DXFZiWMi.js → device-pairing-wizard-C62Ooz-T.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-DVFEzTAJ.js → directory-picker-path-field-3z5dHj8K.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-GJ8-1PAx.js → dist-BSVQC3i_.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-CxGUk8J-.js → dist-CDSvxjOh.js} +1 -1
- package/dist/gateway/static/root/assets/dist-DSRLZhL9.js +1 -0
- package/dist/gateway/static/root/assets/dist-DaFr5KMw.js +1 -0
- package/dist/gateway/static/root/assets/{dist-CY7CS_D3.js → dist-DlirbHVs.js} +1 -1
- package/dist/gateway/static/root/assets/el-monoton-pORtlC9P-CuqNQIvE.js +1 -0
- package/dist/gateway/static/root/assets/el-polyton-CDXn9JCY-B5J5pGHR.js +1 -0
- package/dist/gateway/static/root/assets/en-gb-BGHhUzDC-COWGBqwJ.js +1 -0
- package/dist/gateway/static/root/assets/es-PSvYPNjB-CnHE1eri.js +1 -0
- package/dist/gateway/static/root/assets/es2015-CFqg57eW.js +41 -0
- package/dist/gateway/static/root/assets/et-CYUTaVWy-H7jVbiHv.js +1 -0
- package/dist/gateway/static/root/assets/eu-CRNA9JLT-D1jw9zt8.js +1 -0
- package/dist/gateway/static/root/assets/{extension-authoritative-grants-DAfeCx4B.js → extension-authoritative-grants-DIZxVVMM.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-gW4GEEcj.js → extension-debug-page-D_-TPLjn.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-DOPywUKI.js → extension-iframe-host-DQOKplxT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-TTAx3dPv.js → extension-message-router-Ccwjadyk.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Iq7vFC-g.js → extension-page-CmntX-Iw.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-BNnLkq95.js → extension-provider-niliLEmM.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-C0oLjaz6.js → extension-settings-page-Doi9Trxg.js} +1 -1
- package/dist/gateway/static/root/assets/fi-DNiE_U0X-mParSSSy.js +1 -0
- package/dist/gateway/static/root/assets/{floating-ui.dom-seOukHzT.js → floating-ui.dom-CiMnRY5O.js} +1 -1
- package/dist/gateway/static/root/assets/floating-ui.react-dom-Gx6CM22l.js +1 -0
- package/dist/gateway/static/root/assets/fr-BIgh4Hkw-Dc1KqFHa.js +1 -0
- package/dist/gateway/static/root/assets/fur-CoXvgQfx-tJv2icDr.js +1 -0
- package/dist/gateway/static/root/assets/ga-D54K6YtG-CDuqe3gr.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-realtime-CfceJ5WX.js → gateway-realtime-BoJ3r2zr.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-restart-Dsg95Dwt.js → gateway-restart-L0ri15AO.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-CMgry8RK.js → gateway-settings--jcl4PYh.js} +1 -1
- package/dist/gateway/static/root/assets/gl-Cx_3wrqA-D9_oxkqv.js +1 -0
- package/dist/gateway/static/root/assets/grc-gFF6GbE6-DANBReIg.js +1 -0
- package/dist/gateway/static/root/assets/gu-9bPoO3RA-COW9d1dt.js +1 -0
- package/dist/gateway/static/root/assets/hi-GilZHMjg-CiihDo6Q.js +1 -0
- package/dist/gateway/static/root/assets/{home-page-pT-lEQsu.js → home-page-DbLvAmzw.js} +4 -4
- package/dist/gateway/static/root/assets/hr-DowcKODH-D_vEJhf2.js +1 -0
- package/dist/gateway/static/root/assets/hsb-D_AuBPC_-kb5QeNH1.js +1 -0
- package/dist/gateway/static/root/assets/hu-DghCDVxq-Ct1fysVO.js +1 -0
- package/dist/gateway/static/root/assets/hy-UUaeTG5g-Cjfrs2ZM.js +1 -0
- package/dist/gateway/static/root/assets/ia-CvHYTdA2-B1i9kDPT.js +1 -0
- package/dist/gateway/static/root/assets/id-Dpxs7amD-C3Hzl2m4.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DDHOD0Nx.js → image-generation-api-D63Vak-S.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BxRXNvQx.js → imports-page-CWr0KA9K.js} +1 -1
- package/dist/gateway/static/root/assets/index-CEXEV_TY.css +1 -0
- package/dist/gateway/static/root/assets/{index-DdEh8KeB.js → index-DynjhZRv.js} +7 -7
- package/dist/gateway/static/root/assets/{install-connector-dialog-Rox2_5eU.js → install-connector-dialog-DyscHGNB.js} +1 -1
- package/dist/gateway/static/root/assets/is-CJ1vxS9j-DWEBuJpb.js +1 -0
- package/dist/gateway/static/root/assets/it-CpWMQzhA-HiFRunf5.js +1 -0
- package/dist/gateway/static/root/assets/ka-CCxCVfU6-BU45urC7.js +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-D7xlV7xT.js → keyboard-shortcuts-settings-BNxKXzTr.js} +1 -1
- package/dist/gateway/static/root/assets/kmr-dEjewOAw-DfPyPgkK.js +1 -0
- package/dist/gateway/static/root/assets/kn-Bjy8QS2v-BuXzi7S-.js +1 -0
- package/dist/gateway/static/root/assets/la-AGdXyFmb-Bwiuou7l.js +1 -0
- package/dist/gateway/static/root/assets/la-x-classic-DcM9aTVI-aO_2QO0y.js +1 -0
- package/dist/gateway/static/root/assets/la-x-liturgic-DZCmbwFj-BpDOy20C.js +1 -0
- package/dist/gateway/static/root/assets/{local-app-workbench-page-ReBczGac.js → local-app-workbench-page-BB-y__CE.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Ct07GT0V.js → local-apps-page-kllqJoU6.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CtEv5J4C.js → logs-page-DALkj_7O.js} +1 -1
- package/dist/gateway/static/root/assets/lt-CN8ITi7t-B3cgXplB.js +1 -0
- package/dist/gateway/static/root/assets/lv-C-JuXj31-CLjYDJHB.js +1 -0
- package/dist/gateway/static/root/assets/{management-settings-BjvQ4WiZ.js → management-settings-DVjgxWhD.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-C7kqotD-.js → markdown-view-BpBBv9Gr.js} +2 -2
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-DfbMmlmC.js → mcp-conversation-setup-page-Cr7uXvcG.js} +1 -1
- package/dist/gateway/static/root/assets/ml-BM2UBzMU-Ct0js8Am.js +1 -0
- package/dist/gateway/static/root/assets/mn-cyrl-CyRDZzA3-DN6sz9R4.js +1 -0
- package/dist/gateway/static/root/assets/mn-cyrl-x-lmc-DbCWj2Po-BJqn49ay.js +1 -0
- package/dist/gateway/static/root/assets/{model-selector-BP-t33vd.js → model-selector-RNPw-Mz4.js} +1 -1
- package/dist/gateway/static/root/assets/mr-BrkCTYf9-DGtESPcG.js +1 -0
- package/dist/gateway/static/root/assets/mul-ethi-D9YZ9OXl-D6ioGuYP.js +1 -0
- package/dist/gateway/static/root/assets/nb-DgKeJnSd-BfDSp4tN.js +1 -0
- package/dist/gateway/static/root/assets/{new-chat-navigation-BA1IB3hy.js → new-chat-navigation-DM_HUSZ1.js} +1 -1
- package/dist/gateway/static/root/assets/nl-BIDJBXRA-8_OIBsy0.js +1 -0
- package/dist/gateway/static/root/assets/nn-C4Gas4NI-BWT83oy8.js +1 -0
- package/dist/gateway/static/root/assets/no-CSP8-4c2-Cjg1mxae.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-DAhIT6xP.js → note-detail-panel-DQOIB0cU.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-BQyXXJCE.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-B3Kc4909.js → notes-api-ChV_6O5I.js} +1 -1
- package/dist/gateway/static/root/assets/notes-page-BBUD12wy.js +8 -0
- package/dist/gateway/static/root/assets/{oauth-provider-connect-3QGibJMl.js → oauth-provider-connect-BgWyUbhu.js} +1 -1
- package/dist/gateway/static/root/assets/oc-CyJ2Q9k9-W5_I63nO.js +1 -0
- package/dist/gateway/static/root/assets/or-DUhKxVse-Cf5-bcl5.js +1 -0
- package/dist/gateway/static/root/assets/pa-NDvVySYt-Bj-XExX_.js +1 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-Bd__UBi9.js → page-context-capture-button-CNyjLpFG.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-DHik8uj6.js → personal-page-dGPy_J7M.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-Cd2xUVbw.js → personal-profile-settings-BlsS-2z3.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-CHRra9hc.js → personal-settings-panel-D1W09VMR.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-CREmmRxI.js → phone-dependencies-card-CRABVjt1.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-BDzr9jXL.js → phone-model-connection-DtBRZXUN.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-DSQF-RxW.js → phone-model-picker-D3U9iAQo.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-gP5kr3VO.js → phone-settings-page-ClS7YSnU.js} +1 -1
- package/dist/gateway/static/root/assets/pi-znB0BT6g-o9084kBf.js +1 -0
- package/dist/gateway/static/root/assets/pl-CaFvP4tu-Bv_p-a9x.js +1 -0
- package/dist/gateway/static/root/assets/{plugin-details-dialog-43jCnG5n.js → plugin-details-dialog-DGW2QQJC.js} +1 -1
- package/dist/gateway/static/root/assets/pms-92V70vZ4-DfOt2RSi.js +1 -0
- package/dist/gateway/static/root/assets/{popover-select-CLsphyzA.js → popover-select-hRG1EzAY.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-VqtR_pOy.js → preference-select-fields-PZsYT8Db.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-runtime-MJUo7XlD.js → preview-runtime-D9y0frrZ.js} +2 -2
- package/dist/gateway/static/root/assets/{product-automation-feedback-D43XiQq6.js → product-automation-feedback-W6rFx449.js} +1 -1
- package/dist/gateway/static/root/assets/product-open-page-CcJ0dC84.js +1 -0
- package/dist/gateway/static/root/assets/{product-preview-content-CkQebfi-.js → product-preview-content-CsdXwIxP.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-modal-CIe5WW9E.js +2 -0
- package/dist/gateway/static/root/assets/{project-detail-page-BBF8eVJa.js → project-detail-page-b6pU7eLQ.js} +2 -2
- package/dist/gateway/static/root/assets/{project-understanding-BScfv1pD.js → project-understanding-ClhKlj0g.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-BCMWrLGf.js → projects-page-Bi9Ke76p.js} +1 -1
- package/dist/gateway/static/root/assets/pt-BKB_-X0N-CrkeeQaZ.js +1 -0
- package/dist/gateway/static/root/assets/{recording-upload-Yy9r6kHe.js → recording-upload-BjZ5SwXZ.js} +1 -1
- package/dist/gateway/static/root/assets/{refresh-button-D6ihZgH3.js → refresh-button-DX7bULU5.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BeG8Bgy0.js → remote-access-hub-aSIeyTxn.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-Dccp_uis.js → resource-unavailable-BZVJxGR8.js} +1 -1
- package/dist/gateway/static/root/assets/rm-C1letx81-CNhvXnnG.js +1 -0
- package/dist/gateway/static/root/assets/ro-BUzliR9z-Bov_DAVD.js +1 -0
- package/dist/gateway/static/root/assets/route-preload-D36bLXpD.js +2 -0
- package/dist/gateway/static/root/assets/routine-panel-lfYWKBuW.js +2 -0
- package/dist/gateway/static/root/assets/ru-B591x1qT-DLdM0nWP.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-C7sHr-Lm.js → runtime-tools-settings-panel-DxYZLgVT.js} +1 -1
- package/dist/gateway/static/root/assets/sa-JnsT9B1R-CvBCyoRG.js +1 -0
- package/dist/gateway/static/root/assets/{schema-form-DXHzZPMr.js → schema-form-DkuIsCBU.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-Bz9QWUZc.js → service-recommendation-list-BjuL2TaI.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-fvJusKsK.js → session-manager-1UFhZMpv.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-DS-OExY1.js → sessions-page-CeCaW2FJ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-advanced-section-BsqgVQL3.js → settings-advanced-section-YRzA9yeq.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-DKgbD0Bc.js → settings-page-header-C9xiCwzq.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-BE3vLWp_.js → settings-page-layout-DTOBegnh.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-B_8kxJQW.js → settings-page-ngcjiqfd.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-DLpGv0yp.js → setup-interaction-page-CnC-hC-A.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-BMaFUPnt.js → setup-status-panel-lAyDbUa1.js} +1 -1
- package/dist/gateway/static/root/assets/sh-cyrl-CLuomLGP-UY09gie6.js +1 -0
- package/dist/gateway/static/root/assets/sh-latn-DdZKFFaE-De-tA-2J.js +1 -0
- package/dist/gateway/static/root/assets/{share-link-dialog-3RNzFIH3.js → share-link-dialog-QvDZwWwI.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-7PohUauw.js +2 -0
- package/dist/gateway/static/root/assets/{shares-settings-C_ITdQqP.js → shares-settings-DpIh1naz.js} +1 -1
- package/dist/gateway/static/root/assets/sk-A3STIA2C-DC8Al4lF.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-B30SsJL6.js → skills-page-CRrTQOth.js} +1 -1
- package/dist/gateway/static/root/assets/sl-DjmW7S7C-B8FnrXi1.js +1 -0
- package/dist/gateway/static/root/assets/space-BPnfqDsQ.js +1 -0
- package/dist/gateway/static/root/assets/space-api-D4zPeS-a.js +1 -0
- package/dist/gateway/static/root/assets/space-page-DV-4mGaH.js +2 -0
- package/dist/gateway/static/root/assets/space-workbook-CtUQSd5l.js +291 -0
- package/dist/gateway/static/root/assets/space-workbook-CvOADsEJ.css +1 -0
- package/dist/gateway/static/root/assets/space-workbook-format-D1PqIvbd.js +1 -0
- package/dist/gateway/static/root/assets/space-workbook-import.worker-Bw2gfMG9.js +68 -0
- package/dist/gateway/static/root/assets/sr-cyrl-DzA2myNl-yGc0Jz1j.js +1 -0
- package/dist/gateway/static/root/assets/sv-B01JFt6B-DeQDoAsB.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-KXLPpyOW.js → system-settings-panel-jgzBYOji.js} +1 -1
- package/dist/gateway/static/root/assets/ta-biPP5NX3-B5_ztYXp.js +1 -0
- package/dist/gateway/static/root/assets/{task-detail-page-DHYm_bsg.js → task-detail-page-qTnkErT0.js} +3 -3
- package/dist/gateway/static/root/assets/{task-header-title-Buwr7WTV.js → task-header-title-CRfK-rhR.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-DpV1mZJA.js → task-result-evidence-C2gEC9Hr.js} +1 -1
- package/dist/gateway/static/root/assets/te-DdPqCRaf-BjTOzs5s.js +1 -0
- package/dist/gateway/static/root/assets/th-C4s1cxFT-CFfNau1h.js +1 -0
- package/dist/gateway/static/root/assets/{time-picker-C1PXAXZF.js → time-picker-otHjbob1.js} +1 -1
- package/dist/gateway/static/root/assets/tk-BfqDjfTh-UHPz-lif.js +1 -0
- package/dist/gateway/static/root/assets/tr-C2sIij-w-DvQDK0dA.js +1 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-CcyPoojp.js → tracing-settings-page-7DxhxIp3.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-D713CJ9R.js → tunnel-api-CZJEfJym.js} +1 -1
- package/dist/gateway/static/root/assets/uk-DBx0redY-DGVpthWV.js +1 -0
- package/dist/gateway/static/root/assets/{usage-page-DN1TcxWS.js → usage-page-CVJBXy2I.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-4FKbf6PB.js → use-composer-attachments-Cs9sRfEz.js} +1 -1
- package/dist/gateway/static/root/assets/use-file-preview-expanded-B7Kp4Y1f.js +1 -0
- package/dist/gateway/static/root/assets/use-generated-media-UvehLoUl.js +1 -0
- package/dist/gateway/static/root/assets/{use-personal-work-srLCZOam.js → use-personal-work-eUnPoS9h.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-tyo85cre.js → use-realtime-voice-CJD_ABL6.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-VwHdfiR8.js → use-workspace-tree-BYrp8lL7.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-D-F5GO3T.js → user-model-page-s8sYPQwS.js} +2 -2
- package/dist/gateway/static/root/assets/{voice-player-store-DyuAAbk0.js → voice-player-store-DwAnvFVJ.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-DOajN2ay.js → voice-settings-WIooh0DA.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CTLp1-tu.js → work-discovery-overlay-WGm3tfRV.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-B-UzFKIr.js → work-discovery-page-DLXUm21d.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-DvVtUxHW.js → working-directory-picker-modal-BwmhPsrY.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-CIfedJeG.js → workspace-api-DEPruUJB.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-iAz_WyiN.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-sbOva_RI.js → workspace-open-location-menu-CbQ5vUV7.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BYuMOGaK.js → xopc-cloud-account-card-ClAhPUT1.js} +1 -1
- package/dist/gateway/static/root/assets/zh-latn-pinyin-CIit9tZA-CW52gdb_.js +1 -0
- package/dist/gateway/static/root/dependency-records.json +1251 -205
- package/dist/gateway/static/root/index.html +65 -62
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/space.js +5 -2
- package/dist/packages/gateway-contract/src/user-message-display.js +6 -1
- package/dist/packages/realtime-protocol/src/index.js +4 -2
- package/dist/src/agent/inbound/attachment-pipeline.js +15 -6
- package/dist/src/agent/mcp/conversation-setup.js +9 -6
- package/dist/src/agent/skills/marketplace/search.d.ts +1 -0
- package/dist/src/agent/skills/marketplace/search.js +1 -0
- package/dist/src/agent/tools/capability-catalog-tool.js +1 -1
- package/dist/src/agent/tools/factory.js +3 -3
- package/dist/src/capabilities/capability-catalog.d.ts +4 -0
- package/dist/src/capabilities/capability-catalog.js +46 -15
- package/dist/src/channels/catalog/channel-catalog-service.js +2 -3
- package/dist/src/endpoint-tools/registry.d.ts +2 -1
- package/dist/src/endpoint-tools/registry.js +5 -3
- package/dist/src/endpoint-tools/runtime.d.ts +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/extensions/agent-plugins/mcp-adapter.js +15 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -1
- package/dist/src/gateway/hono/routes/mobile-capability-actions.d.ts +1 -1
- package/dist/src/gateway/hono/routes/mobile-capability-actions.js +20 -10
- package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +20 -0
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +1523 -0
- package/dist/src/gateway/hono/routes/space.js +18 -0
- package/dist/src/gateway/security/gateway-scopes.js +5 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/session/session-title.js +4 -5
- package/dist/src/space/budget-workbook.d.ts +47 -0
- package/dist/src/space/budget-workbook.js +210 -0
- package/dist/src/space/repository.d.ts +1 -1
- package/dist/src/space/repository.js +24 -5
- package/dist/src/tunnel/tunnel-service.d.ts +5 -0
- package/dist/src/tunnel/tunnel-service.js +131 -30
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-D9EpUcuB.js +0 -2
- package/dist/gateway/static/root/assets/chat-page-BbahuZ59.js +0 -72
- package/dist/gateway/static/root/assets/dist-BuHnPloF.js +0 -1
- package/dist/gateway/static/root/assets/dist-ZrL34Ps4.js +0 -1
- package/dist/gateway/static/root/assets/es2015-DBLcMg5B.js +0 -41
- package/dist/gateway/static/root/assets/index-BtHMU5k4.css +0 -1
- package/dist/gateway/static/root/assets/note-image-lightbox-DrVGs1eQ.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-zAJJ2OiQ.js +0 -8
- package/dist/gateway/static/root/assets/product-open-page-CQMoDCO1.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-modal-DToUA1EF.js +0 -2
- package/dist/gateway/static/root/assets/route-preload-Bl10PwKS.js +0 -2
- package/dist/gateway/static/root/assets/routine-panel-BjqenuXU.js +0 -2
- package/dist/gateway/static/root/assets/share-preview-page-C49EIXte.js +0 -2
- package/dist/gateway/static/root/assets/space-page-DmvjU1jc.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-CRBn6UTd.js +0 -1
- package/dist/gateway/static/root/assets/use-generated-media-CEJ5BBxX.js +0 -1
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-Xi5feqPq.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{n as i}from"./locale-store-B4o4aDCg.js";import{t as a}from"./messages-hlOsXkQ7.js";import{t as o}from"./cn-0WouolD0.js";import{n as s}from"./electron-env-DHOGevH3.js";import{c,d as l,h as u,l as d,m as f,p,t as m,u as h}from"./voice-input-shortcut-events-C-8Ts1gq.js";import{n as g}from"./side-chat-shortcut-BIw-1TTD.js";import{n as _,t as v}from"./settings-page-header-DKgbD0Bc.js";import"./settings-page-layout-BE3vLWp_.js";var y=n(),b=e(t(),1),x=r(),S=l(),C=S?`⌘`:`Ctrl`;function w(e){let t=(0,y.c)(53),{title:n,description:r,shortcut:s,otherShortcut:c,defaultShortcut:l,setShortcut:u,notice:d}=e,h=i(D),g;t[0]===h?g=t[1]:(g=a(h),t[0]=h,t[1]=g);let _=g.keyboardShortcutsSettings,[v,C]=(0,b.useState)(!1),[w,O]=(0,b.useState)(null),k,A;t[2]===v?(k=t[3],A=t[4]):(k=()=>{let e={active:v};return window.dispatchEvent(new CustomEvent(m,{detail:e})),E},A=[v],t[2]=v,t[3]=k,t[4]=A),(0,b.useEffect)(k,A);let j;t[5]!==_.quickCaptureShortcutConflict||t[6]!==c||t[7]!==v||t[8]!==u?(j=e=>{if(!v)return;if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){C(!1);return}let t=f(e.nativeEvent);if(!t)return;let n=S?`meta`:`control`;if(new Set([`${n}+k`,`${n}+n`,`${n}+b`,`${n}+,`]).has(t)||t===c){O(_.quickCaptureShortcutConflict);return}u(t),O(null),C(!1)},t[5]=_.quickCaptureShortcutConflict,t[6]=c,t[7]=v,t[8]=u,t[9]=j):j=t[9];let M=j,N;t[10]===n?N=t[11]:(N=(0,x.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n}),t[10]=n,t[11]=N);let P;t[12]===r?P=t[13]:(P=(0,x.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:r}),t[12]=r,t[13]=P);let F;t[14]!==N||t[15]!==P?(F=(0,x.jsxs)(`div`,{className:`min-w-0`,children:[N,P]}),t[14]=N,t[15]=P,t[16]=F):F=t[16];let I;t[17]===s?I=t[18]:(I=p(s).map(T),t[17]=s,t[18]=I);let L;t[19]===I?L=t[20]:(L=(0,x.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:I}),t[19]=I,t[20]=L);let R;t[21]!==F||t[22]!==L?(R=(0,x.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[F,L]}),t[21]=F,t[22]=L,t[23]=R):R=t[23];let z,B;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(z=o(`rounded-lg bg-accent px-3 py-1.5 text-sm font-medium text-on-accent transition-colors hover:bg-accent-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),B=()=>{O(null),C(!0)},t[24]=z,t[25]=B):(z=t[24],B=t[25]);let V;t[26]!==_.quickCaptureShortcutChange||t[27]!==M?(V=(0,x.jsx)(`button`,{type:`button`,className:z,onClick:B,onKeyDown:M,children:_.quickCaptureShortcutChange}),t[26]=_.quickCaptureShortcutChange,t[27]=M,t[28]=V):V=t[28];let H;t[29]!==l||t[30]!==u?(H=()=>{u(l()),O(null)},t[29]=l,t[30]=u,t[31]=H):H=t[31];let U;t[32]!==_.quickCaptureShortcutReset||t[33]!==H?(U=(0,x.jsx)(`button`,{type:`button`,className:`rounded-lg px-3 py-1.5 text-sm 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`,onClick:H,children:_.quickCaptureShortcutReset}),t[32]=_.quickCaptureShortcutReset,t[33]=H,t[34]=U):U=t[34];let W;t[35]!==_.quickCaptureShortcutRecording||t[36]!==M||t[37]!==v?(W=v?(0,x.jsx)(`button`,{type:`button`,className:`rounded-lg bg-accent-soft px-3 py-1.5 text-sm font-medium text-accent-fg outline-none focus-visible:ring-2 focus-visible:ring-accent`,onKeyDown:M,onClick:()=>C(!1),children:_.quickCaptureShortcutRecording}):null,t[35]=_.quickCaptureShortcutRecording,t[36]=M,t[37]=v,t[38]=W):W=t[38];let G;t[39]!==V||t[40]!==U||t[41]!==W?(G=(0,x.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[V,U,W]}),t[39]=V,t[40]=U,t[41]=W,t[42]=G):G=t[42];let K;t[43]===w?K=t[44]:(K=w?(0,x.jsx)(`p`,{className:`mt-2 text-sm text-danger-fg`,children:w}):null,t[43]=w,t[44]=K);let q;t[45]===d?q=t[46]:(q=d?(0,x.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-base/55 p-3`,children:d}):null,t[45]=d,t[46]=q);let J;return t[47]!==R||t[48]!==G||t[49]!==K||t[50]!==q||t[51]!==n?(J=(0,x.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 px-4 py-3.5 sm:px-5 sm:py-4`,"aria-label":n,children:[R,G,K,q]}),t[47]=R,t[48]=G,t[49]=K,t[50]=q,t[51]=n,t[52]=J):J=t[52],J}function T(e,t){return(0,x.jsx)(z,{children:e},`${e}-${String(t)}`)}function E(){window.dispatchEvent(new CustomEvent(m,{detail:{active:!1}}))}function D(e){return e.language}function O(){let e=(0,y.c)(8),t=i(M),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=u(j),s=u(A),c=d(k),l;return e[2]!==r.quickCaptureShortcutDescription||e[3]!==r.quickCaptureShortcutTitle||e[4]!==s||e[5]!==o||e[6]!==c?(l=(0,x.jsx)(w,{title:r.quickCaptureShortcutTitle,description:r.quickCaptureShortcutDescription,shortcut:o,otherShortcut:c,defaultShortcut:h,setShortcut:s}),e[2]=r.quickCaptureShortcutDescription,e[3]=r.quickCaptureShortcutTitle,e[4]=s,e[5]=o,e[6]=c,e[7]=l):l=e[7],l}function k(e){return e.shortcut}function A(e){return e.setShortcut}function j(e){return e.shortcut}function M(e){return e.language}function N(){let e=(0,y.c)(9),t=i(L),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=d(I),s=d(F),l=u(P),f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsx)(R,{}),e[2]=f):f=e[2];let p;return e[3]!==r.voiceInputShortcutDescription||e[4]!==r.voiceInputShortcutTitle||e[5]!==l||e[6]!==s||e[7]!==o?(p=(0,x.jsx)(w,{title:r.voiceInputShortcutTitle,description:r.voiceInputShortcutDescription,shortcut:o,otherShortcut:l,defaultShortcut:c,setShortcut:s,notice:f}),e[3]=r.voiceInputShortcutDescription,e[4]=r.voiceInputShortcutTitle,e[5]=l,e[6]=s,e[7]=o,e[8]=p):p=e[8],p}function P(e){return e.shortcut}function F(e){return e.setShortcut}function I(e){return e.shortcut}function L(e){return e.language}function R(){let e=a(i(e=>e.language)).keyboardShortcutsSettings,t=window.electronAPI?.system,n=s()&&window.electronAPI?.platform===`darwin`,[r,c]=(0,b.useState)(!1),[l,u]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!n||!t)return;let e=!0,r=()=>{t.getPermissions().then(t=>{e&&c(t.accessibility===`granted`)}).catch(()=>void 0)};return r(),window.addEventListener(`focus`,r),()=>{e=!1,window.removeEventListener(`focus`,r)}},[n,t]),!n||!t?null:(0,x.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,x.jsx)(`p`,{className:`max-w-[65ch] text-xs text-fg-muted`,children:r?e.voiceInputAccessibilityGranted:e.voiceInputAccessibilityDescription}),r?null:(0,x.jsx)(`button`,{type:`button`,disabled:l,className:o(`rounded-lg bg-surface-base/70 px-3 py-1.5 text-xs font-medium text-fg transition-colors hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:text-fg-disabled`),onClick:async()=>{u(!0);try{let e=await t.requestAccessibility();c(e.status===`granted`)}finally{u(!1)}},children:l?e.voiceInputAccessibilityRequesting:e.voiceInputAccessibilityEnable})]})}function z(e){let t=(0,y.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,x.jsx)(`kbd`,{className:`inline-flex min-w-[1.5rem] items-center justify-center rounded-md bg-surface-hover/70 px-1.5 py-0.5 font-mono text-xs font-medium text-fg-muted shadow-sm`,children:n}),t[0]=n,t[1]=r),r}function B(e){let t=(0,y.c)(14),{keys:n,label:r,note:i}=e,a;t[0]===r?a=t[1]:(a=(0,x.jsx)(`span`,{className:`text-sm text-fg`,children:r}),t[0]=r,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,x.jsxs)(`span`,{className:`ml-1.5 text-xs text-fg-muted`,children:[`(`,i,`)`]}),t[2]=i,t[3]=o);let s;t[4]!==a||t[5]!==o?(s=(0,x.jsxs)(`div`,{className:`min-w-0`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6];let c;t[7]===n?c=t[8]:(c=n.map(V),t[7]=n,t[8]=c);let l;t[9]===c?l=t[10]:(l=(0,x.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:c}),t[9]=c,t[10]=l);let u;return t[11]!==s||t[12]!==l?(u=(0,x.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2.5`,children:[s,l]}),t[11]=s,t[12]=l,t[13]=u):u=t[13],u}function V(e){return(0,x.jsx)(z,{children:e},e)}function H(e){let t=(0,y.c)(11),{title:n,shortcuts:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=o(`rounded-xl bg-surface-hover/20 px-4 sm:px-5`),t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,x.jsx)(`h2`,{className:`pb-1 pt-3.5 text-sm font-semibold text-fg sm:pt-4`,children:n}),t[1]=n,t[2]=a);let s;t[3]===r?s=t[4]:(s=r.map(U),t[3]=r,t[4]=s);let c;t[5]===s?c=t[6]:(c=(0,x.jsx)(`div`,{className:`grid gap-1 pb-3 sm:pb-4`,children:s}),t[5]=s,t[6]=c);let l;return t[7]!==a||t[8]!==c||t[9]!==n?(l=(0,x.jsxs)(`section`,{className:i,"aria-label":n,children:[a,c]}),t[7]=a,t[8]=c,t[9]=n,t[10]=l):l=t[10],l}function U(e){return(0,x.jsx)(B,{...e},e.label)}function W(){let e=(0,y.c)(144),t=i(J),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=u(q),c=d(K),l;if(e[2]!==r.categoryChat||e[3]!==r.categoryEditor||e[4]!==r.categoryGlobal||e[5]!==r.categoryNavigation||e[6]!==r.chatNewLine||e[7]!==r.chatSend||e[8]!==r.chatSteer||e[9]!==r.chatSteerFirst||e[10]!==r.chatToggleSideChat||e[11]!==r.chatVoiceInput||e[12]!==r.editorBulletList||e[13]!==r.editorHeading1||e[14]!==r.editorHeading2||e[15]!==r.editorHeading3||e[16]!==r.editorOrderedList||e[17]!==r.editorTaskList||e[18]!==r.globalNewChat||e[19]!==r.globalOpenSettings||e[20]!==r.globalToggleWindow||e[21]!==r.globalVoiceInput||e[22]!==r.globalVoiceInputMacNote||e[23]!==r.globalVoiceInputWindowsNote||e[24]!==r.navCloseDialog||e[25]!==r.navCommandPalette||e[26]!==r.navQuickCapture||e[27]!==r.navToggleFullscreen||e[28]!==r.navToggleSidebar||e[29]!==o||e[30]!==c){if(l=[],s()){let t=window.electronAPI?.platform===`darwin`?`Fn`:`Alt`,n=window.electronAPI?.platform===`darwin`?r.globalVoiceInputMacNote:r.globalVoiceInputWindowsNote,i;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(i=[C,`Shift`,`Space`],e[32]=i):i=e[32];let a;e[33]===r.globalToggleWindow?a=e[34]:(a={keys:i,label:r.globalToggleWindow},e[33]=r.globalToggleWindow,e[34]=a);let o;e[35]===Symbol.for(`react.memo_cache_sentinel`)?(o=[t],e[35]=o):o=e[35];let s;e[36]!==r.globalVoiceInput||e[37]!==n?(s={keys:o,label:r.globalVoiceInput,note:n},e[36]=r.globalVoiceInput,e[37]=n,e[38]=s):s=e[38];let c;e[39]!==a||e[40]!==s?(c=[a,s],e[39]=a,e[40]=s,e[41]=c):c=e[41];let u;e[42]!==r.categoryGlobal||e[43]!==c?(u={title:r.categoryGlobal,shortcuts:c},e[42]=r.categoryGlobal,e[43]=c,e[44]=u):u=e[44],l.push(u)}let t=r.categoryNavigation,n;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(n=[C,`N`],e[45]=n):n=e[45];let i;e[46]===r.globalNewChat?i=e[47]:(i={keys:n,label:r.globalNewChat},e[46]=r.globalNewChat,e[47]=i);let a;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(a=[C,`K`],e[48]=a):a=e[48];let u;e[49]===r.navCommandPalette?u=e[50]:(u={keys:a,label:r.navCommandPalette},e[49]=r.navCommandPalette,e[50]=u);let d;e[51]===o?d=e[52]:(d=p(o),e[51]=o,e[52]=d);let f;e[53]!==r.navQuickCapture||e[54]!==d?(f={keys:d,label:r.navQuickCapture},e[53]=r.navQuickCapture,e[54]=d,e[55]=f):f=e[55];let m;e[56]===r.navToggleSidebar?m=e[57]:(m=s()?[{keys:[C,`B`],label:r.navToggleSidebar}]:[],e[56]=r.navToggleSidebar,e[57]=m);let h;e[58]===r.navToggleFullscreen?h=e[59]:(h=s()?[{keys:[`F11`],label:r.navToggleFullscreen}]:[],e[58]=r.navToggleFullscreen,e[59]=h);let _;e[60]===r.globalOpenSettings?_=e[61]:(_=s()?[{keys:[C,`,`],label:r.globalOpenSettings}]:[],e[60]=r.globalOpenSettings,e[61]=_);let v;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`Esc`],e[62]=v):v=e[62];let y;e[63]===r.navCloseDialog?y=e[64]:(y={keys:v,label:r.navCloseDialog},e[63]=r.navCloseDialog,e[64]=y);let b;e[65]!==_||e[66]!==y||e[67]!==i||e[68]!==u||e[69]!==f||e[70]!==m||e[71]!==h?(b=[i,u,f,...m,...h,..._,y],e[65]=_,e[66]=y,e[67]=i,e[68]=u,e[69]=f,e[70]=m,e[71]=h,e[72]=b):b=e[72];let x;e[73]!==r.categoryNavigation||e[74]!==b?(x={title:t,shortcuts:b},e[73]=r.categoryNavigation,e[74]=b,e[75]=x):x=e[75],l.push(x);let S=r.categoryChat,w;e[76]===Symbol.for(`react.memo_cache_sentinel`)?(w=[`Enter`],e[76]=w):w=e[76];let T;e[77]===r.chatSend?T=e[78]:(T={keys:w,label:r.chatSend},e[77]=r.chatSend,e[78]=T);let E;e[79]===Symbol.for(`react.memo_cache_sentinel`)?(E=[`Shift`,`Enter`],e[79]=E):E=e[79];let D;e[80]===r.chatNewLine?D=e[81]:(D={keys:E,label:r.chatNewLine},e[80]=r.chatNewLine,e[81]=D);let O;e[82]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Alt`,`Enter`],e[82]=O):O=e[82];let k;e[83]===r.chatSteer?k=e[84]:(k={keys:O,label:r.chatSteer},e[83]=r.chatSteer,e[84]=k);let A;e[85]===Symbol.for(`react.memo_cache_sentinel`)?(A=[C,`Enter`],e[85]=A):A=e[85];let j;e[86]===r.chatSteerFirst?j=e[87]:(j={keys:A,label:r.chatSteerFirst},e[86]=r.chatSteerFirst,e[87]=j);let M;e[88]===c?M=e[89]:(M=p(c),e[88]=c,e[89]=M);let N;e[90]!==r.chatVoiceInput||e[91]!==M?(N={keys:M,label:r.chatVoiceInput},e[90]=r.chatVoiceInput,e[91]=M,e[92]=N):N=e[92];let P;e[93]===Symbol.for(`react.memo_cache_sentinel`)?(P=g(window.electronAPI?.platform),e[93]=P):P=e[93];let F;e[94]===r.chatToggleSideChat?F=e[95]:(F={keys:P,label:r.chatToggleSideChat},e[94]=r.chatToggleSideChat,e[95]=F);let I;e[96]!==T||e[97]!==D||e[98]!==k||e[99]!==j||e[100]!==N||e[101]!==F?(I=[T,D,k,j,N,F],e[96]=T,e[97]=D,e[98]=k,e[99]=j,e[100]=N,e[101]=F,e[102]=I):I=e[102];let L;e[103]!==r.categoryChat||e[104]!==I?(L={title:S,shortcuts:I},e[103]=r.categoryChat,e[104]=I,e[105]=L):L=e[105],l.push(L);let R;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(R=[C,`Shift`,`1`],e[106]=R):R=e[106];let z;e[107]===r.editorHeading1?z=e[108]:(z={keys:R,label:r.editorHeading1},e[107]=r.editorHeading1,e[108]=z);let B;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(B=[C,`Shift`,`2`],e[109]=B):B=e[109];let V;e[110]===r.editorHeading2?V=e[111]:(V={keys:B,label:r.editorHeading2},e[110]=r.editorHeading2,e[111]=V);let H;e[112]===Symbol.for(`react.memo_cache_sentinel`)?(H=[C,`Shift`,`3`],e[112]=H):H=e[112];let U;e[113]===r.editorHeading3?U=e[114]:(U={keys:H,label:r.editorHeading3},e[113]=r.editorHeading3,e[114]=U);let W;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(W=[C,`Shift`,`8`],e[115]=W):W=e[115];let G;e[116]===r.editorBulletList?G=e[117]:(G={keys:W,label:r.editorBulletList},e[116]=r.editorBulletList,e[117]=G);let K;e[118]===Symbol.for(`react.memo_cache_sentinel`)?(K=[C,`Shift`,`9`],e[118]=K):K=e[118];let q;e[119]===r.editorOrderedList?q=e[120]:(q={keys:K,label:r.editorOrderedList},e[119]=r.editorOrderedList,e[120]=q);let J;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(J=[C,`Shift`,`0`],e[121]=J):J=e[121];let Y;e[122]===r.editorTaskList?Y=e[123]:(Y={keys:J,label:r.editorTaskList},e[122]=r.editorTaskList,e[123]=Y);let X;e[124]!==z||e[125]!==V||e[126]!==U||e[127]!==G||e[128]!==q||e[129]!==Y?(X=[z,V,U,G,q,Y],e[124]=z,e[125]=V,e[126]=U,e[127]=G,e[128]=q,e[129]=Y,e[130]=X):X=e[130];let Z;e[131]!==r.categoryEditor||e[132]!==X?(Z={title:r.categoryEditor,shortcuts:X},e[131]=r.categoryEditor,e[132]=X,e[133]=Z):Z=e[133],l.push(Z),e[2]=r.categoryChat,e[3]=r.categoryEditor,e[4]=r.categoryGlobal,e[5]=r.categoryNavigation,e[6]=r.chatNewLine,e[7]=r.chatSend,e[8]=r.chatSteer,e[9]=r.chatSteerFirst,e[10]=r.chatToggleSideChat,e[11]=r.chatVoiceInput,e[12]=r.editorBulletList,e[13]=r.editorHeading1,e[14]=r.editorHeading2,e[15]=r.editorHeading3,e[16]=r.editorOrderedList,e[17]=r.editorTaskList,e[18]=r.globalNewChat,e[19]=r.globalOpenSettings,e[20]=r.globalToggleWindow,e[21]=r.globalVoiceInput,e[22]=r.globalVoiceInputMacNote,e[23]=r.globalVoiceInputWindowsNote,e[24]=r.navCloseDialog,e[25]=r.navCommandPalette,e[26]=r.navQuickCapture,e[27]=r.navToggleFullscreen,e[28]=r.navToggleSidebar,e[29]=o,e[30]=c,e[31]=l}else l=e[31];let f;e[134]!==r.pageTitle||e[135]!==r.subtitle?(f=(0,x.jsx)(v,{title:r.pageTitle,subtitle:r.subtitle}),e[134]=r.pageTitle,e[135]=r.subtitle,e[136]=f):f=e[136];let m,h;e[137]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsx)(O,{}),h=(0,x.jsx)(N,{}),e[137]=m,e[138]=h):(m=e[137],h=e[138]);let b;e[139]===l?b=e[140]:(b=l.map(G),e[139]=l,e[140]=b);let S;return e[141]!==f||e[142]!==b?(S=(0,x.jsxs)(_,{gap:`gap-6`,children:[f,m,h,b]}),e[141]=f,e[142]=b,e[143]=S):S=e[143],S}function G(e){return(0,x.jsx)(H,{...e},e.title)}function K(e){return e.shortcut}function q(e){return e.shortcut}function J(e){return e.language}export{W as KeyboardShortcutsSettingsPanel};
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{n as i}from"./locale-store-B4o4aDCg.js";import{t as a}from"./messages-hlOsXkQ7.js";import{t as o}from"./cn-0WouolD0.js";import{n as s}from"./electron-env-DHOGevH3.js";import{c,d as l,h as u,l as d,m as f,p,t as m,u as h}from"./voice-input-shortcut-events-C-8Ts1gq.js";import{n as g}from"./side-chat-shortcut-BIw-1TTD.js";import{n as _,t as v}from"./settings-page-header-C9xiCwzq.js";import"./settings-page-layout-DTOBegnh.js";var y=n(),b=e(t(),1),x=r(),S=l(),C=S?`⌘`:`Ctrl`;function w(e){let t=(0,y.c)(53),{title:n,description:r,shortcut:s,otherShortcut:c,defaultShortcut:l,setShortcut:u,notice:d}=e,h=i(D),g;t[0]===h?g=t[1]:(g=a(h),t[0]=h,t[1]=g);let _=g.keyboardShortcutsSettings,[v,C]=(0,b.useState)(!1),[w,O]=(0,b.useState)(null),k,A;t[2]===v?(k=t[3],A=t[4]):(k=()=>{let e={active:v};return window.dispatchEvent(new CustomEvent(m,{detail:e})),E},A=[v],t[2]=v,t[3]=k,t[4]=A),(0,b.useEffect)(k,A);let j;t[5]!==_.quickCaptureShortcutConflict||t[6]!==c||t[7]!==v||t[8]!==u?(j=e=>{if(!v)return;if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){C(!1);return}let t=f(e.nativeEvent);if(!t)return;let n=S?`meta`:`control`;if(new Set([`${n}+k`,`${n}+n`,`${n}+b`,`${n}+,`]).has(t)||t===c){O(_.quickCaptureShortcutConflict);return}u(t),O(null),C(!1)},t[5]=_.quickCaptureShortcutConflict,t[6]=c,t[7]=v,t[8]=u,t[9]=j):j=t[9];let M=j,N;t[10]===n?N=t[11]:(N=(0,x.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n}),t[10]=n,t[11]=N);let P;t[12]===r?P=t[13]:(P=(0,x.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:r}),t[12]=r,t[13]=P);let F;t[14]!==N||t[15]!==P?(F=(0,x.jsxs)(`div`,{className:`min-w-0`,children:[N,P]}),t[14]=N,t[15]=P,t[16]=F):F=t[16];let I;t[17]===s?I=t[18]:(I=p(s).map(T),t[17]=s,t[18]=I);let L;t[19]===I?L=t[20]:(L=(0,x.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:I}),t[19]=I,t[20]=L);let R;t[21]!==F||t[22]!==L?(R=(0,x.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[F,L]}),t[21]=F,t[22]=L,t[23]=R):R=t[23];let z,B;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(z=o(`rounded-lg bg-accent px-3 py-1.5 text-sm font-medium text-on-accent transition-colors hover:bg-accent-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base`),B=()=>{O(null),C(!0)},t[24]=z,t[25]=B):(z=t[24],B=t[25]);let V;t[26]!==_.quickCaptureShortcutChange||t[27]!==M?(V=(0,x.jsx)(`button`,{type:`button`,className:z,onClick:B,onKeyDown:M,children:_.quickCaptureShortcutChange}),t[26]=_.quickCaptureShortcutChange,t[27]=M,t[28]=V):V=t[28];let H;t[29]!==l||t[30]!==u?(H=()=>{u(l()),O(null)},t[29]=l,t[30]=u,t[31]=H):H=t[31];let U;t[32]!==_.quickCaptureShortcutReset||t[33]!==H?(U=(0,x.jsx)(`button`,{type:`button`,className:`rounded-lg px-3 py-1.5 text-sm 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`,onClick:H,children:_.quickCaptureShortcutReset}),t[32]=_.quickCaptureShortcutReset,t[33]=H,t[34]=U):U=t[34];let W;t[35]!==_.quickCaptureShortcutRecording||t[36]!==M||t[37]!==v?(W=v?(0,x.jsx)(`button`,{type:`button`,className:`rounded-lg bg-accent-soft px-3 py-1.5 text-sm font-medium text-accent-fg outline-none focus-visible:ring-2 focus-visible:ring-accent`,onKeyDown:M,onClick:()=>C(!1),children:_.quickCaptureShortcutRecording}):null,t[35]=_.quickCaptureShortcutRecording,t[36]=M,t[37]=v,t[38]=W):W=t[38];let G;t[39]!==V||t[40]!==U||t[41]!==W?(G=(0,x.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[V,U,W]}),t[39]=V,t[40]=U,t[41]=W,t[42]=G):G=t[42];let K;t[43]===w?K=t[44]:(K=w?(0,x.jsx)(`p`,{className:`mt-2 text-sm text-danger-fg`,children:w}):null,t[43]=w,t[44]=K);let q;t[45]===d?q=t[46]:(q=d?(0,x.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-base/55 p-3`,children:d}):null,t[45]=d,t[46]=q);let J;return t[47]!==R||t[48]!==G||t[49]!==K||t[50]!==q||t[51]!==n?(J=(0,x.jsxs)(`section`,{className:`rounded-xl bg-surface-hover/20 px-4 py-3.5 sm:px-5 sm:py-4`,"aria-label":n,children:[R,G,K,q]}),t[47]=R,t[48]=G,t[49]=K,t[50]=q,t[51]=n,t[52]=J):J=t[52],J}function T(e,t){return(0,x.jsx)(z,{children:e},`${e}-${String(t)}`)}function E(){window.dispatchEvent(new CustomEvent(m,{detail:{active:!1}}))}function D(e){return e.language}function O(){let e=(0,y.c)(8),t=i(M),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=u(j),s=u(A),c=d(k),l;return e[2]!==r.quickCaptureShortcutDescription||e[3]!==r.quickCaptureShortcutTitle||e[4]!==s||e[5]!==o||e[6]!==c?(l=(0,x.jsx)(w,{title:r.quickCaptureShortcutTitle,description:r.quickCaptureShortcutDescription,shortcut:o,otherShortcut:c,defaultShortcut:h,setShortcut:s}),e[2]=r.quickCaptureShortcutDescription,e[3]=r.quickCaptureShortcutTitle,e[4]=s,e[5]=o,e[6]=c,e[7]=l):l=e[7],l}function k(e){return e.shortcut}function A(e){return e.setShortcut}function j(e){return e.shortcut}function M(e){return e.language}function N(){let e=(0,y.c)(9),t=i(L),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=d(I),s=d(F),l=u(P),f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsx)(R,{}),e[2]=f):f=e[2];let p;return e[3]!==r.voiceInputShortcutDescription||e[4]!==r.voiceInputShortcutTitle||e[5]!==l||e[6]!==s||e[7]!==o?(p=(0,x.jsx)(w,{title:r.voiceInputShortcutTitle,description:r.voiceInputShortcutDescription,shortcut:o,otherShortcut:l,defaultShortcut:c,setShortcut:s,notice:f}),e[3]=r.voiceInputShortcutDescription,e[4]=r.voiceInputShortcutTitle,e[5]=l,e[6]=s,e[7]=o,e[8]=p):p=e[8],p}function P(e){return e.shortcut}function F(e){return e.setShortcut}function I(e){return e.shortcut}function L(e){return e.language}function R(){let e=a(i(e=>e.language)).keyboardShortcutsSettings,t=window.electronAPI?.system,n=s()&&window.electronAPI?.platform===`darwin`,[r,c]=(0,b.useState)(!1),[l,u]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!n||!t)return;let e=!0,r=()=>{t.getPermissions().then(t=>{e&&c(t.accessibility===`granted`)}).catch(()=>void 0)};return r(),window.addEventListener(`focus`,r),()=>{e=!1,window.removeEventListener(`focus`,r)}},[n,t]),!n||!t?null:(0,x.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,x.jsx)(`p`,{className:`max-w-[65ch] text-xs text-fg-muted`,children:r?e.voiceInputAccessibilityGranted:e.voiceInputAccessibilityDescription}),r?null:(0,x.jsx)(`button`,{type:`button`,disabled:l,className:o(`rounded-lg bg-surface-base/70 px-3 py-1.5 text-xs font-medium text-fg transition-colors hover:bg-surface-hover`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-not-allowed disabled:text-fg-disabled`),onClick:async()=>{u(!0);try{let e=await t.requestAccessibility();c(e.status===`granted`)}finally{u(!1)}},children:l?e.voiceInputAccessibilityRequesting:e.voiceInputAccessibilityEnable})]})}function z(e){let t=(0,y.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,x.jsx)(`kbd`,{className:`inline-flex min-w-[1.5rem] items-center justify-center rounded-md bg-surface-hover/70 px-1.5 py-0.5 font-mono text-xs font-medium text-fg-muted shadow-sm`,children:n}),t[0]=n,t[1]=r),r}function B(e){let t=(0,y.c)(14),{keys:n,label:r,note:i}=e,a;t[0]===r?a=t[1]:(a=(0,x.jsx)(`span`,{className:`text-sm text-fg`,children:r}),t[0]=r,t[1]=a);let o;t[2]===i?o=t[3]:(o=i&&(0,x.jsxs)(`span`,{className:`ml-1.5 text-xs text-fg-muted`,children:[`(`,i,`)`]}),t[2]=i,t[3]=o);let s;t[4]!==a||t[5]!==o?(s=(0,x.jsxs)(`div`,{className:`min-w-0`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6];let c;t[7]===n?c=t[8]:(c=n.map(V),t[7]=n,t[8]=c);let l;t[9]===c?l=t[10]:(l=(0,x.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:c}),t[9]=c,t[10]=l);let u;return t[11]!==s||t[12]!==l?(u=(0,x.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2.5`,children:[s,l]}),t[11]=s,t[12]=l,t[13]=u):u=t[13],u}function V(e){return(0,x.jsx)(z,{children:e},e)}function H(e){let t=(0,y.c)(11),{title:n,shortcuts:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=o(`rounded-xl bg-surface-hover/20 px-4 sm:px-5`),t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,x.jsx)(`h2`,{className:`pb-1 pt-3.5 text-sm font-semibold text-fg sm:pt-4`,children:n}),t[1]=n,t[2]=a);let s;t[3]===r?s=t[4]:(s=r.map(U),t[3]=r,t[4]=s);let c;t[5]===s?c=t[6]:(c=(0,x.jsx)(`div`,{className:`grid gap-1 pb-3 sm:pb-4`,children:s}),t[5]=s,t[6]=c);let l;return t[7]!==a||t[8]!==c||t[9]!==n?(l=(0,x.jsxs)(`section`,{className:i,"aria-label":n,children:[a,c]}),t[7]=a,t[8]=c,t[9]=n,t[10]=l):l=t[10],l}function U(e){return(0,x.jsx)(B,{...e},e.label)}function W(){let e=(0,y.c)(144),t=i(J),n;e[0]===t?n=e[1]:(n=a(t),e[0]=t,e[1]=n);let r=n.keyboardShortcutsSettings,o=u(q),c=d(K),l;if(e[2]!==r.categoryChat||e[3]!==r.categoryEditor||e[4]!==r.categoryGlobal||e[5]!==r.categoryNavigation||e[6]!==r.chatNewLine||e[7]!==r.chatSend||e[8]!==r.chatSteer||e[9]!==r.chatSteerFirst||e[10]!==r.chatToggleSideChat||e[11]!==r.chatVoiceInput||e[12]!==r.editorBulletList||e[13]!==r.editorHeading1||e[14]!==r.editorHeading2||e[15]!==r.editorHeading3||e[16]!==r.editorOrderedList||e[17]!==r.editorTaskList||e[18]!==r.globalNewChat||e[19]!==r.globalOpenSettings||e[20]!==r.globalToggleWindow||e[21]!==r.globalVoiceInput||e[22]!==r.globalVoiceInputMacNote||e[23]!==r.globalVoiceInputWindowsNote||e[24]!==r.navCloseDialog||e[25]!==r.navCommandPalette||e[26]!==r.navQuickCapture||e[27]!==r.navToggleFullscreen||e[28]!==r.navToggleSidebar||e[29]!==o||e[30]!==c){if(l=[],s()){let t=window.electronAPI?.platform===`darwin`?`Fn`:`Alt`,n=window.electronAPI?.platform===`darwin`?r.globalVoiceInputMacNote:r.globalVoiceInputWindowsNote,i;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(i=[C,`Shift`,`Space`],e[32]=i):i=e[32];let a;e[33]===r.globalToggleWindow?a=e[34]:(a={keys:i,label:r.globalToggleWindow},e[33]=r.globalToggleWindow,e[34]=a);let o;e[35]===Symbol.for(`react.memo_cache_sentinel`)?(o=[t],e[35]=o):o=e[35];let s;e[36]!==r.globalVoiceInput||e[37]!==n?(s={keys:o,label:r.globalVoiceInput,note:n},e[36]=r.globalVoiceInput,e[37]=n,e[38]=s):s=e[38];let c;e[39]!==a||e[40]!==s?(c=[a,s],e[39]=a,e[40]=s,e[41]=c):c=e[41];let u;e[42]!==r.categoryGlobal||e[43]!==c?(u={title:r.categoryGlobal,shortcuts:c},e[42]=r.categoryGlobal,e[43]=c,e[44]=u):u=e[44],l.push(u)}let t=r.categoryNavigation,n;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(n=[C,`N`],e[45]=n):n=e[45];let i;e[46]===r.globalNewChat?i=e[47]:(i={keys:n,label:r.globalNewChat},e[46]=r.globalNewChat,e[47]=i);let a;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(a=[C,`K`],e[48]=a):a=e[48];let u;e[49]===r.navCommandPalette?u=e[50]:(u={keys:a,label:r.navCommandPalette},e[49]=r.navCommandPalette,e[50]=u);let d;e[51]===o?d=e[52]:(d=p(o),e[51]=o,e[52]=d);let f;e[53]!==r.navQuickCapture||e[54]!==d?(f={keys:d,label:r.navQuickCapture},e[53]=r.navQuickCapture,e[54]=d,e[55]=f):f=e[55];let m;e[56]===r.navToggleSidebar?m=e[57]:(m=s()?[{keys:[C,`B`],label:r.navToggleSidebar}]:[],e[56]=r.navToggleSidebar,e[57]=m);let h;e[58]===r.navToggleFullscreen?h=e[59]:(h=s()?[{keys:[`F11`],label:r.navToggleFullscreen}]:[],e[58]=r.navToggleFullscreen,e[59]=h);let _;e[60]===r.globalOpenSettings?_=e[61]:(_=s()?[{keys:[C,`,`],label:r.globalOpenSettings}]:[],e[60]=r.globalOpenSettings,e[61]=_);let v;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`Esc`],e[62]=v):v=e[62];let y;e[63]===r.navCloseDialog?y=e[64]:(y={keys:v,label:r.navCloseDialog},e[63]=r.navCloseDialog,e[64]=y);let b;e[65]!==_||e[66]!==y||e[67]!==i||e[68]!==u||e[69]!==f||e[70]!==m||e[71]!==h?(b=[i,u,f,...m,...h,..._,y],e[65]=_,e[66]=y,e[67]=i,e[68]=u,e[69]=f,e[70]=m,e[71]=h,e[72]=b):b=e[72];let x;e[73]!==r.categoryNavigation||e[74]!==b?(x={title:t,shortcuts:b},e[73]=r.categoryNavigation,e[74]=b,e[75]=x):x=e[75],l.push(x);let S=r.categoryChat,w;e[76]===Symbol.for(`react.memo_cache_sentinel`)?(w=[`Enter`],e[76]=w):w=e[76];let T;e[77]===r.chatSend?T=e[78]:(T={keys:w,label:r.chatSend},e[77]=r.chatSend,e[78]=T);let E;e[79]===Symbol.for(`react.memo_cache_sentinel`)?(E=[`Shift`,`Enter`],e[79]=E):E=e[79];let D;e[80]===r.chatNewLine?D=e[81]:(D={keys:E,label:r.chatNewLine},e[80]=r.chatNewLine,e[81]=D);let O;e[82]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Alt`,`Enter`],e[82]=O):O=e[82];let k;e[83]===r.chatSteer?k=e[84]:(k={keys:O,label:r.chatSteer},e[83]=r.chatSteer,e[84]=k);let A;e[85]===Symbol.for(`react.memo_cache_sentinel`)?(A=[C,`Enter`],e[85]=A):A=e[85];let j;e[86]===r.chatSteerFirst?j=e[87]:(j={keys:A,label:r.chatSteerFirst},e[86]=r.chatSteerFirst,e[87]=j);let M;e[88]===c?M=e[89]:(M=p(c),e[88]=c,e[89]=M);let N;e[90]!==r.chatVoiceInput||e[91]!==M?(N={keys:M,label:r.chatVoiceInput},e[90]=r.chatVoiceInput,e[91]=M,e[92]=N):N=e[92];let P;e[93]===Symbol.for(`react.memo_cache_sentinel`)?(P=g(window.electronAPI?.platform),e[93]=P):P=e[93];let F;e[94]===r.chatToggleSideChat?F=e[95]:(F={keys:P,label:r.chatToggleSideChat},e[94]=r.chatToggleSideChat,e[95]=F);let I;e[96]!==T||e[97]!==D||e[98]!==k||e[99]!==j||e[100]!==N||e[101]!==F?(I=[T,D,k,j,N,F],e[96]=T,e[97]=D,e[98]=k,e[99]=j,e[100]=N,e[101]=F,e[102]=I):I=e[102];let L;e[103]!==r.categoryChat||e[104]!==I?(L={title:S,shortcuts:I},e[103]=r.categoryChat,e[104]=I,e[105]=L):L=e[105],l.push(L);let R;e[106]===Symbol.for(`react.memo_cache_sentinel`)?(R=[C,`Shift`,`1`],e[106]=R):R=e[106];let z;e[107]===r.editorHeading1?z=e[108]:(z={keys:R,label:r.editorHeading1},e[107]=r.editorHeading1,e[108]=z);let B;e[109]===Symbol.for(`react.memo_cache_sentinel`)?(B=[C,`Shift`,`2`],e[109]=B):B=e[109];let V;e[110]===r.editorHeading2?V=e[111]:(V={keys:B,label:r.editorHeading2},e[110]=r.editorHeading2,e[111]=V);let H;e[112]===Symbol.for(`react.memo_cache_sentinel`)?(H=[C,`Shift`,`3`],e[112]=H):H=e[112];let U;e[113]===r.editorHeading3?U=e[114]:(U={keys:H,label:r.editorHeading3},e[113]=r.editorHeading3,e[114]=U);let W;e[115]===Symbol.for(`react.memo_cache_sentinel`)?(W=[C,`Shift`,`8`],e[115]=W):W=e[115];let G;e[116]===r.editorBulletList?G=e[117]:(G={keys:W,label:r.editorBulletList},e[116]=r.editorBulletList,e[117]=G);let K;e[118]===Symbol.for(`react.memo_cache_sentinel`)?(K=[C,`Shift`,`9`],e[118]=K):K=e[118];let q;e[119]===r.editorOrderedList?q=e[120]:(q={keys:K,label:r.editorOrderedList},e[119]=r.editorOrderedList,e[120]=q);let J;e[121]===Symbol.for(`react.memo_cache_sentinel`)?(J=[C,`Shift`,`0`],e[121]=J):J=e[121];let Y;e[122]===r.editorTaskList?Y=e[123]:(Y={keys:J,label:r.editorTaskList},e[122]=r.editorTaskList,e[123]=Y);let X;e[124]!==z||e[125]!==V||e[126]!==U||e[127]!==G||e[128]!==q||e[129]!==Y?(X=[z,V,U,G,q,Y],e[124]=z,e[125]=V,e[126]=U,e[127]=G,e[128]=q,e[129]=Y,e[130]=X):X=e[130];let Z;e[131]!==r.categoryEditor||e[132]!==X?(Z={title:r.categoryEditor,shortcuts:X},e[131]=r.categoryEditor,e[132]=X,e[133]=Z):Z=e[133],l.push(Z),e[2]=r.categoryChat,e[3]=r.categoryEditor,e[4]=r.categoryGlobal,e[5]=r.categoryNavigation,e[6]=r.chatNewLine,e[7]=r.chatSend,e[8]=r.chatSteer,e[9]=r.chatSteerFirst,e[10]=r.chatToggleSideChat,e[11]=r.chatVoiceInput,e[12]=r.editorBulletList,e[13]=r.editorHeading1,e[14]=r.editorHeading2,e[15]=r.editorHeading3,e[16]=r.editorOrderedList,e[17]=r.editorTaskList,e[18]=r.globalNewChat,e[19]=r.globalOpenSettings,e[20]=r.globalToggleWindow,e[21]=r.globalVoiceInput,e[22]=r.globalVoiceInputMacNote,e[23]=r.globalVoiceInputWindowsNote,e[24]=r.navCloseDialog,e[25]=r.navCommandPalette,e[26]=r.navQuickCapture,e[27]=r.navToggleFullscreen,e[28]=r.navToggleSidebar,e[29]=o,e[30]=c,e[31]=l}else l=e[31];let f;e[134]!==r.pageTitle||e[135]!==r.subtitle?(f=(0,x.jsx)(v,{title:r.pageTitle,subtitle:r.subtitle}),e[134]=r.pageTitle,e[135]=r.subtitle,e[136]=f):f=e[136];let m,h;e[137]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsx)(O,{}),h=(0,x.jsx)(N,{}),e[137]=m,e[138]=h):(m=e[137],h=e[138]);let b;e[139]===l?b=e[140]:(b=l.map(G),e[139]=l,e[140]=b);let S;return e[141]!==f||e[142]!==b?(S=(0,x.jsxs)(_,{gap:`gap-6`,children:[f,m,h,b]}),e[141]=f,e[142]=b,e[143]=S):S=e[143],S}function G(e){return(0,x.jsx)(H,{...e},e.title)}function K(e){return e.shortcut}function q(e){return e.shortcut}function J(e){return e.language}export{W as KeyboardShortcutsSettingsPanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`006,01,004,6,4,0056,3,2,1,04,22,0006,0004,002,000006,02,003,00006,606,202,0404,404,232,0000006,034`,`{".":[{"k":[{"a":[{"r":[{"a":0}]}]}]}],"a":[{"l":[{"a":2}],"m":[{"î":[{"t":[{".":3}]}]}],"n":4,"r":[{"a":[{"n":[{"î":5}]}]}],"v":[{"a":[{"y":4}]},6],"y":7},1],"b":[{"a":9,"b":7,"l":7,"r":7,"s":7,"x":7},8],"c":[{"b":7,"k":10,"l":7},8],"ç":[{"k":7},8],"d":[{"a":[{"v":[{"ê":[{"j":[{"i":0}]}]}]}],"b":[{"û":[{"n":[{"a":11}]}]},7],"d":[{"a":12},7],"g":7,"r":7,"t":7,"y":[{"o":9,"û":4}]},8],"e":[{"a":13,"d":[{"y":9}],"e":13,"ê":13,"f":[{"r":9}],"l":[{"a":2}],"r":[{"d":[{"e":[{"s":[{"t":[{"a":0}]},14]}]}]}],"t":[{"r":9}],"z":7},1],"ê":[{"a":15,"l":[{"a":[{"v":12}]}]},1],"f":[{"l":[{"î":9,"û":4},2],"r":[{"o":9}],"s":7,"ş":7,"t":7,"x":7},8],"g":[{"b":7,"h":7,"k":7,"l":15,"n":7,"r":7,"s":7,"t":7},8],"h":[{"b":7,"d":7,"k":7,"m":7,"n":7,"r":7,"s":7,"t":7},8],"i":[{"i":13,"l":[{"a":2}],"n":[{"ê":[{"r":9}]}],"r":[{"e":[{"h":12}]}],"s":15},1],"î":[{"a":15,"d":7,"e":[{"t":2}],"j":15,"l":16,"p":[{"l":9}],"s":[{"t":[{"i":[{"y":[{"e":17}]}]}]}]},1],"j":[{"a":[{"v":[{"a":[{".":18}]}]}],"h":7,"k":7,"m":7,"n":7,"t":7},8],"k":[{"b":7,"ç":7,"k":7,"l":7,"m":7,"n":7,"r":7,"s":7,"t":7,"v":7,"w":7,"x":7,"y":7},8],"l":[{"a":[{"m":[{"î":[{"t":[{"ê":3}]}]}]}],"b":7,"c":7,"ç":7,"d":7,"e":9,"f":7,"g":7,"h":7,"k":7,"l":7,"m":7,"n":7,"p":7,"q":7,"s":7,"t":7,"v":7,"w":7,"x":7,"y":7,"z":7},8],"m":[{"a":[{"î":2}],"b":7,"d":7,"f":7,"î":[{"t":[{"ê":4}]}],"m":7,"p":19,"r":7,"s":7,"w":7,"y":7,"z":7},8],"n":[{"a":9,"b":7,"c":7,"ç":7,"d":7,"ê":[{"r":[{"e":2}]}],"f":7,"g":7,"h":7,"k":[{"i":12},7],"n":7,"p":7,"s":7,"ş":7,"t":7,"v":7,"x":7,"y":7,"z":10},8],"o":[{"f":13,"h":15,"s":15,"w":15},7],"p":[{"s":7,"t":7},8],"q":[{"p":7,"ş":7},8],"r":[{"a":[{"î":12},9],"b":7,"c":7,"ç":7,"d":7,"f":[{"i":20},7],"g":7,"h":7,"j":7,"k":7,"l":7,"m":7,"n":7,"p":7,"q":7,"r":7,"s":7,"t":7,"v":7,"w":7,"x":7,"y":7,"z":7},8],"s":[{"a":6,"b":7,"e":6,"g":7,"î":6,"k":7,"p":7,"r":7,"s":7,"t":[{"a":[{"v":12}],"r":2},7],"u":6,"û":6,"y":7},8],"ş":[{"a":[{"v":21}],"b":7,"d":7,"ê":[{"l":2}],"g":7,"h":7,"k":7,"m":7,"n":7,"p":7,"t":19,"v":7,"x":7},8],"t":[{"a":[{"v":4}],"g":[{"e":12},7],"k":7,"l":7,"m":7,"n":[{"î":12},7],"p":7,"r":[{"a":9,"û":9}],"s":22,"t":7,"x":7,"y":7},8],"u":[{"e":13,"i":15,"k":15,"r":[{"a":[{"n":[{"d":[{"i":23}]}]}]}],"ş":15},1],"v":[{"b":7,"ç":7,"d":7,"g":7,"h":7,"k":7,"n":7,"r":7,"s":7,"ş":7,"y":7},8],"w":[{"c":7,"d":7,"h":7,"k":7,"l":7,"n":7,"r":7,"s":7,"ş":7,"t":7},8],"x":[{"a":9,"ç":7,"l":7,"n":7,"t":[{"r":9},7],"w":15},8],"y":[{"b":7,"d":[{"a":12},7],"l":7,"n":7,"r":7,"s":7,"t":7,"v":7,"w":7},8],"z":[{"b":7,"d":7,"e":[{"z":24}],"k":7,"m":7,"r":7,"t":7,"y":7,"z":7},8]}`,[]];export{e as Kmr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`22,11,01,1,21`,`{"":0,"":1,"ಅ":2,"ಆ":2,"ಇ":2,"ಈ":2,"ಉ":2,"ಊ":2,"ಋ":2,"ೠ":2,"ಌ":2,"ೡ":2,"ಎ":2,"ಏ":2,"ಐ":2,"ಒ":2,"ಓ":2,"ಔ":2,"ಾ":2,"ಿ":2,"ೀ":2,"ು":2,"ೂ":2,"ೃ":2,"ೄ":2,"ೆ":2,"ೇ":2,"ೈ":2,"ೊ":2,"ೋ":2,"ೌ":2,"ಕ":3,"ಖ":3,"ಗ":3,"ಘ":3,"ಙ":3,"ಚ":3,"ಛ":3,"ಜ":3,"ಝ":3,"ಞ":3,"ಟ":3,"ಠ":3,"ಡ":3,"ಢ":3,"ಣ":3,"ತ":3,"ಥ":3,"ದ":3,"ಧ":3,"ನ":3,"ಪ":3,"ಫ":3,"ಬ":3,"ಭ":3,"ಮ":3,"ಯ":3,"ರ":3,"ಱ":3,"ಲ":3,"ಳ":3,"ೞ":3,"ವ":3,"ಶ":3,"ಷ":3,"ಸ":3,"ಹ":3,"ಂ":4,"ಃ":4,"ಽ":4,"ೕ":4,"ೖ":4,"್":0}`,[]];export{e as Kn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`023,00001,000032,0000021,0021,0023,021,23,32,01,001,003,1,2,02,022,032,102,12,203`,`{".":[{"a":[{"b":[{"l":0}],"n":[{"t":[{"i":[{"m":[{"n":2}]},1]}]}]}],"c":[{"i":[{"r":[{"c":[{"u":[{"m":3}]}]}]}],"o":[{"n":[{"i":[{"u":[{"n":4}]}]}]}]}],"d":[{"i":[{"s":[{"c":[{"i":[{"n":[{"e":5}]}]}]}]}]}],"e":[{"x":6}],"o":[{"b":0}],"p":[{"a":[{"r":[{"a":[{"i":1,"u":1}]}]}]}],"s":[{"u":[{"b":[{"l":[{"u":5}],"r":5}]}]}]}],"s":[{"q":[{"u":[{"e":[{".":7}]}]}],"d":[{"e":[{"m":[{".":7}]}]}],"p":[{"h":7}],"s":7,"t":[{"b":13,"c":13,"d":13,"f":13,"g":13,"l":19,"m":13,"n":13,"p":13,"q":13,"s":13,"t":13,"v":13,".":13}],".":13},18],"p":[{"s":[{"i":[{"c":8}]},13],"n":[{"e":[{"u":8}]},13],"h":[{"p":13,"t":13},14],"l":14,"p":13,"r":14,"t":13,"z":13,".":13},12],"æ":9,"œ":9,"a":[{"i":[{"a":9,"e":9,"o":9,"u":9}],"e":[{"a":10,"o":10,"u":10}],"u":[{"a":9,"e":9,"i":9,"o":9,"u":9}],"l":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"m":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"n":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"r":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}]}],"e":[{"i":[{"u":9}],"u":[{"a":9,"e":9,"i":9,"o":9,"u":9}],"l":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"m":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"n":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"r":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}]}],"i":[{"o":[{"i":10}],"u":[{"a":9,"e":9,"i":9,"o":9,"u":9}],"l":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"m":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"n":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"r":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}]}],"o":[{"i":[{"a":9,"e":9,"o":9,"u":9}],"u":[{"a":9,"e":9,"i":9,"o":9,"u":9}],"l":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"m":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"n":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"r":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}]}],"u":[{"o":[{"u":11}],"u":[{"a":9,"e":9,"i":9,"o":9,"u":9}],"l":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"m":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"n":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}],"r":[{"u":[{"a":6,"e":6,"i":6,"o":6,"u":6}]}]}],"b":[{"b":13,"c":13,"d":13,"l":14,"m":13,"n":13,"r":14,"t":13,"s":13,".":13},12],"c":[{"c":13,"h":15,"l":14,"m":13,"n":13,"q":13,"r":14,"s":13,"t":13,"z":13,".":13},12],"d":[{"d":13,"g":13,"m":13,"r":14,"s":13,"v":13,".":13},12],"f":[{"f":13,"l":14,"n":13,"r":14,"t":13,".":13},12],"g":[{"g":13,"d":13,"f":13,"l":14,"m":13,"n":14,"r":14,"s":13,"v":13,".":13},12],"h":[{"p":13,"t":13,".":13},12],"j":12,"k":[{"k":13,"h":15},12],"l":[{"b":13,"c":13,"d":13,"f":[{"t":16},13],"g":13,"k":13,"l":13,"m":13,"n":13,"p":13,"q":13,"r":13,"s":13,"t":13,"v":13,".":13},12],"m":[{"m":13,"b":13,"p":13,"l":13,"n":13,"q":13,"r":13,"v":13,".":13},12],"n":[{"b":13,"c":13,"d":13,"f":13,"g":13,"l":13,"m":13,"n":13,"p":13,"q":13,"r":13,"s":[{"m":0,"f":0},13],"t":13,"v":13,"x":13,".":13},12],"q":[{"u":17}],"r":[{"b":13,"c":13,"d":13,"f":13,"g":13,"h":14,"l":13,"m":13,"n":13,"p":13,"q":13,"r":13,"s":13,"t":13,"v":13,"z":13,".":13},12],"t":[{"b":13,"c":13,"d":13,"f":13,"g":13,"h":14,"l":14,"r":14,"m":13,"n":13,"p":13,"q":13,"t":13,"v":13,".":13},12],"v":[{"l":14,"r":14,"v":13},12],"x":[{"t":13,"x":13,".":13},12],"z":[{".":13},12]}`,[]];export{e as La};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`023,00001,000032,00032,0000021,0021,0002,000023,0023,02,23,32,3,2,01,012,032,03,001,003,4,05,0005,0001,0202,0303,0101,1,022,0012,202,102,21,223,203,12,0032,0212,021,02101,002,00302,02102,0052,00002,0003,00323,000322,00212,0043003,0043001,004304,0302,00023,000002,043,00232,034,002121,002123,0021232,002300021,00000021,000000002,000001,0000032,0002103,00021,000101,000212,0025,0043,003202,000021,000214,002142,000021032,00002132,00002123,0000232,0000454,0000343,00002121,0000210032,34,00012,0000002,00000121,000001212,000003,0000012`,`{".":[{"a":[{"b":[{"l":0,"a":[{"u":[{"u":38}],"l":[{"i":38}]}],"i":[{"c":38,"e":[{"c":38}],"n":39,"u":38}],"o":[{"l":38}],"s":[{"i":41,"o":19,"t":[{"e":36}],"u":41,"c":[{"i":[{"n":43}]}]},40],"e":[{"s":42,"r":42}],"f":[{"u":9}],"r":[{"u":0}]}],"n":[{"t":[{"i":[{"m":[{"n":2}]},1]}]}],"r":[{"i":[{"s":[{"t":[{"o":3}]}]}]}],"d":[{"s":[{"u":44,"i":41,"t":36}],"e":[{"s":42,"r":42}],"f":[{"u":9}]},38],"g":[{"n":[{"a":[{"s":16}]}]}],"s":[{"c":16,"p":16,"t":16}],"p":[{"e":[{"r":[{"u":3}]}]}]}],"c":[{"i":[{"r":[{"c":[{"u":[{"m":4}]}]}],"s":8}],"o":[{"n":[{"i":[{"u":[{"n":5,"e":46},44],"c":45,"f":36,"g":36,"t":36,"a":44,"e":44,"i":44}],"s":[{"c":[{"r":3}],"p":47,"t":3}]},5],"e":[{"n":5,"l":[{"e":[{"c":36}],"i":[{"g":36}]}],"m":[{"e":[{"n":19}]}],"r":36,"x":[{"s":2},46]},18],"i":[{"e":29,"u":45},18],"g":[{"n":[{"o":36}]}]}]},9],"e":[{"x":[{"s":[{"t":6}]},0]}],"p":[{"a":[{"r":[{"a":[{"i":1,"u":1}]}]}],"e":[{"r":[{"i":[{"a":[{"c":48}],"e":[{"c":48}],"p":[{"s":2,"t":2}],"s":[{"c":2,"t":2}]},1],"a":[{"b":[{"s":[{"u":5}]}],"c":5,"d":[{"u":58,"p":48}],"e":5,"g":8,"r":5,"u":48}],"e":[{"r":[{"r":8,"u":5}],"d":5,"f":[{"f":5}],"g":[{"r":5}],"l":5,"m":5,"n":[{"n":36}],"x":59}],"o":[{"r":8,"b":[{"s":[{"c":60}]}],"d":5,"f":5,"l":5,"p":5}],"u":[{"a":48,"e":48,"i":48,"o":48},8],"h":8,"s":[{"e":[{"u":54,"i":54,"o":54}],"c":56,"p":56,"t":56}],"t":[{"r":[{"a":[{"n":[{"s":61}]}]}]}]}]}],"r":[{"a":[{"e":[{"a":[{"u":54}],"s":[{"c":2,"p":2,"t":2}],"u":[{"a":54,"e":54,"i":54,"o":54}],"t":[{"e":[{"r":[{"u":[{"e":63,"o":63}]},62]}]}]},1]}],"i":[{"m":[{"i":[{"s":[{"c":65}]},64]}]}],"o":[{"d":[{"e":[{"s":[{"s":66}],"a":[{"m":[{"b":68}]},67],"o":67,"u":[{"n":67}]}],"i":[{"g":67,"s":53,"t":[{"o":3,"i":3,"r":3},67],"m":67,"r":67,"b":67,"e":[{"r":67}]}]}],"g":[{"n":3}],"i":[{"n":45}],"s":[{"c":3,"p":3,"t":3}]}]}]},9],"q":[{"u":[{"i":[{"n":[{"c":[{"u":[{"n":7}]}]}]}],"o":[{"t":[{"a":[{"n":67}],"e":[{"n":67}],"i":[{"e":69}],"l":[{"i":53}]}]}]}]}],"s":[{"u":[{"b":[{"l":[{"u":8}],"r":8,"i":[{"c":5,"n":[{"g":[{"r":5}]}]}],"o":[{"d":[{"o":5}]}],"s":[{"t":56}]}],"p":[{"e":[{"r":[{"a":[{"b":73,"d":[{"s":[{"t":76}]},73],"e":73,"g":73,"m":73,"r":[{"g":73}],"s":[{"p":77,"t":77}],"t":[{"t":73}]}],"b":[{"i":[{"b":73,"f":73,"l":73}]}],"c":73,"d":73,"e":[{"d":73,"f":[{"f":73}],"g":73,"m":73,"n":73,"r":73,"u":73,"x":78}],"h":7,"i":[{"l":73,"m":73,"n":73,"r":73,"u":[{"m":[{"e":80}]},81],"o":81},79],"o":[{"b":[{"d":82,"r":78}],"c":73,"r":73}],"s":[{"c":79,"p":79,"t":79,"u":[{"b":[{"s":[{"t":83}]}]}]}],"u":79}]}],"r":[{"a":[{"s":[{"c":65}]}]}]}],"s":[{"c":36,"p":36,"s":[{"c":[{"r":44}]}]}]}],"t":[{"a":[{"g":[{"n":3}]}]}],"m":9,"a":[{"t":[{"i":[{"s":73}],"a":[{"g":5}]}]}],"e":[{"s":[{"c":[{"u":[{"n":74}]}]}]}],"i":[{"c":[{"u":[{"t":75}]}],"s":[{"t":[{"e":[{"n":36}]}]}]}]},9],"i":[{"a":[{"i":[{"u":6}]},9],"e":[{"i":[{"u":6}]},9],"i":9,"o":9,"u":[{"u":[{"a":6,"e":6,"o":6,"i":6}],"s":[{"i":[{"u":[{"r":56}]}]}]},9],"d":[{"c":[{"i":9}],"i":[{"o":[{"g":52}]}]}],"n":[{"s":[{"p":36,"t":36}],"a":[{"n":16,"b":[{"r":53,"s":2}],"c":[{"r":6}],"d":[{"f":6}]}],"i":[{"t":16}],"e":[{"r":[{"s":16,"t":16}],"x":[{"s":[{"t":54}]},53]}],"o":[{"b":[{"s":[{"c":2}],"o":[{"e":3}]},6]}],"p":[{"e":[{"r":[{"i":[{"u":[{"r":7}]}]}]}]}],"u":[{"l":[{"c":55},16],"a":6,"e":6,"i":6,"o":6,"u":6}]},38]}],"u":[{"a":[{"u":[{"a":19}]},9],"o":[{"u":[{"e":19}]},9],"e":[{"i":[{"o":18}]},9],"i":9,"u":9,"n":[{"i":[{"u":[{"s":37}]}]}],"t":[{"e":[{"r":[{"u":[{"i":53}]}]}]}]}],"b":9,"g":9,"f":9,"h":[{"u":[{"i":[{"u":29}]}]},9],"l":9,"m":9,"n":9,"r":[{"e":[{"d":[{"a":[{"c":5,"d":5,"m":[{"b":5},5],"n":5,"r":[{"g":5},5],"u":48}],"e":[{"m":5,"o":5,"u":5}],"i":[{"s":70,"t":70,"m":[{"i":71},36],"e":[{"r":5,"n":5}],"b":5,"c":36,"g":36,"n":5}],"o":[{"l":5,"p":5,"r":[{"m":36,"n":5,"d":5}]}],"u":[{"l":5}]}],"e":[{"x":6}],"i":[{"e":18,"n":18}],"p":[{"a":[{"u":44}]}],"s":[{"c":[{"r":36}],"p":36,"t":[{"a":[{"g":36,"u":72}],"i":[{"b":36,"c":36,"l":36,"p":36}],"r":36}]}]}]},9],"t":[{"e":[{"t":[{"r":[{"a":[{"e":[{"t":65}],"g":[{"n":65}],"s":[{"t":65}]}]}]}],"r":[{"i":[{"u":48}],"u":[{"n":5}],"p":[{"s":44}]}]}],"h":[{"e":[{"o":[{"g":[{"n":2}]},6],"s":[{"p":3,"t":3}]}],"i":[{"s":[{"b":3}]}]}],"r":[{"a":[{"i":[{"a":85,"e":85,"i":23}],"n":[{"s":[{"a":[{"b":[{"i":87,"e":88}],"c":[{"t":64}],"d":87,"u":90},86],"i":89,"c":2,"e":[{"n":2,"u":86},64],"o":90,"u":[{"m":2},90]},44],"u":[{"e":67}]}]}],"i":[{"e":[{"n":45}]}]}]},9],"x":9,"z":[{"a":[{"i":[{"e":[{"u":8}]}]}],"e":[{"u":[{"g":[{"m":3}]}]}]},9],"d":[{"e":[{"s":[{"c":36,"p":36,"q":36,"t":36}]}],"i":[{"g":[{"n":[{"o":[{"s":[{"c":36}]}]}]}],"s":[{"i":48,"c":[{"e":[{"p":[{"t":49}]},36],"r":36}],"p":36,"q":[{"u":[{"a":36}]}],"t":[{"e":[{"n":[{"d":50}]}],"i":[{"n":[{"c":51}]}]},36]}]}]}],"o":[{"b":[{"e":[{"d":16,"l":16,"s":16}],"i":[{"c":16,"a":6,"e":6,"u":36}],"s":[{"c":[{"u":36},36],"t":36}],"l":19,"r":[{"u":[{"z":57}]},19],"t":[{"r":19}],"u":[{"a":6,"e":6,"i":6,"o":6}]},38]}]}],"s":[{"q":[{"u":[{"e":[{".":10}]}]},13],"d":[{"e":[{"m":[{".":10}]}]},13],"n":[{"e":[{".":13}]},13],"s":10,"b":13,"c":[{"h":11},13],"f":13,"g":13,"l":9,"m":13,"r":9,"p":[{"h":11},13],"t":[{"h":11,"l":33,"n":10,"p":34,"q":33,"s":33,"t":33,".":13},13],".":13},27],"p":[{"s":[{"i":[{"c":11}]},13],"n":[{"e":[{"u":11}]},13],"h":[{"p":13,"t":13},28],"l":9,"p":13,"r":9,"t":[{"r":11},13],"z":13,".":13},27],"n":[{"e":[{".":12}],"b":13,"c":13,"d":13,"f":13,"g":13,"l":13,"m":13,"n":13,"p":13,"q":13,"r":13,"s":[{"m":0,"f":0},13],"h":13,"t":13,"x":30,".":13},27],"a":[{"u":[{"a":14,"e":14,"i":14,"o":14,"u":14}],"l":[{"u":[{"a":0,"e":0,"i":0,"o":0,"u":0}]}],"a":14,"i":[{"s":14,"a":14,"e":14,"o":14,"u":14}],"e":[{"a":18,"o":18,"u":18}],"m":[{".":13,"u":[{"i":0}]}],"t":[{".":13}],"s":[{".":13}],"n":[{"s":[{".":13}],"t":[{".":20}],"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}],"x":[{".":13}],"r":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}]}],"e":[{"u":[{"a":14,"e":14,"i":[{"u":[{"e":26,"i":26,"o":26}]},14],"o":15,"u":14,"s":[{".":21}]}],"l":[{"u":[{"e":0}]}],"e":14,"a":14,"o":14,"i":[{"a":14,"e":14,"u":15}],"s":[{".":13}],"t":[{".":13}],"m":[{".":13}],"x":[{".":13}],"n":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}],"r":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}]}],"i":[{"u":[{"a":14,"e":14,"i":[{".":17,"a":16,"u":[{"a":25,"e":25,"i":25,"o":25,"u":25}]},14],"o":14,"u":14,"m":[{".":17}],"r":[{".":17}],"n":[{"t":[{".":17}]}]}],"l":[{"u":[{"a":0,"e":0,"i":0,"o":0,"u":0}]}],"i":17,"o":[{"i":[{"u":24},18]}],"s":[{".":13}],"m":[{".":13}],"t":[{".":13}],"x":[{".":13}],"y":9,"n":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}],"r":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}]}],"o":[{"u":[{"a":14,"e":14,"i":14,"o":14,"u":14}],"l":[{"u":[{"a":0,"e":0,"i":0,"o":0,"u":0}]}],"o":14,"i":[{"a":14,"e":14,"o":14,"u":14}],"x":[{".":13}],"n":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}],"r":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}]}],"u":[{"u":[{"a":14,"e":14,"i":14,"o":14,"u":16}],"i":[{"u":[{"a":9,"e":9,"i":9,"o":9},14],"a":18,".":13}],"l":[{"u":[{"a":0,"o":0,"u":0}]}],"x":[{".":13}],"o":[{"u":19}],"n":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}],"r":[{"u":[{"a":37,"e":37,"i":37,"o":37,"u":37}]}]}],"c":[{"u":19,"c":13,"h":28,"l":9,"m":13,"n":13,"q":13,"r":9,"s":13,"t":13,"z":13,".":13},27],"y":[{"x":[{".":13}],"s":[{".":13}],"c":[{"n":16}]}],"t":[{"r":[{"u":[{"u":[{"s":[{".":22}],"m":[{".":23}]}]}]},9],"b":13,"c":13,"d":13,"f":13,"g":13,"h":28,"l":9,"m":13,"n":13,"p":13,"q":13,"t":13,".":13,"i":[{"n":[{"u":[{"i":36}]}]}]},27],"b":[{"b":13,"d":13,"h":13,"l":9,"m":13,"n":13,"p":13,"r":9,"t":13,"s":[{"t":16},13],".":13},27],"d":[{"d":13,"g":13,"f":13,"m":13,"r":9,"s":13,".":13},27],"f":[{"f":13,"l":9,"n":13,"r":9,"t":13,".":13},27],"g":[{"g":13,"d":13,"f":13,"l":9,"m":13,"n":13,"r":9,"s":13,".":13,"e":[{"n":[{"u":[{"a":36}]}]}]},27],"h":[{"p":13,"t":13,".":13},27],"k":27,"l":[{"b":13,"c":13,"d":13,"f":[{"t":16},13],"g":13,"k":13,"l":13,"m":13,"n":13,"p":13,"q":13,"r":13,"s":13,"t":13,".":13},27],"m":[{"m":13,"b":13,"d":13,"l":13,"n":13,"p":13,"q":13,"r":13,"s":13,"t":13,".":13},27],"q":[{"u":31}],"r":[{"b":13,"c":13,"d":13,"f":13,"g":13,"h":9,"l":13,"m":13,"n":13,"p":13,"q":13,"r":10,"s":13,"t":13,"z":13,".":13,"x":32,"u":[{"s":[{".":84}]}]},27],"x":[{".":13,"a":35,"e":35,"i":[{"t":[{".":35}]},35],"o":35,"y":[{"s":[{"t":36}]},35],"u":[{"a":31,"e":31,"i":31,"o":31,"u":31,".":35,"m":[{".":35}],"s":[{".":35}]}]},14],"z":[{".":13},27]}`,[]];export{e as LaXClassic};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`033,021,023,043,02,0212,02101,0214,034,0043,0054,0032,00302,00543,00503,003,045,02334,00002,0002,0343,0003,005,0252,00003,00004,000043,00023,00001,000032,00032,000003,032,054,052,00405,004,0000041,00000002,0000000234,00000054,00000454,0023,001,0021,00323,0012,00654,00634,00432,000322,00054,00454,000045,0052,0034,0065,00212,002,0000045,0076,0233,04,05,06,000034,03,0302,00000004,000002,0000034,000023,0000002,0000343,0000234,0000033,00232,0000054,00021,0004,0016,002121,0041,0063,0045,004123,00231,0056,0005,003432,00234,00345,0021232,00272,002300021,00043,00443,0001,00052,0000021,000001,0000032,000101,0002103,0002102,000323,00025,00036,00034,00000023,0002323,00065,00063,0025,00430434,005402,000021,000214,0000023,00004323,000000212,000021032,00002132,00002123,0000232,000000034,0000454,00002121,0000254,0000210032,00012,000001212,00000121,0000012,0000003,0323,01,006,2,1,4,403,23,22,0202,0223,000005,6,3,0006,0007,0008,202,32,43,104,1003,1005,21,041,203,65,00254,024,205,012,8`,`{".":[{"a":[{"b":[{"æ":[{"q":0}],"a":[{"l":[{"i":1}],"u":[{"u":1}]}],"c":2,"e":[{"o":1,"r":1,"s":3,"u":1,"ú":1}],"é":[{"r":1,"u":1}],"f":[{"u":4}],"í":1,"i":[{"c":1,"e":[{"c":5,"r":2}],"é":[{"c":5,"r":2}],"g":1,"i":5,"í":5,"n":6,"r":1,"t":1,"u":7,"ú":7,"v":1}],"j":4,"l":2,"o":[{"l":1,"m":1,"r":[{"t":1},1]}],"ó":[{"l":1,"r":1}],"r":[{"a":[{"h":8}],"u":2},2],"s":[{"c":[{"e":10,"é":10,"i":[{"s":10,"n":10},10],"í":[{"n":10},10]},9],"e":[{"n":11}],"é":[{"n":11}],"i":[{"d":13,"l":14,"m":14},12],"o":[{"n":10},15],"ó":[{"n":10},15],"t":[{"e":[{"m":9,"n":11,"r":9}],"é":[{"m":9,"r":9}],"i":[{"n":9}],"í":[{"n":9}],"r":9,"u":9,"ú":9}],"u":[{"m":14},12]}],"u":[{"n":[{"d":2}],"s":2,"t":2}],"ú":[{"n":[{"d":2}],"t":2}]}],"d":[{"æ":[{"q":16},8],"a":[{"m":[{".":8}],"s":[{"c":[{"r":17}]}]}],"e":[{"p":[{"s":8}],"r":18}],"f":[{"u":4}],"i":[{"a":[{"b":20},19],"á":[{"b":20},19],"e":[{"u":21},19],"é":19,"i":11,"í":11,"o":19,"p":[{"i":[{"s":[{"c":16}]}],"í":[{"s":[{"c":16}]}]},8],"s":[{".":22}],"t":[{".":22}],"u":11,"ú":11}],"í":[{"p":8}],"o":[{"l":[{"e":3}],"n":8}],"ó":[{"n":8}],"r":[{"a":[{"n":8}],"á":[{"n":8}]}],"s":[{"c":[{"r":11}],"i":15,"t":23,"u":[{"e":24}]}],"u":[{"a":20,"á":20,"l":16,"r":[{"n":8}]}],"y":8,"ý":8},2],"l":[{"t":[{"e":[{"r":[{"c":25,"n":25,"p":25,"t":25,"u":[{"t":26}],"ú":[{"t":26}]},24]}],"é":[{"r":[{"c":25,"n":25,"p":25,"u":[{"t":26}]},24]}]}]}],"n":[{"i":[{"m":[{"a":[{"d":27}]}]}],"t":[{"i":[{"m":[{"n":29}]},28]}]}],"p":[{"e":[{"r":[{"u":30}]}]}],"r":[{"c":[{"h":[{"i":[{"e":31}]}]}]}],"s":[{"c":32,"p":[{"i":[{"d":3}],"e":[{"r":[{"g":33,"n":33},3]}]},32],"t":[{"e":[{"r":[{"n":33}]}],"i":[{"p":33}],"r":33,"u":33,"ú":33},34]}]}],"á":[{"b":[{"e":[{"o":1}],"i":[{"g":2,"i":5,"t":1}],"l":[{"u":2}],"r":[{"a":[{"h":8}]},2],"s":[{"c":9,"i":[{"d":13}],"o":[{"n":10}],"t":[{"i":[{"n":9}],"r":9}]}]}],"d":[{"i":[{"a":19,"o":19,"p":8,"u":19}],"r":[{"a":[{"n":8}]}],"s":[{"t":[{"r":23}]}],"y":8},2],"l":[{"t":[{"e":[{"r":24}]}]}],"s":[{"c":32,"p":[{"i":[{"d":3}],"e":[{"r":3}]},32]}]}],"b":[{"e":[{"n":[{"i":[{"a":25}]}],"t":[{"h":[{"l":35}]}]}],"é":[{"n":[{"i":[{"a":25}]}],"t":[{"h":[{"l":35}]}]}]},4],"c":[{"e":[{"u":[{".":36}]}],"i":[{"r":[{"c":[{"u":[{"m":[{"i":[{"a":38,"á":38,"e":38,"i":38,"í":38,"n":[{"i":[{"i":39}]}],"o":38,"u":38}],"s":40},37]}],"ú":[{"m":[{"s":41},37]}]}]}],"s":42}],"o":[{"e":[{"l":[{"e":[{"c":11}],"i":[{"g":11}]}],"m":[{"e":[{"n":15}]}],"n":44,"r":11,"x":[{"s":29},45]},43],"g":[{"n":[{"o":[{"s":11}],"ó":[{"s":11}]}]}],"i":[{"e":46,"u":21},43],"m":[{"e":[{"d":42,"s":[{".":42}]}],"é":[{"d":42}],"i":[{"t":42}],"í":[{"t":42}]}],"n":[{"a":11,"á":11,"e":11,"é":11,"i":[{"a":18,"c":21,"e":[{"c":47},18],"é":[{"c":47}],"i":48,"í":48,"u":49,"ú":49},11],"í":11,"o":11,"ó":11,"s":[{"c":[{"r":30}],"p":50,"t":51}],"u":11,"ú":11},44]}],"ó":[{"m":[{"e":[{"d":42}],"i":[{"t":42}]}],"n":[{"i":[{"u":49}],"s":[{"c":[{"r":30}],"p":50,"t":51}]},44]}],"u":[{"m":[{"s":[{"c":[{"r":52}]}]}],"s":[{"p":36}]}]},4],"d":[{"e":[{"í":[{"n":43},43],"i":[{"n":43,"t":43}],"p":[{"e":[{"r":53}],"é":[{"r":53}]}],"s":[{"c":11,"p":11,"q":11,"t":[{"i":[{"t":54,"l":54}],"í":[{"t":54,"l":54}],"r":[{"u":54,"ú":54}]}]}],"u":[{"t":[{"e":[{"r":36}]}]}]}],"é":[{"i":43,"s":[{"p":11,"t":[{"r":[{"u":54}]}]}]}],"i":[{"g":[{"n":[{"o":[{"s":[{"c":11}]}]}]}],"i":[{"u":55,"ú":55}],"œ":15,"r":[{"i":[{"m":44}],"í":[{"m":44}]}],"s":[{"c":[{"e":[{"d":10,"n":10,"p":10,"r":10,"s":10}],"é":[{"d":10,"n":10,"p":10,"r":10,"s":10}],"i":[{"d":10,"n":10,"p":10,"s":[{"s":10}],"t":10}],"í":[{"d":10,"n":10,"p":10,"s":[{"s":10}]}],"r":[{"e":56,"é":56,"i":[{"m":56}],"í":[{"m":56}],"u":[{"c":56},56],"ú":[{"c":56}]},10]}],"e":[{"r":[{"t":10}]}],"é":[{"r":[{"t":10}]}],"i":[{"c":24},57],"í":[{"c":24},57],"j":58,"p":[{"e":[{"n":56,"r":[{"e":59,"i":59,"s":60,"g":60},56]},10],"é":[{"n":56,"r":[{"e":59,"i":59,"s":60,"g":60},56]},10],"i":10,"í":10}],"t":[{"a":10,"á":10,"i":[{"n":[{"e":56},10],"r":10}],"í":[{"n":[{"e":56},10],"r":10}],"o":[{".":10}],"r":[{"i":[{"c":10,"n":10}],"í":[{"c":10,"n":10}]}]}]},9],"u":15,"ú":15}],"í":[{"s":[{"c":[{"i":[{"t":10}]}]},9]}]}],"e":[{"l":[{"e":[{"u":[{"t":[{"h":19}]}]}],"é":[{"u":[{"t":[{"h":19}]}]}]}],"t":[{"e":[{"n":2}],"i":[{"a":[{"m":61}],"á":[{"m":61}]}]}],"u":[{"m":63,"n":[{"u":64},63],"s":[{".":63}]},62],"ú":[{"m":63,"n":[{"u":64},63]},62],"x":[{"e":[{"d":8,"g":[{"e":[{"t":8}],"é":[{"t":8}]}]}],"é":[{"d":8}],"o":[{"d":8,"r":[{"c":8}]}],"ó":[{"d":8}],"s":[{"c":10,"p":19,"t":54}]},2]}],"é":[{"t":[{"e":[{"n":2}],"i":[{"a":[{"m":61}]}]}],"u":62,"x":[{"e":[{"d":8}],"o":[{"d":8}],"s":[{"c":10,"p":19,"t":54}]},2]}],"f":4,"g":4,"h":[{"a":[{"r":[{"u":[{"s":[{"p":65}]}],"ú":[{"s":[{"p":65}]}]}]}],"e":[{"i":[{".":15}],"u":[{".":15}]}],"i":[{"e":58,"é":58}],"u":[{"c":[{"u":[{"s":25}]}],"i":[{"u":46,"ú":46}]}]},4],"i":[{"a":[{"i":[{"u":19}]},62],"á":62,"b":[{"i":66,"í":66,"o":66,"ó":66,"u":66,"ú":66}],"c":[{"o":66,"ó":66}],"d":[{"c":[{"i":4}],"e":[{"m":3,"n":63,"o":[{".":3,"q":3}],"ó":[{"q":3}],"s":3},32],"é":32,"i":[{"b":32,"o":[{"g":67}]}],"o":[{"l":32,"n":32}],"ó":[{"l":32,"n":32}],"u":[{"s":32}]},1],"e":[{"i":[{"u":19}]},4],"é":4,"i":66,"í":66,"n":[{"a":[{"b":[{"r":27,"s":29}],"c":[{"r":19}],"d":[{"f":19}],"n":32}],"á":[{"n":32}],"c":[{"i":[{"r":[{"c":[{"u":[{"m":68}]}]}]}]}],"d":[{"e":[{"p":9}],"é":[{"p":9}],"i":[{"g":[{"n":10},9],"p":[{"i":[{"s":9}],"í":[{"s":9}]}],"s":10}],"í":[{"g":[{"n":10}]}],"u":[{"c":10,"l":10,"m":10,"s":10,"x":10},9],"ú":[{"c":10,"l":10,"m":10,"s":10,"x":10},9]}],"e":[{"r":[{"s":32,"t":32}],"x":[{"s":[{"t":69}]},27]}],"f":[{"r":[{"a":[{"s":70}]}]}],"i":[{"e":19,"é":19,"í":19,"t":32,"u":19,"ú":19}],"o":[{"b":[{"o":[{"e":30}],"œ":27,"s":[{"c":29}]},27]}],"p":[{"e":[{"r":[{"i":[{"u":[{"r":71}]}]}]}]}],"s":[{"c":[{"r":55}],"p":11,"t":54}],"t":[{"e":[{"r":[{"e":[{"m":65,"n":65,"r":65,"s":[{"s":53},65],"t":65},71],"é":[{"m":65,"n":65,"r":65,"t":65},71],"i":[{"a":72,"á":72,"e":72,"é":72,"i":72,"í":72,"o":[{"r":73}],"ó":[{"r":73}],"u":[{"s":[{".":65}]},72],"ú":72},71],"í":[{"e":72},71],"s":[{"p":[{"e":74,"é":74}]}]}]}],"é":[{"r":[{"e":[{"r":65},71],"i":[{"o":[{"r":73}],"u":[{"s":[{".":65}]}]},71]}]}],"r":[{"o":[{"i":[{"e":75,"é":75}],"s":[{"p":70}]}]}]}],"u":[{"a":19,"e":19,"i":19,"l":[{"c":3},32],"o":19,"u":19}]},3],"o":4,"ó":4,"u":[{"s":[{"i":[{"u":[{"r":76}]}]}]},62],"ú":62}],"í":[{"d":[{"e":[{"o":[{".":3}]},32]}],"i":66,"n":[{"d":[{"i":[{"g":9}],"u":9}],"s":[{"t":54}],"t":[{"e":[{"r":[{"i":71}]}]}]},3]}],"j":4,"l":[{"a":[{"u":36}],"e":[{"c":[{"t":[{"i":[{"s":[{"t":77}]}]}]}]}],"o":[{"n":[{"g":[{"a":[{"n":78}],"á":[{"n":78}]}]}]}],"u":[{"x":[{"q":9,"u":11,"ú":11}]}]},4],"m":[{"a":[{"i":[{"u":79}]}]},4],"n":[{"e":[{"c":[{"o":[{"p":44}],"ó":[{"p":44}]}],"g":[{"o":[{"t":44}],"ó":[{"t":44}]}],"u":[{".":58,"t":58}]}],"é":[{"u":[{"t":58}]}]},4],"o":[{"b":[{"e":[{"d":32,"l":32,"s":32}],"é":[{"d":32}],"i":[{"a":19,"c":[{"i":3},32],"e":[{"r":21},19],"é":19,"g":32,"i":55,"í":55,"u":11,"ú":11}],"l":15,"œ":3,"r":[{"u":[{"z":8}]},15],"s":[{"c":[{"u":11},11],"t":54}],"t":[{"r":15}],"u":[{"a":19,"e":19,"i":19,"o":19}]},1]}],"ó":[{"b":[{"l":15,"r":[{"u":15},15],"s":[{"t":54}]},1]}],"p":[{"æ":[{"n":[{"i":[{"n":[{"s":42}]}],"í":[{"n":[{"s":42}]}]}]}],"a":[{"r":[{"a":[{"i":28,"u":28}]}]}],"e":[{"i":[{"o":[{"r":80}],"ó":[{"r":80}]}],"r":[{"a":[{"b":[{"s":[{"u":44}]}],"c":44,"d":[{"p":57,"u":81}],"e":44,"g":42,"m":[{"a":44,"á":44,"b":44}],"n":[{"t":9}],"r":44,"u":57}],"á":[{"c":44,"g":42,"m":[{"b":44}],"r":44}],"c":[{"o":[{"q":44}],"u":44}],"e":[{"a":[{"s":42},42],"á":[{"m":42,"t":42}],"c":9,"d":82,"f":[{"f":44}],"g":[{"r":83}],"l":44,"m":44,"n":[{"d":84,"n":9}],"o":42,"r":[{"r":9,"u":44}],"s":[{".":42}],"u":42,"ú":42,"x":85}],"é":[{"g":42,"m":44,"n":[{"d":84,"n":9}],"r":[{"r":9}]}],"h":42,"i":[{"a":[{"c":57,"n":55},55],"á":55,"b":42,"c":[{"l":55,"u":55}],"e":[{"b":55,"m":55,"n":[{"s":84},55],"r":[{"a":[{"t":87},84]},55],"i":31,"t":55,"c":57},42],"é":[{"b":55,"m":55,"n":55,"r":55,"t":55,"i":31},42],"i":[{"t":88}],"m":[{"i":10,"u":[{"s":56},10]},9],"n":[{"t":55},42],"o":[{"d":55},55],"ó":[{"d":55}],"p":[{"s":29,"t":29}],"r":[{"e":[{"m":[{"u":[{"r":55}],"i":55}],"n":[{"t":[{"u":[{"r":55}]}]}],"r":55,"t":[{".":84,"i":[{"s":84}]},55]}],"é":[{"m":[{"u":[{"r":55}],"i":55}],"n":[{"t":[{"u":[{"r":55}]}]}],"r":55,"t":[{"i":[{"s":84}]},55]}],"i":55},42],"s":[{"c":89,"t":29}],"t":[{"ú":[{"r":84}],"u":[{"r":84}],".":84,"o":[{"t":[{"e":84}]}],"ó":[{"t":[{"e":84}]}]},55],"u":[{"n":91},90],"ú":[{"n":91},90]},86],"í":[{"b":42,"c":[{"l":55,"u":55}],"e":[{"r":[{"a":[{"t":87},84]},55],"i":31},42],"m":[{"i":10,"u":[{"s":56},10]},9],"n":[{"t":55},42],"r":[{"e":[{"r":55}],"i":55},42],"s":[{"c":89}],"t":[{"u":[{"r":84}]},55]},86],"j":9,"o":[{"b":[{"s":[{"c":92}]}],"d":44,"f":44,"l":44,"p":44,"r":9}],"ó":[{"r":9}],"r":[{"e":[{"g":42}]}],"s":[{"c":76,"p":76,"t":93}],"t":[{"r":[{"a":[{"n":[{"s":94}]}],"á":[{"n":[{"s":94}]}]}]}],"u":[{"a":57,"e":57,"i":57,"l":55,"o":57},42],"ú":[{"l":55},42]}]}],"é":[{"r":[{"a":[{"g":42}],"e":[{"a":[{"m":42,"n":[{"t":42}],"t":42,"s":42}],"g":[{"r":83}],"o":42,"u":42}],"h":42,"i":[{"e":[{"n":[{"s":84}],"r":[{"a":[{"t":87},84]}]}],"i":[{"t":88},42],"m":9}],"j":9,"s":[{"t":93}]}]}],"n":[{"e":[{"u":79}]}],"o":[{"e":[{"t":15}],"s":[{"t":[{"e":[{"a":95,"á":95,"r":95}],"é":[{"r":95}],"h":[{"a":[{"c":96}]},95],"i":[{"l":95}],"í":[{"l":95}]}],"u":[{"í":24}]}],"t":[{"e":42,"é":42,"u":[{"e":9,"i":9,"é":9,"í":9}],"ú":[{"e":9,"i":9}]}]}],"ó":[{"s":[{"t":[{"e":[{"a":95,"r":95}]}],"u":[{"i":24}]}],"t":[{"e":42,"u":[{"i":9}]}]}],"r":[{"æ":[{"a":[{"u":30}],"e":[{"s":21}],"i":[{"a":25,"á":25,"e":[{"c":25}],"o":25,"i":25,"í":25,"u":25,"ú":25}],"s":[{"c":30,"p":30,"t":98}],"t":[{"e":[{"r":99}],"é":[{"r":99}]}]},97],"i":[{"m":[{"i":[{"s":[{"c":101}]},100]}]}],"o":[{"d":[{"e":[{"a":[{"m":[{"b":102}]},78],"o":78,"s":[{"s":103}],"u":[{"n":78}]}],"é":[{"s":[{"s":103}]}],"f":[{"u":104}],"i":[{"b":78,"d":105,"e":[{"n":78,"r":78}],"é":[{"n":78,"r":78}],"g":78,"i":[{".":27}],"m":78,"r":78,"s":27,"t":[{"i":107,"o":107,"r":107},106]}],"í":[{"d":105,"g":78,"r":78,"s":27,"t":[{"i":107,"o":107},106]}]}],"g":[{"n":30}],"i":[{"e":108,"é":108,"i":108,"í":108,"n":21}],"p":[{"t":[{"e":[{"r":109}],"é":[{"r":109}]}]}],"s":[{"c":30,"p":30,"t":[{"a":[{"n":51,"r":51}],"i":[{"t":95}],"r":[{"a":95,"á":95}]},98]}],"u":21}],"ó":[{"d":[{"e":[{"a":78,"o":78}],"i":[{"e":[{"n":78,"r":78}],"g":78,"i":[{".":27}]}]}],"i":[{"i":108}],"s":[{"p":30}]}]}],"s":[{"e":[{"u":[{"d":[{"o":79}]}]}]}]},4],"q":[{"u":[{"a":[{"m":[{"o":[{"b":110}]}]}],"e":[{"m":[{"a":[{"d":[{"m":110}]}],"á":[{"d":[{"m":110}]}]}]}],"i":[{"n":[{"c":[{"u":[{"n":71}]}]}]}],"o":[{"a":[{"d":[{"u":[{"s":[{"q":71}]}],"ú":[{"s":[{"q":71}]}]}]}],"d":[{"l":111}],"n":[{"i":[{"a":[{"m":112}]}]}],"t":[{"a":[{"n":78}],"e":[{"n":[{"n":78}]}],"l":[{"i":27}]}]}],"ó":[{"n":[{"i":[{"a":[{"m":112}]}]}]}]}]}],"r":[{"a":[{"y":58}],"e":[{"d":[{"a":[{"c":44,"d":44,"m":[{"b":44},44],"n":44,"r":[{"g":44},44],"u":57}],"á":[{"c":44,"d":44,"m":[{"b":44},44],"n":44,"r":[{"g":44},44],"u":57}],"e":[{"a":44,"á":44,"g":44,"m":44,"o":44,"u":44,"ú":44}],"é":[{"g":44,"m":44}],"h":44,"i":[{".":44,"b":44,"c":11,"e":[{"n":44,"r":44}],"é":[{"r":44}],"i":44,"í":44,"g":44,"m":[{"i":9},44],"n":44,"r":44,"s":113,"t":113,"v":44}],"í":[{"b":44,"e":[{"r":44}],"i":44,"m":44,"n":44,"r":44,"t":113,"v":44}],"o":[{"l":44,"p":44,"r":[{"d":44,"m":11,"n":44}]}],"ó":[{"l":44,"p":44,"r":[{"d":44,"n":44}]}],"u":[{"l":44,"n":44,"v":44}],"ú":[{"l":44,"n":44,"v":44}]}],"e":[{"x":19}],"i":[{"e":[{"c":11},43],"n":43,"p":[{"s":15}],"t":[{"e":15}]}],"p":[{"a":[{"u":18}]}],"s":[{"c":[{"r":11,"u":11,"ú":11}],"p":[{"u":[{"b":[{"l":[{"i":[{"c":114}]}]}]}],"ú":[{"b":[{"l":[{"i":[{"c":114}]}]}]}],"e":[{"c":11}],"é":[{"c":11}]},11],"t":[{"a":[{"g":54,"u":115},10],"á":10,"e":[{"r":54}],"é":[{"r":54}],"i":[{"b":54,"c":[{"u":83},54],"l":54,"n":54,"p":54,"t":10}],"í":[{"b":54,"n":54,"p":54,"t":10}],"o":54,"r":10}]}]}],"é":[{"d":[{"e":[{"a":44,"o":44,"u":44}],"i":[{"e":[{"n":44}],"i":44,"g":44,"m":44,"t":113}],"o":[{"l":44}]}],"s":[{"p":11,"t":[{"i":[{"t":10}],"r":10}]}]}]},4],"s":[{"a":[{"t":[{"a":[{"g":44}],"á":[{"g":44}],"i":[{"s":116}]}],"u":[{"l":[{".":15}]}]}],"e":[{"m":[{"e":[{"t":[{"i":[{"p":71}]}]}],"u":[{"n":42,"s":42}]}],"s":[{"c":[{"e":[{"n":55}],"u":[{"n":117}]}]}],"u":[{".":36}]}],"i":[{"c":[{"u":[{"t":44}]}],"s":[{"t":[{"e":[{"n":11}]}]}]}],"í":[{"c":[{"u":[{"t":44}]}]}],"m":4,"t":[{"a":[{"g":[{"n":30}]}]}],"u":[{"b":[{"i":[{"a":25,"á":25,"e":25,"é":25,"i":25,"í":25,"u":25,"ú":25}],"s":[{"c":[{"r":51}],"t":51}],"t":[{"e":[{"r":[{"h":118}]}]}],"u":[{"l":[{"c":84,"t":84},55]}]},42],"p":[{"e":[{"r":[{"a":[{"b":[{"a":29,"á":29,"e":29,"i":29,"í":29,"l":109,"o":29,"u":[{"m":119,"n":[{"d":119}]},29],"ú":[{"n":[{"d":119}]},29]},116],"c":116,"d":[{"i":[{"i":120,"í":120}],"s":[{"t":121}]},116],"g":116,"l":[{"l":116}],"m":[{"b":26},29],"n":[{"d":29}],"p":26,"r":[{"g":116}],"s":[{"c":116,"p":122,"t":122}],"t":[{"t":116}]}],"á":[{"b":[{"a":29,"e":29,"i":29,"l":109,"o":29,"u":29},116],"d":116,"g":116,"l":[{"l":116}],"m":[{"b":26}],"n":[{"d":29}]}],"æ":[{".":29},116],"b":[{"i":[{"b":116,"f":116,"l":116}]}],"c":116,"d":116,"e":[{"d":116,"f":[{"f":116}],"g":116,"l":116,"m":[{".":29,"i":[{"n":[{"i":[{".":29}]}]}],"u":29},116],"n":[{"t":29},116],"r":[{".":29,"e":[{".":29}],"i":[{"s":[{".":29}]}]},116],"s":[{".":31},116],"u":116,"v":116,"x":123}],"é":[{"f":[{"f":116}],"l":116,"m":[{"i":[{"n":[{"i":[{".":29}]}]}],"u":29},116],"n":[{"t":29},116],"s":116,"v":116}],"h":71,"i":[{".":65,"l":116,"m":[{"i":[{"n":[{"i":[{".":73}]}]}]},116],"n":[{"i":[{"i":125,"í":125}]},116],"o":73,"ó":73,"r":116,"s":[{".":65}],"u":[{"m":[{"e":126}]},73]},124],"í":[{"l":116}],"o":[{"b":[{"d":127,"r":123,"u":127,"ú":127}],"c":116,"p":116,"r":[{"d":26},29]}],"ó":[{"b":[{"r":123}],"c":116}],"s":[{"c":124,"p":124,"t":128,"u":[{"b":[{"s":[{"t":129}]}]}]}],"u":[{"m":[{".":65}],"s":[{".":29}]},71],"ú":71}]}],"é":[{"r":[{"a":[{"b":[{"u":29},116],"d":[{"s":[{"t":121}]},116],"g":116,"m":29,"r":[{"g":116}],"s":[{"p":122,"t":122}],"t":[{"t":116}]}],"æ":[{".":29},116],"b":[{"i":[{"b":116,"f":116,"l":116}]}],"c":116,"d":116,"e":[{"d":116,"f":[{"f":116}],"g":116,"m":116,"n":116,"r":[{"i":[{"s":[{".":29}]}]},116],"x":123}],"i":[{".":65,"o":73,"s":[{".":65}],"u":73},124],"s":[{"t":128}]}]}],"r":[{"a":[{"s":[{"c":101}]}]}]}],"s":[{"c":[{"r":10}],"p":[{"e":[{"c":11,"n":9}],"é":[{"c":11,"n":9}],"i":[{"c":11,"r":11}],"í":[{"c":11,"r":11}]}]}]}],"ú":[{"b":[{"i":[{"i":25}],"s":[{"t":51}],"u":[{"l":55}]},42],"p":[{"e":[{"r":[{"e":[{"s":[{".":31},116]}]}]}]}],"s":[{"p":[{"i":[{"c":11}]}]}]}]},4],"t":[{"a":[{"m":42}],"e":[{"r":[{"i":[{"u":57}],"p":[{"s":18}],"u":[{"n":44}],"ú":[{"n":44}]}],"t":[{"r":[{"a":[{"e":[{"t":101}],"g":[{"n":101}],"s":[{"t":101}]}]}]}],"u":[{"t":58}]}],"h":[{"e":[{"o":[{"g":[{"n":29}]},19],"s":[{"p":30,"t":30}]}],"i":[{"s":[{"b":30}]}]}],"r":[{"a":[{"i":[{"a":130,"e":130,"i":97}],"n":[{"s":[{"a":[{"b":[{"e":131,"é":131,"i":132,"í":132}],"c":[{"t":100}],"d":132,"u":133},72],"c":29,"e":[{"a":31,"n":29,"u":72,"ú":72},100],"i":[{"e":134,"é":134,"l":65},31],"í":[{"b":31,"l":65},31],"o":133,"u":[{"m":29},133]},18],"u":[{"e":78}]}]}],"á":[{"n":[{"s":[{"e":[{"a":31,"u":72},100],"i":[{"e":134,"i":70},31]},18]}]}],"i":[{"e":[{"n":21}]}]}]},4],"u":[{"n":[{"i":[{"a":[{"n":21}],"á":[{"n":21}],"u":[{"s":[{"c":[{"u":135}]}]}]}]}],"t":[{"e":[{"r":[{"u":[{"i":27}]}]}]}]}],"v":[{"e":[{"l":[{"u":[{"t":44}]}]}]}],"x":4,"z":[{"a":[{"i":[{"e":[{"u":42}]}]}],"e":[{"u":[{"g":[{"m":30}]}]}]},4]}],"a":[{"e":[{".":136}],"i":[{"e":58,"é":58,"i":36,"o":[{"r":[{".":137}]},58],"ó":58,"s":136,"t":[{".":66}],"u":[{"n":[{"t":[{".":36}]}]},58]}],"í":[{"s":136}],"m":[{"u":[{"i":2}]}],"u":[{"m":[{".":66}],"s":[{".":66}]},4],"ú":63,"x":[{".":138}],"y":4},136],"á":[{"i":[{"t":[{".":66}],"u":58}],"u":[{"m":[{".":66}],"s":[{".":66}]},4],"y":4},136],"æ":[{"a":66,"á":66,"e":66,"é":66,"i":66,"í":66,"o":66,"ó":66,"u":66,"ú":66},136],"ǽ":[{"a":66,"e":66,"i":66,"o":66,"u":66},136],"b":[{".":138,"b":138,"d":138,"h":138,"j":138,"l":4,"m":138,"n":138,"p":138,"r":4,"s":[{"t":32},138],"t":138,"u":[{"i":[{"s":[{".":15}]}],"u":15}]},139],"c":[{".":140,"c":138,"d":138,"h":[{".":138,"l":36,"m":141,"o":[{"e":21}],"r":36,"t":141},4],"i":[{"e":[{"n":[{"t":15}],"t":15}]}],"l":62,"m":138,"n":138,"q":138,"r":64,"s":138,"t":138,"u":[{"i":[{"ú":[{"s":79}]}],"l":[{"c":36,"n":36,"p":36}],"m":[{"b":36}],"n":[{"c":36,"t":36}],"r":[{"s":36}]},15],"ú":[{"l":[{"c":36,"n":36,"p":36}]}],"z":138},139],"d":[{".":138,"æ":[{".":4}],"a":[{"m":[{".":4}]}],"c":138,"d":138,"f":138,"g":138,"h":142,"i":[{"t":[{".":62}]}],"l":138,"m":138,"n":138,"p":138,"q":138,"r":4,"s":138,"u":[{"u":15}],"v":140,"w":142},139],"e":[{"a":[{"m":[{".":66}],"n":[{"t":[{".":63}]}],"t":[{".":66}]}],"i":[{"a":58,"á":58,"e":58,"é":58,"i":36,"í":58,"o":36,"s":[{".":66}],"u":[{"s":[{".":36}]},58],"ú":58}],"l":[{"u":[{"e":2}]}],"m":[{".":138}],"s":[{".":138,"r":2}],"t":[{".":138}],"ú":63,"x":[{".":138}],"y":66},136],"é":[{"a":[{"m":[{".":66}],"n":[{"t":[{".":63}]}],"t":[{".":66}]}],"i":[{"a":58,"e":58,"i":36,"o":36,"s":[{".":66}],"u":[{"s":[{".":36}]},58]}]},136],"ë":136,"f":[{".":138,"f":138,"l":4,"n":138,"r":4,"t":138},139],"g":[{".":138,"d":138,"e":[{"n":[{"u":[{"a":11}]}]}],"f":138,"g":138,"l":4,"m":138,"n":[{"e":[{".":62}]},4],"r":4,"s":138},139],"h":[{".":138,"m":66,"p":138,"t":138,"u":[{"c":[{"u":[{"s":113}]}]}]},139],"i":[{"e":[{"l":[{".":136}],"m":[{".":66,"s":[{".":66}]}],"n":[{"s":[{".":66}],"t":[{".":66}]}],"s":[{".":66}],"t":[{".":66}]}],"i":[{".":63,"s":[{".":66}],"t":[{".":63}]}],"m":[{".":143}],"o":[{"i":[{"u":144}],"r":[{".":63}]}],"s":[{".":143}],"t":[{".":143}],"u":[{"d":[{".":66}],"m":[{".":66}],"n":[{"t":[{".":66}]}],"r":[{".":66}],"s":[{".":66,"l":145,"v":145}]}],"ú":[{"s":[{"l":145,"v":145}]}],"x":[{".":143}]},136],"í":[{"a":63,"æ":63,"e":63,"i":63,"o":63,"u":63},136],"ï":136,"j":139,"k":139,"l":[{".":140,"a":[{"n":[{"g":[{"u":[{"i":[{".":146,"t":[{".":146}],"m":[{"u":[{"s":[{".":146}]}]}]}]}]}]}]}],"á":[{"n":[{"g":[{"u":[{"i":[{".":146,"t":[{".":146}],"m":[{"u":[{"s":[{".":146}]}]}]}]}]}]}]}],"b":138,"c":138,"d":138,"f":[{"t":32},138],"g":138,"k":138,"l":138,"m":138,"n":138,"p":138,"q":138,"r":138,"s":138,"t":140,"u":[{"i":[{"a":[{".":11}]}],"u":[{"n":43}],"ú":[{"n":43}]}],"ú":[{"i":[{"a":[{".":11}]}]}],"v":140,"z":140},139],"m":[{".":140,"b":138,"c":138,"e":[{"t":[{"i":[{"p":[{"s":9}]}]}]}],"d":138,"f":138,"l":138,"m":138,"n":138,"p":138,"q":140,"r":138,"s":138,"t":138,"v":147},139],"n":[{".":138,"b":138,"c":[{"o":[{"i":21}]},138],"d":140,"e":[{".":148}],"f":138,"g":[{"u":[{"a":149,"á":19,"æ":19,"ǽ":19,"e":[{"r":[{"a":150,"i":[{"s":151,".":151},150],"o":[{".":150}],"u":[{"n":[{"t":[{".":150}]}]}]}]},149],"é":[{"r":[{"u":[{"n":[{"t":[{".":150}]}]}]}]},149],"i":[{"a":95,"s":[{"s":[{"e":[{".":149}]},88],"t":88}]},79],"í":79,"o":149,"ó":149,"u":149,"ú":149}],"ú":[{"a":150,"æ":150,"e":150,"i":150,"o":150,"u":150}]},138],"h":138,"j":138,"l":138,"m":138,"n":138,"p":138,"q":138,"r":138,"s":[{"f":2,"m":2},138],"t":138,"u":[{"i":[{"s":[{".":15}]}]}],"v":140,"x":152,"z":138},139],"o":[{"i":[{"a":58,"e":58,"o":58,"u":58}],"u":[{"m":[{".":66}]}],"x":[{".":138}],"y":66},136],"ó":[{"i":[{"a":58,"e":58,"o":58,"u":58}]},136],"œ":136,"u":[{"s":[{"q":[{"u":[{"e":2}]}]}],"é":66,"e":[{".":66,"m":[{".":66}],"n":66,"s":[{".":66}],"t":[{".":66}]}],"i":[{".":138,"a":165,"e":165,"é":165,"o":165,"s":[{".":66}],"t":[{".":66}],"u":[{"s":[{".":36}]},58]}],"o":[{".":63,"u":[{"s":15},15],"ú":[{"s":15}]}],"u":[{"m":[{".":63}],"s":[{".":63}]}],"x":[{".":138}]},136],"p":[{".":138,"h":[{".":138,"a":[{"e":[{"l":21}]}],"p":[{"h":15},138],"t":138},4],"l":4,"n":[{"e":[{"u":153}]},138],"o":[{"t":[{"e":[{"n":42,"r":42,"s":42}],"é":[{"n":42,"r":42,"s":42}]}]}],"p":140,"r":4,"s":[{"i":[{"c":153}]},138],"t":[{"r":153},154],"z":138},139],"q":[{"u":[{"i":[{"a":156,"á":156,"æ":156,"ǽ":156,"e":156,"é":156,"o":156,"ó":156,"u":157,"ú":157}],"o":[{".":137}],"u":[{"m":[{".":137}]},137]},155]}],"r":[{".":140,"æ":[{".":4}],"b":138,"c":[{"h":[{"m":4}]},138],"d":138,"f":138,"g":138,"h":4,"i":[{"e":[{".":15}],"i":[{"t":[{".":62}]}]}],"l":138,"m":138,"n":138,"p":138,"q":138,"r":154,"s":138,"t":138,"u":[{"i":[{"s":[{".":15}],"t":[{".":15}]}],"s":[{".":62}]}],"v":140,"x":158,"z":138},139],"s":[{".":140,"b":138,"c":[{"æ":153,"ǽ":153,"e":153,"é":153,"i":153,"í":153,"œ":153,"y":153,"ý":153},138],"d":[{"e":[{"m":[{".":142}]}]},138],"f":138,"g":138,"l":138,"m":138,"n":[{"e":[{".":138}]},138],"p":138,"q":[{"u":[{"e":[{".":142}]}]},138],"r":138,"s":[{"e":[{".":66}]},140],"t":[{".":138,"k":159,"l":2,"n":142,"p":160,"q":2,"r":[{"a":[{".":161}],"i":[{".":161,"s":[{".":161}]}],"o":[{".":161,"r":[{"u":[{"m":[{".":161}]}]}]}],"ó":[{"r":[{"u":[{"m":[{".":161}]}]}]}],"u":[{"m":[{".":161}]}]}],"s":2,"t":2},140],"u":[{"b":[{"s":[{"t":[{"a":[{"n":162}]}]}]}],"i":[{"s":[{".":15}]}]}],"v":138},139],"t":[{".":140,"b":138,"c":138,"d":138,"f":138,"g":138,"h":[{".":138,"m":36,"o":[{"s":[{"t":108}]}],"ó":[{"s":[{"t":108}]}],"p":164,"s":164},163],"i":[{"n":[{"u":[{"i":11}]}],"o":[{".":43}]}],"í":[{"p":[{"s":158}]}],"l":4,"m":138,"n":138,"p":138,"q":138,"r":[{"u":[{"u":[{"m":[{".":21}],"s":[{".":21}]}]}]},62],"s":138,"t":138},139],"ú":[{"a":63,"e":63,"i":63,"o":63,"u":63},136],"ü":136,"v":139,"x":[{".":138,"i":[{"t":[{".":4}]}],"q":138,"t":138,"u":[{"i":[{"t":[{".":2}]}],"m":[{".":4}],"s":[{".":4}]}],"ú":[{"i":[{"t":[{".":2}]}]}],"y":[{"s":[{"t":9}]},4]},139],"y":[{"a":66,"e":66,"i":66,"o":66,"u":66,"æ":66,"y":66,".":138,"s":[{".":138}],"x":[{".":138}]},136],"ý":136,"z":[{".":138,"z":138},139],"́":166}`,[]];export{e as LaXLiturgic};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{p as i,t as a,u as o}from"./chunk-KS7C4IRE-BPb7KheU.js";import{i as s,l as c,n as l,o as u}from"./locale-store-B4o4aDCg.js";import{t as d}from"./resource-unavailable-Dccp_uis.js";import{a as f,i as p,n as m,o as h,r as g,s as _,t as v}from"./dist-CY7CS_D3.js";import{t as y}from"./arrow-left-D880xG-P.js";import{t as b}from"./check-DUBLcKHA.js";import{n as x,r as S}from"./popover-select-CLsphyzA.js";import{t as C}from"./circle-check-C23XjkUj.js";import{t as w}from"./circle-x-DFsCKeya.js";import{t as T}from"./clock-3-DnrAnuyZ.js";import{t as E}from"./external-link-DjqjBmc3.js";import{n as D,r as ee,t as te}from"./power-off-CwwQ7Gp7.js";import{t as ne}from"./folder-kanban-CpLlFI1o.js";import{t as re}from"./history-DXH_9jsE.js";import{t as O}from"./loader-circle-CifKLtgG.js";import{t as ie}from"./panel-left-C8MqSXRZ.js";import{t as ae}from"./power-ZI-pBczI.js";import{t as oe}from"./refresh-cw-BRlGaq2w.js";import{t as se}from"./rotate-ccw-JM1TBLpp.js";import{t as ce}from"./shield-check-BU58siTV.js";import{t as le}from"./sparkles-DHlfQFAF.js";import{t as ue}from"./trash-2-DusmjVPV.js";import{t as de}from"./triangle-alert-2JXFNNKU.js";import{t as fe}from"./x-B_N4OPjy.js";import{t as k}from"./skeleton-DzdOeGYz.js";import{c as A,d as pe,p as me}from"./product-delivery-4gEqUIsK.js";import{a as he,i as ge}from"./vendor-swr-CdRzEUwF.js";import{t as j}from"./button-ChmVQg9O.js";import{i as _e}from"./theme-store-C7t81hG7.js";import{t as ve}from"./page-header-store-D_2QZ6Ps.js";import{n as ye,r as M,t as be}from"./extension-message-router-TTAx3dPv.js";import{i as xe,n as Se,r as Ce,t as N}from"./extension-authoritative-grants-DAfeCx4B.js";import{i as we,n as Te,r as Ee,t as De}from"./runtime-health-zDkHcOZO.js";import{a as Oe,c as ke,d as Ae,f as je,l as Me,n as Ne,r as Pe,s as Fe,t as Ie,u as Le}from"./api-oA0NOKLI.js";import{r as P}from"./date-formatters-DukWSVwc.js";import{n as Re,t as ze}from"./tab-completion-input-CxtEp0aP.js";import{t as Be}from"./page-context-capture-button-Bd__UBi9.js";var F=e(t(),1);function Ve(e){return e.replace(/^(?:例如\s*[::]?|for example\s*[::]?|e\.g\.\s*)/i,``).replace(/…$/,``).trim()}var I=r();function He({appId:e,sourceHash:t,mode:n,resourceScopes:r,scenarioId:i,runKey:a,title:o,hidden:d=!1,onMessage:f}){let p=c(e=>e.baseUrl),m=c(e=>e.conversationId),[h,g]=(0,F.useState)(null),_=h?.hostBaseUrl===p&&h?.hostNamespace===m&&h.appId===e&&h.sourceHash===t&&h.mode===n&&h.hostRunKey===a&&h.hostScopes===r&&h.hostScenario===i?h:null,[v,y]=(0,F.useState)(``),b=(0,F.useRef)(null),x=(0,F.useRef)(f);x.current=f;let S=(0,F.useRef)(null),C=l(e=>e.language),w=_e(e=>e.resolved),T=e=>{let t=e instanceof Error?e.message:String(e);y(t),x.current({source:`xopc-local-app-preview`,version:1,type:`error`,detail:{kind:`runner_error`,message:t.slice(0,500)}})},E=(0,F.useRef)(T);E.current=T,(0,F.useEffect)(()=>{let o=!0,l,d=new AbortController,f=e=>c.getState().baseUrl===p?u(s(`/api/local-app-previews/sessions/${encodeURIComponent(e)}`),{method:`DELETE`,keepalive:!0}).catch(()=>{}):Promise.resolve(),h=()=>{o=!1,d.abort(),l&&f(l.id)};return window.addEventListener(`pagehide`,h),g(null),y(``),(async()=>{for(let a=0;;a++)try{return await u(s(`/api/local-app-previews/${encodeURIComponent(e)}/sessions`),{method:`POST`,signal:d.signal,body:JSON.stringify({sourceHash:t,mode:n,resourceScopes:r,scenarioId:i})})}catch(e){let t=e instanceof Error?e.message:String(e);if(!o||a>=2||!/Too many isolated preview workers|Close another preview/.test(t)||(await new Promise(e=>{let t=()=>{clearTimeout(n),d.signal.removeEventListener(`abort`,t),e()},n=setTimeout(t,1e3);d.signal.addEventListener(`abort`,t,{once:!0})}),!o))throw e}})().then(s=>{if(l=A.parse(s.session),l.appId!==e||l.sourceHash!==t||l.mode!==n)throw Error(`Preview authorization does not match the requested draft`);if(!o){f(l.id);return}g({...l,hostBaseUrl:p,hostNamespace:m,hostRunKey:a,hostScopes:r,hostScenario:i})}).catch(e=>{o&&E.current(e)}),()=>{window.removeEventListener(`pagehide`,h),h()}},[e,t,n,r,i,a,p,m]),(0,F.useLayoutEffect)(()=>{let e=b.current;if(!_||!e)return;let t=new be;ye(t),S.current=t,t.registerIframe(_.extensionId,e,_.permissions,_.sourceHash,_.id,!0,_.id);let n=Ee(e,e=>{!e||typeof e!=`object`||`runId`in e&&e.runId!==_.id||x.current({...e,sourceHash:_.sourceHash})},{runId:_.id,beforeRun:async()=>{t.sendInit(_.extensionId,M(_e.getState().resolved),l.getState().language),await t.whenIdle(_.extensionId)},onError:e=>E.current(e)});return()=>{n(),t.dispose(),S.current=null}},[_]),(0,F.useEffect)(()=>{_&&S.current?.sendEvent(_.extensionId,`theme.changed`,M(w))},[_,w]);let D=_?`${s(_.previewUrl)}${_.previewUrl.includes(`?`)?`&`:`?`}xopcHostRun=1&xopcPreviewMode=${_.mode}${i?`&xopcAcceptance=1&xopcScenario=${encodeURIComponent(i)}`:``}`:``;return v&&!d?(0,I.jsx)(`p`,{role:`alert`,className:`p-4 text-sm text-danger`,children:v}):_?(0,I.jsx)(`iframe`,{ref:b,title:o,src:D,sandbox:`allow-scripts`,referrerPolicy:`no-referrer`,"aria-hidden":d||void 0,tabIndex:d?-1:void 0,lang:C,className:d?`pointer-events-none fixed left-[-200vw] top-0 h-[720px] w-[1024px] opacity-0`:`min-h-0 w-full flex-1 bg-white`,onError:()=>E.current(Error(`Preview document failed to load`)),onLoad:()=>S.current?.sendInit(_.extensionId,M(_e.getState().resolved),C)},_.id):d?null:(0,I.jsx)(k,{className:`min-h-0 w-full flex-1`})}var Ue=n();function We(e){let t=(0,Ue.c)(36),{scenarios:n,results:r,runningTarget:i,zh:a,onRunAll:o,onRunScenario:s,onAskCoder:c}=e;if(!n.length)return null;let l=a?`产品场景`:`Product scenarios`,u;t[0]===l?u=t[1]:(u=(0,I.jsx)(`p`,{className:`text-xs font-medium text-fg`,children:l}),t[0]=l,t[1]=u);let d=a?`${n.length} 个关键用户路径`:`${n.length} critical user journey${n.length===1?``:`s`}`,f;t[2]===d?f=t[3]:(f=(0,I.jsx)(`p`,{className:`mt-0.5 text-[11px] text-fg-subtle`,children:d}),t[2]=d,t[3]=f);let p;t[4]!==u||t[5]!==f?(p=(0,I.jsxs)(`div`,{children:[u,f]}),t[4]=u,t[5]=f,t[6]=p):p=t[6];let m=i!==null,h;t[7]===i?h=t[8]:(h=i===`all`?(0,I.jsx)(O,{className:`size-3 animate-spin`}):(0,I.jsx)(oe,{className:`size-3`}),t[7]=i,t[8]=h);let g=a?`全部重跑`:`Run all`,_;t[9]!==o||t[10]!==m||t[11]!==h||t[12]!==g?(_=(0,I.jsxs)(j,{variant:`ghost`,className:`h-7 rounded-lg px-2 text-[11px]`,onClick:o,disabled:m,children:[h,g]}),t[9]=o,t[10]=m,t[11]=h,t[12]=g,t[13]=_):_=t[13];let v;t[14]!==p||t[15]!==_?(v=(0,I.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[p,_]}),t[14]=p,t[15]=_,t[16]=v):v=t[16];let y=a?`产品场景验收结果`:`Product scenario acceptance results`,b;if(t[17]!==c||t[18]!==s||t[19]!==r||t[20]!==i||t[21]!==n||t[22]!==a){let e;t[24]!==c||t[25]!==s||t[26]!==r||t[27]!==i||t[28]!==a?(e=e=>{let t=r[e.id],n=i===`all`||i===e.id?`running`:t?.status??`pending`;return(0,I.jsx)(`li`,{className:`py-2.5 first:pt-1`,children:(0,I.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,I.jsx)(`span`,{className:`mt-0.5 shrink-0`,"aria-hidden":!0,children:n===`running`?(0,I.jsx)(O,{className:`size-3.5 animate-spin text-accent`}):n===`passed`?(0,I.jsx)(C,{className:`size-3.5 text-success`}):n===`failed`?(0,I.jsx)(w,{className:`size-3.5 text-danger`}):(0,I.jsx)(T,{className:`size-3.5 text-fg-subtle`})}),(0,I.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsx)(`p`,{className:`truncate text-[11px] font-medium text-fg`,children:e.name}),(0,I.jsx)(`p`,{className:`mt-0.5 text-[10px] text-fg-subtle`,children:a?`${e.stepCount} 个步骤`:`${e.stepCount} step${e.stepCount===1?``:`s`}`})]}),(0,I.jsx)(j,{variant:`ghost`,className:`size-7 shrink-0 rounded-lg p-0`,onClick:()=>s(e.id),disabled:i!==null,"aria-label":a?`重跑${e.name}`:`Rerun ${e.name}`,title:a?`单独重跑`:`Rerun scenario`,children:(0,I.jsx)(oe,{className:`size-3`})})]}),n===`running`?(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`正在隔离预览中执行…`:`Running in an isolated preview…`}):t?.status===`failed`?(0,I.jsxs)(`div`,{className:`mt-1.5`,children:[(0,I.jsx)(`p`,{className:`text-[11px] leading-4 text-danger`,children:t.message}),(0,I.jsxs)(j,{variant:`ghost`,className:`mt-1 h-7 rounded-lg px-2 text-[11px] text-danger hover:text-danger`,onClick:()=>t.failureKind===`runner`?s(e.id):c(e,t),children:[(0,I.jsx)(D,{className:`size-3`}),t.failureKind===`runner`?a?`恢复资源并重试`:`Retry preview`:a?`让 Coder 修复`:`Ask Coder to fix`]})]}):t?.status===`passed`?(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`场景已通过`:`Scenario passed`}):(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`等待运行`:`Waiting to run`})]})]})},e.id)},t[24]=c,t[25]=s,t[26]=r,t[27]=i,t[28]=a,t[29]=e):e=t[29],b=n.map(e),t[17]=c,t[18]=s,t[19]=r,t[20]=i,t[21]=n,t[22]=a,t[23]=b}else b=t[23];let x;t[30]!==y||t[31]!==b?(x=(0,I.jsx)(`ul`,{className:`mt-2 divide-y divide-edge-subtle`,"aria-label":y,children:b}),t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;return t[33]!==v||t[34]!==x?(S=(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[v,x]}),t[33]=v,t[34]=x,t[35]=S):S=t[35],S}function Ge({extensionId:e,name:t,zh:n}){let{data:r,error:i,mutate:a}=ge([`local-app-access`,e],()=>Se(e)),[o,c]=(0,F.useState)(!1),[l,d]=(0,F.useState)(!1),[f,p]=(0,F.useState)(``);async function m(t){if(!(!r?.manifestDigest||l)){d(!0),p(``);try{await N(e,r.manifestDigest,t),await a(),c(!1)}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1)}}}async function h(){if(!(!r?.manifestDigest||l)){d(!0),p(``);try{await u(s(`/api/extensions/${encodeURIComponent(e)}/ui-grant`),{method:`DELETE`,body:JSON.stringify({manifestDigest:r.manifestDigest})}),await a()}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1)}}}return(0,I.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[!r&&!i?(0,I.jsx)(k,{className:`h-12`}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`p`,{className:`text-xs text-fg-muted`,children:r?.granted?n?`已授权,可随时缩小数据范围或撤销访问。`:`Access granted. You can narrow the data scope or revoke access.`:n?`尚未授权访问。`:`Access has not been granted.`}),(0,I.jsx)(j,{className:`w-full`,disabled:!r||l,onClick:()=>c(!0),children:n?`管理数据访问范围`:`Manage data access`}),r?.granted?(0,I.jsx)(j,{variant:`ghost`,className:`w-full text-danger`,disabled:l,onClick:()=>void h(),children:n?`撤销应用授权`:`Revoke app access`}):null]}),f||i?(0,I.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:f||String(i)}):null,r?(0,I.jsx)(Ce,{open:o,onOpenChange:c,extensionId:e,extensionName:t,permissions:r.permissions,localApp:!0,resourceScopes:r.resourceScopes,error:f,confirmDisabled:l||!r.manifestDigest,onConfirm:e=>void m(e)}):null]})}function Ke(e,t){return P(e,t)}function qe(e,t,n){return!!(t&&n&&e.sourceHash===t&&e.status===n.status&&e.interactiveCount===n.interactiveCount&&JSON.stringify(e.checks)===JSON.stringify(n.checks))}function Je(){let{appId:e}=i(),t=e===`new`,n=l(e=>e.language)===`zh`,r=l(e=>e.language),s=c(e=>e.baseUrl),u=c(e=>e.conversationId),w=JSON.stringify([e,s,u]),T=o(),{mutate:A}=he(),_e=ve(e=>e.setPageHeader),ye=ve(e=>e.clearPageHeader),{data:M,isLoading:be,error:Se,mutate:Ce}=ge(!t&&e?[`local-app`,e]:null,()=>Ne(e)),{data:N,isLoading:Ee,mutate:P}=ge(!t&&e?[`local-app-validation`,e]:null,()=>je(e)),[Ue,Je]=(0,F.useState)(``),[Ye,Xe]=(0,F.useState)(``),[L,R]=(0,F.useState)(!1),[Ze,z]=(0,F.useState)(null),[Qe,$e]=(0,F.useState)(!1),[et,tt]=(0,F.useState)(!1),[nt,rt]=(0,F.useState)(0),[it,at]=(0,F.useState)(`sample`),[ot,st]=(0,F.useState)(!1),[ct,lt]=(0,F.useState)(``),[ut,dt]=(0,F.useState)(``),[ft,pt]=(0,F.useState)(``),[mt,ht]=(0,F.useState)(``),[gt,_t]=(0,F.useState)(0),[vt,yt]=(0,F.useState)(()=>me.parse({})),[bt,xt]=(0,F.useState)(),B=it===`readonly`&&(ut!==N?.sourceHash||ft!==w)?`sample`:it,St=B===`readonly`?bt:void 0,Ct=B===`readonly`?gt:nt;(0,F.useEffect)(()=>{yt(me.parse({})),st(!1),lt(``)},[w]),(0,F.useEffect)(()=>{it===`readonly`&&B!==`readonly`&&(at(`sample`),xt(void 0),dt(``),pt(``))},[it,B]);let[wt,Tt]=(0,F.useState)(``),[V,Et]=(0,F.useState)(!1),[H,Dt]=(0,F.useState)(!1),[U,Ot]=(0,F.useState)(`booting`),[W,kt]=(0,F.useState)(null),[G,At]=(0,F.useState)(null),[K,jt]=(0,F.useState)({}),[q,Mt]=(0,F.useState)(`all`),[Nt,Pt]=(0,F.useState)(0),[Ft,It]=(0,F.useState)(0),[Lt,Rt]=(0,F.useState)(null),[J,zt]=(0,F.useState)(null),[Bt,Vt]=(0,F.useState)([]),[Ht,Ut]=(0,F.useState)(!1),Wt=(0,F.useRef)(new Set),Y=(0,F.useRef)(null),Gt=(0,F.useRef)(null),Kt=(0,F.useRef)(null),X=(0,F.useRef)(null),Z=(0,F.useRef)(``),Q=(0,F.useMemo)(()=>N?.acceptanceScenarios??[],[N?.sourceHash]),qt=(0,F.useMemo)(()=>{if(!Q.length)return null;let e=Q.map(e=>K[e.id]).filter(e=>!!e);return e.length===Q.length?{status:e.some(e=>e.status===`failed`)?`failed`:`passed`,scenarioCount:Q.length,scenarios:e}:null},[Q,K]),$=(0,F.useMemo)(()=>{if(!G)return null;if(!N?.acceptanceScenarioCount)return G;if(!qt)return null;let e=qt.scenarios.find(e=>e.status===`failed`),t={id:`criteria`,status:qt.status,message:e?`${e.name}: ${e.message}`:`${qt.scenarioCount} product scenario(s) passed`},n=[...G.checks,t];return{status:n.some(e=>e.status===`failed`)?`failed`:`passed`,checks:n,interactiveCount:G.interactiveCount}},[G,qt,N?.acceptanceScenarioCount]),Jt=(0,F.useCallback)(async(e,t)=>{let n=await ke(e.id);Wt.current.add(n),T(we(n,t))},[T]),Yt=(0,F.useCallback)(async(e=!0)=>{if(!M)return null;Dt(!0),z(null);try{let t=await je(M.id);if(e){let e=X.current===t.sourceHash;X.current=t.sourceHash??null,Mt(`all`),Pt(0),e&&rt(e=>e+1)}return await P(t,{revalidate:!1}),t}catch(e){return z(e instanceof Error?e.message:String(e)),null}finally{Dt(!1)}},[M,P]);(0,F.useEffect)(()=>{if(!M)return;Wt.current=new Set(M.developmentConversationId?[M.developmentConversationId]:[]);let e=e=>{let t=e.detail?.key;!t||!Wt.current.has(t)||(Y.current!==null&&window.clearTimeout(Y.current),Y.current=window.setTimeout(()=>{Y.current=null,Yt(!0)},750))};return window.addEventListener(`session-transcript-updated`,e),()=>{window.removeEventListener(`session-transcript-updated`,e),Y.current!==null&&window.clearTimeout(Y.current)}},[M,Yt]),(0,F.useEffect)(()=>{Vt(M?.acceptanceRuns??[])},[M?.acceptanceRuns]),(0,F.useEffect)(()=>{X.current=null},[M?.id]),(0,F.useEffect)(()=>{!N?.sourceHash||X.current===N.sourceHash||(X.current=N.sourceHash,Mt(`all`),Pt(0))},[M?.id,N?.sourceHash]),(0,F.useLayoutEffect)(()=>{if(!M)return;Ot(`booting`),kt(null),At(null),zt(null),Ut(!1),Z.current=``;let e=window.setTimeout(()=>Ot(e=>e===`failed`?e:`timeout`),7e3);return Gt.current=t=>{if(t&&typeof t==`object`&&`sourceHash`in t&&t.sourceHash!==N?.sourceHash)return;let n=pe(t);if(n){if(n.type===`ready`){Ot(e=>e===`failed`?e:`healthy`);return}if(n.type===`acceptance`){window.clearTimeout(e),At(n.detail),zt(t&&typeof t==`object`&&`sourceHash`in t?String(t.sourceHash):N?.sourceHash??null);return}n.type!==`criteria`&&(window.clearTimeout(e),kt(n.detail),Ot(`failed`))}},()=>{window.clearTimeout(e),Gt.current=null}},[M?.id,N?.sourceHash,Ct,B,St,w]),(0,F.useLayoutEffect)(()=>{if(!M||N?.status!==`healthy`||!Q.length){Rt(null);return}let e=q===`all`?Q[Nt]:Q.find(e=>e.id===q),t=e?[e]:[];if(!t.length)return;Rt(q),jt(e=>{if(q===`all`&&Nt===0)return{};let t={...e};return delete t[q],t});let r=!1,i=e=>{jt(n=>{let r={...n};for(let n of t)r[n.id]={id:n.id,name:n.name,status:`failed`,message:e,failureKind:`runner`};return r}),Rt(null)},a=window.setTimeout(()=>i(r?n?`场景在 20 秒内未完成。`:`Scenario did not finish within 20 seconds.`:n?`验收执行器未能连接,请重新验收。`:`The acceptance runner did not connect. Run acceptance again.`),2e4);return Kt.current=e=>{if(e&&typeof e==`object`&&`sourceHash`in e&&e.sourceHash!==N?.sourceHash)return;let t=pe(e);t&&(t.type===`ready`?r=!0:t.type===`criteria`?(window.clearTimeout(a),jt(e=>{let n={...e};for(let e of t.detail.scenarios)(n[e.id]?.status!==`failed`||e.status===`failed`)&&(n[e.id]=e);return n}),q===`all`&&Nt+1<Q.length?(Pt(e=>e+1),It(e=>e+1)):Rt(null)):t.type===`error`&&(window.clearTimeout(a),i(De(t.detail))))},()=>{window.clearTimeout(a),Kt.current=null}},[Q,M?.id,Ft,q,Nt,nt,N?.status,n,w]),(0,F.useEffect)(()=>{if(!M||!$||!J||J!==N?.sourceHash)return;let e=`${M.id}:${J}:${JSON.stringify($)}`;Z.current!==e&&(Z.current=e,Ut(!0),Fe(M.id,J,$).then(t=>{Z.current===e&&Vt(e=>[t,...e.filter(e=>e.id!==t.id)].toSorted((e,t)=>t.createdAt-e.createdAt).slice(0,20))}).catch(t=>{Z.current===e&&X.current===J&&(Z.current=``,Ut(!1),z(t instanceof Error?t.message:String(t)))}).finally(()=>{Z.current===e&&Ut(!1)}))},[$,J,M,N?.sourceHash]);let Xt=(0,F.useCallback)(async e=>{if(M){Et(!0),z(null);try{await Jt(M,e)}catch(e){z(e instanceof Error?e.message:String(e)),Et(!1)}}},[M,Jt]);(0,F.useLayoutEffect)(()=>(_e({startExtra:(0,I.jsx)(a,{to:`/local-apps`,className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":n?`返回应用工坊`:`Back to App Studio`,children:(0,I.jsx)(y,{className:`size-4`})}),main:(0,I.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:M?.name||(t?n?`创建应用`:`Create app`:n?`应用详情`:`App details`)}),end:M?(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsx)(Be,{resource:{kind:`local_app`,id:M.id,revision:N?.sourceHash??``},disabled:L||V||H||!N?.sourceHash}),(0,I.jsx)(j,{asChild:!0,variant:`ghost`,className:`h-9`,children:(0,I.jsxs)(a,{to:`/projects/${encodeURIComponent(M.projectId)}`,children:[(0,I.jsx)(ne,{className:`size-4`}),n?`项目`:`Project`]})}),(0,I.jsxs)(j,{className:`h-9`,onClick:()=>void Xt(),disabled:V,children:[V?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`继续开发`:`Continue building`]})]}):null}),()=>ye()),[M,t,L,V,H,N?.sourceHash,ye,Xt,_e,n]);async function Zt(e){e.preventDefault(),R(!0),z(null);try{let e=await Ie({name:Ue,idea:Ye});await A(`local-apps-list`);let t=n?`请基于 APP_BRIEF.md 完成这个本地应用的首版。先检查现有草稿,再实现最小可用版本并运行校验;完成后告诉我可以如何预览。`:`Build the first usable version of this local app from APP_BRIEF.md. Inspect the existing draft, implement the smallest useful version, run validation, and tell me how to preview it.`;try{await Jt(e,t)}catch{T(`/local-apps/${encodeURIComponent(e.id)}`,{replace:!0})}}catch(e){z(e instanceof Error?e.message:String(e))}finally{R(!1)}}async function Qt(){if(M){R(!0),z(null);try{let e=await Oe(M.id);await Ce(e,{revalidate:!1}),await P(),await Promise.all([A(`local-apps-list`),A(`gateway-extensions-list`)]),$e(!1)}catch(e){z(e instanceof Error?e.message:String(e))}finally{R(!1)}}}async function $t(e){R(!0),z(null);try{let t=await e();return await Ce(t,{revalidate:!1}),await P(),await Promise.all([A(`local-apps-list`),A(`gateway-extensions-list`)]),!0}catch(e){return z(e instanceof Error?e.message:String(e)),!1}finally{R(!1)}}async function en(e){M&&await $t(()=>Le(M.id,e))}async function tn(e){M&&await $t(()=>Me(M.id,e))}async function nn(){M&&await $t(()=>Ae(M.id))&&tt(!1)}async function rn(e){if(!(!M||!e.length)){z(null);try{let t=await Pe(M.id,{sourceHash:N?.sourceHash,locale:n?`zh`:`en`,diagnostics:e});if(t.action===`retry`){rt(e=>e+1),on();return}await Xt(t.prompt)}catch(e){z(e instanceof Error?e.message:String(e))}}}function an(){rn([...N?.issues.map(e=>({phase:`build`,code:e.code,message:e.message}))??[],...W?[{phase:W.kind===`runner_error`?`runner`:`runtime`,code:W.kind,message:De(W)}]:[],...$?.checks.filter(e=>e.status===`failed`&&e.id!==`criteria`&&W?.kind!==`runner_error`).map(e=>({phase:`acceptance`,code:e.id,message:e.message}))??[],...Object.values(K).filter(e=>e.status===`failed`).map(e=>({phase:e.failureKind===`runner`?`runner`:`acceptance`,code:e.id,message:`${e.name}: ${e.message}`})),...U===`timeout`?[{phase:`boot`,code:`boot_timeout`,message:`Preview did not report ready within 7 seconds.`}]:[]].filter(e=>e.phase!==`runner`))}function on(){Mt(`all`),Pt(0),It(e=>e+1)}function sn(e){Mt(e),Pt(0),It(e=>e+1)}function cn(e,t){if(t.failureKind===`runner`){sn(e.id);return}rn([{phase:`acceptance`,code:e.id,message:`${e.name}: ${t.message}`}])}let ln=Bt.findIndex(e=>qe(e,J,$)),un=ln>=0?Bt[ln]:null,dn=ln>=0?Bt[ln+1]??null:Bt[0]??null,fn=Te($),pn=dn?dn.checks.filter(e=>e.status===`failed`).map(e=>e.message):[],mn=N?.status===`failed`||U===`failed`&&W?.kind!==`runner_error`||$?.checks.some(e=>e.status===`failed`&&e.id!==`criteria`&&W?.kind!==`runner_error`)||Object.values(K).some(e=>e.status===`failed`&&e.failureKind!==`runner`),hn=pn.filter(e=>!fn.includes(e)).length;async function gn(){(await Yt(!1))?.status===`healthy`&&$e(!0)}return t?(0,I.jsx)(`div`,{className:`flex min-h-0 flex-1 bg-surface-panel p-3 sm:p-5 xl:p-6`,children:(0,I.jsxs)(`div`,{className:`grid w-full min-w-0 overflow-hidden rounded-2xl border border-edge-subtle bg-surface-base shadow-surface lg:grid-cols-[minmax(280px,0.8fr)_minmax(0,1.5fr)]`,children:[(0,I.jsxs)(`form`,{onSubmit:Zt,className:`flex flex-col border-b border-edge-subtle p-5 lg:border-b-0 lg:border-r`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.14em] text-accent`,children:[(0,I.jsx)(le,{className:`size-4`}),n?`告诉编程智能体你的想法`:`Tell Coder your idea`]}),(0,I.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:n?`你想创建什么?`:`What do you want to create?`}),(0,I.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n?`我们会创建项目,并在对话中由编程智能体根据你的想法开发应用。`:`We will create a Coder Project and carry the app context and development skill into chat.`}),(0,I.jsxs)(`label`,{className:`mt-6 text-xs font-medium text-fg-muted`,children:[n?`应用名称`:`App name`,(0,I.jsx)(ze,{value:Ue,onChange:e=>Je(e.target.value),suggestion:Ve(n?`例如:阅读清单`:`e.g. Reading list`),onAcceptSuggestion:Je,required:!0,className:`mt-2 w-full rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`例如:阅读清单`:`e.g. Reading list`})]}),(0,I.jsxs)(`label`,{className:`mt-4 text-xs font-medium text-fg-muted`,children:[n?`描述你的想法`:`Describe your idea`,(0,I.jsx)(Re,{value:Ye,onChange:e=>Xe(e.target.value),suggestion:Ve(n?`我想要一个可以记录待读文章、标记进度并按主题筛选的小工具…`:`I want a small tool that tracks articles, reading progress, and topics…`),onAcceptSuggestion:Xe,required:!0,rows:7,className:`mt-2 w-full resize-none rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm leading-6 text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`我想要一个可以记录待读文章、标记进度并按主题筛选的小工具…`:`I want a small tool that tracks articles, reading progress, and topics…`})]}),Ze?(0,I.jsx)(`p`,{className:`mt-3 text-sm text-danger`,role:`alert`,children:Ze}):null,(0,I.jsxs)(j,{type:`submit`,variant:`primary`,className:`mt-5 h-10`,disabled:L||!Ue.trim()||!Ye.trim(),children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`开始开发对话`:`Continue with Coder`]})]}),(0,I.jsx)(`div`,{className:`hidden min-h-[620px] place-items-center bg-surface-panel p-8 lg:grid`,children:(0,I.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,I.jsx)(`div`,{className:`mx-auto flex size-16 items-center justify-center rounded-2xl border border-edge bg-surface-base text-accent shadow-surface`,children:(0,I.jsx)(ie,{className:`size-7`})}),(0,I.jsx)(`h3`,{className:`mt-5 text-base font-semibold text-fg`,children:n?`创建后,这里就是实时预览`:`Your live preview appears here`}),(0,I.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n?`你可以先体验草稿,再决定是否把它添加到左侧导航。`:`Try the draft first, then decide whether to add it to the sidebar.`})]})})]})}):be?(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-3 bg-surface-base p-3 lg:grid-cols-[280px_minmax(0,1fr)_260px]`,children:[(0,I.jsx)(k,{className:`rounded-xl`}),(0,I.jsx)(k,{className:`rounded-xl`}),(0,I.jsx)(k,{className:`rounded-xl`})]}):Se||!M?(0,I.jsx)(d,{kind:`app`,missing:!Se||/not found|404/i.test(String(Se)),backTo:`/local-apps`,retry:()=>void Ce()}):(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-3 overflow-hidden bg-surface-base p-3 lg:grid-cols-[280px_minmax(0,1fr)_300px]`,children:[(0,I.jsxs)(`aside`,{className:`min-h-0 min-w-0 overflow-y-auto rounded-xl bg-surface-panel p-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.12em] text-accent`,children:[(0,I.jsx)(le,{className:`size-4`}),n?`创作对话`:`Build conversation`]}),(0,I.jsx)(`div`,{className:`mt-4 min-w-0 rounded-xl bg-surface-inset p-3 text-sm leading-6 text-fg [overflow-wrap:anywhere]`,children:M.idea}),(0,I.jsxs)(`div`,{className:`mt-4 rounded-xl bg-accent-soft p-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-sm font-medium text-accent-fg`,children:[(0,I.jsx)(C,{className:`size-4`}),n?`草稿已准备好`:`Draft is ready`]}),(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:n?`继续开发会打开对应项目的对话,编程智能体可以参考当前应用继续修改。`:`Continue in the Project where Coder has the app context and dedicated skill.`})]}),(0,I.jsxs)(`form`,{className:`mt-5`,onSubmit:e=>{e.preventDefault(),Xt(wt)},children:[(0,I.jsx)(`label`,{className:`text-xs font-medium text-fg-muted`,htmlFor:`local-app-change-request`,children:n?`下一步想改什么?`:`What should change next?`}),(0,I.jsx)(Re,{id:`local-app-change-request`,value:wt,onChange:e=>Tt(e.target.value),suggestion:Ve(n?`例如:增加月视图,并支持按标签筛选`:`e.g. Add a monthly view and tag filters`),onAcceptSuggestion:Tt,rows:4,className:`mt-2 w-full resize-none rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm leading-6 text-fg outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`例如:增加月视图,并支持按标签筛选`:`e.g. Add a monthly view and tag filters`}),(0,I.jsxs)(j,{type:`submit`,className:`mt-2 w-full`,disabled:V||!wt.trim(),children:[V?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`让 Coder 修改`:`Ask Coder to update`]})]}),(0,I.jsxs)(j,{variant:`ghost`,className:`mt-2 w-full`,onClick:()=>void Xt(),disabled:V,children:[(0,I.jsx)(ne,{className:`size-4`}),n?`打开已有开发对话`:`Open development chat`]})]}),(0,I.jsxs)(`section`,{className:`flex min-h-0 flex-col overflow-hidden rounded-xl bg-surface-panel`,children:[(0,I.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center justify-between border-b border-edge-subtle px-3`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-medium text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${N?.status===`failed`||U===`failed`||U===`timeout`||$?.status===`failed`?`bg-danger`:N?.status===`healthy`&&U===`healthy`&&$?.status===`passed`&&un?.sourceHash===N.sourceHash&&!Ht?`bg-success`:`bg-fg-subtle`}`}),U===`failed`||U===`timeout`?n?`预览运行异常`:`Preview runtime issue`:N?.status===`failed`||$?.status===`failed`?n?`自动验收未通过`:`Acceptance needs attention`:U===`booting`||!$?n?`自动验收中`:`Running acceptance`:Ht||un?.sourceHash!==N?.sourceHash?n?`正在保存验收快照`:`Saving acceptance snapshot`:n?`草稿已通过验收`:`Draft accepted`]}),(0,I.jsxs)(j,{variant:`ghost`,className:`h-8 px-2`,onClick:()=>void Yt(!0),disabled:H,children:[H?(0,I.jsx)(O,{className:`size-3.5 animate-spin`}):(0,I.jsx)(oe,{className:`size-3.5`}),n?`重新验收`:`Run again`]})]}),(0,I.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 border-b border-edge-subtle px-3 py-2`,children:[(0,I.jsx)(`div`,{className:`w-44 shrink-0`,children:(0,I.jsxs)(x,{"aria-label":n?`预览数据`:`Preview data`,value:B,onChange:e=>{e.target.value===`readonly`?(lt(N?.sourceHash??``),ht(w),st(!0)):(at(e.target.value),xt(void 0))},children:[(0,I.jsx)(S,{value:`sample`,children:n?`示例数据`:`Sample data`}),(0,I.jsx)(S,{value:`readonly`,children:n?`真实数据 · 只读`:`Real data · read only`}),(0,I.jsx)(S,{value:`isolated`,children:n?`隔离写入体验`:`Isolated writes`})]})}),(0,I.jsx)(`p`,{className:`order-last basis-full text-[11px] text-fg-muted`,children:B===`readonly`?n?`仅使用本次授权的数据,写入已禁止。`:`Only approved live data. Production writes are blocked.`:n?`使用独立示例数据;修改和存储不会影响正式数据。自动验收始终使用独立隔离环境。`:`Separate example data and storage. Acceptance always runs in its own isolated environment.`}),B===`readonly`?(0,I.jsx)(j,{variant:`ghost`,onClick:()=>{at(`sample`),xt(void 0)},children:n?`停止真实数据预览`:`Stop live preview`}):null]}),N?.sourceHash?(0,I.jsx)(He,{appId:M.id,sourceHash:N.sourceHash,mode:B,resourceScopes:St,runKey:Ct,title:`${M.name} preview`,onMessage:e=>Gt.current?.(e)}):(0,I.jsx)(k,{className:`min-h-0 flex-1`}),N?.status===`healthy`&&N.sourceHash&&Q.length>0&&Lt!==null?(0,I.jsx)(He,{appId:M.id,sourceHash:N.sourceHash,mode:`isolated`,hidden:!0,scenarioId:q===`all`?Q[Nt]?.id:q,runKey:nt*1e6+Ft,title:`${M.name} acceptance runner`,onMessage:e=>Kt.current?.(e)}):null,(0,I.jsx)(v,{open:ot,onOpenChange:st,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`fixed inset-0 z-50 bg-scrim`}),(0,I.jsxs)(g,{className:`fixed left-1/2 top-1/2 z-50 flex h-[min(680px,calc(100vh-32px))] w-[min(520px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay p-5`,children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`选择本次只读预览的数据`:`Choose data for this read-only preview`}),(0,I.jsx)(p,{className:`mt-2 text-sm text-fg-muted`,children:n?`仅授权当前草稿,15 分钟后过期。源码变化或停止预览后授权失效;自动验收不会使用这些真实数据。`:`Applies to this draft for 15 minutes. Editing the source or stopping preview revokes access. Acceptance never uses this live data.`}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,I.jsx)(xe,{extensionId:M.extensionId,permissions:(N?.permissions??M.permissions).filter(e=>/^capability:xopc\.(notes|tasks|projects)\.(get|list|list_milestones|list_updates)$/.test(e)),value:vt,onChange:yt,zh:n})}),(0,I.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsx)(j,{variant:`primary`,disabled:ct!==N?.sourceHash||mt!==w,onClick:()=>{xt(vt),dt(ct),pt(mt),_t(e=>e+1),at(`readonly`),st(!1)},children:n?`启动只读预览`:`Start read-only preview`})]})]})]})})]}),(0,I.jsxs)(`aside`,{className:`min-h-0 overflow-y-auto rounded-xl bg-surface-panel p-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n?`发布状态`:`Release status`}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.installationState===`not_installed`?n?`尚未安装`:`Not installed`:M.enabled?n?`版本 ${M.activeVersion} 正在使用`:`Version ${M.activeVersion} is active`:n?`已禁用,版本仍保留`:`Disabled, release retained`})]}),(0,I.jsx)(`span`,{className:`mt-1 size-2.5 rounded-full ${M.enabled?`bg-success`:`bg-fg-subtle`}`,"aria-hidden":!0})]}),(0,I.jsxs)(`dl`,{className:`mt-4 grid grid-cols-2 gap-3 text-xs`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`当前草稿`:`Draft`}),(0,I.jsxs)(`dd`,{className:`mt-1 font-medium text-fg`,children:[`v`,M.draftVersion]})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`已安装`:`Installed`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium text-fg`,children:M.activeVersion?`v${M.activeVersion}`:`—`})]})]}),(0,I.jsxs)(`div`,{className:`mt-5 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxs)(`h3`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(ee,{className:`size-4 text-accent`}),n?`草稿检查`:`Draft checks`]}),Ee||H?(0,I.jsx)(O,{className:`size-3.5 animate-spin text-fg-muted`}):N?.status===`healthy`?(0,I.jsx)(C,{className:`size-4 text-success`}):(0,I.jsx)(de,{className:`size-4 text-danger`})]}),N?(0,I.jsxs)(`div`,{className:`mt-2`,children:[(0,I.jsx)(`p`,{className:`text-xs leading-5 ${N.status===`healthy`?`text-fg-muted`:`text-danger`}`,children:N.status===`healthy`?N.hasDraftChanges?n?`${N.changedFileCount} 个文件有改动,可以安装新版本。`:`${N.changedFileCount} changed files are ready for a new release.`:n?`草稿与当前安装版本一致。`:`Draft matches the installed release.`:N.issues[0]?.message}),N.changedFiles.length?(0,I.jsx)(`ul`,{className:`mt-2 space-y-1`,children:N.changedFiles.slice(0,4).map(e=>(0,I.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`w-4 shrink-0 font-medium text-fg-subtle`,children:e.status===`added`?`+`:e.status===`deleted`?`−`:`•`}),(0,I.jsx)(`span`,{className:`truncate font-mono`,children:e.path})]},e.path))}):null,N.changedFileCount>4?(0,I.jsx)(`p`,{className:`mt-1 text-[10px] text-fg-subtle`,children:n?`还有 ${N.changedFileCount-4} 个文件`:`${N.changedFileCount-4} more files`}):null,(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-xs font-medium text-fg`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${U===`healthy`?`bg-success`:U===`booting`?`bg-fg-subtle`:`bg-danger`}`}),n?`预览运行`:`Preview runtime`]}),(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 ${U===`failed`||U===`timeout`?`text-danger`:`text-fg-muted`}`,children:W?De(W):U===`healthy`?n?`已成功启动,未发现未捕获异常。`:`Started successfully with no uncaught errors.`:U===`timeout`?n?`7 秒内未完成启动,可能出现白屏或阻塞。`:`Did not finish booting within 7 seconds.`:n?`正在等待应用启动。`:`Waiting for the app to start.`})]}),(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-xs font-medium text-fg`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${$?.status===`passed`?`bg-success`:$?.status===`failed`?`bg-danger`:`bg-fg-subtle`}`}),n?`自动验收`:`Automatic acceptance`]}),$?(0,I.jsx)(`ul`,{className:`mt-2 space-y-1.5`,children:$.checks.map(e=>(0,I.jsxs)(`li`,{className:`flex items-start gap-2 text-[11px] leading-4 ${e.status===`failed`?`text-danger`:`text-fg-muted`}`,children:[(0,I.jsx)(`span`,{className:`mt-1 size-1.5 shrink-0 rounded-full ${e.status===`failed`?`bg-danger`:e.status===`passed`?`bg-success`:`bg-fg-subtle`}`}),(0,I.jsx)(`span`,{children:e.message})]},e.id))}):(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:N?.acceptanceScenarioCount?n?`正在检查页面基础质量和 ${N.acceptanceScenarioCount} 个产品场景。`:`Checking page quality and ${N.acceptanceScenarioCount} product scenario(s).`:n?`正在检查页面内容和基础交互。`:`Checking rendered content and basic interaction.`}),Ht?(0,I.jsxs)(`p`,{className:`mt-2 flex items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(O,{className:`size-3 animate-spin`}),n?`正在保存当前源码对应的验收快照…`:`Saving the acceptance snapshot for this source…`]}):un?(0,I.jsx)(`p`,{className:`mt-2 text-[11px] leading-4 text-fg-muted`,children:dn?n?`相比上次:已修复 ${hn} 项,仍有 ${fn.length} 项。`:`Since the previous run: ${hn} fixed, ${fn.length} remaining.`:n?`首个验收快照已保存。`:`First acceptance snapshot saved.`}):null,(0,I.jsx)(We,{scenarios:Q,results:K,runningTarget:Lt,zh:n,onRunAll:on,onRunScenario:sn,onAskCoder:cn})]}),W?.kind===`runner_error`||U===`timeout`?(0,I.jsx)(j,{className:`mt-3 w-full`,onClick:()=>{rt(e=>e+1),on()},children:n?`恢复资源并重试`:`Retry preview`}):null,mn?(0,I.jsxs)(j,{className:`mt-3 w-full`,onClick:an,disabled:V,children:[(0,I.jsx)(D,{className:`size-4`}),n?`让 Coder 修复`:`Ask Coder to fix`]}):null]}):(0,I.jsx)(k,{className:`mt-2 h-12 rounded-lg`})]}),(0,I.jsxs)(`div`,{className:`mt-5 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(ce,{className:`size-4 text-accent`}),n?`权限`:`Permissions`]}),(0,I.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:(N?.permissions??M.permissions).map(e=>(0,I.jsx)(`span`,{className:`rounded-md bg-surface-hover px-2 py-1 text-[11px] text-fg-muted`,children:e},e))}),M.installationState===`installed`?(0,I.jsx)(Ge,{extensionId:M.extensionId,name:M.name,zh:n}):null]}),(0,I.jsx)(j,{variant:`primary`,className:`mt-5 w-full`,onClick:()=>void gn(),disabled:L||Ee||H||N?.status!==`healthy`||M.installationState===`installed`&&N?.hasDraftChanges===!1,children:M.installationState===`installed`?n?`安装当前更新`:`Install current update`:n?`添加到左侧导航`:`Add to sidebar`}),M.installationState===`installed`?(0,I.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,I.jsxs)(j,{className:`min-w-0 flex-1`,onClick:()=>void en(!M.enabled),disabled:L,children:[M.enabled?(0,I.jsx)(te,{className:`size-4`}):(0,I.jsx)(ae,{className:`size-4`}),M.enabled?n?`禁用`:`Disable`:n?`启用`:`Enable`]}),(0,I.jsx)(j,{variant:`ghost`,className:`text-danger hover:text-danger`,onClick:()=>tt(!0),disabled:L,"aria-label":n?`卸载应用`:`Uninstall app`,children:(0,I.jsx)(ue,{className:`size-4`})})]}):null,(0,I.jsxs)(`div`,{className:`mt-6 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`h3`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(re,{className:`size-4`}),n?`版本历史`:`Release history`]}),M.releases.length?(0,I.jsx)(`ul`,{className:`mt-2 divide-y divide-edge-subtle`,children:M.releases.map(e=>(0,I.jsxs)(`li`,{className:`flex items-center justify-between gap-3 py-2.5`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-medium text-fg`,children:[`v`,e.version,e.isActive?(0,I.jsx)(`span`,{className:`rounded-full bg-success-soft px-1.5 py-0.5 text-[10px] text-success`,children:n?`当前`:`Active`}):null]}),(0,I.jsx)(`p`,{className:`mt-0.5 truncate text-[10px] text-fg-subtle`,children:Ke(e.createdAt,r)})]}),e.isActive?null:(0,I.jsxs)(j,{variant:`ghost`,className:`h-7 px-2 text-xs`,onClick:()=>void tn(e.id),disabled:L,children:[(0,I.jsx)(se,{className:`size-3.5`}),n?`恢复`:`Restore`]})]},e.id))}):(0,I.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:n?`安装首个版本后,可以从这里恢复。`:`Install the first version to enable recovery.`})]}),Ze?(0,I.jsx)(`p`,{className:`mt-3 text-xs leading-5 text-danger`,role:`alert`,children:Ze}):null]}),(0,I.jsx)(v,{open:Qe,onOpenChange:$e,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`xopc-dialog-overlay fixed inset-0 z-50 bg-scrim backdrop-blur-[2px]`}),(0,I.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-50 flex h-[min(560px,calc(100vh-32px))] w-[min(520px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-2xl focus:outline-none`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between border-b border-edge-subtle p-5`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`确认安装到 XOPC`:`Confirm installation`}),(0,I.jsx)(p,{className:`mt-1 text-sm text-fg-muted`,children:n?`当前草稿会成为左侧导航中的可用版本。`:`The current draft will become the version available in the sidebar.`})]}),(0,I.jsx)(m,{className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover`,children:(0,I.jsx)(fe,{className:`size-4`})})]}),(0,I.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:[(0,I.jsxs)(`div`,{className:`rounded-xl border border-edge-subtle bg-surface-panel p-4`,children:[(0,I.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:M.name}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.extensionId})]}),(0,I.jsx)(`h4`,{className:`mt-5 text-xs font-semibold text-fg`,children:n?`本次迭代`:`This iteration`}),(0,I.jsxs)(`dl`,{className:`mt-2 grid grid-cols-2 gap-3 text-xs`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`文件变化`:`Changed files`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium text-fg`,children:N?.changedFileCount??0})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`自动验收`:`Acceptance`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium ${$?.status===`passed`&&J===N?.sourceHash?`text-success`:`text-warning`}`,children:$?.status===`passed`&&J===N?.sourceHash?n?`已通过`:`Passed`:n?`未通过或尚未完成`:`Failed or incomplete`})]})]}),N?.changedFiles.length?(0,I.jsx)(`ul`,{className:`mt-3 space-y-1`,children:N.changedFiles.slice(0,5).map(e=>(0,I.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`w-4 shrink-0 font-medium text-fg-subtle`,children:e.status===`added`?`+`:e.status===`deleted`?`−`:`•`}),(0,I.jsx)(`span`,{className:`truncate font-mono`,children:e.path})]},e.path))}):null,$?.status!==`passed`||J!==N?.sourceHash?(0,I.jsxs)(`div`,{role:`status`,className:`mt-4 rounded-xl bg-warning-soft p-3 text-xs leading-5 text-warning`,children:[(0,I.jsx)(`p`,{children:n?`自动验收未通过或尚未完成。你仍可安装,部分功能可能无法正常使用。`:`Automatic acceptance failed or is incomplete. You can still install; some features may not work.`}),fn.length?(0,I.jsx)(`ul`,{className:`mt-2 list-inside list-disc`,children:fn.map(e=>(0,I.jsx)(`li`,{children:e},e))}):null]}):null,(0,I.jsx)(`h4`,{className:`mt-5 text-xs font-semibold text-fg`,children:n?`请求权限`:`Requested permissions`}),(0,I.jsx)(`ul`,{className:`mt-2 space-y-2`,children:(N?.permissions??M.permissions).map(e=>(0,I.jsxs)(`li`,{className:`flex items-center gap-2 text-sm text-fg`,children:[(0,I.jsx)(b,{className:`size-4 text-success`}),e,M.installationState===`installed`&&N?.permissionDelta.added.includes(e)?(0,I.jsx)(`span`,{className:`rounded-full bg-warning-soft px-2 py-0.5 text-[10px] text-warning`,children:n?`新增`:`New`}):null]},e))}),M.installationState===`installed`&&N?.permissionDelta.added.length?(0,I.jsx)(`p`,{className:`mt-4 rounded-xl bg-warning-soft p-3 text-xs leading-5 text-warning`,children:n?`此更新增加了权限,请确认这些能力符合你的修改意图。`:`This update adds permissions. Confirm they match the change you requested.`}):null,(0,I.jsx)(`p`,{className:`mt-5 rounded-xl bg-accent-soft p-3 text-xs leading-5 text-accent-fg`,children:n?`Phase 1 应用只能使用界面主题和本地存储,不能访问网络或运行系统命令。`:`Phase 1 apps can use theme and local storage only. They cannot access the network or run system commands.`})]}),(0,I.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle p-4`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsxs)(j,{variant:`primary`,onClick:()=>void Qt(),disabled:L,children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(E,{className:`size-4`}),n?`确认安装`:`Install`]})]})]})]})}),(0,I.jsx)(v,{open:et,onOpenChange:tt,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`xopc-dialog-overlay fixed inset-0 z-50 bg-scrim backdrop-blur-[2px]`}),(0,I.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-50 flex h-[min(420px,calc(100vh-32px))] w-[min(500px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-2xl focus:outline-none`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between border-b border-edge-subtle p-5`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`卸载当前应用?`:`Uninstall this app?`}),(0,I.jsx)(p,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:n?`应用会从侧栏移除,但项目、源码、版本历史和本地数据都会保留。`:`The app leaves the sidebar, while its Project, source, release history, and local data remain.`})]}),(0,I.jsx)(m,{className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover`,children:(0,I.jsx)(fe,{className:`size-4`})})]}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,I.jsxs)(`div`,{className:`rounded-xl bg-surface-panel p-4`,children:[(0,I.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:M.name}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n?`之后可从任意保留版本重新安装。`:`You can reinstall any retained release later.`})]})}),(0,I.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle p-4`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsxs)(j,{variant:`ghost`,className:`text-danger hover:bg-danger-soft hover:text-danger`,onClick:()=>void nn(),disabled:L,children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(ue,{className:`size-4`}),n?`卸载但保留项目`:`Uninstall and keep Project`]})]})]})]})})]})}export{Je as LocalAppWorkbenchPage};
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{d as i,m as a,t as o}from"./chunk-KS7C4IRE-DbzE-1bp.js";import{i as s,l as c,n as l,o as u}from"./locale-store-B4o4aDCg.js";import{t as d}from"./resource-unavailable-BZVJxGR8.js";import{a as f,i as p,n as m,o as h,r as g,s as _,t as v}from"./dist-DlirbHVs.js";import{t as y}from"./arrow-left-D880xG-P.js";import{t as b}from"./check-DUBLcKHA.js";import{n as x,r as S}from"./popover-select-hRG1EzAY.js";import{t as C}from"./circle-check-C23XjkUj.js";import{t as w}from"./circle-x-DFsCKeya.js";import{t as T}from"./clock-3-DnrAnuyZ.js";import{t as E}from"./external-link-DjqjBmc3.js";import{n as D,r as ee,t as te}from"./power-off-CwwQ7Gp7.js";import{t as ne}from"./folder-kanban-CpLlFI1o.js";import{t as re}from"./history-DXH_9jsE.js";import{t as O}from"./loader-circle-CifKLtgG.js";import{t as ie}from"./panel-left-C8MqSXRZ.js";import{t as ae}from"./power-ZI-pBczI.js";import{t as oe}from"./refresh-cw-BRlGaq2w.js";import{t as se}from"./rotate-ccw-JM1TBLpp.js";import{t as ce}from"./shield-check-BU58siTV.js";import{t as le}from"./sparkles-DHlfQFAF.js";import{t as ue}from"./trash-2-DusmjVPV.js";import{t as de}from"./triangle-alert-2JXFNNKU.js";import{t as fe}from"./x-B_N4OPjy.js";import{t as k}from"./skeleton-DzdOeGYz.js";import{c as A,d as pe,p as me}from"./product-delivery-4gEqUIsK.js";import{a as he,i as ge}from"./vendor-swr-CdRzEUwF.js";import{t as j}from"./button-C5tRaJxt.js";import{i as _e}from"./theme-store-C7t81hG7.js";import{t as ve}from"./page-header-store-D_2QZ6Ps.js";import{n as ye,r as M,t as be}from"./extension-message-router-Ccwjadyk.js";import{i as xe,n as Se,r as Ce,t as N}from"./extension-authoritative-grants-DIZxVVMM.js";import{i as we,n as Te,r as Ee,t as De}from"./runtime-health-zDkHcOZO.js";import{a as Oe,c as ke,d as Ae,f as je,l as Me,n as Ne,r as Pe,s as Fe,t as Ie,u as Le}from"./api-oA0NOKLI.js";import{r as P}from"./date-formatters-DukWSVwc.js";import{n as Re,t as ze}from"./tab-completion-input-CxtEp0aP.js";import{t as Be}from"./page-context-capture-button-CNyjLpFG.js";var F=e(t(),1);function Ve(e){return e.replace(/^(?:例如\s*[::]?|for example\s*[::]?|e\.g\.\s*)/i,``).replace(/…$/,``).trim()}var I=r();function He({appId:e,sourceHash:t,mode:n,resourceScopes:r,scenarioId:i,runKey:a,title:o,hidden:d=!1,onMessage:f}){let p=c(e=>e.baseUrl),m=c(e=>e.conversationId),[h,g]=(0,F.useState)(null),_=h?.hostBaseUrl===p&&h?.hostNamespace===m&&h.appId===e&&h.sourceHash===t&&h.mode===n&&h.hostRunKey===a&&h.hostScopes===r&&h.hostScenario===i?h:null,[v,y]=(0,F.useState)(``),b=(0,F.useRef)(null),x=(0,F.useRef)(f);x.current=f;let S=(0,F.useRef)(null),C=l(e=>e.language),w=_e(e=>e.resolved),T=e=>{let t=e instanceof Error?e.message:String(e);y(t),x.current({source:`xopc-local-app-preview`,version:1,type:`error`,detail:{kind:`runner_error`,message:t.slice(0,500)}})},E=(0,F.useRef)(T);E.current=T,(0,F.useEffect)(()=>{let o=!0,l,d=new AbortController,f=e=>c.getState().baseUrl===p?u(s(`/api/local-app-previews/sessions/${encodeURIComponent(e)}`),{method:`DELETE`,keepalive:!0}).catch(()=>{}):Promise.resolve(),h=()=>{o=!1,d.abort(),l&&f(l.id)};return window.addEventListener(`pagehide`,h),g(null),y(``),(async()=>{for(let a=0;;a++)try{return await u(s(`/api/local-app-previews/${encodeURIComponent(e)}/sessions`),{method:`POST`,signal:d.signal,body:JSON.stringify({sourceHash:t,mode:n,resourceScopes:r,scenarioId:i})})}catch(e){let t=e instanceof Error?e.message:String(e);if(!o||a>=2||!/Too many isolated preview workers|Close another preview/.test(t)||(await new Promise(e=>{let t=()=>{clearTimeout(n),d.signal.removeEventListener(`abort`,t),e()},n=setTimeout(t,1e3);d.signal.addEventListener(`abort`,t,{once:!0})}),!o))throw e}})().then(s=>{if(l=A.parse(s.session),l.appId!==e||l.sourceHash!==t||l.mode!==n)throw Error(`Preview authorization does not match the requested draft`);if(!o){f(l.id);return}g({...l,hostBaseUrl:p,hostNamespace:m,hostRunKey:a,hostScopes:r,hostScenario:i})}).catch(e=>{o&&E.current(e)}),()=>{window.removeEventListener(`pagehide`,h),h()}},[e,t,n,r,i,a,p,m]),(0,F.useLayoutEffect)(()=>{let e=b.current;if(!_||!e)return;let t=new be;ye(t),S.current=t,t.registerIframe(_.extensionId,e,_.permissions,_.sourceHash,_.id,!0,_.id);let n=Ee(e,e=>{!e||typeof e!=`object`||`runId`in e&&e.runId!==_.id||x.current({...e,sourceHash:_.sourceHash})},{runId:_.id,beforeRun:async()=>{t.sendInit(_.extensionId,M(_e.getState().resolved),l.getState().language),await t.whenIdle(_.extensionId)},onError:e=>E.current(e)});return()=>{n(),t.dispose(),S.current=null}},[_]),(0,F.useEffect)(()=>{_&&S.current?.sendEvent(_.extensionId,`theme.changed`,M(w))},[_,w]);let D=_?`${s(_.previewUrl)}${_.previewUrl.includes(`?`)?`&`:`?`}xopcHostRun=1&xopcPreviewMode=${_.mode}${i?`&xopcAcceptance=1&xopcScenario=${encodeURIComponent(i)}`:``}`:``;return v&&!d?(0,I.jsx)(`p`,{role:`alert`,className:`p-4 text-sm text-danger`,children:v}):_?(0,I.jsx)(`iframe`,{ref:b,title:o,src:D,sandbox:`allow-scripts`,referrerPolicy:`no-referrer`,"aria-hidden":d||void 0,tabIndex:d?-1:void 0,lang:C,className:d?`pointer-events-none fixed left-[-200vw] top-0 h-[720px] w-[1024px] opacity-0`:`min-h-0 w-full flex-1 bg-white`,onError:()=>E.current(Error(`Preview document failed to load`)),onLoad:()=>S.current?.sendInit(_.extensionId,M(_e.getState().resolved),C)},_.id):d?null:(0,I.jsx)(k,{className:`min-h-0 w-full flex-1`})}var Ue=n();function We(e){let t=(0,Ue.c)(36),{scenarios:n,results:r,runningTarget:i,zh:a,onRunAll:o,onRunScenario:s,onAskCoder:c}=e;if(!n.length)return null;let l=a?`产品场景`:`Product scenarios`,u;t[0]===l?u=t[1]:(u=(0,I.jsx)(`p`,{className:`text-xs font-medium text-fg`,children:l}),t[0]=l,t[1]=u);let d=a?`${n.length} 个关键用户路径`:`${n.length} critical user journey${n.length===1?``:`s`}`,f;t[2]===d?f=t[3]:(f=(0,I.jsx)(`p`,{className:`mt-0.5 text-[11px] text-fg-subtle`,children:d}),t[2]=d,t[3]=f);let p;t[4]!==u||t[5]!==f?(p=(0,I.jsxs)(`div`,{children:[u,f]}),t[4]=u,t[5]=f,t[6]=p):p=t[6];let m=i!==null,h;t[7]===i?h=t[8]:(h=i===`all`?(0,I.jsx)(O,{className:`size-3 animate-spin`}):(0,I.jsx)(oe,{className:`size-3`}),t[7]=i,t[8]=h);let g=a?`全部重跑`:`Run all`,_;t[9]!==o||t[10]!==m||t[11]!==h||t[12]!==g?(_=(0,I.jsxs)(j,{variant:`ghost`,className:`h-7 rounded-lg px-2 text-[11px]`,onClick:o,disabled:m,children:[h,g]}),t[9]=o,t[10]=m,t[11]=h,t[12]=g,t[13]=_):_=t[13];let v;t[14]!==p||t[15]!==_?(v=(0,I.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[p,_]}),t[14]=p,t[15]=_,t[16]=v):v=t[16];let y=a?`产品场景验收结果`:`Product scenario acceptance results`,b;if(t[17]!==c||t[18]!==s||t[19]!==r||t[20]!==i||t[21]!==n||t[22]!==a){let e;t[24]!==c||t[25]!==s||t[26]!==r||t[27]!==i||t[28]!==a?(e=e=>{let t=r[e.id],n=i===`all`||i===e.id?`running`:t?.status??`pending`;return(0,I.jsx)(`li`,{className:`py-2.5 first:pt-1`,children:(0,I.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,I.jsx)(`span`,{className:`mt-0.5 shrink-0`,"aria-hidden":!0,children:n===`running`?(0,I.jsx)(O,{className:`size-3.5 animate-spin text-accent`}):n===`passed`?(0,I.jsx)(C,{className:`size-3.5 text-success`}):n===`failed`?(0,I.jsx)(w,{className:`size-3.5 text-danger`}):(0,I.jsx)(T,{className:`size-3.5 text-fg-subtle`})}),(0,I.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsx)(`p`,{className:`truncate text-[11px] font-medium text-fg`,children:e.name}),(0,I.jsx)(`p`,{className:`mt-0.5 text-[10px] text-fg-subtle`,children:a?`${e.stepCount} 个步骤`:`${e.stepCount} step${e.stepCount===1?``:`s`}`})]}),(0,I.jsx)(j,{variant:`ghost`,className:`size-7 shrink-0 rounded-lg p-0`,onClick:()=>s(e.id),disabled:i!==null,"aria-label":a?`重跑${e.name}`:`Rerun ${e.name}`,title:a?`单独重跑`:`Rerun scenario`,children:(0,I.jsx)(oe,{className:`size-3`})})]}),n===`running`?(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`正在隔离预览中执行…`:`Running in an isolated preview…`}):t?.status===`failed`?(0,I.jsxs)(`div`,{className:`mt-1.5`,children:[(0,I.jsx)(`p`,{className:`text-[11px] leading-4 text-danger`,children:t.message}),(0,I.jsxs)(j,{variant:`ghost`,className:`mt-1 h-7 rounded-lg px-2 text-[11px] text-danger hover:text-danger`,onClick:()=>t.failureKind===`runner`?s(e.id):c(e,t),children:[(0,I.jsx)(D,{className:`size-3`}),t.failureKind===`runner`?a?`恢复资源并重试`:`Retry preview`:a?`让 Coder 修复`:`Ask Coder to fix`]})]}):t?.status===`passed`?(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`场景已通过`:`Scenario passed`}):(0,I.jsx)(`p`,{className:`mt-1 text-[11px] leading-4 text-fg-muted`,children:a?`等待运行`:`Waiting to run`})]})]})},e.id)},t[24]=c,t[25]=s,t[26]=r,t[27]=i,t[28]=a,t[29]=e):e=t[29],b=n.map(e),t[17]=c,t[18]=s,t[19]=r,t[20]=i,t[21]=n,t[22]=a,t[23]=b}else b=t[23];let x;t[30]!==y||t[31]!==b?(x=(0,I.jsx)(`ul`,{className:`mt-2 divide-y divide-edge-subtle`,"aria-label":y,children:b}),t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;return t[33]!==v||t[34]!==x?(S=(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[v,x]}),t[33]=v,t[34]=x,t[35]=S):S=t[35],S}function Ge({extensionId:e,name:t,zh:n}){let{data:r,error:i,mutate:a}=ge([`local-app-access`,e],()=>Se(e)),[o,c]=(0,F.useState)(!1),[l,d]=(0,F.useState)(!1),[f,p]=(0,F.useState)(``);async function m(t){if(!(!r?.manifestDigest||l)){d(!0),p(``);try{await N(e,r.manifestDigest,t),await a(),c(!1)}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1)}}}async function h(){if(!(!r?.manifestDigest||l)){d(!0),p(``);try{await u(s(`/api/extensions/${encodeURIComponent(e)}/ui-grant`),{method:`DELETE`,body:JSON.stringify({manifestDigest:r.manifestDigest})}),await a()}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1)}}}return(0,I.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[!r&&!i?(0,I.jsx)(k,{className:`h-12`}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`p`,{className:`text-xs text-fg-muted`,children:r?.granted?n?`已授权,可随时缩小数据范围或撤销访问。`:`Access granted. You can narrow the data scope or revoke access.`:n?`尚未授权访问。`:`Access has not been granted.`}),(0,I.jsx)(j,{className:`w-full`,disabled:!r||l,onClick:()=>c(!0),children:n?`管理数据访问范围`:`Manage data access`}),r?.granted?(0,I.jsx)(j,{variant:`ghost`,className:`w-full text-danger`,disabled:l,onClick:()=>void h(),children:n?`撤销应用授权`:`Revoke app access`}):null]}),f||i?(0,I.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:f||String(i)}):null,r?(0,I.jsx)(Ce,{open:o,onOpenChange:c,extensionId:e,extensionName:t,permissions:r.permissions,localApp:!0,resourceScopes:r.resourceScopes,error:f,confirmDisabled:l||!r.manifestDigest,onConfirm:e=>void m(e)}):null]})}function Ke(e,t){return P(e,t)}function qe(e,t,n){return!!(t&&n&&e.sourceHash===t&&e.status===n.status&&e.interactiveCount===n.interactiveCount&&JSON.stringify(e.checks)===JSON.stringify(n.checks))}function Je(){let{appId:e}=a(),t=e===`new`,n=l(e=>e.language)===`zh`,r=l(e=>e.language),s=c(e=>e.baseUrl),u=c(e=>e.conversationId),w=JSON.stringify([e,s,u]),T=i(),{mutate:A}=he(),_e=ve(e=>e.setPageHeader),ye=ve(e=>e.clearPageHeader),{data:M,isLoading:be,error:Se,mutate:Ce}=ge(!t&&e?[`local-app`,e]:null,()=>Ne(e)),{data:N,isLoading:Ee,mutate:P}=ge(!t&&e?[`local-app-validation`,e]:null,()=>je(e)),[Ue,Je]=(0,F.useState)(``),[Ye,Xe]=(0,F.useState)(``),[L,R]=(0,F.useState)(!1),[Ze,z]=(0,F.useState)(null),[Qe,$e]=(0,F.useState)(!1),[et,tt]=(0,F.useState)(!1),[nt,rt]=(0,F.useState)(0),[it,at]=(0,F.useState)(`sample`),[ot,st]=(0,F.useState)(!1),[ct,lt]=(0,F.useState)(``),[ut,dt]=(0,F.useState)(``),[ft,pt]=(0,F.useState)(``),[mt,ht]=(0,F.useState)(``),[gt,_t]=(0,F.useState)(0),[vt,yt]=(0,F.useState)(()=>me.parse({})),[bt,xt]=(0,F.useState)(),B=it===`readonly`&&(ut!==N?.sourceHash||ft!==w)?`sample`:it,St=B===`readonly`?bt:void 0,Ct=B===`readonly`?gt:nt;(0,F.useEffect)(()=>{yt(me.parse({})),st(!1),lt(``)},[w]),(0,F.useEffect)(()=>{it===`readonly`&&B!==`readonly`&&(at(`sample`),xt(void 0),dt(``),pt(``))},[it,B]);let[wt,Tt]=(0,F.useState)(``),[V,Et]=(0,F.useState)(!1),[H,Dt]=(0,F.useState)(!1),[U,Ot]=(0,F.useState)(`booting`),[W,kt]=(0,F.useState)(null),[G,At]=(0,F.useState)(null),[K,jt]=(0,F.useState)({}),[q,Mt]=(0,F.useState)(`all`),[Nt,Pt]=(0,F.useState)(0),[Ft,It]=(0,F.useState)(0),[Lt,Rt]=(0,F.useState)(null),[J,zt]=(0,F.useState)(null),[Bt,Vt]=(0,F.useState)([]),[Ht,Ut]=(0,F.useState)(!1),Wt=(0,F.useRef)(new Set),Y=(0,F.useRef)(null),Gt=(0,F.useRef)(null),Kt=(0,F.useRef)(null),X=(0,F.useRef)(null),Z=(0,F.useRef)(``),Q=(0,F.useMemo)(()=>N?.acceptanceScenarios??[],[N?.sourceHash]),qt=(0,F.useMemo)(()=>{if(!Q.length)return null;let e=Q.map(e=>K[e.id]).filter(e=>!!e);return e.length===Q.length?{status:e.some(e=>e.status===`failed`)?`failed`:`passed`,scenarioCount:Q.length,scenarios:e}:null},[Q,K]),$=(0,F.useMemo)(()=>{if(!G)return null;if(!N?.acceptanceScenarioCount)return G;if(!qt)return null;let e=qt.scenarios.find(e=>e.status===`failed`),t={id:`criteria`,status:qt.status,message:e?`${e.name}: ${e.message}`:`${qt.scenarioCount} product scenario(s) passed`},n=[...G.checks,t];return{status:n.some(e=>e.status===`failed`)?`failed`:`passed`,checks:n,interactiveCount:G.interactiveCount}},[G,qt,N?.acceptanceScenarioCount]),Jt=(0,F.useCallback)(async(e,t)=>{let n=await ke(e.id);Wt.current.add(n),T(we(n,t))},[T]),Yt=(0,F.useCallback)(async(e=!0)=>{if(!M)return null;Dt(!0),z(null);try{let t=await je(M.id);if(e){let e=X.current===t.sourceHash;X.current=t.sourceHash??null,Mt(`all`),Pt(0),e&&rt(e=>e+1)}return await P(t,{revalidate:!1}),t}catch(e){return z(e instanceof Error?e.message:String(e)),null}finally{Dt(!1)}},[M,P]);(0,F.useEffect)(()=>{if(!M)return;Wt.current=new Set(M.developmentConversationId?[M.developmentConversationId]:[]);let e=e=>{let t=e.detail?.key;!t||!Wt.current.has(t)||(Y.current!==null&&window.clearTimeout(Y.current),Y.current=window.setTimeout(()=>{Y.current=null,Yt(!0)},750))};return window.addEventListener(`session-transcript-updated`,e),()=>{window.removeEventListener(`session-transcript-updated`,e),Y.current!==null&&window.clearTimeout(Y.current)}},[M,Yt]),(0,F.useEffect)(()=>{Vt(M?.acceptanceRuns??[])},[M?.acceptanceRuns]),(0,F.useEffect)(()=>{X.current=null},[M?.id]),(0,F.useEffect)(()=>{!N?.sourceHash||X.current===N.sourceHash||(X.current=N.sourceHash,Mt(`all`),Pt(0))},[M?.id,N?.sourceHash]),(0,F.useLayoutEffect)(()=>{if(!M)return;Ot(`booting`),kt(null),At(null),zt(null),Ut(!1),Z.current=``;let e=window.setTimeout(()=>Ot(e=>e===`failed`?e:`timeout`),7e3);return Gt.current=t=>{if(t&&typeof t==`object`&&`sourceHash`in t&&t.sourceHash!==N?.sourceHash)return;let n=pe(t);if(n){if(n.type===`ready`){Ot(e=>e===`failed`?e:`healthy`);return}if(n.type===`acceptance`){window.clearTimeout(e),At(n.detail),zt(t&&typeof t==`object`&&`sourceHash`in t?String(t.sourceHash):N?.sourceHash??null);return}n.type!==`criteria`&&(window.clearTimeout(e),kt(n.detail),Ot(`failed`))}},()=>{window.clearTimeout(e),Gt.current=null}},[M?.id,N?.sourceHash,Ct,B,St,w]),(0,F.useLayoutEffect)(()=>{if(!M||N?.status!==`healthy`||!Q.length){Rt(null);return}let e=q===`all`?Q[Nt]:Q.find(e=>e.id===q),t=e?[e]:[];if(!t.length)return;Rt(q),jt(e=>{if(q===`all`&&Nt===0)return{};let t={...e};return delete t[q],t});let r=!1,i=e=>{jt(n=>{let r={...n};for(let n of t)r[n.id]={id:n.id,name:n.name,status:`failed`,message:e,failureKind:`runner`};return r}),Rt(null)},a=window.setTimeout(()=>i(r?n?`场景在 20 秒内未完成。`:`Scenario did not finish within 20 seconds.`:n?`验收执行器未能连接,请重新验收。`:`The acceptance runner did not connect. Run acceptance again.`),2e4);return Kt.current=e=>{if(e&&typeof e==`object`&&`sourceHash`in e&&e.sourceHash!==N?.sourceHash)return;let t=pe(e);t&&(t.type===`ready`?r=!0:t.type===`criteria`?(window.clearTimeout(a),jt(e=>{let n={...e};for(let e of t.detail.scenarios)(n[e.id]?.status!==`failed`||e.status===`failed`)&&(n[e.id]=e);return n}),q===`all`&&Nt+1<Q.length?(Pt(e=>e+1),It(e=>e+1)):Rt(null)):t.type===`error`&&(window.clearTimeout(a),i(De(t.detail))))},()=>{window.clearTimeout(a),Kt.current=null}},[Q,M?.id,Ft,q,Nt,nt,N?.status,n,w]),(0,F.useEffect)(()=>{if(!M||!$||!J||J!==N?.sourceHash)return;let e=`${M.id}:${J}:${JSON.stringify($)}`;Z.current!==e&&(Z.current=e,Ut(!0),Fe(M.id,J,$).then(t=>{Z.current===e&&Vt(e=>[t,...e.filter(e=>e.id!==t.id)].toSorted((e,t)=>t.createdAt-e.createdAt).slice(0,20))}).catch(t=>{Z.current===e&&X.current===J&&(Z.current=``,Ut(!1),z(t instanceof Error?t.message:String(t)))}).finally(()=>{Z.current===e&&Ut(!1)}))},[$,J,M,N?.sourceHash]);let Xt=(0,F.useCallback)(async e=>{if(M){Et(!0),z(null);try{await Jt(M,e)}catch(e){z(e instanceof Error?e.message:String(e)),Et(!1)}}},[M,Jt]);(0,F.useLayoutEffect)(()=>(_e({startExtra:(0,I.jsx)(o,{to:`/local-apps`,className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":n?`返回应用工坊`:`Back to App Studio`,children:(0,I.jsx)(y,{className:`size-4`})}),main:(0,I.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:M?.name||(t?n?`创建应用`:`Create app`:n?`应用详情`:`App details`)}),end:M?(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsx)(Be,{resource:{kind:`local_app`,id:M.id,revision:N?.sourceHash??``},disabled:L||V||H||!N?.sourceHash}),(0,I.jsx)(j,{asChild:!0,variant:`ghost`,className:`h-9`,children:(0,I.jsxs)(o,{to:`/projects/${encodeURIComponent(M.projectId)}`,children:[(0,I.jsx)(ne,{className:`size-4`}),n?`项目`:`Project`]})}),(0,I.jsxs)(j,{className:`h-9`,onClick:()=>void Xt(),disabled:V,children:[V?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`继续开发`:`Continue building`]})]}):null}),()=>ye()),[M,t,L,V,H,N?.sourceHash,ye,Xt,_e,n]);async function Zt(e){e.preventDefault(),R(!0),z(null);try{let e=await Ie({name:Ue,idea:Ye});await A(`local-apps-list`);let t=n?`请基于 APP_BRIEF.md 完成这个本地应用的首版。先检查现有草稿,再实现最小可用版本并运行校验;完成后告诉我可以如何预览。`:`Build the first usable version of this local app from APP_BRIEF.md. Inspect the existing draft, implement the smallest useful version, run validation, and tell me how to preview it.`;try{await Jt(e,t)}catch{T(`/local-apps/${encodeURIComponent(e.id)}`,{replace:!0})}}catch(e){z(e instanceof Error?e.message:String(e))}finally{R(!1)}}async function Qt(){if(M){R(!0),z(null);try{let e=await Oe(M.id);await Ce(e,{revalidate:!1}),await P(),await Promise.all([A(`local-apps-list`),A(`gateway-extensions-list`)]),$e(!1)}catch(e){z(e instanceof Error?e.message:String(e))}finally{R(!1)}}}async function $t(e){R(!0),z(null);try{let t=await e();return await Ce(t,{revalidate:!1}),await P(),await Promise.all([A(`local-apps-list`),A(`gateway-extensions-list`)]),!0}catch(e){return z(e instanceof Error?e.message:String(e)),!1}finally{R(!1)}}async function en(e){M&&await $t(()=>Le(M.id,e))}async function tn(e){M&&await $t(()=>Me(M.id,e))}async function nn(){M&&await $t(()=>Ae(M.id))&&tt(!1)}async function rn(e){if(!(!M||!e.length)){z(null);try{let t=await Pe(M.id,{sourceHash:N?.sourceHash,locale:n?`zh`:`en`,diagnostics:e});if(t.action===`retry`){rt(e=>e+1),on();return}await Xt(t.prompt)}catch(e){z(e instanceof Error?e.message:String(e))}}}function an(){rn([...N?.issues.map(e=>({phase:`build`,code:e.code,message:e.message}))??[],...W?[{phase:W.kind===`runner_error`?`runner`:`runtime`,code:W.kind,message:De(W)}]:[],...$?.checks.filter(e=>e.status===`failed`&&e.id!==`criteria`&&W?.kind!==`runner_error`).map(e=>({phase:`acceptance`,code:e.id,message:e.message}))??[],...Object.values(K).filter(e=>e.status===`failed`).map(e=>({phase:e.failureKind===`runner`?`runner`:`acceptance`,code:e.id,message:`${e.name}: ${e.message}`})),...U===`timeout`?[{phase:`boot`,code:`boot_timeout`,message:`Preview did not report ready within 7 seconds.`}]:[]].filter(e=>e.phase!==`runner`))}function on(){Mt(`all`),Pt(0),It(e=>e+1)}function sn(e){Mt(e),Pt(0),It(e=>e+1)}function cn(e,t){if(t.failureKind===`runner`){sn(e.id);return}rn([{phase:`acceptance`,code:e.id,message:`${e.name}: ${t.message}`}])}let ln=Bt.findIndex(e=>qe(e,J,$)),un=ln>=0?Bt[ln]:null,dn=ln>=0?Bt[ln+1]??null:Bt[0]??null,fn=Te($),pn=dn?dn.checks.filter(e=>e.status===`failed`).map(e=>e.message):[],mn=N?.status===`failed`||U===`failed`&&W?.kind!==`runner_error`||$?.checks.some(e=>e.status===`failed`&&e.id!==`criteria`&&W?.kind!==`runner_error`)||Object.values(K).some(e=>e.status===`failed`&&e.failureKind!==`runner`),hn=pn.filter(e=>!fn.includes(e)).length;async function gn(){(await Yt(!1))?.status===`healthy`&&$e(!0)}return t?(0,I.jsx)(`div`,{className:`flex min-h-0 flex-1 bg-surface-panel p-3 sm:p-5 xl:p-6`,children:(0,I.jsxs)(`div`,{className:`grid w-full min-w-0 overflow-hidden rounded-2xl border border-edge-subtle bg-surface-base shadow-surface lg:grid-cols-[minmax(280px,0.8fr)_minmax(0,1.5fr)]`,children:[(0,I.jsxs)(`form`,{onSubmit:Zt,className:`flex flex-col border-b border-edge-subtle p-5 lg:border-b-0 lg:border-r`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.14em] text-accent`,children:[(0,I.jsx)(le,{className:`size-4`}),n?`告诉编程智能体你的想法`:`Tell Coder your idea`]}),(0,I.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:n?`你想创建什么?`:`What do you want to create?`}),(0,I.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n?`我们会创建项目,并在对话中由编程智能体根据你的想法开发应用。`:`We will create a Coder Project and carry the app context and development skill into chat.`}),(0,I.jsxs)(`label`,{className:`mt-6 text-xs font-medium text-fg-muted`,children:[n?`应用名称`:`App name`,(0,I.jsx)(ze,{value:Ue,onChange:e=>Je(e.target.value),suggestion:Ve(n?`例如:阅读清单`:`e.g. Reading list`),onAcceptSuggestion:Je,required:!0,className:`mt-2 w-full rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`例如:阅读清单`:`e.g. Reading list`})]}),(0,I.jsxs)(`label`,{className:`mt-4 text-xs font-medium text-fg-muted`,children:[n?`描述你的想法`:`Describe your idea`,(0,I.jsx)(Re,{value:Ye,onChange:e=>Xe(e.target.value),suggestion:Ve(n?`我想要一个可以记录待读文章、标记进度并按主题筛选的小工具…`:`I want a small tool that tracks articles, reading progress, and topics…`),onAcceptSuggestion:Xe,required:!0,rows:7,className:`mt-2 w-full resize-none rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm leading-6 text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`我想要一个可以记录待读文章、标记进度并按主题筛选的小工具…`:`I want a small tool that tracks articles, reading progress, and topics…`})]}),Ze?(0,I.jsx)(`p`,{className:`mt-3 text-sm text-danger`,role:`alert`,children:Ze}):null,(0,I.jsxs)(j,{type:`submit`,variant:`primary`,className:`mt-5 h-10`,disabled:L||!Ue.trim()||!Ye.trim(),children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`开始开发对话`:`Continue with Coder`]})]}),(0,I.jsx)(`div`,{className:`hidden min-h-[620px] place-items-center bg-surface-panel p-8 lg:grid`,children:(0,I.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,I.jsx)(`div`,{className:`mx-auto flex size-16 items-center justify-center rounded-2xl border border-edge bg-surface-base text-accent shadow-surface`,children:(0,I.jsx)(ie,{className:`size-7`})}),(0,I.jsx)(`h3`,{className:`mt-5 text-base font-semibold text-fg`,children:n?`创建后,这里就是实时预览`:`Your live preview appears here`}),(0,I.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:n?`你可以先体验草稿,再决定是否把它添加到左侧导航。`:`Try the draft first, then decide whether to add it to the sidebar.`})]})})]})}):be?(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-3 bg-surface-base p-3 lg:grid-cols-[280px_minmax(0,1fr)_260px]`,children:[(0,I.jsx)(k,{className:`rounded-xl`}),(0,I.jsx)(k,{className:`rounded-xl`}),(0,I.jsx)(k,{className:`rounded-xl`})]}):Se||!M?(0,I.jsx)(d,{kind:`app`,missing:!Se||/not found|404/i.test(String(Se)),backTo:`/local-apps`,retry:()=>void Ce()}):(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 gap-3 overflow-hidden bg-surface-base p-3 lg:grid-cols-[280px_minmax(0,1fr)_300px]`,children:[(0,I.jsxs)(`aside`,{className:`min-h-0 min-w-0 overflow-y-auto rounded-xl bg-surface-panel p-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.12em] text-accent`,children:[(0,I.jsx)(le,{className:`size-4`}),n?`创作对话`:`Build conversation`]}),(0,I.jsx)(`div`,{className:`mt-4 min-w-0 rounded-xl bg-surface-inset p-3 text-sm leading-6 text-fg [overflow-wrap:anywhere]`,children:M.idea}),(0,I.jsxs)(`div`,{className:`mt-4 rounded-xl bg-accent-soft p-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-sm font-medium text-accent-fg`,children:[(0,I.jsx)(C,{className:`size-4`}),n?`草稿已准备好`:`Draft is ready`]}),(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:n?`继续开发会打开对应项目的对话,编程智能体可以参考当前应用继续修改。`:`Continue in the Project where Coder has the app context and dedicated skill.`})]}),(0,I.jsxs)(`form`,{className:`mt-5`,onSubmit:e=>{e.preventDefault(),Xt(wt)},children:[(0,I.jsx)(`label`,{className:`text-xs font-medium text-fg-muted`,htmlFor:`local-app-change-request`,children:n?`下一步想改什么?`:`What should change next?`}),(0,I.jsx)(Re,{id:`local-app-change-request`,value:wt,onChange:e=>Tt(e.target.value),suggestion:Ve(n?`例如:增加月视图,并支持按标签筛选`:`e.g. Add a monthly view and tag filters`),onAcceptSuggestion:Tt,rows:4,className:`mt-2 w-full resize-none rounded-xl border border-edge bg-surface-panel px-3 py-2.5 text-sm leading-6 text-fg outline-none focus-visible:ring-2 focus-visible:ring-accent`,placeholder:n?`例如:增加月视图,并支持按标签筛选`:`e.g. Add a monthly view and tag filters`}),(0,I.jsxs)(j,{type:`submit`,className:`mt-2 w-full`,disabled:V||!wt.trim(),children:[V?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(D,{className:`size-4`}),n?`让 Coder 修改`:`Ask Coder to update`]})]}),(0,I.jsxs)(j,{variant:`ghost`,className:`mt-2 w-full`,onClick:()=>void Xt(),disabled:V,children:[(0,I.jsx)(ne,{className:`size-4`}),n?`打开已有开发对话`:`Open development chat`]})]}),(0,I.jsxs)(`section`,{className:`flex min-h-0 flex-col overflow-hidden rounded-xl bg-surface-panel`,children:[(0,I.jsxs)(`div`,{className:`flex h-11 shrink-0 items-center justify-between border-b border-edge-subtle px-3`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-medium text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${N?.status===`failed`||U===`failed`||U===`timeout`||$?.status===`failed`?`bg-danger`:N?.status===`healthy`&&U===`healthy`&&$?.status===`passed`&&un?.sourceHash===N.sourceHash&&!Ht?`bg-success`:`bg-fg-subtle`}`}),U===`failed`||U===`timeout`?n?`预览运行异常`:`Preview runtime issue`:N?.status===`failed`||$?.status===`failed`?n?`自动验收未通过`:`Acceptance needs attention`:U===`booting`||!$?n?`自动验收中`:`Running acceptance`:Ht||un?.sourceHash!==N?.sourceHash?n?`正在保存验收快照`:`Saving acceptance snapshot`:n?`草稿已通过验收`:`Draft accepted`]}),(0,I.jsxs)(j,{variant:`ghost`,className:`h-8 px-2`,onClick:()=>void Yt(!0),disabled:H,children:[H?(0,I.jsx)(O,{className:`size-3.5 animate-spin`}):(0,I.jsx)(oe,{className:`size-3.5`}),n?`重新验收`:`Run again`]})]}),(0,I.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 border-b border-edge-subtle px-3 py-2`,children:[(0,I.jsx)(`div`,{className:`w-44 shrink-0`,children:(0,I.jsxs)(x,{"aria-label":n?`预览数据`:`Preview data`,value:B,onChange:e=>{e.target.value===`readonly`?(lt(N?.sourceHash??``),ht(w),st(!0)):(at(e.target.value),xt(void 0))},children:[(0,I.jsx)(S,{value:`sample`,children:n?`示例数据`:`Sample data`}),(0,I.jsx)(S,{value:`readonly`,children:n?`真实数据 · 只读`:`Real data · read only`}),(0,I.jsx)(S,{value:`isolated`,children:n?`隔离写入体验`:`Isolated writes`})]})}),(0,I.jsx)(`p`,{className:`order-last basis-full text-[11px] text-fg-muted`,children:B===`readonly`?n?`仅使用本次授权的数据,写入已禁止。`:`Only approved live data. Production writes are blocked.`:n?`使用独立示例数据;修改和存储不会影响正式数据。自动验收始终使用独立隔离环境。`:`Separate example data and storage. Acceptance always runs in its own isolated environment.`}),B===`readonly`?(0,I.jsx)(j,{variant:`ghost`,onClick:()=>{at(`sample`),xt(void 0)},children:n?`停止真实数据预览`:`Stop live preview`}):null]}),N?.sourceHash?(0,I.jsx)(He,{appId:M.id,sourceHash:N.sourceHash,mode:B,resourceScopes:St,runKey:Ct,title:`${M.name} preview`,onMessage:e=>Gt.current?.(e)}):(0,I.jsx)(k,{className:`min-h-0 flex-1`}),N?.status===`healthy`&&N.sourceHash&&Q.length>0&&Lt!==null?(0,I.jsx)(He,{appId:M.id,sourceHash:N.sourceHash,mode:`isolated`,hidden:!0,scenarioId:q===`all`?Q[Nt]?.id:q,runKey:nt*1e6+Ft,title:`${M.name} acceptance runner`,onMessage:e=>Kt.current?.(e)}):null,(0,I.jsx)(v,{open:ot,onOpenChange:st,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`fixed inset-0 z-50 bg-scrim`}),(0,I.jsxs)(g,{className:`fixed left-1/2 top-1/2 z-50 flex h-[min(680px,calc(100vh-32px))] w-[min(520px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay p-5`,children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`选择本次只读预览的数据`:`Choose data for this read-only preview`}),(0,I.jsx)(p,{className:`mt-2 text-sm text-fg-muted`,children:n?`仅授权当前草稿,15 分钟后过期。源码变化或停止预览后授权失效;自动验收不会使用这些真实数据。`:`Applies to this draft for 15 minutes. Editing the source or stopping preview revokes access. Acceptance never uses this live data.`}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,I.jsx)(xe,{extensionId:M.extensionId,permissions:(N?.permissions??M.permissions).filter(e=>/^capability:xopc\.(notes|tasks|projects)\.(get|list|list_milestones|list_updates)$/.test(e)),value:vt,onChange:yt,zh:n})}),(0,I.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsx)(j,{variant:`primary`,disabled:ct!==N?.sourceHash||mt!==w,onClick:()=>{xt(vt),dt(ct),pt(mt),_t(e=>e+1),at(`readonly`),st(!1)},children:n?`启动只读预览`:`Start read-only preview`})]})]})]})})]}),(0,I.jsxs)(`aside`,{className:`min-h-0 overflow-y-auto rounded-xl bg-surface-panel p-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n?`发布状态`:`Release status`}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.installationState===`not_installed`?n?`尚未安装`:`Not installed`:M.enabled?n?`版本 ${M.activeVersion} 正在使用`:`Version ${M.activeVersion} is active`:n?`已禁用,版本仍保留`:`Disabled, release retained`})]}),(0,I.jsx)(`span`,{className:`mt-1 size-2.5 rounded-full ${M.enabled?`bg-success`:`bg-fg-subtle`}`,"aria-hidden":!0})]}),(0,I.jsxs)(`dl`,{className:`mt-4 grid grid-cols-2 gap-3 text-xs`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`当前草稿`:`Draft`}),(0,I.jsxs)(`dd`,{className:`mt-1 font-medium text-fg`,children:[`v`,M.draftVersion]})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`已安装`:`Installed`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium text-fg`,children:M.activeVersion?`v${M.activeVersion}`:`—`})]})]}),(0,I.jsxs)(`div`,{className:`mt-5 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,I.jsxs)(`h3`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(ee,{className:`size-4 text-accent`}),n?`草稿检查`:`Draft checks`]}),Ee||H?(0,I.jsx)(O,{className:`size-3.5 animate-spin text-fg-muted`}):N?.status===`healthy`?(0,I.jsx)(C,{className:`size-4 text-success`}):(0,I.jsx)(de,{className:`size-4 text-danger`})]}),N?(0,I.jsxs)(`div`,{className:`mt-2`,children:[(0,I.jsx)(`p`,{className:`text-xs leading-5 ${N.status===`healthy`?`text-fg-muted`:`text-danger`}`,children:N.status===`healthy`?N.hasDraftChanges?n?`${N.changedFileCount} 个文件有改动,可以安装新版本。`:`${N.changedFileCount} changed files are ready for a new release.`:n?`草稿与当前安装版本一致。`:`Draft matches the installed release.`:N.issues[0]?.message}),N.changedFiles.length?(0,I.jsx)(`ul`,{className:`mt-2 space-y-1`,children:N.changedFiles.slice(0,4).map(e=>(0,I.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`w-4 shrink-0 font-medium text-fg-subtle`,children:e.status===`added`?`+`:e.status===`deleted`?`−`:`•`}),(0,I.jsx)(`span`,{className:`truncate font-mono`,children:e.path})]},e.path))}):null,N.changedFileCount>4?(0,I.jsx)(`p`,{className:`mt-1 text-[10px] text-fg-subtle`,children:n?`还有 ${N.changedFileCount-4} 个文件`:`${N.changedFileCount-4} more files`}):null,(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-xs font-medium text-fg`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${U===`healthy`?`bg-success`:U===`booting`?`bg-fg-subtle`:`bg-danger`}`}),n?`预览运行`:`Preview runtime`]}),(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 ${U===`failed`||U===`timeout`?`text-danger`:`text-fg-muted`}`,children:W?De(W):U===`healthy`?n?`已成功启动,未发现未捕获异常。`:`Started successfully with no uncaught errors.`:U===`timeout`?n?`7 秒内未完成启动,可能出现白屏或阻塞。`:`Did not finish booting within 7 seconds.`:n?`正在等待应用启动。`:`Waiting for the app to start.`})]}),(0,I.jsxs)(`div`,{className:`mt-3 border-t border-edge-subtle pt-3`,children:[(0,I.jsxs)(`p`,{className:`flex items-center gap-2 text-xs font-medium text-fg`,children:[(0,I.jsx)(`span`,{className:`size-2 rounded-full ${$?.status===`passed`?`bg-success`:$?.status===`failed`?`bg-danger`:`bg-fg-subtle`}`}),n?`自动验收`:`Automatic acceptance`]}),$?(0,I.jsx)(`ul`,{className:`mt-2 space-y-1.5`,children:$.checks.map(e=>(0,I.jsxs)(`li`,{className:`flex items-start gap-2 text-[11px] leading-4 ${e.status===`failed`?`text-danger`:`text-fg-muted`}`,children:[(0,I.jsx)(`span`,{className:`mt-1 size-1.5 shrink-0 rounded-full ${e.status===`failed`?`bg-danger`:e.status===`passed`?`bg-success`:`bg-fg-subtle`}`}),(0,I.jsx)(`span`,{children:e.message})]},e.id))}):(0,I.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:N?.acceptanceScenarioCount?n?`正在检查页面基础质量和 ${N.acceptanceScenarioCount} 个产品场景。`:`Checking page quality and ${N.acceptanceScenarioCount} product scenario(s).`:n?`正在检查页面内容和基础交互。`:`Checking rendered content and basic interaction.`}),Ht?(0,I.jsxs)(`p`,{className:`mt-2 flex items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(O,{className:`size-3 animate-spin`}),n?`正在保存当前源码对应的验收快照…`:`Saving the acceptance snapshot for this source…`]}):un?(0,I.jsx)(`p`,{className:`mt-2 text-[11px] leading-4 text-fg-muted`,children:dn?n?`相比上次:已修复 ${hn} 项,仍有 ${fn.length} 项。`:`Since the previous run: ${hn} fixed, ${fn.length} remaining.`:n?`首个验收快照已保存。`:`First acceptance snapshot saved.`}):null,(0,I.jsx)(We,{scenarios:Q,results:K,runningTarget:Lt,zh:n,onRunAll:on,onRunScenario:sn,onAskCoder:cn})]}),W?.kind===`runner_error`||U===`timeout`?(0,I.jsx)(j,{className:`mt-3 w-full`,onClick:()=>{rt(e=>e+1),on()},children:n?`恢复资源并重试`:`Retry preview`}):null,mn?(0,I.jsxs)(j,{className:`mt-3 w-full`,onClick:an,disabled:V,children:[(0,I.jsx)(D,{className:`size-4`}),n?`让 Coder 修复`:`Ask Coder to fix`]}):null]}):(0,I.jsx)(k,{className:`mt-2 h-12 rounded-lg`})]}),(0,I.jsxs)(`div`,{className:`mt-5 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(ce,{className:`size-4 text-accent`}),n?`权限`:`Permissions`]}),(0,I.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1.5`,children:(N?.permissions??M.permissions).map(e=>(0,I.jsx)(`span`,{className:`rounded-md bg-surface-hover px-2 py-1 text-[11px] text-fg-muted`,children:e},e))}),M.installationState===`installed`?(0,I.jsx)(Ge,{extensionId:M.extensionId,name:M.name,zh:n}):null]}),(0,I.jsx)(j,{variant:`primary`,className:`mt-5 w-full`,onClick:()=>void gn(),disabled:L||Ee||H||N?.status!==`healthy`||M.installationState===`installed`&&N?.hasDraftChanges===!1,children:M.installationState===`installed`?n?`安装当前更新`:`Install current update`:n?`添加到左侧导航`:`Add to sidebar`}),M.installationState===`installed`?(0,I.jsxs)(`div`,{className:`mt-2 flex gap-2`,children:[(0,I.jsxs)(j,{className:`min-w-0 flex-1`,onClick:()=>void en(!M.enabled),disabled:L,children:[M.enabled?(0,I.jsx)(te,{className:`size-4`}):(0,I.jsx)(ae,{className:`size-4`}),M.enabled?n?`禁用`:`Disable`:n?`启用`:`Enable`]}),(0,I.jsx)(j,{variant:`ghost`,className:`text-danger hover:text-danger`,onClick:()=>tt(!0),disabled:L,"aria-label":n?`卸载应用`:`Uninstall app`,children:(0,I.jsx)(ue,{className:`size-4`})})]}):null,(0,I.jsxs)(`div`,{className:`mt-6 border-t border-edge-subtle pt-4`,children:[(0,I.jsxs)(`h3`,{className:`flex items-center gap-2 text-xs font-semibold text-fg`,children:[(0,I.jsx)(re,{className:`size-4`}),n?`版本历史`:`Release history`]}),M.releases.length?(0,I.jsx)(`ul`,{className:`mt-2 divide-y divide-edge-subtle`,children:M.releases.map(e=>(0,I.jsxs)(`li`,{className:`flex items-center justify-between gap-3 py-2.5`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-medium text-fg`,children:[`v`,e.version,e.isActive?(0,I.jsx)(`span`,{className:`rounded-full bg-success-soft px-1.5 py-0.5 text-[10px] text-success`,children:n?`当前`:`Active`}):null]}),(0,I.jsx)(`p`,{className:`mt-0.5 truncate text-[10px] text-fg-subtle`,children:Ke(e.createdAt,r)})]}),e.isActive?null:(0,I.jsxs)(j,{variant:`ghost`,className:`h-7 px-2 text-xs`,onClick:()=>void tn(e.id),disabled:L,children:[(0,I.jsx)(se,{className:`size-3.5`}),n?`恢复`:`Restore`]})]},e.id))}):(0,I.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:n?`安装首个版本后,可以从这里恢复。`:`Install the first version to enable recovery.`})]}),Ze?(0,I.jsx)(`p`,{className:`mt-3 text-xs leading-5 text-danger`,role:`alert`,children:Ze}):null]}),(0,I.jsx)(v,{open:Qe,onOpenChange:$e,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`xopc-dialog-overlay fixed inset-0 z-50 bg-scrim backdrop-blur-[2px]`}),(0,I.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-50 flex h-[min(560px,calc(100vh-32px))] w-[min(520px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-2xl focus:outline-none`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between border-b border-edge-subtle p-5`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`确认安装到 XOPC`:`Confirm installation`}),(0,I.jsx)(p,{className:`mt-1 text-sm text-fg-muted`,children:n?`当前草稿会成为左侧导航中的可用版本。`:`The current draft will become the version available in the sidebar.`})]}),(0,I.jsx)(m,{className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover`,children:(0,I.jsx)(fe,{className:`size-4`})})]}),(0,I.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:[(0,I.jsxs)(`div`,{className:`rounded-xl border border-edge-subtle bg-surface-panel p-4`,children:[(0,I.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:M.name}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.extensionId})]}),(0,I.jsx)(`h4`,{className:`mt-5 text-xs font-semibold text-fg`,children:n?`本次迭代`:`This iteration`}),(0,I.jsxs)(`dl`,{className:`mt-2 grid grid-cols-2 gap-3 text-xs`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`文件变化`:`Changed files`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium text-fg`,children:N?.changedFileCount??0})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`dt`,{className:`text-fg-subtle`,children:n?`自动验收`:`Acceptance`}),(0,I.jsx)(`dd`,{className:`mt-1 font-medium ${$?.status===`passed`&&J===N?.sourceHash?`text-success`:`text-warning`}`,children:$?.status===`passed`&&J===N?.sourceHash?n?`已通过`:`Passed`:n?`未通过或尚未完成`:`Failed or incomplete`})]})]}),N?.changedFiles.length?(0,I.jsx)(`ul`,{className:`mt-3 space-y-1`,children:N.changedFiles.slice(0,5).map(e=>(0,I.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2 text-[11px] text-fg-muted`,children:[(0,I.jsx)(`span`,{className:`w-4 shrink-0 font-medium text-fg-subtle`,children:e.status===`added`?`+`:e.status===`deleted`?`−`:`•`}),(0,I.jsx)(`span`,{className:`truncate font-mono`,children:e.path})]},e.path))}):null,$?.status!==`passed`||J!==N?.sourceHash?(0,I.jsxs)(`div`,{role:`status`,className:`mt-4 rounded-xl bg-warning-soft p-3 text-xs leading-5 text-warning`,children:[(0,I.jsx)(`p`,{children:n?`自动验收未通过或尚未完成。你仍可安装,部分功能可能无法正常使用。`:`Automatic acceptance failed or is incomplete. You can still install; some features may not work.`}),fn.length?(0,I.jsx)(`ul`,{className:`mt-2 list-inside list-disc`,children:fn.map(e=>(0,I.jsx)(`li`,{children:e},e))}):null]}):null,(0,I.jsx)(`h4`,{className:`mt-5 text-xs font-semibold text-fg`,children:n?`请求权限`:`Requested permissions`}),(0,I.jsx)(`ul`,{className:`mt-2 space-y-2`,children:(N?.permissions??M.permissions).map(e=>(0,I.jsxs)(`li`,{className:`flex items-center gap-2 text-sm text-fg`,children:[(0,I.jsx)(b,{className:`size-4 text-success`}),e,M.installationState===`installed`&&N?.permissionDelta.added.includes(e)?(0,I.jsx)(`span`,{className:`rounded-full bg-warning-soft px-2 py-0.5 text-[10px] text-warning`,children:n?`新增`:`New`}):null]},e))}),M.installationState===`installed`&&N?.permissionDelta.added.length?(0,I.jsx)(`p`,{className:`mt-4 rounded-xl bg-warning-soft p-3 text-xs leading-5 text-warning`,children:n?`此更新增加了权限,请确认这些能力符合你的修改意图。`:`This update adds permissions. Confirm they match the change you requested.`}):null,(0,I.jsx)(`p`,{className:`mt-5 rounded-xl bg-accent-soft p-3 text-xs leading-5 text-accent-fg`,children:n?`Phase 1 应用只能使用界面主题和本地存储,不能访问网络或运行系统命令。`:`Phase 1 apps can use theme and local storage only. They cannot access the network or run system commands.`})]}),(0,I.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle p-4`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsxs)(j,{variant:`primary`,onClick:()=>void Qt(),disabled:L,children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(E,{className:`size-4`}),n?`确认安装`:`Install`]})]})]})]})}),(0,I.jsx)(v,{open:et,onOpenChange:tt,children:(0,I.jsxs)(h,{children:[(0,I.jsx)(f,{className:`xopc-dialog-overlay fixed inset-0 z-50 bg-scrim backdrop-blur-[2px]`}),(0,I.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-50 flex h-[min(420px,calc(100vh-32px))] w-[min(500px,calc(100vw-32px))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-2xl focus:outline-none`,children:[(0,I.jsxs)(`div`,{className:`flex items-start justify-between border-b border-edge-subtle p-5`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(_,{className:`text-base font-semibold text-fg`,children:n?`卸载当前应用?`:`Uninstall this app?`}),(0,I.jsx)(p,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:n?`应用会从侧栏移除,但项目、源码、版本历史和本地数据都会保留。`:`The app leaves the sidebar, while its Project, source, release history, and local data remain.`})]}),(0,I.jsx)(m,{className:`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover`,children:(0,I.jsx)(fe,{className:`size-4`})})]}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,I.jsxs)(`div`,{className:`rounded-xl bg-surface-panel p-4`,children:[(0,I.jsx)(`p`,{className:`text-sm font-medium text-fg`,children:M.name}),(0,I.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:n?`之后可从任意保留版本重新安装。`:`You can reinstall any retained release later.`})]})}),(0,I.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge-subtle p-4`,children:[(0,I.jsx)(m,{asChild:!0,children:(0,I.jsx)(j,{children:n?`取消`:`Cancel`})}),(0,I.jsxs)(j,{variant:`ghost`,className:`text-danger hover:bg-danger-soft hover:text-danger`,onClick:()=>void nn(),disabled:L,children:[L?(0,I.jsx)(O,{className:`size-4 animate-spin`}):(0,I.jsx)(ue,{className:`size-4`}),n?`卸载但保留项目`:`Uninstall and keep Project`]})]})]})]})})]})}export{Je as LocalAppWorkbenchPage};
|
package/dist/gateway/static/root/assets/{local-apps-page-Ct07GT0V.js → local-apps-page-kllqJoU6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./chunk-KS7C4IRE-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./chunk-KS7C4IRE-DbzE-1bp.js";import{n as a}from"./locale-store-B4o4aDCg.js";import{t as o}from"./arrow-right-DSSvoX71.js";import{t as s}from"./box-DvYoGszj.js";import{t as c}from"./plus-Q2yW6OE7.js";import{t as l}from"./skeleton-DzdOeGYz.js";import{i as u}from"./vendor-swr-CdRzEUwF.js";import{t as d}from"./button-C5tRaJxt.js";import{t as f}from"./page-header-store-D_2QZ6Ps.js";import{o as p}from"./api-oA0NOKLI.js";var m=n(),h=e(t(),1),g=r();function _(){let e=(0,m.c)(20),t=a(x)===`zh`,n=f(b),r=f(y),{data:l,isLoading:_,error:S}=u(`local-apps-list`,p),C,w;e[0]!==r||e[1]!==n||e[2]!==t?(C=()=>(n({startExtra:null,main:(0,g.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:t?`应用工坊`:`App Studio`}),end:(0,g.jsx)(d,{asChild:!0,variant:`primary`,className:`h-9`,children:(0,g.jsxs)(i,{to:`/local-apps/new`,children:[(0,g.jsx)(c,{className:`size-4`}),t?`创建应用`:`Create app`]})})}),()=>r()),w=[r,n,t],e[0]=r,e[1]=n,e[2]=t,e[3]=C,e[4]=w):(C=e[3],w=e[4]),(0,h.useLayoutEffect)(C,w);let T=t?`创建属于你的 XOPC 应用`:`Build your own apps for XOPC`,E;e[5]===T?E=e[6]:(E=(0,g.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight text-fg`,children:T}),e[5]=T,e[6]=E);let D=t?`创建、预览并持续改进自己的工具,需要时可以添加到侧栏。`:`Create, preview, and improve your own tools, then add them to the sidebar when they are ready.`,O;e[7]===D?O=e[8]:(O=(0,g.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:D}),e[7]=D,e[8]=O);let k;e[9]!==E||e[10]!==O?(k=(0,g.jsxs)(`div`,{className:`mb-7 max-w-2xl`,children:[E,O]}),e[9]=E,e[10]=O,e[11]=k):k=e[11];let A;e[12]!==l||e[13]!==S||e[14]!==_||e[15]!==t?(A=_?(0,g.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:Array.from({length:3}).map(v)}):S?(0,g.jsx)(`p`,{className:`rounded-xl border border-danger/30 bg-danger-soft p-4 text-sm text-danger`,children:S instanceof Error?S.message:String(S)}):l?.length?(0,g.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:l.map(e=>(0,g.jsxs)(i,{to:`/local-apps/${encodeURIComponent(e.id)}`,className:`group flex min-h-44 flex-col rounded-xl bg-surface-panel p-4 transition-colors hover:bg-surface-panel-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,g.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,g.jsx)(`div`,{className:`flex size-10 items-center justify-center rounded-xl bg-accent-soft text-accent-fg`,children:(0,g.jsx)(s,{className:`size-5`})}),(0,g.jsx)(`span`,{className:`rounded-full bg-surface-hover px-2 py-1 text-[11px] font-medium text-fg-muted`,children:e.installationState===`not_installed`?t?`草稿`:`Draft`:e.enabled?t?`已在侧栏`:`In sidebar`:t?`已禁用`:`Disabled`})]}),(0,g.jsx)(`h3`,{className:`mt-4 truncate text-sm font-semibold text-fg`,children:e.name}),(0,g.jsx)(`p`,{className:`mt-1 line-clamp-2 text-xs leading-5 text-fg-muted`,children:e.description||e.idea}),(0,g.jsxs)(`div`,{className:`mt-auto flex items-center justify-end pt-3 text-xs font-medium text-accent`,children:[t?`编辑应用`:`Edit app`,(0,g.jsx)(o,{className:`ml-1 size-3.5 transition-transform group-hover:translate-x-0.5`})]})]},e.id))}):(0,g.jsxs)(`div`,{className:`px-6 py-16 text-center`,children:[(0,g.jsx)(s,{className:`mx-auto size-8 text-fg-subtle`}),(0,g.jsx)(`h3`,{className:`mt-4 text-sm font-semibold text-fg`,children:t?`还没有应用`:`No apps yet`}),(0,g.jsx)(`p`,{className:`mx-auto mt-2 max-w-md text-sm text-fg-muted`,children:t?`描述你想解决的问题,XOPC 会创建应用草稿,并用项目保存后续开发记录。`:`Describe the problem and XOPC will create an app scaffold and an ongoing Project.`}),(0,g.jsx)(d,{asChild:!0,variant:`primary`,className:`mt-5`,children:(0,g.jsxs)(i,{to:`/local-apps/new`,children:[(0,g.jsx)(c,{className:`size-4`}),t?`创建第一个应用`:`Create your first app`]})})]}),e[12]=l,e[13]=S,e[14]=_,e[15]=t,e[16]=A):A=e[16];let j;return e[17]!==k||e[18]!==A?(j=(0,g.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto bg-surface-base px-3 pb-8 pt-3 sm:px-5 lg:pt-4 xl:px-6`,children:(0,g.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[k,A]})}),e[17]=k,e[18]=A,e[19]=j):j=e[19],j}function v(e,t){return(0,g.jsx)(l,{className:`h-44 rounded-xl`},t)}function y(e){return e.clearPageHeader}function b(e){return e.setPageHeader}function x(e){return e.language}export{_ as LocalAppsPage};
|