@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.
Files changed (288) hide show
  1. package/dist/browser-ext/dist/assets/{auth-CKIyOA1a.js → auth-B658Oa_i.js} +2 -1
  2. package/dist/browser-ext/dist/background.js +1 -1
  3. package/dist/browser-ext/dist/sidepanel.html +1 -1
  4. package/dist/browser-ext/dist/sidepanel.js +1 -1
  5. package/dist/browser-ext/manifest.json +1 -1
  6. package/dist/extensions/dingtalk/xopc.extension.json +10 -4
  7. package/dist/extensions/discord/xopc.extension.json +9 -3
  8. package/dist/extensions/slack/xopc.extension.json +10 -4
  9. package/dist/extensions/telegram/xopc.extension.json +1 -1
  10. package/dist/extensions/wecom/xopc.extension.json +10 -4
  11. package/dist/gateway/server/chunks.bin +739 -686
  12. package/dist/gateway/server/chunks.json +1 -1
  13. package/dist/gateway/static/root/assets/af-CYmDZ4fF-CZxsvT2y.js +1 -0
  14. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Bicuh10_.js → agent-defaults-settings-panel-rc9N1-Xr.js} +1 -1
  15. package/dist/gateway/static/root/assets/{agent-plugin-dialog-hRZYhcLp.js → agent-plugin-dialog-D8zi6y5l.js} +1 -1
  16. package/dist/gateway/static/root/assets/{agents-C2DH8M4z.js → agents-D3Kx5DCA.js} +3 -3
  17. package/dist/gateway/static/root/assets/{app-management-settings-panel-BrO0gY6b.js → app-management-settings-panel-CGIFJmRj.js} +1 -1
  18. package/dist/gateway/static/root/assets/{appearance-settings-h82Or0g-.js → appearance-settings-CNy2QkvT.js} +1 -1
  19. package/dist/gateway/static/root/assets/{apps-page-B9Ho8S53.js → apps-page-BWSZCO1g.js} +1 -1
  20. package/dist/gateway/static/root/assets/as-Hwl1DGzz-F6qyW8uH.js +1 -0
  21. package/dist/gateway/static/root/assets/{automation-run-list-CLjSIujK.js → automation-run-list-BzKslhcr.js} +1 -1
  22. package/dist/gateway/static/root/assets/{automation-task-card-BS-RT312.js → automation-task-card-f5_tNbzB.js} +2 -2
  23. package/dist/gateway/static/root/assets/{automations-page-BL6ASYrU.js → automations-page-DT6lvXDX.js} +1 -1
  24. package/dist/gateway/static/root/assets/{automations-workspace-BFk-AF43.js → automations-workspace-uq7eZeoX.js} +4 -4
  25. package/dist/gateway/static/root/assets/be-BgqsjH7X-BYVdQd18.js +1 -0
  26. package/dist/gateway/static/root/assets/bg-Dr9AqrKw-B5xv6TfF.js +1 -0
  27. package/dist/gateway/static/root/assets/{block-editor-Dtz8JtrO.js → block-editor-BIAtRF39.js} +1 -1
  28. package/dist/gateway/static/root/assets/bn-CSXZX5iN-BGS6_hxH.js +1 -0
  29. package/dist/gateway/static/root/assets/{browser-settings-page-CDUHHu0n.js → browser-settings-page-C2Jx09LX.js} +3 -3
  30. package/dist/gateway/static/root/assets/{button-ChmVQg9O.js → button-C5tRaJxt.js} +1 -1
  31. package/dist/gateway/static/root/assets/ca-IXHA7IHe-DrduLk3W.js +1 -0
  32. package/dist/gateway/static/root/assets/capabilities-page-DgQ9OosE.js +2 -0
  33. package/dist/gateway/static/root/assets/{capabilities-settings-panel-ComYXaP1.js → capabilities-settings-panel-BjiHKpmd.js} +2 -2
  34. package/dist/gateway/static/root/assets/{capability-header-actions-BfLcB3Kh.js → capability-header-actions-Ck3ILShB.js} +1 -1
  35. package/dist/gateway/static/root/assets/{channels-Aa2Iun4r.js → channels-C9AQ0m77.js} +1 -1
  36. package/dist/gateway/static/root/assets/{chat-chart-block-DA2S21y2.js → chat-chart-block-BNmGrz2N.js} +1 -1
  37. package/dist/gateway/static/root/assets/chat-page-CJiXMjMM.js +72 -0
  38. package/dist/gateway/static/root/assets/{chat-terminal-dock-BALrP7_l.js → chat-terminal-dock-Bndihzyb.js} +1 -1
  39. package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-BPb7KheU.js → chunk-KS7C4IRE-DbzE-1bp.js} +1 -1
  40. package/dist/gateway/static/root/assets/composer-attachment-handoff-LTJZHQTE.js +1 -0
  41. package/dist/gateway/static/root/assets/{composer-model-config-control-BFC8jNyK.js → composer-model-config-control-Bnx68cDQ.js} +1 -1
  42. package/dist/gateway/static/root/assets/{computer-settings-page-CVWaJ3L8.js → computer-settings-page-MMiCgCEw.js} +1 -1
  43. package/dist/gateway/static/root/assets/{confirm-dialog-DkviAS5j.js → confirm-dialog-MHCmEEUZ.js} +1 -1
  44. package/dist/gateway/static/root/assets/{connected-providers-grid-NZP4qb6S.js → connected-providers-grid-BPydj2zS.js} +1 -1
  45. package/dist/gateway/static/root/assets/{connection-usage-guide-BNoFtMol.js → connection-usage-guide-CHGPjgHg.js} +1 -1
  46. package/dist/gateway/static/root/assets/{connector-service-page-CzrdJ4JY.js → connector-service-page-CjH7WEIw.js} +1 -1
  47. package/dist/gateway/static/root/assets/{connectors-page-BUqNvStL.js → connectors-page-aIaFZHw3.js} +1 -1
  48. package/dist/gateway/static/root/assets/cop-B5tK6J-Z-Dw82IjCr.js +1 -0
  49. package/dist/gateway/static/root/assets/{copy-text-row-BnSoJ0FX.js → copy-text-row-gqdh0Bg1.js} +1 -1
  50. package/dist/gateway/static/root/assets/cs-5GDhZ_Ce-BI5q4aVA.js +1 -0
  51. package/dist/gateway/static/root/assets/cu-BSm1hoGS-BRCy0UAr.js +1 -0
  52. package/dist/gateway/static/root/assets/cy-C9DIxPZF-Cag4snSk.js +1 -0
  53. package/dist/gateway/static/root/assets/da-BsG0TGcE-BWliw5hZ.js +1 -0
  54. package/dist/gateway/static/root/assets/{date-picker-DgTDENzF.js → date-picker-BWrSxZf1.js} +1 -1
  55. package/dist/gateway/static/root/assets/{date-time-picker-Gw4oSOk9.js → date-time-picker-Zhl9Yyzk.js} +1 -1
  56. package/dist/gateway/static/root/assets/de-1901-qqf2iWLB-BlgpCKr2.js +1 -0
  57. package/dist/gateway/static/root/assets/de-1996-LtGglqob-BjfWxQKM.js +1 -0
  58. package/dist/gateway/static/root/assets/de-ch-1901-COn1CKDv-_Xg3_np3.js +1 -0
  59. package/dist/gateway/static/root/assets/{dependency-picker-BJDpQtKY.js → dependency-picker-clYjcOx9.js} +1 -1
  60. package/dist/gateway/static/root/assets/{desktop-pet-BbIPYbvc.js → desktop-pet-CGRfEFeD.js} +1 -1
  61. package/dist/gateway/static/root/assets/{desktop-pet-settings-Cqzplufb.js → desktop-pet-settings-CUVZPqVA.js} +1 -1
  62. package/dist/gateway/static/root/assets/{device-pairing-wizard-DXFZiWMi.js → device-pairing-wizard-C62Ooz-T.js} +1 -1
  63. package/dist/gateway/static/root/assets/{directory-picker-path-field-DVFEzTAJ.js → directory-picker-path-field-3z5dHj8K.js} +1 -1
  64. package/dist/gateway/static/root/assets/{dist-GJ8-1PAx.js → dist-BSVQC3i_.js} +1 -1
  65. package/dist/gateway/static/root/assets/{dist-CxGUk8J-.js → dist-CDSvxjOh.js} +1 -1
  66. package/dist/gateway/static/root/assets/dist-DSRLZhL9.js +1 -0
  67. package/dist/gateway/static/root/assets/dist-DaFr5KMw.js +1 -0
  68. package/dist/gateway/static/root/assets/{dist-CY7CS_D3.js → dist-DlirbHVs.js} +1 -1
  69. package/dist/gateway/static/root/assets/el-monoton-pORtlC9P-CuqNQIvE.js +1 -0
  70. package/dist/gateway/static/root/assets/el-polyton-CDXn9JCY-B5J5pGHR.js +1 -0
  71. package/dist/gateway/static/root/assets/en-gb-BGHhUzDC-COWGBqwJ.js +1 -0
  72. package/dist/gateway/static/root/assets/es-PSvYPNjB-CnHE1eri.js +1 -0
  73. package/dist/gateway/static/root/assets/es2015-CFqg57eW.js +41 -0
  74. package/dist/gateway/static/root/assets/et-CYUTaVWy-H7jVbiHv.js +1 -0
  75. package/dist/gateway/static/root/assets/eu-CRNA9JLT-D1jw9zt8.js +1 -0
  76. package/dist/gateway/static/root/assets/{extension-authoritative-grants-DAfeCx4B.js → extension-authoritative-grants-DIZxVVMM.js} +1 -1
  77. package/dist/gateway/static/root/assets/{extension-debug-page-gW4GEEcj.js → extension-debug-page-D_-TPLjn.js} +1 -1
  78. package/dist/gateway/static/root/assets/{extension-iframe-host-DOPywUKI.js → extension-iframe-host-DQOKplxT.js} +1 -1
  79. package/dist/gateway/static/root/assets/{extension-message-router-TTAx3dPv.js → extension-message-router-Ccwjadyk.js} +1 -1
  80. package/dist/gateway/static/root/assets/{extension-page-Iq7vFC-g.js → extension-page-CmntX-Iw.js} +1 -1
  81. package/dist/gateway/static/root/assets/{extension-provider-BNnLkq95.js → extension-provider-niliLEmM.js} +1 -1
  82. package/dist/gateway/static/root/assets/{extension-settings-page-C0oLjaz6.js → extension-settings-page-Doi9Trxg.js} +1 -1
  83. package/dist/gateway/static/root/assets/fi-DNiE_U0X-mParSSSy.js +1 -0
  84. package/dist/gateway/static/root/assets/{floating-ui.dom-seOukHzT.js → floating-ui.dom-CiMnRY5O.js} +1 -1
  85. package/dist/gateway/static/root/assets/floating-ui.react-dom-Gx6CM22l.js +1 -0
  86. package/dist/gateway/static/root/assets/fr-BIgh4Hkw-Dc1KqFHa.js +1 -0
  87. package/dist/gateway/static/root/assets/fur-CoXvgQfx-tJv2icDr.js +1 -0
  88. package/dist/gateway/static/root/assets/ga-D54K6YtG-CDuqe3gr.js +1 -0
  89. package/dist/gateway/static/root/assets/{gateway-realtime-CfceJ5WX.js → gateway-realtime-BoJ3r2zr.js} +1 -1
  90. package/dist/gateway/static/root/assets/{gateway-restart-Dsg95Dwt.js → gateway-restart-L0ri15AO.js} +1 -1
  91. package/dist/gateway/static/root/assets/{gateway-settings-CMgry8RK.js → gateway-settings--jcl4PYh.js} +1 -1
  92. package/dist/gateway/static/root/assets/gl-Cx_3wrqA-D9_oxkqv.js +1 -0
  93. package/dist/gateway/static/root/assets/grc-gFF6GbE6-DANBReIg.js +1 -0
  94. package/dist/gateway/static/root/assets/gu-9bPoO3RA-COW9d1dt.js +1 -0
  95. package/dist/gateway/static/root/assets/hi-GilZHMjg-CiihDo6Q.js +1 -0
  96. package/dist/gateway/static/root/assets/{home-page-pT-lEQsu.js → home-page-DbLvAmzw.js} +4 -4
  97. package/dist/gateway/static/root/assets/hr-DowcKODH-D_vEJhf2.js +1 -0
  98. package/dist/gateway/static/root/assets/hsb-D_AuBPC_-kb5QeNH1.js +1 -0
  99. package/dist/gateway/static/root/assets/hu-DghCDVxq-Ct1fysVO.js +1 -0
  100. package/dist/gateway/static/root/assets/hy-UUaeTG5g-Cjfrs2ZM.js +1 -0
  101. package/dist/gateway/static/root/assets/ia-CvHYTdA2-B1i9kDPT.js +1 -0
  102. package/dist/gateway/static/root/assets/id-Dpxs7amD-C3Hzl2m4.js +1 -0
  103. package/dist/gateway/static/root/assets/{image-generation-api-DDHOD0Nx.js → image-generation-api-D63Vak-S.js} +1 -1
  104. package/dist/gateway/static/root/assets/{imports-page-BxRXNvQx.js → imports-page-CWr0KA9K.js} +1 -1
  105. package/dist/gateway/static/root/assets/index-CEXEV_TY.css +1 -0
  106. package/dist/gateway/static/root/assets/{index-DdEh8KeB.js → index-DynjhZRv.js} +7 -7
  107. package/dist/gateway/static/root/assets/{install-connector-dialog-Rox2_5eU.js → install-connector-dialog-DyscHGNB.js} +1 -1
  108. package/dist/gateway/static/root/assets/is-CJ1vxS9j-DWEBuJpb.js +1 -0
  109. package/dist/gateway/static/root/assets/it-CpWMQzhA-HiFRunf5.js +1 -0
  110. package/dist/gateway/static/root/assets/ka-CCxCVfU6-BU45urC7.js +1 -0
  111. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-D7xlV7xT.js → keyboard-shortcuts-settings-BNxKXzTr.js} +1 -1
  112. package/dist/gateway/static/root/assets/kmr-dEjewOAw-DfPyPgkK.js +1 -0
  113. package/dist/gateway/static/root/assets/kn-Bjy8QS2v-BuXzi7S-.js +1 -0
  114. package/dist/gateway/static/root/assets/la-AGdXyFmb-Bwiuou7l.js +1 -0
  115. package/dist/gateway/static/root/assets/la-x-classic-DcM9aTVI-aO_2QO0y.js +1 -0
  116. package/dist/gateway/static/root/assets/la-x-liturgic-DZCmbwFj-BpDOy20C.js +1 -0
  117. package/dist/gateway/static/root/assets/{local-app-workbench-page-ReBczGac.js → local-app-workbench-page-BB-y__CE.js} +1 -1
  118. package/dist/gateway/static/root/assets/{local-apps-page-Ct07GT0V.js → local-apps-page-kllqJoU6.js} +1 -1
  119. package/dist/gateway/static/root/assets/{logs-page-CtEv5J4C.js → logs-page-DALkj_7O.js} +1 -1
  120. package/dist/gateway/static/root/assets/lt-CN8ITi7t-B3cgXplB.js +1 -0
  121. package/dist/gateway/static/root/assets/lv-C-JuXj31-CLjYDJHB.js +1 -0
  122. package/dist/gateway/static/root/assets/{management-settings-BjvQ4WiZ.js → management-settings-DVjgxWhD.js} +1 -1
  123. package/dist/gateway/static/root/assets/{markdown-view-C7kqotD-.js → markdown-view-BpBBv9Gr.js} +2 -2
  124. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-DfbMmlmC.js → mcp-conversation-setup-page-Cr7uXvcG.js} +1 -1
  125. package/dist/gateway/static/root/assets/ml-BM2UBzMU-Ct0js8Am.js +1 -0
  126. package/dist/gateway/static/root/assets/mn-cyrl-CyRDZzA3-DN6sz9R4.js +1 -0
  127. package/dist/gateway/static/root/assets/mn-cyrl-x-lmc-DbCWj2Po-BJqn49ay.js +1 -0
  128. package/dist/gateway/static/root/assets/{model-selector-BP-t33vd.js → model-selector-RNPw-Mz4.js} +1 -1
  129. package/dist/gateway/static/root/assets/mr-BrkCTYf9-DGtESPcG.js +1 -0
  130. package/dist/gateway/static/root/assets/mul-ethi-D9YZ9OXl-D6ioGuYP.js +1 -0
  131. package/dist/gateway/static/root/assets/nb-DgKeJnSd-BfDSp4tN.js +1 -0
  132. package/dist/gateway/static/root/assets/{new-chat-navigation-BA1IB3hy.js → new-chat-navigation-DM_HUSZ1.js} +1 -1
  133. package/dist/gateway/static/root/assets/nl-BIDJBXRA-8_OIBsy0.js +1 -0
  134. package/dist/gateway/static/root/assets/nn-C4Gas4NI-BWT83oy8.js +1 -0
  135. package/dist/gateway/static/root/assets/no-CSP8-4c2-Cjg1mxae.js +1 -0
  136. package/dist/gateway/static/root/assets/{note-detail-panel-DAhIT6xP.js → note-detail-panel-DQOIB0cU.js} +3 -3
  137. package/dist/gateway/static/root/assets/note-image-lightbox-BQyXXJCE.js +1 -0
  138. package/dist/gateway/static/root/assets/{notes-api-B3Kc4909.js → notes-api-ChV_6O5I.js} +1 -1
  139. package/dist/gateway/static/root/assets/notes-page-BBUD12wy.js +8 -0
  140. package/dist/gateway/static/root/assets/{oauth-provider-connect-3QGibJMl.js → oauth-provider-connect-BgWyUbhu.js} +1 -1
  141. package/dist/gateway/static/root/assets/oc-CyJ2Q9k9-W5_I63nO.js +1 -0
  142. package/dist/gateway/static/root/assets/or-DUhKxVse-Cf5-bcl5.js +1 -0
  143. package/dist/gateway/static/root/assets/pa-NDvVySYt-Bj-XExX_.js +1 -0
  144. package/dist/gateway/static/root/assets/{page-context-capture-button-Bd__UBi9.js → page-context-capture-button-CNyjLpFG.js} +1 -1
  145. package/dist/gateway/static/root/assets/{personal-page-DHik8uj6.js → personal-page-dGPy_J7M.js} +1 -1
  146. package/dist/gateway/static/root/assets/{personal-profile-settings-Cd2xUVbw.js → personal-profile-settings-BlsS-2z3.js} +1 -1
  147. package/dist/gateway/static/root/assets/{personal-settings-panel-CHRra9hc.js → personal-settings-panel-D1W09VMR.js} +1 -1
  148. package/dist/gateway/static/root/assets/{phone-dependencies-card-CREmmRxI.js → phone-dependencies-card-CRABVjt1.js} +1 -1
  149. package/dist/gateway/static/root/assets/{phone-model-connection-BDzr9jXL.js → phone-model-connection-DtBRZXUN.js} +1 -1
  150. package/dist/gateway/static/root/assets/{phone-model-picker-DSQF-RxW.js → phone-model-picker-D3U9iAQo.js} +1 -1
  151. package/dist/gateway/static/root/assets/{phone-settings-page-gP5kr3VO.js → phone-settings-page-ClS7YSnU.js} +1 -1
  152. package/dist/gateway/static/root/assets/pi-znB0BT6g-o9084kBf.js +1 -0
  153. package/dist/gateway/static/root/assets/pl-CaFvP4tu-Bv_p-a9x.js +1 -0
  154. package/dist/gateway/static/root/assets/{plugin-details-dialog-43jCnG5n.js → plugin-details-dialog-DGW2QQJC.js} +1 -1
  155. package/dist/gateway/static/root/assets/pms-92V70vZ4-DfOt2RSi.js +1 -0
  156. package/dist/gateway/static/root/assets/{popover-select-CLsphyzA.js → popover-select-hRG1EzAY.js} +1 -1
  157. package/dist/gateway/static/root/assets/{preference-select-fields-VqtR_pOy.js → preference-select-fields-PZsYT8Db.js} +1 -1
  158. package/dist/gateway/static/root/assets/{preview-runtime-MJUo7XlD.js → preview-runtime-D9y0frrZ.js} +2 -2
  159. package/dist/gateway/static/root/assets/{product-automation-feedback-D43XiQq6.js → product-automation-feedback-W6rFx449.js} +1 -1
  160. package/dist/gateway/static/root/assets/product-open-page-CcJ0dC84.js +1 -0
  161. package/dist/gateway/static/root/assets/{product-preview-content-CkQebfi-.js → product-preview-content-CsdXwIxP.js} +1 -1
  162. package/dist/gateway/static/root/assets/product-preview-modal-CIe5WW9E.js +2 -0
  163. package/dist/gateway/static/root/assets/{project-detail-page-BBF8eVJa.js → project-detail-page-b6pU7eLQ.js} +2 -2
  164. package/dist/gateway/static/root/assets/{project-understanding-BScfv1pD.js → project-understanding-ClhKlj0g.js} +1 -1
  165. package/dist/gateway/static/root/assets/{projects-page-BCMWrLGf.js → projects-page-Bi9Ke76p.js} +1 -1
  166. package/dist/gateway/static/root/assets/pt-BKB_-X0N-CrkeeQaZ.js +1 -0
  167. package/dist/gateway/static/root/assets/{recording-upload-Yy9r6kHe.js → recording-upload-BjZ5SwXZ.js} +1 -1
  168. package/dist/gateway/static/root/assets/{refresh-button-D6ihZgH3.js → refresh-button-DX7bULU5.js} +1 -1
  169. package/dist/gateway/static/root/assets/{remote-access-hub-BeG8Bgy0.js → remote-access-hub-aSIeyTxn.js} +1 -1
  170. package/dist/gateway/static/root/assets/{resource-unavailable-Dccp_uis.js → resource-unavailable-BZVJxGR8.js} +1 -1
  171. package/dist/gateway/static/root/assets/rm-C1letx81-CNhvXnnG.js +1 -0
  172. package/dist/gateway/static/root/assets/ro-BUzliR9z-Bov_DAVD.js +1 -0
  173. package/dist/gateway/static/root/assets/route-preload-D36bLXpD.js +2 -0
  174. package/dist/gateway/static/root/assets/routine-panel-lfYWKBuW.js +2 -0
  175. package/dist/gateway/static/root/assets/ru-B591x1qT-DLdM0nWP.js +1 -0
  176. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-C7sHr-Lm.js → runtime-tools-settings-panel-DxYZLgVT.js} +1 -1
  177. package/dist/gateway/static/root/assets/sa-JnsT9B1R-CvBCyoRG.js +1 -0
  178. package/dist/gateway/static/root/assets/{schema-form-DXHzZPMr.js → schema-form-DkuIsCBU.js} +1 -1
  179. package/dist/gateway/static/root/assets/{service-recommendation-list-Bz9QWUZc.js → service-recommendation-list-BjuL2TaI.js} +1 -1
  180. package/dist/gateway/static/root/assets/{session-manager-fvJusKsK.js → session-manager-1UFhZMpv.js} +1 -1
  181. package/dist/gateway/static/root/assets/{sessions-page-DS-OExY1.js → sessions-page-CeCaW2FJ.js} +1 -1
  182. package/dist/gateway/static/root/assets/{settings-advanced-section-BsqgVQL3.js → settings-advanced-section-YRzA9yeq.js} +1 -1
  183. package/dist/gateway/static/root/assets/{settings-page-header-DKgbD0Bc.js → settings-page-header-C9xiCwzq.js} +1 -1
  184. package/dist/gateway/static/root/assets/{settings-page-layout-BE3vLWp_.js → settings-page-layout-DTOBegnh.js} +1 -1
  185. package/dist/gateway/static/root/assets/{settings-page-B_8kxJQW.js → settings-page-ngcjiqfd.js} +1 -1
  186. package/dist/gateway/static/root/assets/{setup-interaction-page-DLpGv0yp.js → setup-interaction-page-CnC-hC-A.js} +1 -1
  187. package/dist/gateway/static/root/assets/{setup-status-panel-BMaFUPnt.js → setup-status-panel-lAyDbUa1.js} +1 -1
  188. package/dist/gateway/static/root/assets/sh-cyrl-CLuomLGP-UY09gie6.js +1 -0
  189. package/dist/gateway/static/root/assets/sh-latn-DdZKFFaE-De-tA-2J.js +1 -0
  190. package/dist/gateway/static/root/assets/{share-link-dialog-3RNzFIH3.js → share-link-dialog-QvDZwWwI.js} +1 -1
  191. package/dist/gateway/static/root/assets/share-preview-page-7PohUauw.js +2 -0
  192. package/dist/gateway/static/root/assets/{shares-settings-C_ITdQqP.js → shares-settings-DpIh1naz.js} +1 -1
  193. package/dist/gateway/static/root/assets/sk-A3STIA2C-DC8Al4lF.js +1 -0
  194. package/dist/gateway/static/root/assets/{skills-page-B30SsJL6.js → skills-page-CRrTQOth.js} +1 -1
  195. package/dist/gateway/static/root/assets/sl-DjmW7S7C-B8FnrXi1.js +1 -0
  196. package/dist/gateway/static/root/assets/space-BPnfqDsQ.js +1 -0
  197. package/dist/gateway/static/root/assets/space-api-D4zPeS-a.js +1 -0
  198. package/dist/gateway/static/root/assets/space-page-DV-4mGaH.js +2 -0
  199. package/dist/gateway/static/root/assets/space-workbook-CtUQSd5l.js +291 -0
  200. package/dist/gateway/static/root/assets/space-workbook-CvOADsEJ.css +1 -0
  201. package/dist/gateway/static/root/assets/space-workbook-format-D1PqIvbd.js +1 -0
  202. package/dist/gateway/static/root/assets/space-workbook-import.worker-Bw2gfMG9.js +68 -0
  203. package/dist/gateway/static/root/assets/sr-cyrl-DzA2myNl-yGc0Jz1j.js +1 -0
  204. package/dist/gateway/static/root/assets/sv-B01JFt6B-DeQDoAsB.js +1 -0
  205. package/dist/gateway/static/root/assets/{system-settings-panel-KXLPpyOW.js → system-settings-panel-jgzBYOji.js} +1 -1
  206. package/dist/gateway/static/root/assets/ta-biPP5NX3-B5_ztYXp.js +1 -0
  207. package/dist/gateway/static/root/assets/{task-detail-page-DHYm_bsg.js → task-detail-page-qTnkErT0.js} +3 -3
  208. package/dist/gateway/static/root/assets/{task-header-title-Buwr7WTV.js → task-header-title-CRfK-rhR.js} +1 -1
  209. package/dist/gateway/static/root/assets/{task-result-evidence-DpV1mZJA.js → task-result-evidence-C2gEC9Hr.js} +1 -1
  210. package/dist/gateway/static/root/assets/te-DdPqCRaf-BjTOzs5s.js +1 -0
  211. package/dist/gateway/static/root/assets/th-C4s1cxFT-CFfNau1h.js +1 -0
  212. package/dist/gateway/static/root/assets/{time-picker-C1PXAXZF.js → time-picker-otHjbob1.js} +1 -1
  213. package/dist/gateway/static/root/assets/tk-BfqDjfTh-UHPz-lif.js +1 -0
  214. package/dist/gateway/static/root/assets/tr-C2sIij-w-DvQDK0dA.js +1 -0
  215. package/dist/gateway/static/root/assets/{tracing-settings-page-CcyPoojp.js → tracing-settings-page-7DxhxIp3.js} +1 -1
  216. package/dist/gateway/static/root/assets/{tunnel-api-D713CJ9R.js → tunnel-api-CZJEfJym.js} +1 -1
  217. package/dist/gateway/static/root/assets/uk-DBx0redY-DGVpthWV.js +1 -0
  218. package/dist/gateway/static/root/assets/{usage-page-DN1TcxWS.js → usage-page-CVJBXy2I.js} +1 -1
  219. package/dist/gateway/static/root/assets/{use-composer-attachments-4FKbf6PB.js → use-composer-attachments-Cs9sRfEz.js} +1 -1
  220. package/dist/gateway/static/root/assets/use-file-preview-expanded-B7Kp4Y1f.js +1 -0
  221. package/dist/gateway/static/root/assets/use-generated-media-UvehLoUl.js +1 -0
  222. package/dist/gateway/static/root/assets/{use-personal-work-srLCZOam.js → use-personal-work-eUnPoS9h.js} +1 -1
  223. package/dist/gateway/static/root/assets/{use-realtime-voice-tyo85cre.js → use-realtime-voice-CJD_ABL6.js} +1 -1
  224. package/dist/gateway/static/root/assets/{use-workspace-tree-VwHdfiR8.js → use-workspace-tree-BYrp8lL7.js} +1 -1
  225. package/dist/gateway/static/root/assets/{user-model-page-D-F5GO3T.js → user-model-page-s8sYPQwS.js} +2 -2
  226. package/dist/gateway/static/root/assets/{voice-player-store-DyuAAbk0.js → voice-player-store-DwAnvFVJ.js} +1 -1
  227. package/dist/gateway/static/root/assets/{voice-settings-DOajN2ay.js → voice-settings-WIooh0DA.js} +1 -1
  228. package/dist/gateway/static/root/assets/{work-discovery-overlay-CTLp1-tu.js → work-discovery-overlay-WGm3tfRV.js} +1 -1
  229. package/dist/gateway/static/root/assets/{work-discovery-page-B-UzFKIr.js → work-discovery-page-DLXUm21d.js} +1 -1
  230. package/dist/gateway/static/root/assets/{working-directory-picker-modal-DvVtUxHW.js → working-directory-picker-modal-BwmhPsrY.js} +1 -1
  231. package/dist/gateway/static/root/assets/{workspace-api-CIfedJeG.js → workspace-api-DEPruUJB.js} +2 -2
  232. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-iAz_WyiN.js +1 -0
  233. package/dist/gateway/static/root/assets/{workspace-open-location-menu-sbOva_RI.js → workspace-open-location-menu-CbQ5vUV7.js} +1 -1
  234. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BYuMOGaK.js → xopc-cloud-account-card-ClAhPUT1.js} +1 -1
  235. package/dist/gateway/static/root/assets/zh-latn-pinyin-CIit9tZA-CW52gdb_.js +1 -0
  236. package/dist/gateway/static/root/dependency-records.json +1251 -205
  237. package/dist/gateway/static/root/index.html +65 -62
  238. package/dist/package.js +1 -1
  239. package/dist/packages/gateway-contract/src/space.js +5 -2
  240. package/dist/packages/gateway-contract/src/user-message-display.js +6 -1
  241. package/dist/packages/realtime-protocol/src/index.js +4 -2
  242. package/dist/src/agent/inbound/attachment-pipeline.js +15 -6
  243. package/dist/src/agent/mcp/conversation-setup.js +9 -6
  244. package/dist/src/agent/skills/marketplace/search.d.ts +1 -0
  245. package/dist/src/agent/skills/marketplace/search.js +1 -0
  246. package/dist/src/agent/tools/capability-catalog-tool.js +1 -1
  247. package/dist/src/agent/tools/factory.js +3 -3
  248. package/dist/src/capabilities/capability-catalog.d.ts +4 -0
  249. package/dist/src/capabilities/capability-catalog.js +46 -15
  250. package/dist/src/channels/catalog/channel-catalog-service.js +2 -3
  251. package/dist/src/endpoint-tools/registry.d.ts +2 -1
  252. package/dist/src/endpoint-tools/registry.js +5 -3
  253. package/dist/src/endpoint-tools/runtime.d.ts +1 -1
  254. package/dist/src/endpoint-tools/runtime.js +2 -2
  255. package/dist/src/extensions/agent-plugins/mcp-adapter.js +15 -2
  256. package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -1
  257. package/dist/src/gateway/hono/routes/mobile-capability-actions.d.ts +1 -1
  258. package/dist/src/gateway/hono/routes/mobile-capability-actions.js +20 -10
  259. package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +20 -0
  260. package/dist/src/gateway/hono/routes/mobile-capability-panels.js +1523 -0
  261. package/dist/src/gateway/hono/routes/space.js +18 -0
  262. package/dist/src/gateway/security/gateway-scopes.js +5 -1
  263. package/dist/src/realtime/runtime.js +1 -1
  264. package/dist/src/session/session-title.js +4 -5
  265. package/dist/src/space/budget-workbook.d.ts +47 -0
  266. package/dist/src/space/budget-workbook.js +210 -0
  267. package/dist/src/space/repository.d.ts +1 -1
  268. package/dist/src/space/repository.js +24 -5
  269. package/dist/src/tunnel/tunnel-service.d.ts +5 -0
  270. package/dist/src/tunnel/tunnel-service.js +131 -30
  271. package/package.json +1 -1
  272. package/dist/gateway/static/root/assets/capabilities-page-D9EpUcuB.js +0 -2
  273. package/dist/gateway/static/root/assets/chat-page-BbahuZ59.js +0 -72
  274. package/dist/gateway/static/root/assets/dist-BuHnPloF.js +0 -1
  275. package/dist/gateway/static/root/assets/dist-ZrL34Ps4.js +0 -1
  276. package/dist/gateway/static/root/assets/es2015-DBLcMg5B.js +0 -41
  277. package/dist/gateway/static/root/assets/index-BtHMU5k4.css +0 -1
  278. package/dist/gateway/static/root/assets/note-image-lightbox-DrVGs1eQ.js +0 -1
  279. package/dist/gateway/static/root/assets/notes-page-zAJJ2OiQ.js +0 -8
  280. package/dist/gateway/static/root/assets/product-open-page-CQMoDCO1.js +0 -1
  281. package/dist/gateway/static/root/assets/product-preview-modal-DToUA1EF.js +0 -2
  282. package/dist/gateway/static/root/assets/route-preload-Bl10PwKS.js +0 -2
  283. package/dist/gateway/static/root/assets/routine-panel-BjqenuXU.js +0 -2
  284. package/dist/gateway/static/root/assets/share-preview-page-C49EIXte.js +0 -2
  285. package/dist/gateway/static/root/assets/space-page-DmvjU1jc.js +0 -2
  286. package/dist/gateway/static/root/assets/use-file-preview-expanded-CRBn6UTd.js +0 -1
  287. package/dist/gateway/static/root/assets/use-generated-media-CEJ5BBxX.js +0 -1
  288. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-Xi5feqPq.js +0 -1
@@ -0,0 +1 @@
1
+ var e=[`01`,`{"և":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ա":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"ե":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"է":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"ը":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"ի":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"ո":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}],"օ":[{"բ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"գ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"դ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"զ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"թ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ժ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"լ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"խ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ծ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"կ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"հ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ձ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ղ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ճ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"մ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"յ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ն":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"շ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"չ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"պ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ջ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ռ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ս":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"վ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"տ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ր":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ց":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"փ":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}],"ք":[{"ա":0,"ե":0,"է":0,"ը":0,"ի":0,"ո":0,"օ":0}]}]}`,[]];export{e as Hy};
@@ -0,0 +1 @@
1
+ var e=[`002,004,001,01,021,034,04,1,00003,043,003,3,012,00004,21,03,0043,02,12,212,43,2,0032,0002,0003,00034,0034,4,101,011,0001,0004,00043,0334,403,32,0012,201`,`{".":[{"c":[{"h":0}],"d":[{"e":[{"s":1}]}],"i":[{"n":2}],"s":[{"e":[{"i":1}]}]}],"a":[{"a":3,"b":[{"l":[{"o":5},4]},3],"c":[{"a":3,"e":3,"h":[{"r":6},3],"o":3,"r":3,"u":3}],"d":[{"m":7,"v":7},3],"e":[{"l":3,"r":[{"o":8}]},2],"g":[{"e":[{"d":9}],"g":7},3],"h":3,"i":[{"c":3,"s":3,"v":3}],"j":3,"k":3,"l":[{"a":3,"e":[{"i":10},3],"o":3,"u":3}],"m":3,"n":[{"i":[{"m":11}],"s":[{"p":1}]}],"o":3,"p":3,"q":3,"r":[{"a":3,"i":3,"o":3,"u":3,"y":3}],"s":[{"h":12,"t":[{"h":11}]}],"t":[{"y":[{"r":13}]},3],"v":3,"w":3,"z":3}],"b":[{"a":7,"b":[{"o":15},14],"c":3,"d":14,"e":7,"h":3,"i":[{"s":[{"a":16}]},7],"j":3,"l":[{"u":3,"y":17}],"m":3,"n":3,"o":7,"p":3,"r":18,"s":19,"t":3,"u":[{"e":2,"i":2},7],"v":3}],"c":[{"a":[{"i":2}],"c":14,"d":3,"e":[{"n":[{"n":20}]}],"h":[{"r":7,"s":21,"t":21,"u":7}],"i":7,"k":14,"l":18,"m":14,"o":[{"c":[{"l":1}],"p":22}],"q":3,"r":17,"s":12,"t":[{"r":[{"o":8}]},14],"u":[{"a":2,"e":2,"i":2}],"y":[{"n":[{"e":1}],"r":23},7],"z":3}],"d":[{"a":7,"d":14,"e":[{"r":[{"u":1}],"s":[{"e":24,"o":16,"u":1}]},7],"g":14,"h":[{"e":3}],"i":[{"a":[{"s":25}],"p":[{"t":26}],"s":[{"a":1,"e":16,"i":1,"o":1,"u":16}]}],"j":14,"m":14,"o":[{"l":[{"a":16}],"s":[{"m":20}]},7],"r":[{"o":[{"s":25}]},17],"u":[{"a":2,"e":2,"i":2}],"v":14,"y":[{"s":0}]}],"e":[{"a":[{"u":17},3],"b":3,"c":[{"a":3,"e":3,"h":[{"e":15,"i":15}],"o":3,"r":3,"u":3}],"d":3,"e":3,"f":[{"f":7},3],"g":3,"h":3,"i":3,"j":3,"k":3,"l":[{"a":3,"e":3,"o":[{"d":10,"m":9},3],"u":3}],"m":[{"a":[{"g":9}]},3],"n":[{"l":21,"o":[{"p":25}]}],"o":[{"g":22,"p":22},3],"q":3,"r":[{"a":3,"i":3,"o":[{"g":27,"p":25},3],"u":[{"r":10},3],"y":3}],"s":[{"e":[{"m":1}],"t":17,"u":[{"e":10}]}],"t":3,"u":[{"c":[{"e":1}],"n":3},2],"v":3,"w":3}],"f":[{"a":7,"f":14,"h":14,"i":7,"l":18,"o":7,"r":18,"t":3,"u":7}],"g":[{"a":7,"d":14,"e":[{"v":[{"i":20}]},7],"g":14,"i":[{"m":[{"a":20}]},7],"l":17,"m":14,"n":14,"o":7,"r":18,"s":19,"u":28,"y":[{"m":[{"n":8},23],"n":[{"a":1}],"r":[{"a":16}]}],"z":14}],"h":[{"e":[{"c":[{"t":8},23],"u":[{"r":10}]},17],"l":[{"o":[{"c":15}]}],"m":14,"n":3,"o":[{"g":22,"p":22,"r":[{"h":10}]}],"r":17,"s":3,"t":3}],"i":[{"a":[{"l":[{"a":16}]},3],"b":12,"c":3,"d":[{"o":[{"p":13},24]},3],"e":3,"f":3,"g":3,"h":3,"i":3,"k":3,"l":3,"m":[{"a":[{"d":6}],"b":7},3],"n":[{"f":7,"r":7,"s":23,"v":7}],"o":[{"g":22,"s":23,"x":0},29],"p":3,"q":3,"r":[{"a":3,"i":3,"o":[{"p":25},3],"u":[{"r":10}]}],"s":[{"a":[{"c":10,"s":10,"u":10}],"e":[{"q":10,"s":10}],"i":[{"l":10,"n":10}],"p":[{"h":5}]}],"t":3,"u":3,"v":3,"z":3}],"k":[{"a":[{"l":[{"e":1}]}],"e":2,"r":[{"a":30}]}],"l":[{"a":[{"l":[{"g":20}],"r":[{"c":20}]}],"b":3,"c":14,"d":14,"e":[{"c":[{"h":10}],"i":[{"d":1}]}],"f":14,"g":3,"h":14,"i":7,"k":14,"l":[{"u":[{"r":10}]},14],"m":[{"o":[{"d":9}]},14],"n":3,"o":[{"d":[{"o":15},21],"p":[{"i":27}]}],"p":14,"q":3,"s":19,"t":[{"u":[{"n":9}]},14],"u":[{"e":2,"i":2,"r":21}],"v":14,"y":[{"c":[{"h":10}]},7]}],"m":[{"a":7,"b":14,"c":3,"e":[{"c":[{"h":10}],"s":[{"e":16}]},7],"f":3,"i":[{"p":22,"s":[{"i":31}]},7],"j":3,"l":3,"m":[{"e":[{"n":32}]},14],"n":[{"a":[{"m":10,"s":10}],"o":[{"b":10,"p":10},30]},14],"o":[{"n":[{"y":20}],"p":22,"r":[{"r":10}],"s":[{"p":31,"t":26}]},7],"p":[{"s":15},14],"s":12,"u":7,"v":14,"y":[{"r":[{"r":1}]},7]}],"n":[{"a":[{"e":3,"l":[{"g":15}],"n":[{"i":15}],"p":12,"u":3},7],"b":3,"c":3,"d":14,"e":[{"q":3,"x":3},7],"f":3,"g":3,"h":3,"i":[{"q":3,"s":[{"p":10}],"t":17},7],"j":3,"l":3,"m":3,"n":12,"o":[{"b":[{"l":31}],"s":[{"p":33}],"x":3},7],"q":3,"r":3,"s":[{"i":[{"e":9,"r":6}],"l":17,"t":0},3],"t":[{"a":[{"h":9,"p":9}]},3],"u":[{"a":2,"e":2,"i":2},7],"v":3,"y":7,"z":3}],"o":[{"a":3,"b":[{"l":[{"o":10}],"s":7},3],"c":[{"l":[{"e":10}]},3],"d":3,"e":3,"f":3,"g":3,"h":3,"i":3,"j":3,"l":3,"m":[{"n":[{"a":1}]}],"n":[{"a":0,"o":[{"s":13},30],"s":23}],"o":3,"p":3,"q":3,"r":[{"a":3,"i":3,"o":3,"r":[{"h":1}],"u":3}],"s":[{"l":12,"p":[{"o":1}]}],"t":[{"a":[{"c":9}],"o":[{"s":25}]},3],"u":[{"g":3},2],"v":3,"y":2,"z":3}],"p":[{"a":[{"n":[{"s":24}]},7],"e":7,"h":7,"i":7,"l":[{"a":1,"o":[{"p":34}]},18],"n":[{"a":4,"e":17},3],"o":7,"p":[{"i":[{"a":9}]},14],"r":18,"s":[{"o":[{"d":9}],"y":35},14],"t":14,"u":[{"b":36,"e":37,"i":2},7],"y":[{"l":[{"o":1},30]}]}],"q":[{"u":[{"a":[{"n":31}]},0]}],"r":[{"a":[{"l":[{"g":20}],"q":21,"r":[{"c":20}]}],"b":3,"c":3,"d":14,"e":[{"c":[{"h":10}],"g":[{"i":8}],"n":[{"n":20}],"u":[{"t":10}]},7],"f":3,"g":14,"h":[{"i":7,"u":3,"y":[{"d":15}]}],"j":3,"l":3,"m":14,"n":3,"p":3,"q":3,"r":[{"a":[{"q":10}]},3],"s":12,"t":14,"u":[{"a":2,"e":2,"i":2}],"v":3,"w":3,"y":[{"s":[{"e":1}]}],"z":3}],"s":[{"a":[{"b":[{"u":15}],"c":[{"t":20}],"f":14,"g":[{"r":15}],"n":[{"n":15}],"p":14,"q":14,"r":[{"g":15,"m":15,"t":15}]},7],"b":14,"c":[{"l":[{"e":13}]},18],"d":3,"e":7,"f":14,"g":14,"h":3,"i":[{"g":[{"e":20}],"r":[{"o":15}]},7],"j":3,"k":7,"l":[{"a":[{"v":6}]},3],"m":14,"n":3,"o":[{"b":[{"e":15,"l":15},23],"c":[{"c":15}],"d":[{"o":15}],"r":[{"d":15,"g":15}],"s":[{"s":15}],"x":14},7],"p":[{"a":[{"i":31},21],"l":21,"o":21},3],"q":3,"r":3,"s":[{"a":15},19],"t":3,"u":[{"a":2,"b":[{"a":1,"r":1}],"e":2,"i":2,"n":14},7],"v":14,"y":7}],"t":[{"a":[{"l":[{"g":20}],"m":[{"b":20}],"r":[{"t":20}]}],"d":14,"e":[{"c":[{"o":20}]}],"f":14,"g":14,"h":[{"l":2,"m":21}],"i":[{"s":[{"p":26}]}],"l":3,"m":[{"o":30},14],"o":[{"s":[{"p":26}],"x":[{"y":20}]}],"p":14,"r":[{"o":[{"r":34}]},17],"s":14,"t":14,"u":[{"a":2,"e":2,"i":2,"s":[{"a":16}]}],"y":2,"z":14}],"u":[{"a":[{"n":[{"i":15}],"s":3,"v":3}],"b":[{"a":[{"l":10}],"l":2,"r":[{"o":10}]}],"c":[{"a":3,"e":[{"m":10},3],"h":3,"o":3,"r":3,"u":3}],"d":3,"e":[{"l":3}],"i":[{"b":3,"c":3}],"l":[{"a":3,"e":3,"o":3}],"o":29,"r":[{"a":3,"g":[{"o":11}],"i":3,"o":3,"u":3}],"s":[{"t":17}],"t":3,"u":3,"v":3}],"v":[{"a":[{"i":2}],"i":[{"r":[{"u":10}]}],"n":21,"r":17}],"w":[{"n":4}],"x":[{"a":3,"c":3,"e":3,"h":3,"i":3,"o":3,"p":3,"q":3,"s":12,"t":3,"u":[{"a":2},3],"y":[{"l":7},29]}],"y":[{"a":3,"b":3,"c":[{"a":2,"e":3,"h":30,"o":3,"t":[{"a":16}]}],"d":[{"r":30}],"e":3,"g":3,"h":3,"i":3,"l":[{"a":[{"c":15,"m":10}],"e":3,"o":3},21],"n":[{"a":[{"n":10}],"e":[{"g":10}]}],"o":3,"p":[{"o":[{"s":13},30]}],"r":[{"o":[{"s":13},30]},3],"s":[{"e":2}],"t":3,"u":3,"z":3}],"z":[{"e":2,"i":7,"u":28,"z":14}]}`,[`alc-un`,`alc-u-nis-si-me`,`alc-un-men-te`,`a-lic-un`,`a-lic-u-nis-si-me`,`a-lic-un-men-te`,`mos-lem`,`qualc-un`,`qualc-u-nis-si-me`,`qualc-un-men-te`]];export{e as Ia};
@@ -0,0 +1 @@
1
+ var e=[`01,21,201,232,0023,00203,2,021,02,10102,3,0202,00304`,`{"a":[{"i":[{"r":8}],"n":[{".":10}]},0],"e":0,"i":[{"o":[{"n":7}]},0],"o":0,"u":0,"b":[{"d":1,"j":1,"k":1,"n":1,"s":1,"t":1,"a":[{"g":[{"a":[{"i":9}]}],"n":[{".":1}]}]}],"c":[{"k":1,"n":1,"a":[{"n":[{".":1}]}]}],"d":[{"k":1,"n":1,"p":1,"a":[{"n":[{".":1}]}]}],"f":[{"d":1,"k":1,"n":1,"t":1,"a":[{"n":[{".":1}]}]}],"g":[{"g":1,"k":1,"n":1,"a":[{"n":[{".":1}]}]}],"h":[{"k":1,"l":1,"m":1,"n":1,"w":1,"a":[{"n":[{".":1}]}]}],"j":[{"k":1,"n":1,"a":[{"n":[{".":1}]}]}],"k":[{"b":1,"k":1,"m":1,"n":1,"r":1,"s":1,"t":1,"a":[{"n":[{".":1}]}]}],"l":[{"b":1,"f":1,"g":1,"h":1,"k":1,"m":1,"n":1,"s":1,"t":1,"q":1,"a":[{"n":[{".":1}]}]}],"m":[{"b":1,"k":1,"l":1,"m":1,"n":1,"p":1,"r":1,"s":1,"a":[{"n":[{".":1}]}]}],"n":[{"c":1,"d":1,"f":1,"j":1,"k":1,"n":1,"p":1,"s":[{"t":3},1],"t":1,"v":1,"g":[{"g":2,"h":2,"k":2,"n":2,"s":2,".":6,"a":[{"n":[{".":2}]}]}],"y":[{".":6}],"a":[{"n":[{".":1}]}]}],"p":[{"k":1,"n":1,"p":1,"r":1,"t":1,"a":[{"n":[{".":1}]}]}],"r":[{"b":1,"c":1,"f":1,"g":1,"h":1,"j":1,"k":1,"l":1,"m":1,"n":1,"p":1,"r":1,"s":1,"t":1,"w":1,"y":1,"a":[{"n":[{".":1}]}]}],"s":[{"b":1,"k":1,"l":1,"m":1,"n":1,"p":1,"r":1,"s":1,"t":1,"w":1,"a":[{"n":[{".":1}]}]}],"t":[{"k":1,"l":1,"n":1,"t":1,"a":[{"n":[{".":1}]}]}],"w":[{"t":1}],".":[{"b":[{"e":[{"r":4}]}],"t":[{"e":[{"r":4}],"a":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"m":[{"e":[{"n":[{"g":5}]}],"a":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"p":[{"e":[{"r":4}],"a":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"a":[{"t":[{"a":[{"u":11}]}]}],"l":[{"e":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"j":[{"a":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"r":[{"i":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}],"d":[{"e":[{"n":[{"g":[{"a":[{"n":[{".":12}]}]}]}]}]}]}],"v":[{"a":[{"n":[{".":1}]}]}],"z":[{"a":[{"n":[{".":1}]}]}]}`,`be-ra-be be-ra-hi be-rak be-ran-da be-ran-dal be-rang.be-ra-ngas-an.be-rang-sang.be-ra-ngus.be-ra-ni.be-ran-tak-an.be-ran-tam.be-ran-tas.be-ra-pa.be-ras.be-ren-deng.be-re-ngut.be-re-rot.be-res.be-re-wok.be-ri.be-ri-ngas.be-ri-sik.be-ri-ta.be-rok.be-ron-dong.be-ron-tak.be-ru-du.be-ruk.be-run-tun.peng-eks-por.peng-im-por.te-ra.te-rang.te-ras.te-ra-si.te-ra-tai.te-ra-wang.te-ra-weh.te-ri-ak.te-ri-gu.te-rik.te-ri-ma.te-ri-pang.te-ro-bos.te-ro-bos-an.te-ro-mol.te-rom-pah.te-rom-pet.te-ro-pong. te-ro-wong-an te-ru-buk te-ru-na te-rus te-ru-si`.split(`.`)];export{e as Id};
@@ -1 +1 @@
1
- import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{i as r,o as i}from"./locale-store-B4o4aDCg.js";import{t as a}from"./x-B_N4OPjy.js";import{t as o}from"./skeleton-DzdOeGYz.js";import{n as s}from"./model-selector-BP-t33vd.js";var c=t();e();var l=n();function u(e){let t=(0,c.c)(30),{primary:n,value:r,models:i,loading:u,error:d,zh:f,onChange:p}=e,m;if(t[0]!==i||t[1]!==n||t[2]!==r){let e;t[4]!==n||t[5]!==r?(e=e=>e.id!==n&&!r.includes(e.id),t[4]=n,t[5]=r,t[6]=e):e=t[6],m=i.filter(e),t[0]=i,t[1]=n,t[2]=r,t[3]=m}else m=t[3];let h=m,g=f?`回退顺序`:`Fallback order`,_;t[7]===g?_=t[8]:(_=(0,l.jsx)(`h4`,{className:`text-sm font-medium text-fg`,children:g}),t[7]=g,t[8]=_);let v=f?`主模型不可用时,按从左到右的顺序尝试。`:`Tried from left to right when the primary model is unavailable.`,y;t[9]===v?y=t[10]:(y=(0,l.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:v}),t[9]=v,t[10]=y);let b;t[11]!==_||t[12]!==y?(b=(0,l.jsx)(`div`,{className:`flex items-center justify-between gap-3`,children:(0,l.jsxs)(`div`,{children:[_,y]})}),t[11]=_,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==i||t[15]!==p||t[16]!==r||t[17]!==f?(x=r.length>0?(0,l.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:r.map((e,t)=>(0,l.jsxs)(`span`,{className:`inline-flex items-center gap-2 rounded-full bg-surface-base/70 py-1 pl-2.5 pr-1 text-xs text-fg`,children:[(0,l.jsx)(`span`,{className:`text-fg-subtle`,children:t+1}),(0,l.jsx)(`span`,{children:i.find(t=>t.id===e)?.name??e}),(0,l.jsx)(`button`,{type:`button`,"aria-label":f?`移除 ${e}`:`Remove ${e}`,className:`rounded-full p-1 text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:()=>p(r.filter(t=>t!==e)),children:(0,l.jsx)(a,{className:`size-3`})})]},e))}):(0,l.jsx)(`p`,{className:`mt-3 text-xs text-fg-subtle`,children:f?`未设置回退模型。`:`No fallback models configured.`}),t[14]=i,t[15]=p,t[16]=r,t[17]=f,t[18]=x):x=t[18];let S;t[19]!==h||t[20]!==d||t[21]!==u||t[22]!==p||t[23]!==r||t[24]!==f?(S=u?(0,l.jsx)(o,{className:`mt-3 h-11 w-full max-w-md rounded-lg`}):(0,l.jsx)(s,{value:``,models:h,modelsLoading:u,modelsError:d,placeholder:f?`添加回退模型`:`Add fallback model`,searchPlaceholder:f?`搜索模型或服务商`:`Search models or providers`,noMatches:f?`没有可添加的模型`:`No models available to add`,showProviderInTrigger:!1,contentAlign:`start`,className:`mt-3 w-full max-w-md`,ariaLabel:f?`添加回退模型`:`Add fallback model`,onChange:e=>{e&&p([...r,e])}}),t[19]=h,t[20]=d,t[21]=u,t[22]=p,t[23]=r,t[24]=f,t[25]=S):S=t[25];let C;return t[26]!==b||t[27]!==x||t[28]!==S?(C=(0,l.jsxs)(`div`,{children:[b,x,S]}),t[26]=b,t[27]=x,t[28]=S,t[29]=C):C=t[29],C}async function d(){let e=await i(r(`/api/image-generation/catalog`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid image provider catalog`);return e.payload.providers}async function f(){let e=await i(r(`/api/image-generation/custom-providers`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid custom image provider list`);return e.payload.providers}async function p(e,t){await i(r(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`PUT`,body:JSON.stringify(t)})}async function m(e){await i(r(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`DELETE`})}async function h(e,t){await i(r(`/api/image-generation/providers/${encodeURIComponent(e)}/credential`),{method:`PUT`,body:JSON.stringify({apiKey:t})})}async function g(e,t){let n=await i(r(`/api/image-generation/providers/${encodeURIComponent(e)}/test`),{method:`POST`,body:JSON.stringify({modelId:t})});if(!Array.isArray(n.payload?.images))throw Error(`Invalid image generation test response`);return{images:n.payload.images}}export{h as a,p as i,f as n,g as o,d as r,u as s,m as t};
1
+ import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{i as r,o as i}from"./locale-store-B4o4aDCg.js";import{t as a}from"./x-B_N4OPjy.js";import{t as o}from"./skeleton-DzdOeGYz.js";import{n as s}from"./model-selector-RNPw-Mz4.js";var c=t();e();var l=n();function u(e){let t=(0,c.c)(30),{primary:n,value:r,models:i,loading:u,error:d,zh:f,onChange:p}=e,m;if(t[0]!==i||t[1]!==n||t[2]!==r){let e;t[4]!==n||t[5]!==r?(e=e=>e.id!==n&&!r.includes(e.id),t[4]=n,t[5]=r,t[6]=e):e=t[6],m=i.filter(e),t[0]=i,t[1]=n,t[2]=r,t[3]=m}else m=t[3];let h=m,g=f?`回退顺序`:`Fallback order`,_;t[7]===g?_=t[8]:(_=(0,l.jsx)(`h4`,{className:`text-sm font-medium text-fg`,children:g}),t[7]=g,t[8]=_);let v=f?`主模型不可用时,按从左到右的顺序尝试。`:`Tried from left to right when the primary model is unavailable.`,y;t[9]===v?y=t[10]:(y=(0,l.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:v}),t[9]=v,t[10]=y);let b;t[11]!==_||t[12]!==y?(b=(0,l.jsx)(`div`,{className:`flex items-center justify-between gap-3`,children:(0,l.jsxs)(`div`,{children:[_,y]})}),t[11]=_,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==i||t[15]!==p||t[16]!==r||t[17]!==f?(x=r.length>0?(0,l.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:r.map((e,t)=>(0,l.jsxs)(`span`,{className:`inline-flex items-center gap-2 rounded-full bg-surface-base/70 py-1 pl-2.5 pr-1 text-xs text-fg`,children:[(0,l.jsx)(`span`,{className:`text-fg-subtle`,children:t+1}),(0,l.jsx)(`span`,{children:i.find(t=>t.id===e)?.name??e}),(0,l.jsx)(`button`,{type:`button`,"aria-label":f?`移除 ${e}`:`Remove ${e}`,className:`rounded-full p-1 text-fg-muted hover:bg-surface-hover hover:text-fg`,onClick:()=>p(r.filter(t=>t!==e)),children:(0,l.jsx)(a,{className:`size-3`})})]},e))}):(0,l.jsx)(`p`,{className:`mt-3 text-xs text-fg-subtle`,children:f?`未设置回退模型。`:`No fallback models configured.`}),t[14]=i,t[15]=p,t[16]=r,t[17]=f,t[18]=x):x=t[18];let S;t[19]!==h||t[20]!==d||t[21]!==u||t[22]!==p||t[23]!==r||t[24]!==f?(S=u?(0,l.jsx)(o,{className:`mt-3 h-11 w-full max-w-md rounded-lg`}):(0,l.jsx)(s,{value:``,models:h,modelsLoading:u,modelsError:d,placeholder:f?`添加回退模型`:`Add fallback model`,searchPlaceholder:f?`搜索模型或服务商`:`Search models or providers`,noMatches:f?`没有可添加的模型`:`No models available to add`,showProviderInTrigger:!1,contentAlign:`start`,className:`mt-3 w-full max-w-md`,ariaLabel:f?`添加回退模型`:`Add fallback model`,onChange:e=>{e&&p([...r,e])}}),t[19]=h,t[20]=d,t[21]=u,t[22]=p,t[23]=r,t[24]=f,t[25]=S):S=t[25];let C;return t[26]!==b||t[27]!==x||t[28]!==S?(C=(0,l.jsxs)(`div`,{children:[b,x,S]}),t[26]=b,t[27]=x,t[28]=S,t[29]=C):C=t[29],C}async function d(){let e=await i(r(`/api/image-generation/catalog`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid image provider catalog`);return e.payload.providers}async function f(){let e=await i(r(`/api/image-generation/custom-providers`));if(!Array.isArray(e.payload?.providers))throw Error(`Invalid custom image provider list`);return e.payload.providers}async function p(e,t){await i(r(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`PUT`,body:JSON.stringify(t)})}async function m(e){await i(r(`/api/image-generation/custom-providers/${encodeURIComponent(e)}`),{method:`DELETE`})}async function h(e,t){await i(r(`/api/image-generation/providers/${encodeURIComponent(e)}/credential`),{method:`PUT`,body:JSON.stringify({apiKey:t})})}async function g(e,t){let n=await i(r(`/api/image-generation/providers/${encodeURIComponent(e)}/test`),{method:`POST`,body:JSON.stringify({modelId:t})});if(!Array.isArray(n.payload?.images))throw Error(`Invalid image generation test response`);return{images:n.payload.images}}export{h as a,p as i,f as n,g as o,d as r,u as s,m as t};
@@ -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-BPb7KheU.js";import{i as a,n as o,o as s}from"./locale-store-B4o4aDCg.js";import{t as c}from"./messages-hlOsXkQ7.js";import{a as l,i as u,n as d,o as f,r as p,s as m,t as h}from"./dist-CY7CS_D3.js";import{t as g}from"./braces-Cfmtagno.js";import{t as _}from"./check-DUBLcKHA.js";import{t as v}from"./chevron-down-ccbiQQz_.js";import{t as y}from"./download-Dk-ZjtO6.js";import{t as b}from"./folder-kanban-CpLlFI1o.js";import{t as x}from"./package-wATCyihJ.js";import{t as S}from"./plug-DKYPEgkR.js";import{t as C}from"./search-DA7gz22f.js";import{t as w}from"./settings-2-D-csvaET.js";import{t as T}from"./x-B_N4OPjy.js";import{t as E}from"./cn-0WouolD0.js";import{t as D}from"./button-ChmVQg9O.js";import{i as O,o as k}from"./settings-shell-dialog-layer-BU3UuiJr.js";import{n as A}from"./settings-loading-skeleton-CAoOV17i.js";import{n as j,t as M}from"./settings-page-header-DKgbD0Bc.js";import"./settings-page-layout-BE3vLWp_.js";var N=e(t(),1);async function P(e,t,n){return(await s(a(`/api/imports${e}`),{...t===void 0?{}:{method:`POST`,body:JSON.stringify(t)},signal:n})).data}var F=n();function I(e){return e.kind!==`connection`&&(e.status===`ready`||e.status===`conflict`||e.kind===`project`&&e.status===`existing`)}function L(e,t){let n=e.filter(I),r=n.filter(e=>t.has(e.id)).length;return{checked:n.length>0&&r===n.length,indeterminate:r>0&&r<n.length,selectedCount:r,availableCount:n.length}}function R(e,t,n,r){return n.reduce((t,n)=>z(e,t,n,r),new Set(t))}function z(e,t,n,r){let i=new Set(t);if(!I(n))return i;if(r){if(i.add(n.id),n.parentId&&i.add(n.parentId),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&t.kind===`skill`&&t.suggested&&I(t)&&i.add(t.id)}else if(i.delete(n.id),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&i.delete(t.id);return i}var B=r();function V(e){let t=(0,F.c)(34),{open:n,sourceName:r,inventory:i,selected:a,onSelected:s,busy:_,locked:v,error:y,onClose:S,onRefresh:C,onSubmit:j}=e,M=c(o(ue)).imports,[P,I]=(0,N.useState)(!0),[L,V]=(0,N.useState)(!1),U;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{I(!0),V(!1)},t[0]=U):U=t[0];let fe=i?.id,W;t[1]===fe?W=t[2]:(W=[fe],t[1]=fe,t[2]=W),(0,N.useEffect)(U,W);let G=i?.candidates.filter(le)??[],K;t[3]===i?.candidates?K=t[4]:(K=i?.candidates.filter(ce)??[],t[3]=i?.candidates,t[4]=K);let q=K,he;t[5]===i?.candidates?he=t[6]:(he=i?.candidates.filter(se)??[],t[5]=i?.candidates,t[6]=he);let ge=he,J;if(t[7]!==i?.candidates){J=new Map;for(let e of i?.candidates??[]){if(!e.parentId)continue;let t=J.get(e.parentId)??[];t.push(e),J.set(e.parentId,t)}t[7]=i?.candidates,t[8]=J}else J=t[8];let ve=J,ye=i?.candidates.filter(e=>a.has(e.id))??[],be=M.selected.replace(`{skills}`,String(ye.filter(oe).length)).replace(`{context}`,String(ye.filter(ae).length)).replace(`{projects}`,String(ye.filter(ie).length)),xe;t[9]!==i||t[10]!==s||t[11]!==a?(xe=(e,t)=>{i&&s(z(i,a,e,t))},t[9]=i,t[10]=s,t[11]=a,t[12]=xe):xe=t[12];let Se=xe,Ce;t[13]!==i||t[14]!==s||t[15]!==a?(Ce=(e,t)=>{i&&s(R(i,a,e,t))},t[13]=i,t[14]=s,t[15]=a,t[16]=Ce):Ce=t[16];let we=Ce,Y;t[17]===S?Y=t[18]:(Y=e=>{e||S()},t[17]=S,t[18]=Y);let X;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,B.jsx)(l,{className:`xopc-dialog-overlay fixed inset-0 bg-scrim ${k}`}),t[19]=X):X=t[19];let Z;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Z=E(`xopc-dialog-content fixed left-1/2 top-1/2 flex h-[min(calc(100dvh-2rem),760px)] w-[min(calc(100%-2rem),720px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay outline-none`,`max-sm:bottom-0 max-sm:left-0 max-sm:top-auto max-sm:h-[min(92dvh,760px)] max-sm:w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none`,O),t[20]=Z):Z=t[20];let Q;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,B.jsx)(T,{"aria-hidden":`true`,className:`h-4 w-4`}),t[21]=Q):Q=t[21];let Te=y&&(0,B.jsxs)(`div`,{role:`alert`,className:`space-y-3 rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg`,children:[(0,B.jsx)(`p`,{children:y}),(0,B.jsx)(D,{variant:`secondary`,disabled:v,onClick:C,children:M.refresh})]}),$;t[22]!==y||t[23]!==i?($=!i&&!y&&(0,B.jsx)(A,{sections:2}),t[22]=y,t[23]=i,t[24]=$):$=t[24];let Ee=i&&(0,B.jsxs)(B.Fragment,{children:[!i.complete&&(0,B.jsx)(`p`,{className:`rounded-lg bg-surface-inset p-3 text-sm text-fg-muted`,children:M.incomplete}),G.length>0&&(0,B.jsxs)(pe,{icon:w,title:M.personalSetup,description:M.personalSetupHint,items:G,selected:a,open:P,disabled:v,onOpenChange:I,onCheckedChange:e=>we(G,e),children:[(0,B.jsx)(me,{icon:x,title:M.kinds.skill,items:G.filter(re),inventoryId:i.id,selected:a,disabled:v,onToggle:Se,onToggleAll:e=>we(G.filter(ne),e)}),(0,B.jsx)(me,{icon:g,title:M.kinds.context,items:G.filter(te),inventoryId:i.id,selected:a,disabled:v,onToggle:Se,onToggleAll:e=>we(G.filter(ee),e)})]}),q.length>0&&(0,B.jsx)(pe,{icon:b,title:M.kinds.project,description:M.projectsHint.replace(`{count}`,String(q.length)),items:q,selected:a,open:L,disabled:v,onOpenChange:V,children:(0,B.jsx)(_e,{inventoryId:i.id,projects:q,projectChildren:ve,selected:a,disabled:v,onToggle:Se})}),ge.length>0&&(0,B.jsx)(de,{inventoryId:i.id,items:ge}),!i.candidates.length&&(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-inset p-5 text-sm text-fg-muted`,children:M.noContent}),!!i.notices.length&&(0,B.jsxs)(`details`,{className:`rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg-muted`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer font-medium text-fg`,children:[M.scanNotices,` (`,i.notices.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-3 space-y-2`,children:i.notices.map(H)})]})]}),De;t[25]!==Te||t[26]!==$||t[27]!==Ee?(De=(0,B.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-4 sm:p-6`,children:[Te,$,Ee]}),t[25]=Te,t[26]=$,t[27]=Ee,t[28]=De):De=t[28];let Oe=D,ke=!i||!a.size||_,Ae=_?M.importing:v?M.retry:M.importCount.replace(`{count}`,String(a.size)),je;return t[29]!==Oe||t[30]!==j||t[31]!==ke||t[32]!==Ae?(je=(0,B.jsx)(Oe,{variant:`primary`,disabled:ke,onClick:j,children:Ae}),t[29]=Oe,t[30]=j,t[31]=ke,t[32]=Ae,t[33]=je):je=t[33],(0,B.jsx)(h,{open:n,onOpenChange:Y,children:(0,B.jsxs)(f,{children:[X,(0,B.jsxs)(p,{className:Z,children:[(0,B.jsx)(`header`,{className:`shrink-0 space-y-2 border-b border-edge p-5 sm:p-6`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(m,{className:`text-xl font-semibold text-fg`,children:M.chooseTitle.replace(`{source}`,r)}),(0,B.jsx)(u,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:M.chooseHint})]}),(0,B.jsx)(d,{asChild:!0,children:(0,B.jsx)(D,{variant:`ghost`,"aria-label":M.close,className:`h-10 w-10 shrink-0 p-0`,children:Q})})]})}),De,(0,B.jsx)(`footer`,{className:`shrink-0 border-t border-edge bg-surface-overlay p-4 sm:px-6 sm:py-5`,children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,B.jsxs)(`div`,{"aria-live":`polite`,className:`min-w-0`,children:[(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:be}),_&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.runningHint}),v&&!_&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.retryHint})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2`,children:[(0,B.jsx)(D,{variant:`ghost`,onClick:S,children:_?M.close:M.cancel}),je]})]})})]})]})})}function H(e,t){return(0,B.jsx)(`li`,{className:`break-words`,children:e},t)}function ee(e){return e.kind===`context`}function te(e){return e.kind===`context`}function ne(e){return e.kind===`skill`}function re(e){return e.kind===`skill`}function ie(e){return e.kind===`project`}function ae(e){return e.kind===`context`}function oe(e){return e.kind===`skill`}function se(e){return e.kind===`connection`}function ce(e){return e.kind===`project`}function le(e){return!e.parentId&&(e.kind===`skill`||e.kind===`context`)}function ue(e){return e.language}function de(e){let t=(0,F.c)(13),{inventoryId:n,items:r}=e,a=c(o(fe)).imports,[s,l]=(0,N.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>l(U),t[0]=u):u=t[0];let d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(S,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[1]=d):d=t[1];let f=a.connectionsHint.replace(`{count}`,String(r.length)),p;t[2]===f?p=t[3]:(p=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:f}),t[2]=f,t[3]=p);let m=s&&`rotate-180`,h;t[4]===m?h=t[5]:(h=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,m),t[4]=m,t[5]=h);let g;t[6]===h?g=t[7]:(g=(0,B.jsx)(v,{"aria-hidden":`true`,className:h}),t[6]=h,t[7]=g);let _;return t[8]!==n||t[9]!==r||t[10]!==s||t[11]!==a?(_=s&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:[r.map(e=>(0,B.jsx)(W,{inventoryId:n,item:e},e.id)),(0,B.jsx)(D,{asChild:!0,variant:`secondary`,children:(0,B.jsx)(i,{to:`/capabilities/connectors`,children:a.connectionsAction})})]}),t[8]=n,t[9]=r,t[10]=s,t[11]=a,t[12]=_):_=t[12],(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[(0,B.jsx)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:u,children:[d,(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:a.kinds.connection}),p]}),g]})}),_]})}function U(e){return!e}function fe(e){return e.language}function W(e){let t=(0,F.c)(34),{inventoryId:n,item:r}=e,i=o(K),a;t[0]===i?a=t[1]:(a=c(i),t[0]=i,t[1]=a);let s=a.imports,[l,u]=(0,N.useState)(),[d,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(``),h;t[2]!==n||t[3]!==r.id||t[4]!==l?(h=async function(){if(f(G),!l)try{u(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;m(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=l,t[5]=h):h=t[5];let g=h,_;t[6]===r.name?_=t[7]:(_=(0,B.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=_);let v;t[8]===r.displayPath?v=t[9]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[8]=r.displayPath,t[9]=v);let y=s.statuses[r.status],b;t[10]===y?b=t[11]:(b=(0,B.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:y}),t[10]=y,t[11]=b);let x;t[12]!==_||t[13]!==v||t[14]!==b?(x=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v,b]}),t[12]=_,t[13]=v,t[14]=b,t[15]=x):x=t[15];let S;t[16]===g?S=t[17]:(S=()=>void g(),t[16]=g,t[17]=S);let C;t[18]!==s.preview||t[19]!==S?(C=(0,B.jsx)(D,{variant:`ghost`,className:`h-9 shrink-0 px-2`,onClick:S,children:s.preview}),t[18]=s.preview,t[19]=S,t[20]=C):C=t[20];let w;t[21]!==C||t[22]!==x?(w=(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[x,C]}),t[21]=C,t[22]=x,t[23]=w):w=t[23];let T;t[24]===r.reason?T=t[25]:(T=r.reason&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:r.reason}),t[24]=r.reason,t[25]=T);let E;t[26]!==p||t[27]!==d||t[28]!==l?(E=d&&(0,B.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-inset p-3`,children:p?(0,B.jsx)(`p`,{role:`alert`,className:`text-xs text-fg-muted`,children:p}):l?(0,B.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:l.text}):(0,B.jsx)(A,{sections:1})}),t[26]=p,t[27]=d,t[28]=l,t[29]=E):E=t[29];let O;return t[30]!==w||t[31]!==T||t[32]!==E?(O=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge p-3`,children:[w,T,E]}),t[30]=w,t[31]=T,t[32]=E,t[33]=O):O=t[33],O}function G(e){return!e}function K(e){return e.language}function pe(e){let t=(0,F.c)(40),{icon:n,title:r,description:i,items:a,selected:o,open:s,disabled:c,onOpenChange:l,onCheckedChange:u,children:d}=e,f;t[0]!==a||t[1]!==u||t[2]!==o?(f=u?L(a,o):void 0,t[0]=a,t[1]=u,t[2]=o,t[3]=f):f=t[3];let p=f,m;t[4]!==l||t[5]!==s?(m=()=>l(!s),t[4]=l,t[5]=s,t[6]=m):m=t[6];let h;t[7]===n?h=t[8]:(h=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[7]=n,t[8]=h);let g;t[9]===r?g=t[10]:(g=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[9]=r,t[10]=g);let _;t[11]===i?_=t[12]:(_=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:i}),t[11]=i,t[12]=_);let y;t[13]!==g||t[14]!==_?(y=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[g,_]}),t[13]=g,t[14]=_,t[15]=y):y=t[15];let b=s&&`rotate-180`,x;t[16]===b?x=t[17]:(x=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,b),t[16]=b,t[17]=x);let S;t[18]===x?S=t[19]:(S=(0,B.jsx)(v,{"aria-hidden":`true`,className:x}),t[18]=x,t[19]=S);let C;t[20]!==s||t[21]!==m||t[22]!==h||t[23]!==y||t[24]!==S?(C=(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:m,children:[h,y,S]}),t[20]=s,t[21]=m,t[22]=h,t[23]=y,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==c||t[27]!==u||t[28]!==p||t[29]!==r?(w=p&&u&&(0,B.jsx)(X,{label:r,checked:p.checked,indeterminate:p.indeterminate,disabled:c||!p.availableCount,onChange:u}),t[26]=c,t[27]=u,t[28]=p,t[29]=r,t[30]=w):w=t[30];let T;t[31]!==C||t[32]!==w?(T=(0,B.jsxs)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:[C,w]}),t[31]=C,t[32]=w,t[33]=T):T=t[33];let O;t[34]!==d||t[35]!==s?(O=s&&(0,B.jsx)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:d}),t[34]=d,t[35]=s,t[36]=O):O=t[36];let k;return t[37]!==T||t[38]!==O?(k=(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[T,O]}),t[37]=T,t[38]=O,t[39]=k):k=t[39],k}function me(e){let t=(0,F.c)(34),{icon:n,title:r,items:i,inventoryId:a,selected:s,disabled:l,onToggle:u,onToggleAll:d}=e,f=c(o(ge)).imports,[p,m]=(0,N.useState)(!1),[h,g]=(0,N.useState)(``),[_,y]=(0,N.useState)(60);if(!i.length)return null;let b;t[0]!==i||t[1]!==s?(b=L(i,s),t[0]=i,t[1]=s,t[2]=b):b=t[2];let x=b,S=Y(i,h),C=S.slice(0,_),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>m(he),t[3]=w):w=t[3];let T;t[4]===n?T=t[5]:(T=(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5 shrink-0 text-fg-muted`}),t[4]=n,t[5]=T);let O;t[6]!==i.length||t[7]!==r?(O=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:[r,` (`,i.length,`)`]}),t[6]=i.length,t[7]=r,t[8]=O):O=t[8];let k;t[9]!==x.availableCount||t[10]!==x.selectedCount?(k=(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[x.selectedCount,`/`,x.availableCount]}),t[9]=x.availableCount,t[10]=x.selectedCount,t[11]=k):k=t[11];let A=p&&`rotate-180`,j;t[12]===A?j=t[13]:(j=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,A),t[12]=A,t[13]=j);let M;t[14]===j?M=t[15]:(M=(0,B.jsx)(v,{"aria-hidden":`true`,className:j}),t[14]=j,t[15]=M);let P;t[16]!==p||t[17]!==T||t[18]!==O||t[19]!==k||t[20]!==M?(P=(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-1 text-left`,"aria-expanded":p,onClick:w,children:[T,O,k,M]}),t[16]=p,t[17]=T,t[18]=O,t[19]=k,t[20]=M,t[21]=P):P=t[21];let I=l||!x.availableCount,R;t[22]!==d||t[23]!==x.checked||t[24]!==x.indeterminate||t[25]!==I||t[26]!==r?(R=(0,B.jsx)(X,{label:r,checked:x.checked,indeterminate:x.indeterminate,disabled:I,onChange:d}),t[22]=d,t[23]=x.checked,t[24]=x.indeterminate,t[25]=I,t[26]=r,t[27]=R):R=t[27];let z;t[28]!==P||t[29]!==R?(z=(0,B.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2 px-3 py-2`,children:[P,R]}),t[28]=P,t[29]=R,t[30]=z):z=t[30];let V=p&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge p-2`,children:[i.length>8&&(0,B.jsx)(we,{value:h,label:f.searchWithin.replace(`{group}`,r),onChange:e=>{g(e),y(60)}}),(0,B.jsx)(`div`,{className:`space-y-1`,children:C.map(e=>(0,B.jsx)(Z,{inventoryId:a,item:e,checked:s.has(e.id),disabled:l,onChange:t=>u(e,t)},e.id))}),!S.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:f.noMatches}),C.length<S.length&&(0,B.jsx)(D,{variant:`ghost`,className:`w-full`,onClick:()=>y(q),children:f.showMore.replace(`{count}`,String(S.length-C.length))})]}),H;return t[31]!==z||t[32]!==V?(H=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[z,V]}),t[31]=z,t[32]=V,t[33]=H):H=t[33],H}function q(e){return e+60}function he(e){return!e}function ge(e){return e.language}function _e(e){let t=(0,F.c)(15),{inventoryId:n,projects:r,projectChildren:i,selected:a,disabled:s,onToggle:l}=e,u=c(o(ve)).imports,[d,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(60),h;t[0]===i?h=t[1]:(h=e=>i.get(e.id)??[],t[0]=i,t[1]=h);let g=Y(r,d,h),_=g.slice(0,p),v=r.length>8&&(0,B.jsx)(we,{value:d,label:u.searchWithin.replace(`{group}`,u.kinds.project),onChange:e=>{f(e),m(60)}}),y;t[2]!==s||t[3]!==n||t[4]!==l||t[5]!==i||t[6]!==a?(y=e=>(0,B.jsx)(ye,{inventoryId:n,project:e,children:i.get(e.id)??[],selected:a,disabled:s,onToggle:l},e.id),t[2]=s,t[3]=n,t[4]=l,t[5]=i,t[6]=a,t[7]=y):y=t[7];let b=_.map(y),x;t[8]===b?x=t[9]:(x=(0,B.jsx)(`div`,{className:`space-y-2`,children:b}),t[8]=b,t[9]=x);let S=!g.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:u.noMatches}),C=_.length<g.length&&(0,B.jsx)(D,{variant:`ghost`,className:`w-full`,onClick:()=>m(J),children:u.showMore.replace(`{count}`,String(g.length-_.length))}),w;return t[10]!==v||t[11]!==x||t[12]!==S||t[13]!==C?(w=(0,B.jsxs)(`div`,{className:`space-y-2`,children:[v,x,S,C]}),t[10]=v,t[11]=x,t[12]=S,t[13]=C,t[14]=w):w=t[14],w}function J(e){return e+60}function ve(e){return e.language}function ye(e){let t=(0,F.c)(39),{inventoryId:n,project:r,children:i,selected:a,disabled:s,onToggle:l}=e,u=c(o(Ce)).imports,[d,f]=(0,N.useState)(!1),p;if(t[0]!==i||t[1]!==a){let e;t[3]===a?e=t[4]:(e=e=>a.has(e.id),t[3]=a,t[4]=e),p=i.filter(e),t[0]=i,t[1]=a,t[2]=p}else p=t[2];let m=p.length,h;t[5]===r.name?h=t[6]:(h=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r.name}),t[5]=r.name,t[6]=h);let g;t[7]===r.displayPath?g=t[8]:(g=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[7]=r.displayPath,t[8]=g);let _;t[9]!==h||t[10]!==g?(_=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[h,g]}),t[9]=h,t[10]=g,t[11]=_):_=t[11];let y=_,b=i.length>0?(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-2 text-left`,"aria-expanded":d,onClick:()=>f(Se),children:[y,(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[u.projectContents.replace(`{skills}`,String(i.filter(xe).length)).replace(`{context}`,String(i.filter(be).length)),` · `,u.chosenCount.replace(`{count}`,String(m))]}),(0,B.jsx)(v,{"aria-hidden":`true`,className:E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,d&&`rotate-180`)})]}):(0,B.jsx)(`div`,{className:`min-w-0 flex-1 px-2`,children:y}),x=r.name,S;t[12]!==r.id||t[13]!==a?(S=a.has(r.id),t[12]=r.id,t[13]=a,t[14]=S):S=t[14];let C;t[15]!==s||t[16]!==r?(C=s||!I(r),t[15]=s,t[16]=r,t[17]=C):C=t[17];let w;t[18]!==l||t[19]!==r?(w=e=>l(r,e.target.checked),t[18]=l,t[19]=r,t[20]=w):w=t[20];let T;t[21]!==r.name||t[22]!==C||t[23]!==w||t[24]!==S?(T=(0,B.jsx)(`input`,{type:`checkbox`,"aria-label":x,checked:S,disabled:C,onChange:w}),t[21]=r.name,t[22]=C,t[23]=w,t[24]=S,t[25]=T):T=t[25];let O;t[26]!==T||t[27]!==b?(O=(0,B.jsxs)(`div`,{className:`flex items-center gap-2 p-2`,children:[b,T]}),t[26]=T,t[27]=b,t[28]=O):O=t[28];let k;t[29]!==i||t[30]!==s||t[31]!==n||t[32]!==l||t[33]!==d||t[34]!==a?(k=d&&(0,B.jsx)(`div`,{className:`border-t border-edge p-2`,children:(0,B.jsx)(`div`,{className:`space-y-1`,children:i.map(e=>(0,B.jsx)(Z,{inventoryId:n,item:e,checked:a.has(e.id),disabled:s,onChange:t=>l(e,t)},e.id))})}),t[29]=i,t[30]=s,t[31]=n,t[32]=l,t[33]=d,t[34]=a,t[35]=k):k=t[35];let A;return t[36]!==O||t[37]!==k?(A=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[O,k]}),t[36]=O,t[37]=k,t[38]=A):A=t[38],A}function be(e){return e.kind===`context`}function xe(e){return e.kind===`skill`}function Se(e){return!e}function Ce(e){return e.language}function we(e){let t=(0,F.c)(13),{value:n,label:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(C,{"aria-hidden":`true`,className:`h-4 w-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===r?o=t[2]:(o=(0,B.jsx)(`span`,{className:`sr-only`,children:r}),t[1]=r,t[2]=o);let s=`${r}…`,c;t[3]===i?c=t[4]:(c=e=>i(e.target.value),t[3]=i,t[4]=c);let l;t[5]!==r||t[6]!==s||t[7]!==c||t[8]!==n?(l=(0,B.jsx)(`input`,{type:`search`,autoComplete:`off`,value:n,placeholder:s,"aria-label":r,onChange:c,className:`min-w-0 flex-1 border-0 bg-transparent px-0 py-2 text-sm text-fg placeholder:text-fg-subtle`}),t[5]=r,t[6]=s,t[7]=c,t[8]=n,t[9]=l):l=t[9];let u;return t[10]!==o||t[11]!==l?(u=(0,B.jsxs)(`label`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-3 focus-within:border-accent focus-within:ring-1 focus-within:ring-accent`,children:[a,o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12],u}function Y(e,t,n=()=>[]){let r=t.trim().toLocaleLowerCase();if(!r)return e;let i=e=>`${e.name} ${e.description} ${e.displayPath}`.toLocaleLowerCase().includes(r);return e.filter(e=>i(e)||n(e).some(i))}function X(e){let t=(0,F.c)(10),{label:n,checked:r,indeterminate:i,disabled:a,onChange:o}=e,s=(0,N.useRef)(null),c,l;t[0]===i?(c=t[1],l=t[2]):(c=()=>{s.current&&(s.current.indeterminate=i)},l=[i],t[0]=i,t[1]=c,t[2]=l),(0,N.useEffect)(c,l);let u;t[3]===o?u=t[4]:(u=e=>o(e.target.checked),t[3]=o,t[4]=u);let d;return t[5]!==r||t[6]!==a||t[7]!==n||t[8]!==u?(d=(0,B.jsx)(`input`,{ref:s,type:`checkbox`,"aria-label":n,checked:r,disabled:a,onChange:u}),t[5]=r,t[6]=a,t[7]=n,t[8]=u,t[9]=d):d=t[9],d}function Z(e){let t=(0,F.c)(52),{inventoryId:n,item:r,checked:i,disabled:a,onChange:s}=e,l=o(Te),u;t[0]===l?u=t[1]:(u=c(l),t[0]=l,t[1]=u);let d=u.imports,[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(!1),v;t[2]!==n||t[3]!==r.id||t[4]!==f?(v=async function(){if(_(Q),!f)try{p(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;h(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=f,t[5]=v):v=t[5];let y=v,b;t[6]!==a||t[7]!==r?(b=a||!I(r),t[6]=a,t[7]=r,t[8]=b):b=t[8];let x;t[9]===s?x=t[10]:(x=e=>s(e.target.checked),t[9]=s,t[10]=x);let S;t[11]!==i||t[12]!==b||t[13]!==x?(S=(0,B.jsx)(`input`,{type:`checkbox`,className:`mt-0.5`,checked:i,disabled:b,onChange:x}),t[11]=i,t[12]=b,t[13]=x,t[14]=S):S=t[14];let C;t[15]===r.name?C=t[16]:(C=(0,B.jsx)(`span`,{className:`block break-words text-sm font-medium text-fg`,children:r.name}),t[15]=r.name,t[16]=C);let w;t[17]===r.displayPath?w=t[18]:(w=(0,B.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[17]=r.displayPath,t[18]=w);let T;t[19]!==C||t[20]!==w?(T=(0,B.jsxs)(`span`,{className:`min-w-0`,children:[C,w]}),t[19]=C,t[20]=w,t[21]=T):T=t[21];let E;t[22]!==S||t[23]!==T?(E=(0,B.jsxs)(`label`,{className:`flex min-w-0 flex-1 cursor-pointer items-start gap-3 py-1`,children:[S,T]}),t[22]=S,t[23]=T,t[24]=E):E=t[24];let O;t[25]!==r.name||t[26]!==r.status||t[27]!==d||t[28]!==y?(O=r.status!==`blocked`&&(0,B.jsx)(D,{variant:`ghost`,"aria-label":`${d.preview}: ${r.name}`,className:`h-9 shrink-0 px-2`,onClick:()=>void y(),children:d.preview}),t[25]=r.name,t[26]=r.status,t[27]=d,t[28]=y,t[29]=O):O=t[29];let k;t[30]!==E||t[31]!==O?(k=(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[E,O]}),t[30]=E,t[31]=O,t[32]=k):k=t[32];let j;t[33]===r.description?j=t[34]:(j=r.description&&(0,B.jsx)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:r.description}),t[33]=r.description,t[34]=j);let M;t[35]!==r.status||t[36]!==r.targetName||t[37]!==d?(M=r.status!==`ready`&&(0,B.jsxs)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:[d.statuses[r.status],r.status===`conflict`?` → ${r.targetName}`:``]}),t[35]=r.status,t[36]=r.targetName,t[37]=d,t[38]=M):M=t[38];let L;t[39]===r.reason?L=t[40]:(L=r.reason&&(0,B.jsx)(`p`,{className:`break-words pl-7 text-xs text-fg-muted`,children:r.reason}),t[39]=r.reason,t[40]=L);let R;t[41]!==f||t[42]!==m||t[43]!==g||t[44]!==d?(R=g&&(0,B.jsx)(`div`,{className:`ml-7 mt-2 rounded-lg border border-edge bg-surface-inset p-3`,children:m?(0,B.jsx)(`p`,{role:`alert`,className:`text-sm text-fg-muted`,children:m}):f?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`pre`,{className:`max-h-60 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:f.text}),f.truncated&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:d.previewTruncated})]}):(0,B.jsx)(A,{sections:1})}),t[41]=f,t[42]=m,t[43]=g,t[44]=d,t[45]=R):R=t[45];let z;return t[46]!==k||t[47]!==j||t[48]!==M||t[49]!==L||t[50]!==R?(z=(0,B.jsxs)(`div`,{className:`min-w-0 rounded-lg px-2 py-1.5 hover:bg-surface-hover/60`,children:[k,j,M,L,R]}),t[46]=k,t[47]=j,t[48]=M,t[49]=L,t[50]=R,t[51]=z):z=t[51],z}function Q(e){return!e}function Te(e){return e.language}function $(){let e=c(o(e=>e.language)).imports,[t,n]=(0,N.useState)(),[r,i]=(0,N.useState)(),[a,s]=(0,N.useState)(!1),[l,u]=(0,N.useState)(),[d,f]=(0,N.useState)(new Set),[p,m]=(0,N.useState)(!1),[h,g]=(0,N.useState)(),[v,b]=(0,N.useState)(),[x,S]=(0,N.useState)(``),[C,w]=(0,N.useState)(``),[T,E]=(0,N.useState)(0),O=(0,N.useRef)(null),k=(0,N.useRef)(!1);(0,N.useEffect)(()=>{let e=new AbortController;return S(``),P(`/sources`,void 0,e.signal).then(e=>n(e.sources)).catch(t=>{e.signal.aborted||S(t instanceof Error?t.message:String(t))}),()=>{e.abort(),O.current?.abort()}},[T]);let F=(t?.flatMap(e=>e.lastImport?.status===`running`?[e.lastImport.id]:[])??[]).join(`,`);(0,N.useEffect)(()=>{if(!F)return;let e=new AbortController,t,n=async()=>{for(let t of F.split(`,`))try{let n=await P(`/runs/${t}`,void 0,e.signal);e.signal.aborted||I(n)}catch{}e.signal.aborted||(t=setTimeout(()=>void n(),3e3))};return t=setTimeout(()=>void n(),1500),()=>{e.abort(),clearTimeout(t)}},[F]);function I(e){n(t=>t?.map(t=>t.id===e.source?{...t,lastImport:e}:t)),e.status!==`running`&&g(t=>t?.requestId===e.id?void 0:t)}async function L(e){O.current?.abort();let t=new AbortController;O.current=t,i(e),s(!0),u(void 0),f(new Set),w(``),b(void 0),g(void 0);try{let n=await P(`/sources/${e}/scan`,{},t.signal);t.signal.aborted||(u(n),f(new Set(n.candidates.filter(e=>!e.parentId&&e.suggested).map(e=>e.id))))}catch(e){t.signal.aborted||w(e instanceof Error?e.message:String(e))}}async function R(){if(!l||!d.size||k.current)return;k.current=!0,m(!0),w(``),S(``);let e=h??{inventoryId:l.id,candidateIds:[...d],requestId:crypto.randomUUID(),retryOf:v};g(e);try{I(await P(`/runs`,e)),s(!1)}catch(e){let t=e instanceof Error?e.message:String(e);w(t),S(t);let n=e.body?.code;n&&[`invalid_input`,`inventory_stale`,`invalid_selection`,`missing_parent`,`not_found`,`conflict`].includes(n)&&g(void 0)}finally{k.current=!1,m(!1)}}async function z(e){i(e.source),s(!0),u(void 0),f(new Set),w(``),g(void 0),b(e.id),O.current?.abort();let t=new AbortController;O.current=t;try{let n=await P(`/inventories/${e.inventoryId}`,void 0,t.signal);if(t.signal.aborted)return;let r=new Set(e.items.filter(e=>e.status===`failed`).map(e=>e.candidateId));n.candidates.forEach(e=>{r.has(e.id)&&e.parentId&&r.add(e.parentId)}),u({...n,candidates:n.candidates.filter(e=>r.has(e.id))}),f(r)}catch(e){t.signal.aborted||w(e instanceof Error?e.message:String(e))}}let H=t?.filter(e=>e.detected||e.lastImport);return(0,B.jsxs)(j,{children:[(0,B.jsx)(M,{title:e.title,subtitle:e.subtitle}),x&&(0,B.jsxs)(`div`,{role:`alert`,className:`rounded-xl bg-danger-soft p-4 text-sm text-danger`,children:[(0,B.jsx)(`p`,{children:x}),!t&&(0,B.jsx)(D,{variant:`ghost`,onClick:()=>E(e=>e+1),children:e.retry})]}),!t&&!x&&(0,B.jsx)(A,{sections:1}),t&&(0,B.jsxs)(`section`,{className:`space-y-4`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-base font-medium text-fg`,children:e.apps}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:e.detectedHint})]}),H?.length?(0,B.jsx)(`div`,{className:`flex flex-col gap-1 overflow-hidden rounded-xl bg-surface-hover/20 p-1 [&>*]:rounded-lg [&>*]:bg-surface-base/45`,children:H.map(t=>(0,B.jsxs)(`article`,{className:`space-y-3 p-5 sm:p-6`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-surface-hover text-fg`,children:(0,B.jsx)(y,{className:`h-5 w-5`})}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`h3`,{className:`font-medium text-fg`,children:t.name}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.includes})]}),(0,B.jsx)(D,{variant:`secondary`,disabled:p||!t.detected||!!h&&r!==t.id||t.lastImport?.status===`running`,onClick:()=>{S(``),h&&r===t.id?s(!0):L(t.id)},children:p&&r===t.id?e.importing:h&&r===t.id?e.retry:t.lastImport?e.importAgain:e.import})]}),t.lastImport&&(0,B.jsxs)(`div`,{role:`status`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,B.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(_,{className:`h-4 w-4 shrink-0`}),t.lastImport.status===`running`?e.importing:t.lastImport.issues.length?e.finishedWithIssues:e.finished]}),(0,B.jsxs)(`p`,{children:[e.summary.replace(`{skills}`,String(t.lastImport.skills)).replace(`{context}`,String(t.lastImport.context)).replace(`{projects}`,String(t.lastImport.projects)),t.lastImport.skipped>0&&` · ${e.skipped.replace(`{count}`,String(t.lastImport.skipped))}`]}),!!t.lastImport.issues.length&&(0,B.jsxs)(`details`,{children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-fg`,children:[e.details,` (`,t.lastImport.issues.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-2 space-y-2`,children:t.lastImport.issues.map((e,t)=>(0,B.jsxs)(`li`,{className:`break-words`,children:[(0,B.jsx)(`span`,{className:`font-medium`,children:e.name}),` — `,e.reason]},t))})]}),t.lastImport.status===`partial`&&(0,B.jsx)(D,{variant:`ghost`,disabled:p||!!h,onClick:()=>void z(t.lastImport),children:e.retryFailed})]})]},t.id))}):(0,B.jsxs)(`div`,{className:`rounded-xl bg-surface-hover/20 p-6 text-sm text-fg-muted`,children:[(0,B.jsx)(`p`,{children:e.empty}),(0,B.jsx)(D,{variant:`ghost`,className:`mt-3`,onClick:()=>E(e=>e+1),children:e.refresh})]}),(0,B.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:e.footnote})]}),(0,B.jsx)(V,{open:a,sourceName:t?.find(e=>e.id===r)?.name??``,inventory:l,selected:d,onSelected:f,busy:p,locked:p||!!h,error:C,onClose:()=>{O.current?.abort(),s(!1)},onRefresh:()=>{r&&L(r)},onSubmit:()=>void R()})]})}export{$ as ImportsPage};
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{i as a,n as o,o as s}from"./locale-store-B4o4aDCg.js";import{t as c}from"./messages-hlOsXkQ7.js";import{a as l,i as u,n as d,o as f,r as p,s as m,t as h}from"./dist-DlirbHVs.js";import{t as g}from"./braces-Cfmtagno.js";import{t as _}from"./check-DUBLcKHA.js";import{t as v}from"./chevron-down-ccbiQQz_.js";import{t as y}from"./download-Dk-ZjtO6.js";import{t as b}from"./folder-kanban-CpLlFI1o.js";import{t as x}from"./package-wATCyihJ.js";import{t as S}from"./plug-DKYPEgkR.js";import{t as C}from"./search-DA7gz22f.js";import{t as w}from"./settings-2-D-csvaET.js";import{t as T}from"./x-B_N4OPjy.js";import{t as E}from"./cn-0WouolD0.js";import{t as D}from"./button-C5tRaJxt.js";import{i as O,o as k}from"./settings-shell-dialog-layer-BU3UuiJr.js";import{n as A}from"./settings-loading-skeleton-CAoOV17i.js";import{n as j,t as M}from"./settings-page-header-C9xiCwzq.js";import"./settings-page-layout-DTOBegnh.js";var N=e(t(),1);async function P(e,t,n){return(await s(a(`/api/imports${e}`),{...t===void 0?{}:{method:`POST`,body:JSON.stringify(t)},signal:n})).data}var F=n();function I(e){return e.kind!==`connection`&&(e.status===`ready`||e.status===`conflict`||e.kind===`project`&&e.status===`existing`)}function L(e,t){let n=e.filter(I),r=n.filter(e=>t.has(e.id)).length;return{checked:n.length>0&&r===n.length,indeterminate:r>0&&r<n.length,selectedCount:r,availableCount:n.length}}function R(e,t,n,r){return n.reduce((t,n)=>z(e,t,n,r),new Set(t))}function z(e,t,n,r){let i=new Set(t);if(!I(n))return i;if(r){if(i.add(n.id),n.parentId&&i.add(n.parentId),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&t.kind===`skill`&&t.suggested&&I(t)&&i.add(t.id)}else if(i.delete(n.id),n.kind===`project`)for(let t of e.candidates)t.parentId===n.id&&i.delete(t.id);return i}var B=r();function V(e){let t=(0,F.c)(34),{open:n,sourceName:r,inventory:i,selected:a,onSelected:s,busy:_,locked:v,error:y,onClose:S,onRefresh:C,onSubmit:j}=e,M=c(o(ue)).imports,[P,I]=(0,N.useState)(!0),[L,V]=(0,N.useState)(!1),U;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(U=()=>{I(!0),V(!1)},t[0]=U):U=t[0];let fe=i?.id,W;t[1]===fe?W=t[2]:(W=[fe],t[1]=fe,t[2]=W),(0,N.useEffect)(U,W);let G=i?.candidates.filter(le)??[],K;t[3]===i?.candidates?K=t[4]:(K=i?.candidates.filter(ce)??[],t[3]=i?.candidates,t[4]=K);let q=K,he;t[5]===i?.candidates?he=t[6]:(he=i?.candidates.filter(se)??[],t[5]=i?.candidates,t[6]=he);let ge=he,J;if(t[7]!==i?.candidates){J=new Map;for(let e of i?.candidates??[]){if(!e.parentId)continue;let t=J.get(e.parentId)??[];t.push(e),J.set(e.parentId,t)}t[7]=i?.candidates,t[8]=J}else J=t[8];let ve=J,ye=i?.candidates.filter(e=>a.has(e.id))??[],be=M.selected.replace(`{skills}`,String(ye.filter(oe).length)).replace(`{context}`,String(ye.filter(ae).length)).replace(`{projects}`,String(ye.filter(ie).length)),xe;t[9]!==i||t[10]!==s||t[11]!==a?(xe=(e,t)=>{i&&s(z(i,a,e,t))},t[9]=i,t[10]=s,t[11]=a,t[12]=xe):xe=t[12];let Se=xe,Ce;t[13]!==i||t[14]!==s||t[15]!==a?(Ce=(e,t)=>{i&&s(R(i,a,e,t))},t[13]=i,t[14]=s,t[15]=a,t[16]=Ce):Ce=t[16];let we=Ce,Y;t[17]===S?Y=t[18]:(Y=e=>{e||S()},t[17]=S,t[18]=Y);let X;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,B.jsx)(l,{className:`xopc-dialog-overlay fixed inset-0 bg-scrim ${k}`}),t[19]=X):X=t[19];let Z;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Z=E(`xopc-dialog-content fixed left-1/2 top-1/2 flex h-[min(calc(100dvh-2rem),760px)] w-[min(calc(100%-2rem),720px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay outline-none`,`max-sm:bottom-0 max-sm:left-0 max-sm:top-auto max-sm:h-[min(92dvh,760px)] max-sm:w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none`,O),t[20]=Z):Z=t[20];let Q;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,B.jsx)(T,{"aria-hidden":`true`,className:`h-4 w-4`}),t[21]=Q):Q=t[21];let Te=y&&(0,B.jsxs)(`div`,{role:`alert`,className:`space-y-3 rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg`,children:[(0,B.jsx)(`p`,{children:y}),(0,B.jsx)(D,{variant:`secondary`,disabled:v,onClick:C,children:M.refresh})]}),$;t[22]!==y||t[23]!==i?($=!i&&!y&&(0,B.jsx)(A,{sections:2}),t[22]=y,t[23]=i,t[24]=$):$=t[24];let Ee=i&&(0,B.jsxs)(B.Fragment,{children:[!i.complete&&(0,B.jsx)(`p`,{className:`rounded-lg bg-surface-inset p-3 text-sm text-fg-muted`,children:M.incomplete}),G.length>0&&(0,B.jsxs)(pe,{icon:w,title:M.personalSetup,description:M.personalSetupHint,items:G,selected:a,open:P,disabled:v,onOpenChange:I,onCheckedChange:e=>we(G,e),children:[(0,B.jsx)(me,{icon:x,title:M.kinds.skill,items:G.filter(re),inventoryId:i.id,selected:a,disabled:v,onToggle:Se,onToggleAll:e=>we(G.filter(ne),e)}),(0,B.jsx)(me,{icon:g,title:M.kinds.context,items:G.filter(te),inventoryId:i.id,selected:a,disabled:v,onToggle:Se,onToggleAll:e=>we(G.filter(ee),e)})]}),q.length>0&&(0,B.jsx)(pe,{icon:b,title:M.kinds.project,description:M.projectsHint.replace(`{count}`,String(q.length)),items:q,selected:a,open:L,disabled:v,onOpenChange:V,children:(0,B.jsx)(_e,{inventoryId:i.id,projects:q,projectChildren:ve,selected:a,disabled:v,onToggle:Se})}),ge.length>0&&(0,B.jsx)(de,{inventoryId:i.id,items:ge}),!i.candidates.length&&(0,B.jsx)(`p`,{className:`rounded-xl bg-surface-inset p-5 text-sm text-fg-muted`,children:M.noContent}),!!i.notices.length&&(0,B.jsxs)(`details`,{className:`rounded-xl border border-edge bg-surface-inset p-4 text-sm text-fg-muted`,children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer font-medium text-fg`,children:[M.scanNotices,` (`,i.notices.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-3 space-y-2`,children:i.notices.map(H)})]})]}),De;t[25]!==Te||t[26]!==$||t[27]!==Ee?(De=(0,B.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-4 sm:p-6`,children:[Te,$,Ee]}),t[25]=Te,t[26]=$,t[27]=Ee,t[28]=De):De=t[28];let Oe=D,ke=!i||!a.size||_,Ae=_?M.importing:v?M.retry:M.importCount.replace(`{count}`,String(a.size)),je;return t[29]!==Oe||t[30]!==j||t[31]!==ke||t[32]!==Ae?(je=(0,B.jsx)(Oe,{variant:`primary`,disabled:ke,onClick:j,children:Ae}),t[29]=Oe,t[30]=j,t[31]=ke,t[32]=Ae,t[33]=je):je=t[33],(0,B.jsx)(h,{open:n,onOpenChange:Y,children:(0,B.jsxs)(f,{children:[X,(0,B.jsxs)(p,{className:Z,children:[(0,B.jsx)(`header`,{className:`shrink-0 space-y-2 border-b border-edge p-5 sm:p-6`,children:(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(m,{className:`text-xl font-semibold text-fg`,children:M.chooseTitle.replace(`{source}`,r)}),(0,B.jsx)(u,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:M.chooseHint})]}),(0,B.jsx)(d,{asChild:!0,children:(0,B.jsx)(D,{variant:`ghost`,"aria-label":M.close,className:`h-10 w-10 shrink-0 p-0`,children:Q})})]})}),De,(0,B.jsx)(`footer`,{className:`shrink-0 border-t border-edge bg-surface-overlay p-4 sm:px-6 sm:py-5`,children:(0,B.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,B.jsxs)(`div`,{"aria-live":`polite`,className:`min-w-0`,children:[(0,B.jsx)(`p`,{className:`text-sm text-fg-muted`,children:be}),_&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.runningHint}),v&&!_&&(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:M.retryHint})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2`,children:[(0,B.jsx)(D,{variant:`ghost`,onClick:S,children:_?M.close:M.cancel}),je]})]})})]})]})})}function H(e,t){return(0,B.jsx)(`li`,{className:`break-words`,children:e},t)}function ee(e){return e.kind===`context`}function te(e){return e.kind===`context`}function ne(e){return e.kind===`skill`}function re(e){return e.kind===`skill`}function ie(e){return e.kind===`project`}function ae(e){return e.kind===`context`}function oe(e){return e.kind===`skill`}function se(e){return e.kind===`connection`}function ce(e){return e.kind===`project`}function le(e){return!e.parentId&&(e.kind===`skill`||e.kind===`context`)}function ue(e){return e.language}function de(e){let t=(0,F.c)(13),{inventoryId:n,items:r}=e,a=c(o(fe)).imports,[s,l]=(0,N.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>l(U),t[0]=u):u=t[0];let d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(S,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[1]=d):d=t[1];let f=a.connectionsHint.replace(`{count}`,String(r.length)),p;t[2]===f?p=t[3]:(p=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:f}),t[2]=f,t[3]=p);let m=s&&`rotate-180`,h;t[4]===m?h=t[5]:(h=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,m),t[4]=m,t[5]=h);let g;t[6]===h?g=t[7]:(g=(0,B.jsx)(v,{"aria-hidden":`true`,className:h}),t[6]=h,t[7]=g);let _;return t[8]!==n||t[9]!==r||t[10]!==s||t[11]!==a?(_=s&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:[r.map(e=>(0,B.jsx)(W,{inventoryId:n,item:e},e.id)),(0,B.jsx)(D,{asChild:!0,variant:`secondary`,children:(0,B.jsx)(i,{to:`/capabilities/connectors`,children:a.connectionsAction})})]}),t[8]=n,t[9]=r,t[10]=s,t[11]=a,t[12]=_):_=t[12],(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[(0,B.jsx)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:u,children:[d,(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:a.kinds.connection}),p]}),g]})}),_]})}function U(e){return!e}function fe(e){return e.language}function W(e){let t=(0,F.c)(34),{inventoryId:n,item:r}=e,i=o(K),a;t[0]===i?a=t[1]:(a=c(i),t[0]=i,t[1]=a);let s=a.imports,[l,u]=(0,N.useState)(),[d,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(``),h;t[2]!==n||t[3]!==r.id||t[4]!==l?(h=async function(){if(f(G),!l)try{u(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;m(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=l,t[5]=h):h=t[5];let g=h,_;t[6]===r.name?_=t[7]:(_=(0,B.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:r.name}),t[6]=r.name,t[7]=_);let v;t[8]===r.displayPath?v=t[9]:(v=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[8]=r.displayPath,t[9]=v);let y=s.statuses[r.status],b;t[10]===y?b=t[11]:(b=(0,B.jsx)(`span`,{className:`mt-1 block text-xs text-fg-muted`,children:y}),t[10]=y,t[11]=b);let x;t[12]!==_||t[13]!==v||t[14]!==b?(x=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[_,v,b]}),t[12]=_,t[13]=v,t[14]=b,t[15]=x):x=t[15];let S;t[16]===g?S=t[17]:(S=()=>void g(),t[16]=g,t[17]=S);let C;t[18]!==s.preview||t[19]!==S?(C=(0,B.jsx)(D,{variant:`ghost`,className:`h-9 shrink-0 px-2`,onClick:S,children:s.preview}),t[18]=s.preview,t[19]=S,t[20]=C):C=t[20];let w;t[21]!==C||t[22]!==x?(w=(0,B.jsxs)(`div`,{className:`flex items-start gap-3`,children:[x,C]}),t[21]=C,t[22]=x,t[23]=w):w=t[23];let T;t[24]===r.reason?T=t[25]:(T=r.reason&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:r.reason}),t[24]=r.reason,t[25]=T);let E;t[26]!==p||t[27]!==d||t[28]!==l?(E=d&&(0,B.jsx)(`div`,{className:`mt-3 rounded-lg bg-surface-inset p-3`,children:p?(0,B.jsx)(`p`,{role:`alert`,className:`text-xs text-fg-muted`,children:p}):l?(0,B.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:l.text}):(0,B.jsx)(A,{sections:1})}),t[26]=p,t[27]=d,t[28]=l,t[29]=E):E=t[29];let O;return t[30]!==w||t[31]!==T||t[32]!==E?(O=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge p-3`,children:[w,T,E]}),t[30]=w,t[31]=T,t[32]=E,t[33]=O):O=t[33],O}function G(e){return!e}function K(e){return e.language}function pe(e){let t=(0,F.c)(40),{icon:n,title:r,description:i,items:a,selected:o,open:s,disabled:c,onOpenChange:l,onCheckedChange:u,children:d}=e,f;t[0]!==a||t[1]!==u||t[2]!==o?(f=u?L(a,o):void 0,t[0]=a,t[1]=u,t[2]=o,t[3]=f):f=t[3];let p=f,m;t[4]!==l||t[5]!==s?(m=()=>l(!s),t[4]=l,t[5]=s,t[6]=m):m=t[6];let h;t[7]===n?h=t[8]:(h=(0,B.jsx)(`span`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-panel text-fg`,children:(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5`})}),t[7]=n,t[8]=h);let g;t[9]===r?g=t[10]:(g=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r}),t[9]=r,t[10]=g);let _;t[11]===i?_=t[12]:(_=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,children:i}),t[11]=i,t[12]=_);let y;t[13]!==g||t[14]!==_?(y=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[g,_]}),t[13]=g,t[14]=_,t[15]=y):y=t[15];let b=s&&`rotate-180`,x;t[16]===b?x=t[17]:(x=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,b),t[16]=b,t[17]=x);let S;t[18]===x?S=t[19]:(S=(0,B.jsx)(v,{"aria-hidden":`true`,className:x}),t[18]=x,t[19]=S);let C;t[20]!==s||t[21]!==m||t[22]!==h||t[23]!==y||t[24]!==S?(C=(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start gap-3 px-1 text-left`,"aria-expanded":s,onClick:m,children:[h,y,S]}),t[20]=s,t[21]=m,t[22]=h,t[23]=y,t[24]=S,t[25]=C):C=t[25];let w;t[26]!==c||t[27]!==u||t[28]!==p||t[29]!==r?(w=p&&u&&(0,B.jsx)(X,{label:r,checked:p.checked,indeterminate:p.indeterminate,disabled:c||!p.availableCount,onChange:u}),t[26]=c,t[27]=u,t[28]=p,t[29]=r,t[30]=w):w=t[30];let T;t[31]!==C||t[32]!==w?(T=(0,B.jsxs)(`div`,{className:`flex min-h-16 items-center gap-3 px-3 py-2 sm:px-4`,children:[C,w]}),t[31]=C,t[32]=w,t[33]=T):T=t[33];let O;t[34]!==d||t[35]!==s?(O=s&&(0,B.jsx)(`div`,{className:`space-y-2 border-t border-edge bg-surface-overlay p-3 sm:p-4`,children:d}),t[34]=d,t[35]=s,t[36]=O):O=t[36];let k;return t[37]!==T||t[38]!==O?(k=(0,B.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge bg-surface-inset`,children:[T,O]}),t[37]=T,t[38]=O,t[39]=k):k=t[39],k}function me(e){let t=(0,F.c)(34),{icon:n,title:r,items:i,inventoryId:a,selected:s,disabled:l,onToggle:u,onToggleAll:d}=e,f=c(o(ge)).imports,[p,m]=(0,N.useState)(!1),[h,g]=(0,N.useState)(``),[_,y]=(0,N.useState)(60);if(!i.length)return null;let b;t[0]!==i||t[1]!==s?(b=L(i,s),t[0]=i,t[1]=s,t[2]=b):b=t[2];let x=b,S=Y(i,h),C=S.slice(0,_),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>m(he),t[3]=w):w=t[3];let T;t[4]===n?T=t[5]:(T=(0,B.jsx)(n,{"aria-hidden":`true`,className:`h-5 w-5 shrink-0 text-fg-muted`}),t[4]=n,t[5]=T);let O;t[6]!==i.length||t[7]!==r?(O=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg`,children:[r,` (`,i.length,`)`]}),t[6]=i.length,t[7]=r,t[8]=O):O=t[8];let k;t[9]!==x.availableCount||t[10]!==x.selectedCount?(k=(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[x.selectedCount,`/`,x.availableCount]}),t[9]=x.availableCount,t[10]=x.selectedCount,t[11]=k):k=t[11];let A=p&&`rotate-180`,j;t[12]===A?j=t[13]:(j=E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,A),t[12]=A,t[13]=j);let M;t[14]===j?M=t[15]:(M=(0,B.jsx)(v,{"aria-hidden":`true`,className:j}),t[14]=j,t[15]=M);let P;t[16]!==p||t[17]!==T||t[18]!==O||t[19]!==k||t[20]!==M?(P=(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-1 text-left`,"aria-expanded":p,onClick:w,children:[T,O,k,M]}),t[16]=p,t[17]=T,t[18]=O,t[19]=k,t[20]=M,t[21]=P):P=t[21];let I=l||!x.availableCount,R;t[22]!==d||t[23]!==x.checked||t[24]!==x.indeterminate||t[25]!==I||t[26]!==r?(R=(0,B.jsx)(X,{label:r,checked:x.checked,indeterminate:x.indeterminate,disabled:I,onChange:d}),t[22]=d,t[23]=x.checked,t[24]=x.indeterminate,t[25]=I,t[26]=r,t[27]=R):R=t[27];let z;t[28]!==P||t[29]!==R?(z=(0,B.jsxs)(`div`,{className:`flex min-h-14 items-center gap-2 px-3 py-2`,children:[P,R]}),t[28]=P,t[29]=R,t[30]=z):z=t[30];let V=p&&(0,B.jsxs)(`div`,{className:`space-y-2 border-t border-edge p-2`,children:[i.length>8&&(0,B.jsx)(we,{value:h,label:f.searchWithin.replace(`{group}`,r),onChange:e=>{g(e),y(60)}}),(0,B.jsx)(`div`,{className:`space-y-1`,children:C.map(e=>(0,B.jsx)(Z,{inventoryId:a,item:e,checked:s.has(e.id),disabled:l,onChange:t=>u(e,t)},e.id))}),!S.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:f.noMatches}),C.length<S.length&&(0,B.jsx)(D,{variant:`ghost`,className:`w-full`,onClick:()=>y(q),children:f.showMore.replace(`{count}`,String(S.length-C.length))})]}),H;return t[31]!==z||t[32]!==V?(H=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[z,V]}),t[31]=z,t[32]=V,t[33]=H):H=t[33],H}function q(e){return e+60}function he(e){return!e}function ge(e){return e.language}function _e(e){let t=(0,F.c)(15),{inventoryId:n,projects:r,projectChildren:i,selected:a,disabled:s,onToggle:l}=e,u=c(o(ve)).imports,[d,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(60),h;t[0]===i?h=t[1]:(h=e=>i.get(e.id)??[],t[0]=i,t[1]=h);let g=Y(r,d,h),_=g.slice(0,p),v=r.length>8&&(0,B.jsx)(we,{value:d,label:u.searchWithin.replace(`{group}`,u.kinds.project),onChange:e=>{f(e),m(60)}}),y;t[2]!==s||t[3]!==n||t[4]!==l||t[5]!==i||t[6]!==a?(y=e=>(0,B.jsx)(ye,{inventoryId:n,project:e,children:i.get(e.id)??[],selected:a,disabled:s,onToggle:l},e.id),t[2]=s,t[3]=n,t[4]=l,t[5]=i,t[6]=a,t[7]=y):y=t[7];let b=_.map(y),x;t[8]===b?x=t[9]:(x=(0,B.jsx)(`div`,{className:`space-y-2`,children:b}),t[8]=b,t[9]=x);let S=!g.length&&(0,B.jsx)(`p`,{className:`p-3 text-sm text-fg-muted`,children:u.noMatches}),C=_.length<g.length&&(0,B.jsx)(D,{variant:`ghost`,className:`w-full`,onClick:()=>m(J),children:u.showMore.replace(`{count}`,String(g.length-_.length))}),w;return t[10]!==v||t[11]!==x||t[12]!==S||t[13]!==C?(w=(0,B.jsxs)(`div`,{className:`space-y-2`,children:[v,x,S,C]}),t[10]=v,t[11]=x,t[12]=S,t[13]=C,t[14]=w):w=t[14],w}function J(e){return e+60}function ve(e){return e.language}function ye(e){let t=(0,F.c)(39),{inventoryId:n,project:r,children:i,selected:a,disabled:s,onToggle:l}=e,u=c(o(Ce)).imports,[d,f]=(0,N.useState)(!1),p;if(t[0]!==i||t[1]!==a){let e;t[3]===a?e=t[4]:(e=e=>a.has(e.id),t[3]=a,t[4]=e),p=i.filter(e),t[0]=i,t[1]=a,t[2]=p}else p=t[2];let m=p.length,h;t[5]===r.name?h=t[6]:(h=(0,B.jsx)(`span`,{className:`block truncate text-sm font-medium text-fg`,children:r.name}),t[5]=r.name,t[6]=h);let g;t[7]===r.displayPath?g=t[8]:(g=(0,B.jsx)(`span`,{className:`mt-0.5 block truncate text-xs font-normal text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[7]=r.displayPath,t[8]=g);let _;t[9]!==h||t[10]!==g?(_=(0,B.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[h,g]}),t[9]=h,t[10]=g,t[11]=_):_=t[11];let y=_,b=i.length>0?(0,B.jsxs)(D,{variant:`ghost`,className:`min-w-0 flex-1 justify-start px-2 text-left`,"aria-expanded":d,onClick:()=>f(Se),children:[y,(0,B.jsxs)(`span`,{className:`text-xs font-normal text-fg-muted`,children:[u.projectContents.replace(`{skills}`,String(i.filter(xe).length)).replace(`{context}`,String(i.filter(be).length)),` · `,u.chosenCount.replace(`{count}`,String(m))]}),(0,B.jsx)(v,{"aria-hidden":`true`,className:E(`h-4 w-4 shrink-0 text-fg-muted transition-transform duration-200 motion-reduce:transition-none`,d&&`rotate-180`)})]}):(0,B.jsx)(`div`,{className:`min-w-0 flex-1 px-2`,children:y}),x=r.name,S;t[12]!==r.id||t[13]!==a?(S=a.has(r.id),t[12]=r.id,t[13]=a,t[14]=S):S=t[14];let C;t[15]!==s||t[16]!==r?(C=s||!I(r),t[15]=s,t[16]=r,t[17]=C):C=t[17];let w;t[18]!==l||t[19]!==r?(w=e=>l(r,e.target.checked),t[18]=l,t[19]=r,t[20]=w):w=t[20];let T;t[21]!==r.name||t[22]!==C||t[23]!==w||t[24]!==S?(T=(0,B.jsx)(`input`,{type:`checkbox`,"aria-label":x,checked:S,disabled:C,onChange:w}),t[21]=r.name,t[22]=C,t[23]=w,t[24]=S,t[25]=T):T=t[25];let O;t[26]!==T||t[27]!==b?(O=(0,B.jsxs)(`div`,{className:`flex items-center gap-2 p-2`,children:[b,T]}),t[26]=T,t[27]=b,t[28]=O):O=t[28];let k;t[29]!==i||t[30]!==s||t[31]!==n||t[32]!==l||t[33]!==d||t[34]!==a?(k=d&&(0,B.jsx)(`div`,{className:`border-t border-edge p-2`,children:(0,B.jsx)(`div`,{className:`space-y-1`,children:i.map(e=>(0,B.jsx)(Z,{inventoryId:n,item:e,checked:a.has(e.id),disabled:s,onChange:t=>l(e,t)},e.id))})}),t[29]=i,t[30]=s,t[31]=n,t[32]=l,t[33]=d,t[34]=a,t[35]=k):k=t[35];let A;return t[36]!==O||t[37]!==k?(A=(0,B.jsxs)(`div`,{className:`rounded-xl border border-edge`,children:[O,k]}),t[36]=O,t[37]=k,t[38]=A):A=t[38],A}function be(e){return e.kind===`context`}function xe(e){return e.kind===`skill`}function Se(e){return!e}function Ce(e){return e.language}function we(e){let t=(0,F.c)(13),{value:n,label:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsx)(C,{"aria-hidden":`true`,className:`h-4 w-4 shrink-0 text-fg-muted`}),t[0]=a):a=t[0];let o;t[1]===r?o=t[2]:(o=(0,B.jsx)(`span`,{className:`sr-only`,children:r}),t[1]=r,t[2]=o);let s=`${r}…`,c;t[3]===i?c=t[4]:(c=e=>i(e.target.value),t[3]=i,t[4]=c);let l;t[5]!==r||t[6]!==s||t[7]!==c||t[8]!==n?(l=(0,B.jsx)(`input`,{type:`search`,autoComplete:`off`,value:n,placeholder:s,"aria-label":r,onChange:c,className:`min-w-0 flex-1 border-0 bg-transparent px-0 py-2 text-sm text-fg placeholder:text-fg-subtle`}),t[5]=r,t[6]=s,t[7]=c,t[8]=n,t[9]=l):l=t[9];let u;return t[10]!==o||t[11]!==l?(u=(0,B.jsxs)(`label`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-3 focus-within:border-accent focus-within:ring-1 focus-within:ring-accent`,children:[a,o,l]}),t[10]=o,t[11]=l,t[12]=u):u=t[12],u}function Y(e,t,n=()=>[]){let r=t.trim().toLocaleLowerCase();if(!r)return e;let i=e=>`${e.name} ${e.description} ${e.displayPath}`.toLocaleLowerCase().includes(r);return e.filter(e=>i(e)||n(e).some(i))}function X(e){let t=(0,F.c)(10),{label:n,checked:r,indeterminate:i,disabled:a,onChange:o}=e,s=(0,N.useRef)(null),c,l;t[0]===i?(c=t[1],l=t[2]):(c=()=>{s.current&&(s.current.indeterminate=i)},l=[i],t[0]=i,t[1]=c,t[2]=l),(0,N.useEffect)(c,l);let u;t[3]===o?u=t[4]:(u=e=>o(e.target.checked),t[3]=o,t[4]=u);let d;return t[5]!==r||t[6]!==a||t[7]!==n||t[8]!==u?(d=(0,B.jsx)(`input`,{ref:s,type:`checkbox`,"aria-label":n,checked:r,disabled:a,onChange:u}),t[5]=r,t[6]=a,t[7]=n,t[8]=u,t[9]=d):d=t[9],d}function Z(e){let t=(0,F.c)(52),{inventoryId:n,item:r,checked:i,disabled:a,onChange:s}=e,l=o(Te),u;t[0]===l?u=t[1]:(u=c(l),t[0]=l,t[1]=u);let d=u.imports,[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(``),[g,_]=(0,N.useState)(!1),v;t[2]!==n||t[3]!==r.id||t[4]!==f?(v=async function(){if(_(Q),!f)try{p(await P(`/inventories/${n}/items/${r.id}/preview`))}catch(e){let t=e;h(t instanceof Error?t.message:String(t))}},t[2]=n,t[3]=r.id,t[4]=f,t[5]=v):v=t[5];let y=v,b;t[6]!==a||t[7]!==r?(b=a||!I(r),t[6]=a,t[7]=r,t[8]=b):b=t[8];let x;t[9]===s?x=t[10]:(x=e=>s(e.target.checked),t[9]=s,t[10]=x);let S;t[11]!==i||t[12]!==b||t[13]!==x?(S=(0,B.jsx)(`input`,{type:`checkbox`,className:`mt-0.5`,checked:i,disabled:b,onChange:x}),t[11]=i,t[12]=b,t[13]=x,t[14]=S):S=t[14];let C;t[15]===r.name?C=t[16]:(C=(0,B.jsx)(`span`,{className:`block break-words text-sm font-medium text-fg`,children:r.name}),t[15]=r.name,t[16]=C);let w;t[17]===r.displayPath?w=t[18]:(w=(0,B.jsx)(`span`,{className:`block truncate text-xs text-fg-muted`,title:r.displayPath,children:r.displayPath}),t[17]=r.displayPath,t[18]=w);let T;t[19]!==C||t[20]!==w?(T=(0,B.jsxs)(`span`,{className:`min-w-0`,children:[C,w]}),t[19]=C,t[20]=w,t[21]=T):T=t[21];let E;t[22]!==S||t[23]!==T?(E=(0,B.jsxs)(`label`,{className:`flex min-w-0 flex-1 cursor-pointer items-start gap-3 py-1`,children:[S,T]}),t[22]=S,t[23]=T,t[24]=E):E=t[24];let O;t[25]!==r.name||t[26]!==r.status||t[27]!==d||t[28]!==y?(O=r.status!==`blocked`&&(0,B.jsx)(D,{variant:`ghost`,"aria-label":`${d.preview}: ${r.name}`,className:`h-9 shrink-0 px-2`,onClick:()=>void y(),children:d.preview}),t[25]=r.name,t[26]=r.status,t[27]=d,t[28]=y,t[29]=O):O=t[29];let k;t[30]!==E||t[31]!==O?(k=(0,B.jsxs)(`div`,{className:`flex items-start gap-2`,children:[E,O]}),t[30]=E,t[31]=O,t[32]=k):k=t[32];let j;t[33]===r.description?j=t[34]:(j=r.description&&(0,B.jsx)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:r.description}),t[33]=r.description,t[34]=j);let M;t[35]!==r.status||t[36]!==r.targetName||t[37]!==d?(M=r.status!==`ready`&&(0,B.jsxs)(`p`,{className:`pl-7 text-xs text-fg-muted`,children:[d.statuses[r.status],r.status===`conflict`?` → ${r.targetName}`:``]}),t[35]=r.status,t[36]=r.targetName,t[37]=d,t[38]=M):M=t[38];let L;t[39]===r.reason?L=t[40]:(L=r.reason&&(0,B.jsx)(`p`,{className:`break-words pl-7 text-xs text-fg-muted`,children:r.reason}),t[39]=r.reason,t[40]=L);let R;t[41]!==f||t[42]!==m||t[43]!==g||t[44]!==d?(R=g&&(0,B.jsx)(`div`,{className:`ml-7 mt-2 rounded-lg border border-edge bg-surface-inset p-3`,children:m?(0,B.jsx)(`p`,{role:`alert`,className:`text-sm text-fg-muted`,children:m}):f?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`pre`,{className:`max-h-60 overflow-auto whitespace-pre-wrap break-words text-xs text-fg`,children:f.text}),f.truncated&&(0,B.jsx)(`p`,{className:`mt-2 text-xs text-fg-muted`,children:d.previewTruncated})]}):(0,B.jsx)(A,{sections:1})}),t[41]=f,t[42]=m,t[43]=g,t[44]=d,t[45]=R):R=t[45];let z;return t[46]!==k||t[47]!==j||t[48]!==M||t[49]!==L||t[50]!==R?(z=(0,B.jsxs)(`div`,{className:`min-w-0 rounded-lg px-2 py-1.5 hover:bg-surface-hover/60`,children:[k,j,M,L,R]}),t[46]=k,t[47]=j,t[48]=M,t[49]=L,t[50]=R,t[51]=z):z=t[51],z}function Q(e){return!e}function Te(e){return e.language}function $(){let e=c(o(e=>e.language)).imports,[t,n]=(0,N.useState)(),[r,i]=(0,N.useState)(),[a,s]=(0,N.useState)(!1),[l,u]=(0,N.useState)(),[d,f]=(0,N.useState)(new Set),[p,m]=(0,N.useState)(!1),[h,g]=(0,N.useState)(),[v,b]=(0,N.useState)(),[x,S]=(0,N.useState)(``),[C,w]=(0,N.useState)(``),[T,E]=(0,N.useState)(0),O=(0,N.useRef)(null),k=(0,N.useRef)(!1);(0,N.useEffect)(()=>{let e=new AbortController;return S(``),P(`/sources`,void 0,e.signal).then(e=>n(e.sources)).catch(t=>{e.signal.aborted||S(t instanceof Error?t.message:String(t))}),()=>{e.abort(),O.current?.abort()}},[T]);let F=(t?.flatMap(e=>e.lastImport?.status===`running`?[e.lastImport.id]:[])??[]).join(`,`);(0,N.useEffect)(()=>{if(!F)return;let e=new AbortController,t,n=async()=>{for(let t of F.split(`,`))try{let n=await P(`/runs/${t}`,void 0,e.signal);e.signal.aborted||I(n)}catch{}e.signal.aborted||(t=setTimeout(()=>void n(),3e3))};return t=setTimeout(()=>void n(),1500),()=>{e.abort(),clearTimeout(t)}},[F]);function I(e){n(t=>t?.map(t=>t.id===e.source?{...t,lastImport:e}:t)),e.status!==`running`&&g(t=>t?.requestId===e.id?void 0:t)}async function L(e){O.current?.abort();let t=new AbortController;O.current=t,i(e),s(!0),u(void 0),f(new Set),w(``),b(void 0),g(void 0);try{let n=await P(`/sources/${e}/scan`,{},t.signal);t.signal.aborted||(u(n),f(new Set(n.candidates.filter(e=>!e.parentId&&e.suggested).map(e=>e.id))))}catch(e){t.signal.aborted||w(e instanceof Error?e.message:String(e))}}async function R(){if(!l||!d.size||k.current)return;k.current=!0,m(!0),w(``),S(``);let e=h??{inventoryId:l.id,candidateIds:[...d],requestId:crypto.randomUUID(),retryOf:v};g(e);try{I(await P(`/runs`,e)),s(!1)}catch(e){let t=e instanceof Error?e.message:String(e);w(t),S(t);let n=e.body?.code;n&&[`invalid_input`,`inventory_stale`,`invalid_selection`,`missing_parent`,`not_found`,`conflict`].includes(n)&&g(void 0)}finally{k.current=!1,m(!1)}}async function z(e){i(e.source),s(!0),u(void 0),f(new Set),w(``),g(void 0),b(e.id),O.current?.abort();let t=new AbortController;O.current=t;try{let n=await P(`/inventories/${e.inventoryId}`,void 0,t.signal);if(t.signal.aborted)return;let r=new Set(e.items.filter(e=>e.status===`failed`).map(e=>e.candidateId));n.candidates.forEach(e=>{r.has(e.id)&&e.parentId&&r.add(e.parentId)}),u({...n,candidates:n.candidates.filter(e=>r.has(e.id))}),f(r)}catch(e){t.signal.aborted||w(e instanceof Error?e.message:String(e))}}let H=t?.filter(e=>e.detected||e.lastImport);return(0,B.jsxs)(j,{children:[(0,B.jsx)(M,{title:e.title,subtitle:e.subtitle}),x&&(0,B.jsxs)(`div`,{role:`alert`,className:`rounded-xl bg-danger-soft p-4 text-sm text-danger`,children:[(0,B.jsx)(`p`,{children:x}),!t&&(0,B.jsx)(D,{variant:`ghost`,onClick:()=>E(e=>e+1),children:e.retry})]}),!t&&!x&&(0,B.jsx)(A,{sections:1}),t&&(0,B.jsxs)(`section`,{className:`space-y-4`,children:[(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h2`,{className:`text-base font-medium text-fg`,children:e.apps}),(0,B.jsx)(`p`,{className:`mt-1 text-sm text-fg-muted`,children:e.detectedHint})]}),H?.length?(0,B.jsx)(`div`,{className:`flex flex-col gap-1 overflow-hidden rounded-xl bg-surface-hover/20 p-1 [&>*]:rounded-lg [&>*]:bg-surface-base/45`,children:H.map(t=>(0,B.jsxs)(`article`,{className:`space-y-3 p-5 sm:p-6`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-surface-hover text-fg`,children:(0,B.jsx)(y,{className:`h-5 w-5`})}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`h3`,{className:`font-medium text-fg`,children:t.name}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:e.includes})]}),(0,B.jsx)(D,{variant:`secondary`,disabled:p||!t.detected||!!h&&r!==t.id||t.lastImport?.status===`running`,onClick:()=>{S(``),h&&r===t.id?s(!0):L(t.id)},children:p&&r===t.id?e.importing:h&&r===t.id?e.retry:t.lastImport?e.importAgain:e.import})]}),t.lastImport&&(0,B.jsxs)(`div`,{role:`status`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,B.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(_,{className:`h-4 w-4 shrink-0`}),t.lastImport.status===`running`?e.importing:t.lastImport.issues.length?e.finishedWithIssues:e.finished]}),(0,B.jsxs)(`p`,{children:[e.summary.replace(`{skills}`,String(t.lastImport.skills)).replace(`{context}`,String(t.lastImport.context)).replace(`{projects}`,String(t.lastImport.projects)),t.lastImport.skipped>0&&` · ${e.skipped.replace(`{count}`,String(t.lastImport.skipped))}`]}),!!t.lastImport.issues.length&&(0,B.jsxs)(`details`,{children:[(0,B.jsxs)(`summary`,{className:`cursor-pointer text-fg`,children:[e.details,` (`,t.lastImport.issues.length,`)`]}),(0,B.jsx)(`ul`,{className:`mt-2 space-y-2`,children:t.lastImport.issues.map((e,t)=>(0,B.jsxs)(`li`,{className:`break-words`,children:[(0,B.jsx)(`span`,{className:`font-medium`,children:e.name}),` — `,e.reason]},t))})]}),t.lastImport.status===`partial`&&(0,B.jsx)(D,{variant:`ghost`,disabled:p||!!h,onClick:()=>void z(t.lastImport),children:e.retryFailed})]})]},t.id))}):(0,B.jsxs)(`div`,{className:`rounded-xl bg-surface-hover/20 p-6 text-sm text-fg-muted`,children:[(0,B.jsx)(`p`,{children:e.empty}),(0,B.jsx)(D,{variant:`ghost`,className:`mt-3`,onClick:()=>E(e=>e+1),children:e.refresh})]}),(0,B.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:e.footnote})]}),(0,B.jsx)(V,{open:a,sourceName:t?.find(e=>e.id===r)?.name??``,inventory:l,selected:d,onSelected:f,busy:p,locked:p||!!h,error:C,onClose:()=>{O.current?.abort(),s(!1)},onRefresh:()=>{r&&L(r)},onSubmit:()=>void R()})]})}export{$ as ImportsPage};