watch-tail 0.4.0 → 0.6.0

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 (381) hide show
  1. package/README.md +158 -0
  2. package/build/client/_app/immutable/assets/0.Dfts6BC4.css +2 -0
  3. package/build/client/_app/immutable/assets/0.Dfts6BC4.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.Dfts6BC4.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css +1 -0
  6. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.br +0 -0
  7. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css +1 -0
  9. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.br +0 -0
  10. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.gz +0 -0
  11. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css +1 -0
  12. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.br +1 -0
  13. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.gz +0 -0
  14. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css +1 -0
  15. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.br +0 -0
  16. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.gz +0 -0
  17. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css +1 -0
  18. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.br +0 -0
  19. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.gz +0 -0
  20. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css +1 -0
  21. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.br +0 -0
  22. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.gz +0 -0
  23. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css +1 -0
  24. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.br +0 -0
  25. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.gz +0 -0
  26. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css +1 -0
  27. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.br +0 -0
  28. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.gz +0 -0
  29. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css +1 -0
  30. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.br +0 -0
  31. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.gz +0 -0
  32. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css +1 -0
  33. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.br +0 -0
  34. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.gz +0 -0
  35. package/build/client/_app/immutable/chunks/Amq8zxdJ.js +1 -0
  36. package/build/client/_app/immutable/chunks/Amq8zxdJ.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/Amq8zxdJ.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/B3p3umIY.js +1 -0
  39. package/build/client/_app/immutable/chunks/B3p3umIY.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/B3p3umIY.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/B43Eeyih.js +1 -0
  42. package/build/client/_app/immutable/chunks/B43Eeyih.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/B43Eeyih.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/B5q6rkQ-.js +1 -0
  45. package/build/client/_app/immutable/chunks/B5q6rkQ-.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/B5q6rkQ-.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BAynhd7i.js +1 -0
  48. package/build/client/_app/immutable/chunks/BAynhd7i.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BAynhd7i.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BDlvDAqe.js +1 -0
  51. package/build/client/_app/immutable/chunks/BDlvDAqe.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BDlvDAqe.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BGmgUZMc.js +10 -0
  54. package/build/client/_app/immutable/chunks/BGmgUZMc.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/BGmgUZMc.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BJpWBbAS.js +1 -0
  57. package/build/client/_app/immutable/chunks/BJpWBbAS.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BJpWBbAS.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/BOT2hFMn.js +1 -0
  60. package/build/client/_app/immutable/chunks/BOT2hFMn.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/BOT2hFMn.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/BR2LaRms.js +1 -0
  63. package/build/client/_app/immutable/chunks/BR2LaRms.js.br +1 -0
  64. package/build/client/_app/immutable/chunks/BR2LaRms.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BZFYtRPj.js +1 -0
  66. package/build/client/_app/immutable/chunks/BZFYtRPj.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BZFYtRPj.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BjxZ_neZ.js +5 -0
  69. package/build/client/_app/immutable/chunks/BjxZ_neZ.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BjxZ_neZ.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/Bl052uUt.js +1 -0
  72. package/build/client/_app/immutable/chunks/Bl052uUt.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/Bl052uUt.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/{Bw_9uNRP.js → BsH4MNzX.js} +1 -1
  75. package/build/client/_app/immutable/chunks/BsH4MNzX.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/BsH4MNzX.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/ByhwhtiG.js +1 -0
  78. package/build/client/_app/immutable/chunks/ByhwhtiG.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/ByhwhtiG.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/C1lycbEF.js +1 -0
  81. package/build/client/_app/immutable/chunks/C1lycbEF.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/C1lycbEF.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/C58PZtCD.js +4 -0
  84. package/build/client/_app/immutable/chunks/C58PZtCD.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/C58PZtCD.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/CCch3uox.js +1 -0
  87. package/build/client/_app/immutable/chunks/CCch3uox.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/CCch3uox.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/CEU4ihsz.js +1 -0
  90. package/build/client/_app/immutable/chunks/CEU4ihsz.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/CEU4ihsz.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/CG6rRxUy.js +2 -0
  93. package/build/client/_app/immutable/chunks/CG6rRxUy.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/CG6rRxUy.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/CM5sQDq_.js +1 -0
  96. package/build/client/_app/immutable/chunks/CM5sQDq_.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/CM5sQDq_.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/CT_NYh_-.js +1 -0
  99. package/build/client/_app/immutable/chunks/CT_NYh_-.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/CT_NYh_-.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/CZIk93qi.js +1 -0
  102. package/build/client/_app/immutable/chunks/CZIk93qi.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/CZIk93qi.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/C_aXFBl3.js +1 -0
  105. package/build/client/_app/immutable/chunks/C_aXFBl3.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/C_aXFBl3.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/CqWPu3PG.js +1 -0
  108. package/build/client/_app/immutable/chunks/CqWPu3PG.js.br +1 -0
  109. package/build/client/_app/immutable/chunks/CqWPu3PG.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/CyncJW0D.js +1 -0
  111. package/build/client/_app/immutable/chunks/CyncJW0D.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/CyncJW0D.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/D4sC5v3c.js +1 -0
  114. package/build/client/_app/immutable/chunks/D4sC5v3c.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/D4sC5v3c.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/D76YLq-2.js +1 -0
  117. package/build/client/_app/immutable/chunks/D76YLq-2.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/D76YLq-2.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/D8H_ivbb.js +1 -0
  120. package/build/client/_app/immutable/chunks/D8H_ivbb.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/D8H_ivbb.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/DU0OQtdJ.js +1 -0
  123. package/build/client/_app/immutable/chunks/DU0OQtdJ.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/DU0OQtdJ.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/Db0q5_zr.js +1 -0
  126. package/build/client/_app/immutable/chunks/Db0q5_zr.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/Db0q5_zr.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/Dfvzj6n2.js +1 -0
  129. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/HclGiUj8.js +1 -0
  132. package/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/RobXhXPM.js +1 -0
  135. package/build/client/_app/immutable/chunks/RobXhXPM.js.br +1 -0
  136. package/build/client/_app/immutable/chunks/RobXhXPM.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/Y5urAfNy.js +1 -0
  138. package/build/client/_app/immutable/chunks/Y5urAfNy.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/Y5urAfNy.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js +1 -0
  141. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/jO4fmY1N.js +1 -0
  144. package/build/client/_app/immutable/chunks/jO4fmY1N.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/jO4fmY1N.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/pqiPC7Y8.js +3 -0
  147. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/snfmbqby.js +1 -0
  150. package/build/client/_app/immutable/chunks/snfmbqby.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/snfmbqby.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/wx-wtMGx.js +15 -0
  153. package/build/client/_app/immutable/chunks/wx-wtMGx.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/wx-wtMGx.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/yCfI4PCa.js +1 -0
  156. package/build/client/_app/immutable/chunks/yCfI4PCa.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/yCfI4PCa.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/zHL7lw4G.js +1 -0
  159. package/build/client/_app/immutable/chunks/zHL7lw4G.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/zHL7lw4G.js.gz +0 -0
  161. package/build/client/_app/immutable/entry/app.DFSifnlU.js +2 -0
  162. package/build/client/_app/immutable/entry/app.DFSifnlU.js.br +0 -0
  163. package/build/client/_app/immutable/entry/app.DFSifnlU.js.gz +0 -0
  164. package/build/client/_app/immutable/entry/start.2H5s3Lol.js +1 -0
  165. package/build/client/_app/immutable/entry/start.2H5s3Lol.js.br +1 -0
  166. package/build/client/_app/immutable/entry/start.2H5s3Lol.js.gz +0 -0
  167. package/build/client/_app/immutable/nodes/0.BN3NguWs.js +1 -0
  168. package/build/client/_app/immutable/nodes/0.BN3NguWs.js.br +0 -0
  169. package/build/client/_app/immutable/nodes/0.BN3NguWs.js.gz +0 -0
  170. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js +1 -0
  171. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.br +0 -0
  172. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.gz +0 -0
  173. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js +4 -0
  174. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.br +0 -0
  175. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.gz +0 -0
  176. package/build/client/_app/version.json +1 -1
  177. package/build/client/_app/version.json.br +0 -0
  178. package/build/client/_app/version.json.gz +0 -0
  179. package/build/handler.js +9 -7
  180. package/build/handler.js.map +1 -1
  181. package/build/index.js +9 -7
  182. package/build/index.js.map +1 -1
  183. package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js +701 -0
  184. package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js.map +1 -0
  185. package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js +31 -0
  186. package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js.map +1 -0
  187. package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js +448 -0
  188. package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js.map +1 -0
  189. package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js +983 -0
  190. package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js.map +1 -0
  191. package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js +355 -0
  192. package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js.map +1 -0
  193. package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js +170 -0
  194. package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js.map +1 -0
  195. package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js +352 -0
  196. package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js.map +1 -0
  197. package/build/server/chunks/chunks/EventScatter.js-D3Jaw_Cw.js +7308 -0
  198. package/build/server/chunks/chunks/EventScatter.js-D3Jaw_Cw.js.map +1 -0
  199. package/build/server/chunks/chunks/Labels.js-DpagpV6d.js +497 -0
  200. package/build/server/chunks/chunks/Labels.js-DpagpV6d.js.map +1 -0
  201. package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js +343 -0
  202. package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js.map +1 -0
  203. package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js +423 -0
  204. package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js.map +1 -0
  205. package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js +756 -0
  206. package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js.map +1 -0
  207. package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js +1259 -0
  208. package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js.map +1 -0
  209. package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js +228 -0
  210. package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js.map +1 -0
  211. package/build/server/chunks/chunks/Points.js-e6g0Re6H.js +14 -0
  212. package/build/server/chunks/chunks/Points.js-e6g0Re6H.js.map +1 -0
  213. package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js +25 -0
  214. package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js.map +1 -0
  215. package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js +547 -0
  216. package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js.map +1 -0
  217. package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js +516 -0
  218. package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js.map +1 -0
  219. package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js +847 -0
  220. package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js.map +1 -0
  221. package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js +314 -0
  222. package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js.map +1 -0
  223. package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js +2052 -0
  224. package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js.map +1 -0
  225. package/build/server/chunks/chunks/archive.js-C2D-5edp.js +823 -0
  226. package/build/server/chunks/chunks/archive.js-C2D-5edp.js.map +1 -0
  227. package/build/server/chunks/chunks/array.js-CBp0H4t3.js +8 -0
  228. package/build/server/chunks/chunks/array.js-CBp0H4t3.js.map +1 -0
  229. package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js +25 -0
  230. package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js.map +1 -0
  231. package/build/server/chunks/chunks/{env2.js-DXveJt1Y.js → aws.js-DkPqAybc.js} +2 -59
  232. package/build/server/chunks/chunks/aws.js-DkPqAybc.js.map +1 -0
  233. package/build/server/chunks/chunks/band.js-C7izXphE.js +155 -0
  234. package/build/server/chunks/chunks/band.js-C7izXphE.js.map +1 -0
  235. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js +1356 -0
  236. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js.map +1 -0
  237. package/build/server/chunks/chunks/common.js-BWQB8Die.js +5760 -0
  238. package/build/server/chunks/chunks/common.js-BWQB8Die.js.map +1 -0
  239. package/build/server/chunks/chunks/env2.js-CcIskxOZ.js +60 -0
  240. package/build/server/chunks/chunks/env2.js-CcIskxOZ.js.map +1 -0
  241. package/build/server/chunks/chunks/{exports.js-CvFPPbaH.js → exports.js-ClPPfcHj.js} +6 -1
  242. package/build/server/chunks/chunks/exports.js-ClPPfcHj.js.map +1 -0
  243. package/build/server/chunks/chunks/group.js-DBFzWAox.js +30 -0
  244. package/build/server/chunks/chunks/group.js-DBFzWAox.js.map +1 -0
  245. package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js +248 -0
  246. package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js.map +1 -0
  247. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js +2 -0
  248. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js.map +1 -0
  249. package/build/server/chunks/chunks/{internal2.js-DZ8ZzzjN.js → internal.js-DZ8ZzzjN.js} +1 -1
  250. package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js.map +1 -0
  251. package/build/server/chunks/chunks/internal2.js-BPo5dcDi.js +188 -0
  252. package/build/server/chunks/chunks/internal2.js-BPo5dcDi.js.map +1 -0
  253. package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js +695 -0
  254. package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js.map +1 -0
  255. package/build/server/chunks/chunks/{internal.js-Cc3oBhL-.js → legacy-client.js-DJmDw3Zx.js} +13 -439
  256. package/build/server/chunks/chunks/legacy-client.js-DJmDw3Zx.js.map +1 -0
  257. package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.js +313 -0
  258. package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.js.map +1 -0
  259. package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js +126 -0
  260. package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js.map +1 -0
  261. package/build/server/chunks/chunks/linear.js-CTOKrHn9.js +1046 -0
  262. package/build/server/chunks/chunks/linear.js-CTOKrHn9.js.map +1 -0
  263. package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.js +587 -0
  264. package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.js.map +1 -0
  265. package/build/server/chunks/chunks/math.js-BqujbaBs.js +50 -0
  266. package/build/server/chunks/chunks/math.js-BqujbaBs.js.map +1 -0
  267. package/build/server/chunks/chunks/max.js-CuS0BpRI.js +11 -0
  268. package/build/server/chunks/chunks/max.js-CuS0BpRI.js.map +1 -0
  269. package/build/server/chunks/chunks/min.js-DZWt5tPl.js +11 -0
  270. package/build/server/chunks/chunks/min.js-DZWt5tPl.js.map +1 -0
  271. package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js +677 -0
  272. package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js.map +1 -0
  273. package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js +33 -0
  274. package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js.map +1 -0
  275. package/build/server/chunks/chunks/path.js-BizMrlzb.js +488 -0
  276. package/build/server/chunks/chunks/path.js-BizMrlzb.js.map +1 -0
  277. package/build/server/chunks/chunks/path2.js-pquT2Kg6.js +27 -0
  278. package/build/server/chunks/chunks/path2.js-pquT2Kg6.js.map +1 -0
  279. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js +7 -0
  280. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js.map +1 -0
  281. package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js +187 -0
  282. package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js.map +1 -0
  283. package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js +276 -0
  284. package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js.map +1 -0
  285. package/build/server/chunks/chunks/series-buckets.js-BjigySff.js +290 -0
  286. package/build/server/chunks/chunks/series-buckets.js-BjigySff.js.map +1 -0
  287. package/build/server/chunks/chunks/{server.js-ByNB8uti.js → server.js-CAEBuMIH.js} +167 -2
  288. package/build/server/chunks/chunks/server.js-CAEBuMIH.js.map +1 -0
  289. package/build/server/chunks/chunks/source.js-DZEVvuho.js +21 -0
  290. package/build/server/chunks/chunks/source.js-DZEVvuho.js.map +1 -0
  291. package/build/server/chunks/chunks/{state.js-9DxsWxU-.js → state.js-DgkwfYFo.js} +5 -4
  292. package/build/server/chunks/chunks/state.js-DgkwfYFo.js.map +1 -0
  293. package/build/server/chunks/chunks/types.js-x3GyGPOz.js +11 -0
  294. package/build/server/chunks/chunks/types.js-x3GyGPOz.js.map +1 -0
  295. package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-83Ch7djd.js +39 -0
  296. package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-83Ch7djd.js.map +1 -0
  297. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BOjix7GN.js → _server.ts.js-VctnBhIJ.js} +5 -4
  298. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-VctnBhIJ.js.map +1 -0
  299. package/build/server/chunks/entries/endpoints/api/identity/{_server.ts.js-g13uvmrX.js → _server.ts.js-Dt540Sio.js} +4 -3
  300. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-Dt540Sio.js.map +1 -0
  301. package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-CmHRxdZK.js → _server.ts.js-drLgUdvB.js} +57 -8
  302. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-drLgUdvB.js.map +1 -0
  303. package/build/server/chunks/entries/endpoints/api/regions/{_server.ts.js-BgUwioxp.js → _server.ts.js-CBqfN6Pg.js} +5 -4
  304. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-CBqfN6Pg.js.map +1 -0
  305. package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js +225 -0
  306. package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js.map +1 -0
  307. package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-CIYo4C-0.js → _server.ts.js-BWRHawY8.js} +324 -223
  308. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BWRHawY8.js.map +1 -0
  309. package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js → error.svelte.js-CsCL5PMW.js} +7 -5
  310. package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js.map → error.svelte.js-CsCL5PMW.js.map} +1 -1
  311. package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js → _layout.svelte.js-CBQpEToy.js} +2 -2
  312. package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js.map → _layout.svelte.js-CBQpEToy.js.map} +1 -1
  313. package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js +1641 -0
  314. package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js.map +1 -0
  315. package/build/server/chunks/{handler-DS32NMsJ.js → handler-DlfTB05m.js} +3 -3
  316. package/build/server/chunks/{handler-DS32NMsJ.js.map → handler-DlfTB05m.js.map} +1 -1
  317. package/build/server/chunks/{index.js-HHu-yOEK.js → index.js-BMrd9hfO.js} +6 -5
  318. package/build/server/chunks/index.js-BMrd9hfO.js.map +1 -0
  319. package/build/server/chunks/{manifest.js-BUrA7Zyr.js → manifest.js-D1kCuVe5.js} +24 -10
  320. package/build/server/chunks/manifest.js-D1kCuVe5.js.map +1 -0
  321. package/build/server/chunks/nodes/0.js-CNFDDPj5.js +9 -0
  322. package/build/server/chunks/nodes/{0.js-gSRmrAt_.js.map → 0.js-CNFDDPj5.js.map} +1 -1
  323. package/build/server/chunks/nodes/1.js-B5FPLYnf.js +9 -0
  324. package/build/server/chunks/nodes/{1.js-D68K7Ad_.js.map → 1.js-B5FPLYnf.js.map} +1 -1
  325. package/build/server/chunks/nodes/2.js-BEuxzw6b.js +9 -0
  326. package/build/server/chunks/nodes/2.js-BEuxzw6b.js.map +1 -0
  327. package/dist/cli/completions.js +6 -0
  328. package/dist/cli/index.js +131 -88
  329. package/dist/cli/options.js +28 -2
  330. package/dist/cli/preflight.js +30 -0
  331. package/dist/cli/ui.js +18 -3
  332. package/dist/lib/cli/aws.js +12 -4
  333. package/dist/lib/log-buffer.js +443 -0
  334. package/dist/lib/log-format.js +185 -0
  335. package/dist/lib/types.js +0 -4
  336. package/package.json +6 -2
  337. package/build/client/_app/immutable/assets/0.BPmQoXaO.css +0 -2
  338. package/build/client/_app/immutable/assets/0.BPmQoXaO.css.br +0 -0
  339. package/build/client/_app/immutable/assets/0.BPmQoXaO.css.gz +0 -0
  340. package/build/client/_app/immutable/chunks/Bw_9uNRP.js.br +0 -0
  341. package/build/client/_app/immutable/chunks/Bw_9uNRP.js.gz +0 -0
  342. package/build/client/_app/immutable/chunks/De_x7GQi.js +0 -1
  343. package/build/client/_app/immutable/chunks/De_x7GQi.js.br +0 -0
  344. package/build/client/_app/immutable/chunks/De_x7GQi.js.gz +0 -0
  345. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js +0 -3
  346. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.br +0 -0
  347. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.gz +0 -0
  348. package/build/client/_app/immutable/entry/app.Be166AxG.js +0 -2
  349. package/build/client/_app/immutable/entry/app.Be166AxG.js.br +0 -0
  350. package/build/client/_app/immutable/entry/app.Be166AxG.js.gz +0 -0
  351. package/build/client/_app/immutable/entry/start.clEDpQL9.js +0 -1
  352. package/build/client/_app/immutable/entry/start.clEDpQL9.js.br +0 -0
  353. package/build/client/_app/immutable/entry/start.clEDpQL9.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js +0 -1
  355. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.br +0 -4
  356. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js +0 -1
  358. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.gz +0 -0
  360. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js +0 -5
  361. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.br +0 -0
  362. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.gz +0 -0
  363. package/build/server/chunks/chunks/env2.js-DXveJt1Y.js.map +0 -1
  364. package/build/server/chunks/chunks/exports.js-CvFPPbaH.js.map +0 -1
  365. package/build/server/chunks/chunks/internal.js-Cc3oBhL-.js.map +0 -1
  366. package/build/server/chunks/chunks/internal2.js-DZ8ZzzjN.js.map +0 -1
  367. package/build/server/chunks/chunks/server.js-ByNB8uti.js.map +0 -1
  368. package/build/server/chunks/chunks/state.js-9DxsWxU-.js.map +0 -1
  369. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BOjix7GN.js.map +0 -1
  370. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-g13uvmrX.js.map +0 -1
  371. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-CmHRxdZK.js.map +0 -1
  372. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-BgUwioxp.js.map +0 -1
  373. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-CIYo4C-0.js.map +0 -1
  374. package/build/server/chunks/entries/pages/_page.svelte.js-CpwYbxbM.js +0 -1291
  375. package/build/server/chunks/entries/pages/_page.svelte.js-CpwYbxbM.js.map +0 -1
  376. package/build/server/chunks/index.js-HHu-yOEK.js.map +0 -1
  377. package/build/server/chunks/manifest.js-BUrA7Zyr.js.map +0 -1
  378. package/build/server/chunks/nodes/0.js-gSRmrAt_.js +0 -9
  379. package/build/server/chunks/nodes/1.js-D68K7Ad_.js +0 -9
  380. package/build/server/chunks/nodes/2.js-ChYsaaoC.js +0 -9
  381. package/build/server/chunks/nodes/2.js-ChYsaaoC.js.map +0 -1
@@ -0,0 +1,587 @@
1
+ //#region src/lib/log-format.ts
2
+ /**
3
+ * Parses a log message that is entirely JSON.
4
+ *
5
+ * Only objects and arrays count: a message that happens to be `42` or `"ok"` is
6
+ * left alone, and anything that does not parse is not JSON. Leading and trailing
7
+ * whitespace is ignored.
8
+ */
9
+ function detectJson(message) {
10
+ if (typeof message !== "string") return null;
11
+ const trimmed = message.trim();
12
+ if (trimmed.length === 0) return null;
13
+ const first = trimmed[0];
14
+ if (first !== "{" && first !== "[") return null;
15
+ try {
16
+ const parsed = JSON.parse(trimmed);
17
+ if (parsed === null || typeof parsed !== "object") return null;
18
+ return parsed;
19
+ } catch {
20
+ return null;
21
+ }
22
+ }
23
+ /**
24
+ * Returns the text to render for a log message.
25
+ *
26
+ * `prettyJson` is normally true: JSON messages are re-serialised with two-space
27
+ * indentation. With `prettyJson` false the raw message is returned unchanged,
28
+ * which is what the viewer's JSON toggle switches to.
29
+ */
30
+ function formatLogMessage(message, options = {}) {
31
+ const { prettyJson = true } = options;
32
+ const value = detectJson(message);
33
+ if (value === null || !prettyJson) return {
34
+ text: message,
35
+ isJson: value !== null,
36
+ value
37
+ };
38
+ return {
39
+ text: JSON.stringify(value, null, 2),
40
+ isJson: true,
41
+ value
42
+ };
43
+ }
44
+ var NUMBER_PATTERN = /^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
45
+ /**
46
+ * Splits pretty-printed JSON into coloured tokens.
47
+ *
48
+ * The concatenation of every token's `text` is always identical to the input, so
49
+ * rendering tokens can never lose or alter a character. This is a display-only
50
+ * scanner: it assumes well-formed JSON produced by `JSON.stringify`.
51
+ */
52
+ function tokenizeJson(text) {
53
+ const tokens = [];
54
+ let index = 0;
55
+ const push = (type, value) => {
56
+ if (value.length > 0) tokens.push({
57
+ type,
58
+ text: value
59
+ });
60
+ };
61
+ while (index < text.length) {
62
+ const char = text[index];
63
+ if (char === " " || char === "\n" || char === " " || char === "\r") {
64
+ let end = index;
65
+ while (end < text.length && " \n \r".includes(text[end])) end += 1;
66
+ push("whitespace", text.slice(index, end));
67
+ index = end;
68
+ continue;
69
+ }
70
+ if (char === "\"") {
71
+ let end = index + 1;
72
+ while (end < text.length) {
73
+ if (text[end] === "\\") {
74
+ end += 2;
75
+ continue;
76
+ }
77
+ if (text[end] === "\"") break;
78
+ end += 1;
79
+ }
80
+ const raw = text.slice(index, Math.min(end + 1, text.length));
81
+ let lookahead = index + raw.length;
82
+ while (lookahead < text.length && " \n \r".includes(text[lookahead])) lookahead += 1;
83
+ push(text[lookahead] === ":" ? "key" : "string", raw);
84
+ index += raw.length;
85
+ continue;
86
+ }
87
+ if (char === "{" || char === "}" || char === "[" || char === "]" || char === "," || char === ":") {
88
+ push("punctuation", char);
89
+ index += 1;
90
+ continue;
91
+ }
92
+ if (text.startsWith("true", index) || text.startsWith("false", index)) {
93
+ const literal = text.startsWith("true", index) ? "true" : "false";
94
+ push("boolean", literal);
95
+ index += literal.length;
96
+ continue;
97
+ }
98
+ if (text.startsWith("null", index)) {
99
+ push("null", "null");
100
+ index += 4;
101
+ continue;
102
+ }
103
+ let end = index;
104
+ while (end < text.length && !"{}[],:\" \n \r".includes(text[end])) end += 1;
105
+ const raw = text.slice(index, Math.max(end, index + 1));
106
+ push(NUMBER_PATTERN.test(raw) ? "number" : "other", raw);
107
+ index += raw.length;
108
+ }
109
+ return tokens;
110
+ }
111
+ /**
112
+ * Finds the first JSON object or array inside a log message.
113
+ *
114
+ * Whole messages are handled by {@link detectJson}; this also copes with the
115
+ * common "prefix then payload" shape (`2026-01-01 INFO {"level":"info"}`), which
116
+ * is what the viewer expands when pretty-printing is switched off.
117
+ *
118
+ * Strings and escapes are respected while matching brackets, so a `}` inside a
119
+ * message value cannot end the scan early.
120
+ */
121
+ function findJsonInMessage(message) {
122
+ if (typeof message !== "string") return null;
123
+ const whole = detectJson(message);
124
+ if (whole !== null) return whole;
125
+ for (let index = 0; index < message.length; index += 1) {
126
+ const opener = message[index];
127
+ if (opener !== "{" && opener !== "[") continue;
128
+ const closer = opener === "{" ? "}" : "]";
129
+ let depth = 0;
130
+ let inString = false;
131
+ let escaped = false;
132
+ for (let scan = index; scan < message.length; scan += 1) {
133
+ const char = message[scan];
134
+ if (inString) {
135
+ if (escaped) escaped = false;
136
+ else if (char === "\\") escaped = true;
137
+ else if (char === "\"") inString = false;
138
+ continue;
139
+ }
140
+ if (char === "\"") {
141
+ inString = true;
142
+ continue;
143
+ }
144
+ if (char === opener) depth += 1;
145
+ else if (char === closer) {
146
+ depth -= 1;
147
+ if (depth === 0) {
148
+ const candidate = message.slice(index, scan + 1);
149
+ try {
150
+ const parsed = JSON.parse(candidate);
151
+ if (parsed !== null && typeof parsed === "object") return parsed;
152
+ } catch {}
153
+ break;
154
+ }
155
+ }
156
+ }
157
+ }
158
+ return null;
159
+ }
160
+ //#endregion
161
+ //#region src/lib/log-buffer.ts
162
+ /**
163
+ * Pure client-side log storage and filtering for the watch-stream UI.
164
+ *
165
+ * Design decisions (kept in one place so the UI stays predictable):
166
+ *
167
+ * - The visible buffer is a fixed-capacity ring buffer. When it is full the oldest line is
168
+ * dropped, so memory stays bounded while tailing a busy group.
169
+ * - Pausing keeps the SSE connection open and keeps receiving events. Incoming events are held in
170
+ * a bounded pending buffer instead of the visible buffer, and are flushed in arrival order when
171
+ * the user resumes.
172
+ */
173
+ /** Maximum number of lines kept in the visible client buffer. */
174
+ var DEFAULT_CAPACITY = 5e3;
175
+ var ERROR_PATTERN = /\b(ERROR|FATAL|CRITICAL|CRIT|PANIC|EXCEPTION|TRACEBACK|SEVERE|FAILED|FAILURE)\b/;
176
+ var WARN_PATTERN = /\b(WARN|WARNING)\b/;
177
+ var DEBUG_PATTERN = /\b(DEBUG|TRACE|VERBOSE)\b/;
178
+ /** Payload keys checked, in order, for a level the producer declared. */
179
+ var LEVEL_KEYS = [
180
+ "level",
181
+ "severity",
182
+ "lvl",
183
+ "logLevel",
184
+ "log_level"
185
+ ];
186
+ /**
187
+ * Declared level words mapped onto the four levels the UI knows.
188
+ *
189
+ * The vocabulary is deliberately small: `fatal` and `critical` are errors to
190
+ * everyone reading a log, and collapsing them keeps the filter and the colours
191
+ * honest instead of inventing levels nothing else understands.
192
+ */
193
+ var LEVEL_WORDS = {
194
+ trace: "debug",
195
+ verbose: "debug",
196
+ debug: "debug",
197
+ info: "info",
198
+ information: "info",
199
+ notice: "info",
200
+ note: "info",
201
+ warn: "warn",
202
+ warning: "warn",
203
+ error: "error",
204
+ err: "error",
205
+ exception: "error",
206
+ fatal: "error",
207
+ critical: "error",
208
+ crit: "error",
209
+ panic: "error",
210
+ severe: "error",
211
+ alert: "error",
212
+ emergency: "error"
213
+ };
214
+ /**
215
+ * Bunyan/pino style numeric levels.
216
+ *
217
+ * Only exact known values are mapped: a bare number such as `{"level":0}` means
218
+ * different things in different loggers, so an unknown number falls through to
219
+ * the text heuristic instead of being guessed at.
220
+ */
221
+ var NUMERIC_LEVELS = {
222
+ 10: "debug",
223
+ 20: "debug",
224
+ 30: "info",
225
+ 40: "warn",
226
+ 50: "error",
227
+ 60: "error"
228
+ };
229
+ /** True when a value is one of the four known levels. */
230
+ function isLogLevel(value) {
231
+ return value === "error" || value === "warn" || value === "info" || value === "debug";
232
+ }
233
+ /** Converts one declared JSON value into a level, or `null` when unrecognised. */
234
+ function levelFromDeclared(value) {
235
+ if (typeof value === "number" && Number.isFinite(value)) return NUMERIC_LEVELS[value] ?? null;
236
+ if (typeof value !== "string") return null;
237
+ const word = value.trim().toLowerCase();
238
+ if (word.length === 0) return null;
239
+ return LEVEL_WORDS[word] ?? null;
240
+ }
241
+ /**
242
+ * Level the payload declares, when the line carries a JSON object with a known
243
+ * level key. Whole messages and "prefix then payload" lines are both handled,
244
+ * by the same parser the viewer uses to pretty-print JSON.
245
+ */
246
+ function declaredLevel(message) {
247
+ const payload = findJsonInMessage(message);
248
+ if (payload === null || typeof payload !== "object" || Array.isArray(payload)) return null;
249
+ const record = payload;
250
+ for (const key of LEVEL_KEYS) {
251
+ const level = levelFromDeclared(record[key]);
252
+ if (level !== null) return level;
253
+ }
254
+ return null;
255
+ }
256
+ /**
257
+ * Severity ranks, highest first, with `unknown` below every real level.
258
+ *
259
+ * One ordered table feeds the JavaScript helpers and the SQL the archive runs,
260
+ * so "most critical" means exactly the same thing in the chart, in the log view
261
+ * and in DuckDB. Insertion order is severity order.
262
+ */
263
+ var LEVEL_RANK = {
264
+ error: 4,
265
+ warn: 3,
266
+ info: 2,
267
+ debug: 1,
268
+ unknown: 0
269
+ };
270
+ /**
271
+ * Worst level in a set of levels, or `null` when none of them has a level.
272
+ *
273
+ * This is what a request id group is coloured by: a group with one error line
274
+ * and twenty info lines is an error, because that is what a reader needs to see.
275
+ */
276
+ function mostCriticalLevel(levels) {
277
+ let best = null;
278
+ let bestRank = -1;
279
+ for (const level of levels) {
280
+ if (level === null || level === void 0 || level === "unknown") continue;
281
+ const rank = LEVEL_RANK[level];
282
+ if (rank > bestRank) {
283
+ bestRank = rank;
284
+ best = level;
285
+ }
286
+ }
287
+ return best;
288
+ }
289
+ /**
290
+ * Payload keys checked, in order, for a request id the producer declared.
291
+ *
292
+ * The list is deliberately about the *request*: a trace id, a session id or a
293
+ * tenant id names something else and must not collapse unrelated lines.
294
+ */
295
+ var REQUEST_ID_KEYS = [
296
+ "requestId",
297
+ "request_id",
298
+ "requestID",
299
+ "reqId",
300
+ "req_id",
301
+ "awsRequestId",
302
+ "aws_request_id",
303
+ "xRequestId",
304
+ "x_request_id",
305
+ "x-request-id",
306
+ "X-Request-Id"
307
+ ];
308
+ /** Values that look like an id but mean "there is none". */
309
+ var REQUEST_ID_PLACEHOLDERS = /* @__PURE__ */ new Set([
310
+ "none",
311
+ "null",
312
+ "undefined",
313
+ "n/a",
314
+ "na",
315
+ "unknown",
316
+ "test",
317
+ "-",
318
+ "{{requestid}}",
319
+ "${requestid}"
320
+ ]);
321
+ /** Shortest value treated as a request id, so `id: 1` is not a grouping key. */
322
+ var REQUEST_ID_MIN_LENGTH = 4;
323
+ /** Characters a request id is made of; anything with a space is not an id. */
324
+ var REQUEST_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:=-]*$/;
325
+ /**
326
+ * `RequestId: 1234-abcd`, `request_id=abc.def`, `x-request-id: 8f2c`: the
327
+ * separators and the casing both vary, so one pattern covers them.
328
+ *
329
+ * A bare UUID is deliberately *not* matched. Plenty of log lines carry a
330
+ * correlation id, a span id or an uploaded file's id, and grouping by one of
331
+ * those would invent requests that never existed.
332
+ */
333
+ var REQUEST_ID_TEXT = /\brequest[\s_-]?id\b\s*[:=]\s*"?([A-Za-z0-9][A-Za-z0-9._:=-]*)"?/i;
334
+ /** Trims trailing punctuation a sentence adds after an id. */
335
+ function cleanRequestId(value) {
336
+ const trimmed = value.replace(/[.,;:]+$/, "").trim();
337
+ if (trimmed.length < REQUEST_ID_MIN_LENGTH) return null;
338
+ if (REQUEST_ID_PLACEHOLDERS.has(trimmed.toLowerCase())) return null;
339
+ return REQUEST_ID_PATTERN.test(trimmed) ? trimmed : null;
340
+ }
341
+ /** Request id the payload declares, when the line carries a JSON object. */
342
+ function declaredRequestId(message) {
343
+ const payload = findJsonInMessage(message);
344
+ if (payload === null || typeof payload !== "object" || Array.isArray(payload)) return null;
345
+ const record = payload;
346
+ for (const key of REQUEST_ID_KEYS) {
347
+ const value = record[key];
348
+ if (typeof value === "string") {
349
+ const cleaned = cleanRequestId(value);
350
+ if (cleaned !== null) return cleaned;
351
+ }
352
+ if (typeof value === "number" && Number.isFinite(value)) return String(value);
353
+ }
354
+ return null;
355
+ }
356
+ /**
357
+ * Detects the request id of a log line, or returns `null` when it has none.
358
+ *
359
+ * A declared payload key wins; the text form is the fallback for the many logs
360
+ * that print their id instead of emitting JSON. Both paths return the id
361
+ * verbatim, because it is an identifier - folding case would merge distinct ids
362
+ * on the one hand and lie about what the log said on the other.
363
+ */
364
+ function detectRequestId(message) {
365
+ const text = message ?? "";
366
+ if (text === "") return null;
367
+ const declared = declaredRequestId(text);
368
+ if (declared !== null) return declared;
369
+ const match = REQUEST_ID_TEXT.exec(text);
370
+ return match === null ? null : cleanRequestId(match[1] ?? "");
371
+ }
372
+ /**
373
+ * Detects the severity of a log line.
374
+ *
375
+ * A level the payload declares wins, because it is a statement of fact; the
376
+ * text heuristic is the fallback for the many logs that declare nothing. The
377
+ * heuristic matches level words anywhere in the line, so
378
+ * `{"level":"info","msg":"retry after error count 0"}` is `info`, not `error`.
379
+ */
380
+ function detectLevelWithSource(message) {
381
+ const declared = declaredLevel(message ?? "");
382
+ if (declared !== null) return {
383
+ level: declared,
384
+ source: "json"
385
+ };
386
+ const upper = (message ?? "").toUpperCase();
387
+ if (ERROR_PATTERN.test(upper)) return {
388
+ level: "error",
389
+ source: "text"
390
+ };
391
+ if (WARN_PATTERN.test(upper)) return {
392
+ level: "warn",
393
+ source: "text"
394
+ };
395
+ if (DEBUG_PATTERN.test(upper)) return {
396
+ level: "debug",
397
+ source: "text"
398
+ };
399
+ return {
400
+ level: null,
401
+ source: null
402
+ };
403
+ }
404
+ /**
405
+ * Guesses the severity of a log line from its text, or returns `null` when the
406
+ * line carries no signal at all (a stack-trace continuation, for example).
407
+ */
408
+ function detectLevel(message) {
409
+ return detectLevelWithSource(message).level;
410
+ }
411
+ /** Level of an event: what the server detected, else a guess from the text. */
412
+ function effectiveLevel(event) {
413
+ return event.level !== void 0 ? event.level : detectLevel(event.message);
414
+ }
415
+ /** True when an event passes a level filter; a `null` filter accepts every line. */
416
+ function matchesLevel(event, level) {
417
+ return level === null || effectiveLevel(event) === level;
418
+ }
419
+ /** Filters events by level, keeping every line when `level` is `null`. */
420
+ function filterByLevel(events, level) {
421
+ if (level === null) return events.slice();
422
+ return events.filter((event) => matchesLevel(event, level));
423
+ }
424
+ /** Tailwind text colour class for a severity; an unknown level stays neutral. */
425
+ function levelColorClass(level) {
426
+ switch (level) {
427
+ case "error": return "text-red-400";
428
+ case "warn": return "text-amber-300";
429
+ case "debug": return "text-neutral-500";
430
+ default: return "text-neutral-200";
431
+ }
432
+ }
433
+ /** Stable key for rendering a log line, since event ids can repeat or be missing. */
434
+ function eventKey(event, index) {
435
+ return `${event.id ?? "no-id"}:${event.timestamp}:${index}`;
436
+ }
437
+ /** Case-insensitive substring match over the message and the stream name. */
438
+ function matchesFilter(event, query) {
439
+ const needle = (query ?? "").trim().toLowerCase();
440
+ if (needle === "") return true;
441
+ return `${event.message ?? ""} ${event.streamName ?? ""}`.toLowerCase().includes(needle);
442
+ }
443
+ /** Returns the events matching `query`, in arrival order. */
444
+ function filterEvents(events, query) {
445
+ if ((query ?? "").trim() === "") return events.slice();
446
+ return events.filter((event) => matchesFilter(event, query));
447
+ }
448
+ /** Creates an array of `length` undefined slots. */
449
+ function emptySlots(length) {
450
+ return Array.from({ length });
451
+ }
452
+ /**
453
+ * Fixed-capacity ring buffer that overwrites the oldest item once it is full.
454
+ */
455
+ var LogRingBuffer = class {
456
+ /** Maximum number of items kept. */
457
+ capacity;
458
+ #items;
459
+ #start = 0;
460
+ #size = 0;
461
+ #dropped = 0;
462
+ constructor(capacity = DEFAULT_CAPACITY) {
463
+ if (!Number.isInteger(capacity) || capacity <= 0) throw new RangeError(`capacity must be a positive integer, received ${capacity}`);
464
+ this.capacity = capacity;
465
+ this.#items = emptySlots(capacity);
466
+ }
467
+ /** Number of items currently stored. */
468
+ get size() {
469
+ return this.#size;
470
+ }
471
+ /** Number of items discarded because the buffer was full. */
472
+ get dropped() {
473
+ return this.#dropped;
474
+ }
475
+ /** True when the buffer holds `capacity` items. */
476
+ get full() {
477
+ return this.#size === this.capacity;
478
+ }
479
+ /** Appends one item, dropping the oldest item when the buffer is full. */
480
+ push(item) {
481
+ if (this.#size === this.capacity) {
482
+ this.#dropped += 1;
483
+ this.#start = (this.#start + 1) % this.capacity;
484
+ this.#size -= 1;
485
+ }
486
+ const index = (this.#start + this.#size) % this.capacity;
487
+ this.#items[index] = item;
488
+ this.#size += 1;
489
+ }
490
+ /** Appends several items in order. */
491
+ pushMany(items) {
492
+ for (const item of items) this.push(item);
493
+ }
494
+ /** Copies the stored items into an array ordered oldest to newest. */
495
+ toArray() {
496
+ const output = emptySlots(this.#size);
497
+ for (let offset = 0; offset < this.#size; offset += 1) output[offset] = this.#items[(this.#start + offset) % this.capacity];
498
+ return output;
499
+ }
500
+ /** Oldest stored item, or `undefined` when empty. */
501
+ first() {
502
+ return this.#size === 0 ? void 0 : this.#items[this.#start];
503
+ }
504
+ /** Newest stored item, or `undefined` when empty. */
505
+ last() {
506
+ return this.#size === 0 ? void 0 : this.#items[(this.#start + this.#size - 1) % this.capacity];
507
+ }
508
+ /** Removes every item and resets the dropped counter. */
509
+ clear() {
510
+ this.#items = emptySlots(this.capacity);
511
+ this.#start = 0;
512
+ this.#size = 0;
513
+ this.#dropped = 0;
514
+ }
515
+ };
516
+ /**
517
+ * Log store used by the UI: a visible ring buffer plus a pending buffer that fills up while the
518
+ * view is paused. `push()` never drops silent data, it either appends to the visible buffer or to
519
+ * the pending buffer; `resume()` moves the pending events into the visible buffer in order.
520
+ */
521
+ var LogStore = class {
522
+ buffer;
523
+ #pending;
524
+ #paused = false;
525
+ constructor(capacity = DEFAULT_CAPACITY) {
526
+ this.buffer = new LogRingBuffer(capacity);
527
+ this.#pending = new LogRingBuffer(capacity);
528
+ }
529
+ /** True when incoming events are buffered instead of appended to the visible buffer. */
530
+ get paused() {
531
+ return this.#paused;
532
+ }
533
+ /** Number of visible lines. */
534
+ get size() {
535
+ return this.buffer.size;
536
+ }
537
+ /** Number of lines held back while paused. */
538
+ get pendingCount() {
539
+ return this.#pending.size;
540
+ }
541
+ /** Number of visible lines dropped because the buffer was full. */
542
+ get droppedCount() {
543
+ return this.buffer.dropped;
544
+ }
545
+ /** Appends events to the visible buffer, or holds them back while paused. */
546
+ push(events) {
547
+ if (this.#paused) {
548
+ this.#pending.pushMany(events);
549
+ return;
550
+ }
551
+ this.buffer.pushMany(events);
552
+ }
553
+ /** Pauses or resumes appending. Resuming flushes the pending events immediately. */
554
+ setPaused(paused) {
555
+ if (paused === this.#paused) return [];
556
+ this.#paused = paused;
557
+ return paused ? [] : this.flush();
558
+ }
559
+ /** Pauses appending to the visible buffer. */
560
+ pause() {
561
+ this.#paused = true;
562
+ }
563
+ /** Resumes appending and returns the events flushed from the pending buffer. */
564
+ resume() {
565
+ this.#paused = false;
566
+ return this.flush();
567
+ }
568
+ /** Moves every pending event into the visible buffer, oldest first. */
569
+ flush() {
570
+ const flushed = this.#pending.toArray();
571
+ this.#pending.clear();
572
+ this.buffer.pushMany(flushed);
573
+ return flushed;
574
+ }
575
+ /** Copies the visible lines, oldest first. */
576
+ toArray() {
577
+ return this.buffer.toArray();
578
+ }
579
+ /** Empties the visible buffer and discards pending events. */
580
+ clear() {
581
+ this.buffer.clear();
582
+ this.#pending.clear();
583
+ }
584
+ };
585
+
586
+ export { LEVEL_RANK as L, detectLevelWithSource as a, detectLevel as b, LogStore as c, detectRequestId as d, effectiveLevel as e, filterByLevel as f, filterEvents as g, formatLogMessage as h, isLogLevel as i, eventKey as j, levelColorClass as l, mostCriticalLevel as m, tokenizeJson as t };
587
+ //# sourceMappingURL=log-buffer.js-BI_gQOls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-buffer.js-BI_gQOls.js","sources":["../../../../.svelte-kit/output/server/chunks/log-buffer.js"],"sourcesContent":["//#region src/lib/log-format.ts\n/**\n* Parses a log message that is entirely JSON.\n*\n* Only objects and arrays count: a message that happens to be `42` or `\"ok\"` is\n* left alone, and anything that does not parse is not JSON. Leading and trailing\n* whitespace is ignored.\n*/\nfunction detectJson(message) {\n\tif (typeof message !== \"string\") return null;\n\tconst trimmed = message.trim();\n\tif (trimmed.length === 0) return null;\n\tconst first = trimmed[0];\n\tif (first !== \"{\" && first !== \"[\") return null;\n\ttry {\n\t\tconst parsed = JSON.parse(trimmed);\n\t\tif (parsed === null || typeof parsed !== \"object\") return null;\n\t\treturn parsed;\n\t} catch {\n\t\treturn null;\n\t}\n}\n/**\n* Returns the text to render for a log message.\n*\n* `prettyJson` is normally true: JSON messages are re-serialised with two-space\n* indentation. With `prettyJson` false the raw message is returned unchanged,\n* which is what the viewer's JSON toggle switches to.\n*/\nfunction formatLogMessage(message, options = {}) {\n\tconst { prettyJson = true } = options;\n\tconst value = detectJson(message);\n\tif (value === null || !prettyJson) return {\n\t\ttext: message,\n\t\tisJson: value !== null,\n\t\tvalue\n\t};\n\treturn {\n\t\ttext: JSON.stringify(value, null, 2),\n\t\tisJson: true,\n\t\tvalue\n\t};\n}\nvar NUMBER_PATTERN = /^-?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$/;\n/**\n* Splits pretty-printed JSON into coloured tokens.\n*\n* The concatenation of every token's `text` is always identical to the input, so\n* rendering tokens can never lose or alter a character. This is a display-only\n* scanner: it assumes well-formed JSON produced by `JSON.stringify`.\n*/\nfunction tokenizeJson(text) {\n\tconst tokens = [];\n\tlet index = 0;\n\tconst push = (type, value) => {\n\t\tif (value.length > 0) tokens.push({\n\t\t\ttype,\n\t\t\ttext: value\n\t\t});\n\t};\n\twhile (index < text.length) {\n\t\tconst char = text[index];\n\t\tif (char === \" \" || char === \"\\n\" || char === \"\t\" || char === \"\\r\") {\n\t\t\tlet end = index;\n\t\t\twhile (end < text.length && \" \\n\t\\r\".includes(text[end])) end += 1;\n\t\t\tpush(\"whitespace\", text.slice(index, end));\n\t\t\tindex = end;\n\t\t\tcontinue;\n\t\t}\n\t\tif (char === \"\\\"\") {\n\t\t\tlet end = index + 1;\n\t\t\twhile (end < text.length) {\n\t\t\t\tif (text[end] === \"\\\\\") {\n\t\t\t\t\tend += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (text[end] === \"\\\"\") break;\n\t\t\t\tend += 1;\n\t\t\t}\n\t\t\tconst raw = text.slice(index, Math.min(end + 1, text.length));\n\t\t\tlet lookahead = index + raw.length;\n\t\t\twhile (lookahead < text.length && \" \\n\t\\r\".includes(text[lookahead])) lookahead += 1;\n\t\t\tpush(text[lookahead] === \":\" ? \"key\" : \"string\", raw);\n\t\t\tindex += raw.length;\n\t\t\tcontinue;\n\t\t}\n\t\tif (char === \"{\" || char === \"}\" || char === \"[\" || char === \"]\" || char === \",\" || char === \":\") {\n\t\t\tpush(\"punctuation\", char);\n\t\t\tindex += 1;\n\t\t\tcontinue;\n\t\t}\n\t\tif (text.startsWith(\"true\", index) || text.startsWith(\"false\", index)) {\n\t\t\tconst literal = text.startsWith(\"true\", index) ? \"true\" : \"false\";\n\t\t\tpush(\"boolean\", literal);\n\t\t\tindex += literal.length;\n\t\t\tcontinue;\n\t\t}\n\t\tif (text.startsWith(\"null\", index)) {\n\t\t\tpush(\"null\", \"null\");\n\t\t\tindex += 4;\n\t\t\tcontinue;\n\t\t}\n\t\tlet end = index;\n\t\twhile (end < text.length && !\"{}[],:\\\" \\n\t\\r\".includes(text[end])) end += 1;\n\t\tconst raw = text.slice(index, Math.max(end, index + 1));\n\t\tpush(NUMBER_PATTERN.test(raw) ? \"number\" : \"other\", raw);\n\t\tindex += raw.length;\n\t}\n\treturn tokens;\n}\n/**\n* Finds the first JSON object or array inside a log message.\n*\n* Whole messages are handled by {@link detectJson}; this also copes with the\n* common \"prefix then payload\" shape (`2026-01-01 INFO {\"level\":\"info\"}`), which\n* is what the viewer expands when pretty-printing is switched off.\n*\n* Strings and escapes are respected while matching brackets, so a `}` inside a\n* message value cannot end the scan early.\n*/\nfunction findJsonInMessage(message) {\n\tif (typeof message !== \"string\") return null;\n\tconst whole = detectJson(message);\n\tif (whole !== null) return whole;\n\tfor (let index = 0; index < message.length; index += 1) {\n\t\tconst opener = message[index];\n\t\tif (opener !== \"{\" && opener !== \"[\") continue;\n\t\tconst closer = opener === \"{\" ? \"}\" : \"]\";\n\t\tlet depth = 0;\n\t\tlet inString = false;\n\t\tlet escaped = false;\n\t\tfor (let scan = index; scan < message.length; scan += 1) {\n\t\t\tconst char = message[scan];\n\t\t\tif (inString) {\n\t\t\t\tif (escaped) escaped = false;\n\t\t\t\telse if (char === \"\\\\\") escaped = true;\n\t\t\t\telse if (char === \"\\\"\") inString = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (char === \"\\\"\") {\n\t\t\t\tinString = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (char === opener) depth += 1;\n\t\t\telse if (char === closer) {\n\t\t\t\tdepth -= 1;\n\t\t\t\tif (depth === 0) {\n\t\t\t\t\tconst candidate = message.slice(index, scan + 1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst parsed = JSON.parse(candidate);\n\t\t\t\t\t\tif (parsed !== null && typeof parsed === \"object\") return parsed;\n\t\t\t\t\t} catch {}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn null;\n}\n//#endregion\n//#region src/lib/log-buffer.ts\n/**\n* Pure client-side log storage and filtering for the watch-stream UI.\n*\n* Design decisions (kept in one place so the UI stays predictable):\n*\n* - The visible buffer is a fixed-capacity ring buffer. When it is full the oldest line is\n* dropped, so memory stays bounded while tailing a busy group.\n* - Pausing keeps the SSE connection open and keeps receiving events. Incoming events are held in\n* a bounded pending buffer instead of the visible buffer, and are flushed in arrival order when\n* the user resumes.\n*/\n/** Maximum number of lines kept in the visible client buffer. */\nvar DEFAULT_CAPACITY = 5e3;\nvar ERROR_PATTERN = /\\b(ERROR|FATAL|CRITICAL|CRIT|PANIC|EXCEPTION|TRACEBACK|SEVERE|FAILED|FAILURE)\\b/;\nvar WARN_PATTERN = /\\b(WARN|WARNING)\\b/;\nvar DEBUG_PATTERN = /\\b(DEBUG|TRACE|VERBOSE)\\b/;\n/** Payload keys checked, in order, for a level the producer declared. */\nvar LEVEL_KEYS = [\n\t\"level\",\n\t\"severity\",\n\t\"lvl\",\n\t\"logLevel\",\n\t\"log_level\"\n];\n/**\n* Declared level words mapped onto the four levels the UI knows.\n*\n* The vocabulary is deliberately small: `fatal` and `critical` are errors to\n* everyone reading a log, and collapsing them keeps the filter and the colours\n* honest instead of inventing levels nothing else understands.\n*/\nvar LEVEL_WORDS = {\n\ttrace: \"debug\",\n\tverbose: \"debug\",\n\tdebug: \"debug\",\n\tinfo: \"info\",\n\tinformation: \"info\",\n\tnotice: \"info\",\n\tnote: \"info\",\n\twarn: \"warn\",\n\twarning: \"warn\",\n\terror: \"error\",\n\terr: \"error\",\n\texception: \"error\",\n\tfatal: \"error\",\n\tcritical: \"error\",\n\tcrit: \"error\",\n\tpanic: \"error\",\n\tsevere: \"error\",\n\talert: \"error\",\n\temergency: \"error\"\n};\n/**\n* Bunyan/pino style numeric levels.\n*\n* Only exact known values are mapped: a bare number such as `{\"level\":0}` means\n* different things in different loggers, so an unknown number falls through to\n* the text heuristic instead of being guessed at.\n*/\nvar NUMERIC_LEVELS = {\n\t10: \"debug\",\n\t20: \"debug\",\n\t30: \"info\",\n\t40: \"warn\",\n\t50: \"error\",\n\t60: \"error\"\n};\n/** True when a value is one of the four known levels. */\nfunction isLogLevel(value) {\n\treturn value === \"error\" || value === \"warn\" || value === \"info\" || value === \"debug\";\n}\n/** Converts one declared JSON value into a level, or `null` when unrecognised. */\nfunction levelFromDeclared(value) {\n\tif (typeof value === \"number\" && Number.isFinite(value)) return NUMERIC_LEVELS[value] ?? null;\n\tif (typeof value !== \"string\") return null;\n\tconst word = value.trim().toLowerCase();\n\tif (word.length === 0) return null;\n\treturn LEVEL_WORDS[word] ?? null;\n}\n/**\n* Level the payload declares, when the line carries a JSON object with a known\n* level key. Whole messages and \"prefix then payload\" lines are both handled,\n* by the same parser the viewer uses to pretty-print JSON.\n*/\nfunction declaredLevel(message) {\n\tconst payload = findJsonInMessage(message);\n\tif (payload === null || typeof payload !== \"object\" || Array.isArray(payload)) return null;\n\tconst record = payload;\n\tfor (const key of LEVEL_KEYS) {\n\t\tconst level = levelFromDeclared(record[key]);\n\t\tif (level !== null) return level;\n\t}\n\treturn null;\n}\n/**\n* Severity ranks, highest first, with `unknown` below every real level.\n*\n* One ordered table feeds the JavaScript helpers and the SQL the archive runs,\n* so \"most critical\" means exactly the same thing in the chart, in the log view\n* and in DuckDB. Insertion order is severity order.\n*/\nvar LEVEL_RANK = {\n\terror: 4,\n\twarn: 3,\n\tinfo: 2,\n\tdebug: 1,\n\tunknown: 0\n};\n/**\n* Worst level in a set of levels, or `null` when none of them has a level.\n*\n* This is what a request id group is coloured by: a group with one error line\n* and twenty info lines is an error, because that is what a reader needs to see.\n*/\nfunction mostCriticalLevel(levels) {\n\tlet best = null;\n\tlet bestRank = -1;\n\tfor (const level of levels) {\n\t\tif (level === null || level === void 0 || level === \"unknown\") continue;\n\t\tconst rank = LEVEL_RANK[level];\n\t\tif (rank > bestRank) {\n\t\t\tbestRank = rank;\n\t\t\tbest = level;\n\t\t}\n\t}\n\treturn best;\n}\n/**\n* Payload keys checked, in order, for a request id the producer declared.\n*\n* The list is deliberately about the *request*: a trace id, a session id or a\n* tenant id names something else and must not collapse unrelated lines.\n*/\nvar REQUEST_ID_KEYS = [\n\t\"requestId\",\n\t\"request_id\",\n\t\"requestID\",\n\t\"reqId\",\n\t\"req_id\",\n\t\"awsRequestId\",\n\t\"aws_request_id\",\n\t\"xRequestId\",\n\t\"x_request_id\",\n\t\"x-request-id\",\n\t\"X-Request-Id\"\n];\n/** Values that look like an id but mean \"there is none\". */\nvar REQUEST_ID_PLACEHOLDERS = /* @__PURE__ */ new Set([\n\t\"none\",\n\t\"null\",\n\t\"undefined\",\n\t\"n/a\",\n\t\"na\",\n\t\"unknown\",\n\t\"test\",\n\t\"-\",\n\t\"{{requestid}}\",\n\t\"${requestid}\"\n]);\n/** Shortest value treated as a request id, so `id: 1` is not a grouping key. */\nvar REQUEST_ID_MIN_LENGTH = 4;\n/** Characters a request id is made of; anything with a space is not an id. */\nvar REQUEST_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:=-]*$/;\n/**\n* `RequestId: 1234-abcd`, `request_id=abc.def`, `x-request-id: 8f2c`: the\n* separators and the casing both vary, so one pattern covers them.\n*\n* A bare UUID is deliberately *not* matched. Plenty of log lines carry a\n* correlation id, a span id or an uploaded file's id, and grouping by one of\n* those would invent requests that never existed.\n*/\nvar REQUEST_ID_TEXT = /\\brequest[\\s_-]?id\\b\\s*[:=]\\s*\"?([A-Za-z0-9][A-Za-z0-9._:=-]*)\"?/i;\n/** Trims trailing punctuation a sentence adds after an id. */\nfunction cleanRequestId(value) {\n\tconst trimmed = value.replace(/[.,;:]+$/, \"\").trim();\n\tif (trimmed.length < REQUEST_ID_MIN_LENGTH) return null;\n\tif (REQUEST_ID_PLACEHOLDERS.has(trimmed.toLowerCase())) return null;\n\treturn REQUEST_ID_PATTERN.test(trimmed) ? trimmed : null;\n}\n/** Request id the payload declares, when the line carries a JSON object. */\nfunction declaredRequestId(message) {\n\tconst payload = findJsonInMessage(message);\n\tif (payload === null || typeof payload !== \"object\" || Array.isArray(payload)) return null;\n\tconst record = payload;\n\tfor (const key of REQUEST_ID_KEYS) {\n\t\tconst value = record[key];\n\t\tif (typeof value === \"string\") {\n\t\t\tconst cleaned = cleanRequestId(value);\n\t\t\tif (cleaned !== null) return cleaned;\n\t\t}\n\t\tif (typeof value === \"number\" && Number.isFinite(value)) return String(value);\n\t}\n\treturn null;\n}\n/**\n* Detects the request id of a log line, or returns `null` when it has none.\n*\n* A declared payload key wins; the text form is the fallback for the many logs\n* that print their id instead of emitting JSON. Both paths return the id\n* verbatim, because it is an identifier - folding case would merge distinct ids\n* on the one hand and lie about what the log said on the other.\n*/\nfunction detectRequestId(message) {\n\tconst text = message ?? \"\";\n\tif (text === \"\") return null;\n\tconst declared = declaredRequestId(text);\n\tif (declared !== null) return declared;\n\tconst match = REQUEST_ID_TEXT.exec(text);\n\treturn match === null ? null : cleanRequestId(match[1] ?? \"\");\n}\n/**\n* Detects the severity of a log line.\n*\n* A level the payload declares wins, because it is a statement of fact; the\n* text heuristic is the fallback for the many logs that declare nothing. The\n* heuristic matches level words anywhere in the line, so\n* `{\"level\":\"info\",\"msg\":\"retry after error count 0\"}` is `info`, not `error`.\n*/\nfunction detectLevelWithSource(message) {\n\tconst declared = declaredLevel(message ?? \"\");\n\tif (declared !== null) return {\n\t\tlevel: declared,\n\t\tsource: \"json\"\n\t};\n\tconst upper = (message ?? \"\").toUpperCase();\n\tif (ERROR_PATTERN.test(upper)) return {\n\t\tlevel: \"error\",\n\t\tsource: \"text\"\n\t};\n\tif (WARN_PATTERN.test(upper)) return {\n\t\tlevel: \"warn\",\n\t\tsource: \"text\"\n\t};\n\tif (DEBUG_PATTERN.test(upper)) return {\n\t\tlevel: \"debug\",\n\t\tsource: \"text\"\n\t};\n\treturn {\n\t\tlevel: null,\n\t\tsource: null\n\t};\n}\n/**\n* Guesses the severity of a log line from its text, or returns `null` when the\n* line carries no signal at all (a stack-trace continuation, for example).\n*/\nfunction detectLevel(message) {\n\treturn detectLevelWithSource(message).level;\n}\n/** Level of an event: what the server detected, else a guess from the text. */\nfunction effectiveLevel(event) {\n\treturn event.level !== void 0 ? event.level : detectLevel(event.message);\n}\n/** True when an event passes a level filter; a `null` filter accepts every line. */\nfunction matchesLevel(event, level) {\n\treturn level === null || effectiveLevel(event) === level;\n}\n/** Filters events by level, keeping every line when `level` is `null`. */\nfunction filterByLevel(events, level) {\n\tif (level === null) return events.slice();\n\treturn events.filter((event) => matchesLevel(event, level));\n}\n/** Tailwind text colour class for a severity; an unknown level stays neutral. */\nfunction levelColorClass(level) {\n\tswitch (level) {\n\t\tcase \"error\": return \"text-red-400\";\n\t\tcase \"warn\": return \"text-amber-300\";\n\t\tcase \"debug\": return \"text-neutral-500\";\n\t\tdefault: return \"text-neutral-200\";\n\t}\n}\n/** Stable key for rendering a log line, since event ids can repeat or be missing. */\nfunction eventKey(event, index) {\n\treturn `${event.id ?? \"no-id\"}:${event.timestamp}:${index}`;\n}\n/** Case-insensitive substring match over the message and the stream name. */\nfunction matchesFilter(event, query) {\n\tconst needle = (query ?? \"\").trim().toLowerCase();\n\tif (needle === \"\") return true;\n\treturn `${event.message ?? \"\"} ${event.streamName ?? \"\"}`.toLowerCase().includes(needle);\n}\n/** Returns the events matching `query`, in arrival order. */\nfunction filterEvents(events, query) {\n\tif ((query ?? \"\").trim() === \"\") return events.slice();\n\treturn events.filter((event) => matchesFilter(event, query));\n}\n/** Creates an array of `length` undefined slots. */\nfunction emptySlots(length) {\n\treturn Array.from({ length });\n}\n/**\n* Fixed-capacity ring buffer that overwrites the oldest item once it is full.\n*/\nvar LogRingBuffer = class {\n\t/** Maximum number of items kept. */\n\tcapacity;\n\t#items;\n\t#start = 0;\n\t#size = 0;\n\t#dropped = 0;\n\tconstructor(capacity = DEFAULT_CAPACITY) {\n\t\tif (!Number.isInteger(capacity) || capacity <= 0) throw new RangeError(`capacity must be a positive integer, received ${capacity}`);\n\t\tthis.capacity = capacity;\n\t\tthis.#items = emptySlots(capacity);\n\t}\n\t/** Number of items currently stored. */\n\tget size() {\n\t\treturn this.#size;\n\t}\n\t/** Number of items discarded because the buffer was full. */\n\tget dropped() {\n\t\treturn this.#dropped;\n\t}\n\t/** True when the buffer holds `capacity` items. */\n\tget full() {\n\t\treturn this.#size === this.capacity;\n\t}\n\t/** Appends one item, dropping the oldest item when the buffer is full. */\n\tpush(item) {\n\t\tif (this.#size === this.capacity) {\n\t\t\tthis.#dropped += 1;\n\t\t\tthis.#start = (this.#start + 1) % this.capacity;\n\t\t\tthis.#size -= 1;\n\t\t}\n\t\tconst index = (this.#start + this.#size) % this.capacity;\n\t\tthis.#items[index] = item;\n\t\tthis.#size += 1;\n\t}\n\t/** Appends several items in order. */\n\tpushMany(items) {\n\t\tfor (const item of items) this.push(item);\n\t}\n\t/** Copies the stored items into an array ordered oldest to newest. */\n\ttoArray() {\n\t\tconst output = emptySlots(this.#size);\n\t\tfor (let offset = 0; offset < this.#size; offset += 1) output[offset] = this.#items[(this.#start + offset) % this.capacity];\n\t\treturn output;\n\t}\n\t/** Oldest stored item, or `undefined` when empty. */\n\tfirst() {\n\t\treturn this.#size === 0 ? void 0 : this.#items[this.#start];\n\t}\n\t/** Newest stored item, or `undefined` when empty. */\n\tlast() {\n\t\treturn this.#size === 0 ? void 0 : this.#items[(this.#start + this.#size - 1) % this.capacity];\n\t}\n\t/** Removes every item and resets the dropped counter. */\n\tclear() {\n\t\tthis.#items = emptySlots(this.capacity);\n\t\tthis.#start = 0;\n\t\tthis.#size = 0;\n\t\tthis.#dropped = 0;\n\t}\n};\n/**\n* Log store used by the UI: a visible ring buffer plus a pending buffer that fills up while the\n* view is paused. `push()` never drops silent data, it either appends to the visible buffer or to\n* the pending buffer; `resume()` moves the pending events into the visible buffer in order.\n*/\nvar LogStore = class {\n\tbuffer;\n\t#pending;\n\t#paused = false;\n\tconstructor(capacity = DEFAULT_CAPACITY) {\n\t\tthis.buffer = new LogRingBuffer(capacity);\n\t\tthis.#pending = new LogRingBuffer(capacity);\n\t}\n\t/** True when incoming events are buffered instead of appended to the visible buffer. */\n\tget paused() {\n\t\treturn this.#paused;\n\t}\n\t/** Number of visible lines. */\n\tget size() {\n\t\treturn this.buffer.size;\n\t}\n\t/** Number of lines held back while paused. */\n\tget pendingCount() {\n\t\treturn this.#pending.size;\n\t}\n\t/** Number of visible lines dropped because the buffer was full. */\n\tget droppedCount() {\n\t\treturn this.buffer.dropped;\n\t}\n\t/** Appends events to the visible buffer, or holds them back while paused. */\n\tpush(events) {\n\t\tif (this.#paused) {\n\t\t\tthis.#pending.pushMany(events);\n\t\t\treturn;\n\t\t}\n\t\tthis.buffer.pushMany(events);\n\t}\n\t/** Pauses or resumes appending. Resuming flushes the pending events immediately. */\n\tsetPaused(paused) {\n\t\tif (paused === this.#paused) return [];\n\t\tthis.#paused = paused;\n\t\treturn paused ? [] : this.flush();\n\t}\n\t/** Pauses appending to the visible buffer. */\n\tpause() {\n\t\tthis.#paused = true;\n\t}\n\t/** Resumes appending and returns the events flushed from the pending buffer. */\n\tresume() {\n\t\tthis.#paused = false;\n\t\treturn this.flush();\n\t}\n\t/** Moves every pending event into the visible buffer, oldest first. */\n\tflush() {\n\t\tconst flushed = this.#pending.toArray();\n\t\tthis.#pending.clear();\n\t\tthis.buffer.pushMany(flushed);\n\t\treturn flushed;\n\t}\n\t/** Copies the visible lines, oldest first. */\n\ttoArray() {\n\t\treturn this.buffer.toArray();\n\t}\n\t/** Empties the visible buffer and discards pending events. */\n\tclear() {\n\t\tthis.buffer.clear();\n\t\tthis.#pending.clear();\n\t}\n};\n//#endregion\nexport { detectLevelWithSource as a, eventKey as c, isLogLevel as d, levelColorClass as f, tokenizeJson as g, formatLogMessage as h, detectLevel as i, filterByLevel as l, findJsonInMessage as m, LEVEL_RANK as n, detectRequestId as o, mostCriticalLevel as p, LogStore as r, effectiveLevel as s, DEFAULT_CAPACITY as t, filterEvents as u };\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,OAAO,EAAE;AAC7B,CAAC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,OAAO,IAAI;AAC7C,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;AAC/B,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;AACtC,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;AACzB,CAAC,IAAI,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,GAAG,EAAE,OAAO,IAAI;AAChD,CAAC,IAAI;AACL,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;AACpC,EAAE,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,OAAO,IAAI;AAChE,EAAE,OAAO,MAAM;AACf,CAAC,CAAC,CAAC,MAAM;AACT,EAAE,OAAO,IAAI;AACb,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,EAAE;AACjD,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,OAAO;AACtC,CAA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