@hiai-gg/docsmint 0.3.7 → 0.3.8

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 (196) hide show
  1. package/backend/src/lib/logger.ts +45 -15
  2. package/dist/backend/index.js +238 -150
  3. package/dist/frontend/CategoryDialog-DphkZqIB.js +611 -0
  4. package/dist/frontend/ConfirmDialog-BLF3x_hr.js +214 -0
  5. package/dist/frontend/CreateSnapshotDialog-D5vPvFTL.js +216 -0
  6. package/dist/frontend/DatePicker-CLNTdvTk.js +259 -0
  7. package/dist/frontend/DeleteDialog-DxYFJivN.js +174 -0
  8. package/dist/frontend/FolderDialog-CRVZM2Oi.js +250 -0
  9. package/dist/frontend/FolderNode-C2zG7uii.js +298 -0
  10. package/dist/frontend/FolderTreeSelector-CyB8y2Sm.js +103 -0
  11. package/dist/frontend/Icon-CooFj4Ee.js +64 -0
  12. package/dist/frontend/SettingsDialog-DCM4-N6_.js +1016 -0
  13. package/dist/frontend/ShareDialog-DYu3RKQu.js +165 -0
  14. package/dist/frontend/TagCreateDialog-DXQs2bL9.js +260 -0
  15. package/dist/frontend/camera-iKXDOOWT.js +29 -0
  16. package/dist/frontend/check-D-UuvBuh.js +25 -0
  17. package/dist/frontend/chevron-down-CiPtYyFh.js +25 -0
  18. package/dist/frontend/circle-check-tSPE1V6t.js +29 -0
  19. package/dist/frontend/clock-DJHbHZb8.js +29 -0
  20. package/dist/frontend/{bundle-mjs-CP6Owz-8.js → clsx-C7bIvsDS.js} +16 -1
  21. package/dist/frontend/components/category-dialog.js +1 -1
  22. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  23. package/dist/frontend/components/delete-dialog.js +1 -1
  24. package/dist/frontend/components/editor/document-editor.js +1364 -1353
  25. package/dist/frontend/components/editor/document-title.js +25 -25
  26. package/dist/frontend/components/editor/markdown-toggle.js +45 -45
  27. package/dist/frontend/components/folder-node.js +1 -1
  28. package/dist/frontend/components/folder-tree-selector.js +1 -1
  29. package/dist/frontend/components/save-as-dialog.js +169 -151
  30. package/dist/frontend/components/settings.js +1 -1
  31. package/dist/frontend/components/share-dialog.js +1 -1
  32. package/dist/frontend/components/sidebar.js +1161 -1153
  33. package/dist/frontend/components/tag-create-dialog.js +1 -1
  34. package/dist/frontend/components/version-history.js +188 -187
  35. package/dist/frontend/copy-GppwRMjX.js +32 -0
  36. package/dist/frontend/dashboard.js +1188 -1156
  37. package/dist/frontend/dialog-D6NxYVmy.js +213 -0
  38. package/dist/frontend/doc-tabs.js +2 -2
  39. package/dist/frontend/ellipsis-vertical-P9MHvCps.js +530 -0
  40. package/dist/frontend/extension.js +8 -8
  41. package/dist/frontend/{floating-layer-anchor-C51M4l6v.js → floating-layer-anchor-CPwucTfd.js} +1414 -1412
  42. package/dist/frontend/folder-DeWhnD7O.js +45 -0
  43. package/dist/frontend/folder-refresh.js +1 -1
  44. package/dist/frontend/input-B5Rak-5G.js +23 -0
  45. package/dist/frontend/keyboard.js +1 -1
  46. package/dist/frontend/{keyboard.svelte-D7H8DihC.js → keyboard.svelte-CApmX0vl.js} +53 -53
  47. package/dist/frontend/label-CW9rxoAb.js +30 -0
  48. package/dist/frontend/{loader-circle-Bk-WFz9g.js → loader-circle-BA6aLO71.js} +86 -85
  49. package/dist/frontend/rotate-ccw-B4Q7brmV.js +25 -0
  50. package/dist/frontend/search.js +680 -654
  51. package/dist/frontend/select-value-sF86Geyh.js +1446 -0
  52. package/dist/frontend/shared-document.js +94 -94
  53. package/dist/frontend/subfolders-refresh-store.svelte-B2dKVmgz.js +65 -0
  54. package/dist/frontend/tag-HxRazVN_.js +54 -0
  55. package/dist/frontend/tag-store.svelte-CqrUXo0o.js +29 -0
  56. package/dist/frontend/textarea-i1720bE7.js +23 -0
  57. package/dist/frontend/theme.js +1 -1
  58. package/dist/frontend/theme.svelte-DKfCy12k.js +49 -0
  59. package/dist/frontend/{utils-C0OW2678.js → utils-CffiyuTo.js} +2 -3
  60. package/dist/frontend/{utils-D8kmM3ub.js → utils-hzdMVeCv.js} +2 -3
  61. package/dist/frontend/utils.js +1 -1
  62. package/dist/frontend/x-CzBsnJ2x.js +25 -0
  63. package/dist/frontend-ssr/api/attachments.js +2 -0
  64. package/dist/frontend-ssr/api/categories.js +2 -0
  65. package/dist/frontend-ssr/api/documents.js +2 -0
  66. package/dist/frontend-ssr/api/folders.js +2 -0
  67. package/dist/frontend-ssr/api/settings.js +2 -0
  68. package/dist/frontend-ssr/api/share.js +2 -0
  69. package/dist/frontend-ssr/api/tags.js +2 -0
  70. package/dist/frontend-ssr/assets/CategoryDialog-C2xaZKHq.js +584 -0
  71. package/dist/frontend-ssr/assets/ConfirmDialog-DjMFKc0V.js +420 -0
  72. package/dist/frontend-ssr/assets/CreateSnapshotDialog-BRw1xJW1.js +214 -0
  73. package/dist/frontend-ssr/assets/DatePicker-DnXniwlZ.js +312 -0
  74. package/dist/frontend-ssr/assets/DeleteDialog-BCfZy3Zn.js +154 -0
  75. package/dist/frontend-ssr/assets/FolderDialog-Dq7I2cKZ.js +429 -0
  76. package/dist/frontend-ssr/assets/FolderNode-DRfBfpft.js +171 -0
  77. package/dist/frontend-ssr/assets/FolderTreeSelector-DZNZ2oI6.js +147 -0
  78. package/dist/frontend-ssr/assets/Icon-B0Zqppjo.js +231 -0
  79. package/dist/frontend-ssr/assets/SettingsDialog-CX8Noa8A.js +1107 -0
  80. package/dist/frontend-ssr/assets/ShareDialog-Cge49ZdJ.js +54 -0
  81. package/dist/frontend-ssr/assets/TagCreateDialog-EAChgBF-.js +264 -0
  82. package/dist/frontend-ssr/assets/api-keys-DFqX39MT.js +35 -0
  83. package/dist/frontend-ssr/assets/attachments-CWBxE3Vz.js +85 -0
  84. package/dist/frontend-ssr/assets/auth-client-x26kqY8Z.js +1286 -0
  85. package/dist/frontend-ssr/assets/camera-CdxscTw-.js +84 -0
  86. package/dist/frontend-ssr/assets/categories-AOqgcsn4.js +75 -0
  87. package/dist/frontend-ssr/assets/chevron-down-CSSNGNh_.js +80 -0
  88. package/dist/frontend-ssr/assets/chevron-right-B4p7Sk6X.js +80 -0
  89. package/dist/frontend-ssr/assets/circle-check-CI1v4vYh.js +84 -0
  90. package/dist/frontend-ssr/assets/client-DZMkDkDn.js +129 -0
  91. package/dist/frontend-ssr/assets/clipboard-CXOaoz2W.js +30 -0
  92. package/dist/frontend-ssr/assets/clock-IL-eX2di.js +84 -0
  93. package/dist/frontend-ssr/assets/context-jz1GGEUi.js +45 -0
  94. package/dist/frontend-ssr/assets/copy-CjV57nGQ.js +87 -0
  95. package/dist/frontend-ssr/assets/db-CnxeO66n.js +65 -0
  96. package/dist/frontend-ssr/assets/dialog-BOV1u6zP.js +157 -0
  97. package/dist/frontend-ssr/assets/dndzone-DMvTO_Jz.js +2114 -0
  98. package/dist/frontend-ssr/assets/document-drop-coordinator-CEaYACsC.js +109 -0
  99. package/dist/frontend-ssr/assets/documents-BnOTRdTY.js +108 -0
  100. package/dist/frontend-ssr/assets/editorExtensions-DUzwndMy.js +186 -0
  101. package/dist/frontend-ssr/assets/ellipsis-vertical-C-0hgkZn.js +555 -0
  102. package/dist/frontend-ssr/assets/floating-layer-anchor-uzw9K8qN.js +6114 -0
  103. package/dist/frontend-ssr/assets/folder-DChhG7qN.js +80 -0
  104. package/dist/frontend-ssr/assets/folders-CTfbS24J.js +127 -0
  105. package/dist/frontend-ssr/assets/identity-B3uHoDtf.js +99 -0
  106. package/dist/frontend-ssr/assets/input-DezGsU3y.js +19 -0
  107. package/dist/frontend-ssr/assets/keyboard.svelte-BgF47N3L.js +174 -0
  108. package/dist/frontend-ssr/assets/label-Bj8-TfFN.js +21 -0
  109. package/dist/frontend-ssr/assets/loader-circle-DZsrZ-er.js +80 -0
  110. package/dist/frontend-ssr/assets/markdown-CjqvGi5W.js +20 -0
  111. package/dist/frontend-ssr/assets/messages-DhXqlcJI.js +11125 -0
  112. package/dist/frontend-ssr/assets/resolve-BqHozBXl.js +32 -0
  113. package/dist/frontend-ssr/assets/rotate-ccw-BlgWwaiq.js +80 -0
  114. package/dist/frontend-ssr/assets/select-value-DngdSmLI.js +1526 -0
  115. package/dist/frontend-ssr/assets/settings-E6qSAWM2.js +64 -0
  116. package/dist/frontend-ssr/assets/share-BTBJelxA.js +30 -0
  117. package/dist/frontend-ssr/assets/subfolders-refresh-store.svelte-DAh4gT16.js +77 -0
  118. package/dist/frontend-ssr/assets/tag-GZEuGWk1.js +166 -0
  119. package/dist/frontend-ssr/assets/tag-store.svelte-DPodKj6Z.js +21 -0
  120. package/dist/frontend-ssr/assets/tags-BId2wdYd.js +49 -0
  121. package/dist/frontend-ssr/assets/textarea-Dev-qSEc.js +21 -0
  122. package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +67 -0
  123. package/dist/frontend-ssr/assets/utils-DtlPPXpJ.js +9 -0
  124. package/dist/frontend-ssr/assets/utils-DvZnctjz.js +23 -0
  125. package/dist/frontend-ssr/collaboration.js +39 -0
  126. package/dist/frontend-ssr/components/category-dialog.js +2 -0
  127. package/dist/frontend-ssr/components/create-snapshot-dialog.js +2 -0
  128. package/dist/frontend-ssr/components/delete-dialog.js +2 -0
  129. package/dist/frontend-ssr/components/editor/document-editor.js +2499 -0
  130. package/dist/frontend-ssr/components/editor/document-title.js +11 -0
  131. package/dist/frontend-ssr/components/editor/docx-serializer.js +186 -0
  132. package/dist/frontend-ssr/components/editor/extensions.js +2 -0
  133. package/dist/frontend-ssr/components/editor/markdown-toggle.js +20 -0
  134. package/dist/frontend-ssr/components/editor/markdown.js +2 -0
  135. package/dist/frontend-ssr/components/folder-node.js +2 -0
  136. package/dist/frontend-ssr/components/folder-tree-selector.js +2 -0
  137. package/dist/frontend-ssr/components/save-as-dialog.js +280 -0
  138. package/dist/frontend-ssr/components/settings.js +2 -0
  139. package/dist/frontend-ssr/components/share-dialog.js +2 -0
  140. package/dist/frontend-ssr/components/sidebar.js +2033 -0
  141. package/dist/frontend-ssr/components/tag-create-dialog.js +2 -0
  142. package/dist/frontend-ssr/components/version-history.js +370 -0
  143. package/dist/frontend-ssr/dashboard.js +2542 -0
  144. package/dist/frontend-ssr/doc-tabs.js +23 -0
  145. package/dist/frontend-ssr/document-drop-coordinator.js +2 -0
  146. package/dist/frontend-ssr/extension.js +13 -0
  147. package/dist/frontend-ssr/folder-refresh.js +2 -0
  148. package/dist/frontend-ssr/i18n.js +10 -0
  149. package/dist/frontend-ssr/keyboard.js +2 -0
  150. package/dist/frontend-ssr/offline/identity.js +2 -0
  151. package/dist/frontend-ssr/search.js +332 -0
  152. package/dist/frontend-ssr/shared-document.js +273 -0
  153. package/dist/frontend-ssr/theme.js +9 -0
  154. package/dist/frontend-ssr/types.js +1 -0
  155. package/dist/frontend-ssr/utils/clipboard.js +2 -0
  156. package/dist/frontend-ssr/utils/dndzone.js +2 -0
  157. package/dist/frontend-ssr/utils.js +2 -0
  158. package/package.json +22 -1
  159. package/packages/cli/src/index.ts +1 -1
  160. package/packages/db/src/schema.ts +3 -0
  161. package/packages/mcp-server/src/index.ts +1 -1
  162. package/dist/frontend/CategoryDialog--rIE7FrH.js +0 -580
  163. package/dist/frontend/ConfirmDialog-Cpzyb55f.js +0 -212
  164. package/dist/frontend/CreateSnapshotDialog-CmkV-n2A.js +0 -216
  165. package/dist/frontend/DatePicker-Byynca7V.js +0 -257
  166. package/dist/frontend/DeleteDialog-ap6nOywZ.js +0 -174
  167. package/dist/frontend/FolderDialog-DmN_trV0.js +0 -247
  168. package/dist/frontend/FolderNode-C4B8a2fd.js +0 -317
  169. package/dist/frontend/FolderTreeSelector-D6ijiZTA.js +0 -100
  170. package/dist/frontend/Icon-DtNo0N1U.js +0 -64
  171. package/dist/frontend/SettingsDialog-2kTaTXAs.js +0 -992
  172. package/dist/frontend/ShareDialog-BBDGNF5n.js +0 -165
  173. package/dist/frontend/TagCreateDialog-DiLZnJo4.js +0 -258
  174. package/dist/frontend/camera-B7dAOd4s.js +0 -28
  175. package/dist/frontend/check-CDwRlG9T.js +0 -24
  176. package/dist/frontend/chevron-down-B7ZrjUmT.js +0 -24
  177. package/dist/frontend/circle-check-CDqeMB2d.js +0 -28
  178. package/dist/frontend/client-Bc5Fzx40.js +0 -2785
  179. package/dist/frontend/clock-Ck5Sn-Zl.js +0 -28
  180. package/dist/frontend/clsx-nmtDPO_P.js +0 -16
  181. package/dist/frontend/copy-CMAA6GP0.js +0 -31
  182. package/dist/frontend/dialog-BDkiG42a.js +0 -213
  183. package/dist/frontend/disclose-version-5I57E3LD.js +0 -3
  184. package/dist/frontend/ellipsis-vertical-BBuPldbW.js +0 -519
  185. package/dist/frontend/folder-TQjKY4yn.js +0 -44
  186. package/dist/frontend/index-client-jobkrWVL.js +0 -86
  187. package/dist/frontend/input-CBI6p4Xl.js +0 -23
  188. package/dist/frontend/label-C-GkhEp4.js +0 -30
  189. package/dist/frontend/rotate-ccw-CleZtJ5D.js +0 -24
  190. package/dist/frontend/select-value-CvrWRkXW.js +0 -1436
  191. package/dist/frontend/subfolders-refresh-store.svelte-BsheoQma.js +0 -65
  192. package/dist/frontend/tag-Dx3SmucJ.js +0 -53
  193. package/dist/frontend/tag-store.svelte-CIaF4sdZ.js +0 -29
  194. package/dist/frontend/textarea-Dfp78XlL.js +0 -23
  195. package/dist/frontend/theme.svelte-CROg1Hi5.js +0 -49
  196. package/dist/frontend/x-DaTdeDXv.js +0 -24
@@ -0,0 +1,45 @@
1
+ import { t as e } from "./Icon-CooFj4Ee.js";
2
+ import "svelte/internal/disclose-version";
3
+ import * as t from "svelte/internal/client";
4
+ import "svelte/internal/flags/legacy";
5
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/chevron-right.svelte
6
+ function n(n, r) {
7
+ let i = t.legacy_rest_props(r, [
8
+ "children",
9
+ "$$slots",
10
+ "$$events",
11
+ "$$legacy"
12
+ ]), a = [["path", { d: "m9 18 6-6-6-6" }]];
13
+ e(n, t.spread_props({ name: "chevron-right" }, () => i, {
14
+ get iconNode() {
15
+ return a;
16
+ },
17
+ children: (e, n) => {
18
+ var i = t.comment(), a = t.first_child(i);
19
+ t.slot(a, r, "default", {}, null), t.append(e, i);
20
+ },
21
+ $$slots: { default: !0 }
22
+ }));
23
+ }
24
+ //#endregion
25
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/folder.svelte
26
+ function r(n, r) {
27
+ let i = t.legacy_rest_props(r, [
28
+ "children",
29
+ "$$slots",
30
+ "$$events",
31
+ "$$legacy"
32
+ ]), a = [["path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]];
33
+ e(n, t.spread_props({ name: "folder" }, () => i, {
34
+ get iconNode() {
35
+ return a;
36
+ },
37
+ children: (e, n) => {
38
+ var i = t.comment(), a = t.first_child(i);
39
+ t.slot(a, r, "default", {}, null), t.append(e, i);
40
+ },
41
+ $$slots: { default: !0 }
42
+ }));
43
+ }
44
+ //#endregion
45
+ export { n, r as t };
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./subfolders-refresh-store.svelte-BsheoQma.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./subfolders-refresh-store.svelte-B2dKVmgz.js";
2
2
  export { f as acknowledgeDocumentPlacement, s as bumpSubfoldersRefresh, u as getDocumentFromRegistry, i as getDocumentPlacementNonce, e as getFolderFromRegistry, c as getGlobalFolderRefreshNonce, d as getLatestDocumentPlacement, t as getPendingDocumentPlacement, a as getSubfoldersRefresh, p as publishDocumentPlacement, n as refreshFolders, r as registerDocument, l as registerFolder, o as supersedePendingDocumentPlacement };
@@ -0,0 +1,23 @@
1
+ import { t as e } from "./utils-hzdMVeCv.js";
2
+ import "svelte/internal/disclose-version";
3
+ import * as t from "svelte/internal/client";
4
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/input/input.svelte
5
+ var n = /* @__PURE__ */ new Set([
6
+ "$$slots",
7
+ "$$events",
8
+ "$$legacy",
9
+ "ref",
10
+ "class",
11
+ "value"
12
+ ]), r = t.from_html("<input/>");
13
+ function i(i, a) {
14
+ t.push(a, !0);
15
+ let o = t.prop(a, "ref", 15, null), s = t.prop(a, "value", 15, ""), c = t.rest_props(a, n);
16
+ var l = r();
17
+ t.attribute_effect(l, (e) => ({
18
+ class: e,
19
+ ...c
20
+ }), [() => e("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", a.class)], void 0, void 0, void 0, !0), t.bind_this(l, (e) => o(e), () => o()), t.bind_value(l, s), t.append(i, l), t.pop();
21
+ }
22
+ //#endregion
23
+ export { i as t };
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./keyboard.svelte-D7H8DihC.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./keyboard.svelte-CApmX0vl.js";
2
2
  export { p as clearShortcuts, c as getIsQuickSearchOpen, d as getIsShortcutHelpOpen, a as getShortcut, e as getShortcutsByScope, l as handleKeyEvent, f as keyboardStore, t as normaliseKeys, o as registerDefaultShortcuts, m as registerShortcut, n as setQuickSearchOpen, r as setShortcutHelpOpen, u as toggleQuickSearch, s as toggleShortcutHelp, i as unregisterShortcut };
@@ -1,24 +1,24 @@
1
- import { V as e, at as t, rt as n, tt as r } from "./client-Bc5Fzx40.js";
1
+ import * as e from "svelte/internal/client";
2
2
  //#region src/lib/stores/keyboard.svelte.ts
3
- var i = t(!1), a = t(!1), o = r(/* @__PURE__ */ new Map()), s = [
3
+ var t = e.state(!1), n = e.state(!1), r = e.proxy(/* @__PURE__ */ new Map()), i = [
4
4
  "mod",
5
5
  "ctrl",
6
6
  "alt",
7
7
  "shift",
8
8
  "meta"
9
9
  ];
10
- function c(e) {
10
+ function a(e) {
11
11
  let t = e.split("+").map((e) => e.trim().toLowerCase()).filter(Boolean).map((e) => e === "cmd" || e === "meta" ? "mod" : e === "esc" ? "escape" : e === "slash" ? "/" : e === "question" ? "?" : e), n = [], r = "";
12
- for (let e of t) s.includes(e) ? n.includes(e) || n.push(e) : r = e;
13
- return n.sort((e, t) => s.indexOf(e) - s.indexOf(t)), [...n, r].filter(Boolean).join("+");
12
+ for (let e of t) i.includes(e) ? n.includes(e) || n.push(e) : r = e;
13
+ return n.sort((e, t) => i.indexOf(e) - i.indexOf(t)), [...n, r].filter(Boolean).join("+");
14
14
  }
15
- function l(e) {
15
+ function o(e) {
16
16
  if (!(e instanceof HTMLElement)) return !1;
17
17
  if (e.isContentEditable) return !0;
18
18
  let t = e.tagName;
19
19
  return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
20
20
  }
21
- function u(e, t) {
21
+ function s(e, t) {
22
22
  let n = t.split("+");
23
23
  if (n.length === 0) return !1;
24
24
  let r = n[n.length - 1];
@@ -32,72 +32,72 @@ function u(e, t) {
32
32
  let i = n.includes("mod"), a = n.includes("ctrl"), o = n.includes("alt"), s = n.includes("shift"), c = n.includes("meta"), l = i ? e.ctrlKey || e.metaKey : !e.ctrlKey && !e.metaKey, u = a === e.ctrlKey, d = o === e.altKey, f = s === e.shiftKey, p = c === e.metaKey;
33
33
  return l && u && d && f && p ? e.key.toLowerCase() === r : !1;
34
34
  }
35
- function d(e) {
35
+ function c(e) {
36
36
  if (!e.id) return;
37
37
  let t = {
38
38
  ...e,
39
- keys: c(e.keys),
39
+ keys: a(e.keys),
40
40
  scope: e.scope ?? "global",
41
41
  enabled: e.enabled ?? !0
42
42
  };
43
- o.set(e.id, t);
43
+ r.set(e.id, t);
44
44
  }
45
- function f(e) {
46
- o.delete(e);
45
+ function l(e) {
46
+ r.delete(e);
47
47
  }
48
- function p(e) {
49
- return o.get(e);
48
+ function u(e) {
49
+ return r.get(e);
50
50
  }
51
- function m(e) {
51
+ function d(e) {
52
52
  let t = [];
53
- for (let n of o.values()) (n.scope ?? "global") === e && t.push(n);
53
+ for (let n of r.values()) (n.scope ?? "global") === e && t.push(n);
54
54
  return t;
55
55
  }
56
- function h() {
57
- o.clear();
56
+ function f() {
57
+ r.clear();
58
58
  }
59
- function g() {
60
- n(i, !e(i));
59
+ function p() {
60
+ e.set(t, !e.get(t));
61
61
  }
62
- function _(e) {
63
- n(i, e, !0);
62
+ function m(n) {
63
+ e.set(t, n, !0);
64
64
  }
65
- function v() {
66
- n(a, !e(a));
65
+ function h() {
66
+ e.set(n, !e.get(n));
67
67
  }
68
- function y(e) {
69
- n(a, e, !0);
68
+ function g(t) {
69
+ e.set(n, t, !0);
70
70
  }
71
- var b = !1;
72
- function x() {
73
- b || (b = !0, d({
71
+ var _ = !1;
72
+ function v() {
73
+ _ || (_ = !0, c({
74
74
  id: "quick-search",
75
75
  keys: "mod+k",
76
76
  description: "Open quick search",
77
77
  scope: "global",
78
- handler: () => g(),
78
+ handler: () => p(),
79
79
  overrideInput: !0
80
- }), d({
80
+ }), c({
81
81
  id: "shortcut-help",
82
82
  keys: "shift+?",
83
83
  description: "Show keyboard shortcuts",
84
84
  scope: "global",
85
- handler: () => v(),
85
+ handler: () => h(),
86
86
  overrideInput: !1
87
- }), d({
87
+ }), c({
88
88
  id: "escape-close",
89
89
  keys: "escape",
90
90
  description: "Close dialog or panel",
91
91
  scope: "global",
92
92
  handler: () => {
93
- e(i) ? _(!1) : e(a) && y(!1);
93
+ e.get(t) ? m(!1) : e.get(n) && g(!1);
94
94
  },
95
95
  overrideInput: !0
96
96
  }));
97
97
  }
98
- function S(e) {
99
- let t = l(e.target);
100
- for (let n of o.values()) if (n.enabled !== !1 && !(t && !n.overrideInput) && u(e, n.keys)) {
98
+ function y(e) {
99
+ let t = o(e.target);
100
+ for (let n of r.values()) if (n.enabled !== !1 && !(t && !n.overrideInput) && s(e, n.keys)) {
101
101
  try {
102
102
  n.handler(e);
103
103
  } catch (e) {
@@ -107,27 +107,27 @@ function S(e) {
107
107
  }
108
108
  return !1;
109
109
  }
110
- function C() {
111
- return e(i);
110
+ function b() {
111
+ return e.get(t);
112
112
  }
113
- function w() {
114
- return e(a);
113
+ function x() {
114
+ return e.get(n);
115
115
  }
116
- var T = {
116
+ var S = {
117
117
  get isQuickSearchOpen() {
118
- return e(i);
118
+ return e.get(t);
119
119
  },
120
120
  get isShortcutHelpOpen() {
121
- return e(a);
121
+ return e.get(n);
122
122
  },
123
- toggleQuickSearch: g,
124
- setQuickSearchOpen: _,
125
- toggleShortcutHelp: v,
126
- setShortcutHelpOpen: y,
127
- register: d,
128
- unregister: f,
129
- getShortcutsByScope: m,
130
- handleKeyEvent: S
123
+ toggleQuickSearch: p,
124
+ setQuickSearchOpen: m,
125
+ toggleShortcutHelp: h,
126
+ setShortcutHelpOpen: g,
127
+ register: c,
128
+ unregister: l,
129
+ getShortcutsByScope: d,
130
+ handleKeyEvent: y
131
131
  };
132
132
  //#endregion
133
- export { m as a, c, _ as d, y as f, f as h, p as i, x as l, v as m, C as n, S as o, g as p, w as r, T as s, h as t, d as u };
133
+ export { d as a, a as c, m as d, g as f, l as h, u as i, v as l, h as m, b as n, y as o, p, x as r, S as s, f as t, c as u };
@@ -0,0 +1,30 @@
1
+ import { t as e } from "./utils-hzdMVeCv.js";
2
+ import "svelte/internal/disclose-version";
3
+ import * as t from "svelte/internal/client";
4
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.0.8+3149ccaa93f654b8/node_modules/@hiai-gg/hiai-ui/dist/components/ui/label/label.svelte
5
+ var n = /* @__PURE__ */ new Set([
6
+ "$$slots",
7
+ "$$events",
8
+ "$$legacy",
9
+ "ref",
10
+ "class",
11
+ "children"
12
+ ]), r = t.from_html("<label><!></label>");
13
+ function i(i, a) {
14
+ t.push(a, !0);
15
+ let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, n);
16
+ var c = r();
17
+ t.attribute_effect(c, (e) => ({
18
+ class: e,
19
+ ...s
20
+ }), [() => e("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", a.class)]);
21
+ var l = t.child(c), u = (e) => {
22
+ var n = t.comment(), r = t.first_child(n);
23
+ t.snippet(r, () => a.children), t.append(e, n);
24
+ };
25
+ t.if(l, (e) => {
26
+ a.children && e(u);
27
+ }), t.reset(c), t.bind_this(c, (e) => o(e), () => o()), t.append(i, c), t.pop();
28
+ }
29
+ //#endregion
30
+ export { i as t };
@@ -1,9 +1,10 @@
1
- import "./disclose-version-5I57E3LD.js";
2
- import { $ as e, A as t, S as n, i as r, j as i, t as a } from "./client-Bc5Fzx40.js";
3
- import { n as o, t as s } from "./bundle-mjs-CP6Owz-8.js";
4
- import { t as c } from "./Icon-DtNo0N1U.js";
1
+ import { n as e, r as t } from "./clsx-C7bIvsDS.js";
2
+ import { t as n } from "./Icon-CooFj4Ee.js";
3
+ import "svelte/internal/disclose-version";
4
+ import * as r from "svelte/internal/client";
5
+ import "svelte/internal/flags/legacy";
5
6
  //#region ../node_modules/.bun/tailwind-variants@3.2.2+353585be07126f0c/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js
6
- var l = /\s+/g, u = (e) => typeof e != "string" || !e ? e : e.replace(l, " ").trim(), d = (...e) => {
7
+ var i = /\s+/g, a = (e) => typeof e != "string" || !e ? e : e.replace(i, " ").trim(), o = (...e) => {
7
8
  let t = [], n = (e) => {
8
9
  if (!e && e !== 0 && e !== 0n) return;
9
10
  if (Array.isArray(e)) {
@@ -26,12 +27,12 @@ var l = /\s+/g, u = (e) => typeof e != "string" || !e ? e : e.replace(l, " ").tr
26
27
  let r = e[t];
27
28
  r != null && n(r);
28
29
  }
29
- return t.length > 0 ? u(t.join(" ")) : void 0;
30
- }, f = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, p = (e) => {
30
+ return t.length > 0 ? a(t.join(" ")) : void 0;
31
+ }, s = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, c = (e) => {
31
32
  if (!e || typeof e != "object") return !0;
32
33
  for (let t in e) return !1;
33
34
  return !0;
34
- }, m = (e, t) => {
35
+ }, l = (e, t) => {
35
36
  if (e === t) return !0;
36
37
  if (!e || !t) return !1;
37
38
  let n = Object.keys(e), r = Object.keys(t);
@@ -41,39 +42,39 @@ var l = /\s+/g, u = (e) => typeof e != "string" || !e ? e : e.replace(l, " ").tr
41
42
  if (!r.includes(a) || e[a] !== t[a]) return !1;
42
43
  }
43
44
  return !0;
44
- }, h = (e, t) => {
45
+ }, u = (e, t) => {
45
46
  for (let n in t) if (Object.prototype.hasOwnProperty.call(t, n)) {
46
47
  let r = t[n];
47
- n in e ? e[n] = d(e[n], r) : e[n] = r;
48
+ n in e ? e[n] = o(e[n], r) : e[n] = r;
48
49
  }
49
50
  return e;
50
- }, g = (e, t) => {
51
+ }, d = (e, t) => {
51
52
  for (let n = 0; n < e.length; n++) {
52
53
  let r = e[n];
53
- Array.isArray(r) ? g(r, t) : r && t.push(r);
54
+ Array.isArray(r) ? d(r, t) : r && t.push(r);
54
55
  }
55
- }, _ = (...e) => {
56
+ }, f = (...e) => {
56
57
  let t = [];
57
- g(e, t);
58
+ d(e, t);
58
59
  let n = [];
59
60
  for (let e = 0; e < t.length; e++) t[e] && n.push(t[e]);
60
61
  return n;
61
- }, v = (e, t) => {
62
+ }, p = (e, t) => {
62
63
  let n = {};
63
64
  for (let r in e) {
64
65
  let i = e[r];
65
66
  if (r in t) {
66
67
  let e = t[r];
67
- Array.isArray(i) || Array.isArray(e) ? n[r] = _(e, i) : typeof i == "object" && typeof e == "object" && i && e ? n[r] = v(i, e) : n[r] = e + " " + i;
68
+ Array.isArray(i) || Array.isArray(e) ? n[r] = f(e, i) : typeof i == "object" && typeof e == "object" && i && e ? n[r] = p(i, e) : n[r] = e + " " + i;
68
69
  } else n[r] = i;
69
70
  }
70
71
  for (let r in t) r in e || (n[r] = t[r]);
71
72
  return n;
72
- }, y = {
73
+ }, m = {
73
74
  twMerge: !0,
74
75
  twMergeConfig: {}
75
76
  };
76
- function b() {
77
+ function h() {
77
78
  let e = null, t = {}, n = !1;
78
79
  return {
79
80
  get cachedTwMerge() {
@@ -99,45 +100,45 @@ function b() {
99
100
  }
100
101
  };
101
102
  }
102
- var x = b(), S = (e) => {
103
+ var g = h(), _ = (e) => {
103
104
  let t = (t, n) => {
104
- let { extend: r = null, slots: i = {}, variants: a = {}, compoundVariants: o = [], compoundSlots: s = [], defaultVariants: c = {} } = t, l = {
105
- ...y,
105
+ let { extend: r = null, slots: i = {}, variants: a = {}, compoundVariants: d = [], compoundSlots: h = [], defaultVariants: _ = {} } = t, v = {
106
+ ...m,
106
107
  ...n
107
- }, u = r?.base ? d(r.base, t?.base) : t?.base, g = r?.variants && !p(r.variants) ? v(a, r.variants) : a, b = r?.defaultVariants && !p(r.defaultVariants) ? {
108
+ }, y = r?.base ? o(r.base, t?.base) : t?.base, b = r?.variants && !c(r.variants) ? p(a, r.variants) : a, x = r?.defaultVariants && !c(r.defaultVariants) ? {
108
109
  ...r.defaultVariants,
109
- ...c
110
- } : c;
111
- !p(l.twMergeConfig) && !m(l.twMergeConfig, x.cachedTwMergeConfig) && (x.didTwMergeConfigChange = !0, x.cachedTwMergeConfig = l.twMergeConfig);
112
- let S = p(r?.slots), C = p(i) ? {} : {
113
- base: d(t?.base, S && r?.base),
110
+ ..._
111
+ } : _;
112
+ !c(v.twMergeConfig) && !l(v.twMergeConfig, g.cachedTwMergeConfig) && (g.didTwMergeConfigChange = !0, g.cachedTwMergeConfig = v.twMergeConfig);
113
+ let S = c(r?.slots), C = c(i) ? {} : {
114
+ base: o(t?.base, S && r?.base),
114
115
  ...i
115
- }, w = S ? C : h({ ...r?.slots }, p(C) ? { base: t?.base } : C), T = p(r?.compoundVariants) ? o : _(r?.compoundVariants, o), E = (t) => {
116
- if (p(g) && p(i) && S) return e(u, t?.class, t?.className)(l);
116
+ }, w = S ? C : u({ ...r?.slots }, c(C) ? { base: t?.base } : C), T = c(r?.compoundVariants) ? d : f(r?.compoundVariants, d), E = (t) => {
117
+ if (c(b) && c(i) && S) return e(y, t?.class, t?.className)(v);
117
118
  if (T && !Array.isArray(T)) throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof T}`);
118
- if (s && !Array.isArray(s)) throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);
119
- let n = (e, n = g, r = null, i = null) => {
119
+ if (h && !Array.isArray(h)) throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof h}`);
120
+ let n = (e, n = b, r = null, i = null) => {
120
121
  let a = n[e];
121
- if (!a || p(a)) return null;
122
+ if (!a || c(a)) return null;
122
123
  let o = i?.[e] ?? t?.[e];
123
124
  if (o === null) return null;
124
- let s = f(o);
125
- if (typeof s == "object") return null;
126
- let c = b?.[e];
127
- return a[(s ?? f(c)) || "false"];
125
+ let l = s(o);
126
+ if (typeof l == "object") return null;
127
+ let u = x?.[e];
128
+ return a[(l ?? s(u)) || "false"];
128
129
  }, r = () => {
129
- if (!g) return null;
130
- let e = Object.keys(g), t = [];
130
+ if (!b) return null;
131
+ let e = Object.keys(b), t = [];
131
132
  for (let r = 0; r < e.length; r++) {
132
- let i = n(e[r], g);
133
+ let i = n(e[r], b);
133
134
  i && t.push(i);
134
135
  }
135
136
  return t;
136
137
  }, a = (e, t) => {
137
- if (!g || typeof g != "object") return null;
138
+ if (!b || typeof b != "object") return null;
138
139
  let r = [];
139
- for (let i in g) {
140
- let a = n(i, g, e, t), o = e === "base" && typeof a == "string" ? a : a && a[e];
140
+ for (let i in b) {
141
+ let a = n(i, b, e, t), o = e === "base" && typeof a == "string" ? a : a && a[e];
141
142
  o && r.push(o);
142
143
  }
143
144
  return r;
@@ -146,20 +147,20 @@ var x = b(), S = (e) => {
146
147
  let n = t[e];
147
148
  n !== void 0 && (o[e] = n);
148
149
  }
149
- let c = (e, n) => {
150
+ let l = (e, n) => {
150
151
  let r = typeof t?.[e] == "object" ? { [e]: t[e]?.initial } : {};
151
152
  return {
152
- ...b,
153
+ ...x,
153
154
  ...o,
154
155
  ...r,
155
156
  ...n
156
157
  };
157
- }, d = (e = [], t) => {
158
+ }, u = (e = [], t) => {
158
159
  let n = [], r = e.length;
159
160
  for (let i = 0; i < r; i++) {
160
- let { class: r, className: a, ...o } = e[i], s = !0, l = c(null, t);
161
+ let { class: r, className: a, ...o } = e[i], s = !0, c = l(null, t);
161
162
  for (let e in o) {
162
- let t = o[e], n = l[e];
163
+ let t = o[e], n = c[e];
163
164
  if (Array.isArray(t)) {
164
165
  if (!t.includes(n)) {
165
166
  s = !1;
@@ -176,22 +177,22 @@ var x = b(), S = (e) => {
176
177
  s && (r && n.push(r), a && n.push(a));
177
178
  }
178
179
  return n;
179
- }, m = (t) => {
180
- let n = d(T, t);
180
+ }, d = (t) => {
181
+ let n = u(T, t);
181
182
  if (!Array.isArray(n)) return n;
182
183
  let r = {}, i = e;
183
184
  for (let e = 0; e < n.length; e++) {
184
185
  let t = n[e];
185
- if (typeof t == "string") r.base = i(r.base, t)(l);
186
- else if (typeof t == "object") for (let e in t) r[e] = i(r[e], t[e])(l);
186
+ if (typeof t == "string") r.base = i(r.base, t)(v);
187
+ else if (typeof t == "object") for (let e in t) r[e] = i(r[e], t[e])(v);
187
188
  }
188
189
  return r;
189
- }, h = (e) => {
190
- if (s.length < 1) return null;
191
- let t = {}, n = c(null, e);
192
- for (let e = 0; e < s.length; e++) {
193
- let { slots: r = [], class: i, className: a, ...o } = s[e];
194
- if (!p(o)) {
190
+ }, f = (e) => {
191
+ if (h.length < 1) return null;
192
+ let t = {}, n = l(null, e);
193
+ for (let e = 0; e < h.length; e++) {
194
+ let { slots: r = [], class: i, className: a, ...o } = h[e];
195
+ if (!c(o)) {
195
196
  let e = !0;
196
197
  for (let t in o) {
197
198
  let r = n[t], i = o[t];
@@ -209,59 +210,59 @@ var x = b(), S = (e) => {
209
210
  }
210
211
  return t;
211
212
  };
212
- if (!p(i) || !S) {
213
+ if (!c(i) || !S) {
213
214
  let t = {};
214
- if (typeof w == "object" && !p(w)) {
215
+ if (typeof w == "object" && !c(w)) {
215
216
  let n = e;
216
217
  for (let e in w) t[e] = (t) => {
217
- let r = m(t), i = h(t);
218
- return n(w[e], a(e, t), r ? r[e] : void 0, i ? i[e] : void 0, t?.class, t?.className)(l);
218
+ let r = d(t), i = f(t);
219
+ return n(w[e], a(e, t), r ? r[e] : void 0, i ? i[e] : void 0, t?.class, t?.className)(v);
219
220
  };
220
221
  }
221
222
  return t;
222
223
  }
223
- return e(u, r(), d(T), t?.class, t?.className)(l);
224
+ return e(y, r(), u(T), t?.class, t?.className)(v);
224
225
  };
225
226
  return E.variantKeys = (() => {
226
- if (!(!g || typeof g != "object")) return Object.keys(g);
227
- })(), E.extend = r, E.base = u, E.slots = w, E.variants = g, E.defaultVariants = b, E.compoundSlots = s, E.compoundVariants = T, E;
227
+ if (!(!b || typeof b != "object")) return Object.keys(b);
228
+ })(), E.extend = r, E.base = y, E.slots = w, E.variants = b, E.defaultVariants = x, E.compoundSlots = h, E.compoundVariants = T, E;
228
229
  };
229
230
  return {
230
231
  tv: t,
231
- createTV: (e) => (n, r) => t(n, r ? v(e, r) : e)
232
+ createTV: (e) => (n, r) => t(n, r ? p(e, r) : e)
232
233
  };
233
- }, C = (e) => p(e) ? o : s({
234
- ...e,
234
+ }, v = (n) => c(n) ? t : e({
235
+ ...n,
235
236
  extend: {
236
- theme: e.theme,
237
- classGroups: e.classGroups,
238
- conflictingClassGroupModifiers: e.conflictingClassGroupModifiers,
239
- conflictingClassGroups: e.conflictingClassGroups,
240
- ...e.extend
237
+ theme: n.theme,
238
+ classGroups: n.classGroups,
239
+ conflictingClassGroupModifiers: n.conflictingClassGroupModifiers,
240
+ conflictingClassGroups: n.conflictingClassGroups,
241
+ ...n.extend
241
242
  }
242
- }), w = (e, t) => {
243
- let n = d(e);
244
- return !n || !(t?.twMerge ?? !0) ? n : ((!x.cachedTwMerge || x.didTwMergeConfigChange) && (x.didTwMergeConfigChange = !1, x.cachedTwMerge = C(x.cachedTwMergeConfig)), x.cachedTwMerge(n) || void 0);
245
- }, { createTV: T, tv: E } = S((...e) => (t) => w(e, t));
243
+ }), y = (e, t) => {
244
+ let n = o(e);
245
+ return !n || !(t?.twMerge ?? !0) ? n : ((!g.cachedTwMerge || g.didTwMergeConfigChange) && (g.didTwMergeConfigChange = !1, g.cachedTwMerge = v(g.cachedTwMergeConfig)), g.cachedTwMerge(n) || void 0);
246
+ }, { createTV: b, tv: x } = _((...e) => (t) => y(e, t));
246
247
  //#endregion
247
248
  //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/loader-circle.svelte
248
- function D(o, s) {
249
- let l = a(s, [
249
+ function S(e, t) {
250
+ let i = r.legacy_rest_props(t, [
250
251
  "children",
251
252
  "$$slots",
252
253
  "$$events",
253
254
  "$$legacy"
254
- ]), u = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]];
255
- c(o, r({ name: "loader-circle" }, () => l, {
255
+ ]), a = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]];
256
+ n(e, r.spread_props({ name: "loader-circle" }, () => i, {
256
257
  get iconNode() {
257
- return u;
258
+ return a;
258
259
  },
259
- children: (r, a) => {
260
- var o = i();
261
- n(e(o), s, "default", {}, null), t(r, o);
260
+ children: (e, n) => {
261
+ var i = r.comment(), a = r.first_child(i);
262
+ r.slot(a, t, "default", {}, null), r.append(e, i);
262
263
  },
263
264
  $$slots: { default: !0 }
264
265
  }));
265
266
  }
266
267
  //#endregion
267
- export { E as n, D as t };
268
+ export { x as n, S as t };
@@ -0,0 +1,25 @@
1
+ import { t as e } from "./Icon-CooFj4Ee.js";
2
+ import "svelte/internal/disclose-version";
3
+ import * as t from "svelte/internal/client";
4
+ import "svelte/internal/flags/legacy";
5
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/rotate-ccw.svelte
6
+ function n(n, r) {
7
+ let i = t.legacy_rest_props(r, [
8
+ "children",
9
+ "$$slots",
10
+ "$$events",
11
+ "$$legacy"
12
+ ]), a = [["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { d: "M3 3v5h5" }]];
13
+ e(n, t.spread_props({ name: "rotate-ccw" }, () => i, {
14
+ get iconNode() {
15
+ return a;
16
+ },
17
+ children: (e, n) => {
18
+ var i = t.comment(), a = t.first_child(i);
19
+ t.slot(a, r, "default", {}, null), t.append(e, i);
20
+ },
21
+ $$slots: { default: !0 }
22
+ }));
23
+ }
24
+ //#endregion
25
+ export { n as t };