0sec-cli 0.21.4 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/0.js +56 -56
  2. package/README.md +48 -63
  3. package/chunks/{adapt-loop-IGBRQAXO.js → adapt-loop-J6QCZZTB.js} +4 -4
  4. package/chunks/{artifact-scraper-LNQJUORS.js → artifact-scraper-MFKT6OI4.js} +2 -2
  5. package/chunks/{assumption-mining-4MJTP6H5.js → assumption-mining-646LYSJY.js} +16 -16
  6. package/chunks/{chunk-Z3IKZX3X.js → chunk-23DG5YKS.js} +1 -1
  7. package/chunks/{chunk-2WSXFFJZ.js → chunk-3E2KALZ5.js} +2 -2
  8. package/chunks/{chunk-TF46UWFU.js → chunk-4G7OVYJX.js} +1 -1
  9. package/chunks/{chunk-E2UOY5PJ.js → chunk-5BTJMINS.js} +12 -70
  10. package/chunks/{chunk-QZVG3BG4.js → chunk-5IBCBQEH.js} +1 -2
  11. package/chunks/{chunk-YA4PUM4H.js → chunk-7XCKYNLO.js} +1 -1
  12. package/chunks/{chunk-BACXRTQ4.js → chunk-AV2LG2L7.js} +87 -767
  13. package/chunks/{chunk-IMGWPNQM.js → chunk-BCSRRQG5.js} +76 -593
  14. package/chunks/{chunk-NOPBXZUV.js → chunk-BOUGKEKA.js} +1 -1
  15. package/chunks/{chunk-RF5QGKLR.js → chunk-CPWA6RWE.js} +3 -3
  16. package/chunks/{chunk-P6YG6TEZ.js → chunk-DKSCN2AB.js} +1 -1
  17. package/chunks/{chunk-YPOA3W4O.js → chunk-GOEA3NW6.js} +877 -110
  18. package/chunks/{chunk-ANDKY54G.js → chunk-HHPWRY2M.js} +4019 -7299
  19. package/chunks/{chunk-NDJU5ZZ7.js → chunk-IFME676H.js} +3 -3
  20. package/chunks/{chunk-HBKCGJAV.js → chunk-IVQV574Y.js} +1 -1
  21. package/chunks/{chunk-W4JOXE4N.js → chunk-IXT64DV5.js} +709 -1929
  22. package/chunks/{chunk-PC6RCKQV.js → chunk-KAU6NLGP.js} +59 -26
  23. package/chunks/{chunk-FAH6V4QM.js → chunk-LGCASF2C.js} +1117 -2291
  24. package/chunks/{chunk-CAJJRUTV.js → chunk-NLH4LMWH.js} +1 -1
  25. package/chunks/chunk-OHHCGDJ2.js +5523 -0
  26. package/chunks/{chunk-YHWWF4QY.js → chunk-OSBPGWTE.js} +3 -3
  27. package/chunks/{chunk-G34QP2XW.js → chunk-TM74SSHC.js} +1 -1
  28. package/chunks/{chunk-VOAXLO4A.js → chunk-TO35Y326.js} +5 -721
  29. package/chunks/{chunk-FWAYJ2IV.js → chunk-TV27OWIW.js} +8 -8
  30. package/chunks/chunk-UELXHK2Y.js +1950 -0
  31. package/chunks/{chunk-CL5KAUM6.js → chunk-V6GHX34G.js} +274 -8
  32. package/chunks/{chunk-WZISK5VC.js → chunk-VWITLWXB.js} +53 -7
  33. package/chunks/{chunk-ER3SUMYJ.js → chunk-W6UWZFKL.js} +0 -195
  34. package/chunks/chunk-WSDDGFA6.js +114 -0
  35. package/chunks/{chunk-5T6D5BVY.js → chunk-WZRVS7SB.js} +1 -1
  36. package/chunks/chunk-X7LAEEUW.js +2143 -0
  37. package/chunks/chunk-XA2O4WXA.js +1228 -0
  38. package/chunks/{chunk-Y5H6E24H.js → chunk-XCISCI4T.js} +1 -1
  39. package/chunks/{chunk-WPQLBN4S.js → chunk-XDKB2P5X.js} +1 -1
  40. package/chunks/{chunk-SBMB4OL3.js → chunk-YL6YAGLL.js} +62 -8
  41. package/chunks/{chunk-O6SD4A36.js → chunk-ZKQ2I3S2.js} +1 -1
  42. package/chunks/{codex-models-TYYV4JNN.js → codex-models-NHQW45SO.js} +5 -3
  43. package/chunks/{commands-WF5RG4I2.js → commands-N6GN5SBF.js} +2152 -3643
  44. package/chunks/{db-U3WQZVAO.js → db-5IWEJUYV.js} +3 -3
  45. package/chunks/{disclose-67GZCDBO.js → disclose-LDNKAVRH.js} +10 -8
  46. package/chunks/{dist-ACC3DZUZ.js → dist-BS4CY4RG.js} +3 -1
  47. package/chunks/{dist-EVTN3UTT.js → dist-FSS7MBDF.js} +2 -2
  48. package/chunks/{dist-F6X62TQK.js → dist-L3XJWWZ6.js} +225 -192
  49. package/chunks/{eval-runner-SA6OUGHZ.js → eval-runner-EMEGF24P.js} +11 -11
  50. package/chunks/{exploit-agent-36Q7XQFP.js → exploit-agent-KW4EB7BE.js} +1 -1
  51. package/chunks/{exploit-autoclimb-J4OTSTZ6.js → exploit-autoclimb-CXJ2ERRO.js} +1 -1
  52. package/chunks/{exploit-climb-PYEJDIC4.js → exploit-climb-TJWLY4XC.js} +2 -2
  53. package/chunks/fix-UUKPXCFB.js +26 -0
  54. package/chunks/{harness-GDUMKGSE.js → harness-C5HOKIEV.js} +3 -3
  55. package/chunks/{hunt-scan-UDJSCISU.js → hunt-scan-KZZ444V2.js} +14 -14
  56. package/chunks/{identity-JTIVJSV7.js → identity-62SVRW4H.js} +1 -1
  57. package/chunks/{kernel-primitive-F2IXUFAX.js → kernel-primitive-Z77IR7YS.js} +2 -2
  58. package/chunks/{kernel-vm-runner-276LHIOV.js → kernel-vm-runner-JW77P276.js} +2 -2
  59. package/chunks/{memsafety-scan-NHUOGTEX.js → memsafety-scan-FCPAXIZE.js} +2 -2
  60. package/chunks/{native-loop-3BSYVDUI.js → native-loop-P6P5GYVJ.js} +10 -10
  61. package/chunks/{npm-detectors-VIYJXKFQ.js → npm-detectors-Z2ZIQCN4.js} +2 -2
  62. package/chunks/orchestrate-DWWUT5RC.js +58 -0
  63. package/chunks/{process-PNMC36JI.js → process-N245QIQG.js} +1 -4
  64. package/chunks/{run-CBGE6DRQ.js → run-GAFKBCTN.js} +14935 -17598
  65. package/chunks/{runtime-PXO5G6UV.js → runtime-H7YBR5IZ.js} +4 -5
  66. package/chunks/{scope-NJHIDDTN.js → scope-QWY4VQZ7.js} +4 -1
  67. package/chunks/{session-store-46WBZM22.js → session-store-XIDFGG7K.js} +2 -2
  68. package/chunks/{variant-candidates-UH2WC2HA.js → variant-candidates-7D4F5E4H.js} +3 -3
  69. package/chunks/{web-recon-prepass-SFXU44SS.js → web-recon-prepass-VXXBPDAV.js} +3 -3
  70. package/cli-path-traversal-fixture.js +352 -0
  71. package/dashboard/assets/bot-Bg1Tp9_d.js +1 -0
  72. package/dashboard/assets/dist-B_dDCPbu.js +1 -0
  73. package/dashboard/assets/findings-page-mayGhNx6.js +5 -0
  74. package/dashboard/assets/format--susmHX7.js +1 -0
  75. package/dashboard/assets/input-TuVPR3Zl.js +1 -0
  76. package/dashboard/assets/jsx-runtime-MGseXjj5.js +3 -0
  77. package/dashboard/assets/live-page-HWWHX99U.js +1 -0
  78. package/dashboard/assets/meta-tile-ckHo-w7k.js +1 -0
  79. package/dashboard/assets/operations-BxZ0OoXO.js +10 -0
  80. package/dashboard/assets/operations-app-D3d35rgo.js +46 -0
  81. package/dashboard/assets/overview-page-W_4IteEr.js +1 -0
  82. package/dashboard/assets/page-header-Bw9AJgBV.js +1 -0
  83. package/dashboard/assets/scans-page-CgzVXHnn.js +1 -0
  84. package/dashboard/assets/siren-KQj8QAnJ.js +1 -0
  85. package/dashboard/assets/table-8EDklulN.js +1 -0
  86. package/dashboard/assets/tabs-CFHPOwg8.js +1 -0
  87. package/dashboard/index.html +2 -3
  88. package/node_modules/node-addon-api/LICENSE.md +9 -0
  89. package/node_modules/node-addon-api/README.md +95 -0
  90. package/node_modules/node-addon-api/common.gypi +21 -0
  91. package/node_modules/node-addon-api/except.gypi +25 -0
  92. package/node_modules/node-addon-api/index.js +14 -0
  93. package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
  94. package/node_modules/node-addon-api/napi-inl.h +7250 -0
  95. package/node_modules/node-addon-api/napi.h +3463 -0
  96. package/node_modules/node-addon-api/node_addon_api.gyp +42 -0
  97. package/node_modules/node-addon-api/node_api.gyp +9 -0
  98. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  99. package/node_modules/node-addon-api/nothing.c +0 -0
  100. package/node_modules/node-addon-api/package-support.json +21 -0
  101. package/node_modules/node-addon-api/package.json +481 -0
  102. package/node_modules/node-addon-api/tools/README.md +73 -0
  103. package/node_modules/node-addon-api/tools/check-napi.js +99 -0
  104. package/node_modules/node-addon-api/tools/clang-format.js +71 -0
  105. package/node_modules/node-addon-api/tools/conversion.js +301 -0
  106. package/node_modules/node-gyp-build/LICENSE +21 -0
  107. package/node_modules/node-gyp-build/README.md +58 -0
  108. package/node_modules/node-gyp-build/SECURITY.md +5 -0
  109. package/node_modules/node-gyp-build/bin.js +84 -0
  110. package/node_modules/node-gyp-build/build-test.js +19 -0
  111. package/node_modules/node-gyp-build/index.js +6 -0
  112. package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  113. package/node_modules/node-gyp-build/optional.js +7 -0
  114. package/node_modules/node-gyp-build/package.json +43 -0
  115. package/node_modules/tree-sitter/LICENSE +21 -0
  116. package/node_modules/tree-sitter/README.md +90 -0
  117. package/node_modules/tree-sitter/binding.gyp +76 -0
  118. package/node_modules/tree-sitter/index.js +895 -0
  119. package/node_modules/tree-sitter/package.json +62 -0
  120. package/node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node +0 -0
  121. package/node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node +0 -0
  122. package/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node +0 -0
  123. package/node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node +0 -0
  124. package/node_modules/tree-sitter/src/addon_data.h +47 -0
  125. package/node_modules/tree-sitter/src/binding.cc +35 -0
  126. package/node_modules/tree-sitter/src/conversions.cc +140 -0
  127. package/node_modules/tree-sitter/src/conversions.h +22 -0
  128. package/node_modules/tree-sitter/src/language.cc +106 -0
  129. package/node_modules/tree-sitter/src/language.h +17 -0
  130. package/node_modules/tree-sitter/src/logger.cc +70 -0
  131. package/node_modules/tree-sitter/src/logger.h +19 -0
  132. package/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
  133. package/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
  134. package/node_modules/tree-sitter/src/node.cc +1056 -0
  135. package/node_modules/tree-sitter/src/node.h +30 -0
  136. package/node_modules/tree-sitter/src/parser.cc +298 -0
  137. package/node_modules/tree-sitter/src/parser.h +35 -0
  138. package/node_modules/tree-sitter/src/query.cc +383 -0
  139. package/node_modules/tree-sitter/src/query.h +39 -0
  140. package/node_modules/tree-sitter/src/tree.cc +307 -0
  141. package/node_modules/tree-sitter/src/tree.h +45 -0
  142. package/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
  143. package/node_modules/tree-sitter/src/tree_cursor.h +52 -0
  144. package/node_modules/tree-sitter/tree-sitter.d.ts +211 -0
  145. package/node_modules/tree-sitter/vendor/tree-sitter/LICENSE +21 -0
  146. package/node_modules/tree-sitter/vendor/tree-sitter/README.md +21 -0
  147. package/node_modules/tree-sitter/vendor/tree-sitter/lib/README.md +6 -0
  148. package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1266 -0
  149. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
  150. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
  151. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +290 -0
  152. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
  153. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
  154. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
  155. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +501 -0
  156. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
  157. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
  158. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +221 -0
  159. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +299 -0
  160. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
  161. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +419 -0
  162. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +49 -0
  163. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +14 -0
  164. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +774 -0
  165. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2151 -0
  166. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +230 -0
  167. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +62 -0
  168. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4134 -0
  169. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
  170. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
  171. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +899 -0
  172. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +133 -0
  173. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1060 -0
  174. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +382 -0
  175. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +165 -0
  176. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
  177. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +714 -0
  178. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
  179. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
  180. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
  181. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
  182. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
  183. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
  184. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
  185. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
  186. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
  187. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
  188. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +50 -0
  189. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +23 -0
  190. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +109 -0
  191. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1294 -0
  192. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1823 -0
  193. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
  194. package/node_modules/tree-sitter/vendor/tree-sitter/test/fixtures/grammars/.gitkeep +0 -0
  195. package/node_modules/tree-sitter-c/LICENSE +21 -0
  196. package/node_modules/tree-sitter-c/README.md +18 -0
  197. package/node_modules/tree-sitter-c/binding.gyp +20 -0
  198. package/node_modules/tree-sitter-c/bindings/node/binding.cc +20 -0
  199. package/node_modules/tree-sitter-c/bindings/node/index.d.ts +28 -0
  200. package/node_modules/tree-sitter-c/bindings/node/index.js +7 -0
  201. package/node_modules/tree-sitter-c/grammar.js +1463 -0
  202. package/node_modules/tree-sitter-c/package.json +108 -0
  203. package/node_modules/tree-sitter-c/prebuilds/darwin-arm64/tree-sitter-c.node +0 -0
  204. package/node_modules/tree-sitter-c/prebuilds/darwin-x64/tree-sitter-c.node +0 -0
  205. package/node_modules/tree-sitter-c/prebuilds/linux-x64/tree-sitter-c.node +0 -0
  206. package/node_modules/tree-sitter-c/prebuilds/win32-x64/tree-sitter-c.node +0 -0
  207. package/node_modules/tree-sitter-c/queries/highlights.scm +81 -0
  208. package/node_modules/tree-sitter-c/queries/tags.scm +9 -0
  209. package/node_modules/tree-sitter-c/src/grammar.json +9682 -0
  210. package/node_modules/tree-sitter-c/src/node-types.json +4556 -0
  211. package/node_modules/tree-sitter-c/src/parser.c +113852 -0
  212. package/node_modules/tree-sitter-c/src/tree_sitter/alloc.h +54 -0
  213. package/node_modules/tree-sitter-c/src/tree_sitter/array.h +290 -0
  214. package/node_modules/tree-sitter-c/src/tree_sitter/parser.h +265 -0
  215. package/package.json +10 -3
  216. package/vendor/tree-sitter-0.21.1-node24.json +16 -0
  217. package/vendor/tree-sitter-0.21.1-node24.tgz +0 -0
  218. package/chunks/chunk-CGHCEN7W.js +0 -169
  219. package/chunks/chunk-CXKDWFNO.js +0 -102
  220. package/chunks/chunk-GIQKESMN.js +0 -687
  221. package/chunks/chunk-HPQZHOIU.js +0 -67
  222. package/chunks/chunk-PD2BBBKT.js +0 -245
  223. package/chunks/chunk-WF5W75WY.js +0 -1070
  224. package/chunks/fix-J2KBRJDV.js +0 -12
  225. package/chunks/orchestrate-DHBFRTSI.js +0 -59
  226. package/chunks/replay-runner-LK2XFIVG.js +0 -39
  227. package/dashboard/assets/bot-yILPnRgD.js +0 -1
  228. package/dashboard/assets/chevron-down-BeDJ-Vka.js +0 -1
  229. package/dashboard/assets/circle-alert-BEnMBMT-.js +0 -1
  230. package/dashboard/assets/client-DRYsuOGl.js +0 -9
  231. package/dashboard/assets/copy-Bi5vzoF9.js +0 -1
  232. package/dashboard/assets/desktop-BT7RkC4q.js +0 -32
  233. package/dashboard/assets/desktop-OaBI0E0e.css +0 -1
  234. package/dashboard/assets/dist-CmX-h7a4.js +0 -1
  235. package/dashboard/assets/dist-DAwYQmf_.js +0 -45
  236. package/dashboard/assets/findings-page-B4rwF6fZ.js +0 -5
  237. package/dashboard/assets/format-LNQSSpn6.js +0 -1
  238. package/dashboard/assets/jsx-runtime-C7oxC63R.js +0 -1
  239. package/dashboard/assets/live-page-DoNwpPAO.js +0 -1
  240. package/dashboard/assets/meta-tile-BMtBC-Qq.js +0 -1
  241. package/dashboard/assets/operations-app-ER0gg7GN.js +0 -2
  242. package/dashboard/assets/operations-e2CGYKB1.js +0 -4
  243. package/dashboard/assets/overview-page-CmeWH17A.js +0 -1
  244. package/dashboard/assets/page-header-CIJyycfz.js +0 -1
  245. package/dashboard/assets/play-Dwo-9xt6.js +0 -1
  246. package/dashboard/assets/scans-page-CuhzWhHx.js +0 -1
  247. package/dashboard/assets/search-CiooTLck.js +0 -1
  248. package/dashboard/assets/siren-CCBwTSuk.js +0 -1
  249. package/dashboard/assets/table-BgsSBdke.js +0 -1
  250. package/dashboard/assets/tabs-vn6v7Bk6.js +0 -1
  251. package/dashboard/desktop.html +0 -21
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/findings-page-B4rwF6fZ.js","assets/jsx-runtime-C7oxC63R.js","assets/client-DRYsuOGl.js","assets/format-LNQSSpn6.js","assets/operations-e2CGYKB1.js","assets/operations-CMFVrXEe.css","assets/dist-CmX-h7a4.js","assets/bot-yILPnRgD.js","assets/tabs-vn6v7Bk6.js","assets/copy-Bi5vzoF9.js","assets/dist-DAwYQmf_.js","assets/search-CiooTLck.js","assets/table-BgsSBdke.js","assets/meta-tile-BMtBC-Qq.js","assets/page-header-CIJyycfz.js","assets/live-page-DoNwpPAO.js","assets/chevron-down-BeDJ-Vka.js","assets/overview-page-CmeWH17A.js","assets/circle-alert-BEnMBMT-.js","assets/play-Dwo-9xt6.js","assets/siren-CCBwTSuk.js","assets/scans-page-CuhzWhHx.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,t as n}from"./jsx-runtime-C7oxC63R.js";import{_ as r,a as i,i as a,n as o,o as s,s as c,u as l,y as u}from"./format-LNQSSpn6.js";import{C as d,D as f,S as p,b as m,i as h,l as g,m as _,n as v,p as y,s as b,t as x,v as S,w as C,x as w,y as T}from"./operations-e2CGYKB1.js";import{_ as E,a as D,f as O,g as ee,h as k,i as A,m as j,r as M,t as te,u as ne}from"./dist-CmX-h7a4.js";import{a as N,c as re,i as ie,l as ae,n as oe,o as P,r as F,s as se,t as ce,u as I}from"./dist-DAwYQmf_.js";var le=class extends S{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),y(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&b(t.mutationKey)!==b(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??v();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){h.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},L=e(t(),1);function ue(e,t){let n=x(t),[r]=L.useState(()=>new le(n,e));L.useEffect(()=>{r.setOptions(e)},[r,e]);let i=L.useSyncExternalStore(L.useCallback(e=>r.subscribe(h.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=L.useCallback((e,t)=>{r.mutate(e,t).catch(g)},[r]);if(i.error&&_(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var de=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`}]]),fe=E(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),pe=E(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),me=E(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),he=E(`file-search`,[[`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`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),ge=E(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),_e=E(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ve=E(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),ye=E(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),be=E(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),xe=E(`shield-check`,[[`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:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Se=E(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Ce=E(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);function we(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=we(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Te(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=we(e))&&(r&&(r+=` `),r+=t);return r}var R=n(),Ee=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,De=Te,Oe=(e,t)=>n=>{if(t?.variants==null)return De(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ee(t)||Ee(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return De(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ke=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ae=(e,t)=>({classGroupId:e,validator:t}),je=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Me=`-`,Ne=[],Pe=`arbitrary..`,Fe=e=>{let t=Re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Le(e);let n=e.split(Me);return Ie(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ke(i,t):t:i||Ne}return n[e]||Ne}}},Ie=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ie(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Me):e.slice(t).join(Me),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Le=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Pe+r:void 0})(),Re=e=>{let{theme:t,classGroups:n}=e;return ze(n,t)},ze=(e,t)=>{let n=je();for(let r in e){let i=e[r];Be(i,n,r,t)}return n},Be=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ve(i,t,n,r)}},Ve=(e,t,n,r)=>{if(typeof e==`string`){He(e,t,n);return}if(typeof e==`function`){Ue(e,t,n,r);return}We(e,t,n,r)},He=(e,t,n)=>{let r=e===``?t:Ge(t,e);r.classGroupId=n},Ue=(e,t,n,r)=>{if(Ke(e)){Be(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ae(n,e))},We=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Be(o,Ge(t,a),n,r)}},Ge=(e,t)=>{let n=e,r=t.split(Me),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=je(),n.nextPart.set(t,i)),n=i}return n},Ke=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,qe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Je=`!`,Ye=`:`,Xe=[],Ze=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Qe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ye){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Je)?(c=s.slice(0,-1),l=!0):s.startsWith(Je)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ze(t,l,c,u)};if(t){let e=t+Ye,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ze(Xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},$e=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},et=e=>({cache:qe(e.cacheSize),parseClassName:Qe(e),sortModifiers:$e(e),postfixLookupClassGroupIds:tt(e),...Fe(e)}),tt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},nt=/\s+/,rt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(nt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Je:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},it=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=at(n))&&(i&&(i+=` `),i+=r);return i},at=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=at(e[r]))&&(n&&(n+=` `),n+=t);return n},ot=(e,...t)=>{let n,r,i,a,o=o=>(n=et(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=rt(e,n);return i(e,a),a};return a=o,(...e)=>a(it(...e))},st=[],z=e=>{let t=t=>t[e]||st;return t.isThemeGetter=!0,t},ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ut=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>ut.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),gt=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>dt.test(e),_t=()=>!0,vt=e=>ft.test(e)&&!pt.test(e),yt=()=>!1,bt=e=>mt.test(e),xt=e=>ht.test(e),St=e=>!W(e)&&!K(e),Ct=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),wt=e=>q(e,Bt,yt),W=e=>ct.test(e),G=e=>q(e,Vt,vt),Tt=e=>q(e,Ht,V),Et=e=>q(e,Wt,_t),Dt=e=>q(e,Ut,yt),Ot=e=>q(e,Rt,yt),kt=e=>q(e,zt,xt),At=e=>q(e,Gt,bt),K=e=>lt.test(e),jt=e=>J(e,Vt),Mt=e=>J(e,Ut),Nt=e=>J(e,Rt),Pt=e=>J(e,Bt),Ft=e=>J(e,zt),It=e=>J(e,Gt,!0),Lt=e=>J(e,Wt,!0),q=(e,t,n)=>{let r=ct.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},J=(e,t,n=!1)=>{let r=lt.exec(e);return r?r[1]?t(r[1]):n:!1},Rt=e=>e===`position`||e===`percentage`,zt=e=>e===`image`||e===`url`,Bt=e=>e===`length`||e===`size`||e===`bg-size`,Vt=e=>e===`length`,Ht=e=>e===`number`,Ut=e=>e===`family-name`,Wt=e=>e===`number`||e===`weight`,Gt=e=>e===`shadow`,Kt=ot(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,W,c],T=()=>[B,`full`,`auto`,...w()],E=()=>[H,`none`,`subgrid`,K,W],D=()=>[`auto`,{span:[`full`,H,K,W]},H,K,W],O=()=>[H,`auto`,K,W],ee=()=>[`auto`,`min`,`max`,`fr`,K,W],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],te=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ne=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[e,K,W],re=()=>[...b(),Nt,Ot,{position:[K,W]}],ie=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,Pt,wt,{size:[K,W]}],oe=()=>[gt,jt,G],P=()=>[``,`none`,`full`,l,K,W],F=()=>[``,V,jt,G],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[V,gt,Nt,Ot],le=()=>[``,`none`,m,K,W],L=()=>[`none`,V,K,W],ue=()=>[`none`,V,K,W],de=()=>[V,K,W],fe=()=>[B,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[_t],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[St],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,K,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,K,W]}],"container-named":[Ct],columns:[{columns:[V,W,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,K,W]}],basis:[{basis:[B,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,K,W]}],shrink:[{shrink:[``,V,K,W]}],order:[{order:[H,`first`,`last`,`none`,K,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...te()]}],"min-inline-size":[{"min-inline":[`auto`,...te()]}],"max-inline-size":[{"max-inline":[`none`,...te()]}],"block-size":[{block:[`auto`,...ne()]}],"min-block-size":[{"min-block":[`auto`,...ne()]}],"max-block-size":[{"max-block":[`none`,...ne()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,jt,G]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Lt,Et]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,gt,W]}],"font-family":[{font:[Mt,Dt,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,W]}],"line-clamp":[{"line-clamp":[V,`none`,K,Tt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,K,G]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[V,`auto`,K,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[H,K,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,K,W],radial:[``,K,W],conic:[H,K,W]},Ft,kt]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,K,W]}],"outline-w":[{outline:[``,V,jt,G]}],"outline-color":[{outline:N()}],shadow:[{shadow:[``,`none`,u,It,At]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":[`none`,d,It,At]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[V,G]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":[`none`,f,It,At]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[V,K,W]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[K,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,W]}],filter:[{filter:[``,`none`,K,W]}],blur:[{blur:le()}],brightness:[{brightness:[V,K,W]}],contrast:[{contrast:[V,K,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,It,At]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:[``,V,K,W]}],"hue-rotate":[{"hue-rotate":[V,K,W]}],invert:[{invert:[``,V,K,W]}],saturate:[{saturate:[V,K,W]}],sepia:[{sepia:[``,V,K,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,W]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[V,K,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,K,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,K,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,K,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,K,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,K,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,K,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,K,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,K,W]}],ease:[{ease:[`linear`,`initial`,_,K,W]}],delay:[{delay:[V,K,W]}],animate:[{animate:[`none`,v,K,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[K,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,K,W]}],accent:[{accent:N()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,W]}],fill:[{fill:[`none`,...N()]}],"stroke-w":[{stroke:[V,jt,G,Tt]}],stroke:[{stroke:[`none`,...N()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Y(...e){return Kt(Te(e))}function qt({className:e,size:t=`default`,...n}){return(0,R.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:Y(`group/card flex flex-col gap-6 overflow-hidden rounded-lg border border-border bg-card py-6 text-sm text-card-foreground has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,e),...n})}function Jt({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-header`,className:Y(`group/card-header @container/card-header grid auto-rows-min items-start gap-1.5 rounded-t-lg px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4`,e),...t})}function Yt({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-title`,className:Y(`font-heading text-base font-medium`,e),...t})}function Xt({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-description`,className:Y(`text-sm text-muted-foreground`,e),...t})}function Zt({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-content`,className:Y(`px-6 group-data-[size=sm]/card:px-4`,e),...t})}function Qt({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-eyebrow`,className:Y(`text-[10px] font-semibold uppercase tracking-[0.2em] text-muted-foreground`,e),...t})}function $t({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-list`,className:Y(`divide-y divide-border`,e),...t})}var en=Oe(`px-4 py-3 text-sm transition-colors`,{variants:{interactive:{true:`hover:bg-primary/5 hover:text-foreground`,false:``},selected:{true:`bg-primary/8 text-foreground`,false:``}},defaultVariants:{interactive:!1,selected:!1}});function tn({className:e,interactive:t,selected:n,...r}){return(0,R.jsx)(`div`,{"data-slot":`card-list-item`,className:Y(en({interactive:t,selected:n}),e),...r})}function nn({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`card-empty`,className:Y(`rounded-md border border-dashed border-border bg-muted/30 px-4 py-10 text-center text-sm text-muted-foreground`,e),...t})}var rn=Oe(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-sm border border-transparent px-2 py-0.5 text-[11px] font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,neutral:`border-border bg-muted text-foreground [a]:hover:bg-secondary/80`,accent:`bg-primary/12 text-primary-text dark:bg-primary/18`,success:`bg-emerald-500/12 text-emerald-700 dark:bg-emerald-500/18 dark:text-emerald-200`,warning:`bg-amber-500/12 text-amber-700 dark:bg-amber-500/18 dark:text-amber-200`,danger:`bg-destructive/12 text-destructive dark:bg-destructive/18 dark:text-destructive`,info:`bg-sky-500/12 text-sky-700 dark:bg-sky-500/18 dark:text-sky-200`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border bg-background text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-foreground dark:hover:bg-muted/50`,link:`text-primary-text underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function an({className:e,variant:t=`default`,asChild:n=!1,...r}){return(0,R.jsx)(n?te:`span`,{"data-slot":`badge`,"data-variant":t,className:Y(rn({variant:t}),e),...r})}var on=(0,L.createContext)(null);function sn({children:e}){let[t,n]=(0,L.useState)(null),r=(0,L.useRef)(null);(0,L.useEffect)(()=>{r.current=t},[t]);let i=(0,L.useCallback)(e=>{r.current=e,n(e)},[]),a=(0,L.useCallback)(()=>{r.current=null,n(null)},[]),o=(0,L.useCallback)(()=>{let e=r.current;r.current=null,n(null),e?.onClose?.()},[]),s=(0,L.useMemo)(()=>({panel:t,openPanel:i,clearPanel:a,dismissPanel:o}),[a,o,i,t]);return(0,R.jsx)(on.Provider,{value:s,children:e})}function cn(){let e=(0,L.useContext)(on);if(!e)throw Error(`useDashboardPanel must be used within a DashboardPanelProvider.`);return e}function ln({label:e}){return(0,R.jsx)(qt,{className:`border border-border`,children:(0,R.jsxs)(Zt,{className:`flex min-h-[16rem] flex-col items-center justify-center gap-4 text-center`,children:[(0,R.jsx)(_e,{className:`size-8 animate-spin text-primary-text`}),(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Yt,{children:e}),(0,R.jsx)(Xt,{children:`Fetching the latest scan and triage state.`})]})]})})}function un({title:e,body:t}){return(0,R.jsx)(qt,{className:`border border-dashed border-border bg-muted/20`,children:(0,R.jsx)(Zt,{className:`flex min-h-[16rem] flex-col items-center justify-center gap-4 text-center`,children:(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Yt,{children:e}),(0,R.jsx)(Xt,{children:t})]})})})}function dn({error:e}){return(0,R.jsx)(qt,{className:`border border-destructive/25`,children:(0,R.jsxs)(Zt,{className:`flex min-h-[16rem] flex-col items-center justify-center gap-4 text-center`,children:[(0,R.jsx)(Ce,{className:`size-8 text-destructive`}),(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Yt,{children:`Dashboard error`}),(0,R.jsx)(Xt,{children:e.message})]})]})})}var fn=Oe(`group/button inline-flex shrink-0 items-center justify-center rounded-sm border border-transparent text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/92`,outline:`border-border bg-background hover:border-primary/20 hover:bg-primary/6 hover:text-foreground aria-expanded:border-primary/20 aria-expanded:bg-primary/8 aria-expanded:text-foreground dark:bg-transparent`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/85 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-primary/6 hover:text-foreground aria-expanded:bg-primary/8 aria-expanded:text-foreground`,accent:`bg-primary text-primary-foreground hover:bg-primary/92`,success:`border-emerald-500/20 bg-emerald-500/10 text-emerald-700 hover:bg-emerald-500/16 dark:bg-emerald-500/18 dark:text-emerald-200 dark:hover:bg-emerald-500/24`,warning:`border-amber-500/20 bg-amber-500/10 text-amber-700 hover:bg-amber-500/16 dark:bg-amber-500/18 dark:text-amber-200 dark:hover:bg-amber-500/24`,danger:`border-destructive/20 bg-destructive/10 text-destructive hover:bg-destructive/16 dark:bg-destructive/20 dark:text-destructive`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/92 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,link:`text-primary-text underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5`,xs:`h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,lg:`h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,icon:`size-9`,"icon-xs":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function X({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,R.jsx)(r?te:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Y(fn({variant:t,size:n,className:e})),...i})}function pn({className:e,type:t,...n}){return(0,R.jsx)(`input`,{type:t,"data-slot":`input`,className:Y(`h-9 w-full min-w-0 rounded-md border border-input bg-background px-3 py-1 text-base transition-[color,box-shadow,border-color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function mn({...e}){return(0,R.jsx)(P,{"data-slot":`sheet`,...e})}function hn({...e}){return(0,R.jsx)(re,{"data-slot":`sheet-trigger`,...e})}function gn({...e}){return(0,R.jsx)(N,{"data-slot":`sheet-portal`,...e})}function _n({className:e,...t}){return(0,R.jsx)(ie,{"data-slot":`sheet-overlay`,className:Y(`fixed inset-0 z-50 bg-background/80 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function vn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,R.jsxs)(gn,{children:[(0,R.jsx)(_n,{}),(0,R.jsxs)(oe,{"data-slot":`sheet-content`,"data-side":n,className:Y(`fixed z-50 flex flex-col border-border bg-popover text-sm text-popover-foreground shadow-sm transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...i,children:[t,r&&(0,R.jsx)(ce,{"data-slot":`sheet-close`,asChild:!0,children:(0,R.jsxs)(X,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`,children:[(0,R.jsx)(ae,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function yn({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`sheet-header`,className:Y(`flex flex-col gap-1.5 p-6`,e),...t})}function bn({className:e,...t}){return(0,R.jsx)(se,{"data-slot":`sheet-title`,className:Y(`font-heading text-base font-medium text-foreground`,e),...t})}function xn({className:e,...t}){return(0,R.jsx)(F,{"data-slot":`sheet-description`,className:Y(`text-sm text-muted-foreground`,e),...t})}function Sn(e,[t,n]){return Math.min(n,Math.max(t,e))}function Cn(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var wn=`ScrollArea`,[Tn,En]=O(wn),[Dn,Z]=Tn(wn),On=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:o=600,...s}=e,[c,l]=L.useState(null),[u,d]=L.useState(null),[f,p]=L.useState(null),[m,h]=L.useState(null),[g,_]=L.useState(null),[v,y]=L.useState(0),[b,x]=L.useState(0),[S,C]=L.useState(!1),[w,T]=L.useState(!1),E=j(t,e=>l(e)),O=a(i);return(0,R.jsx)(Dn,{scope:n,type:r,dir:O,scrollHideDelay:o,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,children:(0,R.jsx)(D.div,{dir:O,...s,ref:E,style:{position:`relative`,"--radix-scroll-area-corner-width":v+`px`,"--radix-scroll-area-corner-height":b+`px`,...e.style}})})});On.displayName=wn;var kn=`ScrollAreaViewport`,An=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=Z(kn,n),s=L.useRef(null),c=j(t,s,o.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,R.jsx)(D.div,{"data-radix-scroll-area-viewport":``,...a,ref:c,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,R.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});An.displayName=kn;var Q=`ScrollAreaScrollbar`,jn=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Z(Q,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return L.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,R.jsx)(Mn,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,R.jsx)(Nn,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,R.jsx)(Pn,{...r,ref:t,forceMount:n}):i.type===`always`?(0,R.jsx)(Fn,{...r,ref:t}):null});jn.displayName=Q;var Mn=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Z(Q,e.__scopeScrollArea),[a,o]=L.useState(!1);return L.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,R.jsx)(M,{present:n||a,children:(0,R.jsx)(Pn,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Nn=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Z(Q,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=tr(()=>c(`SCROLL_END`),100),[s,c]=Cn(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return L.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),L.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,R.jsx)(M,{present:n||s!==`hidden`,children:(0,R.jsx)(Fn,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:k(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:k(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),Pn=L.forwardRef((e,t)=>{let n=Z(Q,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=L.useState(!1),s=e.orientation===`horizontal`,c=tr(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return $(n.viewport,c),$(n.content,c),(0,R.jsx)(M,{present:r||a,children:(0,R.jsx)(Fn,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),Fn=L.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=Z(Q,e.__scopeScrollArea),a=L.useRef(null),o=L.useRef(0),[s,c]=L.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Jn(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return Xn(e,o.current,s,t)}return n===`horizontal`?(0,R.jsx)(In,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=Zn(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,R.jsx)(Ln,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=Zn(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),In=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Z(Q,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=j(t,c,a.onScrollbarXChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Bn,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":Yn(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),$n(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:qn(o.paddingLeft),paddingEnd:qn(o.paddingRight)}})}})}),Ln=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Z(Q,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=j(t,c,a.onScrollbarYChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Bn,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":Yn(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),$n(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:qn(o.paddingTop),paddingEnd:qn(o.paddingBottom)}})}})}),[Rn,zn]=Tn(Q),Bn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=Z(Q,n),[m,h]=L.useState(null),g=j(t,e=>h(e)),_=L.useRef(null),v=L.useRef(``),y=p.viewport,b=r.content-r.viewport,x=A(u),S=A(c),C=tr(d,10);function w(e){if(_.current){let t=e.clientX-_.current.left,n=e.clientY-_.current.top;l({x:t,y:n})}}return L.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,b,x]),L.useEffect(S,[r,S]),$(m,C),$(p.content,C),(0,R.jsx)(Rn,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:A(a),onThumbPointerUp:A(o),onThumbPositionChange:S,onThumbPointerDown:A(s),children:(0,R.jsx)(D.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:k(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),w(e))}),onPointerMove:k(e.onPointerMove,w),onPointerUp:k(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),Vn=`ScrollAreaThumb`,Hn=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=zn(Vn,e.__scopeScrollArea);return(0,R.jsx)(M,{present:n||i.hasThumb,children:(0,R.jsx)(Un,{ref:t,...r})})}),Un=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=Z(Vn,n),o=zn(Vn,n),{onThumbPositionChange:s}=o,c=j(t,e=>o.onThumbChange(e)),l=L.useRef(void 0),u=tr(()=>{l.current&&=(l.current(),void 0)},100);return L.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(u(),!l.current){let t=er(e,s);l.current=t,s()}};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,R.jsx)(D.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:k(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:k(e.onPointerUp,o.onThumbPointerUp)})});Hn.displayName=Vn;var Wn=`ScrollAreaCorner`,Gn=L.forwardRef((e,t)=>{let n=Z(Wn,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,R.jsx)(Kn,{...e,ref:t}):null});Gn.displayName=Wn;var Kn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=Z(Wn,n),[a,o]=L.useState(0),[s,c]=L.useState(0),l=!!(a&&s);return $(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),$(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,R.jsx)(D.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function qn(e){return e?parseInt(e,10):0}function Jn(e,t){let n=e/t;return isNaN(n)?0:n}function Yn(e){let t=Jn(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Xn(e,t,n,r=`ltr`){let i=Yn(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Qn([c,l],d)(e)}function Zn(e,t,n=`ltr`){let r=Yn(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Sn(e,n===`ltr`?[0,o]:[o*-1,0]);return Qn([0,o],[0,s])(c)}function Qn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function $n(e,t){return e>0&&e<t}var er=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function tr(e,t){let n=A(e),r=L.useRef(0);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),L.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function $(e,t){let n=A(t);ne(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var nr=On,rr=An,ir=Gn;function ar({className:e,children:t,...n}){return(0,R.jsxs)(nr,{"data-slot":`scroll-area`,className:Y(`relative`,e),...n,children:[(0,R.jsx)(rr,{"data-slot":`scroll-area-viewport`,className:`size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1`,children:t}),(0,R.jsx)(or,{}),(0,R.jsx)(ir,{})]})}function or({className:e,orientation:t=`vertical`,...n}){return(0,R.jsx)(jn,{"data-slot":`scroll-area-scrollbar`,"data-orientation":t,orientation:t,className:Y(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent`,e),...n,children:(0,R.jsx)(Hn,{"data-slot":`scroll-area-thumb`,className:`relative flex-1 rounded-full bg-border`})})}var sr=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-2%20-2%20240%2024'%20fill='none'%20role='img'%20aria-label='0.security'%3e%3cpath%20fill='%23FD802E'%20d='M12.5%202%20H17.5%20L7.5%2018%20H2.5%20Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='evenodd'%20d='M4%200%20H16%20L20%204%20V16%20L16%2020%20H4%20L0%2016%20V4%20Z%20M4%205%20V15%20L5%2016%20H15%20L16%2015%20V5%20L15%204%20H5%20Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(28,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%204%20H4%20V8%20H0%20Z%20M0%208%20H20%20V12%20H0%20Z%20M16%2012%20H20%20V16%20H16%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(56,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%200%20H4%20V20%20H0%20Z%20M0%208%20H16%20V12%20H0%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(84,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%200%20H4%20V20%20H0%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(112,0)'%20d='M0%200H4V16H16V0H20V20H0Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='evenodd'%20transform='translate(140,0)'%20d='M0%200H20V12H12L20%2020H14.4L6.4%2012H4V20H0Z%20M4%204V8H16V4Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(168,0)'%20d='M0%200H12V4H8V16H12V20H0V16H4V4H0Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(188,0)'%20d='M0%200H20V4H12V20H8V4H0Z'/%3e%3cpath%20fill='%23403D39'%20fill-rule='nonzero'%20transform='translate(216,0)'%20d='M0%200H4V8H16V0H20V12H12V20H8V12H0Z'/%3e%3c/svg%3e`,cr=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-2%20-2%20240%2024'%20fill='none'%20role='img'%20aria-label='0.security'%3e%3cpath%20fill='%23FD802E'%20d='M12.5%202%20H17.5%20L7.5%2018%20H2.5%20Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='evenodd'%20d='M4%200%20H16%20L20%204%20V16%20L16%2020%20H4%20L0%2016%20V4%20Z%20M4%205%20V15%20L5%2016%20H15%20L16%2015%20V5%20L15%204%20H5%20Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(28,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%204%20H4%20V8%20H0%20Z%20M0%208%20H20%20V12%20H0%20Z%20M16%2012%20H20%20V16%20H16%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(56,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%200%20H4%20V20%20H0%20Z%20M0%208%20H16%20V12%20H0%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(84,0)'%20d='M0%200%20H20%20V4%20H0%20Z%20M0%200%20H4%20V20%20H0%20Z%20M0%2016%20H20%20V20%20H0%20Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(112,0)'%20d='M0%200H4V16H16V0H20V20H0Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='evenodd'%20transform='translate(140,0)'%20d='M0%200H20V12H12L20%2020H14.4L6.4%2012H4V20H0Z%20M4%204V8H16V4Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(168,0)'%20d='M0%200H12V4H8V16H12V20H0V16H4V4H0Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(188,0)'%20d='M0%200H20V4H12V20H8V4H0Z'/%3e%3cpath%20fill='%23FCFAF6'%20fill-rule='nonzero'%20transform='translate(216,0)'%20d='M0%200H4V8H16V0H20V12H12V20H8V12H0Z'/%3e%3c/svg%3e`;function lr({compact:e=!1,className:t}){return e?(0,R.jsxs)(`svg`,{role:`img`,"aria-label":`0.security`,viewBox:`-2 -2 24 24`,className:Y(`size-9 text-[#403D39] dark:text-[#FCFAF6]`,t),children:[(0,R.jsx)(`path`,{fill:`#FD802E`,d:`M12.5 2 H17.5 L7.5 18 H2.5 Z`}),(0,R.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M4 0 H16 L20 4 V16 L16 20 H4 L0 16 V4 Z M4 5 V15 L5 16 H15 L16 15 V5 L15 4 H5 Z`})]}):(0,R.jsxs)(`div`,{className:Y(`space-y-2`,t),children:[(0,R.jsx)(`img`,{alt:`0.security`,src:sr,width:240,height:24,className:`h-auto w-48 max-w-full dark:hidden`}),(0,R.jsx)(`img`,{alt:`0.security`,src:cr,width:240,height:24,className:`hidden h-auto w-48 max-w-full dark:block`}),(0,R.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:`0.security operator shell`})]})}function ur({className:e,...t}){return(0,R.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,className:Y(e),...t})}function dr({className:e,...t}){return(0,R.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:Y(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground sm:gap-2.5`,e),...t})}function fr({className:e,...t}){return(0,R.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:Y(`inline-flex items-center gap-1.5`,e),...t})}function pr({className:e,...t}){return(0,R.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:Y(`font-normal text-foreground`,e),...t})}function mr({children:e,className:t,...n}){return(0,R.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:Y(`[&>svg]:size-3.5`,t),...n,children:e??(0,R.jsx)(fe,{})})}function hr(e){return e.startsWith(`/dashboard`)?`Operations center`:e.startsWith(`/threads`)||e.startsWith(`/findings`)?`Findings workspace`:e.startsWith(`/runs`)||e.startsWith(`/scans`)?`Run dossier`:`Operations center`}function gr(e){return e.startsWith(`/dashboard`)?`Operations`:e.startsWith(`/threads`)||e.startsWith(`/findings`)?`Findings`:e.startsWith(`/runs`)||e.startsWith(`/scans`)?`Runs`:`Control`}function _r(e=`default`){return e===`success`?`text-emerald-700 dark:text-emerald-300`:e===`warning`?`text-amber-700 dark:text-amber-300`:e===`danger`?`text-destructive`:`text-foreground`}function vr(e,t){let n=new Map((t??[]).map(e=>[e.id,e.runtime]));return e.filter(e=>{if([`agent_error`,`scan_error`,`worker_failed`].includes(e.eventType))return!0;let t=e.payload??{},n=typeof t.summary==`string`&&t.summary.trim()?t.summary.trim():e.summary;return[`stage_complete`,`agent_complete`,`runtime_incompatible`].includes(e.eventType)&&/max turns|did not emit required tool_call/i.test(n)}).sort((e,t)=>t.timestamp-e.timestamp).map(e=>{let t=e.payload??{},r=n.get(e.scanId),i=typeof t.error==`string`&&t.error.trim()?t.error.trim():typeof t.summary==`string`&&t.summary.trim()?t.summary.trim():e.summary;return{scanId:e.scanId,scanTarget:e.scanTarget,stage:r?`${e.stage} · ${r}`:e.stage,actor:e.agentRole??null,headline:i,timestamp:e.timestamp}})}function yr({pathname:e,dashboard:t,scans:n,incidents:r}){let i=t?.groups??[],a=n??[],s=t?.workers.filter(e=>e.isActive&&e.status!==`stopped`).length??0,c=t?.queue.runnable??0,l=i.filter(e=>e.workflow.phase===`blocked`).length,u=i.filter(e=>e.workflow.reviewGate===`human_review`).length,d=i.filter(e=>e.workflow.reviewGate===`agent_review`).length,f=i.filter(e=>!e.workflow.assignee).length,p=i.filter(e=>e.latest.triageStatus===`new`).length,m=i.filter(e=>e.workflow.phase===`in_progress`||e.workflow.activeAgentRoles.length>0).length,h=i.filter(e=>e.workflow.consensus===`verified`).length,g=a.filter(e=>e.status===`running`).length,_=a.filter(e=>e.status===`completed`).length,v=new Set(a.map(e=>e.target)).size,y=[...new Set(a.map(e=>e.runtime))],b=[...a].sort((e,t)=>t.startedAt.localeCompare(e.startedAt))[0]??null,x=r[0]??null,S=r.filter(e=>/quota|provider|model|rate limit|openai|anthropic|gemini|claude/i.test(`${e.headline} ${e.stage} ${e.actor??``}`)).length;return e.startsWith(`/threads`)||e.startsWith(`/findings`)?{title:`Findings workspace`,summary:`Review deduplicated evidence, continue the cases that need judgment, and return to the scoped chat workspace when execution needs direction.`,sections:[{label:`Queue`,items:[{label:`Finding families`,value:String(i.length),meta:`deduplicated observations across runs`},{label:`New`,value:String(p),meta:`awaiting a first decision or investigation`},{label:`Human review`,value:String(u),meta:`ready for operator disposition`,tone:u>0?`warning`:`default`},{label:`Agent review`,value:String(d),meta:`needs another evidence pass`}]},{label:`Execution`,items:[{label:`In progress`,value:String(m),meta:`families with active worker movement`,tone:m>0?`success`:`default`},{label:`Blocked`,value:String(l),meta:`needs access, context, or stronger proof`,tone:l>0?`danger`:`default`},{label:`Unassigned`,value:String(f),meta:`no explicit owner attached yet`},{label:`Verified`,value:String(h),meta:`consensus supports a true positive`}],note:x?`Runtime pressure is visible elsewhere too: ${x.scanTarget} failed ${o(x.timestamp)}.`:`Open a finding to copy a context-preserving console handoff.`}]}:e.startsWith(`/runs`)||e.startsWith(`/scans`)?{title:`Run dossiers`,summary:`Inspect provenance by target, then drill into a selected execution and its output findings.`,sections:[{label:`Inventory`,items:[{label:`Targets`,value:String(v),meta:`unique targets in local history`},{label:`Runs`,value:String(a.length),meta:`persisted executions across all targets`},{label:`Active`,value:String(g),meta:`runs still executing now`,tone:g>0?`success`:`default`},{label:`Completed`,value:String(_),meta:`finished without staying in running state`}]},{label:`Runtime`,items:[{label:`Incidents`,value:String(r.length),meta:S>0?`${S} provider/runtime failures`:`no recent failures`,tone:r.length>0?`danger`:`success`},{label:`Workers`,value:String(s),meta:c>0?`${c} runnable work items queued`:`no runnable backlog`},{label:`Runtimes`,value:y.length>0?y.slice(0,3).join(`, `):`none`,meta:y.length>3?`${y.length} runtimes observed`:`runtime mix in run history`},{label:`Latest target`,value:b?.target??`none`,meta:b?o(b.startedAt):`launch a target to create the first dossier`}],note:x?`${x.scanTarget}: ${x.headline}`:`Provider and worker failures should surface here before you dive into a single run.`}]}:{title:`Operations control`,summary:`Run the autonomous control plane, watch queue health, and intervene only when automation hits a real boundary.`,sections:[{label:`Runtime`,items:[{label:`Daemon`,value:s>0?`live`:`offline`,meta:s>0?`${s} active workers heartbeating`:`launch a target or start a daemon`,tone:s>0?`success`:`warning`},{label:`Runnable`,value:String(c),meta:`work items ready to claim next`},{label:`Active runs`,value:String(g),meta:`pipeline executions still in flight`,tone:g>0?`success`:`default`},{label:`Incidents`,value:String(r.length),meta:S>0?`${S} provider/runtime failures`:`clean recent event window`,tone:r.length>0?`danger`:`success`}]},{label:`Review`,items:[{label:`Human review`,value:String(u),meta:`findings waiting on operator sign-off`,tone:u>0?`warning`:`default`},{label:`Blocked`,value:String(l),meta:`access or context gap in execution`,tone:l>0?`danger`:`default`},{label:`Unassigned`,value:String(f),meta:`findings without a named owner`},{label:`Targets`,value:String(v),meta:`real target history in this workspace`}],note:x?`${x.scanTarget}: ${x.headline}`:`No recent runtime failures. Launch the next target from operations.`}]}}function br({children:e,dashboard:t,scans:n,onOpenPalette:r}){let i=d(),{panel:a,dismissPanel:o}=cn(),[s,l]=(0,L.useState)(()=>typeof window>`u`||window.matchMedia(`(min-width: 1280px)`).matches),f=t?.groups.filter(e=>e.latest.triageStatus===`new`).length??0,p=n?.filter(e=>e.status===`running`).length??0,m=t?.workers.filter(e=>e.isActive).length??0,h=t?.queue.runnable??0,g=u({queryKey:[`shell-recent-events`],queryFn:()=>c(18),refetchInterval:5e3}),_=(0,L.useMemo)(()=>vr(g.data?.events??[],n).slice(0,6),[g.data?.events,n]),v=_[0]??null,y=(0,L.useMemo)(()=>yr({pathname:i.pathname,dashboard:t,scans:n,incidents:_}),[t,i.pathname,_,n]),b=_.filter(e=>/quota|provider|model|rate limit|openai|anthropic|gemini|claude/i.test(`${e.headline} ${e.stage} ${e.actor??``}`)).length;return(0,L.useEffect)(()=>{let e=window.matchMedia(`(min-width: 1280px)`),t=()=>l(e.matches);return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,R.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-screen`,children:[(0,R.jsxs)(`aside`,{className:`sticky top-0 hidden h-screen w-[22rem] shrink-0 border-r border-border bg-background xl:grid xl:grid-cols-[4.5rem_minmax(0,1fr)]`,children:[(0,R.jsxs)(`div`,{className:`flex h-screen flex-col items-center border-r border-border px-2 py-3`,children:[(0,R.jsx)(lr,{compact:!0,className:`size-9`}),(0,R.jsxs)(`nav`,{className:`mt-6 flex flex-1 flex-col items-center gap-2`,children:[(0,R.jsx)(xr,{to:`/desktop.html`,label:`Chat`,icon:I,reloadDocument:!0}),(0,R.jsx)(xr,{to:`/dashboard`,label:`Operations`,icon:ge}),(0,R.jsx)(xr,{to:`/findings`,label:`Findings`,icon:ee,badge:f}),(0,R.jsx)(xr,{to:`/runs`,label:`Runs`,icon:ye,badge:p}),(0,R.jsx)(xr,{to:`/live`,label:`Live workflow`,icon:be})]}),(0,R.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex flex-col items-center gap-1 text-center`,children:[(0,R.jsx)(X,{variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground`,onClick:r,"aria-label":`Open launchpad`,children:(0,R.jsx)(me,{className:`size-4`})}),(0,R.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.2em] text-muted-foreground`,children:`Cmd K`})]}),(0,R.jsxs)(`div`,{className:`w-full rounded-md bg-muted/40 px-2 py-2 text-center`,children:[(0,R.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.2em] text-muted-foreground`,children:`Queue`}),(0,R.jsx)(`div`,{className:`mt-1 text-sm font-medium text-foreground`,children:h})]})]})]}),(0,R.jsxs)(`div`,{className:`flex min-h-0 flex-col`,children:[(0,R.jsxs)(`div`,{className:`border-b border-border px-4 py-4`,children:[(0,R.jsx)(`div`,{className:`text-[10px] font-semibold uppercase tracking-[0.2em] text-muted-foreground`,children:gr(i.pathname)}),(0,R.jsx)(`div`,{className:`mt-2 text-base font-medium text-foreground`,children:y.title}),(0,R.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:y.summary})]}),(0,R.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-3 py-3`,children:(0,R.jsxs)(`div`,{className:`space-y-5`,children:[y.sections.map(e=>(0,R.jsxs)(Cr,{label:e.label,children:[e.items.map(e=>(0,R.jsx)(wr,{label:e.label,value:e.value,meta:e.meta,tone:e.tone},e.label)),e.note?(0,R.jsx)(Er,{text:e.note}):null]},e.label)),(0,R.jsxs)(Cr,{label:`Hotkeys`,children:[(0,R.jsx)(Tr,{text:`Cmd/Ctrl+K launchpad`}),(0,R.jsx)(Tr,{text:`/ search`}),(0,R.jsx)(Tr,{text:`Esc close overlays`})]})]})})]})]}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,R.jsx)(`header`,{className:`sticky top-0 z-20 border-b border-border bg-background/95 backdrop-blur`,children:(0,R.jsxs)(`div`,{className:`mx-auto flex max-w-[1800px] flex-col gap-3 px-4 py-3 sm:px-6 xl:flex-row xl:items-center xl:justify-between`,children:[(0,R.jsxs)(`div`,{className:`space-y-2`,children:[(0,R.jsxs)(`div`,{className:`flex items-center gap-2 xl:hidden`,children:[(0,R.jsxs)(mn,{children:[(0,R.jsx)(hn,{asChild:!0,children:(0,R.jsx)(X,{variant:`ghost`,size:`icon-sm`,"aria-label":`Open navigation`,children:(0,R.jsx)(ve,{className:`size-4`})})}),(0,R.jsxs)(vn,{side:`left`,className:`w-72 p-0`,children:[(0,R.jsxs)(yn,{className:`border-b border-border px-4 py-4 pr-12 text-left`,children:[(0,R.jsx)(`div`,{className:`mb-2`,children:(0,R.jsx)(lr,{})}),(0,R.jsx)(bn,{className:`text-base font-semibold text-foreground`,children:`Operator shell`}),(0,R.jsx)(xn,{className:`text-sm text-muted-foreground`,children:`Navigation, runtime posture, and route-specific context.`})]}),(0,R.jsxs)(`div`,{className:`flex flex-col gap-5 px-3 py-3`,children:[(0,R.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,R.jsx)(Sr,{to:`/desktop.html`,reloadDocument:!0,label:`Chat`,meta:`Scoped operator workspace`,icon:I}),(0,R.jsx)(Sr,{to:`/dashboard`,label:`Operations`,meta:`Launch, queue, worker control`,icon:ge}),(0,R.jsx)(Sr,{to:`/findings`,label:`Findings`,meta:`Evidence, review, chat context`,icon:ee,badge:f}),(0,R.jsx)(Sr,{to:`/runs`,label:`Runs`,meta:`Runs, provenance, timelines`,icon:ye,badge:p}),(0,R.jsx)(Sr,{to:`/live`,label:`Live workflow`,meta:`GemmaForge probe → leads → hunt`,icon:be})]}),y.sections.map(e=>(0,R.jsxs)(Cr,{label:e.label,children:[e.items.map(e=>(0,R.jsx)(wr,{label:e.label,value:e.value,meta:e.meta,tone:e.tone},e.label)),e.note?(0,R.jsx)(Er,{text:e.note}):null]},e.label))]})]})]}),(0,R.jsx)(lr,{compact:!0,className:`size-8 rounded-sm`})]}),(0,R.jsx)(ur,{children:(0,R.jsxs)(dr,{children:[(0,R.jsx)(fr,{children:(0,R.jsx)(pr,{children:hr(i.pathname)})}),(0,R.jsx)(mr,{}),(0,R.jsx)(fr,{children:(0,R.jsx)(pr,{children:gr(i.pathname)})})]})})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,R.jsxs)(`div`,{className:`hidden flex-wrap items-center gap-2 lg:flex`,children:[(0,R.jsxs)(Dr,{tone:m>0?`success`:`warning`,children:[(0,R.jsx)(de,{className:`size-3.5`}),m>0?`${m} daemon live`:`daemon offline`]}),(0,R.jsx)(Dr,{tone:_.length>0?`danger`:`success`,children:_.length>0?`${_.length} incidents`:`runtime clean`}),b>0?(0,R.jsxs)(Dr,{tone:`danger`,children:[b,` provider`]}):null,v?(0,R.jsxs)(`div`,{className:`max-w-[24rem] truncate text-sm text-muted-foreground`,children:[v.scanTarget,`: `,v.headline]}):(0,R.jsxs)(`div`,{className:`text-sm text-muted-foreground`,children:[t?.groups.length??0,` finding families tracked`]})]}),(0,R.jsxs)(X,{variant:`default`,onClick:r,children:[(0,R.jsx)(me,{className:`size-4`}),`Launchpad`]})]})]})}),(0,R.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[1800px] flex-1 min-h-0`,children:[(0,R.jsx)(`main`,{className:`min-w-0 flex-1 px-4 py-5 sm:px-6`,children:(0,R.jsx)(`div`,{className:`flex min-h-full min-w-0 flex-col gap-5`,children:e})}),a?(0,R.jsx)(`aside`,{className:`hidden w-[32rem] shrink-0 border-l border-border bg-background xl:flex xl:flex-col`,children:(0,R.jsxs)(`div`,{className:`sticky top-[4.5625rem] flex h-[calc(100vh-4.5625rem)] flex-col`,children:[(0,R.jsxs)(`div`,{className:`border-b border-border px-6 py-6 pr-12`,children:[(0,R.jsx)(`div`,{className:`font-heading text-base font-medium text-foreground`,children:a.title}),(0,R.jsx)(`div`,{className:`mt-1 text-sm text-muted-foreground`,children:a.description})]}),(0,R.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:a.content}),(0,R.jsx)(`div`,{className:`border-t border-border p-4`,children:(0,R.jsx)(X,{variant:`outline`,size:`sm`,onClick:o,children:`Close panel`})})]})}):null]})]})]}),(0,R.jsx)(mn,{open:!!a&&!s,onOpenChange:e=>{e||o()},children:(0,R.jsx)(vn,{side:`right`,className:`w-full overflow-y-auto p-0 sm:max-w-2xl`,children:a?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(yn,{className:`border-b border-border pr-12`,children:[(0,R.jsx)(bn,{children:a.title}),(0,R.jsx)(xn,{children:a.description})]}),a.content]}):null})})]})}function xr({to:e,label:t,icon:n,badge:r=0,reloadDocument:i=!1}){return(0,R.jsx)(T,{to:e,"aria-label":t,reloadDocument:i,children:({isActive:e})=>(0,R.jsxs)(`div`,{className:Y(`relative flex size-11 items-center justify-center rounded-md transition-colors`,e?`bg-primary text-primary-foreground`:`text-muted-foreground hover:bg-muted hover:text-foreground`),children:[(0,R.jsx)(n,{className:`size-4`}),r>0?(0,R.jsx)(`span`,{className:`absolute right-1 top-1 min-w-4 rounded-sm bg-destructive px-1 text-center text-[9px] font-semibold leading-4 text-destructive-foreground`,children:r}):null,(0,R.jsx)(`span`,{className:`sr-only`,children:t})]})})}function Sr({to:e,label:t,meta:n,icon:r,badge:i=0,reloadDocument:a=!1}){return(0,R.jsx)(T,{to:e,reloadDocument:a,children:({isActive:e})=>(0,R.jsxs)(`div`,{className:Y(`flex items-start gap-2.5 rounded-sm px-3 py-2 text-[13px] font-medium transition-colors`,e?`bg-primary/8 text-foreground`:`text-foreground/80 hover:bg-primary/6 hover:text-foreground`),children:[(0,R.jsx)(r,{className:Y(`mt-0.5 size-4 shrink-0`,e&&`text-primary-text`)}),(0,R.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,R.jsx)(`div`,{className:`truncate`,children:t}),(0,R.jsx)(`div`,{className:Y(`truncate text-xs`,e?`text-foreground/70`:`text-muted-foreground`),children:n})]}),i>0?(0,R.jsx)(`span`,{className:`mt-0.5 rounded-sm bg-primary px-1.5 py-0.5 text-[10px] leading-none text-primary-foreground`,children:i}):null]})})}function Cr({label:e,children:t}){return(0,R.jsxs)(`section`,{className:`space-y-2`,children:[(0,R.jsx)(`div`,{className:`px-3 text-[10px] font-medium uppercase tracking-widest text-muted-foreground/70`,children:e}),(0,R.jsx)(`div`,{className:`flex flex-col gap-1`,children:t})]})}function wr({label:e,value:t,meta:n,tone:r=`default`}){return(0,R.jsx)(`div`,{className:`rounded-md border border-border bg-muted/20 px-3 py-3`,children:(0,R.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsx)(`div`,{className:`text-sm text-foreground`,children:e}),(0,R.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground`,children:n})]}),(0,R.jsx)(`div`,{className:Y(`shrink-0 text-sm font-medium`,_r(r)),children:t})]})})}function Tr({text:e}){return(0,R.jsx)(`div`,{className:`px-3 py-2 text-sm text-muted-foreground`,children:e})}function Er({text:e}){return(0,R.jsx)(`div`,{className:`rounded-md border border-dashed border-border px-3 py-3 text-xs leading-5 text-muted-foreground`,children:e})}function Dr({children:e,tone:t=`default`}){return(0,R.jsx)(an,{variant:t===`success`?`success`:t===`warning`?`warning`:t===`danger`?`danger`:`neutral`,className:`gap-1.5`,children:e})}function Or({...e}){return(0,R.jsx)(P,{"data-slot":`dialog`,...e})}function kr({...e}){return(0,R.jsx)(N,{"data-slot":`dialog-portal`,...e})}function Ar({className:e,...t}){return(0,R.jsx)(ie,{"data-slot":`dialog-overlay`,className:Y(`fixed inset-0 isolate z-50 bg-background/80 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function jr({className:e,children:t,showCloseButton:n=!0,...r}){return(0,R.jsxs)(kr,{children:[(0,R.jsx)(Ar,{}),(0,R.jsxs)(oe,{"data-slot":`dialog-content`,className:Y(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl border border-border bg-popover p-6 text-sm text-popover-foreground shadow-sm duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,R.jsx)(ce,{"data-slot":`dialog-close`,asChild:!0,children:(0,R.jsxs)(X,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`,children:[(0,R.jsx)(ae,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function Mr({className:e,...t}){return(0,R.jsx)(`div`,{"data-slot":`dialog-header`,className:Y(`flex flex-col gap-1.5`,e),...t})}function Nr({className:e,...t}){return(0,R.jsx)(se,{"data-slot":`dialog-title`,className:Y(`font-heading text-base leading-none font-medium`,e),...t})}function Pr({className:e,...t}){return(0,R.jsx)(F,{"data-slot":`dialog-description`,className:Y(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}var Fr=[`Actions`,`Pages`,`Findings`,`Runs`];function Ir({open:e,onOpenChange:t,dashboard:n,scans:i}){let a=C(),o=d(),c=x(),[l,f]=(0,L.useState)(``),p=(0,L.useDeferredValue)(l),m=o.pathname.match(/^\/(?:threads|findings)\/([^/]+)/)?.[1]??null,h=o.pathname.match(/^\/(?:runs|scans)\/([^/]+)/)?.[1]??null,g=u({queryKey:[`finding-family`,m],queryFn:()=>s(m),enabled:e&&!!m}),_=ue({mutationFn:({triageStatus:e,triageNote:t})=>r(m,e,t),onSuccess:async()=>{await Promise.all([c.invalidateQueries({queryKey:[`dashboard`]}),c.invalidateQueries({queryKey:[`finding-family`,m]})])}}),v=(0,L.useMemo)(()=>{let e=[{id:`page-chat`,group:`Pages`,label:`Open chat workspace`,meta:`Scoped operator conversation and approvals`,icon:I,keywords:[`chat operator workspace session scope approvals`],run:()=>window.location.assign(`/desktop.html`)},{id:`page-findings`,group:`Pages`,label:`Open findings workspace`,meta:`Evidence, chat handoff, disposition`,icon:he,keywords:[`findings families review evidence console handoff`],run:()=>a(`/findings`)},{id:`page-control`,group:`Pages`,label:`Open operations home`,meta:`Launch, queue, worker control`,icon:ge,keywords:[`operations dashboard overview launch workers queue`],run:()=>a(`/dashboard`)},{id:`page-scans`,group:`Pages`,label:`Open runs`,meta:`Run history and provenance`,icon:pe,keywords:[`scans runs timeline history`],run:()=>a(`/runs`)}];m&&e.unshift({id:`triage-accept`,group:`Actions`,label:`Accept selected finding`,meta:`Mark the finding family as accepted`,icon:xe,keywords:[`accept finding triage`],shortcut:`Enter`,run:()=>_.mutate({triageStatus:`accepted`,triageNote:g.data?.latest.triageNote??``})},{id:`triage-suppress`,group:`Actions`,label:`Suppress selected finding`,meta:`Suppress the finding family`,icon:Se,keywords:[`suppress finding triage`],shortcut:`Shift+S`,run:()=>_.mutate({triageStatus:`suppressed`,triageNote:g.data?.latest.triageNote??``})}),h&&e.unshift({id:`scan-detail`,group:`Actions`,label:`Focus selected scan timeline`,meta:`Open current run detail`,icon:pe,keywords:[`scan timeline detail current`],run:()=>a(`/runs/${h}`)});for(let t of n?.groups.slice(0,14)??[])e.push({id:`finding-${t.fingerprint}`,group:`Findings`,label:t.latest.title,meta:`${t.latest.severity} · ${t.latest.triageStatus}`,icon:he,keywords:[t.latest.title,t.latest.category,t.latest.severity,t.latest.triageStatus],run:()=>a(`/findings/${t.fingerprint}`)});for(let t of i?.slice(0,14)??[])e.push({id:`scan-${t.id}`,group:`Runs`,label:t.target,meta:`${t.status} · ${t.depth} · ${t.runtime}`,icon:pe,keywords:[t.target,t.status,t.depth,t.runtime,t.mode],run:()=>a(`/runs/${t.id}`)});return e},[n?.groups,a,c,i,m,g.data?.latest.triageNote,h,_]),y=(0,L.useMemo)(()=>{let e=p.trim().toLowerCase();return e?v.filter(t=>[t.label,t.meta,...t.keywords].join(` `).toLowerCase().includes(e)):v},[p,v]);return(0,L.useEffect)(()=>{e||f(``)},[e]),(0,R.jsx)(Or,{open:e,onOpenChange:t,children:(0,R.jsxs)(jr,{className:`overflow-hidden p-0 sm:max-w-2xl`,showCloseButton:!1,children:[(0,R.jsxs)(Mr,{className:`border-b border-border px-5 py-4 pr-12`,children:[(0,R.jsx)(Nr,{className:`text-[10px] font-semibold uppercase tracking-[0.2em] text-muted-foreground`,children:`Mission command`}),(0,R.jsx)(Pr,{className:`pt-2 text-sm text-muted-foreground`,children:`Search operations views, findings, runs, and control actions.`})]}),(0,R.jsx)(`div`,{className:`border-b border-border px-4 py-3`,children:(0,R.jsx)(pn,{autoFocus:!0,value:l,onChange:e=>f(e.target.value),placeholder:`Jump to a page, run, finding, or action`})}),(0,R.jsx)(ar,{className:`max-h-[60vh]`,children:(0,R.jsxs)(`div`,{className:`space-y-1 p-2`,children:[Fr.map(e=>{let n=y.filter(t=>t.group===e);return n.length===0?null:(0,R.jsxs)(`section`,{className:`space-y-1`,children:[(0,R.jsx)(`div`,{className:`px-3 py-2 text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground`,children:e}),n.map(e=>(0,R.jsxs)(`button`,{type:`button`,onClick:()=>{e.run(),t(!1)},className:`flex w-full items-center gap-3 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent`,children:[(0,R.jsx)(`div`,{className:`inline-flex size-9 items-center justify-center rounded-md border border-border bg-muted text-primary-text`,children:(0,R.jsx)(e.icon,{className:`size-4`})}),(0,R.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,R.jsx)(`div`,{className:`font-medium text-foreground`,children:e.label}),(0,R.jsx)(`div`,{className:`truncate text-xs text-muted-foreground`,children:e.meta})]}),e.shortcut?(0,R.jsx)(`div`,{className:`text-xs tracking-widest text-muted-foreground`,children:e.shortcut}):null]},e.id))]},e)}),y.length===0?(0,R.jsx)(`div`,{className:`px-4 py-8 text-center text-sm text-muted-foreground`,children:`No matching commands.`}):null]})})]})})}var Lr=(0,L.lazy)(async()=>({default:(await f(async()=>{let{FindingsPage:e}=await import(`./findings-page-B4rwF6fZ.js`);return{FindingsPage:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))).FindingsPage})),Rr=(0,L.lazy)(async()=>({default:(await f(async()=>{let{LivePage:e}=await import(`./live-page-DoNwpPAO.js`);return{LivePage:e}},__vite__mapDeps([15,1,4,2,5,6,7,16,14]))).LivePage})),zr=(0,L.lazy)(async()=>({default:(await f(async()=>{let{OverviewPage:e}=await import(`./overview-page-CmeWH17A.js`);return{OverviewPage:e}},__vite__mapDeps([17,1,3,4,2,5,6,7,18,8,19,20,12,14]))).OverviewPage})),Br=(0,L.lazy)(async()=>({default:(await f(async()=>{let{ScansPage:e}=await import(`./scans-page-CuhzWhHx.js`);return{ScansPage:e}},__vite__mapDeps([21,1,3,4,2,5,6,7,18,11,20,12,13]))).ScansPage}));function Vr(e){let t=e;return t?[`INPUT`,`TEXTAREA`,`SELECT`].includes(t.tagName)||t.isContentEditable:!1}function Hr({dashboard:e,scans:t}){return(0,R.jsx)(L.Suspense,{fallback:(0,R.jsx)(ln,{label:`Loading workspace`}),children:(0,R.jsxs)(p,{children:[(0,R.jsx)(w,{path:`/`,element:(0,R.jsx)(m,{to:`/dashboard`,replace:!0})}),(0,R.jsx)(w,{path:`/dashboard`,element:(0,R.jsx)(zr,{data:e})}),(0,R.jsx)(w,{path:`/threads`,element:(0,R.jsx)(Lr,{dashboard:e})}),(0,R.jsx)(w,{path:`/threads/:fingerprint`,element:(0,R.jsx)(Lr,{dashboard:e})}),(0,R.jsx)(w,{path:`/runs`,element:(0,R.jsx)(Br,{scans:t})}),(0,R.jsx)(w,{path:`/runs/:scanId`,element:(0,R.jsx)(Br,{scans:t})}),(0,R.jsx)(w,{path:`/findings`,element:(0,R.jsx)(Lr,{dashboard:e})}),(0,R.jsx)(w,{path:`/findings/:fingerprint`,element:(0,R.jsx)(Lr,{dashboard:e})}),(0,R.jsx)(w,{path:`/scans`,element:(0,R.jsx)(Br,{scans:t})}),(0,R.jsx)(w,{path:`/scans/:scanId`,element:(0,R.jsx)(Br,{scans:t})}),(0,R.jsx)(w,{path:`/live`,element:(0,R.jsx)(Rr,{})}),(0,R.jsx)(w,{path:`*`,element:(0,R.jsx)(un,{title:`Unknown route`,body:`This dashboard view does not exist yet.`})})]})})}function Ur(){let[e,t]=(0,L.useState)(!1),n=u({queryKey:[`dashboard`],queryFn:i,refetchInterval:5e3}),r=u({queryKey:[`scans`],queryFn:l,refetchInterval:5e3}),a=(0,L.useEffectEvent)(n=>{if((n.metaKey||n.ctrlKey)&&n.key.toLowerCase()===`k`){n.preventDefault(),t(e=>!e);return}!e&&n.key===`/`&&!Vr(n.target)&&(n.preventDefault(),t(!0))});return(0,L.useEffect)(()=>{let e=e=>a(e);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[a]),(0,R.jsx)(sn,{children:(0,R.jsxs)(br,{dashboard:n.data,scans:r.data,onOpenPalette:()=>t(!0),children:[(0,R.jsx)(Ir,{open:e,onOpenChange:t,dashboard:n.data,scans:r.data}),n.isLoading||r.isLoading?(0,R.jsx)(ln,{label:`Operations`}):n.error?(0,R.jsx)(dn,{error:n.error}):r.error?(0,R.jsx)(dn,{error:r.error}):n.data&&r.data?(0,R.jsx)(Hr,{dashboard:n.data,scans:r.data}):(0,R.jsx)(un,{title:`No scan data available`,body:`Run a scan first, then reopen Operations.`})]})})}export{he as A,Y as C,xe as D,Se as E,ue as M,be as O,Ur as OperationsApp,Yt as S,Ce as T,nn as _,yn as a,$t as b,X as c,ln as d,cn as f,Xt as g,Zt as h,xn as i,de as j,ye as k,un as l,qt as m,mn as n,bn as o,an as p,vn as r,pn as s,ar as t,dn as u,Qt as v,Oe as w,tn as x,Jt as y};
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/operations-app-ER0gg7GN.js","assets/jsx-runtime-C7oxC63R.js","assets/format-LNQSSpn6.js","assets/dist-CmX-h7a4.js","assets/client-DRYsuOGl.js","assets/dist-DAwYQmf_.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,t as n}from"./jsx-runtime-C7oxC63R.js";import{t as r}from"./client-DRYsuOGl.js";var i=e(t(),1),a=e(r(),1),o=`modulepreload`,s=function(e){return`/`+e},c={},l=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=l(t.map(t=>{if(t=s(t,n),t=u(t),t in c)return;c[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:o,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},u=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,d=/^[\\/]{2}/;function f(e,t){return t+e.replace(/\\/g,`/`)}var p=`popstate`;function m(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function h(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return b(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:x(t)}return C(t,n,null,e)}function g(e,t){if(e===!1||e==null)throw Error(t)}function _(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function v(){return Math.random().toString(36).substring(2,10)}function y(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function b(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?S(t):t,state:n,key:t&&t.key||r||v(),mask:i}}function x({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function S(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function C(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:_.location,delta:t})}function f(e,t){s=`PUSH`;let r=m(e)?e:b(_.location,e,t);n&&n(r,e),l=u()+1;let d=y(r,l),f=_.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:_.location,delta:1})}function h(e,t){s=`REPLACE`;let r=m(e)?e:b(_.location,e,t);n&&n(r,e),l=u();let i=y(r,l),d=_.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:_.location,delta:0})}function g(e){return w(i,e)}let _={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(p,d),c=e,()=>{i.removeEventListener(p,d),c=null}},createHref(e){return t(i,e)},createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:h,go(e){return o.go(e)}};return _}function w(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),g(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:x(t);return i=i.replace(/ $/,`%20`),!n&&d.test(i)&&(i=r+i),new URL(i,r)}function T(e,t,n=`/`){return ee(e,t,n,!1)}function ee(e,t,n,r,i){let a=D((typeof t==`string`?S(t):t).pathname||`/`,n);if(a==null)return null;let o=i??te(e),s=null,c=_e(a);for(let e=0;s==null&&e<o.length;++e)s=me(o[e],c,r);return s}function te(e){let t=ne(e);return ie(t),t}function ne(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;g(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=k([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(g(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ne(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:fe(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=ge(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of re(e.path))a(e,t,!0,n)}),t}function re(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=re(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ie(e){e.sort((e,t)=>e.score===t.score?pe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ae=/^:[\w-]+$/,oe=3,se=2,ce=1,le=10,ue=-2,de=e=>e===`*`;function fe(e,t){let n=e.split(`/`),r=n.length;return n.some(de)&&(r+=ue),t&&(r+=se),n.filter(e=>!de(e)).reduce((e,t)=>e+(ae.test(t)?oe:t===``?ce:le),r)}function pe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function me(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?he(u,l,s.matcher,s.compiledParams):E(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=E({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:k([a,d.pathname]),pathnameBase:we(k([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=k([a,d.pathnameBase]))}return o}function E(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ge(e.path,e.caseSensitive,e.end);return he(e,t,n,r)}function he(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ge(e,t=!1,n=!0){_(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function _e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function D(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ve(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?S(e):e,a;return n?(n=Ce(n),a=n.startsWith(`/`)?ye(n.substring(1),`/`):ye(n,t)):a=t,{pathname:a,search:Te(r),hash:Ee(i)}}function ye(e,t){let n=A(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function be(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Se(e){let t=xe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function O(e,t,n,r=!1){let i;typeof e==`string`?i=S(e):(i={...e},g(!i.pathname||!i.pathname.includes(`?`),be(`?`,`pathname`,`search`,i)),g(!i.pathname||!i.pathname.includes(`#`),be(`#`,`pathname`,`hash`,i)),g(!i.search||!i.search.includes(`#`),be(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ve(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ce=e=>e.replace(/[\\/]{2,}/g,`/`),k=e=>Ce(e.join(`/`)),A=e=>e.replace(/\/+$/,``),we=e=>A(e).replace(/^\/*/,`/`),Te=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,De=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Oe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ke(e){return k(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e,t){let n=e;if(typeof n!=`string`||!u.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ae)try{let e=new URL(window.location.href),r=d.test(n)?new URL(f(n,e.protocol)):new URL(n),a=D(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{_(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Me=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Me);var Ne=[`GET`,...Me];new Set(Ne);var Pe=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Fe(e){try{return Pe.includes(new URL(e).protocol)}catch{return!1}}var j=i.createContext(null);j.displayName=`DataRouter`;var M=i.createContext(null);M.displayName=`DataRouterState`;var Ie=i.createContext(!1);function Le(){return i.useContext(Ie)}var Re=i.createContext({isTransitioning:!1});Re.displayName=`ViewTransition`;var ze=i.createContext(new Map);ze.displayName=`Fetchers`;var Be=i.createContext(null);Be.displayName=`Await`;var N=i.createContext(null);N.displayName=`Navigation`;var P=i.createContext(null);P.displayName=`Location`;var F=i.createContext({outlet:null,matches:[],isDataRoute:!1});F.displayName=`Route`;var Ve=i.createContext(null);Ve.displayName=`RouteError`;var He=`REACT_ROUTER_ERROR`,Ue=`REDIRECT`,We=`ROUTE_ERROR_RESPONSE`;function Ge(e){if(e.startsWith(`${He}:${Ue}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Ke(e){if(e.startsWith(`${He}:${We}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new De(t.status,t.statusText,t.data)}catch{}}function qe(e,{relative:t}={}){g(I(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=i.useContext(N),{hash:a,pathname:o,search:s}=z(e,{relative:t}),c=o;return n!==`/`&&(c=o===`/`?n:k([n,o])),r.createHref({pathname:c,search:s,hash:a})}function I(){return i.useContext(P)!=null}function L(){return g(I(),`useLocation() may be used only in the context of a <Router> component.`),i.useContext(P).location}var Je=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Ye(e){i.useContext(N).static||i.useLayoutEffect(e)}function R(){let{isDataRoute:e}=i.useContext(F);return e?mt():Xe()}function Xe(){g(I(),`useNavigate() may be used only in the context of a <Router> component.`);let e=i.useContext(j),{basename:t,navigator:n}=i.useContext(N),{matches:r}=i.useContext(F),{pathname:a}=L(),o=JSON.stringify(Se(r)),s=i.useRef(!1);return Ye(()=>{s.current=!0}),i.useCallback((r,i={})=>{if(_(s.current,Je),!s.current)return;if(typeof r==`number`){n.go(r);return}let c=O(r,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:k([t,c.pathname])),(i.replace?n.replace:n.push)(c,i.state,i)},[t,n,o,a,e])}i.createContext(null);function Ze(){let{matches:e}=i.useContext(F);return e[e.length-1]?.params??{}}function z(e,{relative:t}={}){let{matches:n}=i.useContext(F),{pathname:r}=L(),a=JSON.stringify(Se(n));return i.useMemo(()=>O(e,JSON.parse(a),r,t===`path`),[e,a,r,t])}function Qe(e,t){return $e(e,t)}function $e(e,t,n){g(I(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=i.useContext(N),{matches:a}=i.useContext(F),o=a[a.length-1],s=o?o.params:{},c=o?o.pathname:`/`,l=o?o.pathnameBase:`/`,u=o&&o.route;{let e=u&&u.path||``;gt(c,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
3
-
4
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=L(),f;if(t){let e=typeof t==`string`?S(t):t;g(l===`/`||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let p=f.pathname||`/`,m=p;if(l!==`/`){let e=l.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):T(e,{pathname:m});_(u||h!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),_(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=ot(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:k([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?l:k([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),a,n);return t&&v?i.createElement(P.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...f},navigationType:`POP`}},v):v}function et(){let e=pt(),t=Oe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,a={padding:`0.5rem`,backgroundColor:r},o={padding:`2px 4px`,backgroundColor:r},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=i.createElement(i.Fragment,null,i.createElement(`p`,null,`💿 Hey developer 👋`),i.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,i.createElement(`code`,{style:o},`ErrorBoundary`),` or`,` `,i.createElement(`code`,{style:o},`errorElement`),` prop on your route.`)),i.createElement(i.Fragment,null,i.createElement(`h2`,null,`Unexpected Application Error!`),i.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?i.createElement(`pre`,{style:a},n):null,s)}var tt=i.createElement(et,null),nt=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Ke(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:i.createElement(F.Provider,{value:this.props.routeContext},i.createElement(Ve.Provider,{value:e,children:this.props.component}));return this.context?i.createElement(it,{error:e},t):t}};nt.contextType=Ie;var rt=new WeakMap;function it({children:e,error:t}){let{basename:n}=i.useContext(N);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ge(t.digest);if(e){let r=rt.get(t);if(r)throw r;let a=je(e.location,n),o=a.absoluteURL||a.to;if(Fe(o))throw Error(`Invalid redirect location`);if(Ae&&!rt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw rt.set(t,n),n}}return i.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function at({routeContext:e,match:t,children:n}){let r=i.useContext(j);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(F.Provider,{value:e},n)}function ot(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=r?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);g(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r){s=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:i}=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||i[t.route.id]===void 0);if(t.route.lazy||o){n.isStatic&&(s=!0),a=c>=0?a.slice(0,c+1):[a[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ke(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,l)=>{let d,f=!1,p=null,m=null;r&&(d=o&&n.route.id?o[n.route.id]:void 0,p=n.route.errorElement||tt,s&&(c<0&&l===0?(gt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(at,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||l===0)?i.createElement(nt,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function st(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ct(e){let t=i.useContext(j);return g(t,st(e)),t}function lt(e){let t=i.useContext(M);return g(t,st(e)),t}function ut(e){let t=i.useContext(F);return g(t,st(e)),t}function dt(e){let t=ut(e),n=t.matches[t.matches.length-1];return g(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ft(){return dt(`useRouteId`)}function pt(){let e=i.useContext(Ve),t=lt(`useRouteError`),n=dt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function mt(){let{router:e}=ct(`useNavigate`),t=dt(`useNavigate`),n=i.useRef(!1);return Ye(()=>{n.current=!0}),i.useCallback(async(r,i={})=>{_(n.current,Je),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var ht={};function gt(e,t,n){!t&&!ht[e]&&(ht[e]=!0,_(!1,n))}i.memo(_t);function _t({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return $e(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function vt({to:e,replace:t,state:n,relative:r}){g(I(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:a}=i.useContext(N);_(!a,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=i.useContext(F),{pathname:s}=L(),c=R(),l=O(e,Se(o),s,r===`path`),u=JSON.stringify(l);return i.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function yt(e){g(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function bt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:a,static:o=!1,useTransitions:s}){g(!I(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let c=e.replace(/^\/*/,`/`),l=i.useMemo(()=>({basename:c,navigator:a,static:o,useTransitions:s,future:{}}),[c,a,o,s]);typeof n==`string`&&(n=S(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,mask:h}=n,v=i.useMemo(()=>{let e=D(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,mask:h},navigationType:r}},[c,u,d,f,p,m,r,h]);return _(v!=null,`<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:i.createElement(N.Provider,{value:l},i.createElement(P.Provider,{children:t,value:v}))}function xt({children:e,location:t}){return Qe(St(e),t)}i.Component;function St(e,t=[]){let n=[];return i.Children.forEach(e,(e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment){n.push.apply(n,St(e.props.children,a));return}g(e.type===yt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),g(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let o={id:e.props.id||a.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=St(e.props.children,a)),n.push(o)}),n}var B=`get`,V=`application/x-www-form-urlencoded`;function H(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ct(e){return H(e)&&e.tagName.toLowerCase()===`button`}function wt(e){return H(e)&&e.tagName.toLowerCase()===`form`}function Tt(e){return H(e)&&e.tagName.toLowerCase()===`input`}function Et(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dt(e,t){return e.button===0&&(!t||t===`_self`)&&!Et(e)}function Ot(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function kt(e,t){let n=Ot(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var U=null;function At(){if(U===null)try{new FormData(document.createElement(`form`),0),U=!1}catch{U=!0}return U}var jt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Mt(e){return e!=null&&!jt.has(e)?(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`),null):e}function Nt(e,t){let n,r,i,a,o;if(wt(e)){let o=e.getAttribute(`action`);r=o?D(o,t):null,n=e.getAttribute(`method`)||B,i=Mt(e.getAttribute(`enctype`))||V,a=new FormData(e)}else if(Ct(e)||Tt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?D(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||B,i=Mt(e.getAttribute(`formenctype`))||Mt(o.getAttribute(`enctype`))||V,a=new FormData(o,e),!At()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(H(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=B,r=null,i=V,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Pt(e,t){if(e===!1||e==null)throw Error(t)}function Ft(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&D(i.pathname,t)===`/`?`${A(t)}/_root.${r}`:`${A(i.pathname)}.${r}`,i}async function It(e,t){if(e.id in t)return t[e.id];try{let n=await l(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Lt(e){return e!=null&&typeof e.page==`string`}function Rt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function zt(e,t,n){return Wt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await It(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Rt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Bt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Vt(e,t,{includeHydrateFallback:n}={}){return Ht(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Ht(e){return[...new Set(e)]}function Ut(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Wt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Lt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ut(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Gt(){let e=i.useContext(j);return Pt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Kt(){let e=i.useContext(M);return Pt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var qt=i.createContext(void 0);qt.displayName=`FrameworkContext`;function W(){let e=i.useContext(qt);return Pt(e,`You must render this element inside a <HydratedRouter> element`),e}function Jt(e,t){let n=i.useContext(qt),[r,a]=i.useState(!1),[o,s]=i.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=i.useRef(null);i.useEffect(()=>{if(e===`render`&&s(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{a(!0)},h=()=>{a(!1),s(!1)};return n?e===`intent`?[o,p,{onFocus:G(c,m),onBlur:G(l,h),onMouseEnter:G(u,m),onMouseLeave:G(d,h),onTouchStart:G(f,m)}]:[o,p,{}]:[!1,p,{}]}function G(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Yt({page:e,...t}){let n=Le(),{nonce:r}=W(),{router:a}=Gt(),o=i.useMemo(()=>T(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(t.nonce==null&&r&&(t={...t,nonce:r}),n?i.createElement(Zt,{page:e,matches:o,...t}):i.createElement(Qt,{page:e,matches:o,...t})):null}function Xt(e){let{manifest:t,routeModules:n}=W(),[r,a]=i.useState([]);return i.useEffect(()=>{let r=!1;return zt(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),r}function Zt({page:e,matches:t,...n}){let r=L(),{future:a}=W(),{basename:o}=Gt(),s=i.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ft(e,o,a.v8_trailingSlashAwareDataRequests,`rsc`),i=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:s.push(e.route.id);return i&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[o,a.v8_trailingSlashAwareDataRequests,e,r,t]);return i.createElement(i.Fragment,null,s.map(e=>i.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Qt({page:e,matches:t,...n}){let r=L(),{future:a,manifest:o,routeModules:s}=W(),{basename:c}=Gt(),{loaderData:l,matches:u}=Kt(),d=i.useMemo(()=>Bt(e,t,u,o,r,`data`),[e,t,u,o,r]),f=i.useMemo(()=>Bt(e,t,u,o,r,`assets`),[e,t,u,o,r]),p=i.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,i=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];!t||!t.hasLoader||(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:n.add(e.route.id))}),n.size===0)return[];let u=Ft(e,c,a.v8_trailingSlashAwareDataRequests,`data`);return i&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[c,a.v8_trailingSlashAwareDataRequests,l,r,o,d,t,e,s]),m=i.useMemo(()=>Vt(f,o),[f,o]),h=Xt(f);return i.createElement(i.Fragment,null,p.map(e=>i.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>i.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>i.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function $t(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}i.Component;var en=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{en&&(window.__reactRouterVersion=`7.18.2`)}catch{}function tn({basename:e,children:t,useTransitions:n,window:r}){let a=i.useRef();a.current??=h({window:r,v5Compat:!0});let o=a.current,[s,c]=i.useState({action:o.action,location:o.location}),l=i.useCallback(e=>{n===!1?c(e):i.startTransition(()=>c(e))},[n]);return i.useLayoutEffect(()=>o.listen(l),[o,l]),i.createElement(bt,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:n})}var nn=i.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:a,replace:o,mask:s,state:c,target:l,to:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:m,...h},g){let{basename:_,navigator:v,useTransitions:y}=i.useContext(N),b=typeof d==`string`&&u.test(d),x=je(d,_);d=x.to;let S=qe(d,{relative:r}),C=L(),w=null;if(s){let e=O(s,[],C.mask?C.mask.pathname:`/`,!0);_!==`/`&&(e.pathname=e.pathname===`/`?_:k([_,e.pathname])),w=v.createHref(e)}let[T,ee,te]=Jt(n,h),ne=cn(d,{replace:o,mask:s,state:c,target:l,preventScrollReset:f,relative:r,viewTransition:p,defaultShouldRevalidate:m,useTransitions:y});function re(t){e&&e(t),t.defaultPrevented||ne(t)}let ie=!(x.isExternal||a),ae=i.createElement(`a`,{...h,...te,href:(ie?w:void 0)||x.absoluteURL||S,onClick:ie?re:e,ref:$t(g,ee),target:l,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?i.createElement(i.Fragment,null,ae,i.createElement(Yt,{page:S})):ae});nn.displayName=`Link`;var rn=i.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:a,to:o,viewTransition:s,children:c,...l},u){let d=z(o,{relative:l.relative}),f=L(),p=i.useContext(M),{navigator:m,basename:h}=i.useContext(N),g=p!=null&&mn(d)&&s===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=D(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let ee=typeof a==`function`?a(C):a;return i.createElement(nn,{...l,"aria-current":w,className:T,ref:u,style:ee,to:o,viewTransition:s},typeof c==`function`?c(C):c)});rn.displayName=`NavLink`;var an=i.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=B,action:c,onSubmit:l,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:m,...h},g)=>{let{useTransitions:_}=i.useContext(N),v=fn(),y=pn(c,{relative:d}),b=s.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&u.test(c);return i.createElement(`form`,{ref:g,method:b,action:y,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,c=r?.getAttribute(`formmethod`)||s,u=()=>v(r||e.currentTarget,{fetcherKey:t,method:c,navigate:n,replace:a,state:o,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:m});_&&n!==!1?i.startTransition(()=>u()):u()},...h,"data-discover":!x&&e===`render`?`true`:void 0})});an.displayName=`Form`;function on(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sn(e){let t=i.useContext(j);return g(t,on(e)),t}function cn(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=R(),f=L(),p=z(e,{relative:s});return i.useCallback(m=>{if(Dt(m,t)){m.preventDefault();let t=n===void 0?x(f)===x(p):n,h=()=>d(e,{replace:t,mask:r,state:a,preventScrollReset:o,relative:s,viewTransition:c,defaultShouldRevalidate:l});u?i.startTransition(()=>h()):h()}},[f,d,p,n,r,a,t,e,o,s,c,l,u])}function ln(e){_(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=i.useRef(Ot(e)),n=i.useRef(!1),r=L(),a=i.useMemo(()=>kt(r.search,n.current?null:t.current),[r.search]),o=R();return[a,i.useCallback((e,t)=>{let r=Ot(typeof e==`function`?e(new URLSearchParams(a)):e);n.current=!0,o(`?`+r,t)},[o,a])]}var un=0,dn=()=>`__${String(++un)}__`;function fn(){let{router:e}=sn(`useSubmit`),{basename:t}=i.useContext(N),n=ft(),r=e.fetch,a=e.navigate;return i.useCallback(async(e,i={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Nt(e,t);if(i.navigate===!1){let e=i.fetcherKey||dn();await r(e,n,i.action||o,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||s,formEncType:i.encType||c,flushSync:i.flushSync})}else await a(i.action||o,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:l,body:u,formMethod:i.method||s,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,a,t,n])}function pn(e,{relative:t}={}){let{basename:n}=i.useContext(N),r=i.useContext(F);g(r,`useFormAction must be used inside a RouteContext`);let[a]=r.matches.slice(-1),o={...z(e||`.`,{relative:t})},s=L();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:k([n,o.pathname])),x(o)}function mn(e,{relative:t}={}){let n=i.useContext(Re);g(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=sn(`useViewTransitionState`),a=z(e,{relative:t});if(!n.isTransitioning)return!1;let o=D(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=D(n.nextLocation.pathname,r)||n.nextLocation.pathname;return E(a.pathname,s)!=null||E(a.pathname,o)!=null}var K=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hn=new class extends K{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},gn={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},q=new class{#e=gn;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function _n(e){setTimeout(e,0)}var vn=typeof window>`u`||`Deno`in globalThis;function J(){}function yn(e,t){return typeof e==`function`?e(t):e}function bn(e){return typeof e==`number`&&e>=0&&e!==1/0}function xn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Y(e,t){return typeof e==`function`?e(t):e}function Sn(e,t){return typeof e==`function`?e(t):e}function Cn(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Tn(o,t.options))return!1}else if(!Z(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function wn(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(X(t.options.mutationKey)!==X(a))return!1}else if(!Z(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tn(e,t){return(t?.queryKeyHashFn||X)(e)}function X(e){return JSON.stringify(e,(e,t)=>An(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Z(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Z(e[n],t[n])):!1}var En=Object.prototype.hasOwnProperty;function Dn(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=kn(e)&&kn(t);if(!r&&!(An(e)&&An(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:En.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Dn(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function On(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function kn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function An(e){if(!jn(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!jn(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function jn(e){return Object.prototype.toString.call(e)===`[object Object]`}function Mn(e){return new Promise(t=>{q.setTimeout(t,e)})}function Nn(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Dn(e,t)}function Pn(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Fn(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var In=Symbol();function Ln(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===In?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Rn(e,t){return typeof e==`function`?e(...t):!!e}function zn(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Bn=(()=>{let e=()=>vn;return{isServer(){return e()},setIsServer(t){e=t}}})();function Vn(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Hn=_n;function Un(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Hn,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Q=Un(),Wn=new class extends K{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Gn(e){return Math.min(1e3*2**e,3e4)}function Kn(e){return(e??`online`)!==`online`||Wn.isOnline()}var qn=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Jn(e){let t=!1,n=0,r,i=Vn(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new qn(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>hn.isFocused()&&(e.networkMode===`always`||Wn.isOnline())&&e.canRun(),u=()=>Kn(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Bn.isServer()?0:3),o=e.retryDelay??Gn,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Mn(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Yn=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bn(this.gcTime)&&(this.#e=q.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Bn.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(q.clearTimeout(this.#e),this.#e=void 0)}};function Xn(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{zn(e,()=>t.signal,()=>n=!0)},u=Ln(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Fn:Pn;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Qn:Zn,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Zn(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Zn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Qn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var $n=class extends Yn{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=nr(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=nr(this.options);e.data!==void 0&&(this.setState(tr(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Nn(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(J).catch(J):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Sn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===In||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Y(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!xn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Ln(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Xn(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Jn({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof qn&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof qn){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...er(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...tr(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Q.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function er(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kn(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function tr(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function nr(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var rr=class extends Yn{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ir(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Jn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Q.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ir(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ar=class extends K{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new rr({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=or(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=or(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=or(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=or(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Q.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>wn(t,e))}findAll(e={}){return this.getAll().filter(t=>wn(e,t))}notify(e){Q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Q.batch(()=>Promise.all(e.map(e=>e.continue().catch(J))))}};function or(e){return e.options.scope?.id}var sr=class extends K{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Tn(r,t),a=this.get(i);return a||(a=new $n({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Q.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Cn(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Cn(e,t)):t}notify(e){Q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Q.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Q.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},cr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new sr,this.#t=e.mutationCache||new ar,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=hn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Wn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Y(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=yn(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Q.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Q.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Q.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Q.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(J).catch(J)}invalidateQueries(e,t={}){return Q.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Q.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(J)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(J)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Y(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(J).catch(J)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(J).catch(J)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Wn.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(X(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Z(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(X(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Z(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Tn(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===In&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},$=n(),lr=i.createContext(void 0),ur=e=>{let t=i.useContext(lr);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},dr=({client:e,children:t})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,$.jsx)(lr.Provider,{value:e,children:t})),fr=(0,i.lazy)(async()=>({default:(await l(async()=>{let{OperationsApp:e}=await import(`./operations-app-ER0gg7GN.js`);return{OperationsApp:e}},__vite__mapDeps([0,1,2,3,4,5]))).OperationsApp}));function pr({label:e}){return(0,$.jsx)(`div`,{role:`status`,className:`grid min-h-screen place-items-center text-sm`,style:{colorScheme:`light dark`,background:`Canvas`,color:`CanvasText`,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif`},children:e})}function mr(){return(0,$.jsx)(i.Suspense,{fallback:(0,$.jsx)(pr,{label:`Opening operations…`}),children:(0,$.jsx)(fr,{})})}document.documentElement.classList.add(`dark`),document.documentElement.style.colorScheme=`dark`;var hr=new cr({defaultOptions:{queries:{staleTime:15e3,refetchOnWindowFocus:!0}}});a.createRoot(document.getElementById(`root`)).render((0,$.jsx)(i.StrictMode,{children:(0,$.jsx)(dr,{client:hr,children:(0,$.jsx)(tn,{children:(0,$.jsx)(mr,{})})})}));export{L as C,l as D,ln as E,xt as S,Ze as T,hn as _,Vn as a,vt as b,bn as c,Sn as d,Y as f,q as g,xn as h,Q as i,J as l,Rn as m,ir as n,Bn as o,On as p,er as r,X as s,ur as t,Nn as u,K as v,R as w,yt as x,rn as y};
@@ -1 +0,0 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-C7oxC63R.js";import{d as r,f as i,g as ee,h as te,m as ne,n as a,p as re,s as ie,t as ae,y as oe}from"./format-LNQSSpn6.js";import{t as se,y as o}from"./operations-e2CGYKB1.js";import{_ as s}from"./dist-CmX-h7a4.js";import{t as ce}from"./bot-yILPnRgD.js";import{t as c}from"./circle-alert-BEnMBMT-.js";import{a as le,i as l,r as u,t as d}from"./tabs-vn6v7Bk6.js";import{t as f}from"./play-Dwo-9xt6.js";import{t as ue}from"./siren-CCBwTSuk.js";import{a as p,c as m,f as h,i as g,l as de,n as _,o as v,r as y,s as b,t as x,u as S}from"./table-BgsSBdke.js";import{t as fe}from"./page-header-CIJyycfz.js";import{M as C,S as w,_ as T,c as E,g as D,h as O,j as pe,m as k,s as A,v as j,y as M}from"./operations-app-ER0gg7GN.js";var me=s(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),N=s(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),he=s(`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`}]]),P=s(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ge=s(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),F=e(t(),1),I=n();function L({data:e}){let t=se(),[n,s]=(0,F.useState)(null),[l,u]=(0,F.useState)(``),[d,L]=(0,F.useState)(`deep`),[V,H]=(0,F.useState)(`default`),[U,W]=(0,F.useState)(`auto`),G=oe({queryKey:[`recent-events`],queryFn:()=>ie(12),refetchInterval:5e3}),_e=e.groups.filter(e=>e.workflow.reviewGate!==`none`),ve=e.groups.filter(e=>e.workflow.phase===`blocked`),ye=e.groups.filter(e=>e.workflow.phase===`in_progress`),be=e.groups.filter(e=>!e.workflow.assignee),xe=e.scans.filter(e=>e.status===`running`),K=e.workers.filter(e=>e.isActive&&e.status!==`stopped`),Se=e.workers.filter(e=>e.status===`stopped`),q=K.length>0,Ce=e.scans.length===0&&e.groups.length===0&&e.workers.length===0,J=async()=>{await Promise.all([t.invalidateQueries({queryKey:[`dashboard`]}),t.invalidateQueries({queryKey:[`scans`]}),t.invalidateQueries({queryKey:[`recent-events`]})])},we=C({mutationFn:()=>re(),onSuccess:async e=>{s(e.recovered>0?`Recovered ${e.recovered} stale work item${e.recovered===1?``:`s`}.`:`No stale worker claims needed recovery.`),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),Te=C({mutationFn:()=>i(),onSuccess:async e=>{s(e.deleted>0?`Pruned ${e.deleted} stopped worker row${e.deleted===1?``:`s`}.`:`No stopped worker rows were left to prune.`),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),Ee=C({mutationFn:()=>ne(`empty`),onSuccess:async e=>{s(`Reset local state at ${e.path}.`),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),Y=C({mutationFn:()=>te({label:`control-plane-1`,pollIntervalMs:2e3}),onSuccess:async()=>{s(`Started local control-plane daemon.`),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),X=C({mutationFn:()=>ee(),onSuccess:async e=>{s(e.stopped>0?`Stopped ${e.stopped} local daemon process${e.stopped===1?``:`es`}.`:`No live local daemon process needed stopping.`),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),Z=C({mutationFn:()=>r({target:l.trim(),depth:V,mode:d,runtime:U,ensureDaemon:!0}),onSuccess:async()=>{s(`Launched ${d} run for ${l.trim()}.`),u(``),await J()},onError:e=>{s(e instanceof Error?e.message:String(e))}}),Q=we.isPending||Te.isPending||Ee.isPending||Y.isPending||X.isPending||Z.isPending,De=[...e.groups].filter(e=>e.workflow.reviewGate!==`none`||e.workflow.phase===`blocked`||!e.workflow.assignee).sort((e,t)=>t.latest.timestamp-e.latest.timestamp).slice(0,8),Oe=[...e.groups].filter(e=>e.workflow.phase===`in_progress`||e.workflow.activeAgentRoles.length>0).sort((e,t)=>t.latest.timestamp-e.latest.timestamp).slice(0,8),ke=[...e.scans].sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,8),Ae=(0,F.useMemo)(()=>{let e=G.data?.events??[],t=new Map;for(let n of e){let e=n.payload??{},r=typeof e.summary==`string`&&e.summary.trim()?e.summary.trim():n.summary,i=[`stage_complete`,`agent_complete`,`runtime_incompatible`].includes(n.eventType)&&/max turns|did not emit required tool_call/i.test(r);if(![`agent_error`,`scan_error`,`worker_failed`].includes(n.eventType)&&!i||t.has(n.scanId))continue;let ee=typeof e.error==`string`&&e.error.trim()?e.error.trim():typeof e.summary==`string`&&e.summary.trim()?e.summary.trim():n.summary;t.set(n.scanId,{scanId:n.scanId,scanTarget:n.scanTarget,stage:n.stage,actor:n.agentRole??null,headline:ee,timestamp:n.timestamp})}return[...t.values()].slice(0,4)},[G.data?.events]),$=[...e.groups].sort((e,t)=>Number(new Date(t.workflow.updatedAt??t.latest.timestamp))-Number(new Date(e.workflow.updatedAt??e.latest.timestamp))).slice(0,8);return(0,I.jsxs)(`div`,{className:`space-y-6`,children:[(0,I.jsx)(fe,{eyebrow:`Control`,title:`Operations control`,summary:`Launch new targets, watch the autonomous queue, and jump to the findings or runs that actually need intervention.`,actions:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(E,{asChild:!0,variant:`outline`,children:(0,I.jsx)(o,{to:`/runs`,children:`Open runs`})}),(0,I.jsx)(E,{asChild:!0,variant:`accent`,children:(0,I.jsx)(o,{to:`/findings`,children:`Open findings workspace`})})]})}),Ce?(0,I.jsxs)(`section`,{className:`grid gap-4 xl:grid-cols-[1.15fr_0.85fr]`,children:[(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`First run`}),(0,I.jsx)(w,{className:`mt-2`,children:`Launch the first target`}),(0,I.jsx)(D,{children:`A finding family is the clustered underlying issue behind repeated observations across runs. Start a target, let the pipeline collect proof, then review only the families that survive automation.`})]})}),(0,I.jsxs)(O,{className:`space-y-5`,children:[(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`div`,{className:`text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground`,children:`Target`}),(0,I.jsx)(A,{value:l,onChange:e=>u(e.target.value),placeholder:d===`mcp`?`mcp://assistant-endpoint`:d===`web`?`https://app.example.com`:`https://api.example.com`})]}),(0,I.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-3`,children:[(0,I.jsx)(B,{label:`Mode`,value:d,onValueChange:e=>L(e),options:[{value:`deep`,label:`API/URL`},{value:`web`,label:`Web app`},{value:`mcp`,label:`MCP`}]}),(0,I.jsx)(B,{label:`Depth`,value:V,onValueChange:e=>H(e),options:[{value:`quick`,label:`Quick`},{value:`default`,label:`Default`},{value:`deep`,label:`Deep`}]}),(0,I.jsx)(B,{label:`Runtime`,value:U,onValueChange:e=>W(e),options:[{value:`auto`,label:`Auto`},{value:`api`,label:`API`},{value:`codex`,label:`Codex`},{value:`claude`,label:`Claude`},{value:`gemini`,label:`Gemini`}]})]}),(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,I.jsxs)(E,{variant:`accent`,onClick:()=>Z.mutate(),disabled:!l.trim()||Q,children:[(0,I.jsx)(f,{}),`Launch target`]}),(0,I.jsxs)(E,{variant:`outline`,onClick:()=>Y.mutate(),disabled:q||Q,children:[(0,I.jsx)(N,{}),`Start daemon`]}),(0,I.jsxs)(E,{variant:`outline`,onClick:()=>X.mutate(),disabled:!q||Q,children:[(0,I.jsx)(N,{}),`Stop daemon`]})]})]})]}),(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Execution model`}),(0,I.jsx)(w,{className:`mt-2`,children:`How the system works`}),(0,I.jsx)(D,{children:`This is not meant to be a human-driven kanban first. The control plane should run autonomously until a thread needs review, override, or more access.`})]})}),(0,I.jsxs)(O,{className:`space-y-3 text-sm text-muted-foreground`,children:[(0,I.jsx)(`div`,{className:`rounded-md border border-border bg-background px-4 py-3`,children:"A `run` is one pipeline execution against a target."}),(0,I.jsx)(`div`,{className:`rounded-md border border-border bg-background px-4 py-3`,children:"A `thread` is one underlying issue clustered across repeated hits or follow-up evidence."}),(0,I.jsx)(`div`,{className:`rounded-md border border-border bg-background px-4 py-3`,children:"A `worker` is a local autonomous daemon claiming runnable stages from persisted state."}),(0,I.jsx)(`div`,{className:`rounded-md border border-border bg-background px-4 py-3`,children:`Humans should mostly work the review inbox, blocked access, and final disposition.`})]})]})]}):null,Ce?null:(0,I.jsxs)(`section`,{className:`grid gap-4 xl:grid-cols-[1.15fr_0.85fr]`,children:[(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Launch`}),(0,I.jsx)(w,{className:`mt-2`,children:`Control strip`}),(0,I.jsx)(D,{children:`Launch a new target, keep the daemon healthy, and clear local state without dropping to the CLI.`})]})}),(0,I.jsxs)(O,{className:`space-y-5`,children:[(0,I.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-[minmax(0,1.2fr)_repeat(3,minmax(0,0.8fr))]`,children:[(0,I.jsxs)(`label`,{className:`space-y-2`,children:[(0,I.jsx)(`div`,{className:`text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground`,children:`Target`}),(0,I.jsx)(A,{value:l,onChange:e=>u(e.target.value),placeholder:d===`mcp`?`mcp://assistant-endpoint`:d===`web`?`https://app.example.com`:`https://api.example.com`})]}),(0,I.jsx)(B,{label:`Mode`,value:d,onValueChange:e=>L(e),options:[{value:`deep`,label:`API/URL`},{value:`web`,label:`Web app`},{value:`mcp`,label:`MCP`}]}),(0,I.jsx)(B,{label:`Depth`,value:V,onValueChange:e=>H(e),options:[{value:`quick`,label:`Quick`},{value:`default`,label:`Default`},{value:`deep`,label:`Deep`}]}),(0,I.jsx)(B,{label:`Runtime`,value:U,onValueChange:e=>W(e),options:[{value:`auto`,label:`Auto`},{value:`api`,label:`API`},{value:`codex`,label:`Codex`},{value:`claude`,label:`Claude`},{value:`gemini`,label:`Gemini`}]})]}),(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,I.jsxs)(E,{variant:`accent`,onClick:()=>Z.mutate(),disabled:!l.trim()||Q,children:[(0,I.jsx)(f,{}),`Launch target`]}),(0,I.jsxs)(E,{variant:q?`outline`:`default`,onClick:()=>q?X.mutate():Y.mutate(),disabled:Q,children:[(0,I.jsx)(N,{}),q?`Stop daemon`:`Start daemon`]}),(0,I.jsxs)(E,{variant:`outline`,onClick:()=>we.mutate(),disabled:Q,children:[(0,I.jsx)(he,{}),`Recover stale`]}),(0,I.jsxs)(E,{variant:`outline`,onClick:()=>Te.mutate(),disabled:Q,children:[(0,I.jsx)(P,{}),`Prune stopped`]}),(0,I.jsxs)(E,{variant:`warning`,onClick:()=>Ee.mutate(),disabled:Q||q,children:[(0,I.jsx)(me,{}),`Reset local state`]})]}),(0,I.jsx)(`div`,{className:`rounded-md border border-border bg-muted/20 px-4 py-3 text-sm text-muted-foreground`,children:n??`The daemon can be started from here. Local state reset stays guarded while a live daemon is heartbeating.`})]})]}),(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Situation`}),(0,I.jsx)(w,{className:`mt-2`,children:`Live system state`}),(0,I.jsx)(D,{children:`Read the queue, worker fleet, and review backlog at a glance before drilling into findings or runs.`})]})}),(0,I.jsxs)(O,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,I.jsx)(R,{icon:ge,label:`Runnable now`,value:e.queue.runnable,hint:`Work items ready to claim.`}),(0,I.jsx)(R,{icon:pe,label:`Workers`,value:K.length,hint:`Live orchestration daemons.`}),(0,I.jsx)(R,{icon:c,label:`Review`,value:_e.length,hint:`Finding families waiting on sign-off.`}),(0,I.jsx)(R,{icon:ue,label:`Blocked`,value:ve.length,hint:`Finding families outside the happy path.`}),(0,I.jsx)(R,{icon:ce,label:`Running findings`,value:ye.length,hint:`Finding families with live worker activity.`}),(0,I.jsx)(R,{icon:le,label:`Unassigned`,value:be.length,hint:`Finding families without an owner.`}),(0,I.jsx)(R,{icon:f,label:`Active runs`,value:xe.length,hint:`Runs still executing.`}),(0,I.jsx)(R,{icon:P,label:`Stopped workers`,value:Se.length,hint:`Rows safe to prune.`})]})]})]}),(0,I.jsxs)(`section`,{className:`grid gap-4 xl:grid-cols-[1.05fr_0.95fr]`,children:[(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsxs)(M,{children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Findings`}),(0,I.jsx)(w,{className:`mt-2`,children:`Decision queue`}),(0,I.jsx)(D,{children:`Finding families that most likely need a human decision next: blocked execution, review gates, or ownership gaps.`})]}),(0,I.jsx)(E,{asChild:!0,variant:`ghost`,size:`sm`,children:(0,I.jsx)(o,{to:`/findings`,children:`Open findings`})})]}),(0,I.jsx)(O,{children:De.length===0?(0,I.jsx)(T,{className:`text-left`,children:`No findings currently need intervention.`}):(0,I.jsxs)(x,{children:[(0,I.jsx)(p,{children:(0,I.jsxs)(v,{className:`hover:bg-transparent`,children:[(0,I.jsx)(g,{children:`Finding`}),(0,I.jsx)(g,{children:`Ownership`}),(0,I.jsx)(g,{children:`Signal`}),(0,I.jsx)(g,{className:`w-[14rem]`,children:`State`})]})}),(0,I.jsx)(_,{children:De.map(e=>(0,I.jsxs)(v,{children:[(0,I.jsx)(y,{className:`font-medium`,children:(0,I.jsx)(o,{to:`/findings/${e.fingerprint}`,className:`text-foreground hover:text-primary-text`,children:e.latest.title})}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:e.workflow.assignee??`Unassigned`}),(0,I.jsx)(y,{children:(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,I.jsx)(S,{severity:e.latest.severity}),(0,I.jsx)(b,{value:e.workflow.consensus})]})}),(0,I.jsx)(y,{children:(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,I.jsx)(m,{value:e.workflow.phase}),e.workflow.reviewGate===`none`?null:(0,I.jsx)(de,{value:e.workflow.reviewGate}),(0,I.jsx)(h,{value:e.latest.triageStatus})]})})]},e.fingerprint))})]})})]}),(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Execution`}),(0,I.jsx)(w,{className:`mt-2`,children:`Queue and daemons`}),(0,I.jsx)(D,{children:`Use this column to understand what automation is doing right now and where the queue is getting stuck.`})]})}),(0,I.jsxs)(O,{className:`space-y-6`,children:[Oe.length===0?(0,I.jsx)(T,{className:`text-left`,children:`No live worker activity right now.`}):(0,I.jsx)(`div`,{className:`space-y-3`,children:Oe.map(e=>(0,I.jsx)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-3`,children:(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsx)(o,{to:`/findings/${e.fingerprint}`,className:`text-sm font-medium text-foreground hover:text-primary-text`,children:e.latest.title}),(0,I.jsx)(`div`,{className:`mt-1 text-xs text-muted-foreground`,children:e.workflow.activeAgentRoles.length>0?e.workflow.activeAgentRoles.join(`, `):`Waiting for worker activity`})]}),(0,I.jsx)(m,{value:e.workflow.phase})]})},e.fingerprint))}),(0,I.jsxs)(`div`,{className:`space-y-3`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Autonomous queue`}),(0,I.jsx)(w,{className:`mt-2`,children:`Worker-ready state`}),(0,I.jsx)(D,{children:`Real queue health from persisted work items, not inferred status labels.`})]}),(0,I.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,I.jsx)(z,{label:`Runnable now`,value:e.queue.runnable,hint:`Dependencies satisfied and no sibling claim is active.`}),(0,I.jsx)(z,{label:`Active claims`,value:e.queue.active,hint:`Currently held by a running case worker.`}),(0,I.jsx)(z,{label:`Blocked by deps`,value:e.queue.blockedByDependency,hint:`Waiting on an earlier stage to complete first.`}),(0,I.jsx)(z,{label:`Manual review`,value:e.queue.manualReview,hint:`Queued for operator sign-off, not autonomous execution.`}),(0,I.jsx)(z,{label:`Recovered claims`,value:e.queue.recoveredClaims,hint:`Requeued after a stale worker heartbeat expired.`}),(0,I.jsx)(z,{label:`Stale workers`,value:e.queue.staleWorkers,hint:`Workers marked errored after heartbeat expiry.`})]})]}),(0,I.jsxs)(`div`,{className:`space-y-3`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Autonomous workers`}),(0,I.jsx)(w,{className:`mt-2`,children:`Daemon state`})]}),K.length===0?(0,I.jsx)(T,{className:`text-left`,children:`No orchestration daemons are heartbeating right now.`}):(0,I.jsx)(`div`,{className:`space-y-3`,children:K.slice(0,4).map(e=>(0,I.jsx)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-3`,children:(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:e.label}),(0,I.jsxs)(`div`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.currentWorkItemTitle??e.currentWorkItemId??`Idle`,e.currentCaseTarget?` · ${e.currentCaseTarget}`:``,` · heartbeat ${a(e.heartbeatAt)}`]}),e.lastError?(0,I.jsx)(`div`,{className:`mt-1 text-xs text-destructive`,children:e.lastError}):null]}),(0,I.jsx)(h,{value:e.status})]})},e.id))})]})]})]})]}),(0,I.jsxs)(`section`,{className:`grid gap-4 xl:grid-cols-[0.95fr_1.05fr]`,children:[(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsxs)(M,{children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Runs`}),(0,I.jsx)(w,{className:`mt-2`,children:`Recent execution`}),(0,I.jsx)(D,{children:`Recent and still-running runs. Use this to jump into provenance without leaving operations.`})]}),(0,I.jsx)(E,{asChild:!0,variant:`ghost`,size:`sm`,children:(0,I.jsx)(o,{to:`/runs`,children:`Open runs`})})]}),(0,I.jsx)(O,{children:ke.length===0?(0,I.jsx)(T,{className:`text-left`,children:`No runs recorded yet.`}):(0,I.jsxs)(x,{children:[(0,I.jsx)(p,{children:(0,I.jsxs)(v,{className:`hover:bg-transparent`,children:[(0,I.jsx)(g,{children:`Target`}),(0,I.jsx)(g,{children:`Started`}),(0,I.jsx)(g,{children:`Profile`}),(0,I.jsx)(g,{className:`w-[12rem]`,children:`State`})]})}),(0,I.jsx)(_,{children:ke.map(e=>(0,I.jsxs)(v,{children:[(0,I.jsx)(y,{className:`font-medium`,children:(0,I.jsx)(o,{to:`/runs/${e.id}`,className:`text-foreground hover:text-primary-text`,children:e.target})}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:a(e.startedAt)}),(0,I.jsxs)(y,{className:`text-muted-foreground`,children:[e.runtime,` · `,e.mode,` · `,e.depth]}),(0,I.jsx)(y,{children:(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,I.jsx)(h,{value:e.status}),(0,I.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:ae(e.durationMs)})]})})]},e.id))})]})})]}),(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsxs)(M,{children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Findings`}),(0,I.jsx)(w,{className:`mt-2`,children:`Latest movement`}),(0,I.jsx)(D,{children:`Most recent finding-family changes across automation, triage, and review.`})]}),(0,I.jsx)(E,{asChild:!0,variant:`ghost`,size:`sm`,children:(0,I.jsx)(o,{to:`/findings`,children:`Open findings`})})]}),(0,I.jsx)(O,{children:$.length===0?(0,I.jsx)(T,{className:`text-left`,children:`No findings recorded yet.`}):(0,I.jsxs)(x,{children:[(0,I.jsx)(p,{children:(0,I.jsxs)(v,{className:`hover:bg-transparent`,children:[(0,I.jsx)(g,{children:`Finding`}),(0,I.jsx)(g,{children:`Updated`}),(0,I.jsx)(g,{children:`Coverage`}),(0,I.jsx)(g,{className:`w-[16rem]`,children:`State`})]})}),(0,I.jsx)(_,{children:$.map(e=>(0,I.jsxs)(v,{children:[(0,I.jsx)(y,{className:`font-medium`,children:(0,I.jsx)(o,{to:`/findings/${e.fingerprint}`,className:`text-foreground hover:text-primary-text`,children:e.latest.title})}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:a(e.workflow.updatedAt??e.latest.timestamp)}),(0,I.jsxs)(y,{className:`text-muted-foreground`,children:[e.count,` hits · `,e.scanCount,` scans`]}),(0,I.jsx)(y,{children:(0,I.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,I.jsx)(m,{value:e.workflow.phase}),e.workflow.reviewGate===`none`?null:(0,I.jsx)(de,{value:e.workflow.reviewGate}),(0,I.jsx)(S,{severity:e.latest.severity}),(0,I.jsx)(b,{value:e.workflow.consensus})]})})]},e.fingerprint))})]})})]})]}),Ae.length>0?(0,I.jsxs)(k,{className:`overflow-hidden border-destructive/20`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Incidents`}),(0,I.jsx)(w,{className:`mt-2`,children:`Runtime incidents`}),(0,I.jsx)(D,{children:`Provider failures, worker crashes, and stalled agent executions that need operator attention.`})]})}),(0,I.jsx)(O,{className:`space-y-3`,children:Ae.map(e=>(0,I.jsx)(`div`,{className:`rounded-md border border-destructive/20 bg-destructive/5 px-4 py-3`,children:(0,I.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,I.jsxs)(`div`,{className:`min-w-0`,children:[(0,I.jsx)(o,{to:`/runs/${e.scanId}`,className:`text-sm font-medium text-foreground hover:text-primary-text`,children:e.scanTarget}),(0,I.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:e.headline}),(0,I.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2 text-xs text-muted-foreground`,children:[(0,I.jsx)(S,{severity:`high`}),(0,I.jsx)(`span`,{children:e.stage}),e.actor?(0,I.jsx)(`span`,{children:e.actor}):null,(0,I.jsx)(`span`,{children:a(e.timestamp)})]})]}),(0,I.jsx)(c,{className:`mt-0.5 size-5 shrink-0 text-destructive`})]})},`${e.scanId}:${e.timestamp}`))})]}):null,(0,I.jsxs)(k,{className:`overflow-hidden`,children:[(0,I.jsx)(M,{children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(j,{children:`Events`}),(0,I.jsx)(w,{className:`mt-2`,children:`Recent pipeline activity`}),(0,I.jsx)(D,{children:`Live audit events across runs, useful for seeing where the system is actually spending time.`})]})}),(0,I.jsx)(O,{children:G.isLoading?(0,I.jsx)(T,{children:`Loading recent events...`}):G.error?(0,I.jsx)(T,{children:G.error instanceof Error?G.error.message:`Failed to load recent events.`}):(G.data?.events.length??0)===0?(0,I.jsx)(T,{children:`No pipeline events recorded yet.`}):(0,I.jsxs)(x,{children:[(0,I.jsx)(p,{children:(0,I.jsxs)(v,{className:`hover:bg-transparent`,children:[(0,I.jsx)(g,{children:`Target`}),(0,I.jsx)(g,{children:`Summary`}),(0,I.jsx)(g,{children:`Stage`}),(0,I.jsx)(g,{children:`Event`}),(0,I.jsx)(g,{children:`Actor`}),(0,I.jsx)(g,{className:`w-[12rem]`,children:`Time`})]})}),(0,I.jsx)(_,{children:G.data?.events.map(e=>(0,I.jsxs)(v,{children:[(0,I.jsx)(y,{className:`font-medium`,children:(0,I.jsxs)(`div`,{className:`space-y-1`,children:[(0,I.jsx)(o,{to:`/runs/${e.scanId}`,className:`text-foreground hover:text-primary-text`,children:e.scanTarget}),e.findingFingerprint?(0,I.jsx)(`div`,{children:(0,I.jsx)(o,{to:`/findings/${e.findingFingerprint}`,className:`text-xs text-muted-foreground hover:text-primary-text`,children:`Open finding`})}):null]})}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:e.summary}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:e.stage}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:e.eventType}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:e.agentRole??`system`}),(0,I.jsx)(y,{className:`text-muted-foreground`,children:a(e.timestamp)})]},e.id))})]})})]})]})}function R({icon:e,label:t,value:n,hint:r}){return(0,I.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-3`,children:[(0,I.jsxs)(`div`,{className:`flex items-center gap-2 text-[10px] font-medium uppercase tracking-widest text-muted-foreground/70`,children:[(0,I.jsx)(e,{className:`size-3.5`}),t]}),(0,I.jsx)(`div`,{className:`mt-2 text-2xl font-semibold text-foreground`,children:n}),(0,I.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground`,children:r})]})}function z({label:e,value:t,hint:n}){return(0,I.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-3`,children:[(0,I.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-widest text-muted-foreground/70`,children:e}),(0,I.jsx)(`div`,{className:`mt-2 text-2xl font-semibold text-foreground`,children:t}),(0,I.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground`,children:n})]})}function B({label:e,value:t,onValueChange:n,options:r}){return(0,I.jsxs)(`div`,{className:`space-y-2`,children:[(0,I.jsx)(`div`,{className:`text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground`,children:e}),(0,I.jsx)(d,{value:t,onValueChange:n,children:(0,I.jsx)(u,{className:`w-full flex-wrap justify-start`,children:r.map(e=>(0,I.jsx)(l,{value:e.value,className:`flex-1`,children:e.label},e.value))})})]})}export{L as OverviewPage};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-C7oxC63R.js";import{C as t}from"./operations-app-ER0gg7GN.js";var n=e();function r({eyebrow:e,title:r,summary:i,actions:a,className:o}){return(0,n.jsxs)(`header`,{className:t(`flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between`,o),children:[(0,n.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,n.jsx)(`div`,{className:`text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground`,children:e}),(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h1`,{className:`text-[2rem] font-bold tracking-tight text-foreground`,children:r}),(0,n.jsx)(`p`,{className:`mt-1.5 max-w-3xl text-sm leading-6 text-muted-foreground`,children:i})]})]}),a?(0,n.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:a}):null]})}export{r as t};
@@ -1 +0,0 @@
1
- import{_ as e}from"./dist-CmX-h7a4.js";var t=e(`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`}]]);export{t};
@@ -1 +0,0 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-C7oxC63R.js";import{c as r,l as i,n as a,r as o,t as s,y as c}from"./format-LNQSSpn6.js";import{T as l,w as u,y as d}from"./operations-e2CGYKB1.js";import{_ as f,g as p}from"./dist-CmX-h7a4.js";import{t as m}from"./bot-yILPnRgD.js";import{t as h}from"./circle-alert-BEnMBMT-.js";import{t as g}from"./search-CiooTLck.js";import{t as _}from"./siren-CCBwTSuk.js";import{a as v,c as y,f as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D,u as O}from"./table-BgsSBdke.js";import{n as k,t as A}from"./meta-tile-BMtBC-Qq.js";import{C as j,S as M,_ as N,b as P,c as ee,d as te,f as F,g as I,h as L,j as R,k as ne,l as z,m as B,p as V,s as re,t as ie,u as H,v as U,x as W,y as G}from"./operations-app-ER0gg7GN.js";var K=f(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),q=f(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),J=e(t(),1),Y=n();function ae({title:e,description:t,searchValue:n,onSearchChange:r,searchPlaceholder:i,children:a}){return(0,Y.jsxs)(B,{className:`flex h-[36rem] min-h-0 max-h-[calc(100vh-8rem)] flex-col overflow-hidden`,children:[(0,Y.jsxs)(G,{className:`space-y-3`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(U,{children:`Queue`}),(0,Y.jsx)(M,{className:`mt-2`,children:e}),(0,Y.jsx)(I,{children:t})]}),(0,Y.jsxs)(`label`,{className:`flex items-center gap-3`,children:[(0,Y.jsx)(g,{className:`size-4 text-muted-foreground`}),(0,Y.jsx)(re,{value:n,onChange:e=>r(e.target.value),placeholder:i,className:`h-9`})]})]}),(0,Y.jsx)(L,{className:`flex min-h-0 flex-1 flex-col pt-3`,children:(0,Y.jsx)(ie,{className:`min-h-0 flex-1`,children:(0,Y.jsx)(P,{children:a})})})]})}function X({title:e,description:t,meta:n,badges:r,selected:i=!1}){return(0,Y.jsx)(W,{interactive:!0,selected:i,children:(0,Y.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,Y.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,Y.jsx)(`div`,{className:`text-sm font-semibold leading-5 text-foreground`,children:e}),(0,Y.jsx)(`div`,{className:`text-xs leading-5 text-muted-foreground`,children:t}),n?(0,Y.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:n}):null]}),r?(0,Y.jsx)(`div`,{className:`flex max-w-[12rem] flex-wrap justify-end gap-2`,children:r}):null]})})}function oe({events:e}){return(0,Y.jsxs)(B,{className:`overflow-hidden`,children:[(0,Y.jsx)(G,{children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(U,{children:`Activity`}),(0,Y.jsx)(M,{className:`mt-2`,children:`Timeline`})]})}),(0,Y.jsx)(L,{className:`space-y-4`,children:e.length===0?(0,Y.jsx)(N,{children:`No pipeline events recorded.`}):(0,Y.jsxs)(D,{children:[(0,Y.jsx)(v,{children:(0,Y.jsxs)(w,{className:`hover:bg-transparent`,children:[(0,Y.jsx)(x,{children:`Event`}),(0,Y.jsx)(x,{children:`Summary`}),(0,Y.jsx)(x,{className:`w-[10rem]`,children:`Time`}),(0,Y.jsx)(x,{className:`w-[14rem]`,children:`Payload`})]})}),(0,Y.jsx)(C,{children:e.map(e=>{let t=se(e.stage,e.eventType);return(0,Y.jsxs)(w,{children:[(0,Y.jsx)(T,{children:(0,Y.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Y.jsx)(`div`,{className:`mt-0.5 inline-flex size-8 items-center justify-center rounded-md border border-border bg-muted text-primary-text`,children:(0,Y.jsx)(t,{className:`size-4`})}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsxs)(`div`,{className:`font-medium text-foreground`,children:[e.stage,` · `,e.eventType]}),e.agentRole?(0,Y.jsx)(b,{value:e.agentRole}):null]})]})}),(0,Y.jsx)(T,{className:`text-muted-foreground`,children:(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsx)(`div`,{children:o(e.payload)}),e.findingId?(0,Y.jsxs)(`div`,{className:`font-mono text-xs text-muted-foreground`,children:[`finding `,e.findingId.slice(0,8)]}):null]})}),(0,Y.jsx)(T,{className:`text-xs text-muted-foreground`,children:a(e.timestamp)}),(0,Y.jsx)(T,{children:e.payload?(0,Y.jsxs)(`details`,{className:`rounded-md border border-border bg-muted/50 p-2 text-sm text-muted-foreground`,children:[(0,Y.jsx)(`summary`,{className:`cursor-pointer list-none font-medium text-foreground`,children:`View raw`}),(0,Y.jsx)(`pre`,{className:`mt-3 text-xs text-muted-foreground`,children:JSON.stringify(e.payload,null,2)})]}):(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`No payload`})})]},e.id)})})]})})]})}function se(e,t){let n=`${e}:${t}`.toLowerCase();return n.includes(`attack`)?p:n.includes(`agent`)?m:n.includes(`verify`)?K:n.includes(`finding`)?h:n.includes(`scan`)?ne:n.includes(`analysis`)?q:R}function Z({icon:e,label:t,value:n,hint:r,tone:i=`neutral`}){return(0,Y.jsx)(B,{className:`overflow-hidden`,children:(0,Y.jsxs)(L,{className:`space-y-4 p-4`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Y.jsx)(`div`,{className:`text-[10px] font-semibold uppercase tracking-[0.2em] text-muted-foreground`,children:t}),(0,Y.jsx)(`div`,{className:j(`inline-flex size-9 items-center justify-center rounded-md border border-border bg-muted text-muted-foreground`,i===`danger`&&`border-destructive/20 bg-destructive/10 text-destructive`,i===`warning`&&`border-amber-500/20 bg-amber-500/10 text-amber-300`,i===`success`&&`border-emerald-500/20 bg-emerald-500/10 text-emerald-300`,i===`accent`&&`border-primary/20 bg-primary/12 text-primary-text`),children:(0,Y.jsx)(e,{className:`size-5`})})]}),(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[(0,Y.jsx)(`div`,{className:`text-3xl font-bold tracking-tight text-foreground`,children:n}),(0,Y.jsx)(`div`,{className:`text-xs leading-5 text-muted-foreground`,children:r})]})]})})}function Q({children:e,className:t}){return(0,Y.jsx)(`section`,{className:j(`grid gap-4 xl:grid-cols-[22rem_minmax(0,1fr)_20rem]`,t),children:e})}function ce({children:e,className:t}){return(0,Y.jsx)(`div`,{className:j(`min-w-0 min-h-0`,t),children:e})}function $({children:e,className:t,span:n=!1}){return(0,Y.jsx)(`div`,{className:j(`min-w-0 min-h-0`,n&&`xl:col-span-2`,t),children:e})}function le({scans:e}){let{scanId:t}=l(),n=u(),[o,s]=(0,J.useState)(``),f=(0,J.useDeferredValue)(o),p=(0,J.useMemo)(()=>{let t=new Map;for(let n of e){let e=t.get(n.target)??[];e.push(n),t.set(n.target,e)}return[...t.entries()].map(([e,t])=>{let n=[...t].sort((e,t)=>t.startedAt.localeCompare(e.startedAt));return{target:e,scans:n,latestScan:n[0],activeRunCount:n.filter(e=>e.status===`running`).length,totalFindings:n.reduce((e,t)=>e+t.summary.totalFindings,0)}}).sort((e,t)=>t.latestScan.startedAt.localeCompare(e.latestScan.startedAt))},[e]),m=(0,J.useMemo)(()=>{let e=f.trim().toLowerCase();return e?p.filter(t=>[t.target,...t.scans.flatMap(e=>[e.depth,e.runtime,e.mode,e.status,e.id])].join(` `).toLowerCase().includes(e)):p},[f,p]),h=(0,J.useMemo)(()=>e.find(e=>e.id===t)??m[0]?.latestScan??null,[m,t,e]),g=h?.id??null,_=(0,J.useMemo)(()=>h?p.find(e=>e.target===h.target)??null:null,[p,h]);(0,J.useEffect)(()=>{!t&&g&&n(`/runs/${g}`,{replace:!0})},[n,t,g]);let v=c({queryKey:[`scan-events`,g],queryFn:()=>r(g),enabled:!!g}),y=c({queryKey:[`scan-findings`,g],queryFn:()=>i(g),enabled:!!g});return(0,Y.jsx)(`div`,{className:`space-y-6`,children:(0,Y.jsxs)(Q,{className:`xl:grid-cols-[22rem_minmax(0,1fr)]`,children:[(0,Y.jsx)(ce,{children:(0,Y.jsx)(ae,{title:`${p.length} targets`,description:`Search by target, runtime, mode, depth, status, or run id.`,searchValue:o,onSearchChange:s,searchPlaceholder:`Filter targets and runs`,children:m.length===0?(0,Y.jsx)(N,{className:`py-8`,children:`No targets match the current filter.`}):m.map(e=>(0,Y.jsx)(d,{to:`/runs/${e.latestScan.id}`,children:({isActive:t})=>(0,Y.jsx)(X,{selected:t,title:e.target,description:`${e.scans.length} runs · latest ${e.latestScan.runtime} · ${e.latestScan.mode}`,meta:a(e.latestScan.startedAt),badges:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(b,{value:e.latestScan.status}),e.activeRunCount>0?(0,Y.jsxs)(V,{variant:`accent`,children:[e.activeRunCount,` active`]}):null,(0,Y.jsxs)(V,{children:[e.totalFindings,` findings`]})]})})},e.target))})}),g?v.isLoading||y.isLoading?(0,Y.jsx)($,{span:!0,children:(0,Y.jsx)(te,{label:`Scan detail`})}):v.error?(0,Y.jsx)($,{span:!0,children:(0,Y.jsx)(H,{error:v.error})}):y.error?(0,Y.jsx)($,{span:!0,children:(0,Y.jsx)(H,{error:y.error})}):v.data&&y.data?(0,Y.jsx)(ue,{events:v.data,findings:y.data,targetRuns:_?.scans??[]}):(0,Y.jsx)($,{span:!0,children:(0,Y.jsx)(z,{title:`Scan unavailable`,body:`The selected run could not be loaded from the local database.`})}):(0,Y.jsx)($,{span:!0,children:(0,Y.jsx)(z,{title:`No scan selected`,body:`Choose a run from the run history to inspect details.`})})]})})}function ue({events:e,findings:t,targetRuns:n}){let r=e.scan,i=u(),{openPanel:o,clearPanel:c}=F(),l=(0,J.useMemo)(()=>n.filter(e=>e.id!==r.id),[r.id,n]),f=(0,J.useMemo)(()=>n.filter(e=>e.status===`running`).length,[n]),p=(0,J.useMemo)(()=>de(e.events),[e.events]),m=(0,J.useMemo)(()=>(0,Y.jsxs)(`div`,{className:`space-y-4 p-6`,children:[(0,Y.jsx)(k,{eyebrow:`Target`,title:`Target dossier`,description:`Shared context for the selected run across the full target history.`,children:(0,Y.jsxs)(P,{children:[(0,Y.jsx)(A,{label:`Target`,value:r.target}),(0,Y.jsx)(A,{label:`Runs on target`,value:String(n.length)}),(0,Y.jsx)(A,{label:`Running now`,value:String(f)}),(0,Y.jsx)(A,{label:`Scan id`,value:r.id,mono:!0}),(0,Y.jsx)(A,{label:`Started`,value:a(r.startedAt)}),(0,Y.jsx)(A,{label:`Completed`,value:r.completedAt?a(r.completedAt):`In progress`}),(0,Y.jsx)(A,{label:`Mode`,value:`${r.mode} / ${r.depth}`}),(0,Y.jsx)(A,{label:`Runtime`,value:r.runtime})]})}),(0,Y.jsxs)(B,{className:`overflow-hidden`,children:[(0,Y.jsx)(G,{children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(U,{children:`Target history`}),(0,Y.jsx)(M,{className:`mt-2`,children:`Recent passes`}),(0,Y.jsx)(I,{children:`Open another run on the same target without leaving the current dossier.`})]})}),(0,Y.jsx)(L,{className:`px-0 pb-0`,children:l.length===0?(0,Y.jsx)(`div`,{className:`px-6 pb-6`,children:(0,Y.jsx)(N,{children:`No other runs for this target yet.`})}):(0,Y.jsx)(P,{children:l.slice(0,5).map(e=>(0,Y.jsx)(`button`,{type:`button`,onClick:()=>i(`/runs/${e.id}`),className:`w-full text-left`,children:(0,Y.jsx)(X,{title:a(e.startedAt),description:`${e.runtime} · ${e.mode} · ${e.depth}`,meta:e.id.slice(0,8),badges:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(b,{value:e.status}),(0,Y.jsx)(V,{children:e.summary.totalFindings})]})})},e.id))})})]})]}),[f,i,l,r.completedAt,r.depth,r.id,r.mode,r.runtime,r.startedAt,r.target,n.length]);(0,J.useEffect)(()=>(c(),()=>c()),[c,r.id]);let g=(0,J.useCallback)(()=>{o({title:`${r.target} target dossier`,description:`Shared context for the selected run across the full target history.`,content:m})},[o,m,r.target]);return(0,Y.jsx)($,{span:!0,className:`space-y-4`,children:(0,Y.jsxs)(k,{eyebrow:`Run dossier`,title:r.target,description:`Started ${a(r.startedAt)} · ${r.runtime} runtime · ${r.mode} mode · ${n.length} total runs on this target`,actions:(0,Y.jsx)(ee,{variant:`outline`,size:`sm`,onClick:g,children:`Open target dossier`}),children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Y.jsx)(b,{value:r.status}),(0,Y.jsx)(V,{children:r.depth}),(0,Y.jsx)(V,{children:r.runtime}),(0,Y.jsx)(V,{children:r.mode})]}),p?(0,Y.jsx)(B,{className:`border-destructive/25 bg-destructive/5`,children:(0,Y.jsx)(L,{className:`space-y-3 p-4`,children:(0,Y.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Y.jsx)(h,{className:`mt-0.5 size-5 text-destructive`}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:`Execution incident`}),(0,Y.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:p.headline}),(0,Y.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-2 text-xs text-muted-foreground`,children:[(0,Y.jsx)(V,{variant:`outline`,children:p.stage}),p.actor?(0,Y.jsx)(V,{variant:`outline`,children:p.actor}):null,(0,Y.jsx)(`span`,{children:a(p.timestamp)})]})]})]})})}):null,(0,Y.jsxs)(`section`,{className:`grid gap-4 lg:grid-cols-2 2xl:grid-cols-4`,children:[(0,Y.jsx)(Z,{icon:R,label:`Findings`,value:r.summary.totalFindings,hint:`Grouped and raw findings`,tone:`accent`}),(0,Y.jsx)(Z,{icon:_,label:`Critical`,value:r.summary.critical,hint:`Critical-severity findings`,tone:`danger`}),(0,Y.jsx)(Z,{icon:h,label:`High`,value:r.summary.high,hint:`High-severity findings`,tone:`warning`}),(0,Y.jsx)(Z,{icon:q,label:`Duration`,value:s(r.durationMs),hint:`Elapsed runtime`,tone:`success`})]}),(0,Y.jsxs)(B,{className:`overflow-hidden`,children:[(0,Y.jsx)(G,{children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(U,{children:`Run output`}),(0,Y.jsx)(M,{className:`mt-2`,children:`Finding families in this run`}),(0,Y.jsx)(I,{children:`Deduplicated finding families produced by the selected run.`})]})}),(0,Y.jsx)(L,{children:t.groups.length===0?(0,Y.jsx)(N,{children:`No finding families recorded for this run.`}):(0,Y.jsxs)(D,{children:[(0,Y.jsx)(v,{children:(0,Y.jsxs)(w,{className:`hover:bg-transparent`,children:[(0,Y.jsx)(x,{children:`Finding`}),(0,Y.jsx)(x,{children:`Category`}),(0,Y.jsx)(x,{children:`Count`}),(0,Y.jsx)(x,{className:`w-[12rem]`,children:`Posture`})]})}),(0,Y.jsx)(C,{children:t.groups.map(e=>(0,Y.jsxs)(w,{children:[(0,Y.jsx)(T,{className:`font-medium text-foreground`,children:e.latest.title}),(0,Y.jsx)(T,{className:`text-muted-foreground`,children:e.latest.category}),(0,Y.jsx)(T,{className:`text-muted-foreground`,children:e.count}),(0,Y.jsx)(T,{children:(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Y.jsx)(O,{severity:e.latest.severity}),(0,Y.jsx)(y,{value:e.workflow.phase}),e.workflow.reviewGate===`none`?null:(0,Y.jsx)(S,{value:e.workflow.reviewGate}),(0,Y.jsx)(b,{value:e.latest.triageStatus}),(0,Y.jsx)(E,{value:e.workflow.consensus})]})})]},e.fingerprint))})]})})]}),(0,Y.jsxs)(B,{className:`overflow-hidden`,children:[(0,Y.jsx)(G,{children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(U,{children:`Target provenance`}),(0,Y.jsx)(M,{className:`mt-2`,children:`Other runs on this target`}),(0,Y.jsx)(I,{children:`Use neighboring runs to understand whether this run is the first hit, a regression, or another pass over the same surface.`})]})}),(0,Y.jsx)(L,{children:n.length<=1?(0,Y.jsx)(N,{children:`No adjacent runs recorded for this target yet.`}):(0,Y.jsxs)(D,{children:[(0,Y.jsx)(v,{children:(0,Y.jsxs)(w,{className:`hover:bg-transparent`,children:[(0,Y.jsx)(x,{children:`Started`}),(0,Y.jsx)(x,{children:`Mode`}),(0,Y.jsx)(x,{children:`Runtime`}),(0,Y.jsx)(x,{children:`Findings`}),(0,Y.jsx)(x,{className:`w-[10rem]`,children:`Status`})]})}),(0,Y.jsx)(C,{children:n.slice(0,6).map(e=>(0,Y.jsxs)(w,{children:[(0,Y.jsx)(T,{className:`font-medium`,children:(0,Y.jsx)(d,{to:`/runs/${e.id}`,className:`text-foreground hover:text-primary-text`,children:a(e.startedAt)})}),(0,Y.jsxs)(T,{className:`text-muted-foreground`,children:[e.mode,` · `,e.depth]}),(0,Y.jsx)(T,{className:`text-muted-foreground`,children:e.runtime}),(0,Y.jsx)(T,{className:`text-muted-foreground`,children:e.summary.totalFindings}),(0,Y.jsx)(T,{children:(0,Y.jsx)(b,{value:e.status})})]},e.id))})]})})]}),(0,Y.jsx)(oe,{events:e.events})]})})}function de(e){let t=e=>{let t=e.payload??{},n=typeof t.summary==`string`&&t.summary.trim()?t.summary.trim():e.eventType;return/max turns|did not emit required tool_call/i.test(n)},n=[...e].reverse().find(e=>[`agent_error`,`scan_error`,`worker_failed`].includes(e.eventType)||(e.eventType===`stage_complete`||e.eventType===`agent_complete`)&&t(e));if(!n)return null;let r=n.payload??{},i=typeof r.error==`string`&&r.error.trim()?r.error.trim():typeof r.summary==`string`&&r.summary.trim()?r.summary.trim():`${n.stage} ${n.eventType}`.replaceAll(`_`,` `);return{stage:n.stage,actor:n.agentRole??null,headline:i,timestamp:n.timestamp}}export{le as ScansPage};
@@ -1 +0,0 @@
1
- import{_ as e}from"./dist-CmX-h7a4.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
@@ -1 +0,0 @@
1
- import{_ as e}from"./dist-CmX-h7a4.js";var t=e(`siren`,[[`path`,{d:`M7 18v-6a5 5 0 1 1 10 0v6`,key:`pcx96s`}],[`path`,{d:`M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z`,key:`1b4s83`}],[`path`,{d:`M21 12h1`,key:`jtio3y`}],[`path`,{d:`M18.5 4.5 18 5`,key:`g5sp9y`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`M12 2v1`,key:`11qlp1`}],[`path`,{d:`m4.929 4.929.707.707`,key:`1i51kw`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}]]);export{t};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./jsx-runtime-C7oxC63R.js";import{C as n,p as r}from"./operations-app-ER0gg7GN.js";var i=t();function a(e){return e.replaceAll(`_`,` `)}function o({severity:e}){let t=e.toLowerCase();return(0,i.jsx)(r,{variant:t===`critical`||t===`high`?`danger`:t===`medium`?`warning`:t===`low`?`info`:`neutral`,children:e})}function s({value:e}){let t=e.toLowerCase();return(0,i.jsx)(r,{variant:t===`accepted`||t===`complete`||t===`completed`?`success`:t===`suppressed`?`warning`:t===`running`||t===`claiming`?`accent`:t===`failed`||t===`critical`||t===`error`?`danger`:t===`sleeping`?`warning`:`neutral`,children:e})}function c({value:e}){return(0,i.jsx)(r,{variant:e===`done`?`success`:e===`cancelled`||e===`blocked`?`danger`:e===`human_review`?`warning`:e===`agent_review`||e===`in_progress`?`accent`:`neutral`,children:a(e)})}function l({value:e}){return(0,i.jsx)(r,{variant:e===`done`?`success`:e===`cancelled`||e===`blocked`?`danger`:e===`in_progress`?`accent`:`neutral`,children:a(e)})}function u({value:e}){return e===`none`?(0,i.jsx)(r,{variant:`neutral`,children:`no review gate`}):(0,i.jsx)(r,{variant:e===`human_review`?`warning`:`accent`,children:a(e)})}function d({value:e}){return(0,i.jsx)(r,{variant:e===`verified`?`success`:e===`false-positive`?`danger`:e===`disputed`?`warning`:`neutral`,children:e.replaceAll(`-`,` `)})}function f({value:e}){return(0,i.jsxs)(r,{variant:e===`strong`?`success`:e===`medium`?`warning`:`neutral`,children:[e,` signal`]})}e();function p({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,i.jsx)(`table`,{"data-slot":`table`,className:n(`w-full caption-bottom text-sm`,e),...t})})}function m({className:e,...t}){return(0,i.jsx)(`thead`,{"data-slot":`table-header`,className:n(`[&_tr]:border-b`,e),...t})}function h({className:e,...t}){return(0,i.jsx)(`tbody`,{"data-slot":`table-body`,className:n(`[&_tr:last-child]:border-0`,e),...t})}function g({className:e,...t}){return(0,i.jsx)(`tr`,{"data-slot":`table-row`,className:n(`border-b transition-colors hover:bg-primary/5 has-aria-expanded:bg-primary/5 data-[state=selected]:bg-primary/8`,e),...t})}function _({className:e,...t}){return(0,i.jsx)(`th`,{"data-slot":`table-head`,className:n(`h-12 px-3 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0`,e),...t})}function v({className:e,...t}){return(0,i.jsx)(`td`,{"data-slot":`table-cell`,className:n(`p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,e),...t})}export{m as a,l as c,f as d,s as f,_ as i,u as l,h as n,g as o,c as p,v as r,d as s,p as t,o as u};
@@ -1 +0,0 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-C7oxC63R.js";import{i as r}from"./format-LNQSSpn6.js";import{_ as i,a,c as o,f as s,h as c,i as l,l as u,m as d,r as f,s as p}from"./dist-CmX-h7a4.js";import{C as m,w as h}from"./operations-app-ER0gg7GN.js";var g=i(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),_=e(t(),1),v=n();function y(e){let t=e+`CollectionProvider`,[n,r]=s(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=_.useRef(null),a=_.useRef(new Map).current;return(0,v.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let c=e+`CollectionSlot`,l=p(c),u=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(c,n),o=d(t,i.collectionRef);return(0,v.jsx)(l,{ref:o,children:r})});u.displayName=c;let f=e+`CollectionItemSlot`,m=`data-radix-collection-item`,h=p(f),g=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),s=d(t,o),c=a(f,n);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,v.jsx)(h,{[m]:``,ref:s,children:r})});g.displayName=f;function y(t){let n=a(e+`CollectionConsumer`,t);return _.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:u,ItemSlot:g},y,r]}var b=`rovingFocusGroup.onEntryFocus`,x={bubbles:!1,cancelable:!0},S=`RovingFocusGroup`,[C,w,T]=y(S),[E,D]=s(S,[T]),[O,k]=E(S),A=_.forwardRef((e,t)=>(0,v.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(j,{...e,ref:t})})}));A.displayName=S;var j=_.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...y}=e,C=_.useRef(null),T=d(t,C),E=r(u),[D,k]=o({prop:f,defaultProp:p??null,onChange:m,caller:S}),[A,j]=_.useState(!1),M=l(h),N=w(n),P=_.useRef(!1),[F,I]=_.useState(0);return _.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(b,M),()=>e.removeEventListener(b,M)},[M]),(0,v.jsx)(O,{scope:n,orientation:i,dir:E,loop:s,currentTabStopId:D,onItemFocus:_.useCallback(e=>k(e),[k]),onItemShiftTab:_.useCallback(()=>j(!0),[]),onFocusableItemAdd:_.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>I(e=>e-1),[]),children:(0,v.jsx)(a.div,{tabIndex:A||F===0?-1:0,"data-orientation":i,...y,ref:T,style:{outline:`none`,...e.style},onMouseDown:c(e.onMouseDown,()=>{P.current=!0}),onFocus:c(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(b,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);L([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),g)}}P.current=!1}),onBlur:c(e.onBlur,()=>j(!1))})})}),M=`RovingFocusGroupItem`,N=_.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...l}=e,d=u(),f=o||d,p=k(M,n),m=p.currentTabStopId===f,h=w(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:b}=p;return _.useEffect(()=>{if(r)return g(),()=>y()},[r,g,y]),(0,v.jsx)(C.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:(0,v.jsx)(a.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:c(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:c(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:c(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=I(e,p.orientation,p.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?R(n,r+1):n.slice(r+1)}setTimeout(()=>L(n))}}),children:typeof s==`function`?s({isCurrentTabStop:m,hasTabStop:b!=null}):s})})});N.displayName=M;var P={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function F(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function I(e,t,n){let r=F(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return P[r]}function L(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function R(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ee=A,te=N,z=`Tabs`,[B,ne]=s(z,[D]),V=D(),[H,U]=B(z),W=_.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:s,defaultValue:c,orientation:l=`horizontal`,dir:d,activationMode:f=`automatic`,...p}=e,m=r(d),[h,g]=o({prop:i,onChange:s,defaultProp:c??``,caller:z});return(0,v.jsx)(H,{scope:n,baseId:u(),value:h,onValueChange:g,orientation:l,dir:m,activationMode:f,children:(0,v.jsx)(a.div,{dir:m,"data-orientation":l,...p,ref:t})})});W.displayName=z;var G=`TabsList`,K=_.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=U(G,n),s=V(n);return(0,v.jsx)(ee,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,v.jsx)(a.div,{role:`tablist`,"aria-orientation":o.orientation,...i,ref:t})})});K.displayName=G;var q=`TabsTrigger`,J=_.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=U(q,n),l=V(n),u=Z(s.baseId,r),d=Q(s.baseId,r),f=r===s.value;return(0,v.jsx)(te,{asChild:!0,...l,focusable:!i,active:f,children:(0,v.jsx)(a.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:u,...o,ref:t,onMouseDown:c(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?s.onValueChange(r):e.preventDefault()}),onKeyDown:c(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(r)}),onFocus:c(e.onFocus,()=>{let e=s.activationMode!==`manual`;!f&&!i&&e&&s.onValueChange(r)})})})});J.displayName=q;var Y=`TabsContent`,X=_.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=e,c=U(Y,n),l=Z(c.baseId,r),u=Q(c.baseId,r),d=r===c.value,p=_.useRef(d);return _.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,v.jsx)(f,{present:i||d,children:({present:n})=>(0,v.jsx)(a.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!n,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});X.displayName=Y;function Z(e,t){return`${e}-trigger-${t}`}function Q(e,t){return`${e}-content-${t}`}var re=W,$=K,ie=J,ae=X;function oe({className:e,orientation:t=`horizontal`,...n}){return(0,v.jsx)(re,{"data-slot":`tabs`,"data-orientation":t,className:m(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var se=h(`group/tabs-list inline-flex w-fit items-center justify-center rounded-md border border-border bg-muted/40 p-1 text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col group-data-vertical/tabs:rounded-lg data-[variant=line]:rounded-none data-[variant=line]:border-0 data-[variant=line]:bg-transparent data-[variant=line]:p-0`,{variants:{variant:{default:``,line:`gap-1`}},defaultVariants:{variant:`default`}});function ce({className:e,variant:t=`default`,...n}){return(0,v.jsx)($,{"data-slot":`tabs-list`,"data-variant":t,className:m(se({variant:t}),e),...n})}function le({className:e,...t}){return(0,v.jsx)(ie,{"data-slot":`tabs-trigger`,className:m(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-2 rounded-md border border-transparent px-3 py-1 text-sm font-medium whitespace-nowrap text-foreground/70 transition-[background-color,border-color,color] group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:rounded-md group-data-vertical/tabs:px-3 group-data-vertical/tabs:py-1.5 hover:text-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:rounded-none group-data-[variant=line]/tabs-list:px-2 group-data-[variant=line]/tabs-list:py-2 group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:border-border data-active:bg-background data-active:text-foreground dark:data-active:bg-card`,`after:absolute after:bg-primary after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,e),...t})}function ue({className:e,...t}){return(0,v.jsx)(ae,{"data-slot":`tabs-content`,className:m(`flex-1 text-sm outline-none`,e),...t})}export{g as a,le as i,ue as n,ce as r,oe as t};
@@ -1,21 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <meta name="color-scheme" content="light dark" />
7
- <title>0.security</title>
8
- <script type="module" crossorigin src="/assets/desktop-BT7RkC4q.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-C7oxC63R.js">
10
- <link rel="modulepreload" crossorigin href="/assets/client-DRYsuOGl.js">
11
- <link rel="modulepreload" crossorigin href="/assets/dist-CmX-h7a4.js">
12
- <link rel="modulepreload" crossorigin href="/assets/chevron-down-BeDJ-Vka.js">
13
- <link rel="modulepreload" crossorigin href="/assets/circle-alert-BEnMBMT-.js">
14
- <link rel="modulepreload" crossorigin href="/assets/copy-Bi5vzoF9.js">
15
- <link rel="modulepreload" crossorigin href="/assets/dist-DAwYQmf_.js">
16
- <link rel="modulepreload" crossorigin href="/assets/play-Dwo-9xt6.js">
17
- <link rel="modulepreload" crossorigin href="/assets/search-CiooTLck.js">
18
- <link rel="stylesheet" crossorigin href="/assets/desktop-OaBI0E0e.css">
19
- </head>
20
- <body><div id="root"></div></body>
21
- </html>