@hiai-gg/docsmint 0.7.4 → 0.7.6

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 (246) hide show
  1. package/README.md +2 -2
  2. package/dist/backend/index.js +130026 -129609
  3. package/dist/backend-account-runtime-cleanup.js +2 -0
  4. package/dist/backend-api-key-facade.js +2 -0
  5. package/dist/backend-pipeline-cancellation.js +2 -0
  6. package/dist/frontend/CategoryDialog-D_xFSWGh.js +630 -0
  7. package/dist/frontend/ConfirmDialog-Cfq3D2Di.js +221 -0
  8. package/dist/frontend/{CreateSnapshotDialog-CojnWChs.js → CreateSnapshotDialog-BHODxZWK.js} +53 -52
  9. package/dist/frontend/{DatePicker-7FAbIOGg.js → DatePicker-CZyCnQ1q.js} +62 -64
  10. package/dist/frontend/{DeleteDialog-BIlqRb1u.js → DeleteDialog-DaJOO6SB.js} +17 -17
  11. package/dist/frontend/FolderNode-C_91NlEO.js +307 -0
  12. package/dist/frontend/{FolderTreeSelector-BMB1MS9N.js → FolderTreeSelector-DqO-f0nt.js} +7 -7
  13. package/dist/frontend/HiAiEditor-DtUGbQg6.js +3160 -0
  14. package/dist/frontend/{HiaiDocsExtensionProvider-OSn96BBw.js → HiaiDocsExtensionProvider-Cc3yzW5I.js} +5 -3
  15. package/dist/frontend/{Icon-Db-o32_E.js → Icon-y7xxAIC6.js} +1 -1
  16. package/dist/frontend/{SettingsDialog-DatuxOVX.js → SettingsDialog-BlIZqk2-.js} +169 -158
  17. package/dist/frontend/ShareDialog-CmX-VoJ9.js +273 -0
  18. package/dist/frontend/Sidebar-BVGm5BRR.js +2147 -0
  19. package/dist/frontend/{TagCreateDialog-Ch21yuWV.js → TagCreateDialog-BlGz4O9Z.js} +45 -36
  20. package/dist/frontend/action_cancel-Cuxsznzz.js +5 -0
  21. package/dist/frontend/action_close-BJm_52wm.js +5 -0
  22. package/dist/frontend/action_create-CtBQrRuj.js +5 -0
  23. package/dist/frontend/action_delete-BXBIzvn0.js +5 -0
  24. package/dist/frontend/action_go_to-VmK5jmEk.js +5 -0
  25. package/dist/frontend/action_loading-BLCGJVA9.js +5 -0
  26. package/dist/frontend/action_save-BRN2Z_GP.js +5 -0
  27. package/dist/frontend/api/attachments.js +1 -1
  28. package/dist/frontend/api/categories.js +1 -1
  29. package/dist/frontend/api/folders.js +1 -1
  30. package/dist/frontend/api/settings.js +1 -1
  31. package/dist/frontend/api/share.js +1 -1
  32. package/dist/frontend/api/tags.js +1 -1
  33. package/dist/frontend/app-shell.js +8 -8
  34. package/dist/frontend/{attachments-B2aH3hXF.js → attachments-C225gTA7.js} +2 -2
  35. package/dist/frontend/{auth-client-CnDZwPfp.js → auth-client-DCMne8vd.js} +630 -615
  36. package/dist/frontend/{bundle-mjs-DllmqUxV.js → bundle-mjs-CZ3g1Uzr.js} +35 -42
  37. package/dist/frontend/{camera-CzCxBOpc.js → camera-BI-BtnIm.js} +2 -2
  38. package/dist/frontend/{categories-X7gK8azc.js → categories-Bjcc41We.js} +1 -1
  39. package/dist/frontend/categories_update_error-4aSI8PTr.js +5 -0
  40. package/dist/frontend/{check-BIi-Ghti.js → check-sdTlLwi9.js} +2 -2
  41. package/dist/frontend/{chevron-down-C2ft7XUV.js → chevron-down-DlBnIE7Y.js} +2 -2
  42. package/dist/frontend/{circle-check-BrqfiQH1.js → circle-check-hWC-HeKu.js} +2 -2
  43. package/dist/frontend/{clock-Dz86E4Kz.js → clock-C4FHq-9q.js} +2 -2
  44. package/dist/frontend/collaboration.js +208 -103
  45. package/dist/frontend/components/category-dialog.js +1 -1
  46. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  47. package/dist/frontend/components/delete-dialog.js +1 -1
  48. package/dist/frontend/components/editor/compact-editor.js +1 -1
  49. package/dist/frontend/components/editor/document-editor.js +1 -1
  50. package/dist/frontend/components/editor/document-title.js +3 -2
  51. package/dist/frontend/components/editor/docx-serializer.js +140 -125
  52. package/dist/frontend/components/editor/extensions.js +1 -1
  53. package/dist/frontend/components/editor/markdown-toggle.js +9 -9
  54. package/dist/frontend/components/editor/markdown.js +1 -1
  55. package/dist/frontend/components/folder-node.js +1 -1
  56. package/dist/frontend/components/folder-tree-selector.js +1 -1
  57. package/dist/frontend/components/save-as-dialog.js +34 -25
  58. package/dist/frontend/components/settings.js +1 -1
  59. package/dist/frontend/components/share-dialog.js +1 -1
  60. package/dist/frontend/components/sidebar.js +1 -1
  61. package/dist/frontend/components/tag-create-dialog.js +1 -1
  62. package/dist/frontend/components/version-history.js +181 -176
  63. package/dist/frontend/{confirm-dialog-8T6vsWL7.js → confirm-dialog-BFTxjLv-.js} +46 -37
  64. package/dist/frontend/{copy-CvCh4ZVt.js → copy-4H99lwAQ.js} +2 -2
  65. package/dist/frontend/dashboard.js +462 -456
  66. package/dist/frontend/{db-Bo1t_76T.js → db-CbFRFAm2.js} +40 -38
  67. package/dist/frontend/{dialog-CiSwD-_v.js → dialog-tHAH3-9M.js} +10 -10
  68. package/dist/frontend/dist-Cg1BpNS7.js +2262 -0
  69. package/dist/frontend/dndzone-BrakBHwm.js +1375 -0
  70. package/dist/frontend/doc_title_label-DS9jSIh2.js +5 -0
  71. package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +5 -0
  72. package/dist/frontend/{document-drop-coordinator-C4xHMjwC.js → document-drop-coordinator-Da7HcXgv.js} +1 -1
  73. package/dist/frontend/document-drop-coordinator.js +1 -1
  74. package/dist/frontend/{dropdown-menu-Bi5Iipwf.js → dropdown-menu-AJYeFPHu.js} +145 -145
  75. package/dist/frontend/{editor-content-sanitizer-CC_A8aaI.js → editor-content-sanitizer-CWjqiz0T.js} +30 -30
  76. package/dist/frontend/{editorExtensions--HusV819.js → editorExtensions-B-mKiWqq.js} +5085 -6220
  77. package/dist/frontend/editor_markdown_placeholder-BIWDUF1E.js +5 -0
  78. package/dist/frontend/error_dismiss-Dx_JbRjs.js +5 -0
  79. package/dist/frontend/error_generic-CzNtmBT4.js +5 -0
  80. package/dist/frontend/extension.js +1 -1
  81. package/dist/frontend/{folder-Cx60MRpi.js → folder-BAX6qBYy.js} +3 -3
  82. package/dist/frontend/{folders-ONG03Dkv.js → folders-CC0UWkZH.js} +3 -3
  83. package/dist/frontend/folders_rename-BJo4Gipq.js +5 -0
  84. package/dist/frontend/i18n.js +1007 -6
  85. package/dist/frontend/{identity-Ynrglr5i.js → identity-O4lAuchv.js} +2 -2
  86. package/dist/frontend/{input-N9dNSOWF.js → input-CrlYAH2S.js} +2 -2
  87. package/dist/frontend/{label-CK72_fw8.js → label-B0syEfns.js} +2 -2
  88. package/dist/frontend/{markdown-H6QB53zu.js → markdown-CMij27Gg.js} +1 -1
  89. package/dist/frontend/offline/identity.js +1 -1
  90. package/dist/frontend/{floating-layer-anchor-BGIndLY-.js → popper-layer-force-mount-BAYjg6Pp.js} +2476 -2564
  91. package/dist/frontend/{rolldown-runtime-CWhphoD1.js → rolldown-runtime-DArdT4gl.js} +2 -2
  92. package/dist/frontend/{rotate-ccw-ta4NosZ0.js → rotate-ccw-DtZDfSK3.js} +2 -2
  93. package/dist/frontend/runtime-CwWSo6c9.js +128 -0
  94. package/dist/frontend/{schemas-DwtKylCJ.js → schemas-CdPhcuru.js} +6 -7
  95. package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +5 -0
  96. package/dist/frontend/search.js +237 -265
  97. package/dist/frontend/search_title-DOC0cPlQ.js +5 -0
  98. package/dist/frontend/{select-value-BD1DToYs.js → select-value-D9VqY5n5.js} +575 -572
  99. package/dist/frontend/{settings-BR48ihB4.js → settings-DJW8JkdF.js} +1 -1
  100. package/dist/frontend/{share-D7JtkC85.js → share-D5yo0JOh.js} +2 -1
  101. package/dist/frontend/share_copied-DPxVzfWh.js +5 -0
  102. package/dist/frontend/share_toggle_password-DdxfIjj1.js +5 -0
  103. package/dist/frontend/shared-document.js +1 -1
  104. package/dist/frontend/sidebar_uncategorized-qJ2_Aonf.js +5 -0
  105. package/dist/frontend/sort_relevance-DwYX5MO9.js +5 -0
  106. package/dist/frontend/{tag-DhVFHMcV.js → tag-ChpMfbfa.js} +3 -3
  107. package/dist/frontend/{tags-BdCaMGfj.js → tags-CzPNUoFw.js} +1 -1
  108. package/dist/frontend/tags_load_error-BKjA1pI0.js +5 -0
  109. package/dist/frontend/tags_new-BiNAJ9Bx.js +5 -0
  110. package/dist/frontend/{textarea-pl_fDBre.js → textarea-l_gRXsrH.js} +2 -2
  111. package/dist/frontend/theme.js +1 -1
  112. package/dist/frontend/{theme.svelte-DG3RS7wv.js → theme.svelte-Bzitjfh9.js} +2 -2
  113. package/dist/frontend/theme_system-BBNUhYKh.js +5 -0
  114. package/dist/frontend/utils/dndzone.js +1 -1
  115. package/dist/frontend/utils-B4LKx7VS.js +7 -0
  116. package/dist/frontend/{utils-DrfHTcei.js → utils-BovMJHdA.js} +2 -2
  117. package/dist/frontend/utils.js +1 -1
  118. package/dist/frontend/version_create_snapshot-3bu-0qzH.js +5 -0
  119. package/dist/frontend/version_restored_from-dVRN3Zdk.js +5 -0
  120. package/dist/frontend/version_snapshot_label_placeholder-DrMikux0.js +5 -0
  121. package/dist/frontend/weekday_we-C5H_M-df.js +5 -0
  122. package/dist/frontend/{x-cfdlccjs.js → x-B2ifxSH7.js} +2 -2
  123. package/dist/frontend/{awareness-snQ3RD9f.js → yjs-VUcKqaKW.js} +835 -944
  124. package/dist/frontend-ssr/api/attachments.js +92 -1
  125. package/dist/frontend-ssr/api/categories.js +1 -1
  126. package/dist/frontend-ssr/api/documents.js +1 -1
  127. package/dist/frontend-ssr/api/folders.js +1 -1
  128. package/dist/frontend-ssr/api/settings.js +1 -1
  129. package/dist/frontend-ssr/api/share.js +30 -1
  130. package/dist/frontend-ssr/api/tags.js +1 -1
  131. package/dist/frontend-ssr/app-shell.js +25 -18
  132. package/dist/frontend-ssr/assets/{CategoryDialog-DsXe54EF.js → CategoryDialog-C41IBNWG.js} +26 -35
  133. package/dist/frontend-ssr/assets/ConfirmDialog-CWO0HBaS.js +424 -0
  134. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-D3-PjXVr.js → CreateSnapshotDialog-CECCRK0d.js} +12 -18
  135. package/dist/frontend-ssr/assets/{DatePicker-C9suIA1S.js → DatePicker-TZVeMZ2S.js} +32 -20
  136. package/dist/frontend-ssr/assets/{DeleteDialog-DxtMrS1O.js → DeleteDialog-BVnmzR2e.js} +5 -7
  137. package/dist/frontend-ssr/assets/{FolderNode-ChD10Elp.js → FolderNode-CClgk8BL.js} +7 -7
  138. package/dist/frontend-ssr/assets/{FolderTreeSelector-Bxi8EqMm.js → FolderTreeSelector-DnrKCYtl.js} +17 -20
  139. package/dist/frontend-ssr/assets/{HiAiEditor-2X3Uyg1B.js → HiAiEditor-_-m7MJDd.js} +330 -254
  140. package/dist/frontend-ssr/assets/{Icon-QwirKi9Y.js → Icon-Clqe8D8X.js} +28 -16
  141. package/dist/frontend-ssr/assets/{SettingsDialog-DDy0hN8x.js → SettingsDialog-BdvHRAxF.js} +45 -49
  142. package/dist/frontend-ssr/assets/{ShareDialog-BwW_wF4G.js → ShareDialog-DHPbSHZg.js} +5 -6
  143. package/dist/frontend-ssr/assets/{Sidebar-Dy-5gXOf.js → Sidebar-B3Saqn0O.js} +90 -93
  144. package/dist/frontend-ssr/assets/{TagCreateDialog-BPzgOaX8.js → TagCreateDialog-CPg-nG0D.js} +14 -14
  145. package/dist/frontend-ssr/assets/action_cancel-OVgQDP5Q.js +22 -0
  146. package/dist/frontend-ssr/assets/action_close-DagDyMXk.js +22 -0
  147. package/dist/frontend-ssr/assets/action_create-hqJWjyqh.js +22 -0
  148. package/dist/frontend-ssr/assets/action_delete-B1-16jSo.js +22 -0
  149. package/dist/frontend-ssr/assets/action_go_to-DQScgw7P.js +22 -0
  150. package/dist/frontend-ssr/assets/action_save-Bx7vlLZI.js +22 -0
  151. package/dist/frontend-ssr/assets/{api-keys-DIbclwj5.js → api-keys-CHOrbU-Q.js} +1 -1
  152. package/dist/frontend-ssr/assets/{auth-client-CojKIzqy.js → auth-client-DzkZlSQ8.js} +295 -261
  153. package/dist/frontend-ssr/assets/{camera-D6s20LDi.js → camera-Dwwtgvfn.js} +10 -6
  154. package/dist/frontend-ssr/assets/{categories-av9xjeg5.js → categories-C_dxFoHi.js} +1 -1
  155. package/dist/frontend-ssr/assets/categories_update_error-DkKgsqdD.js +202 -0
  156. package/dist/frontend-ssr/assets/{chevron-down-CvqKATjM.js → chevron-down-C6BTPJFz.js} +10 -6
  157. package/dist/frontend-ssr/assets/{chevron-right-DKD7WXjz.js → chevron-right-CseGE1qd.js} +10 -6
  158. package/dist/frontend-ssr/assets/{circle-check-CPS9dKEo.js → circle-check-BRhWPZo1.js} +10 -6
  159. package/dist/frontend-ssr/assets/{client-DZMkDkDn.js → client-rfwQYYHY.js} +4 -2
  160. package/dist/frontend-ssr/assets/{clock-CzsE58TH.js → clock-DpP_Y7WP.js} +10 -6
  161. package/dist/frontend-ssr/assets/{confirm-dialog-wYC07DPx.js → confirm-dialog-DeOR0SnQ.js} +44 -31
  162. package/dist/frontend-ssr/assets/{copy-DkkCPkBL.js → copy-DRMKiRZ0.js} +10 -6
  163. package/dist/frontend-ssr/assets/{db-BhwJPEkn.js → db-CUkQe9AU.js} +1 -1
  164. package/dist/frontend-ssr/assets/{dialog-ClcuF7nD.js → dialog--tDgDGw9.js} +12 -15
  165. package/dist/frontend-ssr/assets/{dndzone-DMvTO_Jz.js → dndzone-WtNaDxoQ.js} +309 -77
  166. package/dist/frontend-ssr/assets/doc_title_label-Ev_ltlh3.js +22 -0
  167. package/dist/frontend-ssr/assets/doc_title_placeholder-DSHpUb7w.js +22 -0
  168. package/dist/frontend-ssr/assets/{documents-CZ-wQohy.js → documents-CEuA1V6N.js} +1 -1
  169. package/dist/frontend-ssr/assets/{dropdown-menu-BKMGVNLL.js → dropdown-menu-CdEpn_LT.js} +74 -75
  170. package/dist/frontend-ssr/assets/editor_markdown_placeholder-BpezdkOr.js +42 -0
  171. package/dist/frontend-ssr/assets/editor_toolbar_undo-CKJAOqv2.js +562 -0
  172. package/dist/frontend-ssr/assets/error_generic-DTK0kwxT.js +42 -0
  173. package/dist/frontend-ssr/assets/{folder-DYIE-XPP.js → folder-DszunwKc.js} +10 -6
  174. package/dist/frontend-ssr/assets/{folders-BX30gHv6.js → folders-BOXeb9hz.js} +3 -2
  175. package/dist/frontend-ssr/assets/folders_rename-DvciOb6K.js +122 -0
  176. package/dist/frontend-ssr/assets/{identity-DcMMBKWg.js → identity-veXobEfE.js} +2 -2
  177. package/dist/frontend-ssr/assets/{input-DcDR8L8M.js → input-BlAj7LzC.js} +2 -2
  178. package/dist/frontend-ssr/assets/{label-Cz0_svJx.js → label-BRToaMg9.js} +2 -2
  179. package/dist/frontend-ssr/assets/{loader-circle-CIEWGyfP.js → loader-circle-BpRVrMZg.js} +10 -6
  180. package/dist/frontend-ssr/assets/{floating-layer-anchor-BoiiIEiK.js → popper-layer-force-mount-Djnq7l7a.js} +3684 -3674
  181. package/dist/frontend-ssr/assets/{rotate-ccw-dJSqPyTd.js → rotate-ccw-1GOD_yt_.js} +10 -6
  182. package/dist/frontend-ssr/assets/runtime-O78RzRqx.js +559 -0
  183. package/dist/frontend-ssr/assets/scroll_to_top_aria-BN4ZfOnM.js +22 -0
  184. package/dist/frontend-ssr/assets/search_title-CKUsQDT0.js +22 -0
  185. package/dist/frontend-ssr/assets/search_toggle_filters-hS9rvQhC.js +282 -0
  186. package/dist/frontend-ssr/assets/{select-value-CaDktvDW.js → select-value-BCWSsoTd.js} +204 -218
  187. package/dist/frontend-ssr/assets/{settings-Mp8EuFSn.js → settings-DwAcLGM1.js} +2 -2
  188. package/dist/frontend-ssr/assets/share_copied-BxU9rjXG.js +602 -0
  189. package/dist/frontend-ssr/assets/share_toggle_password-C6OmroqR.js +202 -0
  190. package/dist/frontend-ssr/assets/sidebar_uncategorized-Dx-LTd5w.js +102 -0
  191. package/dist/frontend-ssr/assets/{tag-BmiVU_Ej.js → tag-DFh6nF9R.js} +19 -11
  192. package/dist/frontend-ssr/assets/{tag-store.svelte-BM1lUI_P.js → tag-store.svelte-QRysvGKe.js} +1 -1
  193. package/dist/frontend-ssr/assets/{tags-BQsI_6OW.js → tags-BBCoFYro.js} +1 -1
  194. package/dist/frontend-ssr/assets/tags_load_error-CPrc6Gzs.js +362 -0
  195. package/dist/frontend-ssr/assets/tags_new-VmMr9v2V.js +62 -0
  196. package/dist/frontend-ssr/assets/{textarea-BGrjPOgU.js → textarea-BuszTo9i.js} +2 -2
  197. package/dist/frontend-ssr/assets/{theme.svelte-CN3BUhJG.js → theme.svelte-shZrSxz8.js} +1 -1
  198. package/dist/frontend-ssr/assets/theme_system-BucaNntV.js +362 -0
  199. package/dist/frontend-ssr/assets/{utils-Cg_R05dR.js → utils-BK35BJKQ.js} +1 -1
  200. package/dist/frontend-ssr/assets/version_create_snapshot-COHzwjle.js +22 -0
  201. package/dist/frontend-ssr/assets/version_restored_from-CertjFDl.js +242 -0
  202. package/dist/frontend-ssr/assets/version_snapshot_label_placeholder-Cy_rMCij.js +222 -0
  203. package/dist/frontend-ssr/assets/weekday_we-DrI3U230.js +422 -0
  204. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  205. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  207. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  208. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  209. package/dist/frontend-ssr/components/editor/document-title.js +2 -1
  210. package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
  211. package/dist/frontend-ssr/components/folder-node.js +1 -1
  212. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  213. package/dist/frontend-ssr/components/save-as-dialog.js +12 -14
  214. package/dist/frontend-ssr/components/settings.js +1 -1
  215. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  216. package/dist/frontend-ssr/components/sidebar.js +1 -1
  217. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  218. package/dist/frontend-ssr/components/version-history.js +47 -51
  219. package/dist/frontend-ssr/dashboard.js +243 -232
  220. package/dist/frontend-ssr/i18n.js +6698 -1
  221. package/dist/frontend-ssr/offline/identity.js +1 -1
  222. package/dist/frontend-ssr/search.js +28 -31
  223. package/dist/frontend-ssr/shared-document.js +1 -2
  224. package/dist/frontend-ssr/theme.js +1 -1
  225. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  226. package/dist/lifecycle-runtime.js +4437 -2019
  227. package/dist/mcp-cli.js +1 -1
  228. package/dist/mcp-server.js +1 -1
  229. package/package.json +7 -7
  230. package/packages/cli/src/index.ts +1 -1
  231. package/packages/db/src/schema.ts +2 -0
  232. package/server.json +2 -2
  233. package/dist/frontend/CategoryDialog-bQKMpVFD.js +0 -631
  234. package/dist/frontend/ConfirmDialog-DF7kgkyq.js +0 -139
  235. package/dist/frontend/FolderNode-Cf443LBa.js +0 -298
  236. package/dist/frontend/HiAiEditor-CMZ-eL8s.js +0 -2992
  237. package/dist/frontend/ShareDialog-Bwz2y3Le.js +0 -281
  238. package/dist/frontend/Sidebar-C_t5RrOJ.js +0 -2101
  239. package/dist/frontend/dist-DQa_OHOa.js +0 -268
  240. package/dist/frontend/dndzone-BzsOINtP.js +0 -1199
  241. package/dist/frontend/messages-DTRe4U2V.js +0 -1093
  242. package/dist/frontend/utils-CMQRlxbx.js +0 -7
  243. package/dist/frontend-ssr/assets/ConfirmDialog-DrH653ua.js +0 -136
  244. package/dist/frontend-ssr/assets/attachments-BdkOp8ha.js +0 -93
  245. package/dist/frontend-ssr/assets/messages-B1TjVIH8.js +0 -11147
  246. package/dist/frontend-ssr/assets/share-qTqvd6Lu.js +0 -30
@@ -1,28 +1,30 @@
1
- import { t as e } from "./Icon-Db-o32_E.js";
2
- import { n as t } from "./dist-DQa_OHOa.js";
3
- import { $n as n, B as r, Bt as i, Cr as a, Er as o, Sr as s, Tr as c, _r as l, br as u, cr as d, dr as f, fr as p, gr as m, hr as h, lr as g, mr as _, or as v, pr as y, sr as b, ur as x, vr as S, wr as C, xr as w, yr as T } from "./messages-DTRe4U2V.js";
1
+ import { t as e } from "./Icon-y7xxAIC6.js";
2
+ import { n as t } from "./dist-Cg1BpNS7.js";
3
+ import { t as n } from "./action_close-BJm_52wm.js";
4
+ import { S as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, x as C, y as w } from "./theme_system-BBNUhYKh.js";
5
+ import { t as T } from "./error_generic-CzNtmBT4.js";
4
6
  import { a as E, n as ee, t as te } from "./route-context-DYQlUfzL.js";
5
- import { t as D } from "./utils-CMQRlxbx.js";
6
- import { a as ne, i as re, n as ie, o as ae, r as oe, s as O, t as se } from "./dialog-CiSwD-_v.js";
7
- import { t as k } from "./input-N9dNSOWF.js";
8
- import { t as A } from "./label-CK72_fw8.js";
9
- import { r as ce, t as le } from "./auth-client-CnDZwPfp.js";
10
- import { a as ue, r as de } from "./settings-BR48ihB4.js";
7
+ import { t as D } from "./utils-B4LKx7VS.js";
8
+ import { a as ne, i as re, n as ie, o as ae, r as oe, s as O, t as se } from "./dialog-tHAH3-9M.js";
9
+ import { t as k } from "./input-CrlYAH2S.js";
10
+ import { t as A } from "./label-B0syEfns.js";
11
+ import { r as ce, t as le } from "./auth-client-DCMne8vd.js";
12
+ import { a as ue, r as de } from "./settings-DJW8JkdF.js";
11
13
  import { a as j, i as M, n as N, o as fe, s as P, t as F } from "./api-keys-DIwAdYkg.js";
12
- import { i as I } from "./categories-X7gK8azc.js";
14
+ import { i as I } from "./categories-Bjcc41We.js";
13
15
  import { t as pe } from "./context-D0zPFXZ4.js";
14
16
  import { t as me } from "./resolve-BG4HgzpN.js";
15
- import { n as L, t as R } from "./db-Bo1t_76T.js";
16
- import { a as z, t as B } from "./identity-Ynrglr5i.js";
17
+ import { n as L, t as R } from "./db-CbFRFAm2.js";
18
+ import { a as z, t as B } from "./identity-O4lAuchv.js";
17
19
  import { t as V } from "./editor-preferences.svelte-Bt_A9k7n.js";
18
20
  import { n as H, r as U, t as W } from "./search-preferences-B1GdbdUc.js";
19
- import { t as he } from "./theme.svelte-DG3RS7wv.js";
21
+ import { t as he } from "./theme.svelte-Bzitjfh9.js";
20
22
  import "svelte/internal/disclose-version";
21
23
  import * as G from "svelte/internal/client";
22
24
  import { onMount as ge } from "svelte";
23
25
  import "svelte/internal/flags/legacy";
24
26
  import { page as _e } from "$app/state";
25
- //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/log-out.svelte
27
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/log-out.svelte
26
28
  function ve(t, n) {
27
29
  let r = G.legacy_rest_props(n, [
28
30
  "children",
@@ -46,7 +48,7 @@ function ve(t, n) {
46
48
  }));
47
49
  }
48
50
  //#endregion
49
- //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/save.svelte
51
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/save.svelte
50
52
  function ye(t, n) {
51
53
  let r = G.legacy_rest_props(n, [
52
54
  "children",
@@ -70,7 +72,7 @@ function ye(t, n) {
70
72
  }));
71
73
  }
72
74
  //#endregion
73
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
75
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
74
76
  var K = G.from_html("<div><!></div>");
75
77
  function be(e, t) {
76
78
  G.push(t, !0);
@@ -86,7 +88,7 @@ function be(e, t) {
86
88
  }, [() => G.clsx(D("w-full", t.class))]), G.append(e, r), G.pop();
87
89
  }
88
90
  //#endregion
89
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-content.svelte
91
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-content.svelte
90
92
  var xe = G.from_html("<div role=\"tabpanel\"><!></div>");
91
93
  function q(e, t) {
92
94
  G.push(t, !0);
@@ -104,7 +106,7 @@ function q(e, t) {
104
106
  }), G.append(e, n), G.pop();
105
107
  }
106
108
  //#endregion
107
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-list.svelte
109
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-list.svelte
108
110
  var Se = G.from_html("<div role=\"tablist\"><!></div>");
109
111
  function Ce(e, t) {
110
112
  G.push(t, !0);
@@ -117,7 +119,7 @@ function Ce(e, t) {
117
119
  }), G.reset(n), G.template_effect((e) => G.set_class(n, 1, e), [() => G.clsx(D("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground", t.class))]), G.append(e, n), G.pop();
118
120
  }
119
121
  //#endregion
120
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-trigger.svelte
122
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-trigger.svelte
121
123
  var we = G.from_html("<button type=\"button\" role=\"tab\"><!></button>");
122
124
  function J(e, t) {
123
125
  G.push(t, !0);
@@ -194,7 +196,9 @@ function Me(e, t) {
194
196
  set value(e) {
195
197
  G.set(i, e, !0);
196
198
  }
197
- }), O(G.sibling(x, 2), {
199
+ });
200
+ var S = G.sibling(x, 2);
201
+ O(S, {
198
202
  onclick: g,
199
203
  get disabled() {
200
204
  return G.get(c);
@@ -206,9 +210,9 @@ function Me(e, t) {
206
210
  },
207
211
  $$slots: { default: !0 }
208
212
  }), G.reset(b);
209
- var S = G.sibling(b, 2), C = (e) => {
210
- var t = Te(), n = G.sibling(G.child(t), 2), r = G.child(n, !0);
211
- G.reset(n), O(G.sibling(n, 2), {
213
+ var C = G.sibling(b, 2), w = (e) => {
214
+ var t = Te(), n = G.sibling(G.child(t), 2), r = G.only_child(n, !0), i = G.sibling(n, 2);
215
+ O(i, {
212
216
  class: "mt-2",
213
217
  size: "sm",
214
218
  variant: "outline",
@@ -221,26 +225,26 @@ function Me(e, t) {
221
225
  $$slots: { default: !0 }
222
226
  }), G.reset(t), G.template_effect(() => G.set_text(r, G.get(u))), G.append(e, t);
223
227
  };
224
- G.if(S, (e) => {
225
- G.get(u) && e(C);
228
+ G.if(C, (e) => {
229
+ G.get(u) && e(w);
226
230
  });
227
- var w = G.sibling(S, 2), T = (e) => {
228
- var t = Y(), n = G.child(t, !0);
229
- G.reset(t), G.template_effect(() => G.set_text(n, G.get(l))), G.append(e, t);
231
+ var T = G.sibling(C, 2), ee = (e) => {
232
+ var t = Y(), n = G.only_child(t, !0);
233
+ G.template_effect(() => G.set_text(n, G.get(l))), G.append(e, t);
230
234
  };
231
- G.if(w, (e) => {
232
- G.get(l) && e(T);
235
+ G.if(T, (e) => {
236
+ G.get(l) && e(ee);
233
237
  });
234
- var ee = G.sibling(w, 2), te = (e) => {
238
+ var te = G.sibling(T, 2), D = (e) => {
235
239
  var t = Ee();
236
240
  G.append(e, t);
237
- }, D = (e) => {
241
+ }, ne = (e) => {
238
242
  var t = Ae(), n = G.child(t), r = G.sibling(G.child(n), 2);
239
243
  G.each(r, 17, () => G.get(f), (e) => e.id, (e, t) => {
240
- var n = De(), r = G.child(n), i = G.child(r), a = G.child(i, !0);
241
- G.reset(i);
242
- var o = G.sibling(i), s = G.child(o);
243
- G.reset(o), G.reset(r), O(G.sibling(r, 2), {
244
+ var n = De(), r = G.child(n), i = G.child(r), a = G.only_child(i, !0), o = G.sibling(i), s = G.only_child(o);
245
+ G.reset(r);
246
+ var l = G.sibling(r, 2);
247
+ O(l, {
244
248
  size: "sm",
245
249
  variant: "destructive",
246
250
  onclick: () => _(G.get(t).id),
@@ -262,10 +266,8 @@ function Me(e, t) {
262
266
  }), G.reset(n);
263
267
  var i = G.sibling(n, 2), o = G.sibling(G.child(i), 2);
264
268
  G.each(o, 17, () => G.get(p), (e) => e.id, (e, t) => {
265
- var n = X(), r = G.child(n), i = G.child(r), o = G.child(i);
266
- G.reset(i);
267
- var s = G.sibling(i), l = G.child(s);
268
- G.reset(s), G.reset(r);
269
+ var n = X(), r = G.child(n), i = G.child(r), o = G.only_child(i), s = G.sibling(i), l = G.only_child(s);
270
+ G.reset(r);
269
271
  var u = G.sibling(r, 2), d = G.child(u);
270
272
  {
271
273
  let e = G.derived(() => !G.get(t).recoverable && !G.get(a)[G.get(t).id]);
@@ -284,7 +286,8 @@ function Me(e, t) {
284
286
  $$slots: { default: !0 }
285
287
  });
286
288
  }
287
- O(G.sibling(d, 2), {
289
+ var f = G.sibling(d, 2);
290
+ O(f, {
288
291
  size: "sm",
289
292
  variant: "destructive",
290
293
  onclick: () => _(G.get(t).id),
@@ -305,8 +308,8 @@ function Me(e, t) {
305
308
  G.append(e, t);
306
309
  }), G.reset(i), G.reset(t), G.append(e, t);
307
310
  };
308
- G.if(ee, (e) => {
309
- G.get(s) ? e(te) : e(D, -1);
311
+ G.if(te, (e) => {
312
+ G.get(s) ? e(D) : e(ne, -1);
310
313
  }), G.reset(y), G.append(e, y), G.pop();
311
314
  }
312
315
  //#endregion
@@ -388,23 +391,23 @@ function Je(e, E) {
388
391
  newEmail: G.get(F).trim(),
389
392
  callbackURL: "/"
390
393
  });
391
- if (e) throw Error(e.message ?? v());
394
+ if (e) throw Error(e.message ?? T());
392
395
  G.set(L, G.get(F).trim(), !0);
393
396
  }
394
397
  G.set(R, "saved"), setTimeout(() => {
395
398
  G.set(R, "idle");
396
399
  }, 2e3);
397
400
  } catch (e) {
398
- G.set(R, "error"), G.set(z, e instanceof Error ? e.message : r(), !0);
401
+ G.set(R, "error"), G.set(z, e instanceof Error ? e.message : u(), !0);
399
402
  }
400
403
  }
401
404
  async function Se() {
402
405
  if (G.set(K, ""), G.get(H) !== G.get(U)) {
403
- G.set(W, "error"), G.set(K, g(), !0);
406
+ G.set(W, "error"), G.set(K, w(), !0);
404
407
  return;
405
408
  }
406
409
  if (G.get(H).length < 8) {
407
- G.set(W, "error"), G.set(K, d(), !0);
410
+ G.set(W, "error"), G.set(K, o(), !0);
408
411
  return;
409
412
  }
410
413
  G.set(W, "saving");
@@ -415,14 +418,14 @@ function Je(e, E) {
415
418
  revokeOtherSessions: !0
416
419
  });
417
420
  if (e) {
418
- G.set(W, "error"), G.set(K, e.message ?? v(), !0);
421
+ G.set(W, "error"), G.set(K, e.message ?? T(), !0);
419
422
  return;
420
423
  }
421
424
  G.set(W, "saved"), G.set(B, ""), G.set(H, ""), G.set(U, ""), setTimeout(() => {
422
425
  G.set(W, "idle");
423
426
  }, 2e3);
424
427
  } catch (e) {
425
- G.set(W, "error"), G.set(K, e instanceof Error ? e.message : v(), !0);
428
+ G.set(W, "error"), G.set(K, e instanceof Error ? e.message : T(), !0);
426
429
  }
427
430
  }
428
431
  function we(e, t) {
@@ -434,17 +437,17 @@ function Je(e, E) {
434
437
  let Te = [
435
438
  {
436
439
  value: "light",
437
- label: w(),
440
+ label: h(),
438
441
  key: "light"
439
442
  },
440
443
  {
441
444
  value: "dark",
442
- label: u(),
445
+ label: v(),
443
446
  key: "dark"
444
447
  },
445
448
  {
446
449
  value: "system",
447
- label: T(),
450
+ label: b(),
448
451
  key: "system"
449
452
  }
450
453
  ], Y = G.state(!1), Ee = te();
@@ -460,21 +463,21 @@ function Je(e, E) {
460
463
  D(!1);
461
464
  }
462
465
  var X = G.comment(), ke = G.first_child(X);
463
- G.component(ke, () => ae, (e, r) => {
464
- r(e, {
466
+ G.component(ke, () => ae, (e, o) => {
467
+ o(e, {
465
468
  get open() {
466
469
  return D();
467
470
  },
468
471
  set open(e) {
469
472
  D(e);
470
473
  },
471
- children: (e, r) => {
472
- var u = G.comment(), d = G.first_child(u);
473
- G.component(d, () => ne, (e, r) => {
474
- r(e, {
475
- children: (e, r) => {
476
- var u = qe(), d = G.first_child(u);
477
- G.component(d, () => ie, (e, t) => {
474
+ children: (e, o) => {
475
+ var u = G.comment(), h = G.first_child(u);
476
+ G.component(h, () => ne, (e, o) => {
477
+ o(e, {
478
+ children: (e, o) => {
479
+ var u = qe(), h = G.first_child(u);
480
+ G.component(h, () => ie, (e, t) => {
478
481
  t(e, {
479
482
  children: (e, t) => {
480
483
  var n = Re(), r = G.first_child(n);
@@ -483,7 +486,7 @@ function Je(e, E) {
483
486
  children: (e, t) => {
484
487
  G.next();
485
488
  var n = G.text();
486
- G.template_effect((e) => G.set_text(n, e), [() => o()]), G.append(e, n);
489
+ G.template_effect((e) => G.set_text(n, e), [() => f()]), G.append(e, n);
487
490
  },
488
491
  $$slots: { default: !0 }
489
492
  });
@@ -494,7 +497,7 @@ function Je(e, E) {
494
497
  children: (e, t) => {
495
498
  G.next();
496
499
  var n = G.text();
497
- G.template_effect((e) => G.set_text(n, e), [() => C()]), G.append(e, n);
500
+ G.template_effect((e) => G.set_text(n, e), [() => _()]), G.append(e, n);
498
501
  },
499
502
  $$slots: { default: !0 }
500
503
  });
@@ -503,8 +506,8 @@ function Je(e, E) {
503
506
  $$slots: { default: !0 }
504
507
  });
505
508
  });
506
- var g = G.sibling(d, 2);
507
- G.component(g, () => be, (e, n) => {
509
+ var v = G.sibling(h, 2);
510
+ G.component(v, () => be, (e, n) => {
508
511
  n(e, {
509
512
  class: "w-full",
510
513
  get value() {
@@ -532,7 +535,7 @@ function Je(e, E) {
532
535
  children: (e, t) => {
533
536
  G.next();
534
537
  var n = G.text();
535
- G.template_effect((e) => G.set_text(n, e), [() => c()]), G.append(e, n);
538
+ G.template_effect((e) => G.set_text(n, e), [() => s()]), G.append(e, n);
536
539
  },
537
540
  $$slots: { default: !0 }
538
541
  });
@@ -551,7 +554,7 @@ function Je(e, E) {
551
554
  children: (e, t) => {
552
555
  G.next();
553
556
  var n = G.text();
554
- G.template_effect((e) => G.set_text(n, e), [() => _()]), G.append(e, n);
557
+ G.template_effect((e) => G.set_text(n, e), [() => m()]), G.append(e, n);
555
558
  },
556
559
  $$slots: { default: !0 }
557
560
  });
@@ -595,8 +598,8 @@ function Je(e, E) {
595
598
  });
596
599
  });
597
600
  }
598
- var s = G.sibling(o, 2);
599
- G.each(s, 17, () => G.get(N), (e) => e.id, (e, t) => {
601
+ var c = G.sibling(o, 2);
602
+ G.each(c, 17, () => G.get(N), (e) => e.id, (e, t) => {
600
603
  var n = G.comment(), r = G.first_child(n);
601
604
  {
602
605
  let e = G.derived(() => G.get(j) === G.get(t).id);
@@ -632,16 +635,18 @@ function Je(e, E) {
632
635
  return G.get(j);
633
636
  },
634
637
  children: (e, n) => {
635
- var r = He(), a = G.child(r), o = G.child(a);
636
- A(o, {
638
+ var r = He(), i = G.child(r), a = G.child(i);
639
+ A(a, {
637
640
  for: "settings-name",
638
641
  children: (e, t) => {
639
642
  G.next();
640
643
  var n = G.text();
641
- G.template_effect((e) => G.set_text(n, e), [() => m()]), G.append(e, n);
644
+ G.template_effect((e) => G.set_text(n, e), [() => p()]), G.append(e, n);
642
645
  },
643
646
  $$slots: { default: !0 }
644
- }), k(G.sibling(o, 2), {
647
+ });
648
+ var o = G.sibling(a, 2);
649
+ k(o, {
645
650
  id: "settings-name",
646
651
  type: "text",
647
652
  name: "name",
@@ -652,18 +657,18 @@ function Je(e, E) {
652
657
  set value(e) {
653
658
  G.set(P, e, !0);
654
659
  }
655
- }), G.reset(a);
656
- var s = G.sibling(a, 2), c = G.child(s);
657
- A(c, {
660
+ }), G.reset(i);
661
+ var s = G.sibling(i, 2), l = G.child(s);
662
+ A(l, {
658
663
  for: "settings-email",
659
664
  children: (e, t) => {
660
665
  G.next();
661
666
  var n = G.text();
662
- G.template_effect((e) => G.set_text(n, e), [() => S()]), G.append(e, n);
667
+ G.template_effect((e) => G.set_text(n, e), [() => c()]), G.append(e, n);
663
668
  },
664
669
  $$slots: { default: !0 }
665
670
  });
666
- var u = G.sibling(c, 2);
671
+ var u = G.sibling(l, 2);
667
672
  k(u, {
668
673
  id: "settings-email",
669
674
  type: "email",
@@ -676,68 +681,66 @@ function Je(e, E) {
676
681
  G.set(F, e, !0);
677
682
  }
678
683
  });
679
- var d = G.sibling(u, 2), f = G.child(d, !0);
680
- G.reset(d);
681
- var p = G.sibling(d, 2), g = (e) => {
684
+ var d = G.sibling(u, 2), f = G.only_child(d, !0), m = G.sibling(d, 2), h = (e) => {
682
685
  var t = Be();
683
686
  G.append(e, t);
684
687
  };
685
- G.if(p, (e) => {
686
- G.get(L) && e(g);
688
+ G.if(m, (e) => {
689
+ G.get(L) && e(h);
687
690
  }), G.reset(s);
688
- var _ = G.sibling(s, 2), v = G.sibling(G.child(_), 2), y = G.child(v), b = G.sibling(G.child(y), 2);
689
- let x;
690
- G.reset(y);
691
- var C = G.sibling(y, 2);
692
- G.each(C, 17, () => G.get(fe), (e) => e.id, (e, t) => {
691
+ var _ = G.sibling(s, 2), v = G.sibling(G.child(_), 2), b = G.child(v), S = G.sibling(G.child(b), 2);
692
+ let C;
693
+ G.reset(b);
694
+ var w = G.sibling(b, 2);
695
+ G.each(w, 17, () => G.get(fe), (e) => e.id, (e, t) => {
693
696
  let n = G.derived(() => G.get(t).component);
694
697
  var r = G.comment(), i = G.first_child(r);
695
698
  G.component(i, () => G.get(n), (e, t) => {
696
699
  t(e, {});
697
700
  }), G.append(e, r);
698
701
  }), G.reset(v), G.reset(_);
699
- var w = G.sibling(_, 2), T = (e) => {
700
- var t = Ve(), n = G.child(t, !0);
701
- G.reset(t), G.template_effect(() => G.set_text(n, G.get(z))), G.append(e, t);
702
+ var T = G.sibling(_, 2), E = (e) => {
703
+ var t = Ve(), n = G.only_child(t, !0);
704
+ G.template_effect(() => G.set_text(n, G.get(z))), G.append(e, t);
702
705
  };
703
- G.if(w, (e) => {
704
- G.get(z) && e(T);
706
+ G.if(T, (e) => {
707
+ G.get(z) && e(E);
705
708
  });
706
- var E = G.sibling(w, 2);
709
+ var ee = G.sibling(T, 2);
707
710
  {
708
711
  let e = G.derived(() => G.get(R) === "saving");
709
- O(E, {
712
+ O(ee, {
710
713
  type: "submit",
711
714
  get disabled() {
712
715
  return G.get(e);
713
716
  },
714
717
  class: "w-full sm:w-auto",
715
718
  children: (e, n) => {
716
- var r = $(), a = G.first_child(r), o = (e) => {
719
+ var r = $(), i = G.first_child(r), a = (e) => {
717
720
  t(e, { class: "mr-2 size-4 animate-spin" });
718
- }, s = (e) => {
721
+ }, o = (e) => {
719
722
  ye(e, { class: "mr-2 size-4" });
720
723
  };
721
- G.if(a, (e) => {
722
- G.get(R) === "saving" ? e(o) : e(s, -1);
724
+ G.if(i, (e) => {
725
+ G.get(R) === "saving" ? e(a) : e(o, -1);
723
726
  });
724
- var c = G.sibling(a);
725
- G.template_effect((e) => G.set_text(c, ` ${e ?? ""}`), [() => G.get(R) === "saved" ? i() : h()]), G.append(e, r);
727
+ var s = G.sibling(i);
728
+ G.template_effect((e) => G.set_text(s, ` ${e ?? ""}`), [() => G.get(R) === "saved" ? g() : y()]), G.append(e, r);
726
729
  },
727
730
  $$slots: { default: !0 }
728
731
  });
729
732
  }
730
733
  G.reset(r), G.template_effect((e) => {
731
- G.set_text(f, e), x = G.set_class(b, 1, "preference-switch svelte-1eaqpj", null, x, { enabled: Q.graphSearchEnabled }), G.set_attribute(b, "aria-checked", Q.graphSearchEnabled);
732
- }, [() => l()]), G.event("submit", r, (e) => {
734
+ G.set_text(f, e), C = G.set_class(S, 1, "preference-switch svelte-1eaqpj", null, C, { enabled: Q.graphSearchEnabled }), G.set_attribute(S, "aria-checked", Q.graphSearchEnabled);
735
+ }, [() => x()]), G.event("submit", r, (e) => {
733
736
  e.preventDefault(), xe();
734
- }), G.delegated("click", b, () => Q.update({ graphSearchEnabled: !Q.graphSearchEnabled })), G.append(e, r);
737
+ }), G.delegated("click", S, () => Q.update({ graphSearchEnabled: !Q.graphSearchEnabled })), G.append(e, r);
735
738
  },
736
739
  $$slots: { default: !0 }
737
740
  });
738
741
  });
739
- var d = G.sibling(u, 2);
740
- G.component(d, () => q, (e, n) => {
742
+ var f = G.sibling(u, 2);
743
+ G.component(f, () => q, (e, n) => {
741
744
  n(e, {
742
745
  value: "password",
743
746
  get currentValue() {
@@ -750,10 +753,12 @@ function Je(e, E) {
750
753
  children: (e, t) => {
751
754
  G.next();
752
755
  var n = G.text();
753
- G.template_effect((e) => G.set_text(n, e), [() => x()]), G.append(e, n);
756
+ G.template_effect((e) => G.set_text(n, e), [() => C()]), G.append(e, n);
754
757
  },
755
758
  $$slots: { default: !0 }
756
- }), k(G.sibling(o, 2), {
759
+ });
760
+ var s = G.sibling(o, 2);
761
+ k(s, {
757
762
  id: "settings-current-password",
758
763
  type: "password",
759
764
  name: "current-password",
@@ -765,16 +770,18 @@ function Je(e, E) {
765
770
  G.set(B, e, !0);
766
771
  }
767
772
  }), G.reset(a);
768
- var s = G.sibling(a, 2), c = G.child(s);
769
- A(c, {
773
+ var c = G.sibling(a, 2), l = G.child(c);
774
+ A(l, {
770
775
  for: "settings-new-password",
771
776
  children: (e, t) => {
772
777
  G.next();
773
778
  var n = G.text();
774
- G.template_effect((e) => G.set_text(n, e), [() => y()]), G.append(e, n);
779
+ G.template_effect((e) => G.set_text(n, e), [() => d()]), G.append(e, n);
775
780
  },
776
781
  $$slots: { default: !0 }
777
- }), k(G.sibling(c, 2), {
782
+ });
783
+ var u = G.sibling(l, 2);
784
+ k(u, {
778
785
  id: "settings-new-password",
779
786
  type: "password",
780
787
  name: "new-password",
@@ -785,17 +792,19 @@ function Je(e, E) {
785
792
  set value(e) {
786
793
  G.set(H, e, !0);
787
794
  }
788
- }), G.reset(s);
789
- var l = G.sibling(s, 2), u = G.child(l);
790
- A(u, {
795
+ }), G.reset(c);
796
+ var f = G.sibling(c, 2), p = G.child(f);
797
+ A(p, {
791
798
  for: "settings-confirm-password",
792
799
  children: (e, t) => {
793
800
  G.next();
794
801
  var n = G.text();
795
- G.template_effect((e) => G.set_text(n, e), [() => p()]), G.append(e, n);
802
+ G.template_effect((e) => G.set_text(n, e), [() => i()]), G.append(e, n);
796
803
  },
797
804
  $$slots: { default: !0 }
798
- }), k(G.sibling(u, 2), {
805
+ });
806
+ var m = G.sibling(p, 2);
807
+ k(m, {
799
808
  id: "settings-confirm-password",
800
809
  type: "password",
801
810
  name: "confirm-password",
@@ -806,32 +815,32 @@ function Je(e, E) {
806
815
  set value(e) {
807
816
  G.set(U, e, !0);
808
817
  }
809
- }), G.reset(l);
810
- var d = G.sibling(l, 2), m = (e) => {
811
- var t = Ve(), n = G.child(t, !0);
812
- G.reset(t), G.template_effect(() => G.set_text(n, G.get(K))), G.append(e, t);
818
+ }), G.reset(f);
819
+ var h = G.sibling(f, 2), _ = (e) => {
820
+ var t = Ve(), n = G.only_child(t, !0);
821
+ G.template_effect(() => G.set_text(n, G.get(K))), G.append(e, t);
813
822
  };
814
- G.if(d, (e) => {
815
- G.get(K) && e(m);
823
+ G.if(h, (e) => {
824
+ G.get(K) && e(_);
816
825
  });
817
- var h = G.sibling(d, 2);
826
+ var v = G.sibling(h, 2);
818
827
  {
819
828
  let e = G.derived(() => G.get(W) === "saving");
820
- O(h, {
829
+ O(v, {
821
830
  type: "submit",
822
831
  get disabled() {
823
832
  return G.get(e);
824
833
  },
825
834
  class: "w-full sm:w-auto",
826
835
  children: (e, n) => {
827
- var r = $(), a = G.first_child(r), o = (e) => {
836
+ var r = $(), i = G.first_child(r), a = (e) => {
828
837
  t(e, { class: "mr-2 size-4 animate-spin" });
829
838
  };
830
- G.if(a, (e) => {
831
- G.get(W) === "saving" && e(o);
839
+ G.if(i, (e) => {
840
+ G.get(W) === "saving" && e(a);
832
841
  });
833
- var s = G.sibling(a);
834
- G.template_effect((e) => G.set_text(s, ` ${e ?? ""}`), [() => G.get(W) === "saved" ? i() : f()]), G.append(e, r);
842
+ var o = G.sibling(i);
843
+ G.template_effect((e) => G.set_text(o, ` ${e ?? ""}`), [() => G.get(W) === "saved" ? g() : S()]), G.append(e, r);
835
844
  },
836
845
  $$slots: { default: !0 }
837
846
  });
@@ -843,8 +852,8 @@ function Je(e, E) {
843
852
  $$slots: { default: !0 }
844
853
  });
845
854
  });
846
- var g = G.sibling(d, 2);
847
- G.component(g, () => q, (e, t) => {
855
+ var h = G.sibling(f, 2);
856
+ G.component(h, () => q, (e, t) => {
848
857
  t(e, {
849
858
  value: "appearance",
850
859
  get currentValue() {
@@ -856,20 +865,20 @@ function Je(e, E) {
856
865
  children: (e, t) => {
857
866
  G.next();
858
867
  var n = G.text();
859
- G.template_effect((e) => G.set_text(n, e), [() => s()]), G.append(e, n);
868
+ G.template_effect((e) => G.set_text(n, e), [() => a()]), G.append(e, n);
860
869
  },
861
870
  $$slots: { default: !0 }
862
871
  });
863
- var o = G.sibling(i, 2), c = G.child(o, !0);
864
- G.reset(o), G.reset(r);
865
- var l = G.sibling(r, 2);
866
- G.each(l, 21, () => Te, (e) => e.key, (e, t) => {
867
- var n = We(), r = G.child(n, !0);
868
- G.reset(n), G.template_effect((e) => {
872
+ var o = G.sibling(i, 2), s = G.only_child(o, !0);
873
+ G.reset(r);
874
+ var c = G.sibling(r, 2);
875
+ G.each(c, 21, () => Te, (e) => e.key, (e, t) => {
876
+ var n = We(), r = G.only_child(n, !0);
877
+ G.template_effect((e) => {
869
878
  G.set_class(n, 1, e, "svelte-1eaqpj"), G.set_text(r, G.get(t).label);
870
879
  }, [() => G.clsx(["rounded-md border px-3 py-2 text-sm font-medium transition-colors", he.value === G.get(t).value ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent hover:text-accent-foreground"].join(" "))]), G.delegated("click", n, (e) => we(G.get(t).value, e)), G.append(e, n);
871
- }), G.reset(l);
872
- var u = G.sibling(l, 2), d = G.sibling(G.child(u), 2), f = G.child(d), p = G.sibling(G.child(f), 2);
880
+ }), G.reset(c);
881
+ var u = G.sibling(c, 2), d = G.sibling(G.child(u), 2), f = G.child(d), p = G.sibling(G.child(f), 2);
873
882
  let m;
874
883
  G.reset(f);
875
884
  var h = G.sibling(f, 2), g = G.sibling(G.child(h), 2);
@@ -881,14 +890,14 @@ function Je(e, E) {
881
890
  var x = G.sibling(v, 2), S = G.sibling(G.child(x), 2);
882
891
  let C;
883
892
  G.reset(x), G.reset(d), G.reset(u), G.reset(n), G.template_effect((e) => {
884
- G.set_text(c, e), m = G.set_class(p, 1, "preference-switch svelte-1eaqpj", null, m, { enabled: V.showVisualMode }), G.set_attribute(p, "aria-checked", V.showVisualMode), p.disabled = !V.showMarkdownMode, _ = G.set_class(g, 1, "preference-switch svelte-1eaqpj", null, _, { enabled: V.showMarkdownMode }), G.set_attribute(g, "aria-checked", V.showMarkdownMode), g.disabled = !V.showVisualMode, b = G.set_class(y, 1, "preference-switch svelte-1eaqpj", null, b, { enabled: V.minimalToolbar }), G.set_attribute(y, "aria-checked", V.minimalToolbar), C = G.set_class(S, 1, "preference-switch svelte-1eaqpj", null, C, { enabled: V.showScrollToTop }), G.set_attribute(S, "aria-checked", V.showScrollToTop);
885
- }, [() => a()]), G.delegated("click", p, () => V.update({ showVisualMode: !V.showVisualMode })), G.delegated("click", g, () => V.update({ showMarkdownMode: !V.showMarkdownMode })), G.delegated("click", y, () => V.update({ minimalToolbar: !V.minimalToolbar })), G.delegated("click", S, () => V.update({ showScrollToTop: !V.showScrollToTop })), G.append(e, n);
893
+ G.set_text(s, e), m = G.set_class(p, 1, "preference-switch svelte-1eaqpj", null, m, { enabled: V.showVisualMode }), G.set_attribute(p, "aria-checked", V.showVisualMode), p.disabled = !V.showMarkdownMode, _ = G.set_class(g, 1, "preference-switch svelte-1eaqpj", null, _, { enabled: V.showMarkdownMode }), G.set_attribute(g, "aria-checked", V.showMarkdownMode), g.disabled = !V.showVisualMode, b = G.set_class(y, 1, "preference-switch svelte-1eaqpj", null, b, { enabled: V.minimalToolbar }), G.set_attribute(y, "aria-checked", V.minimalToolbar), C = G.set_class(S, 1, "preference-switch svelte-1eaqpj", null, C, { enabled: V.showScrollToTop }), G.set_attribute(S, "aria-checked", V.showScrollToTop);
894
+ }, [() => l()]), G.delegated("click", p, () => V.update({ showVisualMode: !V.showVisualMode })), G.delegated("click", g, () => V.update({ showMarkdownMode: !V.showMarkdownMode })), G.delegated("click", y, () => V.update({ minimalToolbar: !V.minimalToolbar })), G.delegated("click", S, () => V.update({ showScrollToTop: !V.showScrollToTop })), G.append(e, n);
886
895
  },
887
896
  $$slots: { default: !0 }
888
897
  });
889
898
  });
890
- var v = G.sibling(g, 2);
891
- G.component(v, () => q, (e, t) => {
899
+ var _ = G.sibling(h, 2);
900
+ G.component(_, () => q, (e, t) => {
892
901
  t(e, {
893
902
  value: "api",
894
903
  get currentValue() {
@@ -900,8 +909,8 @@ function Je(e, E) {
900
909
  $$slots: { default: !0 }
901
910
  });
902
911
  });
903
- var b = G.sibling(v, 2);
904
- G.each(b, 17, () => G.get(N), (e) => e.id, (e, t) => {
912
+ var v = G.sibling(_, 2);
913
+ G.each(v, 17, () => G.get(N), (e) => e.id, (e, t) => {
905
914
  var n = G.comment(), r = G.first_child(n);
906
915
  G.component(r, () => q, (e, n) => {
907
916
  n(e, {
@@ -926,12 +935,12 @@ function Je(e, E) {
926
935
  $$slots: { default: !0 }
927
936
  });
928
937
  });
929
- var v = G.sibling(g, 2);
930
- G.component(v, () => oe, (e, t) => {
938
+ var b = G.sibling(v, 2);
939
+ G.component(b, () => oe, (e, t) => {
931
940
  t(e, {
932
941
  class: "settings-dialog-footer gap-4 max-sm:flex-col max-sm:items-stretch",
933
942
  children: (e, t) => {
934
- var r = Re(), i = G.first_child(r), a = (e) => {
943
+ var i = Re(), a = G.first_child(i), o = (e) => {
935
944
  O(e, {
936
945
  id: "logout-button",
937
946
  variant: "ghost",
@@ -941,17 +950,19 @@ function Je(e, E) {
941
950
  },
942
951
  class: "mr-auto text-muted-foreground hover:text-destructive max-sm:mr-0",
943
952
  children: (e, t) => {
944
- var n = $(), r = G.first_child(n);
945
- ve(r, { class: "mr-2 size-4" });
946
- var i = G.sibling(r);
947
- G.template_effect((e) => G.set_text(i, ` ${e ?? ""}`), [() => G.get(Y) ? "…" : b()]), G.append(e, n);
953
+ var n = $(), i = G.first_child(n);
954
+ ve(i, { class: "mr-2 size-4" });
955
+ var a = G.sibling(i);
956
+ G.template_effect((e) => G.set_text(a, ` ${e ?? ""}`), [() => G.get(Y) ? "…" : r()]), G.append(e, n);
948
957
  },
949
958
  $$slots: { default: !0 }
950
959
  });
951
960
  };
952
- G.if(i, (e) => {
953
- G.get(j) === "profile" && e(a);
954
- }), O(G.sibling(i, 2), {
961
+ G.if(a, (e) => {
962
+ G.get(j) === "profile" && e(o);
963
+ });
964
+ var s = G.sibling(a, 2);
965
+ O(s, {
955
966
  variant: "outline",
956
967
  onclick: Oe,
957
968
  class: "w-full sm:w-auto",
@@ -961,7 +972,7 @@ function Je(e, E) {
961
972
  G.template_effect((e) => G.set_text(r, e), [() => n()]), G.append(e, r);
962
973
  },
963
974
  $$slots: { default: !0 }
964
- }), G.append(e, r);
975
+ }), G.append(e, i);
965
976
  },
966
977
  $$slots: { default: !0 }
967
978
  });