@bpinhosilva/agent-orchestrator 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (362) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/dist/agents/agents.controller.d.ts +8 -0
  3. package/dist/agents/agents.controller.js +74 -1
  4. package/dist/agents/agents.controller.js.map +1 -1
  5. package/dist/agents/agents.module.js +6 -1
  6. package/dist/agents/agents.module.js.map +1 -1
  7. package/dist/agents/agents.service.d.ts +20 -7
  8. package/dist/agents/agents.service.js +171 -11
  9. package/dist/agents/agents.service.js.map +1 -1
  10. package/dist/agents/dto/agent-request.dto.d.ts +1 -0
  11. package/dist/agents/dto/agent-request.dto.js +12 -0
  12. package/dist/agents/dto/agent-request.dto.js.map +1 -1
  13. package/dist/agents/dto/create-agent.dto.d.ts +9 -0
  14. package/dist/agents/dto/create-agent.dto.js +63 -0
  15. package/dist/agents/dto/create-agent.dto.js.map +1 -0
  16. package/dist/agents/dto/update-agent.dto.d.ts +5 -0
  17. package/dist/agents/dto/update-agent.dto.js +13 -0
  18. package/dist/agents/dto/update-agent.dto.js.map +1 -0
  19. package/dist/agents/entities/agent.entity.d.ts +14 -0
  20. package/dist/agents/entities/agent.entity.js +87 -0
  21. package/dist/agents/entities/agent.entity.js.map +1 -0
  22. package/dist/agents/enums/provider.enum.d.ts +4 -0
  23. package/dist/agents/enums/provider.enum.js +9 -0
  24. package/dist/agents/enums/provider.enum.js.map +1 -0
  25. package/dist/agents/implementations/claude.agent.d.ts +27 -0
  26. package/dist/agents/implementations/claude.agent.js +148 -0
  27. package/dist/agents/implementations/claude.agent.js.map +1 -0
  28. package/dist/agents/implementations/gemini.agent.d.ts +23 -1
  29. package/dist/agents/implementations/gemini.agent.js +156 -21
  30. package/dist/agents/implementations/gemini.agent.js.map +1 -1
  31. package/dist/agents/interfaces/agent.interface.d.ts +8 -0
  32. package/dist/agents/interfaces/agent.interface.js +1 -0
  33. package/dist/agents/registry/agent.registry.d.ts +5 -0
  34. package/dist/agents/registry/agent.registry.js +15 -0
  35. package/dist/agents/registry/agent.registry.js.map +1 -0
  36. package/dist/app.controller.js +4 -0
  37. package/dist/app.controller.js.map +1 -1
  38. package/dist/app.module.js +71 -3
  39. package/dist/app.module.js.map +1 -1
  40. package/dist/app.service.js +1 -0
  41. package/dist/auth/auth.controller.d.ts +21 -0
  42. package/dist/auth/auth.controller.js +150 -0
  43. package/dist/auth/auth.controller.js.map +1 -0
  44. package/dist/auth/auth.module.d.ts +2 -0
  45. package/dist/auth/auth.module.js +43 -0
  46. package/dist/auth/auth.module.js.map +1 -0
  47. package/dist/auth/auth.service.d.ts +45 -0
  48. package/dist/auth/auth.service.js +239 -0
  49. package/dist/auth/auth.service.js.map +1 -0
  50. package/dist/auth/decorators/public.decorator.d.ts +2 -0
  51. package/dist/auth/decorators/public.decorator.js +8 -0
  52. package/dist/auth/decorators/public.decorator.js.map +1 -0
  53. package/dist/auth/dto/login.dto.d.ts +4 -0
  54. package/dist/auth/dto/login.dto.js +34 -0
  55. package/dist/auth/dto/login.dto.js.map +1 -0
  56. package/dist/auth/dto/register.dto.d.ts +5 -0
  57. package/dist/auth/dto/register.dto.js +41 -0
  58. package/dist/auth/dto/register.dto.js.map +1 -0
  59. package/dist/auth/entities/refresh-token.entity.d.ts +12 -0
  60. package/dist/auth/entities/refresh-token.entity.js +72 -0
  61. package/dist/auth/entities/refresh-token.entity.js.map +1 -0
  62. package/dist/auth/guards/jwt-auth.guard.d.ts +9 -0
  63. package/dist/auth/guards/jwt-auth.guard.js +39 -0
  64. package/dist/auth/guards/jwt-auth.guard.js.map +1 -0
  65. package/dist/auth/strategies/jwt.strategy.d.ts +16 -0
  66. package/dist/auth/strategies/jwt.strategy.js +45 -0
  67. package/dist/auth/strategies/jwt.strategy.js.map +1 -0
  68. package/dist/cli/index.d.ts +15 -0
  69. package/dist/cli/index.js +487 -0
  70. package/dist/cli/index.js.map +1 -0
  71. package/dist/common/common.module.d.ts +2 -0
  72. package/dist/common/common.module.js +22 -0
  73. package/dist/common/common.module.js.map +1 -0
  74. package/dist/common/entities/artifact.entity.d.ts +7 -0
  75. package/dist/common/entities/artifact.entity.js +49 -0
  76. package/dist/common/entities/artifact.entity.js.map +1 -0
  77. package/dist/common/filters/http-exception.filter.d.ts +4 -0
  78. package/dist/common/filters/http-exception.filter.js +49 -0
  79. package/dist/common/filters/http-exception.filter.js.map +1 -0
  80. package/dist/common/storage.service.d.ts +21 -0
  81. package/dist/common/storage.service.js +105 -0
  82. package/dist/common/storage.service.js.map +1 -0
  83. package/dist/config/env.validation.d.ts +2 -0
  84. package/dist/config/env.validation.js +49 -0
  85. package/dist/config/env.validation.js.map +1 -0
  86. package/dist/config/typeorm.d.ts +6 -0
  87. package/dist/config/typeorm.js +53 -0
  88. package/dist/config/typeorm.js.map +1 -0
  89. package/dist/main.js +54 -2
  90. package/dist/main.js.map +1 -1
  91. package/dist/migrations/1774746981348-InitialSchemaAndSeed.d.ts +6 -0
  92. package/dist/migrations/1774746981348-InitialSchemaAndSeed.js +57 -0
  93. package/dist/migrations/1774746981348-InitialSchemaAndSeed.js.map +1 -0
  94. package/dist/migrations/1774850116434-CreateRefreshTokens.d.ts +6 -0
  95. package/dist/migrations/1774850116434-CreateRefreshTokens.js +68 -0
  96. package/dist/migrations/1774850116434-CreateRefreshTokens.js.map +1 -0
  97. package/dist/models/dto/create-model.dto.d.ts +4 -0
  98. package/dist/models/dto/create-model.dto.js +33 -0
  99. package/dist/models/dto/create-model.dto.js.map +1 -0
  100. package/dist/models/dto/update-model.dto.d.ts +5 -0
  101. package/dist/models/dto/update-model.dto.js +13 -0
  102. package/dist/models/dto/update-model.dto.js.map +1 -0
  103. package/dist/models/entities/model.entity.d.ts +10 -0
  104. package/dist/models/entities/model.entity.js +61 -0
  105. package/dist/models/entities/model.entity.js.map +1 -0
  106. package/dist/models/models.controller.d.ts +13 -0
  107. package/dist/models/models.controller.js +98 -0
  108. package/dist/models/models.controller.js.map +1 -0
  109. package/dist/models/models.module.d.ts +2 -0
  110. package/dist/models/models.module.js +26 -0
  111. package/dist/models/models.module.js.map +1 -0
  112. package/dist/models/models.service.d.ts +14 -0
  113. package/dist/models/models.service.js +78 -0
  114. package/dist/models/models.service.js.map +1 -0
  115. package/dist/projects/dto/create-project.dto.d.ts +7 -0
  116. package/dist/projects/dto/create-project.dto.js +46 -0
  117. package/dist/projects/dto/create-project.dto.js.map +1 -0
  118. package/dist/projects/dto/update-project.dto.d.ts +6 -0
  119. package/dist/projects/dto/update-project.dto.js +29 -0
  120. package/dist/projects/dto/update-project.dto.js.map +1 -0
  121. package/dist/projects/entities/project.entity.d.ts +17 -0
  122. package/dist/projects/entities/project.entity.js +77 -0
  123. package/dist/projects/entities/project.entity.js.map +1 -0
  124. package/dist/projects/projects.controller.d.ts +12 -0
  125. package/dist/projects/projects.controller.js +87 -0
  126. package/dist/projects/projects.controller.js.map +1 -0
  127. package/dist/projects/projects.module.d.ts +2 -0
  128. package/dist/projects/projects.module.js +27 -0
  129. package/dist/projects/projects.module.js.map +1 -0
  130. package/dist/projects/projects.service.d.ts +13 -0
  131. package/dist/projects/projects.service.js +79 -0
  132. package/dist/projects/projects.service.js.map +1 -0
  133. package/dist/providers/dto/create-provider.dto.d.ts +4 -0
  134. package/dist/providers/dto/create-provider.dto.js +33 -0
  135. package/dist/providers/dto/create-provider.dto.js.map +1 -0
  136. package/dist/providers/dto/update-provider.dto.d.ts +5 -0
  137. package/dist/providers/dto/update-provider.dto.js +13 -0
  138. package/dist/providers/dto/update-provider.dto.js.map +1 -0
  139. package/dist/providers/entities/provider.entity.d.ts +9 -0
  140. package/dist/providers/entities/provider.entity.js +55 -0
  141. package/dist/providers/entities/provider.entity.js.map +1 -0
  142. package/dist/providers/providers.controller.d.ts +13 -0
  143. package/dist/providers/providers.controller.js +98 -0
  144. package/dist/providers/providers.controller.js.map +1 -0
  145. package/dist/providers/providers.module.d.ts +2 -0
  146. package/dist/providers/providers.module.js +26 -0
  147. package/dist/providers/providers.module.js.map +1 -0
  148. package/dist/providers/providers.service.d.ts +14 -0
  149. package/dist/providers/providers.service.js +73 -0
  150. package/dist/providers/providers.service.js.map +1 -0
  151. package/dist/tasks/comments.controller.d.ts +12 -0
  152. package/dist/tasks/comments.controller.js +92 -0
  153. package/dist/tasks/comments.controller.js.map +1 -0
  154. package/dist/tasks/comments.service.d.ts +22 -0
  155. package/dist/tasks/comments.service.js +210 -0
  156. package/dist/tasks/comments.service.js.map +1 -0
  157. package/dist/tasks/dto/create-comment.dto.d.ts +13 -0
  158. package/dist/tasks/dto/create-comment.dto.js +52 -0
  159. package/dist/tasks/dto/create-comment.dto.js.map +1 -0
  160. package/dist/tasks/dto/create-recurrent-task.dto.d.ts +10 -0
  161. package/dist/tasks/dto/create-recurrent-task.dto.js +63 -0
  162. package/dist/tasks/dto/create-recurrent-task.dto.js.map +1 -0
  163. package/dist/tasks/dto/create-task.dto.d.ts +9 -0
  164. package/dist/tasks/dto/create-task.dto.js +62 -0
  165. package/dist/tasks/dto/create-task.dto.js.map +1 -0
  166. package/dist/tasks/dto/update-comment.dto.d.ts +9 -0
  167. package/dist/tasks/dto/update-comment.dto.js +32 -0
  168. package/dist/tasks/dto/update-comment.dto.js.map +1 -0
  169. package/dist/tasks/dto/update-recurrent-task.dto.d.ts +5 -0
  170. package/dist/tasks/dto/update-recurrent-task.dto.js +13 -0
  171. package/dist/tasks/dto/update-recurrent-task.dto.js.map +1 -0
  172. package/dist/tasks/dto/update-task.dto.d.ts +5 -0
  173. package/dist/tasks/dto/update-task.dto.js +13 -0
  174. package/dist/tasks/dto/update-task.dto.js.map +1 -0
  175. package/dist/tasks/entities/comment.entity.d.ts +23 -0
  176. package/dist/tasks/entities/comment.entity.js +94 -0
  177. package/dist/tasks/entities/comment.entity.js.map +1 -0
  178. package/dist/tasks/entities/recurrent-task-exec.entity.d.ts +16 -0
  179. package/dist/tasks/entities/recurrent-task-exec.entity.js +74 -0
  180. package/dist/tasks/entities/recurrent-task-exec.entity.js.map +1 -0
  181. package/dist/tasks/entities/recurrent-task.entity.d.ts +20 -0
  182. package/dist/tasks/entities/recurrent-task.entity.js +95 -0
  183. package/dist/tasks/entities/recurrent-task.entity.js.map +1 -0
  184. package/dist/tasks/entities/task.entity.d.ts +31 -0
  185. package/dist/tasks/entities/task.entity.js +126 -0
  186. package/dist/tasks/entities/task.entity.js.map +1 -0
  187. package/dist/tasks/recurrent-task-scheduler.service.d.ts +21 -0
  188. package/dist/tasks/recurrent-task-scheduler.service.js +170 -0
  189. package/dist/tasks/recurrent-task-scheduler.service.js.map +1 -0
  190. package/dist/tasks/recurrent-tasks.controller.d.ts +12 -0
  191. package/dist/tasks/recurrent-tasks.controller.js +89 -0
  192. package/dist/tasks/recurrent-tasks.controller.js.map +1 -0
  193. package/dist/tasks/recurrent-tasks.service.d.ts +16 -0
  194. package/dist/tasks/recurrent-tasks.service.js +137 -0
  195. package/dist/tasks/recurrent-tasks.service.js.map +1 -0
  196. package/dist/tasks/task-scheduler.service.d.ts +23 -0
  197. package/dist/tasks/task-scheduler.service.js +259 -0
  198. package/dist/tasks/task-scheduler.service.js.map +1 -0
  199. package/dist/tasks/tasks.controller.d.ts +24 -0
  200. package/dist/tasks/tasks.controller.js +107 -0
  201. package/dist/tasks/tasks.controller.js.map +1 -0
  202. package/dist/tasks/tasks.module.d.ts +2 -0
  203. package/dist/tasks/tasks.module.js +57 -0
  204. package/dist/tasks/tasks.module.js.map +1 -0
  205. package/dist/tasks/tasks.service.d.ts +34 -0
  206. package/dist/tasks/tasks.service.js +172 -0
  207. package/dist/tasks/tasks.service.js.map +1 -0
  208. package/dist/tsconfig.build.tsbuildinfo +1 -1
  209. package/dist/ui/assets/AgentFleet-CQIXvils.js +6 -0
  210. package/dist/ui/assets/ConfirmDialog-nQ8F6FEz.js +1 -0
  211. package/dist/ui/assets/MarkdownField-BvkVHJZh.js +29 -0
  212. package/dist/ui/assets/ProjectDetail-CZ-tFtQo.js +1 -0
  213. package/dist/ui/assets/Providers-C61nXOPZ.js +1 -0
  214. package/dist/ui/assets/Scheduler-BwWeFfsh.js +1 -0
  215. package/dist/ui/assets/TaskDetail-BKQ3Vgnu.js +1 -0
  216. package/dist/ui/assets/TaskManager-CCOnj4Gq.js +16 -0
  217. package/dist/ui/assets/activity-CYFCUKYz.js +1 -0
  218. package/dist/ui/assets/brain-D1LPqnhA.js +1 -0
  219. package/dist/ui/assets/check-BZcW41Vk.js +1 -0
  220. package/dist/ui/assets/clock-vIUNSAVw.js +1 -0
  221. package/dist/ui/assets/eye-DSoNYXlu.js +1 -0
  222. package/dist/ui/assets/file-text-DyBkf5PF.js +1 -0
  223. package/dist/ui/assets/index-BX3YIi49.css +1 -0
  224. package/dist/ui/assets/index-Ctbpa_Ei.js +20 -0
  225. package/dist/ui/assets/inter-cyrillic-300-normal-BnqRxXuy.woff2 +0 -0
  226. package/dist/ui/assets/inter-cyrillic-300-normal-LR1W_oT8.woff +0 -0
  227. package/dist/ui/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  228. package/dist/ui/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  229. package/dist/ui/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
  230. package/dist/ui/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
  231. package/dist/ui/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
  232. package/dist/ui/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
  233. package/dist/ui/assets/inter-cyrillic-ext-300-normal-CgCALhwJ.woff2 +0 -0
  234. package/dist/ui/assets/inter-cyrillic-ext-300-normal-RId2JxDB.woff +0 -0
  235. package/dist/ui/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  236. package/dist/ui/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  237. package/dist/ui/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
  238. package/dist/ui/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
  239. package/dist/ui/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
  240. package/dist/ui/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
  241. package/dist/ui/assets/inter-greek-300-normal-BrhSP0vQ.woff +0 -0
  242. package/dist/ui/assets/inter-greek-300-normal-DmGD3g_f.woff2 +0 -0
  243. package/dist/ui/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  244. package/dist/ui/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  245. package/dist/ui/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
  246. package/dist/ui/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
  247. package/dist/ui/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
  248. package/dist/ui/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
  249. package/dist/ui/assets/inter-greek-ext-300-normal-DLbbeei1.woff +0 -0
  250. package/dist/ui/assets/inter-greek-ext-300-normal-l2DDyC6M.woff2 +0 -0
  251. package/dist/ui/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  252. package/dist/ui/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  253. package/dist/ui/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
  254. package/dist/ui/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
  255. package/dist/ui/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
  256. package/dist/ui/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
  257. package/dist/ui/assets/inter-latin-300-normal-BVlfKGgI.woff2 +0 -0
  258. package/dist/ui/assets/inter-latin-300-normal-i8F0SvXL.woff +0 -0
  259. package/dist/ui/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  260. package/dist/ui/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  261. package/dist/ui/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  262. package/dist/ui/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  263. package/dist/ui/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
  264. package/dist/ui/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  265. package/dist/ui/assets/inter-latin-ext-300-normal-CPgO9Ksf.woff2 +0 -0
  266. package/dist/ui/assets/inter-latin-ext-300-normal-Dp1L8vcn.woff +0 -0
  267. package/dist/ui/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  268. package/dist/ui/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  269. package/dist/ui/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
  270. package/dist/ui/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
  271. package/dist/ui/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
  272. package/dist/ui/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
  273. package/dist/ui/assets/inter-vietnamese-300-normal-Bdr24Bqb.woff2 +0 -0
  274. package/dist/ui/assets/inter-vietnamese-300-normal-DDGmYYdT.woff +0 -0
  275. package/dist/ui/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  276. package/dist/ui/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  277. package/dist/ui/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
  278. package/dist/ui/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
  279. package/dist/ui/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
  280. package/dist/ui/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
  281. package/dist/ui/assets/layers-BQR0gbW3.js +1 -0
  282. package/dist/ui/assets/manrope-cyrillic-400-normal-BMzJvInZ.woff2 +0 -0
  283. package/dist/ui/assets/manrope-cyrillic-400-normal-Dvx59UGC.woff +0 -0
  284. package/dist/ui/assets/manrope-cyrillic-600-normal-DvRl3Mj-.woff2 +0 -0
  285. package/dist/ui/assets/manrope-cyrillic-600-normal-It4mZcQk.woff +0 -0
  286. package/dist/ui/assets/manrope-cyrillic-700-normal-7JNVKxyl.woff +0 -0
  287. package/dist/ui/assets/manrope-cyrillic-700-normal-Dw_fZAg2.woff2 +0 -0
  288. package/dist/ui/assets/manrope-cyrillic-800-normal-AvdZ5mAV.woff2 +0 -0
  289. package/dist/ui/assets/manrope-cyrillic-800-normal-BuEMjQU-.woff +0 -0
  290. package/dist/ui/assets/manrope-greek-400-normal-CM4qok81.woff2 +0 -0
  291. package/dist/ui/assets/manrope-greek-400-normal-DuX9RsAR.woff +0 -0
  292. package/dist/ui/assets/manrope-greek-600-normal-BoRV6lzK.woff2 +0 -0
  293. package/dist/ui/assets/manrope-greek-600-normal-CF2i9ZRY.woff +0 -0
  294. package/dist/ui/assets/manrope-greek-700-normal-CHUG9PD8.woff2 +0 -0
  295. package/dist/ui/assets/manrope-greek-700-normal-DyfsrCpP.woff +0 -0
  296. package/dist/ui/assets/manrope-greek-800-normal-Bw-67qu9.woff +0 -0
  297. package/dist/ui/assets/manrope-greek-800-normal-CDvU698_.woff2 +0 -0
  298. package/dist/ui/assets/manrope-latin-400-normal-8tf8FM3T.woff +0 -0
  299. package/dist/ui/assets/manrope-latin-400-normal-PaqtzbVb.woff2 +0 -0
  300. package/dist/ui/assets/manrope-latin-600-normal-4f0koTD-.woff2 +0 -0
  301. package/dist/ui/assets/manrope-latin-600-normal-BqgrALkZ.woff +0 -0
  302. package/dist/ui/assets/manrope-latin-700-normal-BZp_XxE4.woff2 +0 -0
  303. package/dist/ui/assets/manrope-latin-700-normal-DGRFkw-m.woff +0 -0
  304. package/dist/ui/assets/manrope-latin-800-normal-BfWYOv1c.woff2 +0 -0
  305. package/dist/ui/assets/manrope-latin-800-normal-uHUdIJgA.woff +0 -0
  306. package/dist/ui/assets/manrope-latin-ext-400-normal-C-X6QNXX.woff +0 -0
  307. package/dist/ui/assets/manrope-latin-ext-400-normal-CMDvPJRp.woff2 +0 -0
  308. package/dist/ui/assets/manrope-latin-ext-600-normal-_gBojHdJ.woff2 +0 -0
  309. package/dist/ui/assets/manrope-latin-ext-600-normal-u5Pl7hTU.woff +0 -0
  310. package/dist/ui/assets/manrope-latin-ext-700-normal-DYOwVNan.woff2 +0 -0
  311. package/dist/ui/assets/manrope-latin-ext-700-normal-eVCcYqtJ.woff +0 -0
  312. package/dist/ui/assets/manrope-latin-ext-800-normal-BQAQsuQc.woff +0 -0
  313. package/dist/ui/assets/manrope-latin-ext-800-normal-DdFx7KEb.woff2 +0 -0
  314. package/dist/ui/assets/manrope-vietnamese-400-normal-D7E_mLGF.woff +0 -0
  315. package/dist/ui/assets/manrope-vietnamese-400-normal-DHb3EETF.woff2 +0 -0
  316. package/dist/ui/assets/manrope-vietnamese-600-normal-C1J5PCl_.woff2 +0 -0
  317. package/dist/ui/assets/manrope-vietnamese-600-normal-lA7a_7Ok.woff +0 -0
  318. package/dist/ui/assets/manrope-vietnamese-700-normal-CUqMx5-1.woff2 +0 -0
  319. package/dist/ui/assets/manrope-vietnamese-700-normal-pt65Fn2Z.woff +0 -0
  320. package/dist/ui/assets/manrope-vietnamese-800-normal-ClPWri-A.woff2 +0 -0
  321. package/dist/ui/assets/manrope-vietnamese-800-normal-bvg7iBCV.woff +0 -0
  322. package/dist/ui/assets/providers-C3SQm75E.js +1 -0
  323. package/dist/ui/assets/send-Cgv_rLex.js +1 -0
  324. package/dist/ui/assets/shield-check-02qtz3Au.js +1 -0
  325. package/dist/ui/assets/sparkles-cO3r5TCU.js +1 -0
  326. package/dist/ui/assets/tasks-BZ0wO0e9.js +1 -0
  327. package/dist/ui/assets/trash-2-7e8TY3SJ.js +1 -0
  328. package/dist/ui/assets/trending-up-Dh3I3BnW.js +1 -0
  329. package/dist/ui/assets/useNotification-nXJIHD_q.js +6 -0
  330. package/dist/ui/assets/user-sikuVJBW.js +1 -0
  331. package/dist/ui/assets/zap-CFqyHdPJ.js +1 -0
  332. package/dist/ui/favicon.svg +1 -0
  333. package/dist/ui/icons.svg +24 -0
  334. package/dist/ui/index.html +17 -0
  335. package/dist/uploads/uploads.controller.d.ts +8 -0
  336. package/dist/uploads/uploads.controller.js +105 -0
  337. package/dist/uploads/uploads.controller.js.map +1 -0
  338. package/dist/uploads/uploads.module.d.ts +2 -0
  339. package/dist/uploads/uploads.module.js +20 -0
  340. package/dist/uploads/uploads.module.js.map +1 -0
  341. package/dist/users/dto/create-user.dto.d.ts +5 -0
  342. package/dist/users/dto/create-user.dto.js +41 -0
  343. package/dist/users/dto/create-user.dto.js.map +1 -0
  344. package/dist/users/dto/update-user.dto.d.ts +5 -0
  345. package/dist/users/dto/update-user.dto.js +13 -0
  346. package/dist/users/dto/update-user.dto.js.map +1 -0
  347. package/dist/users/entities/user.entity.d.ts +8 -0
  348. package/dist/users/entities/user.entity.js +43 -0
  349. package/dist/users/entities/user.entity.js.map +1 -0
  350. package/dist/users/users.controller.d.ts +12 -0
  351. package/dist/users/users.controller.js +89 -0
  352. package/dist/users/users.controller.js.map +1 -0
  353. package/dist/users/users.module.d.ts +2 -0
  354. package/dist/users/users.module.js +26 -0
  355. package/dist/users/users.module.js.map +1 -0
  356. package/dist/users/users.service.d.ts +14 -0
  357. package/dist/users/users.service.js +64 -0
  358. package/dist/users/users.service.js.map +1 -0
  359. package/package.json +75 -15
  360. package/dist/cli.d.ts +0 -2
  361. package/dist/cli.js +0 -21
  362. package/dist/cli.js.map +0 -1
@@ -0,0 +1 @@
1
+ import{c as e,o as t,p as n,s as r,t as i}from"./useNotification-nXJIHD_q.js";import{t as a}from"./activity-CYFCUKYz.js";import{a as o,i as s,n as c,o as l,r as u,t as d}from"./providers-C3SQm75E.js";import{n as f,t as p}from"./zap-CFqyHdPJ.js";import{t as m}from"./clock-vIUNSAVw.js";import{i as h,n as g,r as _,t as v}from"./trending-up-Dh3I3BnW.js";import{t as y}from"./eye-DSoNYXlu.js";import{t as b}from"./trash-2-7e8TY3SJ.js";import{a as x,d as S,i as C,l as w,p as T,s as E}from"./index-Ctbpa_Ei.js";var D=r(`monitor`,[[`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`}]]),O=r(`refresh-ccw`,[[`path`,{d:`M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`14sxne`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16`,key:`1hlbsb`}],[`path`,{d:`M16 16h5v5`,key:`ccwih5`}]]),k=r(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),A=n(e(),1),j=t(),M=({isOpen:e,onClose:t,onCreated:n})=>{let{notifyApiError:r,notifyError:a}=i(),[o,s]=(0,A.useState)(!1),[u,f]=(0,A.useState)(``),[p,m]=(0,A.useState)([``]);A.useEffect(()=>{let n=e=>{e.key===`Escape`&&t()};return e&&window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]);let h=()=>m([...p,``]),_=(e,t)=>{let n=[...p];n[e]=t,m(n)},v=e=>m(p.filter((t,n)=>n!==e));return(0,j.jsx)(x,{children:e&&(0,j.jsxs)(`div`,{className:`fixed inset-0 z-[60] flex items-center justify-center p-4`,children:[(0,j.jsx)(C.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:`absolute inset-0 bg-background/80 backdrop-blur-md`}),(0,j.jsxs)(C.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:`relative w-full max-w-lg bg-surface-container-low/90 backdrop-blur-2xl rounded-2xl shadow-[0_0_50px_-12px_rgba(173,198,255,0.2)] overflow-hidden border border-outline-variant/20`,children:[(0,j.jsxs)(`div`,{className:`px-8 pt-8 pb-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center`,children:(0,j.jsx)(l,{size:18,className:`text-primary`})}),(0,j.jsx)(`h2`,{className:`text-xl font-headline font-bold text-on-surface tracking-tight`,children:`Register Provider`})]}),(0,j.jsx)(`button`,{onClick:t,className:`p-2 rounded-full hover:bg-white/5 transition-colors text-on-surface-variant/40 hover:text-white`,children:(0,j.jsx)(E,{size:18})})]}),(0,j.jsx)(`p`,{className:`text-xs text-on-surface-variant font-medium opacity-60`,children:`Onboard a new computational gateway to your agentic ecosystem.`})]}),(0,j.jsxs)(`div`,{className:`px-8 py-4 space-y-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`label`,{className:`block text-[10px] font-black text-primary tracking-[0.2em] uppercase`,children:`Provider Name`}),(0,j.jsx)(`div`,{className:`bg-surface-container-lowest/50 rounded-xl p-0.5 ring-1 ring-outline-variant/10 focus-within:ring-primary/40 transition-all`,children:(0,j.jsx)(`input`,{type:`text`,value:u,onChange:e=>f(e.target.value),placeholder:`e.g., OpenAI`,className:`w-full bg-transparent border-none rounded-lg px-4 py-3 text-sm focus:outline-none text-white placeholder:text-on-surface-variant/20`})})]}),(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`label`,{className:`block text-[10px] font-black text-primary tracking-[0.2em] uppercase`,children:`Model Variants`}),(0,j.jsx)(`span`,{className:`text-[10px] text-on-surface-variant/40 italic font-medium`,children:`Define available endpoints`})]}),(0,j.jsx)(`div`,{className:`space-y-3 max-h-[200px] overflow-y-auto pr-2 scrollbar-hide`,children:p.map((e,t)=>(0,j.jsxs)(C.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:`flex gap-2 group`,children:[(0,j.jsx)(`div`,{className:`relative flex-1 bg-surface-container-lowest/50 rounded-xl p-0.5 ring-1 ring-outline-variant/5 focus-within:ring-secondary/40 transition-all`,children:(0,j.jsx)(`input`,{type:`text`,value:e,onChange:e=>_(t,e.target.value),placeholder:`gpt-4o`,className:`w-full bg-transparent border-none rounded-lg px-4 py-2.5 text-xs text-white focus:outline-none placeholder:text-on-surface-variant/20`})}),(0,j.jsx)(`button`,{onClick:()=>v(t),className:`w-10 h-10 flex items-center justify-center text-on-surface-variant/20 hover:text-error transition-colors bg-surface-container-highest/10 rounded-xl hover:bg-error/10`,children:(0,j.jsx)(b,{size:16})})]},t))}),(0,j.jsxs)(`button`,{onClick:h,className:`w-full py-3 border-2 border-dashed border-outline-variant/10 rounded-xl flex items-center justify-center gap-2 text-on-surface-variant/40 hover:border-primary/40 hover:text-primary transition-all group font-bold text-[10px] uppercase tracking-widest`,children:[(0,j.jsx)(S,{size:14,className:`group-hover:scale-110 transition-transform`}),`Add model variant`]})]}),(0,j.jsxs)(`div`,{className:`bg-tertiary-container/10 p-5 rounded-2xl flex gap-4 border border-tertiary/5 relative overflow-hidden group`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 w-24 h-24 bg-tertiary/5 blur-2xl rounded-full -mr-10 -mt-10`}),(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-tertiary/10 flex items-center justify-center shrink-0`,children:(0,j.jsx)(T,{size:18,className:`text-tertiary`})}),(0,j.jsxs)(`p`,{className:`text-[11px] text-on-surface-variant/80 leading-relaxed font-medium`,children:[`Once registered, these models will be available in the `,(0,j.jsx)(`span`,{className:`text-tertiary font-bold`,children:`Orchestration Canvas`}),` for node deployment and agent personality mapping.`]})]})]}),(0,j.jsxs)(`div`,{className:`px-8 py-8 flex items-center justify-end gap-6 bg-gradient-to-t from-surface-container-lowest/50 to-transparent`,children:[(0,j.jsx)(`button`,{onClick:t,className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/40 hover:text-white transition-colors`,children:`Cancel`}),(0,j.jsx)(`button`,{onClick:async()=>{if(!u){a(`Validation Error`,`Please enter a provider name`);return}try{s(!0);let e=(await d.create({name:u})).data.id,r=p.filter(e=>e.trim()!==``);await Promise.all(r.map(t=>c.create({name:t,providerId:e}))),n?.(),t(),f(``),m([``])}catch(e){console.error(`Failed to register provider:`,e),r(e,`Registration Failed`)}finally{s(!1)}},disabled:o,className:`bg-primary px-8 py-3 rounded-xl text-on-primary text-[10px] font-black uppercase tracking-[0.2em] shadow-lg shadow-primary/20 hover:scale-[1.05] active:scale-95 transition-all disabled:opacity-50 disabled:grayscale flex items-center gap-2`,children:o?(0,j.jsx)(`span`,{className:`w-3 h-3 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(g,{size:14}),`Register Provider`]})})]}),(0,j.jsx)(`div`,{className:`absolute -bottom-16 -left-16 w-48 h-48 bg-primary/10 blur-[60px] rounded-full pointer-events-none`}),(0,j.jsx)(`div`,{className:`absolute top-0 right-0 w-32 h-1 bg-gradient-to-l from-secondary/40 to-transparent`})]})]})})},N=({isOpen:e,onClose:t,onCreated:n,providerId:r,providerName:a})=>{let{notifyApiError:o}=i(),[s,l]=(0,A.useState)(!1),[u,d]=(0,A.useState)([``]);A.useEffect(()=>{let n=e=>{e.key===`Escape`&&t()};return e&&window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]);let f=()=>d([...u,``]),m=(e,t)=>{let n=[...u];n[e]=t,d(n)},g=e=>{u.length>1&&d(u.filter((t,n)=>n!==e))};return(0,j.jsx)(x,{children:e&&(0,j.jsxs)(`div`,{className:`fixed inset-0 z-[70] flex items-center justify-center p-4 text-white`,children:[(0,j.jsx)(C.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:`absolute inset-0 bg-background/80 backdrop-blur-md`}),(0,j.jsxs)(C.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:`relative w-full max-w-lg bg-surface-container-low/90 backdrop-blur-2xl rounded-2xl shadow-[0_0_50px_-12px_rgba(78,222,163,0.1)] overflow-hidden border border-outline-variant/20`,children:[(0,j.jsxs)(`div`,{className:`px-8 pt-8 pb-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center`,children:(0,j.jsx)(h,{size:18,className:`text-primary`})}),(0,j.jsx)(`h2`,{className:`text-xl font-headline font-bold text-on-surface tracking-tight`,children:`Expand Provider Fleets`})]}),(0,j.jsx)(`button`,{onClick:t,className:`p-2 rounded-full hover:bg-white/5 transition-colors text-on-surface-variant/40 hover:text-white`,children:(0,j.jsx)(E,{size:18})})]}),(0,j.jsxs)(`p`,{className:`text-xs text-on-surface-variant font-medium opacity-60`,children:[`Registering new registry variants for `,(0,j.jsx)(`span`,{className:`text-primary font-bold`,children:a})]})]}),(0,j.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let i=u.filter(e=>e.trim()!==``);if(i.length!==0)try{l(!0),await Promise.all(i.map(e=>c.create({name:e,providerId:r}))),n(),t(),d([``])}catch(e){console.error(`Failed to register models:`,e),o(e,`Registration Failed`)}finally{l(!1)}},children:[(0,j.jsxs)(`div`,{className:`px-8 py-4 space-y-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`label`,{className:`block text-[10px] font-black text-primary tracking-[0.2em] uppercase`,children:`Model Identifiers`}),(0,j.jsx)(`span`,{className:`text-[10px] text-on-surface-variant/40 italic font-medium`,children:`Batch Register Endpoints`})]}),(0,j.jsx)(`div`,{className:`space-y-3 max-h-[300px] overflow-y-auto pr-2 scrollbar-none custom-scrollbar`,children:u.map((e,t)=>(0,j.jsxs)(C.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:`flex gap-2 group`,children:[(0,j.jsx)(`div`,{className:`relative flex-1 bg-surface-container-lowest/50 rounded-xl p-0.5 ring-1 ring-outline-variant/10 focus-within:ring-primary/40 transition-all`,children:(0,j.jsx)(`input`,{autoFocus:t===u.length-1,type:`text`,value:e,onChange:e=>m(t,e.target.value),placeholder:`e.g., gpt-4o-2024-05-13`,className:`w-full bg-transparent border-none rounded-lg px-4 py-3 text-sm focus:outline-none text-white placeholder:text-on-surface-variant/20`})}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>g(t),className:`w-12 h-12 flex items-center justify-center text-on-surface-variant/20 hover:text-error transition-colors bg-surface-container-highest/10 rounded-xl hover:bg-error/10 ${u.length===1?`opacity-0 pointer-events-none`:``}`,children:(0,j.jsx)(b,{size:18})})]},t))}),(0,j.jsxs)(`button`,{type:`button`,onClick:f,className:`w-full py-4 border-2 border-dashed border-outline-variant/10 rounded-xl flex items-center justify-center gap-3 text-on-surface-variant/40 hover:border-primary/40 hover:text-primary transition-all group font-bold text-[10px] uppercase tracking-widest bg-primary/5 hover:bg-primary/10 border-primary/20`,children:[(0,j.jsx)(S,{size:16,className:`group-hover:scale-110 transition-transform`}),`Register New Target variant`]})]}),(0,j.jsxs)(`div`,{className:`bg-primary/5 p-5 rounded-2xl flex gap-4 border border-primary/5 transition-all group relative overflow-hidden`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 w-24 h-24 bg-primary/5 blur-2xl rounded-full -mr-10 -mt-10 pointer-events-none`}),(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0`,children:(0,j.jsx)(p,{size:18,className:`text-primary`})}),(0,j.jsxs)(`p`,{className:`text-[11px] text-on-surface-variant/80 leading-relaxed font-medium`,children:[`Batch models registered here will be synchronized with the `,(0,j.jsx)(`span`,{className:`text-primary font-bold`,children:`Orchestrator Registry`}),` for global accessibility.`]})]})]}),(0,j.jsxs)(`div`,{className:`px-8 py-8 flex items-center justify-end gap-6 bg-gradient-to-t from-surface-container-lowest/50 to-transparent`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/40 hover:text-white transition-colors`,children:`Cancel`}),(0,j.jsx)(`button`,{disabled:s||u.every(e=>!e.trim()),className:`bg-primary px-8 py-3.5 rounded-xl text-on-primary text-[10px] font-black uppercase tracking-[0.2em] shadow-lg shadow-primary/20 hover:scale-[1.05] active:scale-95 transition-all disabled:opacity-50 disabled:grayscale flex items-center gap-2`,children:s?(0,j.jsx)(`span`,{className:`w-4 h-4 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(S,{size:16}),`Append Providers Fleets`]})})]})]}),(0,j.jsx)(`div`,{className:`absolute -bottom-16 -right-16 w-48 h-48 bg-primary/10 blur-[60px] rounded-full pointer-events-none`}),(0,j.jsx)(`div`,{className:`absolute top-0 right-0 w-32 h-1 bg-gradient-to-l from-secondary/40 to-transparent`})]})]})})},P=()=>{let[e,t]=(0,A.useState)(!1),[n,r]=(0,A.useState)(!1),[i,c]=(0,A.useState)(!1),[l,p]=(0,A.useState)(!1),[h,g]=(0,A.useState)([]),[b,x]=(0,A.useState)([]),[C,T]=(0,A.useState)(null),E=h.find(e=>e.id===C),P=b,F=(0,A.useCallback)(async()=>{try{c(!0);let e=await d.findAll();g(e.data),e.data.length>0&&!C&&T(e.data[0].id)}catch(e){console.error(`Failed to fetch providers:`,e)}finally{c(!1)}},[C]),I=async e=>{try{p(!0);let t=await d.findModels(e);x(Array.isArray(t.data)?t.data:[])}catch(e){console.error(`Failed to fetch models:`,e),x([])}finally{p(!1)}};return(0,A.useEffect)(()=>{F()},[F]),(0,A.useEffect)(()=>{C&&I(C)},[C]),(0,j.jsxs)(`div`,{className:`space-y-10 animate-in fade-in slide-in-from-bottom-4 duration-700`,children:[(0,j.jsx)(`header`,{children:(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-end justify-between gap-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`nav`,{className:`flex items-center gap-2 mb-2 text-[10px] uppercase tracking-widest text-primary font-bold`,children:[(0,j.jsx)(`span`,{className:`opacity-60`,children:`Infrastructure`}),(0,j.jsx)(f,{size:12,className:`opacity-40`}),(0,j.jsx)(`span`,{children:`Model Providers`})]}),(0,j.jsx)(`h1`,{className:`text-4xl font-extrabold font-headline tracking-tighter text-white`,children:`Provider Core`}),(0,j.jsx)(`p`,{className:`text-on-surface-variant text-sm mt-1`,children:`Manage global LLM integrations and endpoint health.`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`button`,{onClick:F,disabled:i,className:`px-5 py-2.5 bg-surface-container-high text-on-surface rounded-lg text-xs font-bold uppercase tracking-widest hover:bg-surface-container-highest transition-all ring-1 ring-outline-variant/10 flex items-center gap-2 disabled:opacity-50`,children:[(0,j.jsx)(O,{size:14,className:i?`animate-spin`:``}),i?`Refreshing...`:`Refresh Status`]}),(0,j.jsxs)(`button`,{onClick:()=>t(!0),className:`px-6 py-2.5 bg-primary text-on-primary rounded-lg text-xs font-bold uppercase tracking-widest shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-[0.98] transition-all flex items-center gap-2`,children:[(0,j.jsx)(S,{size:16}),`Register Provider`]})]})]})}),(0,j.jsxs)(`section`,{className:`grid grid-cols-1 md:grid-cols-4 gap-6`,children:[(0,j.jsxs)(`div`,{className:`md:col-span-2 bg-surface-container-low p-7 rounded-2xl border border-outline-variant/5 shadow-2xl relative overflow-hidden group`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 p-6 opacity-[0.03] group-hover:opacity-10 transition-opacity`,children:(0,j.jsx)(a,{size:80,strokeWidth:1})}),(0,j.jsx)(`h3`,{className:`text-[10px] uppercase tracking-[0.2em] font-black text-on-surface-variant/50 mb-6`,children:`Total Request Volume`}),(0,j.jsxs)(`div`,{className:`flex items-end gap-5`,children:[(0,j.jsx)(`span`,{className:`text-5xl font-headline font-black text-white tracking-tighter`,children:`2.4M`}),(0,j.jsxs)(`span`,{className:`text-secondary text-xs font-bold mb-2 flex items-center gap-1 bg-secondary/10 px-2 py-0.5 rounded-full`,children:[(0,j.jsx)(v,{size:14}),` +12%`]})]}),(0,j.jsx)(`div`,{className:`mt-8 flex gap-1.5 h-12 items-end opacity-40`,children:[30,50,20,70,40,90,60,45,80,55,30,40].map((e,t)=>(0,j.jsx)(`div`,{className:`w-full bg-secondary rounded-t-sm transition-all duration-1000`,style:{height:`${e}%`,opacity:(t+1)/12}},t))})]}),(0,j.jsxs)(`div`,{className:`bg-surface-container-low p-7 rounded-2xl border border-outline-variant/5 shadow-xl flex flex-col justify-between group hover:border-secondary/20 transition-all`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-secondary/10 flex items-center justify-center text-secondary mb-4 group-hover:scale-110 transition-transform`,children:(0,j.jsx)(a,{size:20})}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`text-[10px] uppercase tracking-[0.2em] font-black text-on-surface-variant/50`,children:`Global Uptime`}),(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-headline font-black text-secondary`,children:`99.98%`}),(0,j.jsx)(`p`,{className:`text-[9px] text-on-surface-variant/40 mt-1 uppercase font-bold tracking-widest`,children:`Aggregated Network Score`})]})]})]}),(0,j.jsxs)(`div`,{className:`bg-surface-container-low p-7 rounded-2xl border border-outline-variant/5 shadow-xl flex flex-col justify-between group hover:border-tertiary/20 transition-all`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-tertiary/10 flex items-center justify-center text-tertiary mb-4 group-hover:scale-110 transition-transform`,children:(0,j.jsx)(m,{size:20})}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`text-[10px] uppercase tracking-[0.2em] font-black text-on-surface-variant/50`,children:`Avg. Latency`}),(0,j.jsxs)(`div`,{className:`mt-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-headline font-black text-tertiary`,children:`342ms`}),(0,j.jsx)(`p`,{className:`text-[9px] text-on-surface-variant/40 mt-1 uppercase font-bold tracking-widest`,children:`P95 Response Time`})]})]})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-8`,children:[(0,j.jsxs)(`div`,{className:`lg:col-span-4 space-y-5`,children:[(0,j.jsxs)(`h2`,{className:`text-[10px] font-black uppercase tracking-[0.3em] text-on-surface-variant/40 flex items-center gap-3`,children:[(0,j.jsx)(w,{size:14,className:`text-primary`}),` Active Providers`]}),(0,j.jsx)(`div`,{className:`space-y-3`,children:h.length>0?h.map(e=>{let t=C===e.id,n={models:0,status:`Healthy`,color:`text-secondary`,bg:`bg-secondary`};return(0,j.jsxs)(`div`,{onClick:()=>T(e.id),className:`p-5 rounded-2xl cursor-pointer border transition-all duration-300 group ${t?`bg-surface-container-high border-secondary/20 shadow-lg shadow-secondary/5 ring-1 ring-secondary/10 text-white`:`bg-surface-container-low border-transparent hover:bg-surface-container-high/50 text-on-surface-variant`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-surface-container-highest flex items-center justify-center transition-colors ${t?`text-primary`:`text-on-surface-variant`}`,children:(0,j.jsx)(_,{size:20})}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`span`,{className:`font-bold text-sm block transition-colors ${t?`text-white`:`group-hover:text-white`}`,children:e.name}),(0,j.jsxs)(`span`,{className:`text-[9px] font-bold text-on-surface-variant/40 uppercase tracking-widest leading-none mt-1 block`,children:[P.length,` Models Active`]})]})]}),(0,j.jsx)(`div`,{className:`w-1.5 h-1.5 rounded-full ${n.bg} ${n.status===`Healthy`?`animate-pulse shadow-[0_0_10px_rgba(78,222,163,0.5)]`:``}`})]}),(0,j.jsx)(`div`,{className:`flex justify-start`,children:(0,j.jsx)(`span`,{className:`text-[9px] font-black uppercase tracking-widest ${n.color}`,children:n.status})})]},e.id)}):(0,j.jsxs)(`div`,{className:`p-8 border-2 border-dashed border-outline-variant/10 rounded-2xl flex flex-col items-center justify-center text-center opacity-40`,children:[(0,j.jsx)(w,{size:24,className:`mb-4`}),(0,j.jsxs)(`span`,{className:`text-[10px] font-bold uppercase tracking-widest leading-relaxed`,children:[`No providers registered yet.`,(0,j.jsx)(`br`,{}),`Establish logical gateways in the infrastructure hub.`]})]})})]}),(0,j.jsxs)(`div`,{className:`lg:col-span-8 space-y-8`,children:[E?(0,j.jsxs)(`div`,{className:`bg-surface-container-low rounded-3xl overflow-hidden ring-1 ring-outline-variant/10 shadow-2xl animate-in fade-in zoom-in-95 duration-500`,children:[(0,j.jsxs)(`div`,{className:`p-10 relative overflow-hidden`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 w-[500px] h-full bg-gradient-to-l from-primary/5 to-transparent pointer-events-none`}),(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row items-start justify-between gap-8 relative z-10`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-6`,children:[(0,j.jsx)(`div`,{className:`w-20 h-20 bg-surface rounded-2xl flex items-center justify-center ring-1 ring-primary/20 shadow-inner group transition-all duration-500 hover:ring-primary/40`,children:(0,j.jsx)(D,{size:40,className:`text-primary group-hover:scale-110 transition-transform`})}),(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`h2`,{className:`text-3xl font-headline font-black text-white tracking-tight`,children:E.name}),(0,j.jsx)(`div`,{className:`flex gap-2`,children:(0,j.jsx)(`span`,{className:`px-2.5 py-0.5 bg-secondary/10 text-secondary text-[9px] font-black uppercase tracking-widest rounded ring-1 ring-secondary/20 font-headline`,children:`Primary`})})]}),(0,j.jsx)(`p`,{className:`text-on-surface-variant/60 text-sm mt-2`,children:E.description||`Infrastructure gateway for agentic cognition & reasoning.`})]})]}),(0,j.jsxs)(`div`,{className:`flex gap-3`,children:[(0,j.jsx)(`button`,{className:`p-2.5 rounded-xl bg-surface-container-high text-on-surface-variant hover:text-white hover:bg-surface-container-highest transition-all ring-1 ring-outline-variant/10`,children:(0,j.jsx)(k,{size:18})}),(0,j.jsx)(`button`,{className:`p-2.5 rounded-xl bg-surface-container-high text-on-surface-variant hover:text-white hover:bg-surface-container-highest transition-all ring-1 ring-outline-variant/10`,children:(0,j.jsx)(s,{size:18})})]})]}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-10 mt-12 relative z-10`,children:[{label:`Latency`,value:`182ms`,color:`text-tertiary`,bar:`bg-tertiary`,width:`75%`},{label:`Success Rate`,value:`99.9%`,color:`text-secondary`,bar:`bg-secondary`,width:`99%`},{label:`Uptime`,value:`30d 12h`,color:`text-primary`,bar:`bg-primary`,width:`100%`}].map((e,t)=>(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/40 uppercase tracking-[0.2em] font-black mb-2`,children:e.label}),(0,j.jsx)(`p`,{className:`text-2xl font-headline font-black ${e.color}`,children:e.value}),(0,j.jsx)(`div`,{className:`w-full bg-surface-container-highest/30 h-1.5 rounded-full mt-3 overflow-hidden`,children:(0,j.jsx)(`div`,{className:`${e.bar} h-full rounded-full transition-all duration-1000 delay-300`,style:{width:e.width}})})]},t))})]}),(0,j.jsx)(`div`,{className:`p-10 border-t border-outline-variant/5`,children:(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-10`,children:[(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsx)(`label`,{className:`block text-[10px] uppercase tracking-[0.2em] font-black text-on-surface-variant/40`,children:`Endpoint URL`}),(0,j.jsxs)(`div`,{className:`relative group`,children:[(0,j.jsx)(`input`,{readOnly:!0,defaultValue:E.name.includes(`Gemini`)?`https://generativelanguage.googleapis.com/v1beta`:`https://api.openai.com/v1`,className:`w-full bg-surface-container-highest/20 border-none rounded-xl text-xs font-mono py-4 px-5 text-primary focus:ring-1 focus:ring-primary h-12`}),(0,j.jsx)(`button`,{className:`absolute right-4 top-1/2 -translate-y-1/2 text-on-surface-variant/40 hover:text-primary transition-colors`,children:(0,j.jsx)(o,{size:16})})]})]}),(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsx)(`label`,{className:`block text-[10px] uppercase tracking-[0.2em] font-black text-on-surface-variant/40`,children:`Management API Key`}),(0,j.jsxs)(`div`,{className:`relative group`,children:[(0,j.jsx)(`input`,{type:`password`,defaultValue:`********************************`,className:`w-full bg-surface-container-highest/20 border-none rounded-xl text-xs font-mono py-4 px-14 text-white focus:ring-1 focus:ring-primary h-12 border-none ring-0 outline-none`}),(0,j.jsx)(`button`,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-on-surface-variant/40 hover:text-primary transition-colors`,children:(0,j.jsx)(y,{size:16})}),(0,j.jsxs)(`div`,{className:`absolute right-4 top-1/2 -translate-y-1/2 flex gap-2`,children:[(0,j.jsx)(`button`,{className:`text-on-surface-variant/40 hover:text-primary transition-colors`,children:(0,j.jsx)(k,{size:16})}),(0,j.jsx)(`button`,{className:`text-on-surface-variant/40 hover:text-primary transition-colors`,children:(0,j.jsx)(o,{size:16})})]})]})]})]})}),(0,j.jsxs)(`div`,{className:`p-10 border-t border-outline-variant/5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between mb-8`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`h3`,{className:`font-headline font-black text-lg text-white`,children:`Registered Models`}),(0,j.jsxs)(`span`,{className:`px-2 py-0.5 rounded bg-surface-container-high text-[10px] font-bold text-on-surface-variant`,children:[P.length,` Models`]})]}),(0,j.jsxs)(`button`,{onClick:()=>r(!0),className:`text-[10px] font-black uppercase tracking-widest text-primary hover:text-primary/70 transition-colors flex items-center gap-2`,children:[(0,j.jsx)(`div`,{className:`w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center`,children:(0,j.jsx)(S,{size:12})}),`Register New Model`]})]}),(0,j.jsx)(`div`,{className:`rounded-2xl border border-outline-variant/5 overflow-hidden`,children:(0,j.jsxs)(`table`,{className:`w-full text-left text-xs border-collapse`,children:[(0,j.jsx)(`thead`,{children:(0,j.jsxs)(`tr`,{className:`bg-surface-container-high/30 text-on-surface-variant/40 font-black uppercase tracking-[0.2em]`,children:[(0,j.jsx)(`th`,{className:`py-5 px-6`,children:`Model ID`}),(0,j.jsx)(`th`,{className:`py-5 px-6`,children:`Capabilities`}),(0,j.jsx)(`th`,{className:`py-5 px-6 text-right`,children:`Status`}),(0,j.jsx)(`th`,{className:`py-5 px-6 w-12 text-center`,children:`Action`})]})}),(0,j.jsx)(`tbody`,{className:`divide-y divide-outline-variant/5`,children:l?(0,j.jsx)(`tr`,{children:(0,j.jsx)(`td`,{colSpan:4,className:`py-20 text-center`,children:(0,j.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-4 opacity-40`,children:[(0,j.jsx)(`div`,{className:`w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin`}),(0,j.jsx)(`p`,{className:`text-[10px] uppercase font-black tracking-widest text-primary animate-pulse`,children:`Hydrating Model Registry...`})]})})}):P.length>0?P.map((e,t)=>(0,j.jsxs)(`tr`,{className:`group hover:bg-primary/5 transition-all`,children:[(0,j.jsx)(`td`,{className:`py-5 px-6 font-mono text-on-surface font-medium`,children:e.name}),(0,j.jsx)(`td`,{className:`py-5 px-6`,children:(0,j.jsx)(`div`,{className:`flex gap-2`,children:[`TEXT`,`VISION`].map(e=>(0,j.jsx)(`span`,{className:`px-2 py-0.5 bg-tertiary/10 text-tertiary rounded-[4px] text-[8px] font-black tracking-tight`,children:e},e))})}),(0,j.jsx)(`td`,{className:`py-5 px-6 text-right`,children:(0,j.jsx)(`span`,{className:`inline-flex items-center px-2 py-1 rounded font-black text-[8px] uppercase tracking-widest bg-secondary/10 text-secondary`,children:`Active`})}),(0,j.jsx)(`td`,{className:`py-5 px-6 text-center`,children:(0,j.jsx)(`button`,{className:`text-on-surface-variant/40 hover:text-white transition-colors`,children:(0,j.jsx)(s,{size:14})})})]},t)):(0,j.jsx)(`tr`,{children:(0,j.jsx)(`td`,{colSpan:4,className:`py-12 text-center text-on-surface-variant/20 italic font-medium`,children:`No models registered for this provider gate.`})})})]})})]})]}):(0,j.jsxs)(`div`,{className:`h-[600px] bg-surface-container-low/50 rounded-3xl border border-dashed border-outline-variant/10 flex flex-col items-center justify-center text-on-surface-variant gap-4 opacity-40`,children:[(0,j.jsx)(`div`,{className:`w-20 h-20 rounded-2xl bg-surface-container flex items-center justify-center shadow-inner`,children:(0,j.jsx)(D,{size:40,className:`text-primary/50`})}),(0,j.jsxs)(`div`,{className:`text-center`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-headline font-black text-white uppercase tracking-widest mb-1`,children:`Infrastructure Hub`}),(0,j.jsx)(`p`,{className:`text-[10px] font-medium opacity-60`,children:`Select a provider on the left to view active node details.`})]})]}),(0,j.jsxs)(`div`,{className:`bg-surface-container-lowest border border-outline-variant/10 rounded-2xl p-8 shadow-2xl relative overflow-hidden group`,children:[(0,j.jsx)(`div`,{className:`absolute top-4 right-4 text-on-surface-variant/5 italic text-[10px] font-mono select-none`,children:`SYSTEM_STREAM_L09`}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center mb-6 border-b border-outline-variant/5 pb-5`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-3 uppercase tracking-[0.2em] font-black text-[10px] text-tertiary`,children:[(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-secondary animate-pulse shadow-[0_0_10px_rgba(78,222,163,0.5)]`}),`Live System Event Stream`]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-1 rounded-full bg-surface-container-high text-[9px] font-bold text-on-surface-variant/60`,children:[(0,j.jsx)(u,{size:12}),(0,j.jsx)(`span`,{children:`FILTER: gemini-1.5-*`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2 font-mono text-[11px] leading-relaxed`,children:[(0,j.jsxs)(`p`,{className:`flex gap-4`,children:[(0,j.jsx)(`span`,{className:`text-on-surface-variant/30`,children:`[14:22:01]`}),` `,(0,j.jsx)(`span`,{className:`text-primary font-bold`,children:`INFO`}),` `,(0,j.jsx)(`span`,{className:`text-on-surface-variant/80 font-medium`,children:`Node connected: gemini-1.5-pro-instance-09`})]}),(0,j.jsxs)(`p`,{className:`flex gap-4`,children:[(0,j.jsx)(`span`,{className:`text-on-surface-variant/30`,children:`[14:22:05]`}),` `,(0,j.jsx)(`span`,{className:`text-secondary font-bold`,children:`TRANS`}),` `,(0,j.jsx)(`span`,{className:`text-on-surface-variant/80 font-medium`,children:`Request successful: UUID-4421-AX (Lat: 154ms)`})]}),(0,j.jsxs)(`p`,{className:`flex gap-4`,children:[(0,j.jsx)(`span`,{className:`text-on-surface-variant/30`,children:`[14:23:12]`}),` `,(0,j.jsx)(`span`,{className:`text-secondary font-bold`,children:`TRANS`}),` `,(0,j.jsx)(`span`,{className:`text-on-surface-variant/80 font-medium`,children:`Request successful: UUID-9901-BL (Lat: 162ms)`})]}),(0,j.jsxs)(`p`,{className:`flex gap-4`,children:[(0,j.jsx)(`span`,{className:`text-on-surface-variant/30`,children:`[14:24:45]`}),` `,(0,j.jsx)(`span`,{className:`text-tertiary font-bold`,children:`WARN`}),` `,(0,j.jsx)(`span`,{className:`text-on-surface-variant/80 font-medium`,children:`Rate limit approach: gemini-1.5-flash (88% quota)`})]}),(0,j.jsxs)(`p`,{className:`flex gap-4`,children:[(0,j.jsx)(`span`,{className:`text-on-surface-variant/30`,children:`[14:25:00]`}),` `,(0,j.jsx)(`span`,{className:`text-primary font-bold`,children:`INFO`}),` `,(0,j.jsx)(`span`,{className:`text-on-surface-variant/80 font-medium`,children:`Health check passed for all 2 providers.`})]})]})]})]})]}),(0,j.jsx)(`div`,{className:`fixed bottom-8 right-8 z-[100] animate-in slide-in-from-right-10 duration-500`,children:(0,j.jsxs)(`div`,{className:`bg-[#131b2e]/60 backdrop-blur-xl rounded-full px-4 py-2 flex items-center gap-3 ring-1 ring-white/10 shadow-2xl shadow-black/50 overflow-hidden group`,children:[(0,j.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-secondary/10 via-primary/5 to-tertiary/10 opacity-50 group-hover:opacity-100 transition-opacity`}),(0,j.jsxs)(`div`,{className:`flex -space-x-1.5 relative z-10`,children:[(0,j.jsx)(`div`,{className:`w-4 h-4 rounded-full bg-secondary shadow-[0_0_8px_rgba(78,222,163,0.5)]`}),(0,j.jsx)(`div`,{className:`w-4 h-4 rounded-full bg-primary shadow-[0_0_8px_rgba(173,198,255,0.5)]`}),(0,j.jsx)(`div`,{className:`w-4 h-4 rounded-full bg-tertiary shadow-[0_0_8px_rgba(221,183,255,0.5)]`})]}),(0,j.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.2em] text-white/50 relative z-10`,children:`System Synchronized`})]})}),(0,j.jsx)(M,{isOpen:e,onClose:()=>t(!1),onCreated:()=>{F(),t(!1)}}),(0,j.jsx)(N,{isOpen:n,onClose:()=>r(!1),onCreated:()=>{C&&I(C),r(!1)},providerId:C||``,providerName:E?.name||``})]})};export{P as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t,o as n,p as r,r as i,s as a,t as o}from"./useNotification-nXJIHD_q.js";import{t as s}from"./activity-CYFCUKYz.js";import{t as c}from"./brain-D1LPqnhA.js";import{t as l}from"./clock-vIUNSAVw.js";import{n as u,t as d}from"./sparkles-cO3r5TCU.js";import{i as f,n as p,r as m,t as h}from"./trending-up-Dh3I3BnW.js";import{t as g}from"./trash-2-7e8TY3SJ.js";import{a as _,d as v,g as y,h as b,i as x,s as S,t as C,u as w,v as T}from"./index-Ctbpa_Ei.js";import{t as E}from"./tasks-BZ0wO0e9.js";var D=a(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),O=a(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),k=a(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),A=a(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),j=a(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),M=a(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),N=a(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),P=a(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),F={ACTIVE:`active`,PAUSED:`paused`,ERROR:`error`},I={create:e=>i.post(`/recurrent-tasks`,e),findAll:()=>i.get(`/recurrent-tasks`),findOne:e=>i.get(`/recurrent-tasks/${e}`),update:(e,t)=>i.patch(`/recurrent-tasks/${e}`,t),delete:e=>i.delete(`/recurrent-tasks/${e}`)},L=t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={949(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.CronParser=void 0;var r=n(515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},333(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.ExpressionDescriptor=void 0;var r=n(823),i=n(949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0?!0:i,o=r.verbose,s=o===void 0?!1:o,c=r.dayOfWeekStartIndexZero,l=c===void 0?!0:c,u=r.monthStartIndexZero,d=u===void 0?!1:u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p===void 0?!1:p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_===void 0?!1:_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{if(this.expressionParts=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero).parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),a=this.getMonthDescription(),o=this.getDayOfWeekDescription(),s=this.getYearDescription();t+=n+r+o+a+s,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a+=` `,a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o){var s=null,c=e.indexOf(`/`)>-1,l=e.indexOf(`-`)>-1,u=e.indexOf(`,`)>-1;if(!e)s=``;else if(e===`*`)s=t;else if(!c&&!l&&!u)s=r.StringUtilities.format(o(e),n(e));else if(u){for(var d=e.split(`,`),f=``,p=0;p<d.length;p++)if(p>0&&d.length>2&&(f+=`,`,p<d.length-1&&(f+=` `)),p>0&&d.length>1&&(p==d.length-1||d.length==2)&&(f+=`${this.i18n.spaceAnd()} `),d[p].indexOf(`/`)>-1||d[p].indexOf(`-`)>-1){var m=d[p].indexOf(`-`)>-1&&d[p].indexOf(`/`)==-1,h=this.getSegmentDescription(d[p],t,n,i,m?this.i18n.commaX0ThroughX1:a,o);m&&(h=h.replace(`, `,``)),f+=h}else if(!c)f+=n(d[p]);else{var g=this.getSegmentDescription(d[p],t,n,i,a,o);g&&g.startsWith(`, `)&&(g=g.substring(2)),f+=g}s=c?f:r.StringUtilities.format(o(e),f)}else if(c){var d=e.split(`/`);if(s=r.StringUtilities.format(i(d[1]),d[1]),d[0].indexOf(`-`)>-1){var _=this.generateRangeSegmentDescription(d[0],a,n);_.indexOf(`, `)!=0&&(s+=`, `),s+=_}else if(d[0].indexOf(`*`)==-1){var v=r.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else l&&(s=this.generateRangeSegmentDescription(e,a,n));return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},747(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0}),t.enLocaleLoader=void 0;var r=n(486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},486(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},515(e,t){Object.defineProperty(t,`__esModule`,{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},823(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,`__esModule`,{value:!0}),e.toString=void 0;var t=n(333),i=n(747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())})),R=r(e(),1),ee=r(L(),1),z=n(),B=({isOpen:e,onClose:t,onSuccess:n,initialData:r})=>{let{notifyApiError:i,notifyError:a}=o(),[s,m]=(0,R.useState)(!1),[h,g]=(0,R.useState)([]),[v,w]=(0,R.useState)(!1),[D,A]=(0,R.useState)(!1),[j,M]=(0,R.useState)(``),[N,L]=(0,R.useState)(``),[B,V]=(0,R.useState)(``),[H,U]=(0,R.useState)(``),[W,G]=(0,R.useState)(E.MEDIUM),[K,q]=(0,R.useState)(null),[J,Y]=(0,R.useState)(!1),X=(()=>{try{return ee.default.toString(B)}catch{return null}})(),Z=[{label:`Every 10s`,value:`*/10 * * * * *`},{label:`Every 15m`,value:`*/15 * * * *`},{label:`Hourly`,value:`0 * * * *`},{label:`Daily (12AM)`,value:`0 0 * * *`},{label:`Weekly (Sun)`,value:`0 0 * * 0`},{label:`Monthly (1st)`,value:`0 0 1 * *`}];(0,R.useEffect)(()=>{let n=e=>{e.key===`Escape`&&t()};return e?(window.addEventListener(`keydown`,n),te(),r&&(M(r.title),L(r.description),V(r.cronExpression),U(r.assignee.id),G(r.priority))):(M(``),L(``),V(``),U(``),G(E.MEDIUM),q(null),Y(!1)),()=>window.removeEventListener(`keydown`,n)},[e,r,t]);let te=async()=>{try{w(!0),g((await C.findAll()).data||[])}catch(e){console.error(`Failed to fetch agents:`,e)}finally{w(!1)}},Q=e=>{if(!e.trim())return q(`Cron expression is required`),!1;let t=e.trim().split(/\s+/);return t.length!==5&&t.length!==6?(q(`Invalid cron format (expected 5 or 6 fields)`),!1):(q(null),!0)},ne=async e=>{if(e.preventDefault(),!j||!N||!H||!B){let e=[];j||e.push(`title`),N||e.push(`description`),H||e.push(`assigneeId`),B||e.push(`cronExpression`),a(`Validation Error`,`Please fill in all required fields: ${e.join(`, `)}`);return}if(Q(B))try{m(!0),r?await I.update(r.id,{title:j,description:N,cronExpression:B,assigneeId:H,priority:W}):await I.create({title:j,description:N,cronExpression:B,assigneeId:H,priority:W,status:F.ACTIVE}),n(),t()}catch(e){console.error(`Failed to save recurrent task:`,e),i(e,`Operation Failed`)}finally{m(!1)}},re=e=>{switch(e){case E.CRITICAL:return`CRIT`;case E.HIGH:return`HIGH`;case E.MEDIUM:return`MED`;case E.LOW:return`LOW`;default:return`MED`}},$=h.find(e=>e.id===H);return e?(0,z.jsx)(_,{children:(0,z.jsx)(`div`,{className:`fixed inset-0 z-[60] bg-background/60 backdrop-blur-md flex items-center justify-center p-4 overflow-y-auto`,children:(0,z.jsxs)(x.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:`glass-panel w-full max-w-2xl rounded-xl overflow-hidden shadow-2xl glow-primary flex flex-col my-8`,"data-testid":`recurrent-task-modal`,onClick:e=>e.stopPropagation(),children:[(0,z.jsxs)(`div`,{className:`p-6 pb-0 flex justify-between items-start`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{className:`text-2xl font-headline font-extrabold text-primary tracking-tight`,children:r?`Update Protocol`:`Deploy New Task`}),(0,z.jsx)(`p`,{className:`text-sm text-on-surface-variant mt-1`,children:r?`Modify the existing automated orchestration routine.`:`Configure an automated orchestration routine.`})]}),(0,z.jsx)(`button`,{onClick:t,className:`text-on-surface-variant hover:text-on-surface transition-colors p-1`,children:(0,z.jsx)(S,{size:24})})]}),(0,z.jsxs)(`form`,{onSubmit:ne,className:`flex flex-col`,children:[(0,z.jsxs)(`div`,{className:`p-8 space-y-8 overflow-y-auto max-h-[70vh] custom-scrollbar`,children:[(0,z.jsxs)(`section`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-tertiary`,children:[(0,z.jsx)(O,{size:16}),(0,z.jsx)(`h3`,{className:`text-xs font-bold uppercase tracking-widest font-headline`,children:`Task Identity`})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 gap-4`,children:[(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,z.jsx)(`label`,{className:`text-xs font-medium text-on-surface-variant px-1`,children:`Task Name`}),(0,z.jsx)(`input`,{type:`text`,className:`w-full bg-surface-container-lowest border-none rounded-lg p-3 text-on-surface placeholder:text-outline-variant focus:ring-1 focus:ring-tertiary transition-all`,placeholder:`e.g., Daily Market Sweep`,value:j,onChange:e=>M(e.target.value)})]}),(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,z.jsx)(`label`,{className:`text-xs font-medium text-on-surface-variant px-1`,children:`Description`}),(0,z.jsx)(`textarea`,{className:`w-full bg-surface-container-lowest border-none rounded-lg p-3 text-on-surface placeholder:text-outline-variant focus:ring-1 focus:ring-tertiary transition-all`,placeholder:`Briefly describe the objective of this task...`,rows:2,value:N,onChange:e=>L(e.target.value)})]})]})]}),(0,z.jsxs)(`section`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-primary`,children:[(0,z.jsx)(T,{size:16}),(0,z.jsx)(`h3`,{className:`text-xs font-bold uppercase tracking-widest font-headline`,children:`Agent Fleet`})]}),(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsxs)(`div`,{className:`flex items-center bg-surface-container-lowest rounded-lg p-3 cursor-pointer hover:bg-surface-container-high transition-colors ring-1 ring-outline-variant/10 focus-within:ring-primary/40`,onClick:()=>A(!D),role:`combobox`,"aria-expanded":D,"data-testid":`agent-select`,children:[(0,z.jsx)(`div`,{className:`w-8 h-8 rounded bg-primary/20 flex items-center justify-center mr-3`,children:(0,z.jsx)(c,{size:16,className:`text-primary`})}),(0,z.jsxs)(`div`,{className:`flex-1`,children:[(0,z.jsx)(`div`,{className:`text-sm font-semibold text-on-surface`,children:$?$.name:`Select Intelligence Core`}),(0,z.jsx)(`div`,{className:`text-xs text-on-surface-variant`,children:$?$.role||`Active Agent`:`Choose an active agent for execution`})]}),(0,z.jsx)(y,{size:20,className:`text-outline transition-transform ${D?`rotate-180`:``}`})]}),(0,z.jsx)(_,{children:D&&(0,z.jsx)(x.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:`absolute top-full left-0 w-full mt-2 bg-surface-container-highest rounded-lg shadow-xl p-2 z-50 border border-outline-variant/20 max-h-60 overflow-y-auto custom-scrollbar`,"data-testid":`agent-dropdown`,children:v?(0,z.jsx)(`div`,{className:`p-4 text-center text-xs text-on-surface-variant animate-pulse`,children:`Scanning fleet...`}):h.length===0?(0,z.jsx)(`div`,{className:`p-4 text-center text-xs text-on-surface-variant`,children:`No active agents found.`}):h.map(e=>(0,z.jsxs)(`div`,{className:`p-3 hover:bg-surface-container-low rounded cursor-pointer flex items-center gap-3 transition-colors group`,onClick:()=>{U(e.id),A(!1)},"data-testid":`agent-option-${e.id}`,children:[(0,z.jsx)(`div`,{className:`w-8 h-8 rounded bg-surface-container-high flex items-center justify-center group-hover:bg-primary/20 transition-colors`,children:(0,z.jsx)(f,{size:14,className:`text-secondary group-hover:text-primary`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`text-sm font-bold text-on-surface group-hover:text-primary transition-colors`,children:e.name}),(0,z.jsxs)(`div`,{className:`text-[10px] text-secondary`,children:[e.status||`Active`,` • `,e.role||`Core`]})]})]},e.id))})}),(0,z.jsxs)(`select`,{className:`sr-only`,value:H,onChange:e=>U(e.target.value),children:[(0,z.jsx)(`option`,{value:``,children:`Select Agent`}),h.map(e=>(0,z.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]})]}),(0,z.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,z.jsxs)(`section`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-secondary`,children:[(0,z.jsx)(l,{size:16}),(0,z.jsx)(`h3`,{className:`text-xs font-bold uppercase tracking-widest font-headline`,children:`Scheduling Protocol`})]}),(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`relative flex items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative flex-1`,children:[(0,z.jsx)(`input`,{required:!0,className:`w-full bg-surface-container-lowest border-none rounded-lg p-3 font-mono text-sm text-secondary focus:ring-1 transition-all pr-10 ${K?`ring-1 ring-error`:`focus:ring-secondary`}`,type:`text`,value:B,onChange:e=>{V(e.target.value),K&&Q(e.target.value)},onBlur:e=>Q(e.target.value),placeholder:`e.g. 0 0 * * *`}),(0,z.jsx)(u,{size:16,className:`absolute right-3 top-3.5 text-outline-variant`})]}),(0,z.jsx)(`button`,{type:`button`,onClick:()=>Y(!J),className:`p-3 rounded-lg border transition-all ${J?`bg-secondary/20 border-secondary text-secondary shadow-[0_0_10px_rgba(78,222,163,0.2)]`:`bg-surface-container-lowest border-outline-variant/10 text-on-surface-variant hover:text-secondary hover:border-secondary/30`}`,title:`Open Cron Wizard`,children:(0,z.jsx)(P,{size:18})})]}),(0,z.jsx)(_,{children:J&&(0,z.jsx)(x.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},className:`overflow-hidden bg-surface-container-highest/30 rounded-xl border border-secondary/10`,children:(0,z.jsxs)(`div`,{className:`p-4 space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-[10px] font-black uppercase tracking-widest text-secondary/60`,children:[(0,z.jsx)(d,{size:12}),`Temporal Presets`]}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:Z.map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>{V(e.value),q(null)},className:`px-3 py-1.5 rounded-full text-[10px] font-bold border transition-all ${B===e.value?`bg-secondary text-on-secondary border-secondary shadow-lg shadow-secondary/20`:`bg-surface-container-lowest border-outline-variant/10 text-on-surface-variant hover:border-secondary/40 hover:text-secondary`}`,children:e.label},e.value))})]})})}),X&&!K&&(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] text-secondary font-medium bg-secondary/5 px-3 py-2 rounded-lg border border-secondary/10 animate-in fade-in slide-in-from-left-2`,children:[(0,z.jsx)(k,{size:14,className:`shrink-0`}),(0,z.jsx)(`span`,{children:X})]}),(0,z.jsx)(`div`,{className:`px-1 py-1`,children:(0,z.jsxs)(`p`,{className:`text-[9px] text-on-surface-variant/40 font-mono uppercase tracking-[0.1em] flex gap-2`,children:[(0,z.jsx)(`span`,{className:`text-secondary/60 opacity-60 font-black`,children:`[Sec]`}),(0,z.jsx)(`span`,{children:`Min`}),(0,z.jsx)(`span`,{children:`Hour`}),(0,z.jsx)(`span`,{children:`Dom`}),(0,z.jsx)(`span`,{children:`Mon`}),(0,z.jsx)(`span`,{children:`Dow`})]})}),K&&(0,z.jsxs)(`p`,{className:`text-[10px] text-error px-1 flex items-center gap-1.5 font-medium`,children:[(0,z.jsx)(b,{size:12}),K]})]})]}),(0,z.jsxs)(`section`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-error`,children:[(0,z.jsx)(b,{size:16}),(0,z.jsx)(`h3`,{className:`text-xs font-bold uppercase tracking-widest font-headline`,children:`Execution Priority`})]}),(0,z.jsx)(`div`,{className:`flex bg-surface-container-lowest p-1 rounded-lg`,children:[E.LOW,E.MEDIUM,E.HIGH,E.CRITICAL].map(e=>(0,z.jsx)(`button`,{type:`button`,onClick:()=>G(e),className:`flex-1 py-2 text-[10px] font-bold rounded transition-all ${W===e?e===E.CRITICAL?`bg-error/20 text-error`:`bg-surface-container-high text-primary`:`text-on-surface-variant hover:text-on-surface`}`,children:re(e)},e))})]})]}),(0,z.jsxs)(`section`,{className:`bg-surface-container-low p-5 rounded-xl border border-outline-variant/10`,children:[(0,z.jsxs)(`div`,{className:`flex justify-between items-center mb-4`,children:[(0,z.jsx)(`h4`,{className:`text-xs font-bold font-headline text-on-surface-variant tracking-wide`,children:`Deployment Preview`}),(0,z.jsx)(`span`,{className:`text-[10px] bg-secondary-container/30 text-secondary px-2 py-0.5 rounded-full font-bold uppercase`,children:`System Cluster 0-A`})]}),(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between text-xs p-2 bg-surface-container-high/50 rounded-lg`,children:[(0,z.jsx)(`span`,{className:`text-on-surface font-medium italic`,children:`Logic integrity check passed`}),(0,z.jsx)(`span`,{className:`text-secondary font-bold`,children:`READY`})]}),(0,z.jsxs)(`div`,{className:`text-[10px] text-on-surface-variant leading-relaxed`,children:[`This task will be registered in the Alpha-Centauri cluster and executed by `,(0,z.jsx)(`span`,{className:`text-primary`,children:$?.name||`an assigned agent`}),` according to the provided temporal sequence.`]})]})]})]}),(0,z.jsxs)(`div`,{className:`p-6 bg-surface-container-low/50 flex justify-end items-center gap-4 sticky bottom-0 border-t border-outline-variant/10`,children:[(0,z.jsx)(`button`,{type:`button`,onClick:t,className:`px-6 py-2.5 text-sm font-bold text-on-surface-variant hover:text-on-surface transition-all active:scale-95`,children:`Cancel`}),(0,z.jsxs)(`button`,{type:`submit`,disabled:s,className:`px-8 py-2.5 text-sm font-bold bg-primary text-on-primary rounded-lg shadow-lg hover:shadow-primary/20 transition-all active:scale-95 flex items-center gap-2 disabled:opacity-50 disabled:grayscale disabled:cursor-not-allowed group`,children:[s?(0,z.jsx)(`div`,{className:`w-4 h-4 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,z.jsx)(p,{size:16,className:`group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-transform`}),r?`Update Task`:`Create Task`]})]})]})]})})}):null},V=()=>{let{notifySuccess:e,notifyApiError:t}=o(),[n,r]=(0,R.useState)([]),[i,a]=(0,R.useState)(!0),[c,l]=(0,R.useState)(!1),[u,f]=(0,R.useState)(void 0),p=(0,R.useCallback)(async()=>{try{a(!0),r((await I.findAll()).data)}catch(e){t(e,`Error fetching recurrent tasks`)}finally{a(!1)}},[t]);(0,R.useEffect)(()=>{p()},[p]);let _=async(n,r)=>{if(window.confirm(`Are you sure you want to delete the recurrent protocol "${r}"? This action cannot be undone.`))try{await I.delete(n),e(`Protocol Terminated`,`The task "${r}" has been removed from the fleet.`),p()}catch(e){t(e,`Error deleting task`)}},y=()=>{f(void 0),l(!0)},b=e=>{f(e),l(!0)},S=async n=>{let r=n.status===F.ACTIVE?F.PAUSED:F.ACTIVE;try{await I.update(n.id,{status:r}),e(`Protocol ${r===F.ACTIVE?`Resumed`:`Paused`}`,`Operation "${n.title}" has been ${r===F.ACTIVE?`re-activated`:`suspended`}.`),p()}catch(e){t(e,`Failed to update protocol status`)}},C=[{label:`Active Schedules`,value:n.filter(e=>e.status===F.ACTIVE).length.toString(),change:`+12%`,icon:h,color:`text-secondary`,bg:`bg-secondary/10`},{label:`Success Rate`,value:`99.8%`,trend:99.8,icon:s,color:`text-primary`},{label:`Paused Agents`,value:n.filter(e=>e.status===F.PAUSED).length.toString(),subtext:`Awaiting manual audit`,icon:A,color:`text-on-surface-variant`},{label:`Critical Errors`,value:n.filter(e=>e.status===F.ERROR).length.toString(),subtext:`System integrity: nominal`,icon:D,color:`text-error`,bg:`bg-error/10`}];return(0,z.jsxs)(`div`,{className:`space-y-10 animate-in fade-in duration-700`,children:[(0,z.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between items-start md:items-end gap-6`,children:[(0,z.jsxs)(x.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},children:[(0,z.jsx)(`h2`,{className:`text-4xl font-headline font-extrabold text-white tracking-tight mb-2`,children:`Temporal Orchestration`}),(0,z.jsxs)(`p`,{className:`text-on-surface-variant font-body max-w-md`,children:[`Manage autonomous agent lifecycle schedules and recurrent operational flows within the `,(0,z.jsx)(`span`,{className:`text-primary font-bold`,children:`Alpha-Centauri`}),` cluster.`]})]}),(0,z.jsxs)(x.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:y,className:`px-6 py-3.5 bg-primary text-on-primary rounded-xl font-black text-xs uppercase tracking-widest flex items-center gap-2 shadow-lg shadow-primary/20 transition-all border border-primary-container/20 group hover:shadow-primary/40`,children:[(0,z.jsx)(v,{size:18,className:`group-hover:rotate-90 transition-transform duration-300`}),`New Scheduled Task`]})]}),(0,z.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6`,children:C.map((e,t)=>(0,z.jsxs)(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},className:`bg-surface-container-low p-6 rounded-2xl border border-outline-variant/10 shadow-xl group hover:border-primary/20 transition-colors`,children:[(0,z.jsx)(`p`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 mb-1`,children:e.label}),(0,z.jsx)(`h3`,{className:`text-3xl font-headline font-black ${e.color}`,children:e.value}),e.change&&(0,z.jsxs)(`div`,{className:`mt-4 flex items-center text-[10px] font-black uppercase tracking-wider ${e.color} ${e.bg} px-2.5 py-1 rounded-full w-fit`,children:[(0,z.jsx)(e.icon,{size:12,className:`mr-1.5`}),e.change,` vs last month`]}),e.trend!==void 0&&(0,z.jsx)(`div`,{className:`mt-4 w-full bg-surface-container-highest h-1.5 rounded-full overflow-hidden`,children:(0,z.jsx)(x.div,{initial:{width:0},animate:{width:`${e.trend}%`},transition:{duration:1,delay:.5},className:`bg-primary h-full shadow-[0_0_12px_rgba(173,198,255,0.6)]`})}),e.subtext&&(0,z.jsx)(`p`,{className:`mt-4 text-[11px] text-on-surface-variant/50 font-medium italic`,children:e.subtext})]},t))}),(0,z.jsxs)(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:`bg-surface-container-low rounded-2xl overflow-hidden border border-outline-variant/10 shadow-2xl`,children:[(0,z.jsxs)(`div`,{className:`px-8 py-5 flex flex-col md:flex-row justify-between items-center gap-4 bg-surface-container-high/30 border-b border-outline-variant/10`,children:[(0,z.jsx)(`h4`,{className:`font-headline font-bold text-lg text-white`,children:`Recurrent Protocols`}),(0,z.jsxs)(`div`,{className:`flex gap-6`,children:[(0,z.jsxs)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-secondary shadow-[0_0_8px_rgba(78,222,163,0.4)]`}),` Active`]}),(0,z.jsxs)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-on-surface-variant/40`}),` Paused`]}),(0,z.jsxs)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-error shadow-[0_0_8px_rgba(255,180,171,0.4)]`}),` Error`]})]})]}),(0,z.jsx)(`div`,{className:`divide-y divide-outline-variant/10`,children:i?(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center p-20 space-y-4`,children:[(0,z.jsx)(M,{className:`text-primary animate-spin`,size:40}),(0,z.jsx)(`p`,{className:`text-on-surface-variant font-mono text-xs uppercase tracking-widest animate-pulse`,children:`Synchronizing Fleet States...`})]}):n.length===0?(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center p-20 space-y-6 text-center`,children:[(0,z.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-surface-container-highest flex items-center justify-center text-on-surface-variant`,children:(0,z.jsx)(m,{size:32})}),(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h5`,{className:`text-xl font-headline font-bold text-white`,children:`No active protocols detected`}),(0,z.jsx)(`p`,{className:`text-on-surface-variant max-w-sm font-body`,children:`Deployment requested: Initiating autonomous routines requires manual configuration.`})]}),(0,z.jsx)(`button`,{onClick:y,className:`px-4 py-2 border border-primary/30 text-primary rounded-lg text-[10px] font-black uppercase tracking-widest hover:bg-primary/5 transition-colors`,children:`Initiate First Sequence`})]}):n.map(e=>(0,z.jsx)(`div`,{className:`px-8 py-6 hover:bg-surface-container-high/20 transition-all group`,children:(0,z.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-[auto_1fr_160px_160px_160px_220px] items-center gap-10`,children:[(0,z.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-surface-container-highest flex items-center justify-center border border-outline-variant/20 group-hover:border-primary/30 transition-colors shadow-inner`,children:(0,z.jsx)(s,{className:e.status===F.ERROR?`text-error`:`text-primary`,size:24})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h5`,{className:`text-xl font-headline font-black text-white mb-2 group-hover:text-primary transition-colors tracking-tight cursor-pointer`,onClick:()=>b(e),children:e.title}),(0,z.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 bg-surface-container-highest px-3 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest text-on-surface-variant border border-outline-variant/10 shadow-sm`,children:[(0,z.jsx)(T,{size:12}),e.assignee?.name||`Unassigned`]})})]}),(0,z.jsxs)(`div`,{className:`hidden lg:block`,children:[(0,z.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2`,children:`Cycle Pattern`}),(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`p`,{className:`font-mono text-xs text-tertiary font-bold tracking-widest`,children:e.cronExpression}),(0,z.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 font-medium uppercase tracking-tighter italic`,children:`Recurrent Loop`})]})]}),(0,z.jsxs)(`div`,{className:`hidden lg:block`,children:[(0,z.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2`,children:`Last Execution`}),(0,z.jsx)(`p`,{className:`text-sm font-bold tracking-tight text-white/90`,children:e.lastRun?new Date(e.lastRun).toLocaleString():(0,z.jsx)(`span`,{className:`text-on-surface-variant/40 italic`,children:`Never executed`})})]}),(0,z.jsxs)(`div`,{className:`hidden lg:block`,children:[(0,z.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40 mb-2`,children:`Deployed`}),(0,z.jsx)(`p`,{className:`text-sm font-bold text-on-surface tracking-tight`,children:new Date(e.createdAt).toLocaleDateString()})]}),(0,z.jsxs)(`div`,{className:`flex items-center justify-end relative h-full`,children:[(0,z.jsx)(`div`,{className:`flex items-center gap-4 group-hover:opacity-0 transition-opacity`,children:(0,z.jsx)(`span`,{className:`px-4 py-1.5 rounded-full text-[10px] font-black uppercase tracking-widest border transition-all ${e.status===F.ACTIVE?`bg-secondary/10 text-secondary border-secondary/20 shadow-[0_0_15px_rgba(78,222,163,0.1)]`:e.status===F.PAUSED?`bg-surface-container-highest text-on-surface-variant/60 border-outline-variant/20`:`bg-error/10 text-error border-error/20 shadow-[0_0_15px_rgba(255,180,171,0.1)]`}`,children:e.status})}),(0,z.jsxs)(`div`,{className:`absolute right-0 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-all translate-x-2 group-hover:translate-x-0`,children:[(0,z.jsx)(`button`,{className:`p-3 transition-colors ${e.status===F.ACTIVE?`text-secondary hover:text-secondary/80`:`text-on-surface-variant hover:text-secondary`}`,title:e.status===F.ACTIVE?`Pause Protocol`:`Resume Protocol`,onClick:()=>S(e),children:e.status===F.ACTIVE?(0,z.jsx)(A,{size:20}):(0,z.jsx)(j,{size:20})}),(0,z.jsx)(`button`,{className:`p-3 text-on-surface-variant hover:text-primary transition-colors`,title:`Edit`,onClick:()=>b(e),children:(0,z.jsx)(N,{size:20})}),(0,z.jsx)(`button`,{className:`p-3 text-on-surface-variant hover:text-error transition-colors`,title:`Delete`,onClick:()=>_(e.id,e.title),children:(0,z.jsx)(g,{size:20})})]})]})]})},e.id))})]}),(0,z.jsxs)(x.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{delay:.6},className:`p-8 rounded-3xl bg-gradient-to-br from-tertiary/10 via-surface-container-low to-surface-container-low border border-tertiary/20 relative overflow-hidden group`,children:[(0,z.jsxs)(`div`,{className:`relative z-10 flex flex-col md:flex-row gap-8 items-start md:items-center`,children:[(0,z.jsx)(`div`,{className:`w-16 h-16 bg-tertiary/10 rounded-2xl border border-tertiary/20 flex items-center justify-center text-tertiary shadow-xl group-hover:scale-110 transition-transform duration-500`,children:(0,z.jsx)(d,{size:32})}),(0,z.jsxs)(`div`,{className:`flex-1 space-y-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h4`,{className:`text-xl font-headline font-black text-tertiary mb-2 uppercase tracking-tight`,children:`Orchestrator Intelligence Insight`}),(0,z.jsxs)(`p`,{className:`text-on-surface-variant leading-relaxed max-w-4xl font-body italic text-base`,children:[`"Scheduling patterns suggest a resource collision likely at `,(0,z.jsx)(`span`,{className:`text-tertiary font-bold`,children:`03:00 UTC`}),` between 'Daily Market Sweep' and the 'Primary Indexer'. I recommend shifting the Market Sweep forward by 15 minutes to optimize throughput by 12.4%."`]})]}),(0,z.jsxs)(`div`,{className:`flex gap-4`,children:[(0,z.jsx)(`button`,{className:`px-6 py-2.5 bg-tertiary text-on-tertiary rounded-xl font-black text-xs uppercase tracking-widest hover:opacity-90 shadow-lg shadow-tertiary/20 transition-all`,children:`Apply Optimization`}),(0,z.jsx)(`button`,{className:`px-6 py-2.5 border border-tertiary/30 text-tertiary rounded-xl font-black text-xs uppercase tracking-widest hover:bg-tertiary/5 transition-colors`,children:`Dismiss`})]})]})]}),(0,z.jsx)(`div`,{className:`absolute -right-20 -bottom-20 w-80 h-80 bg-tertiary/5 blur-[100px] rounded-full group-hover:bg-tertiary/10 transition-colors duration-1000`})]}),(0,z.jsxs)(x.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{delay:.8,duration:.8},className:`fixed bottom-8 right-8 w-80 bg-surface-container-highest/60 backdrop-blur-2xl p-6 rounded-2xl shadow-[0_32px_64px_rgba(0,0,0,0.5)] border border-outline-variant/20 z-10`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full bg-secondary animate-pulse shadow-[0_0_8px_rgba(78,222,163,0.6)]`}),(0,z.jsx)(`span`,{className:`text-[10px] font-black font-headline uppercase tracking-[0.2em] text-secondary`,children:`Real-time Stream`})]}),(0,z.jsx)(`button`,{className:`text-on-surface-variant hover:text-white transition-colors`,children:(0,z.jsx)(w,{size:14})})]}),(0,z.jsx)(`div`,{className:`space-y-4`,children:[{time:`09:42:11`,msg:`started execution sweep`,node:`Oracle-v2`,nodeColor:`text-primary`},{time:`09:41:00`,msg:`verified task queue (12 tasks)`,node:`Cron-Engine`,nodeColor:`text-on-surface`},{time:`09:30:00`,msg:`archived 400 records`,node:`Log-Service`,nodeColor:`text-secondary`}].map((e,t)=>(0,z.jsxs)(`div`,{className:`flex gap-4 text-xs font-medium`,children:[(0,z.jsx)(`span`,{className:`text-on-surface-variant/40 font-mono tracking-tighter shrink-0`,children:e.time}),(0,z.jsxs)(`p`,{className:`text-on-surface-variant/80`,children:[(0,z.jsx)(`span`,{className:`${e.nodeColor} font-black`,children:e.node}),` `,e.msg]})]},t))}),(0,z.jsx)(`button`,{className:`w-full mt-8 py-3 bg-surface-container/40 border border-outline-variant/10 rounded-xl text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 hover:bg-surface-container-high hover:text-white transition-all`,children:`Expand Log Manifest`})]}),(0,z.jsx)(B,{isOpen:c,onClose:()=>l(!1),onSuccess:()=>{l(!1),p()},initialData:u})]})};export{V as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t,o as n,p as r,r as i,s as a,t as o}from"./useNotification-nXJIHD_q.js";import{n as s,t as c}from"./zap-CFqyHdPJ.js";import{t as l}from"./file-text-DyBkf5PF.js";import{n as u,t as d}from"./shield-check-02qtz3Au.js";import{t as f}from"./send-Cgv_rLex.js";import{t as p}from"./trash-2-7e8TY3SJ.js";import{t as m}from"./ConfirmDialog-nQ8F6FEz.js";import{t as h}from"./user-sikuVJBW.js";import{b as g,t as _,v,x as y}from"./index-Ctbpa_Ei.js";import{n as b,r as x,t as S}from"./MarkdownField-BvkVHJZh.js";import{n as C,r as w,t as T}from"./tasks-BZ0wO0e9.js";var E=a(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),D=a(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),O=a(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),k=a(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),A=a(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),j=a(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),M=r(e(),1),N={USER:`user`,AGENT:`agent`},P={create:async(e,t)=>(await i.post(`/tasks/${e}/comments`,t)).data,findAllByTask:async e=>(await i.get(`/tasks/${e}/comments`)).data,remove:async(e,t)=>{await i.delete(`/tasks/${e}/comments/${t}`)}},F={findAll:async()=>(await i.get(`/users`)).data},I=n(),L=({name:e,size:t,type:n,filePath:r})=>{let i=[`png`,`jpg`,`jpeg`,`svg`,`gif`].includes(n.toLowerCase()),a=r.startsWith(`http`)?r:`/api/v1/${r}`;return(0,I.jsxs)(`div`,{className:`flex items-center gap-4 p-3 bg-surface-container-highest/40 rounded-lg border border-outline-variant/10 group hover:border-primary/20 transition-all cursor-pointer`,onClick:()=>window.open(a,`_blank`),children:[(0,I.jsx)(`div`,{className:`h-10 w-10 rounded shadow-inner flex items-center justify-center overflow-hidden ${i?`bg-secondary/10 text-secondary`:`bg-primary/10 text-primary`}`,children:i?(0,I.jsx)(`img`,{src:a,alt:e,className:`h-full w-full object-cover`}):(0,I.jsx)(l,{size:20})}),(0,I.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,I.jsx)(`p`,{className:`text-xs font-bold text-on-surface truncate`,children:e}),(0,I.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 font-medium uppercase tracking-tighter`,children:t||`Artifact`})]}),(0,I.jsx)(`div`,{className:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity`,children:(0,I.jsx)(`button`,{className:`p-1.5 hover:bg-surface-container-highest rounded text-on-surface-variant hover:text-primary transition-colors`,children:(0,I.jsx)(O,{size:14})})})]})},R=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),z=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m<p;m+=1){var h=f[m];h.d&&(c=o?n(t).diff(a,h.d,!0):a.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),B=r(R(),1),V=r(z(),1);B.default.extend(V.default);var H=({comment:e,onDelete:t})=>{let n=e.authorType===N.AGENT,r=n?e.authorAgent?.name:e.authorUser?.username,i=n?e.authorAgent?.avatarUrl:e.authorUser?.avatarUrl;return(0,I.jsxs)(`div`,{className:`flex gap-4 group`,children:[(0,I.jsx)(`div`,{className:`flex-shrink-0 h-10 w-10 rounded-xl flex items-center justify-center border transition-all ${n?`bg-tertiary/10 border-tertiary/20 text-tertiary shadow-[0_0_15px_rgba(221,183,255,0.1)]`:`bg-primary/10 border-primary/20 text-primary shadow-[0_0_15px_rgba(173,198,255,0.1)]`}`,children:i?(0,I.jsx)(`img`,{src:i,alt:r,className:`h-full w-full object-cover p-1`}):n?(0,I.jsx)(v,{size:20}):(0,I.jsx)(h,{size:20})}),(0,I.jsxs)(`div`,{className:`flex-1 space-y-3`,children:[(0,I.jsxs)(`div`,{className:`flex items-baseline justify-between`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,I.jsx)(`span`,{className:`text-sm font-headline font-bold ${n?`text-tertiary`:`text-primary`}`,children:r||`Anonymous`}),n&&(0,I.jsx)(`span`,{className:`px-1.5 py-0.5 bg-tertiary/10 text-tertiary text-[9px] font-black uppercase tracking-widest rounded border border-tertiary/20`,children:`Agent`})]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,I.jsx)(`span`,{className:`text-xs font-mono text-on-surface-variant/40 lowercase`,children:(0,B.default)(e.createdAt).format(`MMM DD, YYYY HH:mm:ss`)}),t&&(0,I.jsx)(`button`,{onClick:()=>t(e.id),className:`opacity-0 group-hover:opacity-100 p-2 hover:bg-error/10 text-on-surface-variant/40 hover:text-error rounded-lg transition-all`,title:`Delete comment`,children:(0,I.jsx)(p,{size:18})})]})]}),(0,I.jsxs)(`div`,{className:`bg-surface-container-high/40 border border-outline-variant/5 p-4 rounded-xl shadow-sm group-hover:bg-surface-container-high/60 transition-colors`,children:[(0,I.jsx)(`div`,{className:`prose prose-invert prose-xs max-w-none text-on-surface leading-relaxed`,children:(0,I.jsx)(x,{remarkPlugins:[b],children:e.content})}),e.artifacts&&e.artifacts.length>0&&(0,I.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3 mt-4 pt-4 border-t border-outline-variant/10`,children:e.artifacts.map(e=>(0,I.jsx)(L,{name:e.originalName,type:e.mimeType.split(`/`)[1]||`file`,filePath:e.filePath,size:`Artifact`},e.id))})]})]})]})},U=({comments:e,isLoading:t,onDelete:n})=>(0,I.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-6 custom-scrollbar`,children:t?(0,I.jsx)(`div`,{className:`space-y-6 animate-pulse`,children:[1,2,3].map(e=>(0,I.jsxs)(`div`,{className:`flex gap-4`,children:[(0,I.jsx)(`div`,{className:`h-10 w-10 bg-surface-container-highest rounded-xl`}),(0,I.jsxs)(`div`,{className:`flex-1 space-y-3`,children:[(0,I.jsx)(`div`,{className:`h-4 w-1/4 bg-surface-container-highest rounded`}),(0,I.jsx)(`div`,{className:`h-20 w-full bg-surface-container-highest rounded-xl`})]})]},e))}):e.length===0?(0,I.jsxs)(`div`,{className:`flex flex-col items-center justify-center p-12 text-center space-y-4 bg-surface-container-high/20 rounded-2xl border border-dashed border-outline-variant/20`,children:[(0,I.jsx)(`div`,{className:`h-12 w-12 rounded-full bg-surface-container-highest flex items-center justify-center text-on-surface-variant/40`,children:(0,I.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,I.jsx)(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})})}),(0,I.jsxs)(`div`,{className:`space-y-1`,children:[(0,I.jsx)(`p`,{className:`text-sm font-bold text-on-surface`,children:`No comments yet`}),(0,I.jsx)(`p`,{className:`text-xs text-on-surface-variant/60`,children:`Start the conversation by adding a comment below.`})]})]}):(0,I.jsx)(`div`,{className:`space-y-8`,children:e.map(e=>(0,I.jsx)(H,{comment:e,onDelete:n},e.id))})}),W=({onSend:e,isSending:t})=>{let[n,r]=(0,M.useState)(``),i=()=>{n.trim()&&!t&&(e(n),r(``))};return(0,I.jsxs)(`div`,{className:`bg-surface-container-low border border-outline-variant/10 rounded-2xl p-4 shadow-2xl shadow-primary/5 focus-within:border-primary/30 transition-all space-y-4`,children:[(0,I.jsx)(S,{value:n,onChange:r,onKeyDown:e=>{e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&i()},placeholder:`Write a comment...`,height:`min-h-[120px]`}),(0,I.jsxs)(`div`,{className:`flex items-center justify-between pt-4 border-t border-outline-variant/5`,children:[(0,I.jsx)(`div`,{className:`flex items-center gap-1`}),(0,I.jsx)(`button`,{onClick:i,disabled:!n.trim()||t,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl font-bold text-xs uppercase tracking-widest transition-all active:scale-95 disabled:opacity-50 disabled:active:scale-100 ${n.trim()?`bg-gradient-to-r from-primary to-primary/80 text-on-primary shadow-lg shadow-primary/20 hover:brightness-110`:`bg-surface-container-highest text-on-surface-variant cursor-not-allowed`}`,children:t?(0,I.jsx)(`div`,{className:`w-4 h-4 rounded-full border-2 border-on-primary/30 border-t-on-primary animate-spin`}):(0,I.jsxs)(I.Fragment,{children:[`Send`,(0,I.jsx)(f,{size:14})]})})]})]})},G=({taskId:e})=>{let[t,n]=(0,M.useState)([]),[r,i]=(0,M.useState)(!0),[a,s]=(0,M.useState)(!1),[c,l]=(0,M.useState)(null),[u,d]=(0,M.useState)(null),[f,p]=(0,M.useState)(!1),{notifySuccess:h,notifyApiError:g}=o(),_=(0,M.useCallback)(async(t=!1)=>{try{t||i(!0),n([...await P.findAllByTask(e)].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()))}catch(e){console.error(`Failed to fetch comments:`,e)}finally{t||i(!1)}},[e]),v=(0,M.useCallback)(async()=>{try{let e=await F.findAll();e.length>0&&l(e.find(e=>e.username.toLowerCase().includes(`bruno`))||e[0])}catch(e){console.error(`Failed to fetch users:`,e)}},[]);return(0,M.useEffect)(()=>{_(),v();let e=setInterval(()=>_(!0),1e4);return()=>clearInterval(e)},[_,v]),(0,I.jsxs)(`div`,{className:`bg-surface-container-low rounded-2xl border border-outline-variant/10 shadow-2xl shadow-primary/5 overflow-hidden flex flex-col h-full`,children:[(0,I.jsxs)(`div`,{className:`p-6 border-b border-outline-variant/5 flex items-center justify-between bg-surface-container-low/50 backdrop-blur-md sticky top-0 z-10`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,I.jsx)(`div`,{className:`bg-primary/20 p-2.5 rounded-xl shadow-lg shadow-primary/10`,children:(0,I.jsx)(k,{size:22,className:`text-secondary stroke-[2.5]`})}),(0,I.jsx)(`h2`,{className:`text-lg font-headline font-black tracking-tight text-on-surface`,children:`Comments & Activity`})]}),(0,I.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,I.jsxs)(`span`,{className:`text-[10px] bg-white/5 border border-white/10 px-2 py-0.5 rounded text-white/40 font-mono tracking-widest uppercase`,children:[t.length,` Logged`]})})]}),(0,I.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,I.jsx)(U,{comments:t,isLoading:r,onDelete:e=>{d(e)}})}),(0,I.jsx)(`div`,{className:`p-6 bg-surface-container-low/50 border-t border-outline-variant/5 backdrop-blur-md`,children:(0,I.jsx)(W,{onSend:async t=>{if(!(!e||!c))try{s(!0);let r=await P.create(e,{content:t,authorType:N.USER,authorUserId:c.id});n(e=>[r,...e])}catch(e){console.error(`Failed to send comment:`,e)}finally{s(!1)}},isSending:a})}),(0,I.jsx)(m,{isOpen:!!u,onClose:()=>!f&&d(null),onConfirm:async()=>{if(!(!e||!u))try{p(!0),await P.remove(e,u),n(e=>e.filter(e=>e.id!==u)),d(null),h(`Protocol Cleared`,`The comment data has been purged from the orchestration logs.`)}catch(e){console.error(`Failed to delete comment:`,e),g(e,`Purge Failed`)}finally{p(!1)}},title:`Purge Communication Protocol?`,message:`This action will permanently erase the selected entry and all its associated artifacts from the neural stream. This operation is irreversible.`,confirmText:`Execute Purge`,variant:`danger`,loading:f})]})},K=()=>{let{projectId:e,taskId:t}=y(),n=g(),{notifySuccess:r,notifyError:i}=o(),[a,l]=(0,M.useState)(null),[f,m]=(0,M.useState)(!0),[h,v]=(0,M.useState)(!1),[b,x]=(0,M.useState)(``),[O,k]=(0,M.useState)(``),[N,P]=(0,M.useState)(C.BACKLOG),[F,L]=(0,M.useState)(T.MEDIUM),[R,z]=(0,M.useState)([]),[B,V]=(0,M.useState)(null),H=(0,M.useCallback)(async()=>{try{z((await _.findAll()).data)}catch(e){console.error(`Failed to fetch agents:`,e)}},[]),U=(0,M.useCallback)(async()=>{if(!(!e||!t))try{m(!0);let n=(await w.findOne(e,t)).data;l(n),x(n.title),k(n.description),P(n.status),L(n.priority),V(n.assignee?.id||null)}catch(e){console.error(`Failed to fetch task:`,e),i(`Fetch Error`,`Failed to load task intelligence node.`)}finally{m(!1)}},[e,t,i]);(0,M.useEffect)(()=>{U(),H()},[U,H]);let W=async()=>{if(!(!e||!t))try{v(!0),await w.update(e,t,{title:b,description:O,status:N,priority:F,assigneeId:B||null}),r(`Task Updated`,`Intelligence node parameters successfully reconfigured.`)}catch(e){console.error(`Failed to update task:`,e),i(`Update Failed`,`Failed to synchronize parameters with the neural mesh.`)}finally{v(!1)}},K=async()=>{if(!(!e||!t)&&window.confirm(`Are you sure you want to decommission this task node?`))try{await w.delete(e,t),r(`Task Decommissioned`,`Intelligence node removed from the orchestration grid.`),n(`/`)}catch(e){console.error(`Failed to delete task:`,e),i(`Decommission Failed`,`Failed to remove node from the grid.`)}};if(f)return(0,I.jsx)(`div`,{className:`w-full h-[60vh] flex items-center justify-center`,children:(0,I.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,I.jsx)(`div`,{className:`w-16 h-16 border-4 border-primary border-t-transparent rounded-full animate-spin`}),(0,I.jsx)(`p`,{className:`text-on-surface-variant text-sm font-black uppercase tracking-[0.3em] animate-pulse`,children:`Accessing Node Data`})]})});if(!a)return null;let q=`#NODE-${a.id.substring(0,4).toUpperCase()}`;return(0,I.jsxs)(`div`,{className:`max-w-7xl mx-auto w-full space-y-8 animate-in fade-in duration-500`,children:[(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,I.jsxs)(`nav`,{className:`flex items-center space-x-2 text-sm text-on-surface-variant font-medium`,children:[(0,I.jsx)(`span`,{className:`hover:text-primary transition-colors cursor-pointer`,onClick:()=>n(`/`),children:`Task Manager`}),(0,I.jsx)(s,{size:16}),(0,I.jsx)(`span`,{className:`text-on-surface`,children:q})]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,I.jsxs)(`button`,{onClick:K,className:`flex items-center gap-2 px-4 py-2 text-xs font-black uppercase tracking-widest text-error hover:bg-error/10 transition-all rounded-xl active:scale-95`,children:[(0,I.jsx)(p,{size:16}),`Decommission`]}),(0,I.jsxs)(`button`,{className:`flex items-center gap-2 px-4 py-2 text-xs font-black uppercase tracking-widest text-on-surface bg-surface-container-high hover:bg-surface-container-highest transition-all rounded-xl active:scale-95`,children:[(0,I.jsx)(D,{size:16}),`Halt execution`]}),(0,I.jsxs)(`button`,{onClick:W,disabled:h,className:`flex items-center gap-2 px-6 py-2 text-xs font-black uppercase tracking-widest bg-primary text-on-primary rounded-xl shadow-lg shadow-primary/20 hover:scale-105 transition-all active:scale-95 disabled:opacity-50`,children:[(0,I.jsx)(u,{size:16}),h?`Synchronizing...`:`Save Protocol`]})]})]}),(0,I.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-6`,children:[(0,I.jsxs)(`div`,{className:`lg:col-span-8 flex flex-col gap-6`,children:[(0,I.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-2xl relative overflow-hidden`,children:[(0,I.jsx)(`div`,{className:`absolute top-0 right-0 w-32 h-32 bg-primary/5 rounded-full blur-3xl -mr-16 -mt-16`}),(0,I.jsxs)(`div`,{className:`flex items-start justify-between mb-10 relative z-10`,children:[(0,I.jsxs)(`div`,{className:`space-y-1`,children:[(0,I.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-[0.2em] text-primary/70`,children:`Intelligence Node identifier`}),(0,I.jsxs)(`h2`,{className:`text-3xl font-headline font-black text-white tracking-tight`,children:[q,`: `,a.title]})]}),(0,I.jsxs)(`div`,{className:`relative`,children:[(0,I.jsxs)(`select`,{value:N,onChange:e=>P(e.target.value),className:`appearance-none cursor-pointer px-6 py-2 rounded-xl border font-black text-[10px] uppercase tracking-widest outline-none transition-all hover:brightness-110 active:scale-95 ${N===C.DONE?`bg-secondary/10 border-secondary/20 text-secondary`:N===C.IN_PROGRESS?`bg-primary/10 border-primary/20 text-primary`:`bg-surface-container-highest/50 border-outline-variant/20 text-on-surface-variant`}`,children:[(0,I.jsx)(`option`,{value:C.BACKLOG,className:`bg-surface-container-low`,children:`Backlog`}),(0,I.jsx)(`option`,{value:C.IN_PROGRESS,className:`bg-surface-container-low`,children:`In Progress`}),(0,I.jsx)(`option`,{value:C.REVIEW,className:`bg-surface-container-low`,children:`Review`}),(0,I.jsx)(`option`,{value:C.DONE,className:`bg-surface-container-low`,children:`Done`})]}),N===C.IN_PROGRESS&&(0,I.jsxs)(`span`,{className:`absolute -left-1 -top-1 flex h-2 w-2`,children:[(0,I.jsx)(`span`,{className:`animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75`}),(0,I.jsx)(`span`,{className:`relative inline-flex rounded-full h-2 w-2 bg-primary`})]})]})]}),(0,I.jsxs)(`div`,{className:`space-y-8 relative z-10`,children:[(0,I.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Node Designation`}),(0,I.jsx)(`input`,{className:`w-full bg-surface-container-highest/30 border border-outline-variant/10 rounded-xl px-4 py-3 text-sm text-white focus:ring-1 focus:ring-primary/40 focus:bg-surface-container-highest/50 transition-all outline-none font-medium`,type:`text`,value:b,onChange:e=>x(e.target.value)})]}),(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Operational Priority`}),(0,I.jsxs)(`select`,{value:F,onChange:e=>L(Number(e.target.value)),className:`w-full border rounded-xl px-4 py-3 text-sm transition-all outline-none font-black tracking-widest uppercase appearance-none ${F===T.CRITICAL?`bg-error/30 text-white border-error shadow-[0_0_15px_rgba(255,107,107,0.15)] ring-1 ring-error/20`:`bg-surface-container-highest/30 text-white border-outline-variant/10 focus:ring-1 focus:ring-primary/40 focus:bg-surface-container-highest/50`}`,children:[(0,I.jsx)(`option`,{value:T.CRITICAL,className:`bg-surface-container-low`,children:`CRITICAL`}),(0,I.jsx)(`option`,{value:T.HIGH,className:`bg-surface-container-low`,children:`HIGH`}),(0,I.jsx)(`option`,{value:T.MEDIUM,className:`bg-surface-container-low`,children:`MEDIUM`}),(0,I.jsx)(`option`,{value:T.LOW,className:`bg-surface-container-low`,children:`LOW`})]})]})]}),(0,I.jsx)(S,{label:`Objective / Parameters`,value:O,onChange:k,placeholder:`Describe the desired output and constraints for this node...`,height:`h-56`,helperText:`Supports GitHub Flavored Markdown for logic structure`,initialMode:`preview`})]})]}),(0,I.jsx)(`div`,{className:`flex-1 min-h-0`,children:(0,I.jsx)(G,{taskId:t||``})})]}),(0,I.jsxs)(`div`,{className:`lg:col-span-4 space-y-6`,children:[(0,I.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-xl`,children:[(0,I.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-tertiary/80 block mb-6`,children:`Assigned Intelligence`}),(0,I.jsxs)(`div`,{className:`space-y-4`,children:[(0,I.jsxs)(`div`,{className:`relative`,children:[(0,I.jsxs)(`select`,{value:B||``,onChange:e=>V(e.target.value||null),className:`w-full bg-surface-container-high/50 border border-outline-variant/5 rounded-2xl p-5 appearance-none cursor-pointer focus:ring-1 focus:ring-tertiary/40 outline-none text-white font-headline font-black transition-all hover:border-tertiary/30`,children:[(0,I.jsx)(`option`,{value:``,children:`Protocol Unassigned`}),R.map(e=>(0,I.jsx)(`option`,{value:e.id,className:`bg-surface-container-low`,children:e.name},e.id))]}),(0,I.jsx)(`div`,{className:`absolute right-5 top-1/2 -translate-y-1/2 pointer-events-none text-on-surface-variant/40`,children:(0,I.jsx)(E,{size:20})})]}),B?(0,I.jsxs)(`div`,{className:`flex items-center gap-5 p-5 bg-tertiary/5 rounded-2xl border border-tertiary/10 animate-in fade-in slide-in-from-top-2 duration-300`,children:[(0,I.jsx)(`div`,{className:`h-14 w-14 rounded-xl bg-tertiary/10 flex items-center justify-center text-tertiary overflow-hidden shadow-inner`,children:(0,I.jsx)(`img`,{src:`https://ui-avatars.com/api/?name=${encodeURIComponent(R.find(e=>e.id===B)?.name||`U`)}&background=random&color=fff`,alt:`Agent Icon`,className:`w-full h-full p-1 rounded-xl object-cover`})}),(0,I.jsxs)(`div`,{className:`flex-1`,children:[(0,I.jsx)(`h4`,{className:`font-headline font-black text-white`,children:R.find(e=>e.id===B)?.name}),(0,I.jsx)(`p`,{className:`text-[10px] text-tertiary/60 font-black uppercase tracking-widest mt-1`,children:R.find(e=>e.id===B)?.role||`Intelligence Unit`})]})]}):(0,I.jsxs)(`div`,{className:`flex items-center gap-5 p-5 bg-surface-container-high/20 rounded-2xl border border-dashed border-outline-variant/20 italic`,children:[(0,I.jsx)(`div`,{className:`h-14 w-14 rounded-xl bg-surface-container-highest/30 flex items-center justify-center text-on-surface-variant/20`,children:(0,I.jsx)(c,{size:24})}),(0,I.jsxs)(`div`,{className:`flex-1`,children:[(0,I.jsx)(`h4`,{className:`font-headline font-bold text-on-surface-variant/40`,children:`Awaiting Assignment`}),(0,I.jsx)(`p`,{className:`text-[9px] text-on-surface-variant/30 font-black uppercase tracking-widest mt-1`,children:`Grid performance limited`})]})]})]}),(0,I.jsxs)(`button`,{className:`w-full mt-6 py-3 text-[10px] font-black uppercase tracking-[0.2em] text-on-surface-variant hover:text-white transition-all flex items-center justify-center gap-3 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5`,children:[(0,I.jsx)(A,{size:16,className:`text-primary`}),`Tune Node Parameters`]})]}),(0,I.jsxs)(`div`,{className:`bg-surface-container-low p-8 rounded-2xl border border-outline-variant/10 shadow-xl`,children:[(0,I.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 block mb-8`,children:`Execution metrics`}),(0,I.jsxs)(`div`,{className:`space-y-8`,children:[(0,I.jsxs)(`div`,{className:`space-y-3`,children:[(0,I.jsxs)(`div`,{className:`flex justify-between items-end`,children:[(0,I.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface`,children:`Node Progress`}),(0,I.jsxs)(`span`,{className:`text-xs font-mono text-primary font-bold`,children:[N===C.DONE?`100`:N===C.IN_PROGRESS?`42`:`0`,`%`]})]}),(0,I.jsx)(`div`,{className:`h-2 w-full bg-surface-container-highest rounded-full overflow-hidden`,children:(0,I.jsx)(`div`,{className:`h-full rounded-full transition-all duration-1000 ${N===C.DONE?`bg-secondary`:`bg-primary`}`,style:{width:`${N===C.DONE?100:N===C.IN_PROGRESS?42:0}%`}})})]}),(0,I.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,I.jsxs)(`div`,{className:`p-4 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 mb-1 text-on-surface-variant/60`,children:[(0,I.jsx)(c,{size:14,className:`text-secondary`}),(0,I.jsx)(`span`,{className:`text-[9px] font-black uppercase tracking-widest`,children:`Latency`})]}),(0,I.jsxs)(`div`,{className:`text-lg font-mono font-bold text-white`,children:[a.llm_latency||0,`ms`]})]}),(0,I.jsxs)(`div`,{className:`p-4 bg-surface-container-highest/20 rounded-xl border border-outline-variant/5`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 mb-1 text-on-surface-variant/60`,children:[(0,I.jsx)(j,{size:14,className:`text-tertiary`}),(0,I.jsx)(`span`,{className:`text-[9px] font-black uppercase tracking-widest`,children:`Node Cost`})]}),(0,I.jsxs)(`div`,{className:`text-lg font-mono font-bold text-white`,children:[`$`,(a.cost_estimate||0).toFixed(6)]})]})]})]})]}),(0,I.jsxs)(`div`,{className:`bg-gradient-to-br from-secondary/5 to-primary/5 p-8 rounded-2xl border border-secondary/10 relative overflow-hidden group shadow-xl`,children:[(0,I.jsx)(`div`,{className:`absolute top-0 right-0 -mr-4 -mt-4 text-secondary/5 opacity-50 transition-transform group-hover:scale-110`,children:(0,I.jsx)(d,{size:120})}),(0,I.jsxs)(`div`,{className:`relative z-10`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 mb-3`,children:[(0,I.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.2em] text-secondary/80`,children:`Integrity status`}),(0,I.jsx)(`span`,{className:`px-2 py-0.5 bg-secondary/20 text-secondary text-[9px] font-black rounded uppercase`,children:`Optimal`})]}),(0,I.jsx)(`div`,{className:`text-4xl font-headline font-black text-white tracking-tighter`,children:`99.8%`}),(0,I.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 mt-2 italic font-medium leading-relaxed`,children:`Intelligence stream verified and synchronized across grid.`})]})]})]})]})]})};export{K as default};
@@ -0,0 +1,16 @@
1
+ import{c as e,o as t,p as n,s as r,t as i}from"./useNotification-nXJIHD_q.js";import{t as a}from"./check-BZcW41Vk.js";import{t as o}from"./clock-vIUNSAVw.js";import{t as s}from"./sparkles-cO3r5TCU.js";import{t as c}from"./file-text-DyBkf5PF.js";import{t as l}from"./trash-2-7e8TY3SJ.js";import{t as u}from"./ConfirmDialog-nQ8F6FEz.js";import{t as d}from"./user-sikuVJBW.js";import{S as f,a as p,b as m,f as h,g,i as _,o as v,r as y,s as b,t as x,y as S}from"./index-Ctbpa_Ei.js";import{t as C}from"./MarkdownField-BvkVHJZh.js";import{n as w,r as ee,t as T}from"./tasks-BZ0wO0e9.js";var E=r(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),te=r(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),D=r(`clipboard-list`,[[`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`}]]),ne=r(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),re=r(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]),O=r(`list-plus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),k=r(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),A=r(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),ie=r(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),j=n(f()),M=n(e());function N(){var e=[...arguments];return(0,M.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var P=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function F(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function I(e){return`nodeType`in e}function L(e){return e?F(e)?e:I(e)?e.ownerDocument?.defaultView??window:window:window}function R(e){let{Document:t}=L(e);return e instanceof t}function z(e){return F(e)?!1:e instanceof L(e).HTMLElement}function B(e){return e instanceof L(e).SVGElement}function V(e){return e?F(e)?e.document:I(e)?R(e)?e:z(e)||B(e)?e.ownerDocument:document:document:document}var H=P?M.useLayoutEffect:M.useEffect;function U(e){let t=(0,M.useRef)(e);return H(()=>{t.current=e}),(0,M.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function ae(){let e=(0,M.useRef)(null);return[(0,M.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,M.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function oe(e,t){t===void 0&&(t=[e]);let n=(0,M.useRef)(e);return H(()=>{n.current!==e&&(n.current=e)},t),n}function W(e,t){let n=(0,M.useRef)();return(0,M.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function se(e){let t=U(e),n=(0,M.useRef)(null);return[n,(0,M.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function ce(e){let t=(0,M.useRef)();return(0,M.useEffect)(()=>{t.current=e},[e]),t.current}var le={};function ue(e,t){return(0,M.useMemo)(()=>{if(t)return t;let n=le[e]==null?0:le[e]+1;return le[e]=n,e+`-`+n},[e,t])}function G(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var de=G(1),K=G(-1);function fe(e){return`clientX`in e&&`clientY`in e}function pe(e){if(!e)return!1;let{KeyboardEvent:t}=L(e.target);return t&&e instanceof t}function me(e){if(!e)return!1;let{TouchEvent:t}=L(e.target);return t&&e instanceof t}function he(e){if(me(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return fe(e)?{x:e.clientX,y:e.clientY}:null}var q=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[q.Translate.toString(e),q.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),ge=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function _e(e){return e.matches(ge)?e:e.querySelector(ge)}var ve={display:`none`};function ye(e){let{id:t,value:n}=e;return M.createElement(`div`,{id:t,style:ve},n)}function be(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return M.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function xe(){let[e,t]=(0,M.useState)(``);return{announce:(0,M.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var Se=(0,M.createContext)(null);function Ce(e){let t=(0,M.useContext)(Se);(0,M.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function we(){let[e]=(0,M.useState)(()=>new Set),t=(0,M.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,M.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var Te={draggable:`
2
+ To pick up a draggable item, press the space bar.
3
+ While dragging, use the arrow keys to move the item.
4
+ Press space again to drop the item in its new position, or press escape to cancel.
5
+ `},Ee={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function De(e){let{announcements:t=Ee,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Te}=e,{announce:a,announcement:o}=xe(),s=ue(`DndLiveRegion`),[c,l]=(0,M.useState)(!1);if((0,M.useEffect)(()=>{l(!0)},[]),Ce((0,M.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=M.createElement(M.Fragment,null,M.createElement(ye,{id:r,value:i.draggable}),M.createElement(be,{id:s,announcement:o}));return n?(0,j.createPortal)(u,n):u}var J;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(J||={});function Oe(){}function ke(e,t){return(0,M.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Ae(){var e=[...arguments];return(0,M.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var Y=Object.freeze({x:0,y:0});function je(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function Me(e,t){let n=he(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function Ne(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Pe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Fe(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Ie(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Le(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var Re=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=Le(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=je(Le(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(Ne)},ze=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=Fe(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=Fe(r),o=i.reduce((e,t,r)=>e+je(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(Ne)};function Be(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var Ve=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Be(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Pe)};function He(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ue(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Y}function We(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Ge=We(1);function Ke(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function qe(e,t,n){let r=Ke(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var Je={ignoreTransform:!1};function Ye(e,t){t===void 0&&(t=Je);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=L(e).getComputedStyle(e);t&&(n=qe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function Xe(e){return Ye(e,{ignoreTransform:!0})}function Ze(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Qe(e,t){return t===void 0&&(t=L(e).getComputedStyle(e)),t.position===`fixed`}function $e(e,t){t===void 0&&(t=L(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`?n.test(r):!1})}function et(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(R(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!z(i)||B(i)||n.includes(i))return n;let a=L(e).getComputedStyle(i);return i!==e&&$e(i,a)&&n.push(i),Qe(i,a)?n:r(i.parentNode)}return e?r(e):n}function tt(e){let[t]=et(e,1);return t??null}function nt(e){return!P||!e?null:F(e)?e:I(e)?R(e)||e===V(e).scrollingElement?window:z(e)?e:null:null}function rt(e){return F(e)?e.scrollX:e.scrollLeft}function it(e){return F(e)?e.scrollY:e.scrollTop}function at(e){return{x:rt(e),y:it(e)}}var X;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(X||={});function ot(e){return!P||!e?!1:e===document.scrollingElement}function st(e){let t={x:0,y:0},n=ot(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var ct={x:.2,y:.2};function lt(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=ct);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=st(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=X.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=X.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=X.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=X.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function ut(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function dt(e){return e.reduce((e,t)=>de(e,at(t)),Y)}function ft(e){return e.reduce((e,t)=>e+rt(t),0)}function pt(e){return e.reduce((e,t)=>e+it(t),0)}function mt(e,t){if(t===void 0&&(t=Ye),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);tt(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var ht=[[`x`,[`left`,`right`],ft],[`y`,[`top`,`bottom`],pt]],gt=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=et(t),r=dt(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of ht)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,`rect`,{enumerable:!1})}},_t=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function vt(e){let{EventTarget:t}=L(e);return e instanceof t?e:V(e)}function yt(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t?r>t.y:!1}var Z;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(Z||={});function bt(e){e.preventDefault()}function xt(e){e.stopPropagation()}var Q;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(Q||={});var St={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter,Q.Tab]},Ct=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}},wt=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new _t(V(t)),this.windowListeners=new _t(L(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Z.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&mt(n),t(Y)}handleKeyDown(e){if(pe(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=St,coordinateGetter:a=Ct,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:Y;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=K(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=st(n),p=ut(n),m={x:Math.min(i===Q.Right?p.right-p.width/2:p.right,Math.max(i===Q.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===Q.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Q.Down?p.top:p.top+p.height/2,u.y))},h=i===Q.Right&&!s||i===Q.Left&&!c,g=i===Q.Down&&!l||i===Q.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===Q.Right&&e<=d.x||i===Q.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===Q.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===Q.Down&&e<=d.y||i===Q.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===Q.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,de(K(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};wt.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=St,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function Tt(e){return!!(e&&`distance`in e)}function Et(e){return!!(e&&`delay`in e)}var Dt=class{constructor(e,t,n){n===void 0&&(n=vt(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=V(i),this.documentListeners=new _t(this.document),this.listeners=new _t(n),this.windowListeners=new _t(L(i)),this.initialCoordinates=he(r)??Y,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.DragStart,bt),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),this.windowListeners.add(Z.ContextMenu,bt),this.documentListeners.add(Z.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Et(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Tt(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Z.Click,xt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Z.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=he(e)??Y,s=K(n,o);if(!t&&a){if(Tt(a)){if(a.tolerance!=null&&yt(s,a.tolerance))return this.handleCancel();if(yt(s,a.distance))return this.handleStart()}if(Et(a)&&yt(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},Ot={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},kt=class extends Dt{constructor(e){let{event:t}=e,n=V(t.target);super(e,Ot,n)}};kt.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var At={move:{name:`mousemove`},end:{name:`mouseup`}},jt;(function(e){e[e.RightClick=2]=`RightClick`})(jt||={});var Mt=class extends Dt{constructor(e){super(e,At,V(e.event.target))}};Mt.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===jt.RightClick?!1:(r?.({event:n}),!0)}}];var Nt={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},Pt=class extends Dt{constructor(e){super(e,Nt)}static setup(){return window.addEventListener(Nt.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Nt.move.name,e)};function e(){}}};Pt.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Ft;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(Ft||={});var It;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(It||={});function Lt(e){let{acceleration:t,activator:n=Ft.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=It.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=zt({delta:d,disabled:!a}),[m,h]=ae(),g=(0,M.useRef)({x:0,y:0}),_=(0,M.useRef)({x:0,y:0}),v=(0,M.useMemo)(()=>{switch(n){case Ft.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ft.DraggableRect:return i}},[n,i,c]),y=(0,M.useRef)(null),b=(0,M.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,M.useMemo)(()=>s===It.TreeOrder?[...l].reverse():l,[s,l]);(0,M.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=u[l.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=lt(e,n,v,t,f);for(let e of[`x`,`y`])p[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){h(),y.current=e,m(b,o),g.current=a,_.current=i;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var Rt={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};function zt(e){let{delta:t,disabled:n}=e,r=ce(t);return W(e=>{if(n||!r||!e)return Rt;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[X.Backward]:e.x[X.Backward]||i.x===-1,[X.Forward]:e.x[X.Forward]||i.x===1},y:{[X.Backward]:e.y[X.Backward]||i.y===-1,[X.Forward]:e.y[X.Forward]||i.y===1}}},[n,t,r])}function Bt(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return W(e=>t==null?null:r??e??null,[r,t])}function Vt(e,t){return(0,M.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var Ht;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Ht||={});var Ut;(function(e){e.Optimized=`optimized`})(Ut||={});var Wt=new Map;function Gt(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,M.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,M.useRef)(e),d=g(),f=oe(d),p=(0,M.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,M.useRef)(null),h=W(t=>{if(d&&!n)return Wt;if(!t||t===Wt||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new gt(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,M.useEffect)(()=>{u.current=e},[e]),(0,M.useEffect)(()=>{d||p()},[n,d]),(0,M.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,M.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case Ht.Always:return!1;case Ht.BeforeDragging:return n;default:return!n}}}function Kt(e,t){return W(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function qt(e,t){return Kt(e,t)}function Jt(e){let{callback:t,disabled:n}=e,r=U(t),i=(0,M.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,M.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Yt(e){let{callback:t,disabled:n}=e,r=U(t),i=(0,M.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,M.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Xt(e){return new gt(Ye(e),e)}function Zt(e,t,n){t===void 0&&(t=Xt);let[r,i]=(0,M.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=Jt({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=Yt({callback:a});return H(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function Qt(e){return Ue(e,Kt(e))}var $t=[];function en(e){let t=(0,M.useRef)(e),n=W(n=>e?n&&n!==$t&&e&&t.current&&e.parentNode===t.current.parentNode?n:et(e):$t,[e]);return(0,M.useEffect)(()=>{t.current=e},[e]),n}function tn(e){let[t,n]=(0,M.useState)(null),r=(0,M.useRef)(e),i=(0,M.useCallback)(e=>{let t=nt(e.target);t&&n(e=>e?(e.set(t,at(t)),new Map(e)):null)},[]);return(0,M.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=nt(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,at(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{nt(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,M.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>de(e,t),Y):dt(e):Y,[e,t])}function nn(e,t){t===void 0&&(t=[]);let n=(0,M.useRef)(null);return(0,M.useEffect)(()=>{n.current=null},t),(0,M.useEffect)(()=>{let t=e!==Y;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?K(e,n.current):Y}function rn(e){(0,M.useEffect)(()=>{if(!P)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function an(e,t){return(0,M.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function on(e){return(0,M.useMemo)(()=>e?Ze(e):null,[e])}var sn=[];function cn(e,t){t===void 0&&(t=Ye);let[n]=e,r=on(n?L(n):null),[i,a]=(0,M.useState)(sn);function o(){a(()=>e.length?e.map(e=>ot(e)?r:new gt(t(e),e)):sn)}let s=Yt({callback:o});return H(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function ln(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return z(t)?t:e}function un(e){let{measure:t}=e,[n,r]=(0,M.useState)(null),i=Yt({callback:(0,M.useCallback)(e=>{for(let{target:n}of e)if(z(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=se((0,M.useCallback)(e=>{let n=ln(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,M.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var dn=[{sensor:kt,options:{}},{sensor:wt,options:{}}],fn={current:{}},pn={draggable:{measure:Xe},droppable:{measure:Xe,strategy:Ht.WhileDragging,frequency:Ut.Optimized},dragOverlay:{measure:Ye}},mn=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},hn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new mn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Oe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:pn,measureDroppableContainers:Oe,windowRect:null,measuringScheduled:!1},gn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:Oe,draggableNodes:new Map,over:null,measureDroppableContainers:Oe},_n=(0,M.createContext)(gn),vn=(0,M.createContext)(hn);function yn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new mn}}}function bn(e,t){switch(t.type){case J.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case J.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case J.DragEnd:case J.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case J.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new mn(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case J.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new mn(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case J.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new mn(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function xn(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,M.useContext)(_n),a=ce(r),o=ce(n?.id);return(0,M.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!pe(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=_e(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function Sn(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function Cn(e){return(0,M.useMemo)(()=>({draggable:{...pn.draggable,...e?.draggable},droppable:{...pn.droppable,...e?.droppable},dragOverlay:{...pn.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function wn(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,M.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;H(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=Ue(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=tt(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var Tn=(0,M.createContext)({...Y,scaleX:1,scaleY:1}),En;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(En||={});var Dn=(0,M.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=dn,collisionDetection:o=Ve,measuring:s,modifiers:c,...l}=e,[u,d]=(0,M.useReducer)(bn,void 0,yn),[f,p]=we(),[m,h]=(0,M.useState)(En.Uninitialized),g=m===En.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,M.useRef)({initial:null,translated:null}),C=(0,M.useMemo)(()=>_==null?null:{id:_,data:x?.data??fn,rect:S},[_,x]),w=(0,M.useRef)(null),[ee,T]=(0,M.useState)(null),[E,te]=(0,M.useState)(null),D=oe(l,Object.values(l)),ne=ue(`DndDescribedBy`,t),re=(0,M.useMemo)(()=>b.getEnabled(),[b]),O=Cn(s),{droppableRects:k,measureDroppableContainers:A,measuringScheduled:ie}=Gt(re,{dragging:g,dependencies:[y.x,y.y],config:O.droppable}),N=Bt(v,_),P=(0,M.useMemo)(()=>E?he(E):null,[E]),F=je(),I=qt(N,O.draggable.measure);wn({activeNode:_==null?null:v.get(_),config:F.layoutShiftCompensation,initialRect:I,measure:O.draggable.measure});let R=Zt(N,O.draggable.measure,I),z=Zt(N?N.parentElement:null),B=(0,M.useRef)({activatorEvent:null,active:null,activeNode:N,collisionRect:null,collisions:null,droppableRects:k,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),V=b.getNodeFor(B.current.over?.id),U=un({measure:O.dragOverlay.measure}),ae=U.nodeRef.current??N,W=g?U.rect??R:null,se=!!(U.nodeRef.current&&U.rect),ce=Qt(se?null:R),le=on(ae?L(ae):null),G=en(g?V??N:null),K=cn(G),fe=Sn(c,{transform:{x:y.x-ce.x,y:y.y-ce.y,scaleX:1,scaleY:1},activatorEvent:E,active:C,activeNodeRect:R,containerNodeRect:z,draggingNodeRect:W,over:B.current.over,overlayNodeRect:U.rect,scrollableAncestors:G,scrollableAncestorRects:K,windowRect:le}),pe=P?de(P,y):null,me=tn(G),q=nn(me),ge=nn(me,[R]),_e=de(fe,q),ve=W?Ge(W,fe):null,ye=C&&ve?o({active:C,collisionRect:ve,droppableRects:k,droppableContainers:re,pointerCoordinates:pe}):null,be=Ie(ye,`id`),[xe,Ce]=(0,M.useState)(null),Te=He(se?fe:de(fe,ge),xe?.rect??null,R),Ee=(0,M.useRef)(null),Oe=(0,M.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent;Ee.current=new n({active:w.current,activeNode:i,event:a,options:r,context:B,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=D.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=D.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=D.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,j.unstable_batchedUpdates)(()=>{r?.(i),h(En.Initializing),d({type:J.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),T(Ee.current),te(a)})},onMove(e){d({type:J.DragMove,coordinates:e})},onEnd:o(J.DragEnd),onCancel:o(J.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=B.current,o=null;if(t&&i){let{cancelDrop:s}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===J.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=J.DragCancel)}w.current=null,(0,j.unstable_batchedUpdates)(()=>{d({type:e}),h(En.Uninitialized),Ce(null),T(null),te(null),Ee.current=null;let t=e===J.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=D.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),ke=Vt(a,(0,M.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,Oe(n,t))},[v,Oe]));rn(a),H(()=>{R&&m===En.Initializing&&h(En.Initialized)},[R,m]),(0,M.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:n,collisions:r,over:i}=B.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:_e.x,y:_e.y},over:i};(0,j.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[_e.x,_e.y]),(0,M.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=B.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(be),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,j.unstable_batchedUpdates)(()=>{Ce(s),a?.(c),f({type:`onDragOver`,event:c})})},[be]),H(()=>{B.current={activatorEvent:E,active:C,activeNode:N,collisionRect:ve,collisions:ye,droppableRects:k,draggableNodes:v,draggingNode:ae,draggingNodeRect:W,droppableContainers:b,over:xe,scrollableAncestors:G,scrollAdjustedTranslate:_e},S.current={initial:W,translated:ve}},[C,N,ye,ve,v,ae,W,k,b,xe,G,_e]),Lt({...F,delta:y,draggingRect:ve,pointerCoordinates:pe,scrollableAncestors:G,scrollableAncestorRects:K});let Ae=(0,M.useMemo)(()=>({active:C,activeNode:N,activeNodeRect:R,activatorEvent:E,collisions:ye,containerNodeRect:z,dragOverlay:U,draggableNodes:v,droppableContainers:b,droppableRects:k,over:xe,measureDroppableContainers:A,scrollableAncestors:G,scrollableAncestorRects:K,measuringConfiguration:O,measuringScheduled:ie,windowRect:le}),[C,N,R,E,ye,z,U,v,b,k,xe,A,G,K,O,ie,le]),Y=(0,M.useMemo)(()=>({activatorEvent:E,activators:ke,active:C,activeNodeRect:R,ariaDescribedById:{draggable:ne},dispatch:d,draggableNodes:v,over:xe,measureDroppableContainers:A}),[E,ke,C,R,d,ne,v,xe,A]);return M.createElement(Se.Provider,{value:p},M.createElement(_n.Provider,{value:Y},M.createElement(vn.Provider,{value:Ae},M.createElement(Tn.Provider,{value:Te},i)),M.createElement(xn,{disabled:n?.restoreFocus===!1})),M.createElement(De,{...n,hiddenTextDescribedById:ne}));function je(){let e=ee?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),On=(0,M.createContext)(null),kn=`button`,An=`Draggable`;function jn(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=ue(An),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,M.useContext)(_n),{role:p=kn,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,M.useContext)(g?Tn:On),[v,y]=se(),[b,x]=se(),S=an(o,t),C=oe(n);return H(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,M.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===kn?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function Mn(){return(0,M.useContext)(vn)}var Nn=`Droppable`,Pn={timeout:25};function Fn(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=ue(Nn),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,M.useContext)(_n),u=(0,M.useRef)({disabled:n}),d=(0,M.useRef)(!1),f=(0,M.useRef)(null),p=(0,M.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...Pn,...i},_=oe(h??r),v=Yt({callback:(0,M.useCallback)(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)},[g]),disabled:m||!o}),[y,b]=se((0,M.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),d.current=!1),e&&v.observe(e))},[v])),x=oe(t);return(0,M.useEffect)(()=>{!v||!y.current||(v.disconnect(),d.current=!1,v.observe(y.current))},[y,v]),(0,M.useEffect)(()=>(s({type:J.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:x}}),()=>s({type:J.UnregisterDroppable,key:a,id:r})),[r]),(0,M.useEffect)(()=>{n!==u.current.disabled&&(s({type:J.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:y,over:c,setNodeRef:b}}function In(e){let{animation:t,children:n}=e,[r,i]=(0,M.useState)(null),[a,o]=(0,M.useState)(null),s=ce(n);return!n&&!r&&s&&i(s),H(()=>{if(!a)return;let e=r?.key,n=r?.props.id;if(e==null||n==null){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),M.createElement(M.Fragment,null,n,r?(0,M.cloneElement)(r,{ref:o}):null)}var Ln={x:0,y:0,scaleX:1,scaleY:1};function Rn(e){let{children:t}=e;return M.createElement(_n.Provider,{value:gn},M.createElement(Tn.Provider,{value:Ln},t))}var zn={position:`fixed`,touchAction:`none`},Bn=e=>pe(e)?`transform 250ms ease`:void 0,Vn=(0,M.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:c,transform:l,transition:u=Bn}=e;if(!s)return null;let d=i?l:{...l,scaleX:1,scaleY:1},f={...zn,width:s.width,height:s.height,top:s.top,left:s.left,transform:q.Transform.toString(d),transformOrigin:i&&r?Me(r,s):void 0,transition:typeof u==`function`?u(r):u,...c};return M.createElement(n,{className:o,style:f,ref:t},a)}),Hn={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:q.Transform.toString(t)},{transform:q.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function Un(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return U((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=ln(a);if(!c)return;let{transform:l}=L(a).getComputedStyle(a),u=Ke(l);if(!u)return;let d=typeof t==`function`?t:Wn(t);return mt(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function Wn(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Hn,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var Gn=0;function Kn(e){return(0,M.useMemo)(()=>{if(e!=null)return Gn++,Gn},[e])}var qn=M.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s=`div`,className:c,zIndex:l=999}=e,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:m,droppableContainers:h,dragOverlay:g,over:_,measuringConfiguration:v,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=Mn(),S=(0,M.useContext)(Tn),C=Kn(d?.id),w=Sn(o,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:g.rect,over:_,overlayNodeRect:g.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),ee=Kt(f),T=Un({config:r,draggableNodes:m,droppableContainers:h,measuringConfiguration:v}),E=ee?g.setRef:void 0;return M.createElement(Rn,null,M.createElement(In,{animation:T},d&&C?M.createElement(Vn,{key:C,id:d.id,ref:E,as:s,activatorEvent:u,adjustScale:t,className:c,transition:a,rect:ee,style:{zIndex:l,...i},transform:w},n):null))});function Jn(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Yn(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function Xn(e){return e!==null&&e>=0}function Zn(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Qn(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var $n=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=Jn(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},er={scaleX:1,scaleY:1},tr=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:t<a?e.top+e.height-(o.top+o.height):e.top-o.top,...er}:null}let s=nr(i,r,t);return r>t&&r<=a?{x:0,y:-o.height-s,...er}:r<t&&r>=a?{x:0,y:o.height+s,...er}:{x:0,y:0,...er}};function nr(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}var rr=`Sortable`,ir=M.createContext({activeIndex:-1,containerId:rr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:$n,disabled:{draggable:!1,droppable:!1}});function ar(e){let{children:t,id:n,items:r,strategy:i=$n,disabled:a=!1}=e,{active:o,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=Mn(),d=ue(rr,n),f=s.rect!==null,p=(0,M.useMemo)(()=>r.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),m=o!=null,h=o?p.indexOf(o.id):-1,g=l?p.indexOf(l.id):-1,_=(0,M.useRef)(p),v=!Zn(p,_.current),y=g!==-1&&h===-1||v,b=Qn(a);H(()=>{v&&m&&u(p)},[v,p,m,u]),(0,M.useEffect)(()=>{_.current=p},[p]);let x=(0,M.useMemo)(()=>({activeIndex:h,containerId:d,disabled:b,disableTransforms:y,items:p,overIndex:g,useDragOverlay:f,sortedRects:Yn(p,c),strategy:i}),[h,d,b.draggable,b.droppable,y,p,g,c,f,i]);return M.createElement(ir.Provider,{value:x},t)}var or=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Jn(n,r,i).indexOf(t)},sr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},cr={duration:200,easing:`ease`},lr=`transform`,ur=q.Transition.toString({property:lr,duration:0,easing:`linear`}),dr={roleDescription:`sortable`};function fr(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,M.useState)(null),s=(0,M.useRef)(n);return H(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=Ye(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,M.useEffect)(()=>{a&&o(null)},[a]),a}function pr(e){let{animateLayoutChanges:t=sr,attributes:n,disabled:r,data:i,getNewIndex:a=or,id:o,strategy:s,resizeObserverConfig:c,transition:l=cr}=e,{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:h,overIndex:g,useDragOverlay:_,strategy:v}=(0,M.useContext)(ir),y=mr(r,p),b=u.indexOf(o),x=(0,M.useMemo)(()=>({sortable:{containerId:d,index:b,items:u},...i}),[d,i,b,u]),S=(0,M.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:C,node:w,isOver:ee,setNodeRef:T}=Fn({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...c}}),{active:E,activatorEvent:te,activeNodeRect:D,attributes:ne,setNodeRef:re,listeners:O,isDragging:k,over:A,setActivatorNodeRef:ie,transform:j}=jn({id:o,data:x,attributes:{...dr,...n},disabled:y.draggable}),P=N(T,re),F=!!E,I=F&&!m&&Xn(f)&&Xn(g),L=!_&&k,R=I?(L&&I?j:null)??(s??v)({rects:h,activeNodeRect:D,activeIndex:f,overIndex:g,index:b}):null,z=Xn(f)&&Xn(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):b,B=E?.id,V=(0,M.useRef)({activeId:B,items:u,newIndex:z,containerId:d}),H=u!==V.current.items,U=t({active:E,containerId:d,isDragging:k,isSorting:F,id:o,index:b,items:u,newIndex:V.current.newIndex,previousItems:V.current.items,previousContainerId:V.current.containerId,transition:l,wasDragging:V.current.activeId!=null}),ae=fr({disabled:!U,index:b,node:w,rect:C});return(0,M.useEffect)(()=>{F&&V.current.newIndex!==z&&(V.current.newIndex=z),d!==V.current.containerId&&(V.current.containerId=d),u!==V.current.items&&(V.current.items=u)},[F,z,d,u]),(0,M.useEffect)(()=>{if(B===V.current.activeId)return;if(B!=null&&V.current.activeId==null){V.current.activeId=B;return}let e=setTimeout(()=>{V.current.activeId=B},50);return()=>clearTimeout(e)},[B]),{active:E,activeIndex:f,attributes:ne,data:x,rect:C,index:b,newIndex:z,items:u,isOver:ee,isSorting:F,isDragging:k,listeners:O,node:w,overIndex:g,over:A,setNodeRef:P,setActivatorNodeRef:ie,setDroppableNodeRef:T,setDraggableNodeRef:re,transform:ae??R,transition:oe()};function oe(){if(ae||H&&V.current.newIndex===b)return ur;if(!(L&&!pe(te)||!l)&&(F||U))return q.Transition.toString({...l,property:lr})}}function mr(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function hr(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var gr=[Q.Down,Q.Right,Q.Up,Q.Left],_r=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(gr.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case Q.Down:r.top<a.top&&t.push(n);break;case Q.Up:r.top>a.top&&t.push(n);break;case Q.Left:r.left>a.left&&t.push(n);break;case Q.Right:r.left<a.left&&t.push(n);break}});let c=ze({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=Ie(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=et(c).some((e,t)=>s[t]!==e),i=vr(e,t),a=yr(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:K(u,l)}}}};function vr(e,t){return!hr(e)||!hr(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function yr(e,t){return!hr(e)||!hr(t)||!vr(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var $=t(),br=({task:e,isOverlay:t})=>{let n=m(),{attributes:r,listeners:i,setNodeRef:s,transform:c,transition:l,isDragging:u}=pr({id:t?`overlay-${e.id}`:e.id,data:{...e}}),d=t?!1:u,f={transform:q.Transform.toString(c),transition:l},p=e=>e===0?`bg-error text-white shadow-[0_0_10px_rgba(255,107,107,0.3)]`:e===1?`bg-error-container/40 text-error font-black`:e===2?`bg-secondary-container/40 text-secondary font-black`:`bg-surface-container-highest text-on-surface-variant font-black`,h=()=>{switch(e.timeIcon){case`schedule`:return(0,$.jsx)(o,{size:14,className:`mr-1`});case`attach_file`:return(0,$.jsx)(A,{size:14,className:`mr-1`});case`comment`:return(0,$.jsx)(k,{size:14,className:`mr-1`});default:return null}},g=e.status===`done`,_=e.isActive,v=`group rounded-xl p-4 border transition-all duration-300 shadow-xl cursor-grab active:cursor-grabbing relative overflow-hidden flex flex-col h-full`;d?v+=` opacity-40 bg-surface-container-low border-outline-variant/20 grayscale scale-[0.98]`:t?v+=` bg-surface-container-high border-primary/60 shadow-[0_20px_50px_rgba(173,198,255,0.3)] ring-2 ring-primary/40 scale-[1.05] z-[100] cursor-grabbing antialiased`:g?v+=` opacity-70 hover:opacity-100 bg-surface-container-low border-outline-variant/10 shadow-sm grayscale hover:grayscale-0`:(v+=` bg-surface-container-low border-outline-variant/10 hover:border-primary/30 hover:shadow-primary/5`,_&&(v+=` border-primary/40 shadow-lg bg-surface-container-high/50`));let y=_||t;return(0,$.jsxs)(`div`,{ref:s,style:f,...r,...i,className:v,onClick:()=>{t||n(`/projects/${e.projectId}/tasks/${e.id}`)},children:[(0,$.jsxs)(`div`,{className:`flex justify-between items-start mb-3`,children:[(0,$.jsx)(`span`,{className:`text-[10px] font-black font-headline px-2 py-0.5 rounded tracking-widest uppercase transition-colors ${y?`text-primary bg-primary-container/30 border border-primary/20`:`text-on-surface-variant/40 bg-surface-container-highest/30`}`,children:e.code}),g?(0,$.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-secondary-container/30 flex items-center justify-center`,children:(0,$.jsx)(a,{size:10,className:`text-secondary font-bold`})}):(0,$.jsx)(`span`,{className:`text-[10px] font-black px-2 py-0.5 rounded tracking-widest uppercase transition-colors ${y||t?p(e.priority):`text-on-surface-variant/60 bg-transparent`}`,children:e.priority===0?`CRIT`:e.priority===1?`HIGH`:e.priority===2?`MED`:`LOW`})]}),(0,$.jsx)(`h4`,{className:`font-headline font-extrabold mb-4 leading-tight transition-colors text-base ${g?`text-outline line-through`:`text-on-surface group-hover:text-primary`}`,children:e.title}),(0,$.jsxs)(`div`,{className:`flex items-center justify-between mt-auto`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,$.jsx)(`div`,{className:`p-1 rounded bg-surface-container-highest/50 border border-outline-variant/10 ${y?`border-primary/30`:``}`,children:(0,$.jsx)(`img`,{src:e.agent.avatar,alt:`Agent`,className:`h-5 w-5 rounded-sm object-cover ${g?`grayscale`:``}`})}),(0,$.jsx)(`span`,{className:`text-[11px] font-bold tracking-tight ${y?`text-on-surface`:`text-on-surface-variant/40`}`,children:e.agent.name})]}),g?(0,$.jsx)(`span`,{className:`text-[10px] text-secondary font-black tracking-widest`,children:`COMPLETED`}):e.timeIcon&&!y&&(0,$.jsxs)(`div`,{className:`flex items-center text-on-surface-variant/30 text-[10px] font-black uppercase tracking-widest`,children:[h(),` `,e.timeValue]})]})]})},xr=({id:e,title:t,tasks:n,dotColorClass:r,badgeBgClass:i,badgeTextClass:a})=>{let{setNodeRef:o,isOver:s}=Fn({id:e});return(0,$.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between px-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`h-2 w-2 rounded-full ${r}`}),(0,$.jsx)(`h3`,{className:`font-headline font-bold text-sm uppercase tracking-widest ${r.replace(`bg-`,`text-`).replace(`animate-pulse`,``)}`,children:t}),(0,$.jsx)(`span`,{className:`${i} ${a} text-[10px] px-1.5 py-0.5 rounded font-bold`,children:n.length})]}),(0,$.jsx)(`button`,{className:`text-outline hover:text-primary transition-colors`,children:(0,$.jsx)(ne,{size:18})})]}),(0,$.jsx)(`div`,{ref:o,className:`flex flex-col gap-5 min-h-[300px] rounded-xl transition-colors duration-200 ${s?`bg-surface-container-high/30 ring-2 ring-outline-variant/20`:``}`,children:(0,$.jsx)(ar,{items:n.map(e=>e.id),strategy:tr,children:n.map(e=>(0,$.jsx)(br,{task:e},e.id))})})]})},Sr=({tasks:e})=>(0,$.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 items-start`,children:[{id:`backlog`,title:`Backlog`,dot:`bg-outline`,bg:`bg-surface-container-high`,text:`text-outline-variant`},{id:`in-progress`,title:`In-Progress`,dot:`bg-primary animate-pulse`,bg:`bg-primary-container`,text:`text-primary`},{id:`review`,title:`Review`,dot:`bg-tertiary`,bg:`bg-tertiary-container`,text:`text-tertiary`},{id:`done`,title:`Done`,dot:`bg-secondary`,bg:`bg-secondary-container/20`,text:`text-secondary`}].map(t=>(0,$.jsx)(xr,{id:t.id,title:t.title,dotColorClass:t.dot,badgeBgClass:t.bg,badgeTextClass:t.text,tasks:e.filter(e=>e.status===t.id),colorClass:``},t.id))}),Cr=({isOpen:e,onClose:t,onCreated:n})=>{let{notifyError:r}=i(),[a,o]=(0,M.useState)(!1),[u,f]=(0,M.useState)(!1),[m,h]=(0,M.useState)([]),[v,S]=(0,M.useState)([]),E=`# Background
6
+
7
+ # To Do
8
+
9
+ # Validation`,[te,ne]=(0,M.useState)(``),[O,k]=(0,M.useState)(E),[A,ie]=(0,M.useState)(w.BACKLOG),[j,N]=(0,M.useState)(T.MEDIUM),[P,F]=(0,M.useState)(``),[I,L]=(0,M.useState)(``);(0,M.useEffect)(()=>{let n=e=>{e.key===`Escape`&&t()};return e&&(window.addEventListener(`keydown`,n),R()),()=>window.removeEventListener(`keydown`,n)},[e,t]);let R=async()=>{try{f(!0);let[e,t]=await Promise.all([x.findAll(),y.findAll()]);h(e.data),S(t.data),t.data.length>0&&L(t.data[0].id)}catch(e){console.error(`Failed to load data for modal:`,e)}finally{f(!1)}};return e?(0,$.jsx)(p,{children:(0,$.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4 md:p-8`,children:[(0,$.jsx)(_.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:`absolute inset-0 bg-surface/80 backdrop-blur-xl`}),(0,$.jsxs)(_.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:`relative w-full max-w-3xl h-full max-h-[750px] bg-surface-container-low rounded-2xl shadow-2xl overflow-hidden flex flex-col ring-1 ring-outline-variant/10`,children:[(0,$.jsxs)(`div`,{className:`px-8 py-6 border-b border-outline-variant/10 flex items-center justify-between bg-surface-container-low/50 backdrop-blur-md sticky top-0 z-10`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,$.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary`,children:(0,$.jsx)(D,{size:22})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h2`,{className:`text-xl font-black font-headline text-white tracking-tight`,children:`Comission New Task`}),(0,$.jsx)(`p`,{className:`text-[10px] uppercase tracking-widest text-on-surface-variant/60 font-bold`,children:`Node Specification Protocol`})]})]}),(0,$.jsx)(`button`,{onClick:t,className:`w-10 h-10 rounded-full flex items-center justify-center text-on-surface-variant hover:bg-surface-container-highest transition-colors`,children:(0,$.jsx)(b,{size:20})})]}),(0,$.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-10 space-y-10 custom-scrollbar`,children:[(0,$.jsxs)(`section`,{className:`space-y-6`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3 mb-2`,children:[(0,$.jsx)(`div`,{className:`w-1 bg-primary h-4 rounded-full`}),(0,$.jsx)(`h3`,{className:`text-xs font-black uppercase tracking-[0.2em] text-on-surface-variant`,children:`Essential Intelligence`})]}),(0,$.jsxs)(`div`,{className:`space-y-6`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Task Title`}),(0,$.jsx)(`div`,{className:`bg-surface-container-highest/30 rounded-xl p-0.5 ring-1 ring-outline-variant/10 focus-within:ring-primary/40 focus-within:bg-surface-container-highest/50 transition-all`,children:(0,$.jsx)(`input`,{type:`text`,placeholder:`e.g. Synthesize Vector DB results`,value:te,onChange:e=>ne(e.target.value),className:`w-full bg-transparent border-none text-sm text-on-surface h-12 px-4 focus:outline-none placeholder:text-on-surface-variant/30 font-medium`})})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between px-1`,children:[(0,$.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60`,children:`Objective / Description`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>k(E),className:`flex items-center gap-1 px-2 py-1 rounded hover:bg-surface-container-highest text-[9px] font-black text-on-surface-variant/60 uppercase tracking-widest transition-colors`,title:`Reset to template`,children:[(0,$.jsx)(c,{size:10}),`Template`]}),(0,$.jsx)(`div`,{className:`w-px h-3 bg-outline-variant/10`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>k(``),className:`flex items-center gap-1 px-2 py-1 rounded hover:bg-error/10 text-[9px] font-black text-error/60 hover:text-error uppercase tracking-widest transition-colors`,title:`Clear field`,children:[(0,$.jsx)(l,{size:10}),`Clear`]})]})]}),(0,$.jsx)(C,{value:O,onChange:k,placeholder:`Describe the desired output and constraints for this node...`,height:`h-52`,maxLength:2e3})]})]})]}),(0,$.jsxs)(`section`,{className:`space-y-6 pt-10 border-t border-outline-variant/10`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3 mb-2`,children:[(0,$.jsx)(`div`,{className:`w-1 bg-secondary h-4 rounded-full`}),(0,$.jsx)(`h3`,{className:`text-xs font-black uppercase tracking-[0.2em] text-on-surface-variant`,children:`Operational Configuration`})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:[(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsxs)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1 flex items-center gap-1.5`,children:[(0,$.jsx)(re,{size:12,className:`text-secondary`}),`Priority Level`]}),(0,$.jsx)(`div`,{className:`grid grid-cols-4 gap-2 p-1 bg-surface-container-highest/30 rounded-xl ring-1 ring-outline-variant/10`,children:[{id:T.LOW,label:`LOW`},{id:T.MEDIUM,label:`MED`},{id:T.HIGH,label:`HIGH`},{id:T.CRITICAL,label:`CRIT`}].map(e=>(0,$.jsx)(`button`,{onClick:()=>N(e.id),className:`py-2 rounded-lg text-[10px] font-black tracking-widest transition-all ${j===e.id?e.id===T.CRITICAL||e.id===T.HIGH?`bg-error text-on-error shadow-lg shadow-error/30`:`bg-primary text-on-primary shadow-lg shadow-primary/30`:`hover:bg-surface-container-highest text-on-surface-variant`}`,children:e.label},e.id))})]}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Initial Status`}),(0,$.jsxs)(`div`,{className:`bg-surface-container-highest/30 rounded-xl p-0.5 ring-1 ring-outline-variant/10 focus-within:ring-primary/40 transition-all relative`,children:[(0,$.jsx)(`select`,{value:A,onChange:e=>ie(e.target.value),className:`w-full bg-transparent border-none text-xs font-bold text-on-surface h-10 px-4 focus:outline-none appearance-none cursor-pointer uppercase tracking-widest`,children:Object.values(w).filter(e=>e!==w.DONE&&e!==w.ARCHIVED).map(e=>(0,$.jsx)(`option`,{value:e,className:`bg-surface-container-low text-on-surface uppercase`,children:e},e))}),(0,$.jsx)(`div`,{className:`absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-on-surface-variant/60`,children:(0,$.jsx)(g,{size:16})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-3 col-span-full`,children:[(0,$.jsxs)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1 flex items-center gap-1.5`,children:[(0,$.jsx)(d,{size:12,className:`text-primary`}),`Assigned Intelligence (Optional)`]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 md:grid-cols-3 gap-3`,children:[m.map(e=>(0,$.jsxs)(`button`,{onClick:()=>F(P===e.id?``:e.id),className:`p-3 rounded-xl border flex items-center gap-3 transition-all text-left ${P===e.id?`bg-primary/10 border-primary shadow-[0_0_15px_rgba(173,198,255,0.1)]`:`bg-surface-container-highest/20 border-outline-variant/5 hover:border-outline-variant/30 hover:bg-surface-container-highest/30`}`,children:[(0,$.jsx)(`div`,{className:`w-8 h-8 rounded-lg flex items-center justify-center font-bold text-xs ${P===e.id?`bg-primary text-surface`:`bg-surface-container-high text-on-surface-variant`}`,children:e.name.substring(0,2).toUpperCase()}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`text-[11px] font-bold ${P===e.id?`text-white`:`text-on-surface-variant`}`,children:e.name}),(0,$.jsx)(`div`,{className:`text-[9px] text-on-surface-variant/50 uppercase tracking-widest font-black leading-none mt-0.5`,children:e.role||`Agent`})]})]},e.id)),m.length===0&&(0,$.jsx)(`div`,{className:`col-span-full py-4 text-center border-2 border-dashed border-outline-variant/10 rounded-xl`,children:(0,$.jsx)(`span`,{className:`text-[10px] font-bold text-on-surface-variant/30 uppercase tracking-[0.2em]`,children:`No active intelligence found`})})]})]}),v.length>1?(0,$.jsxs)(`div`,{className:`space-y-3 col-span-full`,children:[(0,$.jsx)(`label`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/60 ml-1`,children:`Target Project`}),(0,$.jsxs)(`div`,{className:`bg-surface-container-highest/30 rounded-xl p-0.5 ring-1 ring-outline-variant/10 focus-within:ring-primary/40 transition-all relative`,children:[(0,$.jsx)(`select`,{value:I,onChange:e=>L(e.target.value),className:`w-full bg-transparent border-none text-xs font-bold text-on-surface h-10 px-4 focus:outline-none appearance-none cursor-pointer`,children:v.map(e=>(0,$.jsx)(`option`,{value:e.id,className:`bg-surface-container-low text-on-surface`,children:e.title},e.id))}),(0,$.jsx)(`div`,{className:`absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-on-surface-variant/60`,children:(0,$.jsx)(g,{size:16})})]})]}):v.length===1?(0,$.jsxs)(`div`,{className:`col-span-full px-4 py-2 bg-surface-container-highest/10 rounded-lg border border-outline-variant/10 flex items-center justify-between`,children:[(0,$.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant/40`,children:`Target Sector`}),(0,$.jsx)(`span`,{className:`text-xs font-bold text-primary/80`,children:v[0].title})]}):(0,$.jsxs)(`div`,{className:`col-span-full p-4 bg-error/5 border border-error/20 rounded-xl text-center`,children:[(0,$.jsx)(`p`,{className:`text-xs font-bold text-error`,children:`No Project Sector Detected`}),(0,$.jsx)(`p`,{className:`text-[10px] text-on-surface-variant/60 mt-1 uppercase tracking-widest font-black`,children:`Initialize a sector in the sidebar before commissioning tasks`})]})]})]})]}),(0,$.jsxs)(`div`,{className:`px-8 py-6 bg-surface-container-low/80 backdrop-blur-md border-t border-outline-variant/10 flex items-center justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-[10px] font-bold text-on-surface-variant/50 uppercase tracking-widest`,children:[(0,$.jsx)(s,{size:12,className:`text-primary animate-pulse`}),`Agentic Orchestration Active`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(`button`,{onClick:t,className:`px-6 py-2.5 rounded-lg text-sm font-bold text-on-surface-variant hover:text-white transition-all hover:bg-surface-container-highest`,children:`Discard`}),(0,$.jsxs)(`button`,{onClick:async()=>{if(!te||!O||!I){r(`Validation Error`,`Title, Description and Project are required`);return}try{o(!0),await ee.create(I,{title:te,description:O,status:A,priority:j,assigneeId:P||void 0,projectId:I}),n?.(),t(),ne(``),k(E),ie(w.BACKLOG),N(T.MEDIUM),F(``)}catch(e){console.error(`Failed to create task:`,e)}finally{o(!1)}},disabled:a||u,className:`px-10 py-2.5 rounded-lg bg-primary text-on-primary text-sm font-black shadow-[0_8px_20px_rgba(173,198,255,0.2)] hover:scale-[1.02] active:scale-[0.98] transition-all disabled:opacity-50 disabled:grayscale disabled:cursor-not-allowed group relative overflow-hidden`,children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-white/10 translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-700 skew-x-12`}),a?`Processing...`:`Comission Task`]})]})]})]})]})}):null};async function wr(e,t){let n=e.getReader(),r;for(;!(r=await n.read()).done;)t(r.value)}function Tr(e){let t,n,r,i=!1;return function(a){t===void 0?(t=a,n=0,r=-1):t=Dr(t,a);let o=t.length,s=0;for(;n<o;){i&&=(t[n]===10&&(s=++n),!1);let a=-1;for(;n<o&&a===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-s);break;case 13:i=!0;case 10:a=n;break}if(a===-1)break;e(t.subarray(s,a),r),s=n,r=-1}s===o?t=void 0:s!==0&&(t=t.subarray(s),n-=s)}}function Er(e,t,n){let r=Or(),i=new TextDecoder;return function(a,o){if(a.length===0)n?.(r),r=Or();else if(o>0){let n=i.decode(a.subarray(0,o)),s=o+(a[o+1]===32?2:1),c=i.decode(a.subarray(s));switch(n){case`data`:r.data=r.data?r.data+`
10
+ `+c:c;break;case`event`:r.event=c;break;case`id`:e(r.id=c);break;case`retry`:let n=parseInt(c,10);isNaN(n)||t(r.retry=n);break}}}}function Dr(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Or(){return{data:``,event:``,id:``,retry:void 0}}var kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Ar=`text/event-stream`,jr=1e3,Mr=`last-event-id`;function Nr(e,t){var{signal:n,headers:r,onopen:i,onmessage:a,onclose:o,onerror:s,openWhenHidden:c,fetch:l}=t,u=kr(t,[`signal`,`headers`,`onopen`,`onmessage`,`onclose`,`onerror`,`openWhenHidden`,`fetch`]);return new Promise((t,d)=>{let f=Object.assign({},r);f.accept||=Ar;let p;function m(){p.abort(),document.hidden||b()}c||document.addEventListener(`visibilitychange`,m);let h=jr,g=0;function _(){document.removeEventListener(`visibilitychange`,m),window.clearTimeout(g),p.abort()}n?.addEventListener(`abort`,()=>{_(),t()});let v=l??window.fetch,y=i??Pr;async function b(){p=new AbortController;try{let n=await v(e,Object.assign(Object.assign({},u),{headers:f,signal:p.signal}));await y(n),await wr(n.body,Tr(Er(e=>{e?f[Mr]=e:delete f[Mr]},e=>{h=e},a))),o?.(),_(),t()}catch(e){if(!p.signal.aborted)try{let t=s?.(e)??h;window.clearTimeout(g),g=window.setTimeout(b,t)}catch(e){_(),d(e)}}}b()})}function Pr(e){let t=e.headers.get(`content-type`);if(!t?.startsWith(`text/event-stream`))throw Error(`Expected content-type to be ${Ar}, Actual: ${t}`)}var Fr=(e,t)=>{let n=(0,M.useRef)(null);(0,M.useEffect)(()=>e?(n.current=new AbortController,(async()=>{try{await Nr(`/api/v1/projects/${e}/tasks/events`,{method:`GET`,headers:{Accept:`text/event-stream`},credentials:`include`,signal:n.current?.signal,onmessage(e){if(e.data)try{let n=JSON.parse(e.data);n&&n.task&&n.event&&t(n.event,n.task)}catch(e){console.error(`Failed to parse SSE message`,e)}},onclose(){},onerror(e){console.error(`SSE connection error:`,e)}})}catch(e){console.error(`SSE initialization failed`,e)}})(),()=>{n.current&&n.current.abort()}):void 0,[e,t])},Ir=({isDragging:e})=>{let{setNodeRef:t,isOver:n}=Fn({id:`archive`});return(0,$.jsxs)(`div`,{ref:t,className:`
11
+ flex-1 flex items-center gap-4 px-6 py-3 rounded-2xl border-2 border-dashed transition-all duration-500 min-w-[240px]
12
+ ${n?`bg-error/20 border-error text-error scale-[1.02] shadow-xl shadow-error/10 z-50`:e?`bg-article-container/40 border-primary/40 text-primary animate-pulse shadow-lg`:`bg-surface-container-low/20 border-outline-variant/10 text-on-surface-variant/40 hover:bg-surface-container-low/40 hover:border-outline-variant/30`}
13
+ `,children:[(0,$.jsx)(`div`,{className:`
14
+ w-10 h-10 rounded-xl flex items-center justify-center transition-all duration-500
15
+ ${n?`bg-error text-white rotate-12`:e?`bg-primary/20 text-primary`:`bg-surface-container-highest/50`}
16
+ `,children:(0,$.jsx)(E,{size:20})}),(0,$.jsxs)(`div`,{className:`flex flex-col flex-1`,children:[(0,$.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.2em] leading-none transition-colors ${n?`text-error`:e?`text-primary`:`text-on-surface-variant/60`}`,children:n?`Authorization Required`:`Archival Logic Sink`}),(0,$.jsx)(`span`,{className:`text-[9px] font-bold opacity-40 uppercase tracking-widest mt-1.5 whitespace-nowrap`,children:n?`Release to decommissioning`:e?`Drag node here to decommission`:`Sector dormant`})]}),e&&!n&&(0,$.jsx)(`div`,{className:`flex gap-1`,children:[1,2,3].map(e=>(0,$.jsx)(`div`,{className:`w-1 h-1 rounded-full bg-primary/40 animate-ping`,style:{animationDelay:`${e*.2}s`}},e))})]})},Lr=()=>{let{activeProject:e,loading:t}=v(),{notifyApiError:n,notifyError:r}=i(),[a,o]=(0,M.useState)(!1),[c,l]=(0,M.useState)([]),[d,f]=(0,M.useState)(!1),[p,m]=(0,M.useState)(0),[g,_]=(0,M.useState)(null),[y,b]=(0,M.useState)(null),[x,C]=(0,M.useState)(!1),[w,T]=(0,M.useState)(null),[E,D]=(0,M.useState)(()=>localStorage.getItem(`skipArchiveConfirm`)===`true`),[ne,re]=(0,M.useState)(!1),k=Ae(ke(kt,{activationConstraint:{distance:5}}),ke(wt,{coordinateGetter:_r})),A=(0,M.useCallback)(async()=>{if(e)try{f(!0),l([...(await ee.fetchAll(e.id)).filter(e=>e.status!==`archived`).map(t=>({id:t.id,status:t.status,code:`#TASK-${t.id.substring(0,4).toUpperCase()}`,title:t.title,priority:t.priority,agent:{name:t.assignee?.name||`Unassigned`,avatar:`https://ui-avatars.com/api/?name=${encodeURIComponent(t.assignee?.name||`U`)}&background=random&color=fff`,colorClass:`bg-surface-container-highest border-outline-variant/30`},isActive:t.status===`in-progress`,progress:t.status===`done`?100:t.status===`in-progress`?50:0,projectId:e.id,updatedAt:t.updatedAt}))].sort((e,t)=>e.status===`backlog`&&t.status===`backlog`?(e.priority||0)-(t.priority||0):e.status!==`backlog`&&t.status!==`backlog`?new Date(t.updatedAt||0).getTime()-new Date(e.updatedAt||0).getTime():0))}catch(e){console.error(`Failed to fetch tasks in TaskManager:`,e),n(e,`Fetch Error`)}finally{f(!1)}},[e,n]);(0,M.useEffect)(()=>{A()},[A,p]);let j=(0,M.useCallback)((t,n)=>{if(!e||n.projectId!==e.id)return;let r={id:n.id,status:n.status,code:`#TASK-${n.id.substring(0,4).toUpperCase()}`,title:n.title,priority:n.priority,agent:{name:n.assignee?.name||`Unassigned`,avatar:`https://ui-avatars.com/api/?name=${encodeURIComponent(n.assignee?.name||`U`)}&background=random&color=fff`,colorClass:`bg-surface-container-highest border-outline-variant/30`},isActive:n.status===`in-progress`,progress:n.status===`done`?100:n.status===`in-progress`?50:0,projectId:n.projectId,updatedAt:n.updatedAt};l(e=>t===`deleted`||n.status===`archived`?e.filter(e=>e.id!==n.id):e.some(e=>e.id===n.id)?e.map(e=>e.id===n.id?r:e).sort((e,t)=>e.status===`backlog`&&t.status===`backlog`?(e.priority||0)-(t.priority||0):e.status!==`backlog`&&t.status!==`backlog`?new Date(t.updatedAt||0).getTime()-new Date(e.updatedAt||0).getTime():0):[r,...e].sort((e,t)=>e.status===`backlog`&&t.status===`backlog`?(e.priority||0)-(t.priority||0):e.status!==`backlog`&&t.status!==`backlog`?new Date(t.updatedAt||0).getTime()-new Date(e.updatedAt||0).getTime():0))},[e]);Fr(e?.id,j);let N=()=>{m(e=>e+1)},P=async(t,n)=>{if(e)try{await ee.update(e.id,t,{status:n}),l(n===`archived`?e=>e.filter(e=>e.id!==t):e=>e.map(e=>e.id===t?{...e,status:n,isActive:n===`in-progress`}:e))}catch(e){console.error(`Failed to update task status:`,e),r(`Status Update Failed`,`Failed to update task status in the neural mesh.`),A()}},F=e=>{let t=e.active.id;_(t);let n=c.find(e=>e.id===t);n&&b(n.status)},I=e=>{let{active:t,over:n}=e;if(!n)return;let r=t.id,i=n.id;if(r===i)return;let a=c.findIndex(e=>e.id===r),o=c.findIndex(e=>e.id===i);if(a===-1)return;let s=i===`backlog`||i===`in-progress`||i===`review`||i===`done`;if(!s&&o>=0){if(c[a].status!==c[o].status){let e=[...c],t=c[o].status;e[a]={...e[a],status:t,isActive:t===`in-progress`},l(Jn(e,a,o))}}else if(s&&c[a].status!==i){let e=[...c],t=i;e[a]={...e[a],status:t,isActive:t===`in-progress`},l(Jn(e,a,c.length-1))}},L=async e=>{let{active:t,over:n}=e;if(_(null),!n)return;let r=t.id,i=n.id;if(!c.find(e=>e.id===r))return;if(i===`archive`){E?await P(r,`archived`):(T(r),C(!0));return}let a=i===`backlog`||i===`in-progress`||i===`review`||i===`done`?i:c.find(e=>e.id===i)?.status;if(a&&y!==a&&await P(r,a),b(null),r===i)return;let o=c.findIndex(e=>e.id===r),s=c.findIndex(e=>e.id===i);o!==-1&&!(i===`backlog`||i===`in-progress`||i===`review`||i===`done`)&&s>=0&&c[o].status===c[s].status&&l(Jn(c,o,s))},R=async()=>{w&&(ne&&(localStorage.setItem(`skipArchiveConfirm`,`true`),D(!0)),await P(w,`archived`)),C(!1),T(null)},z=c.find(e=>e.id===g);return t?(0,$.jsx)(`div`,{className:`w-full h-[60vh] flex items-center justify-center`,children:(0,$.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,$.jsx)(`div`,{className:`w-16 h-16 border-4 border-primary border-t-transparent rounded-full animate-spin`}),(0,$.jsx)(`p`,{className:`text-on-surface-variant text-sm font-black uppercase tracking-[0.3em] animate-pulse`,children:`Initializing Neural Mesh`})]})}):e?(0,$.jsxs)(Dn,{sensors:k,collisionDetection:Re,onDragStart:F,onDragOver:I,onDragEnd:L,children:[(0,$.jsxs)(`div`,{className:`space-y-10 animate-in fade-in duration-700`,children:[!e.ownerAgent&&(0,$.jsxs)(`div`,{className:`bg-error/10 border border-error/20 p-4 rounded-2xl flex flex-col md:flex-row items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-500 shadow-lg shadow-error/5`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(`div`,{className:`w-12 h-12 rounded-2xl bg-error/20 flex items-center justify-center text-error border border-error/30`,children:(0,$.jsx)(ie,{size:24})}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h4`,{className:`text-sm font-black text-white uppercase tracking-tight`,children:`Administrative Protocol Warning`}),(0,$.jsxs)(`p`,{className:`text-xs text-on-surface-variant max-w-2xl leading-relaxed mt-0.5`,children:[`The `,(0,$.jsxs)(`span`,{className:`text-error font-bold italic`,children:[`"`,e.title,`"`]}),` sector currently lacks a Designated Lead Agent. A lead is required to oversee autonomous task assignment, token allocation, and critical sector operations.`]})]})]}),(0,$.jsx)(S,{to:`/projects/${e.id}`,className:`w-full md:w-auto px-6 py-2.5 rounded-xl bg-error text-on-error text-xs font-black uppercase tracking-widest hover:scale-[1.02] active:scale-[0.98] transition-all whitespace-nowrap text-center shadow-lg shadow-error/20`,children:`Assign Protocol Lead`})]}),(0,$.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between items-start md:items-center gap-4`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3 mb-1`,children:[(0,$.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.3em] text-primary/60`,children:`Fleet Command`}),(0,$.jsx)(`div`,{className:`h-1 w-1 rounded-full bg-outline-variant/30`}),(0,$.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-[0.3em] text-on-surface-variant/40`,children:e.title})]}),(0,$.jsx)(`h1`,{className:`text-4xl font-extrabold font-headline tracking-tight text-white`,children:`Agentic Task Canvas`}),(0,$.jsxs)(`p`,{className:`text-outline text-sm mt-1`,children:[`Orchestrating `,(0,$.jsx)(`span`,{className:`text-primary font-bold`,children:c.length}),` parallel node operations`]})]}),(0,$.jsxs)(`div`,{className:`flex-1 flex items-center justify-end gap-6 max-w-4xl`,children:[(0,$.jsx)(Ir,{isDragging:!!g}),(0,$.jsxs)(`button`,{onClick:()=>o(!0),className:`bg-primary hover:bg-primary/90 text-on-primary px-8 py-3.5 rounded-2xl flex items-center gap-2 font-black text-xs uppercase tracking-widest transition-all shadow-lg shadow-primary/20 hover:scale-[1.02] active:scale-[0.98] whitespace-nowrap`,children:[(0,$.jsx)(O,{size:18}),`Commission Task`]})]})]}),(0,$.jsx)(Cr,{isOpen:a,onClose:()=>o(!1),onCreated:N}),d&&c.length===0?(0,$.jsx)(`div`,{className:`w-full h-96 flex items-center justify-center`,children:(0,$.jsx)(`div`,{className:`w-12 h-12 border-4 border border-outline-variant/30 border-t-primary animate-spin rounded-full`})}):(0,$.jsx)(Sr,{tasks:c}),(0,$.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:[(0,$.jsxs)(`div`,{className:`glass-card p-6 rounded-2xl border border-outline-variant/10 col-span-1 md:col-span-2 flex flex-col md:flex-row justify-between items-center gap-6`,style:{background:`rgba(34, 42, 61, 0.4)`,backdropFilter:`blur(12px)`},children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`font-headline font-bold text-lg text-on-surface`,children:`Efficiency Matrix`}),(0,$.jsx)(`p`,{className:`text-outline text-sm`,children:`System performance metrics for active sector.`}),(0,$.jsxs)(`div`,{className:`mt-4 flex gap-6`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col`,children:[(0,$.jsx)(`span`,{className:`text-2xl font-extrabold text-primary`,children:c.filter(e=>e.status===`done`).length}),(0,$.jsx)(`span`,{className:`text-[10px] font-bold text-outline uppercase tracking-wider`,children:`Completed`})]}),(0,$.jsxs)(`div`,{className:`flex flex-col`,children:[(0,$.jsx)(`span`,{className:`text-2xl font-extrabold text-secondary`,children:c.filter(e=>e.status===`in-progress`).length}),(0,$.jsx)(`span`,{className:`text-[10px] font-bold text-outline uppercase tracking-wider`,children:`Active Nodes`})]})]})]}),(0,$.jsxs)(`div`,{className:`w-full md:w-48 h-24 bg-surface-container-highest/30 rounded-lg relative overflow-hidden flex items-end px-2 gap-1`,children:[[`backlog`,`in-progress`,`review`,`done`].map((e,t)=>{let n=c.filter(t=>t.status===e).length,r=c.length>0?n/c.length*100:10;return(0,$.jsx)(`div`,{className:`w-full bg-primary/40 rounded-t transition-all duration-500`,style:{height:`${Math.max(r,5)}%`,opacity:.3+t*.2}},e)}),(0,$.jsx)(`div`,{className:`absolute inset-0 pointer-events-none opacity-30 flex items-center justify-center`,children:(0,$.jsx)(`span`,{className:`text-primary text-[8px] font-mono uppercase tracking-[0.5em]`,children:`Live Stats`})})]})]}),(0,$.jsxs)(`div`,{className:`bg-tertiary-container/10 p-6 rounded-2xl border border-tertiary/10 relative overflow-hidden group`,children:[(0,$.jsx)(`div`,{className:`absolute -right-4 -top-4 text-tertiary/5 text-8xl transition-transform group-hover:scale-110`,children:(0,$.jsx)(s,{size:80})}),(0,$.jsx)(`h3`,{className:`font-headline font-bold text-tertiary`,children:`Orchestration Info`}),(0,$.jsx)(`p`,{className:`text-on-surface-variant text-sm mt-2 relative z-10`,children:c.length>0?`Managing ${c.length} tasks across ${e.title}. Drag tasks between columns to update their operational status.`:`Initialize new tasks to begin sector orchestration. Tasks will automatically be mapped to assigned intelligence nodes.`})]})]})]}),(0,$.jsx)(qn,{children:z?(0,$.jsx)(br,{task:z,isOverlay:!0}):null}),(0,$.jsx)(u,{isOpen:x,onClose:()=>C(!1),onConfirm:R,title:`Archive Protocol Task`,message:`Are you sure you want to transfer this task to the archival sector? This operation will remove the task node from the active grid.`,confirmText:`Archive Task`,variant:`warning`,showCheckbox:!0,onCheckboxChange:re})]}):(0,$.jsx)(`div`,{className:`w-full h-[60vh] flex items-center justify-center`,children:(0,$.jsxs)(`div`,{className:`text-center space-y-6 max-w-md`,children:[(0,$.jsx)(`div`,{className:`w-20 h-20 bg-surface-container-highest rounded-3xl flex items-center justify-center text-on-surface-variant/20 mx-auto border border-outline-variant/10 shadow-xl`,children:(0,$.jsx)(h,{size:40})}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(`h2`,{className:`text-2xl font-black font-headline text-white tracking-tight`,children:`No Active Sectors Found`}),(0,$.jsx)(`p`,{className:`text-on-surface-variant text-sm leading-relaxed`,children:`The orchestration grid is currently offline. Please initialize a new project sector in the sidebar to begin commissioning agentic tasks.`})]}),(0,$.jsxs)(S,{to:`/`,className:`inline-flex items-center gap-2 px-8 py-3 bg-primary text-on-primary rounded-xl font-black text-xs uppercase tracking-widest hover:scale-105 active:scale-95 transition-all shadow-lg shadow-primary/20`,children:[`Go to Dashboard`,(0,$.jsx)(te,{size:16})]})]})})};export{Lr as default};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`activity`,[[`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`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`brain`,[[`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`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./useNotification-nXJIHD_q.js";var t=e(`file-text`,[[`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:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};