vibedoc 1.6.0 → 1.6.1

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 (187) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/(app)/activity/page.js.nft.json +1 -1
  5. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -1
  6. package/.next/server/app/(app)/board/page.js.nft.json +1 -1
  7. package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/(app)/docs/page.js.nft.json +1 -1
  9. package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/(app)/explorer/page.js.nft.json +1 -1
  11. package/.next/server/app/(app)/explorer/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(app)/memory/page.js.nft.json +1 -1
  13. package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/(app)/roadmap/page.js.nft.json +1 -1
  15. package/.next/server/app/(app)/roadmap/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/(app)/settings/page.js.nft.json +1 -1
  17. package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/(app)/setup/page.js.nft.json +1 -1
  19. package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/_global-error.html +1 -1
  21. package/.next/server/app/_global-error.rsc +1 -1
  22. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  23. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.html +1 -1
  26. package/.next/server/app/_not-found.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  29. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  30. package/.next/server/app/activity.html +1 -1
  31. package/.next/server/app/activity.rsc +4 -4
  32. package/.next/server/app/activity.segments/!KGFwcCk/activity/__PAGE__.segment.rsc +4 -4
  33. package/.next/server/app/activity.segments/_full.segment.rsc +4 -4
  34. package/.next/server/app/activity.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/api/activity/route.js.nft.json +1 -1
  36. package/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  37. package/.next/server/app/api/chat/route.js.nft.json +1 -1
  38. package/.next/server/app/api/context/route.js.nft.json +1 -1
  39. package/.next/server/app/api/decisions/route.js.nft.json +1 -1
  40. package/.next/server/app/api/docs/route.js.nft.json +1 -1
  41. package/.next/server/app/api/explorer/route.js.nft.json +1 -1
  42. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  43. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  44. package/.next/server/app/api/plan/apply/route.js.nft.json +1 -1
  45. package/.next/server/app/api/projects/route.js.nft.json +1 -1
  46. package/.next/server/app/api/registry/route.js.nft.json +1 -1
  47. package/.next/server/app/api/roadmap/create/route.js.nft.json +1 -1
  48. package/.next/server/app/api/roadmap/delete/route.js.nft.json +1 -1
  49. package/.next/server/app/api/roadmap/generate/route.js.nft.json +1 -1
  50. package/.next/server/app/api/roadmap/layout/route.js.nft.json +1 -1
  51. package/.next/server/app/api/roadmap/route.js.nft.json +1 -1
  52. package/.next/server/app/api/roadmap/update/route.js.nft.json +1 -1
  53. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  54. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  55. package/.next/server/app/api/setup/generate/route.js.nft.json +1 -1
  56. package/.next/server/app/api/setup/write/route.js.nft.json +1 -1
  57. package/.next/server/app/api/summary/route.js.nft.json +1 -1
  58. package/.next/server/app/api/tasks/create/route.js.nft.json +1 -1
  59. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  60. package/.next/server/app/board.html +1 -1
  61. package/.next/server/app/board.rsc +4 -4
  62. package/.next/server/app/board.segments/!KGFwcCk/board/__PAGE__.segment.rsc +4 -4
  63. package/.next/server/app/board.segments/_full.segment.rsc +4 -4
  64. package/.next/server/app/board.segments/_tree.segment.rsc +1 -1
  65. package/.next/server/app/docs.html +1 -1
  66. package/.next/server/app/docs.rsc +4 -4
  67. package/.next/server/app/docs.segments/!KGFwcCk/docs/__PAGE__.segment.rsc +4 -4
  68. package/.next/server/app/docs.segments/_full.segment.rsc +4 -4
  69. package/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  70. package/.next/server/app/explorer.html +1 -1
  71. package/.next/server/app/explorer.rsc +4 -4
  72. package/.next/server/app/explorer.segments/!KGFwcCk/explorer/__PAGE__.segment.rsc +4 -4
  73. package/.next/server/app/explorer.segments/_full.segment.rsc +4 -4
  74. package/.next/server/app/explorer.segments/_tree.segment.rsc +1 -1
  75. package/.next/server/app/index.html +1 -1
  76. package/.next/server/app/index.rsc +1 -1
  77. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  78. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  79. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  80. package/.next/server/app/memory.html +1 -1
  81. package/.next/server/app/memory.rsc +4 -4
  82. package/.next/server/app/memory.segments/!KGFwcCk/memory/__PAGE__.segment.rsc +4 -4
  83. package/.next/server/app/memory.segments/_full.segment.rsc +4 -4
  84. package/.next/server/app/memory.segments/_tree.segment.rsc +1 -1
  85. package/.next/server/app/roadmap.html +1 -1
  86. package/.next/server/app/roadmap.rsc +4 -4
  87. package/.next/server/app/roadmap.segments/!KGFwcCk/roadmap/__PAGE__.segment.rsc +4 -4
  88. package/.next/server/app/roadmap.segments/_full.segment.rsc +4 -4
  89. package/.next/server/app/roadmap.segments/_tree.segment.rsc +1 -1
  90. package/.next/server/app/settings.html +1 -1
  91. package/.next/server/app/settings.rsc +5 -5
  92. package/.next/server/app/settings.segments/!KGFwcCk/settings/__PAGE__.segment.rsc +4 -4
  93. package/.next/server/app/settings.segments/_full.segment.rsc +5 -5
  94. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  95. package/.next/server/app/setup.html +1 -1
  96. package/.next/server/app/setup.rsc +4 -4
  97. package/.next/server/app/setup.segments/!KGFwcCk/setup/__PAGE__.segment.rsc +4 -4
  98. package/.next/server/app/setup.segments/_full.segment.rsc +4 -4
  99. package/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  100. package/.next/server/chunks/_1b5fqxy._.js +1 -1
  101. package/.next/server/chunks/_1b5fqxy._.js.map +1 -1
  102. package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_10jvzv6._.js → 0_nd_mermaid_dist_mermaid_core_mjs_1vulg1x._.js} +2 -2
  103. package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_05prlqa._.js → 1u84_katex_dist_katex_mjs_0mwkb-i._.js} +1 -1
  104. package/.next/server/chunks/ssr/[root-of-the-server]__0xt_0w2._.js.map +1 -1
  105. package/.next/server/chunks/ssr/_0qyglif._.js +2 -2
  106. package/.next/server/chunks/ssr/_0qyglif._.js.map +1 -1
  107. package/.next/server/chunks/ssr/_1c95ems._.js +1 -1
  108. package/.next/server/chunks/ssr/_1c95ems._.js.map +1 -1
  109. package/.next/server/chunks/ssr/{_01suk2m._.js → _1y-ofyw._.js} +2 -2
  110. package/.next/server/chunks/ssr/_1y-ofyw._.js.map +1 -0
  111. package/.next/server/chunks/ssr/{node_modules__pnpm_08em703._.js → node_modules__pnpm_0--x5-5._.js} +1 -1
  112. package/.next/server/chunks/ssr/{node_modules__pnpm_1gqkoe3._.js → node_modules__pnpm_00i3mh2._.js} +1 -1
  113. package/.next/server/chunks/ssr/{node_modules__pnpm_1kngagu._.js → node_modules__pnpm_00wjhj4._.js} +1 -1
  114. package/.next/server/chunks/ssr/{node_modules__pnpm_12s6q4d._.js → node_modules__pnpm_042y3e-._.js} +1 -1
  115. package/.next/server/chunks/ssr/{node_modules__pnpm_0wnlgm-._.js → node_modules__pnpm_04xoqd9._.js} +2 -2
  116. package/.next/server/chunks/ssr/{node_modules__pnpm_1hw4h9e._.js → node_modules__pnpm_07j8gcu._.js} +1 -1
  117. package/.next/server/chunks/ssr/{node_modules__pnpm_1dcmsrg._.js → node_modules__pnpm_0bmkw6o._.js} +1 -1
  118. package/.next/server/chunks/ssr/{node_modules__pnpm_1jfqun_._.js → node_modules__pnpm_0cj37c-._.js} +1 -1
  119. package/.next/server/chunks/ssr/{node_modules__pnpm_0_z3_bl._.js → node_modules__pnpm_0fk-8nl._.js} +1 -1
  120. package/.next/server/chunks/ssr/{node_modules__pnpm_20tdqv_._.js → node_modules__pnpm_0kna82c._.js} +1 -1
  121. package/.next/server/chunks/ssr/{node_modules__pnpm_0e15nhj._.js → node_modules__pnpm_0ma8hho._.js} +1 -1
  122. package/.next/server/chunks/ssr/{node_modules__pnpm_0rd-a9g._.js → node_modules__pnpm_0nbxdp_._.js} +1 -1
  123. package/.next/server/chunks/ssr/{node_modules__pnpm_0baie09._.js → node_modules__pnpm_0p10j87._.js} +1 -1
  124. package/.next/server/chunks/ssr/{node_modules__pnpm_1ad2q27._.js → node_modules__pnpm_0w9uewb._.js} +1 -1
  125. package/.next/server/chunks/ssr/{node_modules__pnpm_0e3u5g-._.js → node_modules__pnpm_0yixxj2._.js} +1 -1
  126. package/.next/server/chunks/ssr/{node_modules__pnpm_1ly58kw._.js → node_modules__pnpm_1-poetj._.js} +1 -1
  127. package/.next/server/chunks/ssr/{node_modules__pnpm_1u8p2h3._.js → node_modules__pnpm_11lluiq._.js} +2 -2
  128. package/.next/server/chunks/ssr/{node_modules__pnpm_1f3lm9p._.js → node_modules__pnpm_17o8zbz._.js} +1 -1
  129. package/.next/server/chunks/ssr/{node_modules__pnpm_1moe8b6._.js → node_modules__pnpm_18pu1wl._.js} +1 -1
  130. package/.next/server/chunks/ssr/{node_modules__pnpm_1h890n6._.js → node_modules__pnpm_19ejwjv._.js} +1 -1
  131. package/.next/server/chunks/ssr/{node_modules__pnpm_1o3_0-n._.js → node_modules__pnpm_19ys1iv._.js} +1 -1
  132. package/.next/server/chunks/ssr/{node_modules__pnpm_0i0uccx._.js → node_modules__pnpm_1_34wt2._.js} +1 -1
  133. package/.next/server/chunks/ssr/{node_modules__pnpm_0jhh7p5._.js → node_modules__pnpm_1a3fo7j._.js} +2 -2
  134. package/.next/server/chunks/ssr/{node_modules__pnpm_1gtgu48._.js → node_modules__pnpm_1l-posw._.js} +2 -2
  135. package/.next/server/chunks/ssr/{node_modules__pnpm_07_kgbe._.js → node_modules__pnpm_1o30a9w._.js} +1 -1
  136. package/.next/server/chunks/ssr/{node_modules__pnpm_1_o0jyk._.js → node_modules__pnpm_1r4w_7k._.js} +2 -2
  137. package/.next/server/chunks/ssr/{node_modules__pnpm_1zu-9we._.js → node_modules__pnpm_1xolwvc._.js} +2 -2
  138. package/.next/server/chunks/ssr/{node_modules__pnpm_0ns_6dd._.js → node_modules__pnpm_1zsbfem._.js} +1 -1
  139. package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js +2 -2
  140. package/.next/server/chunks/ssr/src_app_(app)_settings_page_tsx_0zevtee._.js.map +1 -1
  141. package/.next/server/middleware-build-manifest.js +3 -3
  142. package/.next/server/pages/404.html +1 -1
  143. package/.next/server/pages/500.html +1 -1
  144. package/.next/server/server-reference-manifest.js +1 -1
  145. package/.next/server/server-reference-manifest.json +1 -1
  146. package/.next/static/chunks/0-vk2d2nnzav2.js +3 -0
  147. package/.next/static/chunks/10neasnz6hhq1.js +1 -0
  148. package/.next/static/chunks/{3dlnlsyyysw5m.js → 22dw7r8x0h2sx.js} +1 -1
  149. package/.next/static/chunks/26ee8jsbellqk.js +21 -0
  150. package/package.json +1 -1
  151. package/.next/server/chunks/ssr/_01suk2m._.js.map +0 -1
  152. package/.next/static/chunks/0wjw1laqwg-cr.js +0 -21
  153. package/.next/static/chunks/1g6fxjtlpv6p5.js +0 -1
  154. package/.next/static/chunks/1ytqu-ra-fylk.js +0 -3
  155. /package/.next/server/chunks/ssr/{0_nd_mermaid_dist_mermaid_core_mjs_10jvzv6._.js.map → 0_nd_mermaid_dist_mermaid_core_mjs_1vulg1x._.js.map} +0 -0
  156. /package/.next/server/chunks/ssr/{1u84_katex_dist_katex_mjs_05prlqa._.js.map → 1u84_katex_dist_katex_mjs_0mwkb-i._.js.map} +0 -0
  157. /package/.next/server/chunks/ssr/{node_modules__pnpm_08em703._.js.map → node_modules__pnpm_0--x5-5._.js.map} +0 -0
  158. /package/.next/server/chunks/ssr/{node_modules__pnpm_1gqkoe3._.js.map → node_modules__pnpm_00i3mh2._.js.map} +0 -0
  159. /package/.next/server/chunks/ssr/{node_modules__pnpm_1kngagu._.js.map → node_modules__pnpm_00wjhj4._.js.map} +0 -0
  160. /package/.next/server/chunks/ssr/{node_modules__pnpm_12s6q4d._.js.map → node_modules__pnpm_042y3e-._.js.map} +0 -0
  161. /package/.next/server/chunks/ssr/{node_modules__pnpm_0wnlgm-._.js.map → node_modules__pnpm_04xoqd9._.js.map} +0 -0
  162. /package/.next/server/chunks/ssr/{node_modules__pnpm_1hw4h9e._.js.map → node_modules__pnpm_07j8gcu._.js.map} +0 -0
  163. /package/.next/server/chunks/ssr/{node_modules__pnpm_1dcmsrg._.js.map → node_modules__pnpm_0bmkw6o._.js.map} +0 -0
  164. /package/.next/server/chunks/ssr/{node_modules__pnpm_1jfqun_._.js.map → node_modules__pnpm_0cj37c-._.js.map} +0 -0
  165. /package/.next/server/chunks/ssr/{node_modules__pnpm_0_z3_bl._.js.map → node_modules__pnpm_0fk-8nl._.js.map} +0 -0
  166. /package/.next/server/chunks/ssr/{node_modules__pnpm_20tdqv_._.js.map → node_modules__pnpm_0kna82c._.js.map} +0 -0
  167. /package/.next/server/chunks/ssr/{node_modules__pnpm_0e15nhj._.js.map → node_modules__pnpm_0ma8hho._.js.map} +0 -0
  168. /package/.next/server/chunks/ssr/{node_modules__pnpm_0rd-a9g._.js.map → node_modules__pnpm_0nbxdp_._.js.map} +0 -0
  169. /package/.next/server/chunks/ssr/{node_modules__pnpm_0baie09._.js.map → node_modules__pnpm_0p10j87._.js.map} +0 -0
  170. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ad2q27._.js.map → node_modules__pnpm_0w9uewb._.js.map} +0 -0
  171. /package/.next/server/chunks/ssr/{node_modules__pnpm_0e3u5g-._.js.map → node_modules__pnpm_0yixxj2._.js.map} +0 -0
  172. /package/.next/server/chunks/ssr/{node_modules__pnpm_1ly58kw._.js.map → node_modules__pnpm_1-poetj._.js.map} +0 -0
  173. /package/.next/server/chunks/ssr/{node_modules__pnpm_1u8p2h3._.js.map → node_modules__pnpm_11lluiq._.js.map} +0 -0
  174. /package/.next/server/chunks/ssr/{node_modules__pnpm_1f3lm9p._.js.map → node_modules__pnpm_17o8zbz._.js.map} +0 -0
  175. /package/.next/server/chunks/ssr/{node_modules__pnpm_1moe8b6._.js.map → node_modules__pnpm_18pu1wl._.js.map} +0 -0
  176. /package/.next/server/chunks/ssr/{node_modules__pnpm_1h890n6._.js.map → node_modules__pnpm_19ejwjv._.js.map} +0 -0
  177. /package/.next/server/chunks/ssr/{node_modules__pnpm_1o3_0-n._.js.map → node_modules__pnpm_19ys1iv._.js.map} +0 -0
  178. /package/.next/server/chunks/ssr/{node_modules__pnpm_0i0uccx._.js.map → node_modules__pnpm_1_34wt2._.js.map} +0 -0
  179. /package/.next/server/chunks/ssr/{node_modules__pnpm_0jhh7p5._.js.map → node_modules__pnpm_1a3fo7j._.js.map} +0 -0
  180. /package/.next/server/chunks/ssr/{node_modules__pnpm_1gtgu48._.js.map → node_modules__pnpm_1l-posw._.js.map} +0 -0
  181. /package/.next/server/chunks/ssr/{node_modules__pnpm_07_kgbe._.js.map → node_modules__pnpm_1o30a9w._.js.map} +0 -0
  182. /package/.next/server/chunks/ssr/{node_modules__pnpm_1_o0jyk._.js.map → node_modules__pnpm_1r4w_7k._.js.map} +0 -0
  183. /package/.next/server/chunks/ssr/{node_modules__pnpm_1zu-9we._.js.map → node_modules__pnpm_1xolwvc._.js.map} +0 -0
  184. /package/.next/server/chunks/ssr/{node_modules__pnpm_0ns_6dd._.js.map → node_modules__pnpm_1zsbfem._.js.map} +0 -0
  185. /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D → gJtrYenzL6_deB-6pdvIL}/_buildManifest.js +0 -0
  186. /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D → gJtrYenzL6_deB-6pdvIL}/_clientMiddlewareManifest.js +0 -0
  187. /package/.next/static/{ICaoXcRMmgrIFWk8C_Z6D → gJtrYenzL6_deB-6pdvIL}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/hasA11yProp.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/toCamelCase.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/toKebabCase.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/mergeClasses.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/build/defaultAttributes.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/toPascalCase.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/build/buildLucideIconForReact.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/utils/toLucideIconData.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/shared/src/build/buildLucideIconNode.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/createLucideIcon.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/Icon.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/book-open.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/check.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/chevron-right.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/file-text.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/x.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/settings.ts","../../../../node_modules/.pnpm/lucide-react%401.48.0_react%4019.3.0/node_modules/lucide-react/src/icons/zap.ts","../../../../node_modules/.pnpm/next%4016.3.6_%40babel%2Bcore%407.29.7_%40types%2Bnode%4022.20.4_react-dom%4019.3.0_react%4019.3.0__react%4019.3.0/node_modules/next/src/shared/lib/deployment-id.ts","../../../../src/components/ui/badge.tsx","../../../../src/components/ui/dialog.tsx","../../../../src/components/ui/input.tsx","../../../../src/components/ui/sheet.tsx","../../../../src/lib/applySettings.ts","../../../../src/lib/ask-agent.ts"],"sourcesContent":["/**\n * Check if a component has an accessibility prop\n *\n * @param {object} props\n * @returns {boolean} Whether the component has an accessibility prop\n */\nexport const hasA11yProp = (props: object) => {\n for (const prop in props) {\n if (prop.startsWith('aria-') || prop === 'role' || prop === 'title') {\n return true;\n }\n }\n\n return false;\n};\n","/**\n * Converts string to camel case\n *\n * @param {string} string\n * @returns {string} A camelized string\n */\nexport const toCamelCase = <T extends string>(string: T) => {\n let out = '';\n let upperNext = false;\n\n for (const ch of string) {\n if (ch === '-' || ch === '_' || ch <= ' ') {\n upperNext = out.length > 0;\n continue;\n }\n\n if (out.length === 0) {\n out += ch.toLowerCase();\n } else {\n out += upperNext ? ch.toUpperCase() : ch;\n }\n\n upperNext = false;\n }\n\n return out as string;\n};\n","/**\n * Converts string to kebab case\n *\n * @param {string} string\n * @returns {string} A kebabized string\n */\nexport const toKebabCase = (string: string) =>\n string?.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n","/**\n * Merges classes into a single string\n *\n * @param {array} classes\n * @returns {string} A string of classes\n */\nexport const mergeClasses = <ClassType = string | undefined | null>(...classes: ClassType[]) =>\n classes\n .filter((className, index, array) => {\n return (\n Boolean(className) &&\n (className as string).trim() !== '' &&\n array.indexOf(className) === index\n );\n })\n .join(' ')\n .trim();\n","const defaultAttributes = {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 24,\n height: 24,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n 'stroke-width': 2,\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round',\n} as const;\n\nexport default defaultAttributes;\n","import { CamelToPascal } from '../utility-types';\nimport { toCamelCase } from './toCamelCase';\n\n/**\n * Converts string to pascal case\n *\n * @param {string} string\n * @returns {string} A pascalized string\n */\nexport const toPascalCase = <T extends string>(string: T): CamelToPascal<T> => {\n const camelCase = toCamelCase(string);\n\n return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal<T>;\n};\n","import buildLucideIconNode from './buildLucideIconNode';\nimport type { LucideBuildParams, LucideIconData, LucideIconNode } from './types';\n\n/**\n * Creates a React-compatible Lucide icon node (an svgson-like format) from a Lucide icon object.\n *\n * @param icon The icon to build.\n * @param params Additional build parameters.\n */\nfunction buildLucideIconForReact(\n icon: LucideIconData,\n params: LucideBuildParams = {},\n): LucideIconNode {\n return buildLucideIconNode(icon, {\n ...params,\n attributeNames: {\n ...params.attributeNames,\n class: 'className',\n 'stroke-width': 'strokeWidth',\n 'stroke-linecap': 'strokeLinecap',\n 'stroke-linejoin': 'strokeLinejoin',\n 'vector-effect': 'vectorEffect',\n },\n });\n}\n\nexport default buildLucideIconForReact;\n","import { toKebabCase } from './toKebabCase';\nimport type { LucideIconData, LucideIconNode } from '../build/types';\n\n/**\n * Converts legacy `(name, iconNode, aliases?)` icon arguments into icon data object format.\n */\nexport function toLucideIconData(\n iconName: string,\n iconNode: LucideIconNode[],\n aliases: string[] = [],\n): LucideIconData {\n if (iconNode == null) {\n throw new Error('[lucide]: iconNode is required when icon name is used');\n }\n\n return {\n name: toKebabCase(iconName),\n size: 24,\n node: iconNode,\n ...(aliases.length > 0 ? { aliases } : {}),\n };\n}\n","import type { LucideBuildParams, LucideIconData, LucideIconNode, SVGProps } from './types';\nimport defaultAttributes from './defaultAttributes';\nimport { mergeClasses } from '../utils/mergeClasses';\n\nfunction isDefined<T>(value: T | null | undefined): value is T {\n return value !== null && value !== undefined;\n}\n\n/**\n * Creates a Lucide icon node (an svgson-like format) from a Lucide icon object.\n *\n * @param icon The icon to build.\n * @param params Additional build parameters.\n */\nfunction buildLucideIconNode(icon: LucideIconData, params: LucideBuildParams = {}): LucideIconNode {\n const attributeNames = params.attributeNames ?? {};\n const getAttributeName = (attributeName: string) =>\n attributeNames[attributeName] ?? attributeName;\n\n const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes['width'];\n const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes['height'];\n const aliasClassNames =\n icon.aliases\n ?.filter((alias: string): alias is string => typeof alias === 'string' && alias.trim() !== '')\n .map((alias: string) => `lucide-${alias}`) ?? [];\n const iconClassNames = [...(icon.name ? [`lucide-${icon.name}`] : []), ...aliasClassNames];\n const classNamesFromClassName = params.className?.split(' ').filter(Boolean) ?? [];\n const className =\n params.includeDefaultClasses === false\n ? mergeClasses(...classNamesFromClassName)\n : mergeClasses('lucide', ...iconClassNames, ...classNamesFromClassName);\n\n const calculatedStrokeWidth = params.absoluteStrokeWidth\n ? (Number(params.strokeWidth ?? defaultAttributes['stroke-width']) *\n Number(icon.size ?? icon.width ?? defaultAttributes['width'])) /\n Number(params.size ?? params.width ?? defaultAttributes['width'])\n : (params.strokeWidth ?? defaultAttributes['stroke-width']);\n\n const attributes = {\n ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {\n attrs[getAttributeName(attrName)] = value;\n return attrs;\n }, {} as SVGProps),\n ...('color' in params &&\n params.color && {\n [getAttributeName('stroke')]: params.color,\n }),\n ...('size' in params &&\n isDefined(params.size) && {\n [getAttributeName('width')]: params.size,\n [getAttributeName('height')]: params.size,\n }),\n ...('width' in params &&\n isDefined(params.width) && {\n [getAttributeName('width')]: params.width,\n }),\n ...('height' in params &&\n isDefined(params.height) && {\n [getAttributeName('height')]: params.height,\n }),\n [getAttributeName('stroke-width')]: calculatedStrokeWidth,\n ...(className && {\n [getAttributeName('class')]: className,\n }),\n [getAttributeName('viewBox')]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,\n ...(params.hasA11yProp === false\n ? {\n [getAttributeName('aria-hidden')]: 'true',\n }\n : {}),\n ...('attributes' in params && params.attributes),\n };\n\n return [\n 'svg',\n attributes,\n icon.node.map((child): LucideIconNode => {\n const [name, attrs, children] = child;\n const nextAttrs = params.nonScalingStroke\n ? { [getAttributeName('vector-effect')]: 'non-scaling-stroke', ...attrs }\n : attrs;\n\n return children ? [name, nextAttrs, children] : [name, nextAttrs];\n }),\n ];\n}\n\nexport default buildLucideIconNode;\n","import { createElement, forwardRef } from 'react';\nimport { toLucideIconData, toPascalCase } from '@lucide/shared';\nimport { LucideIcon, LucideIconData, LucideIconNode, LucideProps } from './types';\nimport Icon from './Icon';\n\n/**\n * Creates a Lucide icon component from icon data.\n *\n * @param icon Icon data object.\n * @returns Lucide icon component.\n */\nfunction createLucideIcon(icon: LucideIconData): LucideIcon;\n\n/**\n * Creates a Lucide icon component from the legacy icon arguments.\n *\n * @param iconName Icon name.\n * @param iconNode Icon node.\n * @param aliases Optional icon aliases.\n * @returns Lucide icon component.\n */\nfunction createLucideIcon(\n iconName: string,\n iconNode: LucideIconNode[],\n aliases?: string[],\n): LucideIcon;\n\nfunction createLucideIcon(\n iconDataOrName: LucideIconData | string,\n iconNode: LucideIconNode[] = [],\n aliases: string[] = [],\n): LucideIcon {\n const iconData =\n typeof iconDataOrName === 'string'\n ? toLucideIconData(iconDataOrName, iconNode, aliases)\n : iconDataOrName;\n\n const Component = forwardRef<SVGSVGElement, LucideProps>(({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n icon: iconData,\n className,\n ...props,\n }),\n );\n\n if (iconData.name) {\n Component.displayName = toPascalCase(iconData.name);\n }\n\n return Component;\n}\n\nexport default createLucideIcon;\n","'use client';\n\nimport { createElement, forwardRef } from 'react';\nimport { buildLucideIconForReact, hasA11yProp, mergeClasses } from '@lucide/shared';\nimport { LucideIconData, LucideIconNode, LucideProps } from './types';\nimport { useLucideContext } from './context';\n\ntype IconComponentProps = LucideProps &\n (\n | {\n iconNode: LucideIconNode[];\n icon?: never;\n }\n | {\n icon: LucideIconData;\n iconNode?: never;\n }\n );\n\n/**\n * Lucide icon component\n *\n * @component Icon\n * @param {object} props\n * @param {string} props.color - The color of the icon\n * @param {number} props.size - The size of the icon\n * @param {number} props.strokeWidth - The stroke width of the icon\n * @param {boolean} props.absoluteStrokeWidth - Whether to use absolute stroke width\n * @param {boolean} props.nonScalingStroke - Whether to use non scaling strokes\n * @param {string} props.className - The class name of the icon\n * @param {LucideIconNode[]} props.children - The children of the icon\n * @param {LucideIconNode[]} props.iconNode - The icon node of the icon\n *\n * @returns {ForwardRefExoticComponent} LucideIcon\n */\nconst Icon = forwardRef<SVGSVGElement, IconComponentProps>(\n (\n {\n color,\n size,\n width,\n height,\n strokeWidth,\n absoluteStrokeWidth,\n nonScalingStroke,\n className = '',\n children,\n iconNode = [],\n icon = {\n node: iconNode,\n aliases: [],\n size: 24,\n },\n ...rest\n },\n ref,\n ) => {\n const {\n size: contextSize = 24,\n strokeWidth: contextStrokeWidth = 2,\n absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,\n nonScalingStroke: contextNonScalingStroke = false,\n color: contextColor = 'currentColor',\n className: contextClass = '',\n } = useLucideContext() ?? {};\n\n const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);\n\n const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {\n color: color ?? contextColor,\n width: width ?? size ?? contextSize,\n height: height ?? size ?? contextSize,\n strokeWidth: strokeWidth ?? contextStrokeWidth,\n absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,\n nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,\n className: mergeClasses(contextClass, className),\n hasA11yProp: hasAccessibleProp,\n attributes: rest,\n });\n\n return createElement(\n name,\n {\n ref,\n ...svgAttributes,\n },\n [\n ...builtIconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...(Array.isArray(children) ? children : [children]),\n ],\n );\n },\n);\n\nexport default Icon;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'book-open',\n size: 24,\n node: [\n ['path', { d: 'M12 5v16', key: '1f6ucr' }],\n [\n 'path',\n {\n d: 'M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z',\n key: '1fyvmf',\n },\n ],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name BookOpen\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgNXYxNiIgLz4KICA8cGF0aCBkPSJNMjAuMDAxIDE5QTIgMiAwIDAwMjIgMTdWNWEyIDIgMCAwMC0xLjk5OS0yTDE2IDMuMDAyQTUgNSAwIDAwMTIgNWE1IDUgMCAwMC00LTJINGEyIDIgMCAwMC0yIDJ2MTJhMiAyIDAgMDAxLjk5OSAySDhhNSA1IDAgMDE0IDIgNSA1IDAgMDE0LTJ6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/book-open\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst BookOpen = createLucideIcon(__iconData);\n\nexport default BookOpen;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'check',\n size: 24,\n node: [['path', { d: 'M20 6 9 17l-5-5', key: '1gmf2c' }]],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name Check\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/check\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Check = createLucideIcon(__iconData);\n\nexport default Check;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'chevron-right',\n size: 24,\n node: [['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }]],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name ChevronRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtOSAxOCA2LTYtNi02IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/chevron-right\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronRight = createLucideIcon(__iconData);\n\nexport default ChevronRight;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'file-text',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z',\n key: '1oefj6',\n },\n ],\n ['path', { d: 'M14 2v5a1 1 0 0 0 1 1h5', key: 'wfsgrz' }],\n ['path', { d: 'M10 9H8', key: 'b1mrlr' }],\n ['path', { d: 'M16 13H8', key: 't4e002' }],\n ['path', { d: 'M16 17H8', key: 'z1uh3a' }],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name FileText\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNiAyMmEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg4YTIuNCAyLjQgMCAwIDEgMS43MDQuNzA2bDMuNTg4IDMuNTg4QTIuNCAyLjQgMCAwIDEgMjAgOHYxMmEyIDIgMCAwIDEtMiAyeiIgLz4KICA8cGF0aCBkPSJNMTQgMnY1YTEgMSAwIDAgMCAxIDFoNSIgLz4KICA8cGF0aCBkPSJNMTAgOUg4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxM0g4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxN0g4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/file-text\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FileText = createLucideIcon(__iconData);\n\nexport default FileText;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'x',\n size: 24,\n node: [\n ['path', { d: 'M18 6 6 18', key: '1bl5f8' }],\n ['path', { d: 'm6 6 12 12', key: 'd8bk6v' }],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name X\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTggNiA2IDE4IiAvPgogIDxwYXRoIGQ9Im02IDYgMTIgMTIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/x\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst X = createLucideIcon(__iconData);\n\nexport default X;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'settings',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915',\n key: '1i5ecw',\n },\n ],\n ['circle', { cx: '12', cy: '12', r: '3', key: '1v7zrd' }],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name Settings\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOS42NzEgNC4xMzZhMi4zNCAyLjM0IDAgMCAxIDQuNjU5IDAgMi4zNCAyLjM0IDAgMCAwIDMuMzE5IDEuOTE1IDIuMzQgMi4zNCAwIDAgMSAyLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMCAwIDMuODMxIDIuMzQgMi4zNCAwIDAgMS0yLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMC0zLjMxOSAxLjkxNSAyLjM0IDIuMzQgMCAwIDEtNC42NTkgMCAyLjM0IDIuMzQgMCAwIDAtMy4zMi0xLjkxNSAyLjM0IDIuMzQgMCAwIDEtMi4zMy00LjAzMyAyLjM0IDIuMzQgMCAwIDAgMC0zLjgzMUEyLjM0IDIuMzQgMCAwIDEgNi4zNSA2LjA1MWEyLjM0IDIuMzQgMCAwIDAgMy4zMTktMS45MTUiIC8+CiAgPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/settings\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Settings = createLucideIcon(__iconData);\n\nexport default Settings;\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'zap',\n size: 24,\n node: [\n [\n 'path',\n {\n d: 'M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z',\n key: '1v7up4',\n },\n ],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name Zap\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUuOTE0IDRhMS41IDEuNSAwIDAwLTIuNDc0LTEuNTYxbC05IDlBMS41IDEuNSAwIDAwNS41IDE0aDQuMDAyYS41LjUgMCAwMS40NzEuNjY2TDguMDg2IDIwYTEuNSAxLjUgMCAwMDIuNDc1IDEuNTZsOS05QTEuNSAxLjUgMCAwMDE4LjUgMTBoLTMuOTk3YS41LjUgMCAwMS0uNDcyLS42Njd6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/zap\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Zap = createLucideIcon(__iconData);\n\nexport default Zap;\n","let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return process.env.NEXT_SUPPORTS_IMMUTABLE_ASSETS\n ? undefined\n : process.env.NEXT_DEPLOYMENT_ID\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n","import * as React from \"react\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\n\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nconst badgeVariants = cva(\r\n \"inline-flex items-center rounded-full border border-border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-accent focus:ring-offset-2\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"border-transparent bg-accent text-white hover:bg-accent/80\",\r\n secondary:\r\n \"border-transparent bg-surface2 text-txt hover:bg-surface2/80\",\r\n destructive:\r\n \"border-transparent bg-danger text-white hover:bg-danger/80\",\r\n outline: \"text-txt\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n }\r\n)\r\n\r\nexport interface BadgeProps\r\n extends React.HTMLAttributes<HTMLDivElement>,\r\n VariantProps<typeof badgeVariants> {}\r\n\r\nfunction Badge({ className, variant, ...props }: BadgeProps) {\r\n return (\r\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\r\n )\r\n}\r\n\r\nexport { Badge, badgeVariants }\r\n","import * as React from \"react\"\r\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\r\nimport { X } from \"lucide-react\"\r\n\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nconst Dialog = DialogPrimitive.Root\r\n\r\nconst DialogTrigger = DialogPrimitive.Trigger\r\n\r\nconst DialogPortal = DialogPrimitive.Portal\r\n\r\nconst DialogClose = DialogPrimitive.Close\r\n\r\nconst DialogOverlay = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Overlay\r\n ref={ref}\r\n className={cn(\r\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\r\n\r\nconst DialogContent = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\r\n>(({ className, children, ...props }, ref) => (\r\n <DialogPortal>\r\n <DialogOverlay />\r\n <DialogPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-surface p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\r\n className\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-bg transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-surface2 data-[state=open]:text-muted\">\r\n <X className=\"h-4 w-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPortal>\r\n))\r\nDialogContent.displayName = DialogPrimitive.Content.displayName\r\n\r\nconst DialogHeader = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n \"flex flex-col space-y-1.5 text-center sm:text-left\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nDialogHeader.displayName = \"DialogHeader\"\r\n\r\nconst DialogFooter = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nDialogFooter.displayName = \"DialogFooter\"\r\n\r\nconst DialogTitle = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Title\r\n ref={ref}\r\n className={cn(\r\n \"text-lg font-semibold leading-none tracking-tight\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nDialogTitle.displayName = DialogPrimitive.Title.displayName\r\n\r\nconst DialogDescription = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Description\r\n ref={ref}\r\n className={cn(\"text-sm text-muted\", className)}\r\n {...props}\r\n />\r\n))\r\nDialogDescription.displayName = DialogPrimitive.Description.displayName\r\n\r\nexport {\r\n Dialog,\r\n DialogPortal,\r\n DialogOverlay,\r\n DialogClose,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n}\r\n","import * as React from \"react\"\r\n\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\r\n ({ className, type, ...props }, ref) => {\r\n return (\r\n <input\r\n type={type}\r\n className={cn(\r\n \"flex h-10 w-full rounded-md border border-border bg-bg px-3 py-2 text-base ring-offset-bg file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-txt placeholder:text-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nInput.displayName = \"Input\"\r\n\r\nexport { Input }\r\n","\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\r\nimport { cva, type VariantProps } from \"class-variance-authority\"\r\nimport { X } from \"lucide-react\"\r\n\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nconst Sheet = SheetPrimitive.Root\r\n\r\nconst SheetTrigger = SheetPrimitive.Trigger\r\n\r\nconst SheetClose = SheetPrimitive.Close\r\n\r\nconst SheetPortal = SheetPrimitive.Portal\r\n\r\nconst SheetOverlay = React.forwardRef<\r\n React.ElementRef<typeof SheetPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\r\n>(({ className, ...props }, ref) => (\r\n <SheetPrimitive.Overlay\r\n className={cn(\r\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\r\n className\r\n )}\r\n {...props}\r\n ref={ref}\r\n />\r\n))\r\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\r\n\r\nconst sheetVariants = cva(\r\n \"fixed z-50 gap-4 bg-surface p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\r\n {\r\n variants: {\r\n side: {\r\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\r\n bottom:\r\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\r\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\r\n right:\r\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\r\n },\r\n },\r\n defaultVariants: {\r\n side: \"right\",\r\n },\r\n }\r\n)\r\n\r\ninterface SheetContentProps\r\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\r\n VariantProps<typeof sheetVariants> {}\r\n\r\nconst SheetContent = React.forwardRef<\r\n React.ElementRef<typeof SheetPrimitive.Content>,\r\n SheetContentProps\r\n>(({ side = \"right\", className, children, ...props }, ref) => (\r\n <SheetPortal>\r\n <SheetOverlay />\r\n <SheetPrimitive.Content\r\n ref={ref}\r\n className={cn(sheetVariants({ side }), className)}\r\n {...props}\r\n >\r\n {children}\r\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-bg transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-surface2\">\r\n <X className=\"h-4 w-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </SheetPrimitive.Close>\r\n </SheetPrimitive.Content>\r\n </SheetPortal>\r\n))\r\nSheetContent.displayName = SheetPrimitive.Content.displayName\r\n\r\nconst SheetHeader = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n \"flex flex-col space-y-2 text-center sm:text-left\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nSheetHeader.displayName = \"SheetHeader\"\r\n\r\nconst SheetFooter = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n)\r\nSheetFooter.displayName = \"SheetFooter\"\r\n\r\nconst SheetTitle = React.forwardRef<\r\n React.ElementRef<typeof SheetPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\r\n>(({ className, ...props }, ref) => (\r\n <SheetPrimitive.Title\r\n ref={ref}\r\n className={cn(\"text-lg font-semibold text-txt\", className)}\r\n {...props}\r\n />\r\n))\r\nSheetTitle.displayName = SheetPrimitive.Title.displayName\r\n\r\nconst SheetDescription = React.forwardRef<\r\n React.ElementRef<typeof SheetPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\r\n>(({ className, ...props }, ref) => (\r\n <SheetPrimitive.Description\r\n ref={ref}\r\n className={cn(\"text-sm text-muted\", className)}\r\n {...props}\r\n />\r\n))\r\nSheetDescription.displayName = SheetPrimitive.Description.displayName\r\n\r\nexport {\r\n Sheet,\r\n SheetPortal,\r\n SheetOverlay,\r\n SheetTrigger,\r\n SheetClose,\r\n SheetContent,\r\n SheetHeader,\r\n SheetFooter,\r\n SheetTitle,\r\n SheetDescription,\r\n}\r\n","import { DEFAULT_SETTINGS, type AppSettings } from \"./settings\"\n\nexport function applyTheme(theme: AppSettings[\"theme\"]) {\n const html = document.documentElement\n const prefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\").matches\n const useDark = theme === \"dark\" || (theme === \"system\" && prefersDark)\n html.classList.toggle(\"dark\", useDark)\n}\n\nexport function applyAccent(accent: AppSettings[\"accentColor\"]) {\n document.documentElement.setAttribute(\"data-accent\", accent)\n}\n\nexport function applyFontSize(size: AppSettings[\"fontSize\"]) {\n document.documentElement.setAttribute(\"data-font-size\", size)\n}\n\n// Settings saved before fonts existed have no fontSans/fontMono — fall back to defaults.\nexport function applyFonts(settings: Pick<AppSettings, \"fontSans\" | \"fontMono\">) {\n const html = document.documentElement\n html.setAttribute(\"data-font-sans\", settings.fontSans ?? DEFAULT_SETTINGS.fontSans)\n html.setAttribute(\"data-font-mono\", settings.fontMono ?? DEFAULT_SETTINGS.fontMono)\n}\n","export const ASK_AGENT_EVENT = \"vibedoc:ask-agent\"\n\n/** Opens the chat sidebar and sends `message` (layout.tsx opens it, ChatPanel sends). */\nexport function askAgent(message: string) {\n window.dispatchEvent(new CustomEvent(ASK_AGENT_EVENT, { detail: { message } }))\n}\n"],"names":["getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","window","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_SUPPORTS_IMMUTABLE_ASSETS","badgeVariants","variants","variant","default","secondary","destructive","outline","defaultVariants","Badge","className","props","Dialog","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","ref","displayName","DialogContent","children","DialogHeader","DialogFooter","DialogTitle","DialogDescription","Input","type","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","sheetVariants","side","top","bottom","left","right","SheetContent","SheetHeader","SheetFooter","SheetTitle","SheetDescription","applyTheme","theme","html","prefersDark","matchMedia","matches","useDark","classList","toggle","applyAccent","accent","setAttribute","applyFontSize","size","applyFonts","settings","fontSans","fontMono","ASK_AGENT_EVENT","askAgent","message","dispatchEvent","CustomEvent","detail"],"mappings":"wEGOE,CDAA,ACAA,CDAA,ACAA,MDAA,CAAA,CAAA,EAAA,ECC6B,CDDS,CAAA,CAAA,CAAA,CAAA,ACCT,CAAA,ADDgB,ACG/B,CAFe,ACPtB,ADSO,CCTP,ADSO,CAAA,AACyB,ACVhC,ADSO,CACyB,CAAA,CAAA,CAAA,CADzB,AACyB,EAAX,CAAA,CAAA,CAAA,CAAA,CAAA,GACtB,EAAM,CAAA,CAAA,CAAN,AAAM,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,AAAe,CAAA,AAAf,CAAA,AAAe,CAAA,AAAf,CAAe,AAAN,CAAA,AAAM,wBCX5B,CJMP,ACAI,AGNG,CHMH,AGNG,AJMP,yhBADyB,IACzB,CCAA,AGNA,AJMA,AGEI,CHFJ,ACAA,AEEI,ACRJ,CDQI,AFFJ,AGNA,AJMA,CAAA,CGEI,AHFJ,ACAI,GDAO,CCAD,ADAC,AINJ,CAAA,AJMI,CAAA,AGGL,ACTC,EJMY,CINZ,ADSO,CAAA,ACTP,AJOL,CGEY,ACTP,ACQF,ALDH,AINF,AHMA,AKCF,ACHO,AJSF,CCdI,ADSO,CHHK,AGGI,ACThB,ADcJ,CCdI,AJMY,AGGI,CHFZ,CAAA,AGQR,AFRC,AICO,AEHG,CJUX,AFRC,AICO,AEHG,APEH,CGQR,AIVW,ANEV,AICO,ALDA,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3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]}
@@ -1,21 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,479432,e=>{"use strict";var t=e.i(83790);let s={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};s.node;let a=(0,t.default)(s);e.s(["Bot",0,a],479432)},609617,458055,e=>{"use strict";var t=e.i(83790);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let a=(0,t.default)(s);e.s(["Copy",0,a],609617);let l={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};l.node;let n=(0,t.default)(l);e.s(["Trash2",0,n],458055)},240595,e=>{"use strict";var t=e.i(83790);let s={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};s.node;let a=(0,t.default)(s);e.s(["Loader2",0,a],240595)},424991,e=>{"use strict";var t=e.i(83790);let s={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};s.node;let a=(0,t.default)(s);e.s(["Pencil",0,a],424991)},155515,e=>{"use strict";var t=e.i(83790);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],155515)},785821,e=>{"use strict";var t=e.i(72345),s=e.i(180338),a=e.i(763371),l=e.i(83790);let n={name:"palette",size:24,node:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]};n.node;let c=(0,l.default)(n),i={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};i.node;let r=(0,l.default)(i),d={name:"folder-cog",size:24,node:[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],aliases:["folder-cog-2"]};d.node;let o=(0,l.default)(d),x={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};x.node;let m=(0,l.default)(x);var h=e.i(788293),u=e.i(479432),p=e.i(463464),b=e.i(975157);let g={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};g.node;let f=(0,l.default)(g),v={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};v.node;let j=(0,l.default)(v),N={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};N.node;let y=(0,l.default)(N);var k=e.i(837001),w=e.i(243668);let C=[{id:"blue",label:"Blue",class:"bg-blue-500"},{id:"purple",label:"Purple",class:"bg-purple-500"},{id:"green",label:"Green",class:"bg-green-500"},{id:"orange",label:"Orange",class:"bg-orange-500"}],S=[{id:"small",label:"Small"},{id:"medium",label:"Medium"},{id:"large",label:"Large"}];function T({settings:e,onSave:s}){return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Appearance"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Customize the look and feel of the app."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Theme"}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{id:"dark",label:"Dark",icon:f},{id:"light",label:"Light",icon:j},{id:"system",label:"System",icon:y}].map(a=>{let l=a.icon,n=e.theme===a.id;return(0,t.jsxs)("button",{onClick:()=>s({...e,theme:a.id}),className:(0,b.cn)("flex flex-col items-center gap-2 p-4 rounded-lg border transition-colors",n?"border-accent bg-accent/10":"border-border hover:border-accent/50"),children:[(0,t.jsx)(l,{className:(0,b.cn)("w-5 h-5",n?"text-accent":"text-muted")}),(0,t.jsx)("span",{className:(0,b.cn)("text-sm",n?"text-accent font-medium":"text-muted"),children:a.label})]},a.id)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Accent Color"}),(0,t.jsx)("div",{className:"flex gap-3",children:C.map(a=>{let l=e.accentColor===a.id;return(0,t.jsx)("button",{onClick:()=>s({...e,accentColor:a.id}),className:(0,b.cn)("w-10 h-10 rounded-full flex items-center justify-center transition-transform",a.class,l?"ring-2 ring-offset-2 ring-offset-bg ring-white scale-110":"hover:scale-105"),title:a.label,children:l&&(0,t.jsx)(k.Check,{className:"w-5 h-5 text-white"})},a.id)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Font Size"}),(0,t.jsx)("div",{className:"flex gap-2",children:S.map(a=>{let l=e.fontSize===a.id;return(0,t.jsx)("button",{onClick:()=>s({...e,fontSize:a.id}),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:a.label},a.id)})})]}),[{key:"fontSans",label:"Interface Font",fonts:w.SANS_FONTS,fallback:"system-ui",sample:"Ship the roadmap by Friday"},{key:"fontMono",label:"Code Font",fonts:w.MONO_FONTS,fallback:"ui-monospace, Menlo, Consolas, monospace",sample:"const id = 0O1lI;"}].map(a=>(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:a.label}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:a.fonts.map(l=>{let n=e[a.key]===l.id;return(0,t.jsxs)("button",{onClick:()=>s({...e,[a.key]:l.id}),className:(0,b.cn)("text-left p-3 rounded-lg border transition-colors",n?"border-accent bg-accent/10":"border-border hover:border-accent/50"),children:[(0,t.jsx)("div",{className:"text-base text-txt truncate",style:{fontFamily:"system"===l.id?a.fallback:`var(--font-${l.id})`},children:a.sample}),(0,t.jsx)("div",{className:(0,b.cn)("mt-1 text-xs",n?"text-accent font-medium":"text-txt"),children:l.label}),(0,t.jsx)("div",{className:"text-xs text-muted",children:l.note})]},l.id)})})]},a.key))]})}let M=[{value:0,label:"Off"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}],A=[{id:"split",label:"Split View"},{id:"tab",label:"Tab View"},{id:"preview",label:"Preview Only"}];function z({settings:e,onSave:s}){let a=(t,a)=>{s({...e,editor:{...e.editor,[t]:a}})};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Editor"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure the markdown editor behavior."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Auto-save"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:M.map(s=>{let l=e.editor.autoSave===s.value;return(0,t.jsx)("button",{onClick:()=>a("autoSave",s.value),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.value)})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Preview Mode"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:A.map(s=>{let l=e.editor.previewMode===s.id;return(0,t.jsx)("button",{onClick:()=>a("previewMode",s.id),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.id)})})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Word Wrap"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Wrap long lines in the editor"})]}),(0,t.jsx)("button",{onClick:()=>a("wordWrap",!e.editor.wordWrap),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.editor.wordWrap?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.editor.wordWrap?"left-6":"left-1")})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Line Numbers"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Show line numbers in the editor"})]}),(0,t.jsx)("button",{onClick:()=>a("lineNumbers",!e.editor.lineNumbers),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.editor.lineNumbers?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.editor.lineNumbers?"left-6":"left-1")})})]})]})]})}let I=[{value:0,label:"Off"},{value:5,label:"5 seconds"},{value:10,label:"10 seconds"},{value:30,label:"30 seconds"}];function _({settings:e,onSave:s}){let a=(t,a)=>{s({...e,project:{...e.project,[t]:a}})};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Project"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure project-level settings."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Auto-refresh Interval"}),(0,t.jsx)("p",{className:"text-xs text-muted",children:"How often to check for changes in the project files."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:I.map(s=>{let l=e.project.autoRefresh===s.value;return(0,t.jsx)("button",{onClick:()=>a("autoRefresh",s.value),className:(0,b.cn)("px-4 py-2 rounded-lg border text-sm transition-colors",l?"border-accent bg-accent/10 text-accent font-medium":"border-border text-muted hover:border-accent/50"),children:s.label},s.value)})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:"Show Hidden Files"}),(0,t.jsx)("div",{className:"text-xs text-muted",children:"Display files starting with a dot"})]}),(0,t.jsx)("button",{onClick:()=>a("showHidden",!e.project.showHidden),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.project.showHidden?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.project.showHidden?"left-6":"left-1")})})]})]})}var P=e.i(765470),O=e.i(609617),F=e.i(240595),D=e.i(793479);let E={"claude-code":{name:"Claude Code",config:`{
2
- "mcpServers": {
3
- "vibedoc": {
4
- "url": "{{ENDPOINT}}"
5
- }
6
- }
7
- }`,path:"~/.claude/claude.json"},cursor:{name:"Cursor",config:`{
8
- "mcp": {
9
- "servers": {
10
- "vibedoc": {
11
- "url": "{{ENDPOINT}}"
12
- }
13
- }
14
- }
15
- }`,path:".cursor/mcp.json"},windsurf:{name:"Windsurf",config:`{
16
- "mcpServers": {
17
- "vibedoc": {
18
- "url": "{{ENDPOINT}}"
19
- }
20
- }
21
- }`,path:".windsurf/mcp.json"}};function L({settings:e,onSave:a}){let[l,n]=(0,s.useState)(!1),[c,i]=(0,s.useState)(null),[r,d]=(0,s.useState)(null),o=async()=>{n(!0),i(null);try{(await fetch(e.mcp.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"tools/list"})})).ok?i("success"):i("error")}catch{i("error")}n(!1)},x=async t=>{let s=E[t].config.replace("{{ENDPOINT}}",e.mcp.endpoint);await navigator.clipboard.writeText(s),d(t),setTimeout(()=>d(null),2e3)};return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"MCP Connection"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Configure the Model Context Protocol server for AI agents."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"MCP Endpoint"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(D.Input,{value:e.mcp.endpoint,onChange:t=>{var s;return s=t.target.value,void a({...e,mcp:{...e.mcp,endpoint:s}})},className:"bg-surface2 font-mono text-sm"}),(0,t.jsxs)("button",{onClick:o,disabled:l,className:"px-4 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50 flex items-center gap-2",children:[l?(0,t.jsx)(F.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(m,{className:"w-4 h-4"}),"Test"]})]}),c&&(0,t.jsx)("div",{className:(0,b.cn)("flex items-center gap-2 text-sm","success"===c?"text-green-400":"text-red-400"),children:"success"===c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Connection successful"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.X,{className:"w-4 h-4"}),"Connection failed"]})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-txt",children:"Agent Configuration"}),(0,t.jsx)("p",{className:"text-xs text-muted",children:"Copy the configuration for your coding agent:"}),(0,t.jsx)("div",{className:"space-y-2",children:Object.entries(E).map(([e,s])=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 border border-border rounded-lg",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-txt",children:s.name}),(0,t.jsx)("div",{className:"text-xs text-muted font-mono",children:s.path})]}),(0,t.jsx)("button",{onClick:()=>x(e),className:(0,b.cn)("flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm transition-colors",r===e?"bg-green-500/20 text-green-400":"bg-surface2 text-muted hover:text-txt"),children:r===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Check,{className:"w-3.5 h-3.5"}),"Copied"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.Copy,{className:"w-3.5 h-3.5"}),"Copy"]})})]},e))})]})]})}var U=e.i(155515),V=e.i(424991),H=e.i(458055);let W=["vibedoc_read_doc","vibedoc_write_doc","vibedoc_search_docs","vibedoc_list_docs","vibedoc_get_status","vibedoc_list_tasks","vibedoc_update_task","vibedoc_read_memory","vibedoc_update_memory"],$=["🔧","📝","🧪","🔍","📊","🔒","⚡","🎯","💡","🚀"];function B({skills:e,onSave:a}){let[l,n]=(0,s.useState)(null),[c,i]=(0,s.useState)(null),[r,d]=(0,s.useState)(!1),o=()=>{n(null),i(null),d(!1)},x=()=>{c&&c.name.trim()&&(r?a([...e,c]):a(e.map(e=>e.id===c.id?c:e)),o())},m=e=>{if(!c)return;let t=c.tools.includes(e)?c.tools.filter(t=>t!==e):[...c.tools,e];i({...c,tools:t})};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Skills"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"Reusable capabilities for AI agents."})]}),(0,t.jsxs)("button",{onClick:()=>{let e={id:`skill-${Date.now()}`,name:"",description:"",trigger:"/",prompt:"",tools:[],icon:"⚡"};n(e.id),i(e),d(!0)},className:"flex items-center gap-2 px-3 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors",children:[(0,t.jsx)(U.Plus,{className:"w-4 h-4"}),"Add Skill"]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[e.map(s=>(0,t.jsx)("div",{children:l===s.id&&c?(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:c.icon||"⚡",onChange:e=>i({...c,icon:e.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:$.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:c.name,onChange:e=>i({...c,name:e.target.value}),placeholder:"Skill name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:c.description,onChange:e=>i({...c,description:e.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Trigger"}),(0,t.jsx)(D.Input,{value:c.trigger,onChange:e=>i({...c,trigger:e.target.value}),placeholder:"/command",className:"bg-surface2 font-mono"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"System Prompt"}),(0,t.jsx)("textarea",{value:c.prompt,onChange:e=>i({...c,prompt:e.target.value}),placeholder:"Instructions for the AI when this skill is activated...",rows:4,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Available Tools"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:W.map(e=>(0,t.jsx)("button",{onClick:()=>m(e),className:(0,b.cn)("px-2 py-1 rounded-sm text-xs font-mono transition-colors",c.tools.includes(e)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{onClick:o,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:x,disabled:!c.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]}):(0,t.jsxs)("div",{className:"flex items-start gap-3 p-4 border border-border rounded-lg hover:border-accent/30 transition-colors group",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg bg-surface2 flex items-center justify-center text-xl shrink-0",children:s.icon||"⚡"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-txt",children:s.name}),(0,t.jsx)("code",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-accent",children:s.trigger})]}),(0,t.jsx)("p",{className:"text-sm text-muted mt-0.5",children:s.description}),s.tools.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:s.tools.map(e=>(0,t.jsx)("span",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)("button",{onClick:()=>{n(s.id),i({...s}),d(!1)},className:"p-1.5 rounded-sm hover:bg-surface2 text-muted hover:text-txt transition-colors",children:(0,t.jsx)(V.Pencil,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void(confirm("Delete this skill?")&&a(e.filter(e=>e.id!==t)))},className:"p-1.5 rounded-sm hover:bg-red-500/10 text-muted hover:text-red-400 transition-colors",children:(0,t.jsx)(H.Trash2,{className:"w-4 h-4"})})]})]})},s.id)),r&&c&&(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:c.icon||"⚡",onChange:e=>i({...c,icon:e.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:$.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:c.name,onChange:e=>i({...c,name:e.target.value}),placeholder:"Skill name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:c.description,onChange:e=>i({...c,description:e.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsx)("div",{className:"flex gap-3",children:(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Trigger"}),(0,t.jsx)(D.Input,{value:c.trigger,onChange:e=>i({...c,trigger:e.target.value}),placeholder:"/command",className:"bg-surface2 font-mono"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"System Prompt"}),(0,t.jsx)("textarea",{value:c.prompt,onChange:e=>i({...c,prompt:e.target.value}),placeholder:"Instructions for the AI when this skill is activated...",rows:4,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Available Tools"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:W.map(e=>(0,t.jsx)("button",{onClick:()=>m(e),className:(0,b.cn)("px-2 py-1 rounded-sm text-xs font-mono transition-colors",c.tools.includes(e)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:e.replace("vibedoc_","")},e))})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{onClick:o,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:x,disabled:!c.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]}),0===e.length&&!r&&(0,t.jsxs)("div",{className:"text-center py-8 text-muted",children:[(0,t.jsx)(h.Zap,{className:"w-10 h-10 mx-auto mb-3 opacity-30"}),(0,t.jsx)("p",{className:"text-sm",children:"No skills configured"}),(0,t.jsx)("p",{className:"text-xs mt-1",children:"Add a skill to give your agents capabilities"})]})]})]})}let R=["🤖","📚","🔒","🧪","📝","🔧","💡","🎯","🚀","⚡"];function q({agents:e,skills:a,onSave:l}){let[n,c]=(0,s.useState)(null),[i,r]=(0,s.useState)(null),[d,o]=(0,s.useState)(!1),x=()=>{c(null),r(null),o(!1)},m=()=>{i&&i.name.trim()&&(d?l([...e,i]):l(e.map(e=>e.id===i.id?i:e)),x())},h=e=>(0,t.jsxs)("div",{className:"border border-accent rounded-lg p-4 space-y-4 bg-accent/5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("select",{value:e.icon,onChange:t=>r({...e,icon:t.target.value}),className:"w-12 h-10 text-center text-xl bg-surface2 border border-border rounded-lg",children:R.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)(D.Input,{value:e.name,onChange:t=>r({...e,name:t.target.value}),placeholder:"Agent name",className:"bg-surface2"})]}),(0,t.jsx)(D.Input,{value:e.description,onChange:t=>r({...e,description:t.target.value}),placeholder:"Description",className:"bg-surface2"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-2 block",children:"Assigned Skills"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[a.map(s=>(0,t.jsxs)("button",{onClick:()=>(e=>{if(!i)return;let t=i.skills.includes(e)?i.skills.filter(t=>t!==e):[...i.skills,e];r({...i,skills:t})})(s.id),className:(0,b.cn)("flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-sm transition-colors",e.skills.includes(s.id)?"bg-accent/20 text-accent":"bg-surface2 text-muted hover:text-txt"),children:[(0,t.jsx)("span",{children:s.icon||"⚡"}),s.name]},s.id)),0===a.length&&(0,t.jsx)("span",{className:"text-xs text-muted",children:"No skills available. Create skills first."})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs text-muted mb-1 block",children:"Custom System Prompt"}),(0,t.jsx)("textarea",{value:e.prompt,onChange:t=>r({...e,prompt:t.target.value}),placeholder:"Additional instructions for this agent...",rows:3,className:"w-full px-3 py-2 bg-surface2 border border-border rounded-lg text-sm resize-none"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>r({...e,active:!e.active}),className:(0,b.cn)("w-11 h-6 rounded-full transition-colors relative",e.active?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",e.active?"left-6":"left-1")})}),(0,t.jsx)("span",{className:"text-sm text-muted",children:e.active?"Active":"Inactive"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:x,className:"px-3 py-1.5 text-sm text-muted hover:text-txt transition-colors",children:"Cancel"}),(0,t.jsxs)("button",{onClick:m,disabled:!e.name.trim(),className:"flex items-center gap-2 px-3 py-1.5 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors disabled:opacity-50",children:[(0,t.jsx)(k.Check,{className:"w-4 h-4"}),"Save"]})]})]})]});return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-txt mb-1",children:"Agents"}),(0,t.jsx)("p",{className:"text-sm text-muted",children:"AI agent profiles with assigned skills."})]}),(0,t.jsxs)("button",{onClick:()=>{let e={id:`agent-${Date.now()}`,name:"",icon:"🤖",description:"",skills:[],prompt:"",active:!0};c(e.id),r(e),o(!0)},className:"flex items-center gap-2 px-3 py-2 bg-accent text-white rounded-lg text-sm font-medium hover:bg-accent/90 transition-colors",children:[(0,t.jsx)(U.Plus,{className:"w-4 h-4"}),"Add Agent"]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[e.map(s=>(0,t.jsx)("div",{children:n===s.id&&i?h(i):(0,t.jsxs)("div",{className:(0,b.cn)("flex items-start gap-3 p-4 border rounded-lg transition-colors group",s.active?"border-border hover:border-accent/30":"border-border/50 opacity-60"),children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg bg-surface2 flex items-center justify-center text-xl shrink-0",children:s.icon}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-txt",children:s.name}),!s.active&&(0,t.jsx)("span",{className:"text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:"Inactive"})]}),(0,t.jsx)("p",{className:"text-sm text-muted mt-0.5",children:s.description}),s.skills.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:s.skills.map(e=>{let s=a.find(t=>t.id===e);return s?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs bg-surface2 px-1.5 py-0.5 rounded-sm text-muted",children:[s.icon," ",s.name]},e):null})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void l(e.map(e=>e.id===t?{...e,active:!e.active}:e))},className:(0,b.cn)("w-9 h-5 rounded-full transition-colors relative",s.active?"bg-accent":"bg-border"),children:(0,t.jsx)("span",{className:(0,b.cn)("absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform",s.active?"left-4":"left-0.5")})}),(0,t.jsxs)("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,t.jsx)("button",{onClick:()=>{c(s.id),r({...s}),o(!1)},className:"p-1.5 rounded-sm hover:bg-surface2 text-muted hover:text-txt transition-colors",children:(0,t.jsx)(V.Pencil,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:()=>{var t;return t=s.id,void(confirm("Delete this agent?")&&l(e.filter(e=>e.id!==t)))},className:"p-1.5 rounded-sm hover:bg-red-500/10 text-muted hover:text-red-400 transition-colors",children:(0,t.jsx)(H.Trash2,{className:"w-4 h-4"})})]})]})]})},s.id)),d&&i&&h(i),0===e.length&&!d&&(0,t.jsxs)("div",{className:"text-center py-8 text-muted",children:[(0,t.jsx)(u.Bot,{className:"w-10 h-10 mx-auto mb-3 opacity-30"}),(0,t.jsx)("p",{className:"text-sm",children:"No agents configured"}),(0,t.jsx)("p",{className:"text-xs mt-1",children:"Add an agent to define AI personas with skills"})]})]})]})}var G=e.i(573009);let J=[{id:"appearance",label:"Appearance",icon:c},{id:"editor",label:"Editor",icon:r},{id:"project",label:"Project",icon:o},{id:"mcp",label:"MCP",icon:m},{id:"skills",label:"Skills",icon:h.Zap},{id:"agents",label:"Agents",icon:u.Bot}];e.s(["default",0,function(){let{rootParam:e,setEditorSettings:l,setAutoRefreshSeconds:n}=(0,a.useApp)(),[c,i]=(0,s.useState)("appearance"),[r,d]=(0,s.useState)(w.DEFAULT_SETTINGS),[o,x]=(0,s.useState)(w.DEFAULT_SKILLS),[m,h]=(0,s.useState)(w.DEFAULT_AGENTS),[u,g]=(0,s.useState)(!0),[f,v]=(0,s.useState)(!1),j=(0,s.useCallback)(async()=>{try{let t=await fetch(`/api/settings${e}&type=all`),s=await t.json();d({...w.DEFAULT_SETTINGS,...s.settings}),x(s.skills||w.DEFAULT_SKILLS),h(s.agents||w.DEFAULT_AGENTS)}catch{}g(!1)},[e]);(0,s.useEffect)(()=>{j()},[j]);let N=async t=>{v(!0),d(t);try{await fetch(`/api/settings${e}&type=settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),(0,G.applyTheme)(t.theme),(0,G.applyAccent)(t.accentColor),(0,G.applyFontSize)(t.fontSize),(0,G.applyFonts)(t),l(t.editor),n(t.project?.autoRefresh??0)}catch{}v(!1)},y=async t=>{v(!0),x(t);try{await fetch(`/api/settings${e}&type=skills`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch{}v(!1)},k=async t=>{v(!0),h(t);try{await fetch(`/api/settings${e}&type=agents`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch{}v(!1)};return u?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)("div",{className:"text-muted",children:"Loading settings..."})}):(0,t.jsxs)("div",{className:"flex h-full",children:[(0,t.jsxs)("aside",{className:"w-56 border-r border-border bg-sidebar shrink-0",children:[(0,t.jsx)("div",{className:"p-4 border-b border-border",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Settings,{className:"w-5 h-5 text-accent"}),(0,t.jsx)("h1",{className:"font-semibold text-txt",children:"Settings"})]})}),(0,t.jsx)("nav",{className:"p-2",children:J.map(e=>{let s=e.icon;return(0,t.jsxs)("button",{onClick:()=>i(e.id),className:(0,b.cn)("w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors",c===e.id?"bg-accent/10 text-accent font-medium":"text-muted hover:text-txt hover:bg-surface2"),children:[(0,t.jsx)(s,{className:"w-4 h-4"}),e.label]},e.id)})})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsxs)("div",{className:"max-w-2xl mx-auto p-6",children:[f&&(0,t.jsx)("div",{className:"fixed top-4 right-4 bg-accent text-white px-3 py-1.5 rounded-lg text-sm shadow-lg",children:"Saving..."}),"appearance"===c&&(0,t.jsx)(T,{settings:r,onSave:N}),"editor"===c&&(0,t.jsx)(z,{settings:r,onSave:N}),"project"===c&&(0,t.jsx)(_,{settings:r,onSave:N}),"mcp"===c&&(0,t.jsx)(L,{settings:r,onSave:N}),"skills"===c&&(0,t.jsx)(B,{skills:o,onSave:y}),"agents"===c&&(0,t.jsx)(q,{agents:m,skills:o,onSave:k})]})})]})}],785821)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,910172,(e,o,r)=>{o.exports=e.r(814772)},763371,243668,7284,975157,e=>{"use strict";let o,r,t,n,s;var a,l=e.i(72345),i=e.i(180338),c=e.i(399531),d=e.i(910172);let m={theme:"dark",accentColor:"blue",fontSize:"medium",fontSans:"geist",fontMono:"geist-mono",editor:{autoSave:10,wordWrap:!0,lineNumbers:!0,previewMode:"split"},project:{autoRefresh:10,showHidden:!1},mcp:{endpoint:"http://localhost:3000/api/mcp"}};e.s(["DEFAULT_AGENTS",0,[{id:"code-assistant",name:"Code Assistant",icon:"🤖",description:"General-purpose coding help",skills:["code-review","test-writer"],prompt:"You are a helpful coding assistant. Help the user with their coding tasks.",active:!0},{id:"doc-bot",name:"Documentation Bot",icon:"📚",description:"Focused on docs and comments",skills:["doc-generator"],prompt:"You are a documentation specialist. Focus on creating and improving documentation.",active:!0}],"DEFAULT_SETTINGS",0,m,"DEFAULT_SKILLS",0,[{id:"code-review",name:"Code Review",description:"Analyzes code for quality, security, and performance issues",trigger:"/review",prompt:"You are an expert code reviewer. Analyze the provided code for:\n- Code quality and best practices\n- Security vulnerabilities\n- Performance issues\n- Maintainability concerns\n\nProvide actionable feedback.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"🔧"},{id:"doc-generator",name:"Documentation Generator",description:"Creates documentation from code and comments",trigger:"/docs",prompt:"You are a technical documentation writer. Generate clear, comprehensive documentation for the provided code or feature.",tools:["vibedoc_read_doc","vibedoc_write_doc"],icon:"📝"},{id:"test-writer",name:"Test Writer",description:"Generates unit tests for functions and components",trigger:"/test",prompt:"You are a testing expert. Write comprehensive unit tests for the provided code, covering edge cases and ensuring good test coverage.",tools:["vibedoc_read_doc","vibedoc_search_docs"],icon:"🧪"}],"MONO_FONTS",0,[{id:"geist-mono",label:"Geist Mono",note:"Pairs with Geist."},{id:"jetbrains-mono",label:"JetBrains Mono",note:"Tall letters, made for code."},{id:"ibm-plex-mono",label:"IBM Plex Mono",note:"Pairs with IBM Plex Sans."},{id:"dm-mono",label:"DM Mono",note:"The previous default."},{id:"system",label:"System",note:"Your OS monospace font."}],"SANS_FONTS",0,[{id:"geist",label:"Geist",note:"Made for developer tools. Clean and neutral."},{id:"inter",label:"Inter",note:"The standard UI font. Very clear at small sizes."},{id:"ibm-plex-sans",label:"IBM Plex Sans",note:"Warm and humanist. Good for long reading."},{id:"atkinson",label:"Atkinson Hyperlegible",note:"Letters are easy to tell apart. Best for legibility."},{id:"dm-sans",label:"DM Sans",note:"Geometric. The previous default."},{id:"system",label:"System",note:"Your OS font. Nothing to download."}]],243668);let p=(0,i.createContext)(null);function b(){for(var e,o,r=0,t="",n=arguments.length;r<n;r++)(e=arguments[r])&&(o=function e(o){var r,t,n="";if("string"==typeof o||"number"==typeof o)n+=o;else if("object"==typeof o)if(Array.isArray(o)){var s=o.length;for(r=0;r<s;r++)o[r]&&(t=e(o[r]))&&(n&&(n+=" "),n+=t)}else for(t in o)o[t]&&(n&&(n+=" "),n+=t);return n}(e))&&(t&&(t+=" "),t+=o);return t}e.s(["AppProvider",0,function({children:e}){let o=(0,d.useRouter)(),[r,t]=(0,i.useState)([]),[n,s]=(0,i.useState)(""),[a,b]=(0,i.useState)(null),[u,f]=(0,i.useState)(null),[g,h]=(0,i.useState)([]),[k,w]=(0,i.useState)(!0),[v,x]=(0,i.useState)(!1),[y,z]=(0,i.useState)(null),[S,j]=(0,i.useState)(m.editor),[C,G]=(0,i.useState)(0),T=(0,i.useRef)(null),_=n?`?root=${encodeURIComponent(n)}`:"",A=(0,i.useCallback)(async e=>{let o=e||n;if(!o)return;let r=`?root=${encodeURIComponent(o)}`;try{let[e,o,t]=await Promise.all([fetch(`/api/summary${r}`).then(e=>e.json()),fetch(`/api/tasks${r}`).then(e=>e.json()),fetch(`/api/activity${r}&limit=30`).then(e=>e.json())]);b(e);let n=o?.board;f(n&&"object"==typeof n?{todo:n.todo??[],"in-progress":n["in-progress"]??[],blocked:n.blocked??[],done:n.done??[],cancelled:n.cancelled??[]}:null),h(Array.isArray(t)?t:[])}catch{}w(!1)},[n]);(0,i.useEffect)(()=>{fetch("/api/projects").then(e=>e.json()).then(e=>{t(e),e.length>0?(s(e[0].root),A(e[0].root)):w(!1)}).catch(()=>w(!1))},[]),(0,i.useEffect)(()=>{if(!n)return;let e=new EventSource("/api/events");return T.current=e,e.onmessage=e=>{try{let o=JSON.parse(e.data);if("connected"===o.type)return;window.dispatchEvent(new CustomEvent("vibedoc:sse",{detail:o})),x(!0),setTimeout(()=>x(!1),2e3),["task_updated","task_created","decision_logged","memory_updated","session_start"].includes(o.type)&&A()}catch{}},()=>{e.close()}},[n,A]);let M=(0,i.useCallback)(async(e,o)=>{let r=()=>f(r=>{let t;if(!r)return r;let n=structuredClone(r);for(let r of Object.keys(n)){let s=n[r].findIndex(o=>o.id===e);-1!==s&&(t={...n[r][s],status:o},n[r]=n[r].filter(o=>o.id!==e))}return t&&n[o]&&(n[o]=[...n[o],t].sort((e,o)=>e.file<o.file?-1:+(e.file>o.file))),n});"u">typeof document&&"startViewTransition"in document?document.startViewTransition(()=>(0,c.flushSync)(r)):r();try{await fetch(`/api/tasks${_}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taskId:e,status:o,actor:"human"})}),A()}catch{A()}},[_,A]),O=(0,i.useCallback)(async e=>{let r=await fetch(`/api/docs${_}&read=${encodeURIComponent(e)}`);z(await r.json()),o.push("/docs")},[_,o]);return(0,l.jsx)(p.Provider,{value:{projects:r,activeProject:n,summary:a,board:u,activity:g,liveIndicator:v,loading:k,selectedDoc:y,setSelectedDoc:z,rootParam:_,onProjectChange:function(e){s(e),A(e)},refresh:A,moveTask:M,openDoc:O,editorSettings:S,setEditorSettings:j,autoRefreshSeconds:C,setAutoRefreshSeconds:G},children:e})},"useApp",0,function(){let e=(0,i.useContext)(p);if(!e)throw Error("useApp must be used inside AppProvider");return e}],763371),e.s(["clsx",0,b],7284);let u=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),f=[],g=(e,o,r)=>{if(0==e.length-o)return r.classGroupId;let t=e[o],n=r.nextPart.get(t);if(n){let r=g(e,o+1,n);if(r)return r}let s=r.validators;if(null===s)return;let a=0===o?e.join("-"):e.slice(o).join("-"),l=s.length;for(let e=0;e<l;e++){let o=s[e];if(o.validator(a))return o.classGroupId}},h=(e,o)=>{let r=u();for(let t in e)k(e[t],r,t,o);return r},k=(e,o,r,t)=>{let n=e.length;for(let s=0;s<n;s++)w(e[s],o,r,t)},w=(e,o,r,t)=>{"string"==typeof e?v(e,o,r):"function"==typeof e?x(e,o,r,t):y(e,o,r,t)},v=(e,o,r)=>{(""===e?o:z(o,e)).classGroupId=r},x=(e,o,r,t)=>{S(e)?k(e(t),o,r,t):(null===o.validators&&(o.validators=[]),o.validators.push({classGroupId:r,validator:e}))},y=(e,o,r,t)=>{let n=Object.entries(e),s=n.length;for(let e=0;e<s;e++){let[s,a]=n[e];k(a,z(o,s),r,t)}},z=(e,o)=>{let r=e,t=o.split("-"),n=t.length;for(let e=0;e<n;e++){let o=t[e],n=r.nextPart.get(o);n||(n=u(),r.nextPart.set(o,n)),r=n}return r},S=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,j=[],C=(e,o,r,t,n)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:t,isExternal:n}),G=/\s+/,T=e=>{let o;if("string"==typeof e)return e;let r="";for(let t=0;t<e.length;t++)e[t]&&(o=T(e[t]))&&(r&&(r+=" "),r+=o);return r},_=[],A=e=>{let o=o=>o[e]||_;return o.isThemeGetter=!0,o.themeKey=e,o},M=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,O=/^\((?:(\w[\w-]*):)?(.+)\)$/i,I=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,W=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>I.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),U=e=>!!e&&Number.isInteger(Number(e)),B=e=>e.endsWith("%")&&R(e.slice(0,-1)),D=e=>N.test(e),F=()=>!0,Y=e=>P.test(e)&&!$.test(e),q=()=>!1,K=e=>W.test(e),H=e=>E.test(e),J=e=>!X(e)&&!ea(e),V=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Q=e=>eu(e,ek,q),X=e=>M.test(e),Z=e=>eu(e,ew,Y),ee=e=>eu(e,ev,R),eo=e=>eu(e,ey,F),er=e=>eu(e,ex,q),et=e=>eu(e,eg,q),en=e=>eu(e,eh,H),es=e=>eu(e,ez,K),ea=e=>O.test(e),el=e=>ef(e,ew),ei=e=>ef(e,ex),ec=e=>ef(e,eg),ed=e=>ef(e,ek),em=e=>ef(e,eh),ep=e=>ef(e,ez,!0),eb=e=>ef(e,ey,!0),eu=(e,o,r)=>{let t=M.exec(e);return!!t&&(t[1]?o(t[1]):r(t[2]))},ef=(e,o,r=!1)=>{let t=O.exec(e);return!!t&&(t[1]?o(t[1]):r)},eg=e=>"position"===e||"percentage"===e,eh=e=>"image"===e||"url"===e,ek=e=>"length"===e||"size"===e||"bg-size"===e,ew=e=>"length"===e,ev=e=>"number"===e,ex=e=>"family-name"===e,ey=e=>"number"===e||"weight"===e,ez=e=>"shadow"===e,eS=(a=()=>{let e=A("color"),o=A("font"),r=A("text"),t=A("font-weight"),n=A("tracking"),s=A("leading"),a=A("breakpoint"),l=A("container"),i=A("spacing"),c=A("radius"),d=A("shadow"),m=A("inset-shadow"),p=A("text-shadow"),b=A("drop-shadow"),u=A("blur"),f=A("perspective"),g=A("aspect"),h=A("ease"),k=A("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...v(),ea,X],y=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],S=()=>[ea,X,i],j=()=>[L,"full","auto",...S()],C=()=>[U,"none","subgrid",ea,X],G=()=>["auto",{span:["full",U,ea,X]},U,ea,X],T=()=>[U,"auto",ea,X],_=()=>["auto","min","max","fr",ea,X],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...S()],N=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],P=()=>[l,L,"screen","full","dvw","lvw","svw","min","max","fit",...S()],$=()=>[L,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],W=()=>[e,ea,X],E=()=>[...v(),ec,et,{position:[ea,X]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",ed,Q,{size:[ea,X]}],K=()=>[B,el,Z],H=()=>["","none","full",c,ea,X],eu=()=>["",R,el,Z],ef=()=>["solid","dashed","dotted","double"],eg=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[R,B,ec,et],ek=()=>["","none",u,ea,X],ew=()=>["none",R,ea,X],ev=()=>["none",R,ea,X],ex=()=>[R,ea,X],ey=()=>[L,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[F],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[J],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",R],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,X,ea,g]}],container:["container"],"container-type":[{"@container":["","normal","size",ea,X]}],"container-named":[V],columns:[{columns:[R,"auto",X,ea,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[U,"auto",ea,X]}],basis:[{basis:[L,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,L,"auto","initial","none",X]}],grow:[{grow:["",R,ea,X]}],shrink:[{shrink:["",R,ea,X]}],order:[{order:[U,"first","last","none",ea,X]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[l,"screen",...N()]}],"min-w":[{"min-w":[l,"screen","none",...N()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh","none",...N()]}],"font-size":[{text:["base",r,el,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,eb,eo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",B,X]}],"font-family":[{font:[ei,er,o]}],"font-features":[{"font-features":[X]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,ea,X]}],"line-clamp":[{"line-clamp":[R,"none",ea,ee]}],leading:[{leading:["none",s,...S()]}],"list-image":[{"list-image":["none",ea,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ea,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ef(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",ea,Z]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[R,"auto",ea,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[U,ea,X]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ea,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ea,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},U,ea,X],radial:["",ea,X],conic:["",U,ea,X]},em,en]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:eu()}],"border-w-x":[{"border-x":eu()}],"border-w-y":[{"border-y":eu()}],"border-w-s":[{"border-s":eu()}],"border-w-e":[{"border-e":eu()}],"border-w-bs":[{"border-bs":eu()}],"border-w-be":[{"border-be":eu()}],"border-w-t":[{"border-t":eu()}],"border-w-r":[{"border-r":eu()}],"border-w-b":[{"border-b":eu()}],"border-w-l":[{"border-l":eu()}],"divide-x":[{"divide-x":eu()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eu()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ef(),"hidden","none"]}],"divide-style":[{divide:[...ef(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ef(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,ea,X]}],"outline-w":[{outline:["",R,el,Z]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","inner","none",d,ep,es]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",m,ep,es]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:eu()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[R,Z]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":eu()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,ep,es]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[R,ea,X]}],"mix-blend":[{"mix-blend":[...eg(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eg()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[ea,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ea,X]}],filter:[{filter:["","none",ea,X]}],blur:[{blur:ek()}],brightness:[{brightness:[R,ea,X]}],contrast:[{contrast:[R,ea,X]}],"drop-shadow":[{"drop-shadow":["","none",b,ep,es]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",R,ea,X]}],"hue-rotate":[{"hue-rotate":[R,ea,X]}],invert:[{invert:["",R,ea,X]}],saturate:[{saturate:[R,ea,X]}],sepia:[{sepia:["",R,ea,X]}],"backdrop-filter":[{"backdrop-filter":["","none",ea,X]}],"backdrop-blur":[{"backdrop-blur":ek()}],"backdrop-brightness":[{"backdrop-brightness":[R,ea,X]}],"backdrop-contrast":[{"backdrop-contrast":[R,ea,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,ea,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,ea,X]}],"backdrop-invert":[{"backdrop-invert":["",R,ea,X]}],"backdrop-opacity":[{"backdrop-opacity":[R,ea,X]}],"backdrop-saturate":[{"backdrop-saturate":[R,ea,X]}],"backdrop-sepia":[{"backdrop-sepia":["",R,ea,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ea,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",ea,X]}],ease:[{ease:["linear","initial",h,ea,X]}],delay:[{delay:[R,ea,X]}],animate:[{animate:["none",k,ea,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,ea,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ew()}],"rotate-x":[{"rotate-x":ew()}],"rotate-y":[{"rotate-y":ew()}],"rotate-z":[{"rotate-z":ew()}],scale:[{scale:ev()}],"scale-x":[{"scale-x":ev()}],"scale-y":[{"scale-y":ev()}],"scale-z":[{"scale-z":ev()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[ea,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ey()}],"translate-x":[{"translate-x":ey()}],"translate-y":[{"translate-y":ey()}],"translate-z":[{"translate-z":ey()}],"translate-none":["translate-none"],zoom:[{zoom:[U,ea,X]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ea,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ea,X]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[R,el,Z,ee]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},s=e=>{let n=r(e);if(n)return n;let s=((e,o)=>{let{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s,postfixLookupClassGroupIds:a}=o,l=[],i=e.trim().split(G),c="";for(let e=i.length-1;e>=0;e-=1){let o,d=i[e],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:f}=r(d);if(m){c=d+(c.length>0?" "+c:c);continue}let g=!!f;if(g){let e=(o=t(u.substring(0,f)))&&a[o]?t(u):void 0;e&&e!==o&&(o=e,g=!1)}else o=t(u);if(!o){if(!g||!(o=t(u))){c=d+(c.length>0?" "+c:c);continue}g=!1}let h=0===p.length?"":1===p.length?p[0]:s(p).join(":"),k=b?h+"!":h,w=k+o;if(l.indexOf(w)>-1)continue;l.push(w);let v=n(o,g);for(let e=0;e<v.length;++e){let o=v[e];l.push(k+o)}c=d+(c.length>0?" "+c:c)}return c})(e,o);return t(e,s),s},n=e=>{var l;let i;return r=(o={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let o=0,r=Object.create(null),t=Object.create(null),n=(n,s)=>{r[n]=s,++o>e&&(o=0,t=r,r=Object.create(null))};return{get(e){let o=r[e];return void 0!==o?o:void 0!==(o=t[e])?(n(e,o),o):void 0},set(e,o){e in r?r[e]=o:n(e,o)}}})((l=[].reduce((e,o)=>o(e),a())).cacheSize),parseClassName:(e=>{let{prefix:o,experimentalParseClassName:r}=e,t=e=>{let o,r=[],t=0,n=0,s=0,a=e.length;for(let l=0;l<a;l++){let a=e[l];if(0===t&&0===n){if(":"===a){r.push(e.slice(s,l)),s=l+1;continue}if("/"===a){o=l;continue}}"["===a?t++:"]"===a?t--:"("===a?n++:")"===a&&n--}let l=0===r.length?e:e.slice(s),i=l,c=!1;return l.endsWith("!")?(i=l.slice(0,-1),c=!0):l.startsWith("!")&&(i=l.slice(1),c=!0),C(r,c,i,o&&o>s?o-s:void 0)};if(o){let e=o+":",r=t;t=o=>o.startsWith(e)?r(o.slice(e.length)):C(j,!1,o,void 0,!0)}if(r){let e=t;t=o=>r({className:o,parseClassName:e})}return t})(l),sortModifiers:(i=new Map,l.orderSensitiveModifiers.forEach((e,o)=>{i.set(e,1e6+o)}),e=>{let o=[],r=[];for(let t=0;t<e.length;t++){let n=e[t],s="["===n[0],a=i.has(n);s||a?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(n)):r.push(n)}return r.length>0&&(r.sort(),o.push(...r)),o}),postfixLookupClassGroupIds:(e=>{let o=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)o[r[e]]=!0;return o})(l),...(e=>{let o=(e=>{let{theme:o,classGroups:r}=e;return h(r,o)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let o,t,n;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(t=(o=r.slice(1,-1)).indexOf(":"),(n=o.slice(0,t))?"arbitrary.."+n:void 0)}let t=e.split("-"),n=+(""===t[0]&&t.length>1);return g(t,n,o)},getConflictingClassGroupIds:(e,o)=>{if(o){let o=t[e],n=r[e];if(o){if(n){let e=Array(n.length+o.length);for(let o=0;o<n.length;o++)e[o]=n[o];for(let r=0;r<o.length;r++)e[n.length+r]=o[r];return e}return o}return n||f}return r[e]||f}}})(l)}).cache.get,t=o.cache.set,n=s,s(e)},(...e)=>n(((...e)=>{let o,r,t=0,n="";for(;t<e.length;)(o=e[t++])&&(r=T(o))&&(n&&(n+=" "),n+=r);return n})(...e)));e.s(["cn",0,function(...e){return eS(b(e))}],975157)}]);
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,138324,(e,t,r)=>{"use strict";e.i(583225),Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return b},useLinkStatus:function(){return y}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(56421),o=e.r(72345),i=s._(e.r(180338)),l=e.r(626167),d=e.r(757336),c=e.r(863555),u=e.r(549757),p=e.r(671412),f=e.r(235871),h=e.r(716851),m=e.r(658853),x=e.r(571921);function b(t){var r;let a,n,s,[b,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:j,as:w,children:N,prefetch:k=null,passHref:S,replace:E,shallow:_,scroll:C,onClick:A,onMouseEnter:M,onTouchStart:T,legacyBehavior:R=!1,onNavigate:P,transitionTypes:O,ref:$,unstable_dynamicOnHover:z,...D}=t;a=N,R&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let I=i.default.useContext(d.AppRouterContext),L=!1!==k,q=!1===k?"none":!0===k?"full":"auto",U="none"!==q?"auto"===q?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,B="string"==typeof(r=w||j)?r:(0,l.formatUrl)(r);if(R){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=i.default.Children.only(a)}let F=R?n&&"object"==typeof n&&n.ref:$,K,G=i.default.useCallback(e=>(null!==I&&(v.current=(0,h.mountLinkInstance)(e,B,I,U,L,y,K)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[L,B,I,U,y,K]),V={ref:(0,c.useMergedRef)(G,F),onClick(t){R||"function"!=typeof A||A(t),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!I||t.defaultPrevented||function(t,r,a,n,s,o,l,d="none"){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(187250);i.default.startTransition(()=>{p(r,n?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,a.current,l,d)})}}(t,B,v,E,C,P,O,q)},onMouseEnter(e){R||"function"!=typeof M||M(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&L&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,u.isAbsoluteUrl)(B)?V.href=B:R&&!S&&("a"!==n.type||"href"in n.props)||(V.href=(0,p.addBasePath)(B)),s=R?i.default.cloneElement(n,V):(0,o.jsx)("a",{...D,...V,children:a}),(0,o.jsx)(g.Provider,{value:b,children:s})}let g=(0,i.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},863555,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let a=e.r(180338);function n(e,t){let r=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,a)),t&&(n.current=s(t,a))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},549757,(e,t,r)=>{"use strict";e.i(583225),Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return g},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return x},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return d},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return w}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=d();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&p(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let m="u">typeof performance,x=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class g extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},658853,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let a=e.r(549757),n=e.r(144654);function s(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},818732,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return i}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function s(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,o(e));else t.set(r,o(a));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},626167,(e,t,r)=>{"use strict";e.i(583225),Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return i},formatWithValidation:function(){return d},urlObjectKeys:function(){return l}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let s=e.r(56421)._(e.r(818732)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",i=e.hash||"",l=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==d?(d="//"+(d||""),n&&"/"!==n[0]&&(n="/"+n)):d||(d=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${a}${d}${n}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return i(e)}},588537,e=>{"use strict";var t=e.i(72345),r=e.i(180338),a=e.i(910172),n=e.i(763371),s=e.i(573009),o=e.i(243668);function i(){let{rootParam:e,refresh:t,setEditorSettings:a,setAutoRefreshSeconds:i,autoRefreshSeconds:l}=(0,n.useApp)(),d=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!e)return;let t=!1;return fetch(`/api/settings${e}&type=settings`).then(e=>e.ok?e.json():o.DEFAULT_SETTINGS).then(e=>{t||((0,s.applyTheme)(e.theme),(0,s.applyAccent)(e.accentColor),(0,s.applyFontSize)(e.fontSize),(0,s.applyFonts)(e),a(e.editor),i(e.project?.autoRefresh??0))}).catch(()=>{}),()=>{t=!0}},[e]),(0,r.useEffect)(()=>(d.current&&clearInterval(d.current),l>0&&(d.current=setInterval(t,1e3*l)),()=>{d.current&&(clearInterval(d.current),d.current=null)}),[l,t]),null}function l(){return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"flex gap-1.5 justify-center mb-4",children:[0,1,2].map(e=>(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-accent animate-pulse-dot",style:{animationDelay:`${.15*e}s`}},e))}),(0,t.jsx)("p",{className:"text-muted text-sm font-mono",children:"Loading project..."})]})})}var d=e.i(755146);function c({projects:e,activeProject:r,currentName:a,onSelect:n}){return(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md bg-surface2 border border-border text-sm hover:border-border2 transition-colors",children:[(0,t.jsx)("span",{className:"text-txt font-medium truncate max-w-[200px]",children:a||"Select project"}),(0,t.jsx)("span",{className:"text-muted text-xs",children:"▾"})]})}),(0,t.jsx)(d.DropdownMenuContent,{className:"w-64 bg-surface border-border2 text-txt",align:"start",children:0===e.length?(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-muted",children:"No projects found"}):e.map(e=>(0,t.jsx)(d.DropdownMenuItem,{onClick:()=>n(e.root),className:`cursor-pointer hover:bg-surface2 focus:bg-surface2 ${e.root===r?"text-accent":""}`,children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium",children:e.name}),(0,t.jsx)("div",{className:"text-xs text-muted truncate font-mono",children:e.root})]})},e.root))})]})}var u=e.i(487486);function p({board:e}){return(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)(u.Badge,{variant:"secondary",className:"gap-1 text-xs font-mono text-amber",children:["🔨 ",e["in-progress"]||0]}),(0,t.jsxs)(u.Badge,{variant:"secondary",className:"gap-1 text-xs font-mono text-muted",children:["📋 ",e.todo||0]}),(0,t.jsxs)(u.Badge,{variant:"secondary",className:"gap-1 text-xs font-mono text-teal",children:["✅ ",e.done||0]})]})}var f=e.i(975157);function h({active:e}){return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-mono text-muted",children:[(0,t.jsx)("div",{className:(0,f.cn)("w-1.5 h-1.5 rounded-full transition-colors duration-500",e?"bg-teal shadow-[0_0_6px_#4fd8b4]":"bg-border2")}),(0,t.jsx)("span",{children:e?"live update":"connected"})]})}var m=e.i(617739),x=e.i(294237),b=e.i(83790);let g={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};g.node;let y=(0,b.default)(g);var v=e.i(519455),j=e.i(793479),w=e.i(772436),N=e.i(980376);function k({className:e,...r}){return(0,t.jsx)("div",{className:(0,f.cn)("animate-pulse rounded-md bg-surface2",e),...r})}var S=e.i(746798);let E=r.createContext(null);function _(){let e=r.useContext(E);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let C=r.forwardRef(({defaultOpen:e=!0,open:a,onOpenChange:n,className:s,style:o,children:i,...l},d)=>{let c=function(){let[e,t]=r.useState(void 0);return r.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}(),[u,p]=r.useState(!1),[h,m]=r.useState(e),x=a??h,b=r.useCallback(e=>{let t="function"==typeof e?e(x):e;n?n(t):m(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,x]),g=r.useCallback(()=>c?p(e=>!e):b(e=>!e),[c,b,p]);r.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);let y=x?"expanded":"collapsed",v=r.useMemo(()=>({state:y,open:x,setOpen:b,isMobile:c,openMobile:u,setOpenMobile:p,toggleSidebar:g}),[y,x,b,c,u,p,g]);return(0,t.jsx)(E.Provider,{value:v,children:(0,t.jsx)(S.TooltipProvider,{delayDuration:0,children:(0,t.jsx)("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:(0,f.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",s),ref:d,...l,children:i})})})});C.displayName="SidebarProvider";let A=r.forwardRef(({side:e="left",variant:r="sidebar",collapsible:a="offcanvas",className:n,children:s,...o},i)=>{let{isMobile:l,state:d,openMobile:c,setOpenMobile:u}=_();return"none"===a?(0,t.jsx)("div",{className:(0,f.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...o,children:s}):l?(0,t.jsx)(N.Sheet,{open:c,onOpenChange:u,...o,children:(0,t.jsxs)(N.SheetContent,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,t.jsxs)(N.SheetHeader,{className:"sr-only",children:[(0,t.jsx)(N.SheetTitle,{children:"Sidebar"}),(0,t.jsx)(N.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,t.jsx)("div",{className:"flex h-full w-full flex-col",children:s})]})}):(0,t.jsxs)("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":"collapsed"===d?a:"","data-variant":r,"data-side":e,children:[(0,t.jsx)("div",{className:(0,f.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===r||"inset"===r?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,t.jsx)("div",{className:(0,f.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===e?"left-0 group-data-[collapsible=offcanvas]:-left-(--sidebar-width)":"right-0 group-data-[collapsible=offcanvas]:-right-(--sidebar-width)","floating"===r||"inset"===r?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...o,children:(0,t.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:s})})]})});A.displayName="Sidebar";let M=r.forwardRef(({className:e,onClick:r,...a},n)=>{let{toggleSidebar:s}=_();return(0,t.jsxs)(v.Button,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,f.cn)("h-7 w-7",e),onClick:e=>{r?.(e),s()},...a,children:[(0,t.jsx)(y,{}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});M.displayName="SidebarTrigger",r.forwardRef(({className:e,...r},a)=>{let{toggleSidebar:n}=_();return(0,t.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:(0,f.cn)("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-[translate,background-color] ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...r})}).displayName="SidebarRail";let T=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("main",{ref:a,className:(0,f.cn)("relative flex w-full flex-1 flex-col bg-bg","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...r}));T.displayName="SidebarInset",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(j.Input,{ref:a,"data-sidebar":"input",className:(0,f.cn)("h-8 w-full bg-bg shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...r})).displayName="SidebarInput";let R=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"header",className:(0,f.cn)("flex flex-col gap-2 p-2",e),...r}));R.displayName="SidebarHeader",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"footer",className:(0,f.cn)("flex flex-col gap-2 p-2",e),...r})).displayName="SidebarFooter";let P=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(w.Separator,{ref:a,"data-sidebar":"separator",className:(0,f.cn)("mx-2 w-auto bg-sidebar-border",e),...r}));P.displayName="SidebarSeparator";let O=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"content",className:(0,f.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...r}));O.displayName="SidebarContent";let $=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"group",className:(0,f.cn)("relative flex w-full min-w-0 flex-col p-2",e),...r}));$.displayName="SidebarGroup";let z=r.forwardRef(({className:e,asChild:r=!1,...a},n)=>{let s=r?m.Slot:"div";return(0,t.jsx)(s,{ref:n,"data-sidebar":"group-label",className:(0,f.cn)("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a})});z.displayName="SidebarGroupLabel",r.forwardRef(({className:e,asChild:r=!1,...a},n)=>{let s=r?m.Slot:"button";return(0,t.jsx)(s,{ref:n,"data-sidebar":"group-action",className:(0,f.cn)("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...a})}).displayName="SidebarGroupAction";let D=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"group-content",className:(0,f.cn)("w-full text-sm",e),...r}));D.displayName="SidebarGroupContent";let I=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("ul",{ref:a,"data-sidebar":"menu",className:(0,f.cn)("flex w-full min-w-0 flex-col gap-1",e),...r}));I.displayName="SidebarMenu";let L=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:(0,f.cn)("group/menu-item relative",e),...r}));L.displayName="SidebarMenuItem";let q=(0,x.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-bg shadow-[0_0_0_1px_rgb(var(--rgb-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_rgb(var(--rgb-surface2))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),U=r.forwardRef(({asChild:e=!1,isActive:r=!1,variant:a="default",size:n="default",tooltip:s,className:o,...i},l)=>{let d=e?m.Slot:"button",{isMobile:c,state:u}=_(),p=(0,t.jsx)(d,{ref:l,"data-sidebar":"menu-button","data-size":n,"data-active":r,className:(0,f.cn)(q({variant:a,size:n}),o),...i});return s?("string"==typeof s&&(s={children:s}),(0,t.jsxs)(S.Tooltip,{children:[(0,t.jsx)(S.TooltipTrigger,{asChild:!0,children:p}),(0,t.jsx)(S.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==u||c,...s})]})):p});function B({summary:e,projects:r,activeProject:a,liveIndicator:n,onProjectChange:s,onToggleChat:o}){return(0,t.jsxs)("header",{className:"h-12 border-b border-border flex items-center px-4 gap-4 shrink-0 bg-surface/80 backdrop-blur-xs sticky top-0 z-50",children:[(0,t.jsx)(M,{className:"-ml-1"}),(0,t.jsx)(w.Separator,{orientation:"vertical",className:"mr-2 h-4"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-md bg-linear-to-br from-accent to-teal flex items-center justify-center text-xs",children:"⬡"}),(0,t.jsx)("span",{className:"font-mono text-xs text-muted tracking-widest uppercase",children:"VibeDoc"})]}),(0,t.jsx)(c,{projects:r,activeProject:a,currentName:e?.name||"",onSelect:s}),e&&(0,t.jsx)(p,{board:e.tasks.board}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(h,{active:n}),(0,t.jsx)("button",{onClick:o,title:"Agent chat (c)",className:"px-2 py-1 rounded-sm border border-border bg-surface2 text-xs font-mono text-muted hover:text-txt",children:"Agent"}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-1.5 px-2 py-1 rounded-sm bg-surface2 border border-border",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-muted",children:"MCP"}),(0,t.jsx)("code",{className:"text-xs font-mono text-accent",children:"localhost:3000/api/mcp"})]})]})}U.displayName="SidebarMenuButton",r.forwardRef(({className:e,asChild:r=!1,showOnHover:a=!1,...n},s)=>{let o=r?m.Slot:"button";return(0,t.jsx)(o,{ref:s,"data-sidebar":"menu-action",className:(0,f.cn)("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})}).displayName="SidebarMenuAction",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:(0,f.cn)("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...r})).displayName="SidebarMenuBadge",r.forwardRef(({className:e,showIcon:a=!1,...n},s)=>{let o=r.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,t.jsxs)("div",{ref:s,"data-sidebar":"menu-skeleton",className:(0,f.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[a&&(0,t.jsx)(k,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,t.jsx)(k,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton",r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:(0,f.cn)("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...r})).displayName="SidebarMenuSub",r.forwardRef(({...e},r)=>(0,t.jsx)("li",{ref:r,...e})).displayName="SidebarMenuSubItem",r.forwardRef(({asChild:e=!1,size:r="md",isActive:a,className:n,...s},o)=>{let i=e?m.Slot:"a";return(0,t.jsx)(i,{ref:o,"data-sidebar":"menu-sub-button","data-size":r,"data-active":a,className:(0,f.cn)("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===r&&"text-xs","md"===r&&"text-sm","group-data-[collapsible=icon]:hidden",n),...s})}).displayName="SidebarMenuSubButton";let F={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};F.node;let K=(0,b.default)(F);var G=e.i(732460),V=e.i(788293);let W={name:"brain",size:24,node:[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]};W.node;let H=(0,b.default)(W),J={name:"circle-dot",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};J.node;let Z=(0,b.default)(J),Q={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};Q.node;let X=(0,b.default)(Q),Y={name:"clipboard-list",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]};Y.node;let ee=(0,b.default)(Y),et={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};et.node;let er=(0,b.default)(et);var ea=e.i(463464);let en={name:"folder-tree",size:24,node:[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]};en.node;let es=(0,b.default)(en),eo={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};eo.node;let ei=(0,b.default)(eo);var el=e.i(138324);let ed=[{href:"/board",icon:K,label:"Board"},{href:"/roadmap",icon:ei,label:"Roadmap"},{href:"/docs",icon:G.BookOpen,label:"Docs"},{href:"/activity",icon:V.Zap,label:"Activity"},{href:"/memory",icon:H,label:"Memory"},{href:"/explorer",icon:es,label:"Explorer"},{href:"/settings",icon:ea.Settings,label:"Settings"}],ec=[{status:"in-progress",icon:Z,label:"Active"},{status:"blocked",icon:X,label:"Blocked"},{status:"todo",icon:ee,label:"Todo"},{status:"done",icon:er,label:"Done"}];function eu({board:e}){let r=(0,a.usePathname)();return(0,t.jsxs)(A,{collapsible:"icon",children:[(0,t.jsx)(R,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-md bg-linear-to-br from-accent to-teal flex items-center justify-center text-xs shrink-0",children:"⬡"}),(0,t.jsx)("span",{className:"font-mono text-xs text-muted tracking-widest uppercase group-data-[collapsible=icon]:hidden",children:"VibeDoc"})]})}),(0,t.jsxs)(O,{children:[(0,t.jsx)($,{children:(0,t.jsx)(D,{children:(0,t.jsx)(I,{children:ed.map(({href:e,icon:a,label:n})=>(0,t.jsx)(L,{children:(0,t.jsx)(U,{asChild:!0,isActive:r.startsWith(e),tooltip:n,children:(0,t.jsxs)(el.default,{href:e,children:[(0,t.jsx)(a,{}),(0,t.jsx)("span",{children:n})]})})},e))})})}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{}),(0,t.jsxs)($,{children:[(0,t.jsx)(z,{children:"Board"}),(0,t.jsx)(D,{children:(0,t.jsx)(I,{children:ec.map(({status:r,icon:a,label:n})=>{let s=e[r]?.length||0;return(0,t.jsx)(L,{children:(0,t.jsxs)(U,{tooltip:`${n}: ${s}`,children:[(0,t.jsx)(a,{}),(0,t.jsx)("span",{children:n}),(0,t.jsx)("span",{className:"ml-auto font-mono text-xs",children:s})]})},r)})})})]})]})]})]})}var ep=e.i(161863);let ef={name:"file-plus",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]};ef.node;let eh=(0,b.default)(ef),em={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};em.node;let ex=(0,b.default)(em);var eb=e.i(776639),eg=e.i(759684);function ey({open:e,onClose:n,onOpenDoc:s,onNewDoc:o,rootParam:i}){let l=(0,a.useRouter)(),[d,c]=(0,r.useState)(""),[u,p]=(0,r.useState)([]),[h,m]=(0,r.useState)(0),x=[{label:"New Doc",icon:eh,action:()=>{o?.(),n()}},{label:"Go to Board",icon:K,action:()=>{l.push("/board"),n()}},{label:"Go to Roadmap",icon:ei,action:()=>{l.push("/roadmap"),n()}},{label:"Go to Activity",icon:ex,action:()=>{l.push("/activity"),n()}},{label:"Go to Memory",icon:H,action:()=>{l.push("/memory"),n()}}];function b(e){s(e.path),n()}(0,r.useEffect)(()=>{e||(c(""),p([]),m(0))},[e]),(0,r.useEffect)(()=>{if(d.length<2){p([]),m(0);return}let e=setTimeout(async()=>{try{let e=await fetch(`/api/docs${i}&q=${encodeURIComponent(d)}`),t=await e.json();p(t.results?.map(e=>({path:e.file,section:e.file.split("/").slice(0,-1).join("/"),name:e.file.split("/").pop()?.replace(/\.md$/,"")??e.file}))??[]),m(0)}catch{}},300);return()=>clearTimeout(e)},[d,i]);let g=""===d;return(0,t.jsx)(eb.Dialog,{open:e,onOpenChange:e=>{e||n()},children:(0,t.jsxs)(eb.DialogContent,{className:"max-w-lg p-0 overflow-hidden bg-surface border-border gap-0",children:[(0,t.jsx)(eb.DialogTitle,{className:"sr-only",children:"Command Palette"}),(0,t.jsxs)("div",{className:"flex items-center px-4 h-12",children:[(0,t.jsx)(ep.Search,{className:"h-4 w-4 text-muted shrink-0 mr-3"}),(0,t.jsx)(j.Input,{autoFocus:!0,value:d,onChange:e=>c(e.target.value),onKeyDown:function(e){let t=u.length>0,r=t?u.length:x.length;"ArrowDown"===e.key?(e.preventDefault(),m(e=>Math.min(e+1,r-1))):"ArrowUp"===e.key?(e.preventDefault(),m(e=>Math.max(e-1,0))):"Enter"===e.key&&(t&&u[h]?b(u[h]):!t&&d.length<2&&x[h]&&x[h].action())},placeholder:"Search docs…",className:"border-0 bg-transparent h-full text-sm shadow-none focus-visible:ring-0 px-0 placeholder:text-muted"})]}),(0,t.jsx)("div",{className:"border-t border-border"}),(0,t.jsxs)(eg.ScrollArea,{className:"max-h-72",children:[g&&(0,t.jsx)("div",{className:"py-1",children:x.map((e,r)=>(0,t.jsxs)("button",{onClick:e.action,onMouseEnter:()=>m(r),className:(0,f.cn)("flex items-center gap-3 w-full px-4 py-2 text-sm text-left transition-colors",h===r?"bg-accent/10 text-txt":"text-muted hover:text-txt"),children:[(0,t.jsx)(e.icon,{className:"h-4 w-4 shrink-0"}),e.label]},e.label))}),!g&&u.length>0&&(0,t.jsx)("div",{className:"py-1",children:u.map((e,r)=>(0,t.jsxs)("button",{onClick:()=>b(e),onMouseEnter:()=>m(r),className:(0,f.cn)("flex items-center justify-between w-full px-4 py-2 text-sm text-left transition-colors",h===r?"bg-accent/10":"hover:bg-accent/5"),children:[(0,t.jsx)("span",{className:"font-medium text-txt truncate",children:e.name}),e.section&&(0,t.jsx)("span",{className:"text-xs text-muted ml-3 shrink-0 truncate max-w-[40%]",children:e.section})]},e.path))}),!g&&d.length>=2&&0===u.length&&(0,t.jsx)("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No docs found"})]})]})})}var ev=e.i(406952);let ej=/[/\-_. ]/;function ew({open:e,onClose:a,onOpenDoc:n,rootParam:s}){let[o,i]=(0,r.useState)([]),[l,d]=(0,r.useState)(""),[c,u]=(0,r.useState)(0),p=(0,r.useRef)(null),[h,m]=(0,r.useState)(e);e!==h&&(m(e),e&&(d(""),u(0))),(0,r.useEffect)(()=>{e&&fetch(`/api/docs${s}`).then(e=>e.json()).then(e=>i(Array.isArray(e)?e:[])).catch(()=>i([]))},[e,s]);let x=(0,r.useMemo)(()=>{var e;return e=e=>e.path,o.map(t=>({item:t,path:e(t),score:function(e,t){let r=e.toLowerCase().replace(/\s+/g,"");if(!r)return 0;let a=t.toLowerCase(),n=null;for(let e=a.indexOf(r[0]);-1!==e;e=a.indexOf(r[0],e+1)){let t=function(e,t,r){let a=t.lastIndexOf("/")+1,n=0,s=0,o=-2;for(let i=r;i<t.length&&s<e.length;i++)t[i]===e[s]&&(n+=1,i===o+1&&(n+=5),(0===i||ej.test(t[i-1]))&&(n+=8),i>=a&&(n+=3),o=i,s++);return s===e.length?n:null}(r,a,e);null!==t&&(null===n||t>n)&&(n=t)}return n}(l,e(t))})).filter(e=>null!==e.score).sort((e,t)=>t.score-e.score||e.path.length-t.path.length).map(e=>e.item)},[l,o]),b=x.slice(0,50);function g(e){e&&(n(e.path),a())}return(0,r.useEffect)(()=>{p.current?.querySelector(`[data-index="${c}"]`)?.scrollIntoView({block:"nearest"})},[c]),(0,t.jsx)(eb.Dialog,{open:e,onOpenChange:e=>{e||a()},children:(0,t.jsxs)(eb.DialogContent,{className:"max-w-xl p-0 overflow-hidden bg-surface border-border gap-0 top-[20%] translate-y-0",children:[(0,t.jsx)(eb.DialogTitle,{className:"sr-only",children:"Go to file"}),(0,t.jsx)(j.Input,{autoFocus:!0,value:l,onChange:e=>{d(e.target.value),u(0)},onKeyDown:function(e){"ArrowDown"===e.key||e.ctrlKey&&"n"===e.key?(e.preventDefault(),u(e=>Math.min(e+1,b.length-1))):"ArrowUp"===e.key||e.ctrlKey&&"p"===e.key?(e.preventDefault(),u(e=>Math.max(e-1,0))):"Enter"===e.key&&(e.preventDefault(),g(b[c]))},placeholder:"Go to file…",className:"h-11 rounded-none border-0 border-b border-border bg-transparent px-4 text-sm shadow-none focus-visible:ring-0 placeholder:text-muted"}),(0,t.jsxs)("div",{ref:p,className:"max-h-80 overflow-y-auto py-1",children:[b.map((e,r)=>{let a=e.path.lastIndexOf("/");return(0,t.jsxs)("button",{"data-index":r,onClick:()=>g(e),onMouseMove:()=>u(r),className:(0,f.cn)("flex items-center gap-2.5 w-full px-4 py-1.5 text-left text-sm transition-colors",c===r?"bg-accent/10 text-txt":"text-muted"),children:[(0,t.jsx)(ev.FileText,{className:"h-3.5 w-3.5 shrink-0 opacity-60"}),(0,t.jsx)("span",{className:"truncate text-txt",children:e.path.slice(a+1)}),a>0&&(0,t.jsx)("span",{className:"truncate text-xs text-muted",children:e.path.slice(0,a)})]},e.path)}),0===b.length&&(0,t.jsx)("div",{className:"px-4 py-6 text-center text-sm text-muted",children:"No matching files"}),x.length>50&&(0,t.jsxs)("div",{className:"px-4 py-1.5 text-xs text-muted",children:[x.length-50," more — keep typing to narrow"]})]})]})})}var eN=e.i(91881),ek=e.i(998822);function eS({proposal:e,onResolve:a}){let{rootParam:s,openDoc:o}=(0,n.useApp)(),[i,l]=(0,r.useState)(null),[d,c]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch(`/api/docs${s}&read=${encodeURIComponent(e.path)}`).then(e=>e.ok?e.json():null).then(t=>l(t?.path===e.path.replace(/^\.\//,"")&&"string"==typeof t.content?t.content:"")).catch(()=>l(""))},[e.path,s]);let h=(0,r.useMemo)(()=>null===i?null:function(e,t){let r=e;for(let[e,a]of t.entries()){if("string"!=typeof a?.old_string||"string"!=typeof a?.new_string)return{error:`Edit ${e+1}: old_string and new_string must be strings`};if(""===a.old_string){if(""!==r)return{error:`Edit ${e+1}: empty old_string is only allowed for a new, empty doc`};r=a.new_string;continue}let t=r.indexOf(a.old_string);if(-1===t)return{error:`Edit ${e+1}: old_string not found in the doc`};if(-1!==r.indexOf(a.old_string,t+1))return{error:`Edit ${e+1}: old_string matches more than once; include more surrounding text`};r=r.slice(0,t)+a.new_string+r.slice(t+a.old_string.length)}return{content:r}}(i,e.edits),[i,e.edits]),m=null!==h&&"error"in h?h.error:null,x=(0,r.useMemo)(()=>{var e;let t,r;return null===i||!h||"error"in h?[]:(t=(e=function(e,t){let r=e.split("\n"),a=t.split("\n"),n=0;for(;n<r.length&&n<a.length&&r[n]===a[n];)n++;let s=r.length,o=a.length;for(;s>n&&o>n&&r[s-1]===a[o-1];)s--,o--;let i=r.slice(n,s),l=a.slice(n,o),d=Array.from({length:i.length+1},()=>Array(l.length+1).fill(0));for(let e=i.length-1;e>=0;e--)for(let t=l.length-1;t>=0;t--)d[e][t]=i[e]===l[t]?d[e+1][t+1]+1:Math.max(d[e+1][t],d[e][t+1]);let c=[],u=0,p=0;for(;u<i.length||p<l.length;)u<i.length&&p<l.length&&i[u]===l[p]?(c.push({op:" ",text:i[u]}),u++,p++):u<i.length&&(p===l.length||d[u+1][p]>=d[u][p+1])?(c.push({op:"-",text:i[u]}),u++):(c.push({op:"+",text:l[p]}),p++);return[...r.slice(0,n).map(e=>({op:" ",text:e})),...c,...r.slice(s).map(e=>({op:" ",text:e}))]}(i,h.content)).map(()=>!1),e.forEach((r,a)=>{if(" "!==r.op)for(let r=Math.max(0,a-2);r<=Math.min(e.length-1,a+2);r++)t[r]=!0}),r=[],e.forEach((e,a)=>{t[a]?r.push(e):"number"==typeof r[r.length-1]?r[r.length-1]=r[r.length-1]+1:r.push(1)}),r)},[i,h]),b=x.filter(e=>"number"!=typeof e&&"+"===e.op).length,g=x.filter(e=>"number"!=typeof e&&"-"===e.op).length;async function y(){p(!0),c(null);try{let t=await fetch(`/api/docs${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e.path,edits:e.edits,actor:"ai"})});if(!t.ok)throw Error((await t.json().catch(()=>null))?.error??"Save failed");a("accepted")}catch(e){c(e.message)}finally{p(!1)}}return(0,t.jsxs)("div",{className:"my-2 rounded-md border border-border overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-surface2 border-b border-border",children:[(0,t.jsx)("button",{onClick:()=>o(e.path),className:"text-xs font-mono text-accent truncate hover:underline",title:e.path,children:e.path}),(0,t.jsxs)("span",{className:"text-[10px] font-mono text-teal-400",children:["+",b]}),(0,t.jsxs)("span",{className:"text-[10px] font-mono text-red-400",children:["-",g]})]}),e.summary&&(0,t.jsx)("div",{className:"px-2 py-1 text-xs text-muted border-b border-border",children:e.summary}),(0,t.jsxs)("div",{className:"max-h-72 overflow-auto text-[11px] font-mono leading-5",children:[null===i&&(0,t.jsx)("div",{className:"px-2 py-1 text-muted",children:"Loading diff…"}),m&&(0,t.jsxs)("div",{className:"px-2 py-1 text-red-400",children:["Doc changed since this proposal (",m,"). Ask the agent to propose again."]}),null!==i&&!m&&0===x.length&&(0,t.jsx)("div",{className:"px-2 py-1 text-muted",children:"No changes"}),x.map((e,r)=>"number"==typeof e?(0,t.jsxs)("div",{className:"px-2 text-muted bg-surface2/50",children:["⋯ ",e," unchanged line",e>1?"s":""]},r):(0,t.jsxs)("div",{className:(0,f.cn)("px-2 whitespace-pre-wrap break-words","+"===e.op&&"bg-teal-500/10 text-teal-300","-"===e.op&&"bg-red-500/10 text-red-300 line-through decoration-red-400/40"),children:[e.op," ",e.text||" "]},r))]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 border-t border-border",children:["pending"===e.status?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:y,disabled:u||null===i||!!m,className:"text-xs px-2 py-0.5 rounded-sm bg-accent/20 text-accent hover:bg-accent/30 disabled:opacity-50",children:u?"Applying…":"Accept"}),(0,t.jsx)("button",{onClick:()=>a("rejected"),disabled:u,className:"text-xs px-2 py-0.5 rounded-sm text-muted hover:text-txt",children:"Reject"})]}):(0,t.jsx)("span",{className:(0,f.cn)("text-xs","accepted"===e.status?"text-teal-400":"text-muted"),children:"accepted"===e.status?"✓ Applied":"Rejected"}),d&&(0,t.jsx)("span",{className:"text-xs text-red-400 truncate",children:d})]})]})}function eE({proposal:e,onResolve:a}){let{rootParam:s,openDoc:o}=(0,n.useApp)(),i=e.plan,l="breakdown"===i.kind?i.tasks:[],d="roadmap"===i.kind?i.horizons??[]:[],c="roadmap"===i.kind?i.epics??[]:[],u="breakdown"===i.kind?(i.epic??"").trim().toUpperCase():"",p="breakdown"===i.kind?i.newEpic:void 0,[f,h]=(0,r.useState)(new Map),[m,x]=(0,r.useState)(new Set),[b,g]=(0,r.useState)(null),[y,v]=(0,r.useState)(null),[j,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch(`/api/roadmap${s}`).then(e=>e.ok?e.json():null).then(e=>h(new Map((e?.items??[]).map(e=>[e.id,e.title])))).catch(()=>h(new Map))},[s]);let N=("breakdown"===i.kind?l.map(e=>e.key):[...d,...c].map(e=>e.key)).filter(e=>!m.has(e)),k="pending"===e.status,S=new Set(d.map(e=>e.key)),E=(e,r,a,n,s=!1)=>(0,t.jsx)(e_,{rowKey:e,title:r,meta:a,body:n,indent:s,checked:!m.has(e),disabled:!k||j,onToggle:()=>{v(null),x(t=>{let r=new Set(t),a=r.has(e);for(let t of S.has(e)?[e,...c.filter(t=>t.parent.trim()===e).map(e=>e.key)]:[e])a?r.delete(t):r.add(t);let n=c.find(t=>t.key===e)?.parent.trim();return a&&n&&S.has(n)&&r.delete(n),r})},open:b===e,onOpen:()=>g(b===e?null:e)},e),_=e=>e.trim().split("\n")[0]??"",C=[...new Set(c.map(e=>e.parent.trim()).filter(e=>!S.has(e)))];async function A(){w(!0),v(null);try{let e=await fetch(`/api/plan/apply${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:i,selected:N})}),t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Apply failed (${e.status})`);a("accepted",t?.created??[],[...m])}catch(e){v(e.message)}finally{w(!1)}}return(0,t.jsxs)("div",{className:"my-2 rounded-md border border-border overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-surface2 border-b border-border",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-muted",children:"Plan"}),"breakdown"===i.kind?(0,t.jsxs)(t.Fragment,{children:[u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs font-mono text-accent",children:u}),(0,t.jsx)("span",{className:"text-xs text-txt truncate",children:f.get(u)??""})]}):p?(0,t.jsxs)("span",{className:"text-xs text-txt truncate",children:["New epic: ",p.title,(0,t.jsxs)("span",{className:"text-muted",children:[" (under ",p.parent.trim().toUpperCase()," ",f.get(p.parent.trim().toUpperCase())??"",")"]})]}):(0,t.jsx)("span",{className:"text-xs text-muted",children:"No epic"}),(0,t.jsxs)("span",{className:"ml-auto text-[10px] font-mono text-muted",children:[l.length," tasks"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-txt",children:"Roadmap"}),(0,t.jsxs)("span",{className:"ml-auto text-[10px] font-mono text-muted",children:[d.length?`${d.length} horizons \xb7 `:"",c.length," epics"]})]})]}),(0,t.jsxs)("ul",{className:"max-h-80 overflow-auto",children:[l.map(e=>E(e.key,e.title,[e.size,e.dependsOn?.length?`after ${e.dependsOn.join(", ")}`:null,e.due?`due ${e.due}`:null].filter(Boolean).join(" · "),e.body)),d.map(e=>[E(e.key,e.title,"new horizon",e.body),...c.filter(t=>t.parent.trim()===e.key).map(e=>E(e.key,e.title,_(e.body),e.body,!0))]),C.map(e=>[(0,t.jsxs)("li",{className:"px-2 py-1.5 border-b border-border text-xs text-muted",children:[(0,t.jsx)("span",{className:"font-mono text-accent mr-1",children:e.toUpperCase()}),f.get(e.toUpperCase())??""]},`parent-${e}`),...c.filter(t=>t.parent.trim()===e).map(e=>E(e.key,e.title,_(e.body),e.body,!0))])]}),y&&(0,t.jsx)("div",{className:"px-2 py-1 text-xs text-red-400 whitespace-pre-wrap border-t border-border",children:y}),(0,t.jsx)("div",{className:"flex items-center gap-2 px-2 py-1.5 border-t border-border",children:k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:A,disabled:j||0===N.length,className:"text-xs px-2 py-0.5 rounded-sm bg-accent/20 text-accent hover:bg-accent/30 disabled:opacity-50",children:j?"Creating…":`Accept (${N.length})`}),(0,t.jsx)("button",{onClick:()=>a("rejected",[],[]),disabled:j,className:"text-xs px-2 py-0.5 rounded-sm text-muted hover:text-txt",children:"Reject"})]}):"accepted"===e.status?(0,t.jsxs)("span",{className:"text-xs text-teal-400",children:["✓ Created"," ",(e.created??[]).map((e,r)=>(0,t.jsxs)("span",{children:[r>0&&", ",(0,t.jsx)("button",{onClick:()=>o(e.file),className:"font-mono hover:underline",children:e.id})]},e.id))]}):(0,t.jsx)("span",{className:"text-xs text-muted",children:"Rejected"})})]})}function e_({rowKey:e,title:r,meta:a,body:n,indent:s,checked:o,disabled:i,onToggle:l,open:d,onOpen:c}){return(0,t.jsxs)("li",{"data-plan-row":e,className:"border-b border-border last:border-b-0",children:[(0,t.jsxs)("div",{className:(0,f.cn)("flex items-start gap-2 px-2 py-1.5",s&&"pl-6"),children:[(0,t.jsx)("input",{type:"checkbox","aria-label":`Include ${r}`,checked:o,disabled:i,onChange:l,className:"mt-0.5 accent-accent"}),(0,t.jsxs)("button",{onClick:c,className:"flex-1 min-w-0 text-left",children:[(0,t.jsxs)("div",{className:(0,f.cn)("text-xs text-txt",!o&&"line-through text-muted"),children:[(0,t.jsx)("span",{className:"font-mono text-muted mr-1",children:e}),r]}),a&&(0,t.jsx)("div",{className:"text-[10px] font-mono text-muted truncate",children:a})]})]}),d&&n&&(0,t.jsx)("div",{className:"px-3 pb-2 border-t border-border bg-surface2/40",children:(0,t.jsx)(ek.MarkdownRenderer,{content:n,className:"text-xs"})})]})}let eC="\0other";function eA({set:e,disabled:a,onSubmit:n}){let[s,o]=(0,r.useState)(()=>e.questions.map(()=>[])),[i,l]=(0,r.useState)(()=>e.questions.map(()=>"")),d=!!e.answers,c=e.questions.map((e,t)=>{let r=e.options.map(e=>e.label).filter(e=>s[t].includes(e));return s[t].includes(eC)&&i[t].trim()&&r.push(`Other: "${i[t].trim()}"`),r.join(", ")}),u=c.every(Boolean);return(0,t.jsxs)("div",{className:"my-2 rounded-md border border-border overflow-hidden","data-question-card":!0,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-surface2 border-b border-border",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono uppercase tracking-widest text-muted",children:"Questions"}),d&&(0,t.jsx)("span",{className:"ml-auto text-[10px] font-mono text-accent",children:"✓ Answered"})]}),(0,t.jsxs)("div",{className:"p-2 space-y-3",children:[e.questions.map((r,a)=>(0,t.jsxs)("fieldset",{disabled:d,className:"space-y-1",children:[(0,t.jsxs)("legend",{className:"mb-1",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded-sm bg-surface2 border border-border text-accent mr-1.5",children:r.header}),(0,t.jsx)("span",{className:"text-xs text-txt",children:r.question})]}),d?(0,t.jsx)("p",{className:"text-xs text-txt pl-1",children:e.answers?.[a]}):(0,t.jsxs)(t.Fragment,{children:[[...r.options,{label:"Other",value:eC}].map(n=>{let i="value"in n?n.value:n.label,l=s[a].includes(i);return(0,t.jsxs)("label",{className:(0,f.cn)("flex gap-2 items-start rounded-sm px-1 py-0.5 cursor-pointer hover:bg-surface2",l&&"bg-surface2"),children:[(0,t.jsx)("input",{type:r.multiSelect?"checkbox":"radio",name:`${e.id}-${a}`,checked:l,onChange:()=>{var e;return e=r.multiSelect,void o(t=>t.map((t,r)=>r!==a?t:e?t.includes(i)?t.filter(e=>e!==i):[...t,i]:[i]))},className:"mt-0.5 accent-accent"}),(0,t.jsxs)("span",{className:"text-xs",children:[(0,t.jsx)("span",{className:"text-txt",children:n.label}),"description"in n&&n.description&&(0,t.jsx)("span",{className:"block text-muted",children:n.description})]})]},i)}),s[a].includes(eC)&&(0,t.jsx)("input",{value:i[a],onChange:e=>l(t=>t.map((t,r)=>r===a?e.target.value:t)),placeholder:"Your answer","aria-label":`Other answer for ${r.header}`,className:"ml-6 w-[calc(100%-1.5rem)] rounded-sm bg-surface2 border border-border px-2 py-1 text-xs text-txt placeholder:text-muted focus:outline-hidden focus:border-accent"})]})]},a)),!d&&(0,t.jsx)("button",{onClick:()=>n(c),disabled:!u||a,className:"text-xs px-2 py-0.5 rounded-sm bg-accent/20 text-accent hover:bg-accent/30 disabled:opacity-50",children:"Submit"})]})]})}let eM=e=>!!e&&"object"==typeof e&&!Array.isArray(e),eT=e=>"string"==typeof e?e.trim():"";var eR=e.i(956555);function eP({onClose:e}){let{rootParam:s,activeProject:o,selectedDoc:i}=(0,n.useApp)(),l=(0,a.usePathname)(),[d,c]=(0,r.useState)([]),[u,p]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),[x,b]=(0,r.useState)(null),g=(0,r.useRef)(null),y=(0,r.useRef)(null),v=(0,r.useRef)(null),j=(0,r.useRef)([]),w="/docs"===l?i?.path:void 0;function N(e){c(t=>[...t.slice(0,-1),e(t[t.length-1])])}async function k(e){let t=(e??u).trim();if(!t||h)return;void 0===e&&p(""),b(null),m(!0),c(e=>[...e,{role:"user",text:t,tools:[],proposals:[],plans:[],questions:[]},{role:"assistant",text:"",tools:[],proposals:[],plans:[],questions:[]}]);let r=j.current.splice(0),a=r.length?`[${r.join(" ")}]
2
-
3
- ${t}`:t,n=new AbortController;y.current=n;try{let e=await fetch(`/api/chat${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:a,sessionId:g.current,docPath:w}),signal:n.signal});if(!e.ok||!e.body){let t=await e.json().catch(()=>null);throw Error(t?.error??`Request failed (${e.status})`)}let t=e.body.getReader(),r=new TextDecoder,o="";for(;;){let{done:e,value:a}=await t.read();if(e)break;let n=(o+=r.decode(a,{stream:!0})).split("\n");for(let e of(o=n.pop()??"",n))if(e.trim())try{!function(e){if(e.session_id&&(g.current=e.session_id),"stream_event"===e.type){let t=e.event;t?.type==="message_start"?N(e=>e.text&&!e.text.endsWith("\n\n")?{...e,text:e.text+"\n\n"}:e):t?.type==="content_block_delta"&&t.delta?.type==="text_delta"&&N(e=>({...e,text:e.text+t.delta.text}))}else if("assistant"===e.type){let t=(e.message?.content??[]).filter(e=>"tool_use"===e.type),r=t.filter(e=>e.name.endsWith("vibedoc_propose_edit")&&"string"==typeof e.input?.path&&Array.isArray(e.input?.edits)).map(e=>({id:e.id,path:e.input.path,edits:e.input.edits,summary:"string"==typeof e.input.summary?e.input.summary:void 0,status:"pending"})),a=t.filter(e=>e.name.endsWith("vibedoc_propose_plan")).flatMap(e=>{let t=function(e){if(!eM(e))return null;let t=(e,t)=>Array.isArray(e)&&e.every(e=>eM(e)&&t.every(t=>"string"==typeof e[t])&&(void 0===e.dependsOn||Array.isArray(e.dependsOn)));if("breakdown"===e.kind){let r=void 0===e.epic||"string"==typeof e.epic,a=void 0===e.newEpic||eM(e.newEpic)&&"string"==typeof e.newEpic.title&&"string"==typeof e.newEpic.parent;return r&&a&&t(e.tasks,["key","title"])&&e.tasks.length>0?e:null}if("roadmap"===e.kind){let r=e.horizons??[],a=e.epics??[];return t(r,["key","title"])&&t(a,["key","title","parent"])?{kind:"roadmap",horizons:r,epics:a}:null}return null}(e.input?.plan);return t?[{id:e.id,plan:t,status:"pending"}]:[]}),n=t.filter(e=>{var t;return e.name.endsWith("vibedoc_ask_questions")&&Array.isArray(t=e.input?.questions)&&t.length>0&&t.every(e=>!!e&&"object"==typeof e&&"string"==typeof e.question&&"string"==typeof e.header&&Array.isArray(e.options)&&e.options.every(e=>!!e&&"object"==typeof e&&"string"==typeof e.label))}).map(e=>({id:e.id,questions:e.input.questions})),s=["vibedoc_propose_edit","vibedoc_propose_plan","vibedoc_ask_questions"],o=t.filter(e=>!s.some(t=>e.name.endsWith(t))).map(e=>e.name.replace(/^mcp__vibedoc__vibedoc_/,""));(o.length||r.length||a.length||n.length)&&N(e=>({...e,tools:[...e.tools,...o],proposals:[...e.proposals,...r],plans:[...e.plans,...a],questions:[...e.questions,...n]}))}else if("user"===e.type){let t=new Set((e.message?.content??[]).filter(e=>"tool_result"===e.type&&e.is_error).map(e=>e.tool_use_id));t.size&&N(e=>({...e,proposals:e.proposals.filter(e=>!t.has(e.id)),plans:e.plans.filter(e=>!t.has(e.id)),questions:e.questions.filter(e=>!t.has(e.id))}))}else"result"===e.type&&e.is_error?N(t=>({...t,error:e.result??e.subtype??"Agent error"})):"error"===e.type&&N(t=>({...t,error:e.message}))}(JSON.parse(e))}catch{}}}catch(e){n.signal.aborted||N(t=>({...t,error:e.message}))}finally{m(!1)}}(0,r.useEffect)(()=>{y.current?.abort(),g.current=null,j.current=[],c([])},[o]),(0,r.useEffect)(()=>{let e=v.current;e&&(e.scrollTop=e.scrollHeight)},[d]),(0,r.useEffect)(()=>{function e(e){let t=e.detail?.message;t&&(h?b("Agent is busy. Try again when this turn finishes."):k(t))}return window.addEventListener(eR.ASK_AGENT_EVENT,e),()=>window.removeEventListener(eR.ASK_AGENT_EVENT,e)});let S=!!d[d.length-1]?.questions.some(e=>!e.answers);return(0,t.jsxs)("aside",{className:"w-[380px] h-full border-l border-border bg-surface flex flex-col",children:[(0,t.jsxs)("div",{className:"h-10 px-3 flex items-center gap-2 border-b border-border",children:[(0,t.jsx)("span",{className:"text-xs font-mono uppercase tracking-widest text-muted",children:"Agent"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("button",{onClick:function(){y.current?.abort(),g.current=null,j.current=[],c([])},className:"text-xs text-muted hover:text-txt",children:"New chat"}),(0,t.jsx)("button",{onClick:e,className:"text-muted hover:text-txt text-lg leading-none","aria-label":"Close chat",children:"×"})]}),(0,t.jsxs)("div",{ref:v,className:"flex-1 overflow-y-auto p-3 space-y-3 text-sm",children:[0===d.length&&(0,t.jsx)("p",{className:"text-muted text-xs",children:"Ask the agent to read, write or restructure docs. Runs on your local Claude Code login."}),d.map((e,r)=>(0,t.jsx)("div",{className:(0,f.cn)("user"===e.role&&"ml-8 rounded-lg bg-surface2 px-3 py-2 whitespace-pre-wrap"),children:"user"===e.role?e.text:(0,t.jsxs)(t.Fragment,{children:[e.tools.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mb-2",children:e.tools.map((e,r)=>(0,t.jsx)("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded-sm bg-surface2 border border-border text-accent",children:e},r))}),e.proposals.map(e=>(0,t.jsx)(eS,{proposal:e,onResolve:t=>{var r,a;return r=e.id,a=e.path,void(j.current.push(`User ${t} your proposed edit to ${a}.`),c(e=>e.map(e=>({...e,proposals:e.proposals.map(e=>e.id===r?{...e,status:t}:e)}))))}},e.id)),e.plans.map(e=>(0,t.jsx)(eE,{proposal:e,onResolve:(t,r,a)=>{var n;let s;return s="breakdown"===e.plan.kind?eT((n=e.plan).epic)?eT(n.epic).toUpperCase():n.newEpic?`new epic "${eT(n.newEpic.title)}"`:"no epic":"the roadmap",void(j.current.push("accepted"===t?`User accepted plan for ${s}: created ${r.map(e=>e.id).join(", ")}${a.length?` (unchecked: ${a.join(", ")})`:""}.`:`User rejected the plan for ${s}.`),c(a=>a.map(a=>({...a,plans:a.plans.map(a=>a.id===e.id?{...a,status:t,created:r}:a)}))))}},e.id)),e.questions.map(e=>(0,t.jsx)(eA,{set:e,disabled:h,onSubmit:t=>(function(e,t){if(!h){var r;c(r=>r.map(r=>({...r,questions:r.questions.map(r=>r.id===e.id?{...r,answers:t}:r)}))),k((r=e.questions,["Answers:",...r.map((e,r)=>`- ${e.header}: ${t[r]}`)].join("\n")))}})(e,t)},e.id)),e.text&&(0,t.jsx)(ek.MarkdownRenderer,{content:e.text,className:"text-sm"}),!e.text&&!e.error&&h&&r===d.length-1&&(0,t.jsx)("span",{className:"text-muted text-xs",children:"Thinking…"}),e.error&&(0,t.jsx)("p",{className:"text-red-400 text-xs whitespace-pre-wrap",children:e.error})]})},r))]}),(0,t.jsxs)("div",{className:"border-t border-border p-2",children:[x&&(0,t.jsx)("div",{className:"text-[11px] text-amber px-1 pb-1",children:x}),w&&(0,t.jsxs)("div",{className:"text-[10px] font-mono text-muted px-1 pb-1 truncate",children:["@ ",w]}),(0,t.jsx)("textarea",{value:u,onChange:e=>p(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),k())},rows:3,placeholder:h?"Agent is working…":S?"Answer the questions above…":"Ask the agent… (Enter to send)",className:"w-full resize-none rounded-md bg-surface2 border border-border px-2 py-1.5 text-sm text-txt placeholder:text-muted focus:outline-hidden focus:border-accent"})]})]})}let eO=[{key:"Cmd+K",description:"Open command palette"},{key:"Cmd+P",description:"Go to file"},{key:"b",description:"Go to Board"},{key:"d",description:"Go to Docs"},{key:"a",description:"Go to Activity"},{key:"m",description:"Go to Memory"},{key:"e",description:"Go to Explorer"},{key:"c",description:"Toggle agent chat"},{key:"/",description:"Focus doc search"},{key:"?",description:"Toggle this help"},{key:"Esc",description:"Close panel / modal"}];function e$({children:e}){let{loading:s,summary:o,projects:i,activeProject:d,liveIndicator:c,onProjectChange:u,board:p,openDoc:h,rootParam:m}=(0,n.useApp)(),x=(0,a.useRouter)(),b=(0,a.usePathname)(),[g,y]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[w,N]=(0,r.useState)(!1),[k,S]=(0,r.useState)(!1),[E,_]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key){e.preventDefault(),j(e=>!e);return}if((e.metaKey||e.ctrlKey)&&"p"===e.key){e.preventDefault(),j(!1),N(e=>!e);return}let t=e.target?.tagName;if("INPUT"!==t&&"TEXTAREA"!==t)switch(e.key){case"b":x.push("/board");break;case"d":x.push("/docs");break;case"a":x.push("/activity");break;case"m":x.push("/memory");break;case"e":x.push("/explorer");break;case"c":_(e=>!e);break;case"?":y(e=>!e);break;case"Escape":y(!1);break;case"/":e.preventDefault(),"/docs"===b?document.getElementById("doc-search")?.focus():x.push("/docs")}}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[x,b]),(0,r.useEffect)(()=>{let e=()=>_(!0);return window.addEventListener(eR.ASK_AGENT_EVENT,e),()=>window.removeEventListener(eR.ASK_AGENT_EVENT,e)},[]),s)?(0,t.jsx)(l,{}):(0,t.jsxs)(C,{children:[(0,t.jsx)(eu,{board:p}),(0,t.jsxs)(T,{className:"min-w-0",children:[(0,t.jsx)(B,{summary:o,projects:i,activeProject:d,liveIndicator:c,onProjectChange:u,onToggleChat:()=>_(e=>!e)}),(0,t.jsxs)("div",{className:"flex flex-1 min-h-0",children:[(0,t.jsx)("main",{className:"flex-1 overflow-y-auto",children:e}),(0,t.jsx)("div",{inert:!E,className:(0,f.cn)("shrink-0 overflow-hidden sticky top-12 h-[calc(100svh-3rem)] transition-[width] duration-[var(--duration-slow)] ease-out-soft",E?"w-[380px]":"w-0"),children:(0,t.jsx)(eP,{onClose:()=>_(!1)})})]}),(0,t.jsx)(ew,{open:w,onClose:()=>N(!1),onOpenDoc:h,rootParam:m}),(0,t.jsx)(ey,{open:v,onClose:()=>j(!1),onOpenDoc:h,onNewDoc:()=>{j(!1),S(!0)},rootParam:m}),(0,t.jsx)(eN.NewDocModal,{open:k,onOpenChange:S,rootParam:m,onDocCreated:async e=>{await h(e)}}),(0,t.jsx)(eb.Dialog,{open:g,onOpenChange:y,children:(0,t.jsxs)(eb.DialogContent,{"aria-describedby":void 0,className:"block w-80 p-5 rounded-xl sm:rounded-xl shadow-2xl",children:[(0,t.jsx)(eb.DialogTitle,{className:"font-display text-sm font-semibold text-txt mb-4",children:"Keyboard shortcuts"}),(0,t.jsx)("table",{className:"w-full text-xs",children:(0,t.jsx)("tbody",{children:eO.map(({key:e,description:r})=>(0,t.jsxs)("tr",{className:"border-t border-border first:border-0",children:[(0,t.jsx)("td",{className:"py-1.5 pr-4",children:(0,t.jsx)("kbd",{className:"font-mono bg-surface2 border border-border rounded-sm px-1.5 py-0.5 text-accent",children:e})}),(0,t.jsx)("td",{className:"py-1.5 text-muted",children:r})]},e))})})]})})]})]})}e.s(["default",0,function({children:e}){return(0,t.jsxs)(n.AppProvider,{children:[(0,t.jsx)(i,{}),(0,t.jsx)(e$,{children:e})]})}],588537)}]);