rigscope 0.0.0-stage → 0.1.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 (224) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +13 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/export-marker.json +6 -0
  5. package/.next/images-manifest.json +68 -0
  6. package/.next/next-minimal-server.js.nft.json +1 -0
  7. package/.next/next-server.js.nft.json +1 -0
  8. package/.next/package.json +1 -0
  9. package/.next/prerender-manifest.json +297 -0
  10. package/.next/react-loadable-manifest.json +1 -0
  11. package/.next/required-server-files.json +369 -0
  12. package/.next/routes-manifest.json +114 -0
  13. package/.next/server/app/_global-error/page.js +31 -0
  14. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  15. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  16. package/.next/server/app/_global-error.html +1 -0
  17. package/.next/server/app/_global-error.meta +35 -0
  18. package/.next/server/app/_global-error.rsc +18 -0
  19. package/.next/server/app/_global-error.segments/_full.segment.rsc +18 -0
  20. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +24 -0
  21. package/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -0
  22. package/.next/server/app/_not-found/page.js +1 -0
  23. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  24. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  25. package/.next/server/app/_not-found.html +1 -0
  26. package/.next/server/app/_not-found.meta +35 -0
  27. package/.next/server/app/_not-found.rsc +24 -0
  28. package/.next/server/app/_not-found.segments/_full.segment.rsc +24 -0
  29. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +30 -0
  30. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
  31. package/.next/server/app/administration/page.js +1 -0
  32. package/.next/server/app/administration/page.js.nft.json +1 -0
  33. package/.next/server/app/administration/page_client-reference-manifest.js +1 -0
  34. package/.next/server/app/administration.html +1 -0
  35. package/.next/server/app/administration.meta +34 -0
  36. package/.next/server/app/administration.rsc +29 -0
  37. package/.next/server/app/administration.segments/_full.segment.rsc +29 -0
  38. package/.next/server/app/administration.segments/_tree.segment.rsc +4 -0
  39. package/.next/server/app/administration.segments/administration/__PAGE__.segment.rsc +35 -0
  40. package/.next/server/app/alerts/page.js +1 -0
  41. package/.next/server/app/alerts/page.js.nft.json +1 -0
  42. package/.next/server/app/alerts/page_client-reference-manifest.js +1 -0
  43. package/.next/server/app/alerts.html +1 -0
  44. package/.next/server/app/alerts.meta +34 -0
  45. package/.next/server/app/alerts.rsc +28 -0
  46. package/.next/server/app/alerts.segments/_full.segment.rsc +28 -0
  47. package/.next/server/app/alerts.segments/_tree.segment.rsc +4 -0
  48. package/.next/server/app/alerts.segments/alerts/__PAGE__.segment.rsc +34 -0
  49. package/.next/server/app/connections/page.js +1 -0
  50. package/.next/server/app/connections/page.js.nft.json +1 -0
  51. package/.next/server/app/connections/page_client-reference-manifest.js +1 -0
  52. package/.next/server/app/connections.html +1 -0
  53. package/.next/server/app/connections.meta +34 -0
  54. package/.next/server/app/connections.rsc +29 -0
  55. package/.next/server/app/connections.segments/_full.segment.rsc +29 -0
  56. package/.next/server/app/connections.segments/_tree.segment.rsc +4 -0
  57. package/.next/server/app/connections.segments/connections/__PAGE__.segment.rsc +35 -0
  58. package/.next/server/app/history/page.js +2 -0
  59. package/.next/server/app/history/page.js.nft.json +1 -0
  60. package/.next/server/app/history/page_client-reference-manifest.js +1 -0
  61. package/.next/server/app/history.html +1 -0
  62. package/.next/server/app/history.meta +34 -0
  63. package/.next/server/app/history.rsc +33 -0
  64. package/.next/server/app/history.segments/_full.segment.rsc +33 -0
  65. package/.next/server/app/history.segments/_tree.segment.rsc +4 -0
  66. package/.next/server/app/history.segments/history/__PAGE__.segment.rsc +37 -0
  67. package/.next/server/app/icon.svg/route.js +1 -0
  68. package/.next/server/app/icon.svg/route.js.nft.json +1 -0
  69. package/.next/server/app/icon.svg.body +1 -0
  70. package/.next/server/app/icon.svg.meta +1 -0
  71. package/.next/server/app/index.html +1 -0
  72. package/.next/server/app/index.meta +29 -0
  73. package/.next/server/app/index.rsc +26 -0
  74. package/.next/server/app/index.segments/__PAGE__.segment.rsc +31 -0
  75. package/.next/server/app/index.segments/_full.segment.rsc +26 -0
  76. package/.next/server/app/index.segments/_tree.segment.rsc +3 -0
  77. package/.next/server/app/login/page.js +1 -0
  78. package/.next/server/app/login/page.js.nft.json +1 -0
  79. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  80. package/.next/server/app/login.html +1 -0
  81. package/.next/server/app/login.meta +34 -0
  82. package/.next/server/app/login.rsc +26 -0
  83. package/.next/server/app/login.segments/_full.segment.rsc +26 -0
  84. package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
  85. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +32 -0
  86. package/.next/server/app/machines/[machineId]/page.js +1 -0
  87. package/.next/server/app/machines/[machineId]/page.js.nft.json +1 -0
  88. package/.next/server/app/machines/[machineId]/page_client-reference-manifest.js +1 -0
  89. package/.next/server/app/page.js +1 -0
  90. package/.next/server/app/page.js.nft.json +1 -0
  91. package/.next/server/app/page_client-reference-manifest.js +1 -0
  92. package/.next/server/app/processes/page.js +2 -0
  93. package/.next/server/app/processes/page.js.nft.json +1 -0
  94. package/.next/server/app/processes/page_client-reference-manifest.js +1 -0
  95. package/.next/server/app/processes.html +1 -0
  96. package/.next/server/app/processes.meta +34 -0
  97. package/.next/server/app/processes.rsc +30 -0
  98. package/.next/server/app/processes.segments/_full.segment.rsc +30 -0
  99. package/.next/server/app/processes.segments/_tree.segment.rsc +4 -0
  100. package/.next/server/app/processes.segments/processes/__PAGE__.segment.rsc +36 -0
  101. package/.next/server/app-paths-manifest.json +13 -0
  102. package/.next/server/chunks/161.js +1 -0
  103. package/.next/server/chunks/168.js +1 -0
  104. package/.next/server/chunks/266.js +68 -0
  105. package/.next/server/chunks/430.js +116 -0
  106. package/.next/server/chunks/721.js +1 -0
  107. package/.next/server/chunks/751.js +1 -0
  108. package/.next/server/chunks/877.js +1 -0
  109. package/.next/server/chunks/894.js +2 -0
  110. package/.next/server/functions-config-manifest.json +4 -0
  111. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  112. package/.next/server/middleware-build-manifest.js +1 -0
  113. package/.next/server/middleware-manifest.json +6 -0
  114. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  115. package/.next/server/next-font-manifest.js +1 -0
  116. package/.next/server/next-font-manifest.json +1 -0
  117. package/.next/server/pages/404.html +1 -0
  118. package/.next/server/pages/500.html +1 -0
  119. package/.next/server/pages-manifest.json +4 -0
  120. package/.next/server/prefetch-hints.json +123 -0
  121. package/.next/server/preview-props.json +5 -0
  122. package/.next/server/server-reference-manifest.js +1 -0
  123. package/.next/server/server-reference-manifest.json +1 -0
  124. package/.next/server/webpack-runtime.js +1 -0
  125. package/.next/static/NE6PGEiJxUnKRceuzUWPc/_buildManifest.js +1 -0
  126. package/.next/static/NE6PGEiJxUnKRceuzUWPc/_ssgManifest.js +1 -0
  127. package/.next/static/chunks/103-c47318242b24e9ac.js +1 -0
  128. package/.next/static/chunks/157-0d36ebf66af048ac.js +1 -0
  129. package/.next/static/chunks/227-417939c480f50747.js +1 -0
  130. package/.next/static/chunks/408-dc6158e0bb450ef6.js +1 -0
  131. package/.next/static/chunks/4bd1b696-c7408084347438ae.js +1 -0
  132. package/.next/static/chunks/794-ceeb732a1a81bc27.js +52 -0
  133. package/.next/static/chunks/939-2600d7c8e583d5ef.js +1 -0
  134. package/.next/static/chunks/app/_global-error/page-aba28f88d5781771.js +1 -0
  135. package/.next/static/chunks/app/_not-found/page-a2a510233e4836e2.js +1 -0
  136. package/.next/static/chunks/app/administration/page-4b16b19bb6a39c36.js +1 -0
  137. package/.next/static/chunks/app/alerts/page-fe0e877778c60af8.js +1 -0
  138. package/.next/static/chunks/app/connections/page-99cd54d6929b3f1f.js +1 -0
  139. package/.next/static/chunks/app/history/page-1475454737279ee0.js +3 -0
  140. package/.next/static/chunks/app/layout-4feff677c4071745.js +1 -0
  141. package/.next/static/chunks/app/login/page-c57e12dbe5146737.js +1 -0
  142. package/.next/static/chunks/app/machines/[machineId]/page-916ee73de5eb067d.js +1 -0
  143. package/.next/static/chunks/app/page-1ae9fc94c897785b.js +1 -0
  144. package/.next/static/chunks/app/processes/page-e471ed23a1d5632f.js +3 -0
  145. package/.next/static/chunks/framework-ea4f97ca039bd777.js +1 -0
  146. package/.next/static/chunks/main-a458d32948147b84.js +5 -0
  147. package/.next/static/chunks/main-app-f92328c8950d2e53.js +1 -0
  148. package/.next/static/chunks/next/dist/client/components/builtin/app-error-aba28f88d5781771.js +1 -0
  149. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-aba28f88d5781771.js +1 -0
  150. package/.next/static/chunks/next/dist/client/components/builtin/global-error-43cbaa3aa1576eb4.js +1 -0
  151. package/.next/static/chunks/next/dist/client/components/builtin/not-found-aba28f88d5781771.js +1 -0
  152. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-aba28f88d5781771.js +1 -0
  153. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  154. package/.next/static/chunks/webpack-9ca43f4ce1bb8938.js +1 -0
  155. package/.next/static/css/e45c0c7ef5ba0336.css +1 -0
  156. package/ARCHITECTURE.md +279 -0
  157. package/CHANGELOG.md +37 -0
  158. package/DESIGN.md +299 -0
  159. package/LICENSE +21 -0
  160. package/README.md +74 -2
  161. package/SECURITY.md +12 -0
  162. package/THIRD_PARTY_NOTICES.md +8847 -0
  163. package/bin/rigscope.cjs +6 -0
  164. package/dist/cli.cjs +9075 -0
  165. package/dist/collector.cjs +5679 -0
  166. package/dist/hub.cjs +8364 -0
  167. package/dist/ops.cjs +4976 -0
  168. package/dist/system.cjs +4333 -0
  169. package/docs/bottlenecks.md +62 -0
  170. package/docs/configuration.md +85 -0
  171. package/docs/development.md +46 -0
  172. package/docs/exports.md +39 -0
  173. package/docs/installation.md +306 -0
  174. package/docs/monitoring.md +112 -0
  175. package/docs/operations.md +550 -0
  176. package/docs/releasing.md +154 -0
  177. package/docs/scale-acceptance.json +412 -0
  178. package/docs/scale-validation.json +1898 -0
  179. package/docs/scale-validation.md +294 -0
  180. package/docs/stress-2026-11-04/180301-probe-m100-u1-s1-20000ms.json +412 -0
  181. package/docs/stress-2026-11-04/180335-probe-m200-u1-s1-20000ms.json +412 -0
  182. package/docs/stress-2026-11-04/180409-probe-m400-u1-s1-20000ms.json +412 -0
  183. package/docs/stress-2026-11-04/180443-probe-m800-u1-s1-20000ms.json +412 -0
  184. package/docs/stress-2026-11-04/180518-probe-m600-u1-s1-20000ms.json +412 -0
  185. package/docs/stress-2026-11-04/180553-probe-m500-u1-s1-20000ms.json +412 -0
  186. package/docs/stress-2026-11-04/180628-probe-m550-u1-s1-20000ms.json +412 -0
  187. package/docs/stress-2026-11-04/180716-probe-m800-u1-s0-20000ms.json +415 -0
  188. package/docs/stress-2026-11-04/180751-probe-m1600-u1-s0-20000ms.json +415 -0
  189. package/docs/stress-2026-11-04/180828-probe-m3200-u1-s0-20000ms.json +416 -0
  190. package/docs/stress-2026-11-04/180941-probe-m2400-u1-s0-20000ms.json +416 -0
  191. package/docs/stress-2026-11-04/181031-probe-m2000-u1-s0-20000ms.json +416 -0
  192. package/docs/stress-2026-11-04/181114-probe-m1800-u1-s0-20000ms.json +416 -0
  193. package/docs/stress-2026-11-04/181203-probe-m100-u64-s64-20000ms.json +418 -0
  194. package/docs/stress-2026-11-04/181304-probe-m200-u64-s64-20000ms.json +418 -0
  195. package/docs/stress-2026-11-04/181405-probe-m400-u64-s64-20000ms.json +418 -0
  196. package/docs/stress-2026-11-04/181507-probe-m500-u64-s64-20000ms.json +418 -0
  197. package/docs/stress-2026-11-04/181609-probe-m450-u64-s64-20000ms.json +418 -0
  198. package/docs/stress-2026-11-04/181845-probe-m2-u2-s2-3000ms.json +419 -0
  199. package/docs/stress-2026-11-04/181931-probe-m500-u64-s64-30000ms.json +420 -0
  200. package/docs/stress-2026-11-04/182108-probe-m1800-u1-s0-120000ms.json +418 -0
  201. package/docs/stress-2026-11-04/182354-probe-m1200-u1-s0-120000ms.json +418 -0
  202. package/docs/stress-2026-11-04/182625-probe-m900-u1-s0-120000ms.json +418 -0
  203. package/docs/stress-2026-11-04/182847-probe-m1050-u1-s0-120000ms.json +418 -0
  204. package/docs/stress-2026-11-04/183112-probe-m1125-u1-s0-120000ms.json +418 -0
  205. package/docs/stress-2026-11-04/193608-probe-m500-u64-s64-120000ms.json +420 -0
  206. package/docs/stress-2026-11-04/193909-probe-m529-u1-s1-15000ms.json +420 -0
  207. package/docs/stress-2026-11-04/193940-probe-m530-u1-s1-15000ms.json +420 -0
  208. package/docs/stress-2026-11-04/194011-probe-m100-u1-s65-10000ms.json +421 -0
  209. package/docs/stress-2026-11-04/README.md +205 -0
  210. package/docs/stress-2026-11-04/index.jsonl +29 -0
  211. package/docs/stress-2026-11-04/manifest.json +13 -0
  212. package/docs/stress-2026-11-04/results.html +22 -0
  213. package/docs/system-installation.md +195 -0
  214. package/next.config.js +38 -0
  215. package/package.json +117 -4
  216. package/packaging/README.md +5 -0
  217. package/packaging/collector.env.example +24 -0
  218. package/packaging/hub.env.example +31 -0
  219. package/packaging/system/90-rigscope-rapl.rules +7 -0
  220. package/packaging/system/README.md +5 -0
  221. package/packaging/system/rigscope-collector.service.example +53 -0
  222. package/packaging/system/rigscope-hub.service.example +50 -0
  223. package/packaging/system/rigscope-rapl.sysusers +5 -0
  224. package/packaging/system/rigscope.sysusers +7 -0
@@ -0,0 +1,4 @@
1
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
2
+ 2:[["children",{"s":"__PAGE__","h":160}]]
3
+ 1:[["children",{"s":"alerts","h":96,"c":"$Q2"}]]
4
+ 0:{"b":"NE6PGEiJxUnKRceuzUWPc","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
@@ -0,0 +1,34 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:"static/chunks/939-2600d7c8e583d5ef.js"
3
+ 3:"static/chunks/app/layout-4feff677c4071745.js"
4
+ 4:I[2737,["939","$2","177","$3"],"ThemeProvider"]
5
+ 5:I[9939,["939","$2","177","$3"],"LiveProvider"]
6
+ 6:I[7121,[],""]
7
+ 7:I[4581,[],""]
8
+ e:"static/chunks/157-0d36ebf66af048ac.js"
9
+ f:"static/chunks/103-c47318242b24e9ac.js"
10
+ 10:"static/chunks/app/alerts/page-fe0e877778c60af8.js"
11
+ 11:I[1461,["157","$e","939","$2","103","$f","484","$10"],"AlertsView"]
12
+ 12:I[484,[],"OutletBoundary"]
13
+ 13:"$Sreact.suspense"
14
+ 16:"ViewportBoundary"
15
+ 17:I[484,[],"$16"]
16
+ 18:"MetadataBoundary"
17
+ 19:I[484,[],"$18"]
18
+ 1a:I[6869,[],"IconMark"]
19
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
20
+ 9:X
21
+ c:X
22
+ c:C
23
+ d:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$L11",null,{}],null,["$","$L12",null,{"children":["$","$13",null,{"name":"Next.MetadataOutlet","children":"$@14"}]}]]}],"p":"$@15","v":null,"s":"$9"}}]]
24
+ a:[["children",{"s":"alerts","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}]}]]}],"p":"$@b","v":"$c","s":"$9"},"c":"$Qd"}]]
25
+ 0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e45c0c7ef5ba0336.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"p":"$@8","v":null,"s":"$9"},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[null,["$","$L17",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L19",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$13",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Alerts — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1a","3",{}]]}]}],null]}],null]}],"p":"$@1b","v":null,"s":"$9"}},"a":"$@1c","u":"$@1d","b":"NE6PGEiJxUnKRceuzUWPc"}
26
+ 14:null
27
+ 9:300
28
+ 1d:true
29
+ 9:C
30
+ 1c:0
31
+ b:"$undefined"
32
+ 8:"$undefined"
33
+ 1b:"$undefined"
34
+ 15:"$undefined"
@@ -0,0 +1 @@
1
+ (()=>{var a={};a.id=572,a.ids=[572],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8806:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},10913:(a,b,c)=>{Promise.resolve().then(c.bind(c,37147))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24065:(a,b,c)=>{Promise.resolve().then(c.bind(c,71793))},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32404:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g,metadata:()=>f});var d=c(5735),e=c(37147);let f={title:"Connections"};function g(){return(0,d.jsx)(e.ConnectionsView,{})}},33873:a=>{"use strict";a.exports=require("path")},37147:(a,b,c)=>{"use strict";c.d(b,{ConnectionsView:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call ConnectionsView() from the server but ConnectionsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/triet/Project/rigscope/src/components/resources/connections-panels.tsx","ConnectionsView")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71793:(a,b,c)=>{"use strict";c.d(b,{ConnectionsView:()=>z});var d=c(48249),e=c(2116),f=c.n(e),g=c(90606),h=c(96970),i=c(8806),j=c(82437),k=c(22091),l=c(22338),m=c(81232),n=c(75006),o=c(50280),p=c(4155),q=c(93224),r=c(58910),s=c(29356),t=c(99837);function u(a){if(null===a)return"—";let b=new Date(a);return Number.isFinite(b.getTime())?b.toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"}):a}function v({capability:a}){var b;return(0,d.jsxs)("li",{className:"rounded-md border border-border bg-card-strong/30 px-2 py-1.5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-foreground",children:a.label}),(0,d.jsx)("span",{className:`tnum rounded-full px-1.5 py-0.5 text-xs ${"supported"===(b=a.status)?"bg-ok-soft text-ok":"unsupported"===b?"bg-warn-soft text-warn":"border border-border text-muted-foreground"}`,children:a.status})]}),a.reason?(0,d.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:a.reason}):null]})}function w({view:a,now:b}){return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,d.jsxs)("span",{className:"tnum inline-flex items-center gap-1.5 text-sm",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:`inline-block h-2 w-2 shrink-0 rounded-full ${a.connected?"bg-ok":"bg-crit"}`}),a.connected?"Connected":"Disconnected"]}),(0,d.jsxs)("span",{className:"tnum text-xs text-muted-foreground",children:["Interval ",null===a.cadenceMs?"unknown":(0,q.$)(a.cadenceMs)]}),(0,d.jsxs)("span",{className:"tnum text-xs text-muted-foreground",children:["Updated ",(0,q.nV)((0,q.A4)(a.lastReceivedAt,b))]}),"stale"===a.freshness?(0,d.jsx)(o.vw,{text:"stale",title:`No update for over ${(0,q.$)(a.thresholdMs)}`}):"unknown"===a.freshness?(0,d.jsx)(o.vw,{text:"no sample",title:"No receipt timestamp is available yet"}):null]})}function x({view:a}){if(null===a.delivery)return(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Delivery status unavailable."});let b=a.delivery;return(0,d.jsxs)("dl",{className:"grid gap-x-6 gap-y-2 sm:grid-cols-2",children:[(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Backlog records"}),(0,d.jsx)("dd",{className:"tnum text-xs text-foreground",children:b.pendingRecords})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Backlog bytes"}),(0,d.jsx)("dd",{className:"tnum text-xs text-foreground",children:(0,q.z3)(b.pendingBytes)})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"In-flight records"}),(0,d.jsx)("dd",{className:"tnum text-xs text-foreground",children:b.inFlightRecords})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Oldest pending"}),(0,d.jsx)("dd",{className:"tnum text-right text-xs text-foreground",children:u(b.oldestPendingCapturedAt)})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Last acknowledgment"}),(0,d.jsx)("dd",{className:"tnum text-right text-xs text-foreground",children:null===b.lastAckAt?"No acknowledgment yet":u(b.lastAckAt)})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Dropped / gap records"}),(0,d.jsx)("dd",{className:"tnum text-xs text-foreground",children:b.droppedRecords})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Replaying"}),(0,d.jsx)("dd",{className:"tnum text-xs text-foreground",children:b.replaying?"Yes":"No"})]}),(0,d.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:"Status captured"}),(0,d.jsx)("dd",{className:"tnum text-right text-xs text-foreground",children:u(a.deliveryCapturedAt)})]})]})}function y({view:a,now:b}){return(0,d.jsx)(l.Z,{title:a.name,action:(0,d.jsx)(f(),{href:`/machines/${encodeURIComponent(a.machineId)}`,className:"text-xs text-accent hover:underline",children:"Open machine"}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,d.jsx)(w,{view:a,now:b}),(0,d.jsxs)("section",{"aria-label":`${a.name} delivery`,children:[(0,d.jsxs)("h3",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[(0,d.jsx)(g.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Delivery"]}),(0,d.jsx)("div",{className:"mt-2",children:(0,d.jsx)(x,{view:a})})]}),(0,d.jsxs)("section",{"aria-label":`${a.name} collection failures`,className:"border-t border-border pt-4",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-muted-foreground",children:"Collection failures"}),null===a.delivery?(0,d.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Failure status unavailable."}):0===a.failures.length?(0,d.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"None"}):(0,d.jsx)("ul",{className:"mt-2 flex flex-col gap-1.5",children:a.failures.map((a,b)=>(0,d.jsxs)("li",{className:"text-xs",children:[(0,d.jsx)("span",{className:"text-foreground",children:a.metric}),a.resourceId?(0,d.jsxs)("span",{className:"tnum font-mono text-xs text-muted-foreground",children:[" \xb7 ",a.resourceId]}):null,(0,d.jsxs)("span",{className:"text-muted-foreground",children:[" — ",a.reason]})]},`${a.metric}\0${a.resourceId??""}\0${a.reason}\0${b}`))})]}),(0,d.jsxs)("section",{"aria-label":`${a.name} capabilities`,className:"border-t border-border pt-4",children:[(0,d.jsxs)("h3",{className:"flex items-center gap-1.5 text-xs font-medium text-muted-foreground",children:[(0,d.jsx)(h.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Capabilities"]}),null===a.capabilities?(0,d.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Capabilities unavailable."}):(0,d.jsx)("ul",{className:"mt-2 grid gap-1.5 sm:grid-cols-2 xl:grid-cols-3",children:a.capabilities.map(a=>(0,d.jsx)(v,{capability:a},a.key))})]})]})})}function z(){let{phase:a,machines:b,session:c}=(0,r.M)(),e=(0,p.x)(),g=(0,s.c)(),h=(0,t.cy)(b,g);return(0,d.jsx)(k.G,{title:"Connections",headerRight:(0,d.jsxs)(d.Fragment,{children:["signed-in"===c.kind&&c.user.admin?(0,d.jsxs)(f(),{href:"/administration#collectors",className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-1.5 text-xs hover:bg-card-strong",children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Add machine"]}):null,(0,d.jsx)(m.$E,{}),(0,d.jsx)(n.B,{})]}),children:e||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p.E,{}),("live"===a||"reconnecting"===a||"disconnected"===a)&&0===b.length?(0,d.jsx)(l.Z,{title:"No collectors",className:"mt-8",children:(0,d.jsx)(l.p,{icon:j.A,note:"No collectors are connected to this hub in your authorized scope."})}):null,0===h.length&&"connecting"===a?(0,d.jsx)(l.Z,{title:"Waiting for collector status",className:"mt-8",children:(0,d.jsx)(l.p,{icon:j.A,note:"Waiting for the first snapshot…"})}):null,h.length>0?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h2",{className:"mb-4 text-sm font-medium tracking-tight",children:"Collectors"}),(0,d.jsx)("div",{className:"grid gap-5 xl:grid-cols-[repeat(auto-fit,minmax(30rem,1fr))]",children:h.map(a=>(0,d.jsx)(y,{view:a,now:g},a.machineId))})]}):null]})})}},86171:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),o={children:["",{children:["connections",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,32404))),"/home/triet/Project/rigscope/src/app/connections/page.tsx"]}]},{"global-error":[n,"next/dist/client/components/builtin/global-error.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,p=(0,e.H)({tree:o,page:"/connections/page",pathname:"/connections",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},96970:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(65366).A)("ShieldCheck",[["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"}]])}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[266,430,721,161,751,877],()=>b(b.s=86171));module.exports=c})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../node_modules/next/dist/client/lib/console.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/fast-jwt/index.js","../../../../node_modules/next/dist/compiled/fast-jwt/package.json","../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../node_modules/next/dist/compiled/ws/index.js","../../../../node_modules/next/dist/compiled/ws/package.json","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/picocolors.js","../../../../node_modules/next/dist/lib/scheduler.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../node_modules/next/dist/server/node-environment.js","../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../node_modules/next/dist/server/require-hook.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/server/route-kind.js","../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/161.js","../../chunks/266.js","../../chunks/430.js","../../chunks/721.js","../../chunks/751.js","../../chunks/877.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -0,0 +1 @@
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/connections/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8250":{"*":{"id":"12761","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/alerts/alerts-view.tsx":{"id":1461,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/resources/connections-panels.tsx":{"id":5773,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","227","static/chunks/227-417939c480f50747.js","572","static/chunks/app/connections/page-99cd54d6929b3f1f.js"],"async":false},"/home/triet/Project/rigscope/src/components/admin/administration-view.tsx":{"id":7044,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/history/history-view.tsx":{"id":8250,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-navigation.tsx":{"id":1721,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/shell/sidebar.tsx":{"id":2701,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/theme-toggle.tsx":{"id":2394,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/login-view.tsx":{"id":5000,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx":{"id":7281,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","227","static/chunks/227-417939c480f50747.js","974","static/chunks/app/page-1ae9fc94c897785b.js"],"async":false},"/home/triet/Project/rigscope/src/components/processes/processes-view.tsx":{"id":7339,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-view.tsx":{"id":8887,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/triet/Project/rigscope/src/":[],"/home/triet/Project/rigscope/src/app/layout":[{"inlined":false,"path":"static/css/e45c0c7ef5ba0336.css"}],"/home/triet/Project/rigscope/src/app/page":[],"/home/triet/Project/rigscope/src/app/connections/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"29953","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"28565","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"46568","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"50369","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"65223","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"52604","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"37147","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"2902","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"22993","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"89893","name":"*","chunks":[],"async":false}},"8250":{"*":{"id":"79173","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"73132","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"89604","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}};
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/e45c0c7ef5ba0336.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js"/><script src="/_next/static/chunks/4bd1b696-c7408084347438ae.js" async=""></script><script src="/_next/static/chunks/794-ceeb732a1a81bc27.js" async=""></script><script src="/_next/static/chunks/main-app-f92328c8950d2e53.js" async=""></script><script src="/_next/static/chunks/939-2600d7c8e583d5ef.js" async=""></script><script src="/_next/static/chunks/app/layout-4feff677c4071745.js" async=""></script><script src="/_next/static/chunks/157-0d36ebf66af048ac.js" async=""></script><script src="/_next/static/chunks/103-c47318242b24e9ac.js" async=""></script><script src="/_next/static/chunks/227-417939c480f50747.js" async=""></script><script src="/_next/static/chunks/app/connections/page-99cd54d6929b3f1f.js" async=""></script><title>Connections — Rigscope</title><meta name="description" content="Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."/><link rel="icon" href="/icon.svg?3b3fa3229e2d0d7a" type="image/svg+xml" sizes="any"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,true,true)</script><div class="relative flex h-dvh overflow-hidden bg-background text-foreground"><a href="#main-content" class="sr-only z-50 rounded-md bg-card px-4 py-2 text-foreground focus:not-sr-only focus:absolute focus:start-2 focus:top-2 focus:outline-2 focus:outline-accent">Skip to content</a><aside class="flex w-14 shrink-0 flex-col border-r border-border bg-card md:w-56"><a aria-label="Rigscope" class="flex h-14 shrink-0 items-center gap-2.5 border-b border-border px-3 md:px-5" href="/"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" class="h-5 w-5 shrink-0 text-accent"><path d="M8 3H4v18h4M16 3h4v18h-4"></path><path d="m8 15 4-6 4 3M8 8h.01M16 17h.01"></path></svg><span class="hidden text-sm font-semibold tracking-tight text-foreground md:inline">Rigscope</span></a><nav aria-label="Primary" class="flex min-h-0 flex-1 flex-col overflow-y-auto p-2 md:p-3"><a title="Fleet" class="flex min-h-9 min-w-0 items-center gap-3 rounded-md px-2 text-sm transition-colors md:px-3 text-muted-foreground hover:bg-card-strong hover:text-foreground" href="/"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server h-4 w-4 shrink-0" aria-hidden="true"><rect width="20" height="8" x="2" y="2" rx="2" ry="2"></rect><rect width="20" height="8" x="2" y="14" rx="2" ry="2"></rect><line x1="6" x2="6.01" y1="6" y2="6"></line><line x1="6" x2="6.01" y1="18" y2="18"></line></svg><span class="hidden md:inline">Fleet</span></a><div class="flex flex-col gap-1 border-t border-border pt-3"><a title="Alerts" class="flex min-h-9 min-w-0 items-center gap-3 rounded-md px-2 text-sm transition-colors md:px-3 text-muted-foreground hover:bg-card-strong hover:text-foreground" href="/alerts"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell h-4 w-4 shrink-0" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg><span class="hidden md:inline">Alerts</span></a><a aria-current="page" title="Connections" class="flex min-h-9 min-w-0 items-center gap-3 rounded-md px-2 text-sm transition-colors md:px-3 bg-selected font-medium text-foreground" href="/connections"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-cable h-4 w-4 shrink-0" aria-hidden="true"><path d="M17 21v-2a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1"></path><path d="M19 15V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V9"></path><path d="M21 21v-2h-4"></path><path d="M3 5h4V3"></path><path d="M7 5a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1V3"></path></svg><span class="hidden md:inline">Connections</span></a></div></nav><footer class="hidden shrink-0 border-t border-border p-3 md:block"><div class="flex items-center gap-2 px-3 text-xs"><span class="inline-block h-2 w-2 shrink-0 rounded-full bg-muted-foreground/50" aria-hidden="true"></span><span class="truncate" role="status" aria-label="Live feed status: Checking session…">Checking session…</span></div></footer></aside><div class="flex min-w-0 flex-1 flex-col"><header class="flex min-h-14 shrink-0 flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-2 md:px-6"><h1 class="truncate text-lg font-semibold tracking-tight">Connections</h1><div class="flex items-center gap-3"><div class="flex min-w-0 items-center gap-3"><div role="status" aria-label="Live feed status: Checking session…" class="flex min-w-0 items-center gap-2"><span class="inline-block h-2 w-2 shrink-0 rounded-full bg-muted-foreground/50" aria-hidden="true"></span><span class="tnum truncate text-xs text-muted-foreground">Checking session…</span></div></div><button type="button" aria-label="Toggle theme" class="flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-selected hover:text-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun h-4.5 w-4.5 dark:hidden"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon hidden h-4.5 w-4.5 dark:block"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg></button></div></header><main id="main-content" tabindex="-1" class="relative min-h-0 min-w-0 flex-1 overflow-x-hidden overscroll-contain p-4 outline-offset-[-2px] md:p-6 overflow-y-auto"><div class="mx-auto flex w-full min-w-0 max-w-[1500px] flex-col"><section class="flex min-w-0 flex-col rounded-xl border border-border bg-card p-5 mx-auto my-12 max-w-md"><div class="flex shrink-0 items-center justify-between gap-4"><h2 class="text-sm font-medium tracking-tight">Checking session</h2></div><div class="mt-4 flex min-h-0 flex-1 flex-col"><div class="flex flex-1 flex-col items-center justify-center gap-2.5 rounded-lg border border-dashed border-border px-6 py-10 text-center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user-round h-5 w-5 text-muted-foreground" aria-hidden="true"><circle cx="12" cy="8" r="5"></circle><path d="M20 21a8 8 0 0 0-16 0"></path></svg><p class="text-sm text-muted-foreground">Checking your session…</p></div></div></section></div></main></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"static/chunks/939-2600d7c8e583d5ef.js\"\n3:\"static/chunks/app/layout-4feff677c4071745.js\"\n4:I[2737,[\"939\",\"$2\",\"177\",\"$3\"],\"ThemeProvider\"]\n5:I[9939,[\"939\",\"$2\",\"177\",\"$3\"],\"LiveProvider\"]\n6:I[7121,[],\"\"]\n7:I[4581,[],\"\"]\nb:\"static/chunks/157-0d36ebf66af048ac.js\"\nc:\"static/chunks/103-c47318242b24e9ac.js\"\nd:\"static/chunks/227-417939c480f50747.js\"\ne:\"static/chunks/app/connections/page-99cd54d6929b3f1f.js\"\nf:I[5773,[\"157\",\"$b\",\"939\",\"$2\",\"103\",\"$c\",\"227\",\"$d\",\"572\",\"$e\"],\"ConnectionsView\"]\n10:I[484,[],\"OutletBoundary\"]\n11:\"$Sreact.suspense\"\n13:\"ViewportBoundary\"\n14:I[484,[],\"$13\"]\n16:\"MetadataBoundary\"\n17:I[484,[],\"$16\"]\n19:I[7123,[],\"default\",1]\n:HL[\"/_next/static/css/e45c0c7ef5ba0336.css\",\"style\"]\n9:X\na:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lf\",null,{}],null,[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@12\"}]}]]}],\"p\":false,\"v\":null}}]]\n8:[[\"children\",{\"s\":\"connections\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$9\"},\"c\":\"$Qa\"}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"connections\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e45c0c7ef5ba0336.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":true,\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q8\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"$L17\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L18\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$19\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"NE6PGEiJxUnKRceuzUWPc\"}\n"])</script><script>self.__next_f.push([1,"9:C\n15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"1a:I[6869,[],\"IconMark\"]\n12:null\n18:[[\"$\",\"title\",\"0\",{\"children\":\"Connections — Rigscope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?3b3fa3229e2d0d7a\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L1a\",\"3\",{}]]\n"])</script></body></html>
@@ -0,0 +1,34 @@
1
+ {
2
+ "headers": {
3
+ "x-nextjs-stale-time": "300",
4
+ "x-nextjs-prerender": "1",
5
+ "x-next-cache-tags": "_N_T_/layout,_N_T_/connections/layout,_N_T_/connections/page,_N_T_/connections"
6
+ },
7
+ "segmentPaths": [
8
+ "/_tree",
9
+ "/_full",
10
+ "/connections/__PAGE__"
11
+ ],
12
+ "prefetchHints": {
13
+ "hints": 64,
14
+ "slots": {
15
+ "children": {
16
+ "hints": 96,
17
+ "slots": {
18
+ "children": {
19
+ "hints": 160,
20
+ "slots": null
21
+ }
22
+ }
23
+ }
24
+ }
25
+ },
26
+ "routeCache": {
27
+ "key": "/route-cache/APP_PAGE/789897e8f8d51cce927e671d0f2d8165cdd4e586b66c22f414a5d70e39a89497/$/connections",
28
+ "owner": {
29
+ "kind": "APP_PAGE",
30
+ "sourceRoute": "/connections/page"
31
+ },
32
+ "isFallback": false
33
+ }
34
+ }
@@ -0,0 +1,29 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:"static/chunks/939-2600d7c8e583d5ef.js"
3
+ 3:"static/chunks/app/layout-4feff677c4071745.js"
4
+ 4:I[2737,["939","$2","177","$3"],"ThemeProvider"]
5
+ 5:I[9939,["939","$2","177","$3"],"LiveProvider"]
6
+ 6:I[7121,[],""]
7
+ 7:I[4581,[],""]
8
+ b:"static/chunks/157-0d36ebf66af048ac.js"
9
+ c:"static/chunks/103-c47318242b24e9ac.js"
10
+ d:"static/chunks/227-417939c480f50747.js"
11
+ e:"static/chunks/app/connections/page-99cd54d6929b3f1f.js"
12
+ f:I[5773,["157","$b","939","$2","103","$c","227","$d","572","$e"],"ConnectionsView"]
13
+ 10:I[484,[],"OutletBoundary"]
14
+ 11:"$Sreact.suspense"
15
+ 13:"ViewportBoundary"
16
+ 14:I[484,[],"$13"]
17
+ 16:"MetadataBoundary"
18
+ 17:I[484,[],"$16"]
19
+ 19:I[7123,[],"default",1]
20
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
21
+ 9:X
22
+ a:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$Lf",null,{}],null,["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}],"p":false,"v":null}}]]
23
+ 8:[["children",{"s":"connections","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$9"},"c":"$Qa"}]]
24
+ 0:{"P":null,"c":["","connections"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e45c0c7ef5ba0336.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Q8"},"h":{"r":["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","$L17",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$11",null,{"name":"Next.Metadata","children":"$L18"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$19",[]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"NE6PGEiJxUnKRceuzUWPc"}
25
+ 9:C
26
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
27
+ 1a:I[6869,[],"IconMark"]
28
+ 12:null
29
+ 18:[["$","title","0",{"children":"Connections — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1a","3",{}]]
@@ -0,0 +1,29 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:"static/chunks/939-2600d7c8e583d5ef.js"
3
+ 3:"static/chunks/app/layout-4feff677c4071745.js"
4
+ 4:I[2737,["939","$2","177","$3"],"ThemeProvider"]
5
+ 5:I[9939,["939","$2","177","$3"],"LiveProvider"]
6
+ 6:I[7121,[],""]
7
+ 7:I[4581,[],""]
8
+ b:"static/chunks/157-0d36ebf66af048ac.js"
9
+ c:"static/chunks/103-c47318242b24e9ac.js"
10
+ d:"static/chunks/227-417939c480f50747.js"
11
+ e:"static/chunks/app/connections/page-99cd54d6929b3f1f.js"
12
+ f:I[5773,["157","$b","939","$2","103","$c","227","$d","572","$e"],"ConnectionsView"]
13
+ 10:I[484,[],"OutletBoundary"]
14
+ 11:"$Sreact.suspense"
15
+ 13:"ViewportBoundary"
16
+ 14:I[484,[],"$13"]
17
+ 16:"MetadataBoundary"
18
+ 17:I[484,[],"$16"]
19
+ 19:I[7123,[],"default",1]
20
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
21
+ 9:X
22
+ a:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$Lf",null,{}],null,["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}],"p":false,"v":null}}]]
23
+ 8:[["children",{"s":"connections","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$9"},"c":"$Qa"}]]
24
+ 0:{"P":null,"c":["","connections"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e45c0c7ef5ba0336.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Q8"},"h":{"r":["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","$L17",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$11",null,{"name":"Next.Metadata","children":"$L18"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$19",[]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"NE6PGEiJxUnKRceuzUWPc"}
25
+ 9:C
26
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
27
+ 1a:I[6869,[],"IconMark"]
28
+ 12:null
29
+ 18:[["$","title","0",{"children":"Connections — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1a","3",{}]]
@@ -0,0 +1,4 @@
1
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
2
+ 2:[["children",{"s":"__PAGE__","h":160}]]
3
+ 1:[["children",{"s":"connections","h":96,"c":"$Q2"}]]
4
+ 0:{"b":"NE6PGEiJxUnKRceuzUWPc","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
@@ -0,0 +1,35 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:"static/chunks/939-2600d7c8e583d5ef.js"
3
+ 3:"static/chunks/app/layout-4feff677c4071745.js"
4
+ 4:I[2737,["939","$2","177","$3"],"ThemeProvider"]
5
+ 5:I[9939,["939","$2","177","$3"],"LiveProvider"]
6
+ 6:I[7121,[],""]
7
+ 7:I[4581,[],""]
8
+ e:"static/chunks/157-0d36ebf66af048ac.js"
9
+ f:"static/chunks/103-c47318242b24e9ac.js"
10
+ 10:"static/chunks/227-417939c480f50747.js"
11
+ 11:"static/chunks/app/connections/page-99cd54d6929b3f1f.js"
12
+ 12:I[5773,["157","$e","939","$2","103","$f","227","$10","572","$11"],"ConnectionsView"]
13
+ 13:I[484,[],"OutletBoundary"]
14
+ 14:"$Sreact.suspense"
15
+ 17:"ViewportBoundary"
16
+ 18:I[484,[],"$17"]
17
+ 19:"MetadataBoundary"
18
+ 1a:I[484,[],"$19"]
19
+ 1b:I[6869,[],"IconMark"]
20
+ :HL["/_next/static/css/e45c0c7ef5ba0336.css","style"]
21
+ 9:X
22
+ c:X
23
+ c:C
24
+ d:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$L12",null,{}],null,["$","$L13",null,{"children":["$","$14",null,{"name":"Next.MetadataOutlet","children":"$@15"}]}]]}],"p":"$@16","v":null,"s":"$9"}}]]
25
+ a:[["children",{"s":"connections","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}]}]]}],"p":"$@b","v":"$c","s":"$9"},"c":"$Qd"}]]
26
+ 0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e45c0c7ef5ba0336.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"p":"$@8","v":null,"s":"$9"},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[null,["$","$L18",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L1a",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$14",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Connections — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1b","3",{}]]}]}],null]}],null]}],"p":"$@1c","v":null,"s":"$9"}},"a":"$@1d","u":"$@1e","b":"NE6PGEiJxUnKRceuzUWPc"}
27
+ 15:null
28
+ 9:300
29
+ 1e:true
30
+ 9:C
31
+ 1d:0
32
+ b:"$undefined"
33
+ 8:"$undefined"
34
+ 1c:"$undefined"
35
+ 16:"$undefined"
@@ -0,0 +1,2 @@
1
+ (()=>{var a={};a.id=429,a.ids=[429],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12761:(a,b,c)=>{"use strict";c.d(b,{HistoryView:()=>aB});var d=c(48249),e=c(2116),f=c.n(e),g=c(67484),h=c(93484),i=c(51872),j=c(12421),k=c(49187),l=c(31742),m=c(22091),n=c(22338),o=c(81232),p=c(75006),q=c(4155),r=c(58910),s=c(52464),t=c(11449),u=c(25982);let v=u.U8,w=/^core:(\d+)$/;function x(a){let b=w.exec(a);if(null===b)return null;let c=Number(b[1]);return!Number.isSafeInteger(c)||c<0||c>=u.U8?null:c}function y(a){return[...new Set(a)].sort((a,b)=>(x(a)??0)-(x(b)??0))}function z(a,b=[]){var c;let d=a?.metrics?.payload.cpu,e=new Set(!Number.isFinite(c=Math.max(a?.inventory?.cpu.logicalCores??0,d?.status==="ok"?d.perCore.length:0))?[]:Array.from({length:Math.min(u.U8,Math.max(0,Math.floor(c)))},(a,b)=>`core:${b}`));for(let a of b)"cpu.core"===a.metric&&null!==x(a.resourceId)&&e.add(a.resourceId);return y([...e])}function A(a,b){let c=new Set(b);if(null===a)return y(b).slice(0,v);let d=[];for(let b of a)if(c.has(b)&&null!==x(b)&&(d.push(b),d.length>=v))break;return y(d)}function B(a){let b=x(a);return null===b?a:`Core ${b}`}var C=c(66338),D=c(73742),E=c(64500),F=c(65366);let G=(0,F.A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),H=(0,F.A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var I=c(94054);let J=Object.freeze([]),K=new Set(t.H9.map(a=>a.metric)),L=a=>"boolean"==typeof a?a:null,M=a=>Array.isArray(a)&&a.every(a=>"string"==typeof a)?a.slice(0,1e3):null,N=a=>C.pI.some(b=>b.id===a)?a:null,O=a=>"string"==typeof a&&(""===a||a.split(",").every(a=>K.has(a)))?a:null,P=/^core:\d+$/,Q=a=>Array.isArray(a)&&a.every(a=>"string"==typeof a&&P.test(a))?[...new Set(a)].slice(0,u.U8):null;function R(a,b){return(0,I.u)(`history.hidden.${b}.${a}`,J,M)}function S(a){return(0,I.u)(`history.cores.${a}`,null,Q)}let T=a=>"bytes"===a||"percent"===a?a:null;function U(a,b){return(0,I.u)(`history.units.${b}.${a}`,"bytes",T)}let V="peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]";function W({label:a,action:b}){return(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:a}),(0,d.jsx)("span",{"aria-hidden":!0,className:"h-px min-w-0 flex-1 bg-border"}),b]})}let X="inline-flex min-h-8 items-center gap-1.5 rounded-md border border-transparent px-2.5 text-xs transition-colors",Y=`${X} ${V} bg-selected text-foreground`,Z=`${X} ${V} bg-card-strong text-muted-foreground hover:text-foreground`;function $(a){let{machine:b,range:c,selectedMetrics:e,catalog:f,catalogError:g,gpuCards:h,hiddenCards:i,autoRefresh:j,loading:k,manualRefreshing:m,statusText:n,onRangeChange:o,onToggleMetric:p,onSetMetrics:q,onToggleCard:r,onToggleAutoRefresh:s,onRefresh:u}=a,[v,w]=(0,I.u)("history.controlsOpen",!1,L,"session"),x=new Set(e),y=t.H9.filter(({metric:a})=>(0,t.yv)(b,a).available&&(null===f||void 0!==f[a])).map(({metric:a})=>a),F=new Set(y),J=(a,b)=>{let c=new Set(e);for(let d of a)b&&F.has(d)?c.add(d):b||c.delete(d);q([...c])},K=e.some(a=>a.startsWith("gpu.")),M=x.has("cpu.core"),[N,O]=S(b?.machineId??""),P=M?z(b):[],Q=A(N,P),R=new Set(Q);return(0,d.jsxs)("section",{"aria-labelledby":"history-query-heading","aria-busy":k,className:"mb-5 min-w-0 rounded-xl border border-border bg-card",children:[(0,d.jsx)("h2",{id:"history-query-heading",className:"sr-only",children:"History query"}),(0,d.jsxs)("div",{className:"flex flex-wrap items-end gap-x-5 gap-y-4 p-4 md:p-5",children:[(0,d.jsxs)("fieldset",{className:"flex min-w-0 flex-col gap-1.5",children:[(0,d.jsx)("legend",{className:"mb-1.5 text-xs text-muted-foreground",children:"Time range"}),(0,d.jsx)("div",{className:"inline-flex flex-wrap rounded-lg border border-border bg-background p-0.5",children:C.pI.map(a=>{let b=c===a.id;return(0,d.jsxs)("label",{className:"cursor-pointer",children:[(0,d.jsx)("input",{type:"radio",name:"history-range",value:a.id,checked:b,onChange:()=>o(a.id),className:"peer sr-only"}),(0,d.jsxs)("span",{className:`inline-flex min-h-8 items-center rounded-md px-2.5 text-xs transition-colors ${V} ${b?"bg-selected font-medium text-foreground":"text-muted-foreground hover:text-foreground"}`,children:[a.shortLabel,(0,d.jsxs)("span",{className:"sr-only",children:[" — ",a.label]})]})]},a.id)})})]}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 sm:ml-auto",children:[(0,d.jsx)("p",{className:"order-first w-full text-xs text-muted-foreground sm:order-none sm:w-auto",children:n}),(0,d.jsxs)("button",{type:"button",onClick:u,disabled:m,className:"inline-flex min-h-8 items-center gap-1.5 rounded-md border border-border bg-background px-2.5 text-xs text-foreground transition-colors hover:bg-card-strong disabled:opacity-60",children:[(0,d.jsx)(l.A,{className:`h-3.5 w-3.5 ${m?"animate-spin":""}`,"aria-hidden":!0}),"Refresh"]}),(0,d.jsxs)("button",{type:"button",onClick:s,"aria-pressed":j,className:`inline-flex min-h-8 items-center gap-1.5 rounded-md border px-2.5 text-xs transition-colors ${j?"border-accent/40 bg-selected text-foreground":"border-border bg-background text-muted-foreground hover:bg-card-strong hover:text-foreground"}`,children:[j?(0,d.jsx)(D.A,{className:"h-3.5 w-3.5","aria-hidden":!0}):(0,d.jsx)(E.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),j?"Pause":"Resume"]})]})]}),(0,d.jsxs)("div",{className:"border-t border-border px-4 py-4 md:px-5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsxs)("button",{type:"button","aria-expanded":v,"aria-controls":"history-metric-options",onClick:()=>w(!v),className:"inline-flex min-h-8 items-center gap-1.5 rounded-md text-sm font-medium",children:["Metrics ",(0,d.jsxs)("span",{className:"tnum text-xs font-normal text-muted-foreground",children:[x.size," selected"]}),(0,d.jsx)(G,{"aria-hidden":!0,className:`h-3.5 w-3.5 text-muted-foreground transition-transform ${v?"rotate-180":""}`})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:()=>J(y,!0),disabled:y.every(a=>x.has(a)),className:"inline-flex min-h-8 items-center rounded-md border border-border bg-background px-2.5 text-xs text-foreground transition-colors hover:bg-card-strong disabled:opacity-50",children:"Select all"}),(0,d.jsx)("button",{type:"button",onClick:()=>q([]),disabled:0===x.size,className:"inline-flex min-h-8 items-center rounded-md border border-border bg-background px-2.5 text-xs text-foreground transition-colors hover:bg-card-strong disabled:opacity-50",children:"Unselect all"})]})]}),(0,d.jsx)("div",{id:"history-metric-options",hidden:!v,children:(0,d.jsxs)("div",{className:"mt-4 min-w-0 md:col-span-2",children:[(0,d.jsx)("div",{className:"min-w-0",children:(0,d.jsx)("div",{className:"grid gap-x-6 gap-y-5 md:grid-cols-2 xl:grid-cols-3",children:t.P$.map(a=>(0,d.jsxs)("fieldset",{className:`min-w-0 ${"disk"===a.id?"xl:col-span-2":""}`,children:[(0,d.jsx)("legend",{className:"sr-only",children:a.label}),(0,d.jsx)(W,{label:a.label,action:(0,d.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,d.jsx)("button",{type:"button","aria-label":`Select all ${a.label} metrics`,onClick:()=>J(a.metrics,!0),disabled:a.metrics.filter(a=>F.has(a)).every(a=>x.has(a)),className:"min-h-6 rounded-sm text-xs text-muted-foreground hover:text-foreground hover:underline disabled:opacity-50",children:"All"}),(0,d.jsx)("button",{type:"button","aria-label":`Unselect all ${a.label} metrics`,onClick:()=>J(a.metrics,!1),disabled:!a.metrics.some(a=>x.has(a)),className:"min-h-6 rounded-sm text-xs text-muted-foreground hover:text-foreground hover:underline disabled:opacity-50",children:"None"})]})}),(0,d.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:a.metrics.map(a=>{var c;let e=(0,t.oB)(a);if(null===e)return null;let g=(0,t.yv)(b,a),h=null===f||void 0!==f[a],i=g.available&&h,j=x.has(a),k=(0,t.Lf)(e,0);return(0,d.jsxs)("label",{className:i?"cursor-pointer":"cursor-not-allowed",title:g.available?h?e.description:"This hub does not record this metric.":g.reason??void 0,children:[(0,d.jsx)("input",{type:"checkbox",checked:j,onChange:()=>p(a),disabled:!i&&!j,className:"peer sr-only","aria-label":e.label}),(0,d.jsxs)("span",{className:`${!i?j?`${X} ${V} bg-card-strong text-muted-foreground line-through`:`${X} text-muted-foreground opacity-50`:j?Y:Z}`,children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-sm border border-current",style:{color:k.color},children:j?(0,d.jsx)(H,{className:"h-3 w-3",strokeWidth:3}):null}),(c=e.label,({"cpu.usage":"Usage","cpu.core":"Per-core","cpu.iowait":"I/O wait","cpu.pressure":"Pressure","cpu.temperature":"Temperature","cpu.power":"Package power","memory.used":"Used bytes","memory.usage":"Usage %","swap.used":"Swap","memory.pressure.some":"Pressure (some)","memory.pressure.full":"Pressure (full)","gpu.utilization":"Utilization","gpu.memory.used":"VRAM","gpu.temperature":"Temperature","gpu.power":"Power","fs.used":"Space used","fs.usage":"Capacity %","fs.inodes.usage":"Inodes %","net.rx":"Received","net.tx":"Sent"})[a]??c)]})]},a)})}),"gpu"===a.id&&K&&h.length>0?(0,d.jsxs)("fieldset",{className:"mt-4 border-t border-border pt-3",children:[(0,d.jsx)("legend",{className:"sr-only",children:"GPU cards"}),(0,d.jsx)(W,{label:"GPU cards"}),(0,d.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:h.map((a,b)=>{let c=a.id,e=!i.has(c);return(0,d.jsxs)("label",{className:"cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:e,onChange:()=>r(c),className:"peer sr-only"}),(0,d.jsxs)("span",{className:e?Y:Z,children:[(0,d.jsx)("span",{className:"tnum text-xs text-muted-foreground",children:b+1}),a.label]})]},a.id)})})]}):null,"cpu"===a.id&&M?(0,d.jsxs)("fieldset",{className:"mt-4 border-t border-border pt-3",children:[(0,d.jsx)("legend",{className:"sr-only",children:"CPU cores"}),(0,d.jsx)(W,{label:`CPU cores \xb7 ${Q.length} / ${P.length}`,action:(0,d.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,d.jsx)("button",{type:"button",onClick:()=>O(null),disabled:Q.length===P.length,className:"min-h-6 rounded-sm text-xs text-muted-foreground hover:text-foreground disabled:opacity-50",children:"All cores"}),(0,d.jsx)("button",{type:"button",onClick:()=>O([]),disabled:0===Q.length,"aria-label":"Unselect all CPU cores",className:"min-h-6 rounded-sm text-xs text-muted-foreground hover:text-foreground disabled:opacity-50",children:"None"})]})}),0===P.length?(0,d.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:"Core count unavailable."}):(0,d.jsxs)("details",{className:"mt-2",children:[(0,d.jsxs)("summary",{className:"inline-flex min-h-8 cursor-pointer items-center gap-1 rounded-md text-xs text-muted-foreground hover:text-foreground",children:["Choose cores ",(0,d.jsx)(G,{className:"h-3.5 w-3.5","aria-hidden":!0})]}),(0,d.jsx)("div",{className:"mt-2 grid max-h-48 grid-cols-3 gap-1.5 overflow-y-auto p-1",children:P.map(a=>{let b=R.has(a);return(0,d.jsxs)("label",{className:"min-w-0 cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>{var c;return c=!b,void O(b=>{let d=A(b,P);return c?d.includes(a)?b:[...d,a]:d.filter(b=>b!==a)})},className:"peer sr-only"}),(0,d.jsxs)("span",{className:`${b?Y:Z} w-full px-1.5`,children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-sm border border-current",children:b?(0,d.jsx)(H,{className:"h-3 w-3"}):null}),B(a)]})]},a)})})]})]}):null]},a.id))})}),g?(0,d.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:g}):null]})})]})]})}var _=c(43607),aa=c(96480),ab=c(15670),ac=c(55280),ad=c(47978);let ae="grid grid-cols-[3rem_minmax(0,1fr)_2.5rem] items-center gap-2 sm:grid-cols-[3.5rem_minmax(0,1fr)_3rem_3rem]";function af({title:a,series:b,fromMs:c,toMs:e,stepMs:f,gaps:h,hiddenKeys:i,onToggleSeries:j}){let[k,l]=(0,g.useState)(!1),m=(0,g.useMemo)(()=>b.filter(a=>!i.has(a.key)),[b,i]),n=(0,ad.Au)({series:m,fromMs:c,toMs:e,stepMs:f,gaps:h}),o=(0,g.useMemo)(()=>{let a=b.map(a=>{let b=Array(10).fill("");return(function(a,b,c,d=120){let e=Array(d).fill(null),f=Math.max(1,c-b);for(let g of a){if(g.t<b||g.t>c)continue;let a=g.max??g.avg;if(null===a||!Number.isFinite(a))continue;let h=Math.min(d-1,Math.floor((g.t-b)/f*d));e[h]=Math.max(e[h]??0,Math.min(100,Math.max(0,a)))}return e})(a.points,c,e,120).forEach((a,c)=>{if(null===a)return;let d=Math.min(9,Math.floor(a/10));b[d]+=`M${c},1h1v16h-1z`}),{...a,stats:(0,aa.T6)(a.points),paths:b}});return k&&a.sort((a,b)=>(b.stats.max??-1)-(a.stats.max??-1)),a},[b,c,e,k]),p=o.filter(a=>!i.has(a.key)).reduce((a,b)=>null!==b.stats.max&&(a?.stats.max===null||null===a||b.stats.max>a.stats.max)?b:a,null),q=Math.max(1,e-c),r=(0,aa.$z)(h,c,e);return(0,d.jsxs)("figure",{className:"min-w-0 lg:col-span-full",onPointerLeave:n.clear,children:[(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium text-foreground",children:a}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-xs",children:[null!==n.timeMs?(0,d.jsxs)("span",{className:"tnum text-muted-foreground",children:[(0,C.r6)(n.timeMs)," \xb7 bucket peak"]}):p?(0,d.jsxs)("span",{className:"tnum text-muted-foreground",children:["Peak \xb7 ",p.label," ",(0,d.jsx)("span",{className:"text-foreground",children:(0,C.dd)(p.stats.max,"percent")})]}):null,(0,d.jsx)("button",{type:"button","aria-pressed":k,onClick:()=>l(!k),className:`min-h-8 rounded-md border border-border px-2 ${k?"bg-selected text-foreground":"bg-background text-muted-foreground hover:text-foreground"}`,children:"Busiest first"})]})]}),(0,d.jsxs)("div",{className:`${ae} mb-1 text-xs text-muted-foreground`,"aria-hidden":!0,children:[(0,d.jsx)("span",{children:"Core"}),(0,d.jsxs)("span",{children:[(0,d.jsx)("span",{className:"sm:hidden",children:"History"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Peak usage over time"})]}),(0,d.jsx)("span",{className:"hidden text-right sm:block",children:null!==n.timeMs?"At cursor":"Last"}),(0,d.jsxs)("span",{className:"text-right",children:[(0,d.jsx)("span",{className:"hidden sm:inline",children:"Peak"}),(0,d.jsx)("span",{className:"sm:hidden",children:null!==n.timeMs?"At cursor":"Peak"})]})]}),(0,d.jsx)("p",{id:`${n.id}-instructions`,className:"sr-only",children:"Focus a core chart and use Left and Right arrows to inspect recorded bucket peaks, Home or End to jump, and Escape to dismiss."}),(0,d.jsx)("div",{role:"region","aria-label":"Per-core history rows",tabIndex:0,className:"max-h-96 overflow-y-auto rounded-md",children:0===o.length?(0,d.jsx)("p",{className:"py-8 text-center text-xs text-muted-foreground",children:"No stored per-core readings."}):o.map(a=>{let b=!i.has(a.key),g=null===n.timeMs?null:(0,ac.bO)(a.points,n.timeMs,f,h),k=g?.max??g?.avg??null;return(0,d.jsxs)("div",{className:`${ae} min-h-7 border-b border-border/40 text-xs`,children:[(0,d.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center rounded-sm",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>j(a.key),className:"peer sr-only"}),(0,d.jsx)("span",{className:`${b?"text-foreground":"text-muted-foreground line-through"} rounded-sm peer-focus-visible:outline-2 peer-focus-visible:outline-accent`,children:a.label})]}),(0,d.jsxs)("svg",{viewBox:"0 0 120 18",preserveAspectRatio:"none",role:"img","aria-label":`${a.label}: ${null!==n.timeMs?`${(0,C.dd)(k,"percent")} at ${(0,C.r6)(n.timeMs)}`:`latest ${(0,C.dd)(a.stats.latest,"percent")}`}, peak ${(0,C.dd)(a.stats.max,"percent")}${b?"":", hidden"}`,"aria-describedby":`${n.id}-instructions`,tabIndex:b?0:void 0,onPointerMove:b?a=>{let b=a.currentTarget.getBoundingClientRect();n.inspect((0,ac.yk)(a.clientX,b.left,b.width,c,e))}:void 0,onFocus:n.onFocus,onBlur:n.clear,onKeyDown:n.onKeyDown,className:`h-5 w-full cursor-crosshair rounded-sm focus-visible:outline-2 focus-visible:outline-accent ${b?"":"opacity-20"}`,children:[(0,d.jsxs)("title",{children:[a.label," \xb7 Last ",(0,C.dd)(a.stats.latest,"percent")," \xb7 Peak ",(0,C.dd)(a.stats.max,"percent")]}),b?a.paths.map((a,b)=>a?(0,d.jsx)("path",{d:a,fill:b<5?"var(--cpu)":b<8?"var(--warn)":"var(--crit)",opacity:b<5?.15+.17*b:.65+b%5*.07},b):null):null,r.map(a=>(0,d.jsx)("rect",{x:(a.fromMs-c)/q*120,width:(a.toMs-a.fromMs)/q*120,y:0,height:18,fill:"var(--card)"},`${a.fromMs}-${a.toMs}`)),null!==n.timeMs?(0,d.jsx)("line",{"aria-hidden":!0,x1:(n.timeMs-c)/q*120,x2:(n.timeMs-c)/q*120,y1:0,y2:18,stroke:"var(--foreground)",strokeWidth:"1",vectorEffect:"non-scaling-stroke",pointerEvents:"none"}):null]}),(0,d.jsx)("span",{className:"tnum hidden text-right text-muted-foreground sm:block",children:b?(0,C.dd)(null!==n.timeMs?k:a.stats.latest,"percent"):"—"}),(0,d.jsxs)("span",{className:`tnum text-right ${b&&(a.stats.max??0)>=80?"text-crit":"text-muted-foreground"}`,children:[(0,d.jsx)("span",{className:"hidden sm:inline",children:b?(0,C.dd)(a.stats.max,"percent"):"—"}),(0,d.jsx)("span",{className:"sm:hidden",children:b?(0,C.dd)(null!==n.timeMs?k:a.stats.max,"percent"):"—"})]})]},a.key)})}),(0,d.jsxs)("div",{className:`${ae} mt-2 text-xs text-muted-foreground`,"aria-hidden":!0,children:[(0,d.jsx)("span",{}),(0,d.jsx)("div",{className:"flex justify-between gap-2 tnum",children:(0,aa.Cf)(c,e,3).map((a,b)=>(0,d.jsx)("span",{className:1===b?"hidden sm:inline":"",children:(0,C.O5)(a,q)},a))}),(0,d.jsx)("span",{className:"hidden sm:block"}),(0,d.jsx)("span",{})]}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[[{label:"0–49%",color:"var(--cpu)"},{label:"50–79%",color:"var(--warn)"},{label:"80–100%",color:"var(--crit)"}].map(a=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"h-2 w-4 rounded-sm",style:{backgroundColor:a.color}}),a.label]},a.label)),(0,d.jsx)("span",{children:"No fill \xb7 no reading"})]})]})}function ag(a,b){return`${a}\0${b}`}function ah(a,b,c,d,e){let f=(0,t.oB)(c);return null===f?[]:a.series.filter(a=>a.metric===c&&(void 0===d||a.resourceId===d)).map((a,d)=>{let g=(0,t.Lf)(f,d),h=e?.(a,f,d)??(0,t.bP)(b,c,a.resourceId);return{key:ag(a.metric,a.resourceId),label:h,metric:a.metric,resourceId:a.resourceId,color:g.color,dash:g.dash,points:a.points}})}function ai(a){let{machine:b,result:c,selectedMetrics:e,hiddenCards:f,hiddenSeries:g,onToggleSeries:h}=a,[i]=S(b.machineId),j=A(i,z(b,c.series)),k=function(a){let{machine:b,result:c,selectedMetrics:d,hiddenCards:e,coreIds:f}=a,g=new Set(d),h=[];if(["cpu.usage","cpu.core","cpu.temperature","cpu.power","cpu.iowait","cpu.pressure"].filter(a=>g.has(a)).length>0){let a=[],d=["cpu.usage","cpu.iowait","cpu.pressure"].filter(a=>g.has(a));if(d.length>0&&a.push({key:"cpu.usage",title:d.length>1?"Usage & stalls":(0,t.oB)(d[0]).label,unit:"percent",series:d.flatMap(a=>ah(c,b,a,void 0,(b,c)=>"cpu.pressure"===a?"Pressure (some)":c.shortLabel)),emptyMessage:"No stored CPU readings in this range."}),g.has("cpu.core")){let d=(0,t.oB)("cpu.core"),e=z(b,c.series),g=f??A(null,e),h=function(a,b){let c=(0,t.oB)("cpu.core");if(null===c)return[];let d=new Map(a.series.filter(a=>"cpu.core"===a.metric).map(a=>[a.resourceId,a]));return b.flatMap((a,b)=>{let e=d.get(a),f=(0,t.Lf)(c,b);return[{key:ag("cpu.core",a),label:B(a),metric:"cpu.core",resourceId:a,color:f.color,dash:f.dash,points:e?.points??[]}]})}(c,g),i=e.length>g.length;a.push({key:"cpu.core",title:i?`Per-core usage \xb7 ${g.length} of ${e.length}`:"Per-core usage",unit:d.unit,series:h,emptyMessage:0===e.length?"No stored per-core readings in this range.":0===g.length?"No CPU cores are selected. Choose cores under Metrics.":"No stored per-core readings for the selected cores in this range."})}if(g.has("cpu.temperature")){let d=(0,t.oB)("cpu.temperature");a.push({key:"cpu.temperature",title:"Temperature",unit:d.unit,series:ah(c,b,"cpu.temperature"),emptyMessage:"No stored CPU temperature readings in this range."})}if(g.has("cpu.power")){let d=(0,t.oB)("cpu.power");a.push({key:"cpu.power",title:"Package power",unit:d.unit,series:ah(c,b,"cpu.power"),emptyMessage:"No stored CPU package power readings in this range."})}h.push({key:"cpu",title:"CPU",charts:a})}if(["memory.used","memory.usage","memory.pressure.some","memory.pressure.full","swap.used"].filter(a=>g.has(a)).length>0){let a=[],d=["memory.used","memory.usage"].filter(a=>g.has(a));if(d.length>0){let e=d.map(a=>({unit:(0,t.oB)(a).unit,series:ah(c,b,a,void 0,()=>"RAM")}));a.push({key:"memory.capacity",title:"RAM",...e[0],unitGroup:"memory",views:e,emptyMessage:"No stored memory readings in this range."})}g.has("swap.used")&&a.push({key:"swap.used",title:"Swap",unit:"bytes",series:ah(c,b,"swap.used"),emptyMessage:"No stored swap readings in this range."});let e=["memory.pressure.some","memory.pressure.full"].filter(a=>g.has(a));if(e.length>0){let d=(0,t.oB)(e[0]),f=e.flatMap(a=>ah(c,b,a,void 0,(b,c)=>"memory.pressure.some"===a?"Some":"memory.pressure.full"===a?"Full":c.shortLabel));a.push({key:"memory.pressure",title:"Memory pressure",unit:d.unit,series:f,emptyMessage:"No stored memory pressure in this range."})}h.push({key:"memory",title:"Memory",charts:a})}let i=["gpu.utilization","gpu.memory.used","gpu.temperature","gpu.power"].filter(a=>g.has(a));if(i.length>0){let a=(0,t.ue)(b,c.series),d=a.filter(a=>!e.has(a.id));for(let e of(0===d.length&&h.push({key:"gpu-empty",title:"GPU",charts:[{key:"gpu-empty",title:"Per-card history",unit:"percent",series:[],emptyMessage:a.length>0?"All GPU cards are hidden. Re-enable a card under Metrics to see its panels.":"No supported GPU cards or stored GPU history in this range."}]}),d)){let a=i.map(a=>{let d=(0,t.oB)(a),f=function(a,b,c,d){return ah(a,b,c,d,(a,b)=>"gpu.utilization"===c?"Utilization":"gpu.memory.used"===c?"VRAM used":b.shortLabel).map(a=>({...a}))}(c,b,a,e.id),g="gpu.memory.used"===a&&null!==e.totalBytes?`of ${(0,C.dd)(e.totalBytes,"bytes")}`:void 0;return{key:`${e.id}-${a}`,title:d.shortLabel,unit:d.unit,series:f,emptyMessage:`No stored ${d.shortLabel.toLowerCase()} readings for this card in this range.`,note:g}});h.push({key:`gpu-${e.id}`,title:`GPU ${e.index+1}${e.label?` \xb7 ${e.label}`:""}`,charts:a})}}if(["fs.used","fs.usage","fs.inodes.usage"].filter(a=>g.has(a)).length>0){let a=[],d=["fs.used","fs.usage"].filter(a=>g.has(a));if(d.length>0){let e=d.map(a=>({unit:(0,t.oB)(a).unit,series:ah(c,b,a)}));a.push({key:"fs.capacity",title:"Capacity used",...e[0],unitGroup:"filesystem",views:e,emptyMessage:"No stored filesystem usage in this range."})}if(g.has("fs.inodes.usage")){let d=(0,t.oB)("fs.inodes.usage");a.push({key:"fs.inodes.usage",title:"Inodes used",unit:d.unit,series:ah(c,b,"fs.inodes.usage"),emptyMessage:"No stored inode usage in this range."})}h.push({key:"filesystems",title:"Filesystems",charts:a})}let j=["disk.read","disk.write"].filter(a=>g.has(a));if(j.length>0){let a=j.flatMap(a=>{let d=(0,t.oB)(a);return ah(c,b,a,void 0,c=>`${(0,t.bP)(b,a,c.resourceId)} ${d.shortLabel.toLowerCase()}`)});h.push({key:"disk",title:"Disk throughput",charts:[{key:"disk",title:"Read and write",unit:"bytes_per_second",series:a,emptyMessage:"No stored disk throughput in this range."}]})}let k=["disk.read.latency","disk.write.latency"].filter(a=>g.has(a)),l=["io.pressure.some","io.pressure.full"].filter(a=>g.has(a));if(k.length>0||l.length>0||g.has("disk.utilization")){let a=[];if(k.length>0){let d=k.flatMap(a=>{let d=(0,t.oB)(a);return ah(c,b,a,void 0,c=>`${(0,t.bP)(b,a,c.resourceId)} ${d.shortLabel.toLowerCase()}`)}),e=(0,t.oB)(k[0]);a.push({key:"disk.latency",title:"Latency",unit:e.unit,series:d,emptyMessage:"No stored disk latency in this range."})}if(g.has("disk.utilization")){let d=(0,t.oB)("disk.utilization");a.push({key:"disk.utilization",title:"Utilization",unit:d.unit,series:ah(c,b,"disk.utilization"),emptyMessage:"No stored disk utilization in this range."})}if(l.length>0){let d=(0,t.oB)(l[0]),e=l.flatMap(a=>ah(c,b,a,void 0,(b,c)=>"io.pressure.some"===a?"Some":"io.pressure.full"===a?"Full":c.shortLabel));a.push({key:"io.pressure",title:"I/O pressure",unit:d.unit,series:e,emptyMessage:"No stored I/O pressure in this range."})}h.push({key:"disk-health",title:"Disk health",charts:a})}let m=["net.rx","net.tx"].filter(a=>g.has(a));if(m.length>0){let a=m.flatMap(a=>{let d=(0,t.oB)(a);return ah(c,b,a,void 0,c=>`${(0,t.bP)(b,a,c.resourceId)} ${d.shortLabel.toLowerCase()}`)});h.push({key:"network",title:"Network throughput",charts:[{key:"network",title:"Received and sent",unit:"bytes_per_second",series:a,emptyMessage:"No stored network throughput in this range."}]})}return h}({machine:b,result:c,selectedMetrics:e,hiddenCards:f,coreIds:j});return(0,d.jsx)(ad._C,{children:(0,d.jsx)("div",{className:"grid grid-cols-1 gap-5",children:k.map(e=>{let f=e.charts.find(a=>"cpu.core"===a.key&&a.series.length>4),i=f?[...e.charts.filter(a=>a!==f),f]:e.charts,j=f&&4===i.length?"grid gap-6 lg:grid-cols-2 xl:grid-cols-3":i.length>1&&!(f&&2===i.length)?"grid gap-6 lg:grid-cols-2":"flex flex-col gap-6";return(0,d.jsx)(n.Z,{title:e.title,children:(0,d.jsx)("div",{className:j,children:i.map((e,j)=>{let k=e.unitGroup,l=k?a.capacityUnits[k]:void 0,m=e.views?.find(a=>a.unit===l)??e.views?.[0]??e,n=e===f||!f&&i.length%2==1&&j===i.length-1;return"cpu.core"===e.key&&e.series.length>8?(0,d.jsx)(af,{title:e.title,series:e.series,fromMs:c.fromMs,toMs:c.toMs,gaps:c.gaps,stepMs:(0,aa.jl)(c.stepMs,c.tier,b.expectedIntervalMs),hiddenKeys:g,onToggleSeries:h},e.key):(0,d.jsx)(ab.t,{title:e.title,unit:m.unit,series:m.series,fromMs:c.fromMs,toMs:c.toMs,stepMs:(0,aa.jl)(c.stepMs,c.tier,b.expectedIntervalMs),gaps:c.gaps,hiddenKeys:g,onToggleSeries:h,emptyMessage:e.emptyMessage,note:e.note,action:k&&e.views&&e.views.length>1?(0,d.jsx)("div",{role:"group","aria-label":`${e.title} units`,className:"inline-flex rounded-md border border-border bg-background p-0.5",children:e.views.map(b=>(0,d.jsx)("button",{type:"button","aria-pressed":b.unit===m.unit,onClick:()=>a.onCapacityUnitChange(k,b.unit),className:`min-h-7 rounded px-2 text-xs transition-colors ${b.unit===m.unit?"bg-selected text-foreground":"text-muted-foreground hover:text-foreground"}`,children:"bytes"===b.unit?"Bytes":"%"},b.unit))}):void 0,maxDrawPoints:"cpu.core"===e.key?150:void 0,className:n?"lg:col-span-full":void 0},e.key)})})},e.key)})})},`${b.machineId}|${c.toMs-c.fromMs}`)}var aj=c(71335),ak=c(56013);let al={raw:"raw samples","1m":"1-minute rollups","1h":"1-hour rollups"};function am(a){return a.displayName?.trim()||a.hostname.trim()||a.machineId}function an(a,b){return`${a}\0${b}`}function ao(a){let b=new Set(a.selectedMetrics),c=new Set((0,t.ue)(a.machine,a.result.series).filter(b=>!a.hiddenCards.has(b.id)).map(a=>a.id));return a.result.series.filter(d=>!(!b.has(d.metric)||a.hiddenSeries.has(an(d.metric,d.resourceId))||"cpu.core"===d.metric&&void 0!==a.coreIds&&!a.coreIds.includes(d.resourceId)||d.metric.startsWith("gpu.")&&""!==d.resourceId&&!c.has(d.resourceId)))}function ap(a){return new Date(a).toISOString()}function aq(a){return(0,t.oB)(a)?.label??a}function ar(a){return ao(a).map(b=>({metric:b.metric,label:aq(b.metric),resourceId:b.resourceId,resourceLabel:(0,t.bP)(a.machine,b.metric,b.resourceId),unit:b.unit,unitLabel:(0,t.RL)(b.unit),stats:(0,aa.T6)(b.points),points:b.points.map(b=>{let c=Math.min(a.result.toMs,b.t+a.result.stepMs),d=null!==b.min||null!==b.max||null!==b.avg;return{t:b.t,tIso:ap(b.t),bucketStartMs:b.t,bucketStartIso:ap(b.t),bucketEndMs:c,bucketEndIso:ap(c),min:b.min,max:b.max,avg:b.avg,state:d?"recorded":"unavailable"}})}))}function as(a){return(0,aa.$z)(a.result.gaps,a.result.fromMs,a.result.toMs).map(a=>({...a,fromIso:ap(a.fromMs),toIso:ap(a.toMs)}))}function at(a){let b=new Set(a.result.series.map(a=>a.metric));return a.selectedMetrics.filter(a=>!b.has(a))}function au(a){let b=new Set(a.selectedMetrics),c=new Set(ao(a).map(a=>an(a.metric,a.resourceId)));return a.result.series.filter(a=>b.has(a.metric)&&!c.has(an(a.metric,a.resourceId))).length}function av(a,b){let c=a.result,d=["Only the visible series from the loaded History result are included; this export does not query more data."];"raw"!==c.tier&&d.push(`Values are ${al[c.tier]}, not individual raw samples.`),c.truncated&&d.push("The loaded result is partial: the hub limited or shortened this history query.");let e=as(a);e.length>0&&d.push(`${e.length} recorded data gap${1===e.length?"":"s"} included.`),b.length>0&&d.push(`Selected metrics without stored data: ${b.join(", ")}.`);let f=au(a);return f>0&&d.push(`${f} selected series hidden in this view were not exported.`),d}let aw=["record_type","metric","metric_label","resource_id","resource_label","unit","bucket_start_ms","bucket_start_iso","bucket_end_ms","bucket_end_iso","min","max","avg","value_state","gap_kind","gap_reason","gap_dropped_records"],ax="inline-flex min-h-7 items-center rounded-md border border-border bg-background px-2 text-xs text-foreground transition-colors hover:bg-card-strong disabled:cursor-not-allowed disabled:opacity-50";function ay(a){let[b,c]=(0,g.useState)(null),e=ao(a).length,f=b=>{let d=Date.now(),e={...a,exportedAt:d};try{let a,f,g,h,i,j,k,l,m=function(a,b,c=Date.now()){return(0,ak.Y8)("history",am(a.machine),c,b)}(e,b,d),n="csv"===b?function(a){let b,c,d,e,f,g,h=a.exportedAt??Date.now(),i=(b=(0,C.ly)(a.range),c=a.result,d=ao(a),e=at(a),f=as(a),g=a.selectedMetrics.map(aq).join("; "),[["Rigscope History export"],["Scope","Visible series from the loaded History result"],["Machine",am(a.machine)],["Machine ID",a.machine.machineId],["Query",g],["Range",`${b.label} (${ap(c.fromMs)} – ${ap(c.toMs)})`],["Resolution",`${al[c.tier]} \xb7 ${c.stepMs} ms buckets`],["Loaded at",ap(a.loadedAt)],["Exported at",ap(h)],["Partial",c.truncated?"true":"false"],["Gaps",String(f.length)],["Visible series",String(d.length)],["Selected without stored data",e.length>0?e.join(", "):"none"],["Note",av(a,e).join(" ")],[]]);for(let b of(i.push([...aw]),ar(a)))for(let a of b.points)i.push(["bucket",b.metric,b.label,b.resourceId,b.resourceLabel,b.unit,a.bucketStartMs,a.bucketStartIso,a.bucketEndMs,a.bucketEndIso,a.min,a.max,a.avg,a.state,"","",""]);for(let b of as(a))i.push(["gap","","","","","",b.fromMs,b.fromIso,b.toMs,b.toIso,"","","","gap",b.kind,b.reason??"",b.droppedRecords??""]);return(0,aj.kg)(i)}(e):(a=e.exportedAt??Date.now(),f=(0,C.ly)(e.range),g=e.result,h=ar(e),i=at(e),j=as(e),k=au(e),l={app:"Rigscope",kind:"history",version:1,exportedAt:ap(a),scope:{description:"Visible series from the loaded History result",machine:{id:e.machine.machineId,name:am(e.machine),hostname:e.machine.hostname,connected:e.machine.connected,lastReceivedAt:e.machine.lastReceivedAt},query:{range:{id:f.id,label:f.label,fromMs:g.fromMs,fromIso:ap(g.fromMs),toMs:g.toMs,toIso:ap(g.toMs)},selectedMetrics:[...e.selectedMetrics],visibleSeries:h.length,hiddenSeriesCount:k}},resolution:{tier:g.tier,label:al[g.tier],stepMs:g.stepMs,expectedIntervalMs:e.machine.expectedIntervalMs??null},loadedAt:ap(e.loadedAt),partial:g.truncated,gaps:j,series:h.map(a=>({metric:a.metric,label:a.label,resourceId:a.resourceId,resourceLabel:a.resourceLabel,unit:a.unit,unitLabel:a.unitLabel,summary:{points:a.stats.count,min:a.stats.min,max:a.stats.max,averageOfBucketAverages:a.stats.avg,latest:a.stats.latest,latestAt:null===a.stats.latestT?null:ap(a.stats.latestT),firstAt:null===a.stats.firstT?null:ap(a.stats.firstT),lastAt:null===a.stats.lastT?null:ap(a.stats.lastT)},points:a.points})),missingData:i.map(a=>({metric:a,label:aq(a),reason:"No stored series in the loaded result."})),notes:av(e,i)},`${JSON.stringify(l,null,2)}
2
+ `);(0,aj.PE)(m,n,"csv"===b?aj.UR:aj.uW),c(null)}catch{c("The history export could not be created.")}};return(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Export visible",(0,d.jsx)("span",{className:"sr-only",children:` (${e} series from the loaded result)`})]}),(0,d.jsx)("button",{type:"button",onClick:()=>f("csv"),"aria-label":"Download visible history as CSV",title:"Download the visible series from this loaded result as CSV",className:ax,children:"CSV"}),(0,d.jsx)("button",{type:"button",onClick:()=>f("json"),"aria-label":"Download visible history as JSON",title:"Download the visible series from this loaded result as JSON",className:ax,children:"JSON"}),null!==b?(0,d.jsxs)("span",{role:"status",className:"inline-flex items-center gap-1 text-xs text-warn",children:[(0,d.jsx)(j.A,{className:"h-3 w-3","aria-hidden":!0}),b]}):null]})}function az(a){return a.displayName?.trim()||a.hostname.trim()||a.machineId}function aA(){return(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-5 xl:grid-cols-2","aria-busy":"true",children:[(0,d.jsx)(n.Z,{title:"Loading stored history",children:(0,d.jsx)("div",{className:"h-40 animate-pulse rounded-lg bg-card-strong","aria-hidden":!0})}),(0,d.jsx)(n.Z,{title:"Preparing charts",children:(0,d.jsx)("div",{className:"h-40 animate-pulse rounded-lg bg-card-strong","aria-hidden":!0})})]})}function aB(){let a,b,c,e,{session:u,phase:v,machines:w,retryConnection:x}=(0,r.M)(),y=(0,q.x)(),{machine:B,machineId:D,requestedMachineId:E}=(0,s.JG)("history"),[F,G]=U(D,"memory"),[H,J]=U(D,"filesystem"),K={memory:F,filesystem:H},[M,P]=(0,I.u)("history.range","10m",N),[Q,T]=(0,I.u)(`history.metrics.${D}`,null,O),[V]=S(D),W=z(B),X=A(V,W),[Y,Z]=R(D,"cards"),[aa,ab]=R(D,"series"),ac=(0,g.useMemo)(()=>new Set(Y),[Y]),ad=(0,g.useMemo)(()=>new Set(aa),[aa]),[ae,af]=(0,I.u)("history.autoRefresh",!0,L,"session"),[ag,ah]=(0,g.useState)(null),[aj,ak]=(0,g.useState)(null),[al,am]=(0,g.useState)(0),an=(0,g.useMemo)(()=>void 0===B?"":(0,t.er)(B).join(","),[B?.machineId,B?.inventory,B?.metrics?.payload.gpus]),ao=Q??an,ap=""===ao?[]:ao.split(","),aq="signed-in"===u.kind&&void 0!==B&&""!==D&&""!==ao,{data:ar,error:as,loading:at,manualRefreshing:au}=(0,_.n)({machineId:D,metricsKey:ao,coreIdsKey:ap.includes("cpu.core")&&X.length!==W.length?X.join(","):void 0,range:M,enabled:aq,autoRefresh:ae,refreshNonce:al}),av=ar?.result??null,aw=void 0===B?[]:(0,t.ue)(B,av?.series??[]),ax=(0,C.ly)(M),aB=null!==as?null!==ar?`${"rate-limited"===as.kind?"Refresh paused":"Refresh failed"} \xb7 ${(0,C.ei)(ar.loadedAt)}`:"History unavailable":null!==ar?`Updated ${(0,C.ei)(ar.loadedAt)}`:at?"Loading…":"",aC=aq&&null===ar&&null===as,aD=w.length,aE="disconnected"===v;return(0,d.jsx)(m.G,{title:"History",machineId:D,machineView:"history",headerRight:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.$E,{}),(0,d.jsx)(p.B,{})]}),children:y||(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{role:"status","aria-live":"polite",className:"sr-only",children:as?.message??""}),(0,d.jsx)($,{machine:B,range:M,selectedMetrics:ap,catalog:ag,catalogError:aj,gpuCards:aw,hiddenCards:ac,autoRefresh:ae,loading:at,manualRefreshing:au,statusText:aB,onRangeChange:P,onToggleMetric:a=>{let b=new Set(ap);b.has(a)?b.delete(a):b.add(a),T([...b].sort().join(","))},onSetMetrics:a=>T([...new Set(a)].sort().join(",")),onToggleCard:a=>{Z(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),[...c]})},onToggleAutoRefresh:()=>af(a=>!a),onRefresh:()=>am(a=>a+1)}),"reconnecting"===v||"disconnected"===v?(0,d.jsxs)("div",{role:"status",className:"mb-4 flex items-start gap-2 rounded-lg border border-border bg-card px-4 py-2.5 text-xs text-muted-foreground",children:[(0,d.jsx)(j.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-warn","aria-hidden":!0}),(0,d.jsxs)("span",{children:["Live feed ","disconnected"===v?"disconnected":"reconnecting"," \xb7 stored history available"]}),"disconnected"===v?(0,d.jsxs)("button",{type:"button",onClick:x,className:"ml-auto inline-flex min-h-8 shrink-0 items-center gap-1.5 rounded-md border border-border px-2.5 text-xs text-foreground transition-colors hover:bg-card-strong",children:[(0,d.jsx)(l.A,{className:"h-3 w-3","aria-hidden":!0}),"Retry now"]}):null]}):null,void 0===B?aE?(0,d.jsxs)(n.Z,{title:"Hub disconnected",className:"mx-auto mt-3 max-w-xl",children:[(0,d.jsx)(n.p,{icon:k.A,note:"The hub is unreachable, so the authorized machine list is unavailable."}),(0,d.jsx)("div",{className:"mt-2 flex justify-center",children:(0,d.jsxs)("button",{type:"button",onClick:x,className:"inline-flex min-h-8 items-center gap-1.5 rounded-md border border-border px-3 text-xs text-foreground transition-colors hover:bg-card-strong",children:[(0,d.jsx)(l.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Check again"]})})]}):0!==aD||aE||"idle"!==v&&"connecting"!==v&&"reconnecting"!==v?0===aD?(0,d.jsx)(n.Z,{title:"No machines",className:"mx-auto mt-3 max-w-xl",children:(0,d.jsx)(n.p,{icon:i.A,note:"No machines are available in your authorized fleet."})}):(0,d.jsxs)(n.Z,{title:"Machine not found",className:"mx-auto mt-3 max-w-xl",children:[(0,d.jsx)(n.p,{icon:i.A,note:"This machine is unavailable or outside your access."}),E?(0,d.jsxs)("p",{className:"tnum mt-2 text-center text-xs text-muted-foreground",children:["Requested identifier: ",E]}):null,(0,d.jsx)("div",{className:"mt-2 flex justify-center",children:(0,d.jsx)(f(),{href:"/",className:"inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs text-foreground transition-colors hover:bg-card-strong",children:"Back to fleet"})})]}):(0,d.jsx)(n.Z,{title:"Waiting for machines",className:"mx-auto mt-3 max-w-xl",children:(0,d.jsx)(n.p,{icon:i.A,note:"Waiting for the hub to report your authorized machines…"})}):0===ap.length?(0,d.jsx)(n.Z,{title:"No metrics selected",className:"mx-auto mt-3 max-w-xl",children:(0,d.jsx)(n.p,{icon:i.A,note:""===an?"No metric families are shared with this hub.":"Choose at least one metric above to draw history."})}):null!==as&&null===ar?(b=(a=function(a){switch(a.kind){case"unauthorized":return{title:"Session ended",note:"Your session is no longer accepted, so stored history is hidden.",icon:h.A};case"denied":return{title:"History access denied",note:a.message,icon:h.A};case"missing":return{title:"Machine unavailable",note:a.message,icon:i.A};case"rate-limited":return{title:"History requests limited",note:a.message,icon:j.A};case"unavailable":return{title:"History unavailable",note:a.message,icon:k.A};case"network":return{title:"Hub unreachable",note:"The hub could not be reached for stored history.",icon:k.A};case"invalid":return{title:"Unexpected history response",note:a.message,icon:j.A}}}(as)).icon,(0,d.jsxs)(n.Z,{title:a.title,className:"mx-auto mt-3 max-w-xl",children:[(0,d.jsx)(n.p,{icon:b,note:a.note}),(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap justify-center gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>am(a=>a+1),className:"inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs text-foreground transition-colors hover:bg-card-strong",children:[(0,d.jsx)(l.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Try again"]}),"unauthorized"===as.kind?(0,d.jsx)(f(),{href:"/login",className:"inline-flex items-center rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-accent-foreground transition-colors hover:bg-accent/90",children:"Sign in"}):null]})]})):(at||aC)&&null===ar?(0,d.jsx)(aA,{}):null===ar?(0,d.jsx)(n.Z,{title:"History",className:"mx-auto mt-3 max-w-xl",children:(0,d.jsx)(n.p,{icon:i.A,note:"No stored history has arrived yet."})}):(e="raw"===(c=ar.result).tier?"raw samples":"1m"===c.tier?"1-minute rollups":"1-hour rollups",(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-baseline gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-foreground",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:`inline-block h-2 w-2 shrink-0 rounded-full ${B.connected?"bg-ok":"bg-crit"}`}),az(B)]}),(0,d.jsxs)("span",{children:[(0,C.r6)(c.fromMs)," – ",(0,C.r6)(c.toMs)]}),(0,d.jsxs)("span",{className:"tnum",title:e,children:[(0,C.I_)(c.stepMs)," buckets"]}),(0,d.jsx)("div",{className:"ml-auto self-center",children:(0,d.jsx)(ay,{machine:B,result:c,range:M,selectedMetrics:(0,t.Cv)(ap,K),hiddenCards:ac,hiddenSeries:ad,coreIds:X,loadedAt:ar.loadedAt})})]}),c.truncated?(0,d.jsxs)("div",{role:"status",className:"mb-4 flex items-start gap-2 rounded-lg bg-warn-soft px-4 py-2.5 text-xs text-foreground",children:[(0,d.jsx)(j.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-warn","aria-hidden":!0}),(0,d.jsx)("span",{children:"Partial history \xb7 narrow the range for more detail."})]}):null,c.gaps.length>0?(0,d.jsxs)("details",{className:"mb-4 max-w-3xl text-xs text-muted-foreground",children:[(0,d.jsxs)("summary",{className:"inline-flex min-h-8 cursor-pointer items-center gap-2 rounded-md text-warn",children:[(0,d.jsx)(j.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-warn","aria-hidden":!0}),(0,d.jsxs)("span",{children:[(0,d.jsx)("strong",{className:"font-medium",children:"Data gaps:"})," ",(0,C.fH)(c.gaps,c.fromMs,c.toMs)]})]}),(0,d.jsxs)("ul",{className:"mt-1.5 flex flex-col gap-1",children:[c.gaps.slice(0,20).map(a=>(0,d.jsxs)("li",{className:"tnum text-xs",children:[(0,C.r6)(a.fromMs)," – ",(0,C.r6)(a.toMs)," (",(0,C.I_)(a.toMs-a.fromMs),"):"," ","dropped"===a.kind?"dropped":"missed",a.reason?` \xb7 ${a.reason}`:"",void 0!==a.droppedRecords?` \xb7 ${a.droppedRecords} record${1===a.droppedRecords?"":"s"}`:""]},`${a.fromMs}-${a.toMs}-${a.kind}`)),c.gaps.length>20?(0,d.jsxs)("li",{className:"text-xs text-muted-foreground",children:["…and ",c.gaps.length-20," more."]}):null]})]}):null,0===c.series.length?(0,d.jsx)(n.Z,{title:"No stored points",className:"mx-auto max-w-xl",children:(0,d.jsx)(n.p,{icon:i.A,note:`No stored readings for ${void 0===B?"this machine":az(B)} in ${ax.label.toLowerCase()}.`})}):(0,d.jsx)(ai,{machine:B,result:c,selectedMetrics:ap,hiddenCards:ac,hiddenSeries:ad,onToggleSeries:a=>{ab(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),[...c]})},capacityUnits:K,onCapacityUnitChange:(a,b)=>("memory"===a?G:J)(b)})]}))]})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24628:(a,b,c)=>{Promise.resolve().then(c.bind(c,12761)),Promise.resolve().then(c.bind(c,40015)),Promise.resolve().then(c.bind(c,7867)),Promise.resolve().then(c.bind(c,76670))},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},44857:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),o={children:["",{children:["history",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,78817))),"/home/triet/Project/rigscope/src/app/history/page.tsx"]}]},{"global-error":[n,"next/dist/client/components/builtin/global-error.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]},{layout:[i,"/home/triet/Project/rigscope/src/app/layout.tsx"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,59645)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}},[]]}.children,p=(0,e.H)({tree:o,page:"/history/page",pathname:"/history",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},48596:(a,b,c)=>{Promise.resolve().then(c.bind(c,79173)),Promise.resolve().then(c.bind(c,28565)),Promise.resolve().then(c.bind(c,50369)),Promise.resolve().then(c.bind(c,46568))},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78817:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>k,metadata:()=>i});var d=c(5735),e=c(91986),f=c(88713),g=c(35448),h=c(79173);let i={title:"History"};function j(){return(0,d.jsx)(f.G,{title:"History",children:(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-5 xl:grid-cols-2","aria-busy":"true",children:[(0,d.jsxs)(g.Z,{title:"Loading history",children:[(0,d.jsx)("div",{className:"h-40 animate-pulse rounded-lg bg-card-strong","aria-hidden":!0}),(0,d.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Preparing the history view…"})]}),(0,d.jsxs)(g.Z,{title:"Preparing charts",children:[(0,d.jsx)("div",{className:"h-40 animate-pulse rounded-lg bg-card-strong","aria-hidden":!0}),(0,d.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Machine and metric controls appear next."})]})]})})}function k(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(j,{}),children:(0,d.jsx)(h.HistoryView,{})})}},79173:(a,b,c)=>{"use strict";c.d(b,{HistoryView:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call HistoryView() from the server but HistoryView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/triet/Project/rigscope/src/components/history/history-view.tsx","HistoryView")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[266,430,721,161,751,168,894],()=>b(b.s=44857));module.exports=c})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../node_modules/next/dist/client/lib/console.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/fast-jwt/index.js","../../../../node_modules/next/dist/compiled/fast-jwt/package.json","../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../node_modules/next/dist/compiled/ws/index.js","../../../../node_modules/next/dist/compiled/ws/package.json","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/picocolors.js","../../../../node_modules/next/dist/lib/scheduler.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../node_modules/next/dist/server/node-environment.js","../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../node_modules/next/dist/server/require-hook.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/server/route-kind.js","../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/161.js","../../chunks/168.js","../../chunks/266.js","../../chunks/430.js","../../chunks/721.js","../../chunks/751.js","../../chunks/894.js","../../webpack-runtime.js","page_client-reference-manifest.js"]}
@@ -0,0 +1 @@
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/history/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"86673","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"40015","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"76670","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"7867","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"4833","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"93022","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"71793","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"9479","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"81931","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"30847","name":"*","chunks":[],"async":false}},"8250":{"*":{"id":"12761","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"85909","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"58910","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/triet/Project/rigscope/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/app/globals.css":{"id":1743,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-provider.tsx":{"id":2737,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/live/live-provider.tsx":{"id":9939,"name":"*","chunks":["939","static/chunks/939-2600d7c8e583d5ef.js","177","static/chunks/app/layout-4feff677c4071745.js"],"async":false},"/home/triet/Project/rigscope/src/components/alerts/alerts-view.tsx":{"id":1461,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/resources/connections-panels.tsx":{"id":5773,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/admin/administration-view.tsx":{"id":7044,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/history/history-view.tsx":{"id":8250,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","408","static/chunks/408-dc6158e0bb450ef6.js","429","static/chunks/app/history/page-1475454737279ee0.js"],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-navigation.tsx":{"id":1721,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","408","static/chunks/408-dc6158e0bb450ef6.js","429","static/chunks/app/history/page-1475454737279ee0.js"],"async":false},"/home/triet/Project/rigscope/src/components/shell/sidebar.tsx":{"id":2701,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","408","static/chunks/408-dc6158e0bb450ef6.js","429","static/chunks/app/history/page-1475454737279ee0.js"],"async":false},"/home/triet/Project/rigscope/src/components/theme-toggle.tsx":{"id":2394,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","408","static/chunks/408-dc6158e0bb450ef6.js","429","static/chunks/app/history/page-1475454737279ee0.js"],"async":false},"/home/triet/Project/rigscope/src/components/live/login-view.tsx":{"id":5000,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/fleet-view.tsx":{"id":7281,"name":"*","chunks":["157","static/chunks/157-0d36ebf66af048ac.js","939","static/chunks/939-2600d7c8e583d5ef.js","103","static/chunks/103-c47318242b24e9ac.js","227","static/chunks/227-417939c480f50747.js","974","static/chunks/app/page-1ae9fc94c897785b.js"],"async":false},"/home/triet/Project/rigscope/src/components/processes/processes-view.tsx":{"id":7339,"name":"*","chunks":[],"async":false},"/home/triet/Project/rigscope/src/components/live/machine-view.tsx":{"id":8887,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/triet/Project/rigscope/src/":[],"/home/triet/Project/rigscope/src/app/layout":[{"inlined":false,"path":"static/css/e45c0c7ef5ba0336.css"}],"/home/triet/Project/rigscope/src/app/page":[],"/home/triet/Project/rigscope/src/app/history/page":[]},"rscModuleMapping":{"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1461":{"*":{"id":"29953","name":"*","chunks":[],"async":false}},"1721":{"*":{"id":"28565","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"2394":{"*":{"id":"46568","name":"*","chunks":[],"async":false}},"2701":{"*":{"id":"50369","name":"*","chunks":[],"async":false}},"2737":{"*":{"id":"65223","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"5000":{"*":{"id":"52604","name":"*","chunks":[],"async":false}},"5773":{"*":{"id":"37147","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7044":{"*":{"id":"2902","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7281":{"*":{"id":"22993","name":"*","chunks":[],"async":false}},"7339":{"*":{"id":"89893","name":"*","chunks":[],"async":false}},"8250":{"*":{"id":"79173","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8887":{"*":{"id":"73132","name":"*","chunks":[],"async":false}},"9939":{"*":{"id":"89604","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}};