watch-tail 0.9.0 → 0.10.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 (371) hide show
  1. package/README.md +111 -10
  2. package/build/client/_app/immutable/assets/0.B5hI3s8c.css +2 -0
  3. package/build/client/_app/immutable/assets/2.Cn4w1JYv.css +1 -0
  4. package/build/client/_app/immutable/chunks/0bp2Fczu.js +1 -0
  5. package/build/client/_app/immutable/chunks/B2En4t_E.js +3 -0
  6. package/build/client/_app/immutable/chunks/{DS3cLPAu.js → B7X5bVGV.js} +1 -1
  7. package/build/client/_app/immutable/chunks/BDcWO4cr.js +1 -0
  8. package/build/client/_app/immutable/chunks/{Dkh4Dwm8.js → BDdUgtQ9.js} +1 -1
  9. package/build/client/_app/immutable/chunks/{0b2v80OK.js → BP77Fyht.js} +1 -1
  10. package/build/client/_app/immutable/chunks/{dqF8mxBW.js → B_Mg_9D4.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BvE-N_5_.js +1 -0
  12. package/build/client/_app/immutable/chunks/C0Fq51PS.js +1 -0
  13. package/build/client/_app/immutable/chunks/CBu7zaX6.js +15 -0
  14. package/build/client/_app/immutable/chunks/CDs2jokv.js +1 -0
  15. package/build/client/_app/immutable/chunks/{B5RiPG8Z.js → CL6wPCzw.js} +1 -1
  16. package/build/client/_app/immutable/chunks/CMPe3AwH.js +1 -0
  17. package/build/client/_app/immutable/chunks/{b77-bq1n.js → CRxuTO84.js} +1 -1
  18. package/build/client/_app/immutable/chunks/CXlCR4o6.js +10 -0
  19. package/build/client/_app/immutable/chunks/{DQqLOGLe.js → CZZUqHxO.js} +1 -1
  20. package/build/client/_app/immutable/chunks/{aI_O2VuQ.js → CaFHnwyo.js} +1 -1
  21. package/build/client/_app/immutable/chunks/CbtqT1c8.js +1 -0
  22. package/build/client/_app/immutable/chunks/{DGYKsRyW.js → CfRqDrzx.js} +1 -1
  23. package/build/client/_app/immutable/chunks/CwzJ9AB4.js +1 -0
  24. package/build/client/_app/immutable/chunks/{DwOZdLDj.js → Cy2yzzl5.js} +1 -1
  25. package/build/client/_app/immutable/chunks/D067lFSc.js +2 -0
  26. package/build/client/_app/immutable/chunks/{C_U_Jvk5.js → D27MZEE2.js} +1 -1
  27. package/build/client/_app/immutable/chunks/{IlwbfbOu.js → D9KJP6hv.js} +1 -1
  28. package/build/client/_app/immutable/chunks/DO938hpm.js +1 -0
  29. package/build/client/_app/immutable/chunks/DrLgrJ3k.js +1 -0
  30. package/build/client/_app/immutable/chunks/DrupwIIS.js +1 -0
  31. package/build/client/_app/immutable/chunks/LGzrUxfF.js +1 -0
  32. package/build/client/_app/immutable/chunks/{D7vimbmk.js → PUpq0Ki5.js} +1 -1
  33. package/build/client/_app/immutable/chunks/{DvxMaQv_.js → kSuEE8Bt.js} +1 -1
  34. package/build/client/_app/immutable/chunks/y79YFfGW.js +1 -0
  35. package/build/client/_app/immutable/chunks/zP_HZRCk.js +1 -0
  36. package/build/client/_app/immutable/entry/app.BEq8gOel.js +2 -0
  37. package/build/client/_app/immutable/entry/start.DmBlaUbV.js +1 -0
  38. package/build/client/_app/immutable/nodes/0.D63E8Q6i.js +1 -0
  39. package/build/client/_app/immutable/nodes/1.DXfG5P6X.js +1 -0
  40. package/build/client/_app/immutable/nodes/2.45XrHxUU.js +5 -0
  41. package/build/client/_app/version.json +1 -1
  42. package/build/env.js +0 -1
  43. package/build/handler.js +6 -9
  44. package/build/index.js +6 -9
  45. package/build/server/chunks/chunks/{archive.js-D2jtMmDo.js → archive.js-D7cGVWaq.js} +331 -31
  46. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +0 -1
  47. package/build/server/chunks/chunks/env2.js-C5BgBJDY.js +0 -1
  48. package/build/server/chunks/chunks/{exports.js-ClPPfcHj.js → exports.js-CvFPPbaH.js} +0 -6
  49. package/build/server/chunks/chunks/identity.js-NmGXxBz3.js +0 -1
  50. package/build/server/chunks/chunks/{index-server.js-CtH9Hqwf.js → index-server.js-DOq0LmqS.js} +87 -112
  51. package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js +0 -1
  52. package/build/server/chunks/chunks/{legacy-client.js-DAqKExQD.js → internal2.js-B2FekELn.js} +279 -7
  53. package/build/server/chunks/chunks/{level-filter.js-D9MNrew3.js → level-filter.js-kKdNjmbR.js} +2 -3
  54. package/build/server/chunks/chunks/{log-buffer.js-A9FA-Qv8.js → log-buffer.js-BjT3sJlh.js} +1 -2
  55. package/build/server/chunks/chunks/regions.js-COf7DgnH.js +0 -1
  56. package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js +0 -1
  57. package/build/server/chunks/chunks/shared.js-CgjUIvRK.js +0 -1
  58. package/build/server/chunks/chunks/source.js-DZEVvuho.js +0 -1
  59. package/build/server/chunks/chunks/{state.js-i-NVNGIq.js → state.js-CdO6iuBd.js} +3 -4
  60. package/build/server/chunks/chunks/text-size.svelte.js-D09gVgvI.js +309 -0
  61. package/build/server/chunks/chunks/{time-range.js-BLMT8aU3.js → time-range.js-__87ZPq6.js} +9 -5
  62. package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js +0 -1
  63. package/build/server/chunks/chunks/utils.js-BIlHjgGW.js +0 -1
  64. package/build/server/chunks/entries/endpoints/api/archive/{_server.ts.js-C4hWyXuu.js → _server.ts.js-D-97I3hr.js} +2 -3
  65. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-C5tfrpmC.js +0 -1
  66. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-PWRPScuN.js +0 -1
  67. package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-D4y43Vwe.js → _server.ts.js-BBBsBX5h.js} +2 -3
  68. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-9_g0ojki.js +0 -1
  69. package/build/server/chunks/entries/endpoints/api/series/{_server.ts.js-DibT3Hjc.js → _server.ts.js-bsGqvQ1O.js} +4 -5
  70. package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-BxXw5K0R.js → _server.ts.js-B6obpUbh.js} +211 -49
  71. package/build/server/chunks/entries/fallbacks/{error.svelte.js-ylsqA41Y.js → error.svelte.js-BupH3lxJ.js} +4 -7
  72. package/build/server/chunks/entries/pages/_layout.svelte.js-C3CVxu2T.js +621 -0
  73. package/build/server/chunks/entries/pages/{_page.svelte.js-C9-7d7mD.js → _page.svelte.js-DS9p1LVo.js} +643 -191
  74. package/build/server/chunks/{handler-Bqo8aDgP.js → handler-DrjCpeeA.js} +4 -5
  75. package/build/server/chunks/{index.js-fPvMujCL.js → index.js-BLTOesya.js} +3 -4
  76. package/build/server/chunks/{manifest.js-Bkj-8GaD.js → manifest.js-C1_IS4sj.js} +8 -9
  77. package/build/server/chunks/nodes/0.js-BHXaR9OX.js +8 -0
  78. package/build/server/chunks/nodes/1.js-C-coUSdu.js +8 -0
  79. package/build/server/chunks/nodes/2.js-Dor6Xgc7.js +8 -0
  80. package/build/shims.js +0 -1
  81. package/dist/cli/completions.js +24 -0
  82. package/dist/cli/index.js +144 -3
  83. package/dist/cli/mcp/agents.js +344 -0
  84. package/dist/cli/mcp/backend.js +235 -0
  85. package/dist/cli/mcp/run.js +245 -0
  86. package/dist/cli/mcp/stdio.js +103 -0
  87. package/dist/cli/mcp/tools.js +245 -0
  88. package/dist/cli/options.js +138 -25
  89. package/dist/cli/server.js +28 -0
  90. package/dist/cli/ui.js +20 -1
  91. package/dist/lib/time-range.js +14 -3
  92. package/package.json +21 -6
  93. package/build/client/_app/immutable/assets/0.ChTKqSf6.css +0 -2
  94. package/build/client/_app/immutable/assets/0.ChTKqSf6.css.br +0 -0
  95. package/build/client/_app/immutable/assets/0.ChTKqSf6.css.gz +0 -0
  96. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.br +0 -0
  97. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.gz +0 -0
  98. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.br +0 -0
  99. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.gz +0 -0
  100. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.br +0 -1
  101. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.gz +0 -0
  102. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.br +0 -0
  103. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.gz +0 -0
  104. package/build/client/_app/immutable/assets/EventScatter.0BkgJO-l.css.br +0 -0
  105. package/build/client/_app/immutable/assets/EventScatter.0BkgJO-l.css.gz +0 -0
  106. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.br +0 -0
  107. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.gz +0 -0
  108. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.br +0 -0
  109. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.gz +0 -0
  110. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.br +0 -0
  111. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.gz +0 -0
  112. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.br +0 -0
  113. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.gz +0 -0
  114. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.br +0 -0
  115. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.gz +0 -0
  116. package/build/client/_app/immutable/chunks/0b2v80OK.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/0b2v80OK.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/5EFAIHuJ.js +0 -1
  119. package/build/client/_app/immutable/chunks/5EFAIHuJ.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/5EFAIHuJ.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/B15XBe8D.js +0 -1
  122. package/build/client/_app/immutable/chunks/B15XBe8D.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/B15XBe8D.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/B5RiPG8Z.js.br +0 -2
  125. package/build/client/_app/immutable/chunks/B5RiPG8Z.js.gz +0 -0
  126. package/build/client/_app/immutable/chunks/BR2LaRms.js.br +0 -1
  127. package/build/client/_app/immutable/chunks/BR2LaRms.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/B_KVdCQT.js +0 -10
  129. package/build/client/_app/immutable/chunks/B_KVdCQT.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/B_KVdCQT.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  133. package/build/client/_app/immutable/chunks/Bl052uUt.js.br +0 -0
  134. package/build/client/_app/immutable/chunks/Bl052uUt.js.gz +0 -0
  135. package/build/client/_app/immutable/chunks/BuCpRsEL.js +0 -1
  136. package/build/client/_app/immutable/chunks/BuCpRsEL.js.br +0 -0
  137. package/build/client/_app/immutable/chunks/BuCpRsEL.js.gz +0 -0
  138. package/build/client/_app/immutable/chunks/BvZtsVvW.js +0 -1
  139. package/build/client/_app/immutable/chunks/BvZtsVvW.js.br +0 -0
  140. package/build/client/_app/immutable/chunks/BvZtsVvW.js.gz +0 -0
  141. package/build/client/_app/immutable/chunks/C3Y15ONf.js +0 -2
  142. package/build/client/_app/immutable/chunks/C3Y15ONf.js.br +0 -0
  143. package/build/client/_app/immutable/chunks/C3Y15ONf.js.gz +0 -0
  144. package/build/client/_app/immutable/chunks/C58PZtCD.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/C58PZtCD.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/C9GPQYs7.js +0 -1
  147. package/build/client/_app/immutable/chunks/C9GPQYs7.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/C9GPQYs7.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/CBZpkDc1.js.br +0 -0
  150. package/build/client/_app/immutable/chunks/CBZpkDc1.js.gz +0 -0
  151. package/build/client/_app/immutable/chunks/CCch3uox.js.br +0 -0
  152. package/build/client/_app/immutable/chunks/CCch3uox.js.gz +0 -0
  153. package/build/client/_app/immutable/chunks/C_U_Jvk5.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/C_U_Jvk5.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/Cd7JqZj9.js +0 -1
  156. package/build/client/_app/immutable/chunks/Cd7JqZj9.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/Cd7JqZj9.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/D2PbcyDU.js +0 -1
  159. package/build/client/_app/immutable/chunks/D2PbcyDU.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/D2PbcyDU.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/D7vimbmk.js.br +0 -0
  162. package/build/client/_app/immutable/chunks/D7vimbmk.js.gz +0 -0
  163. package/build/client/_app/immutable/chunks/DAqXSYzi.js +0 -1
  164. package/build/client/_app/immutable/chunks/DAqXSYzi.js.br +0 -0
  165. package/build/client/_app/immutable/chunks/DAqXSYzi.js.gz +0 -0
  166. package/build/client/_app/immutable/chunks/DGYKsRyW.js.br +0 -0
  167. package/build/client/_app/immutable/chunks/DGYKsRyW.js.gz +0 -0
  168. package/build/client/_app/immutable/chunks/DPaulGql.js +0 -1
  169. package/build/client/_app/immutable/chunks/DPaulGql.js.br +0 -1
  170. package/build/client/_app/immutable/chunks/DPaulGql.js.gz +0 -0
  171. package/build/client/_app/immutable/chunks/DQqLOGLe.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/DQqLOGLe.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/DS3cLPAu.js.br +0 -0
  174. package/build/client/_app/immutable/chunks/DS3cLPAu.js.gz +0 -0
  175. package/build/client/_app/immutable/chunks/Db0q5_zr.js.br +0 -0
  176. package/build/client/_app/immutable/chunks/Db0q5_zr.js.gz +0 -0
  177. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/Dkh4Dwm8.js.br +0 -0
  180. package/build/client/_app/immutable/chunks/Dkh4Dwm8.js.gz +0 -0
  181. package/build/client/_app/immutable/chunks/DnqfXHAL.js +0 -15
  182. package/build/client/_app/immutable/chunks/DnqfXHAL.js.br +0 -0
  183. package/build/client/_app/immutable/chunks/DnqfXHAL.js.gz +0 -0
  184. package/build/client/_app/immutable/chunks/DsYron7_.js +0 -1
  185. package/build/client/_app/immutable/chunks/DsYron7_.js.br +0 -0
  186. package/build/client/_app/immutable/chunks/DsYron7_.js.gz +0 -0
  187. package/build/client/_app/immutable/chunks/DuM1cPdZ.js +0 -1
  188. package/build/client/_app/immutable/chunks/DuM1cPdZ.js.br +0 -0
  189. package/build/client/_app/immutable/chunks/DuM1cPdZ.js.gz +0 -0
  190. package/build/client/_app/immutable/chunks/DvxMaQv_.js.br +0 -0
  191. package/build/client/_app/immutable/chunks/DvxMaQv_.js.gz +0 -0
  192. package/build/client/_app/immutable/chunks/DwOZdLDj.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/DwOZdLDj.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
  195. package/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
  196. package/build/client/_app/immutable/chunks/IlwbfbOu.js.br +0 -0
  197. package/build/client/_app/immutable/chunks/IlwbfbOu.js.gz +0 -0
  198. package/build/client/_app/immutable/chunks/RobXhXPM.js.br +0 -1
  199. package/build/client/_app/immutable/chunks/RobXhXPM.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/Y5urAfNy.js.br +0 -0
  201. package/build/client/_app/immutable/chunks/Y5urAfNy.js.gz +0 -0
  202. package/build/client/_app/immutable/chunks/aI_O2VuQ.js.br +0 -0
  203. package/build/client/_app/immutable/chunks/aI_O2VuQ.js.gz +0 -0
  204. package/build/client/_app/immutable/chunks/b77-bq1n.js.br +0 -0
  205. package/build/client/_app/immutable/chunks/b77-bq1n.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/dqF8mxBW.js.br +0 -0
  207. package/build/client/_app/immutable/chunks/dqF8mxBW.js.gz +0 -0
  208. package/build/client/_app/immutable/chunks/gkAHSOnS.js +0 -1
  209. package/build/client/_app/immutable/chunks/gkAHSOnS.js.br +0 -0
  210. package/build/client/_app/immutable/chunks/gkAHSOnS.js.gz +0 -0
  211. package/build/client/_app/immutable/chunks/pqiPC7Y8.js +0 -3
  212. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.br +0 -0
  213. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.gz +0 -0
  214. package/build/client/_app/immutable/chunks/ti8ecMFX.js +0 -1
  215. package/build/client/_app/immutable/chunks/ti8ecMFX.js.br +0 -0
  216. package/build/client/_app/immutable/chunks/ti8ecMFX.js.gz +0 -0
  217. package/build/client/_app/immutable/chunks/xihTtKlq.js.br +0 -1
  218. package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  219. package/build/client/_app/immutable/chunks/yCfI4PCa.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/yCfI4PCa.js.gz +0 -0
  221. package/build/client/_app/immutable/entry/app.CTR4aUFT.js +0 -2
  222. package/build/client/_app/immutable/entry/app.CTR4aUFT.js.br +0 -0
  223. package/build/client/_app/immutable/entry/app.CTR4aUFT.js.gz +0 -0
  224. package/build/client/_app/immutable/entry/start.CC6Ln8E2.js +0 -1
  225. package/build/client/_app/immutable/entry/start.CC6Ln8E2.js.br +0 -0
  226. package/build/client/_app/immutable/entry/start.CC6Ln8E2.js.gz +0 -0
  227. package/build/client/_app/immutable/nodes/0.CvUxmLsM.js +0 -1
  228. package/build/client/_app/immutable/nodes/0.CvUxmLsM.js.br +0 -0
  229. package/build/client/_app/immutable/nodes/0.CvUxmLsM.js.gz +0 -0
  230. package/build/client/_app/immutable/nodes/1.CbSHqfEx.js +0 -1
  231. package/build/client/_app/immutable/nodes/1.CbSHqfEx.js.br +0 -0
  232. package/build/client/_app/immutable/nodes/1.CbSHqfEx.js.gz +0 -0
  233. package/build/client/_app/immutable/nodes/2.DcD5v8dU.js +0 -5
  234. package/build/client/_app/immutable/nodes/2.DcD5v8dU.js.br +0 -0
  235. package/build/client/_app/immutable/nodes/2.DcD5v8dU.js.gz +0 -0
  236. package/build/client/_app/version.json.br +0 -0
  237. package/build/client/_app/version.json.gz +0 -0
  238. package/build/client/robots.txt.br +0 -0
  239. package/build/client/robots.txt.gz +0 -0
  240. package/build/env.js.map +0 -1
  241. package/build/handler.js.map +0 -1
  242. package/build/index.js.map +0 -1
  243. package/build/server/chunks/chunks/Arc.canvas.js-CN0KDoHG.js +0 -701
  244. package/build/server/chunks/chunks/Arc.canvas.js-CN0KDoHG.js.map +0 -1
  245. package/build/server/chunks/chunks/Arc.js-C8EC9NoE.js +0 -31
  246. package/build/server/chunks/chunks/Arc.js-C8EC9NoE.js.map +0 -1
  247. package/build/server/chunks/chunks/Bar.js-DtAb3LZZ.js +0 -448
  248. package/build/server/chunks/chunks/Bar.js-DtAb3LZZ.js.map +0 -1
  249. package/build/server/chunks/chunks/ChartAnnotations.js-twzDSVzY.js +0 -983
  250. package/build/server/chunks/chunks/ChartAnnotations.js-twzDSVzY.js.map +0 -1
  251. package/build/server/chunks/chunks/Circle.html.js-BJywADGK.js +0 -355
  252. package/build/server/chunks/chunks/Circle.html.js-BJywADGK.js.map +0 -1
  253. package/build/server/chunks/chunks/ClipPath.canvas.js-9Fc0bTEM.js +0 -170
  254. package/build/server/chunks/chunks/ClipPath.canvas.js-9Fc0bTEM.js.map +0 -1
  255. package/build/server/chunks/chunks/DefaultTooltip.js-C2NWK2AD.js +0 -352
  256. package/build/server/chunks/chunks/DefaultTooltip.js-C2NWK2AD.js.map +0 -1
  257. package/build/server/chunks/chunks/EventScatter.js-CO2GonW-.js +0 -7370
  258. package/build/server/chunks/chunks/EventScatter.js-CO2GonW-.js.map +0 -1
  259. package/build/server/chunks/chunks/Labels.js-DB9qoyZ3.js +0 -497
  260. package/build/server/chunks/chunks/Labels.js-DB9qoyZ3.js.map +0 -1
  261. package/build/server/chunks/chunks/Legend.js-B_ArjxQ7.js +0 -343
  262. package/build/server/chunks/chunks/Legend.js-B_ArjxQ7.js.map +0 -1
  263. package/build/server/chunks/chunks/Line.html.js-B1REcOFe.js +0 -423
  264. package/build/server/chunks/chunks/Line.html.js-B1REcOFe.js.map +0 -1
  265. package/build/server/chunks/chunks/Link.canvas.js-nWimAHfH.js +0 -756
  266. package/build/server/chunks/chunks/Link.canvas.js-nWimAHfH.js.map +0 -1
  267. package/build/server/chunks/chunks/Path.canvas.js-5A9wB8zQ.js +0 -1259
  268. package/build/server/chunks/chunks/Path.canvas.js-5A9wB8zQ.js.map +0 -1
  269. package/build/server/chunks/chunks/Points.html.js-B2o3k-ZZ.js +0 -228
  270. package/build/server/chunks/chunks/Points.html.js-B2o3k-ZZ.js.map +0 -1
  271. package/build/server/chunks/chunks/Points.js-D7ozN9W5.js +0 -14
  272. package/build/server/chunks/chunks/Points.js-D7ozN9W5.js.map +0 -1
  273. package/build/server/chunks/chunks/Points2.js-BVbWugLT.js +0 -25
  274. package/build/server/chunks/chunks/Points2.js-BVbWugLT.js.map +0 -1
  275. package/build/server/chunks/chunks/Rect.html.js-DnQ6ObhQ.js +0 -547
  276. package/build/server/chunks/chunks/Rect.html.js-DnQ6ObhQ.js.map +0 -1
  277. package/build/server/chunks/chunks/Spline.js-YnAxvrKY.js +0 -516
  278. package/build/server/chunks/chunks/Spline.js-YnAxvrKY.js.map +0 -1
  279. package/build/server/chunks/chunks/Text.html.js-LbmYJb11.js +0 -847
  280. package/build/server/chunks/chunks/Text.html.js-LbmYJb11.js.map +0 -1
  281. package/build/server/chunks/chunks/TooltipItem.js-Ce-blieA.js +0 -314
  282. package/build/server/chunks/chunks/TooltipItem.js-Ce-blieA.js.map +0 -1
  283. package/build/server/chunks/chunks/Voronoi.js-CalFJAXH.js +0 -2052
  284. package/build/server/chunks/chunks/Voronoi.js-CalFJAXH.js.map +0 -1
  285. package/build/server/chunks/chunks/archive.js-D2jtMmDo.js.map +0 -1
  286. package/build/server/chunks/chunks/array.js-CBp0H4t3.js +0 -8
  287. package/build/server/chunks/chunks/array.js-CBp0H4t3.js.map +0 -1
  288. package/build/server/chunks/chunks/attributes.js-CbKEpZKa.js +0 -25
  289. package/build/server/chunks/chunks/attributes.js-CbKEpZKa.js.map +0 -1
  290. package/build/server/chunks/chunks/band.js-CjzHWr4k.js +0 -155
  291. package/build/server/chunks/chunks/band.js-CjzHWr4k.js.map +0 -1
  292. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js +0 -1356
  293. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js.map +0 -1
  294. package/build/server/chunks/chunks/common.js-BvQnfkFo.js +0 -5760
  295. package/build/server/chunks/chunks/common.js-BvQnfkFo.js.map +0 -1
  296. package/build/server/chunks/chunks/env.js-l0sNRNKZ.js.map +0 -1
  297. package/build/server/chunks/chunks/env2.js-C5BgBJDY.js.map +0 -1
  298. package/build/server/chunks/chunks/events.js-zIVaXIP1.js +0 -95
  299. package/build/server/chunks/chunks/events.js-zIVaXIP1.js.map +0 -1
  300. package/build/server/chunks/chunks/exports.js-ClPPfcHj.js.map +0 -1
  301. package/build/server/chunks/chunks/group.js-D0SfevId.js +0 -30
  302. package/build/server/chunks/chunks/group.js-D0SfevId.js.map +0 -1
  303. package/build/server/chunks/chunks/identity.js-NmGXxBz3.js.map +0 -1
  304. package/build/server/chunks/chunks/index-server.js-CtH9Hqwf.js.map +0 -1
  305. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js +0 -2
  306. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js.map +0 -1
  307. package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js.map +0 -1
  308. package/build/server/chunks/chunks/internal2.js-CfVVfAb5.js +0 -188
  309. package/build/server/chunks/chunks/internal2.js-CfVVfAb5.js.map +0 -1
  310. package/build/server/chunks/chunks/key.svelte.js-Cq0L6YlN.js +0 -695
  311. package/build/server/chunks/chunks/key.svelte.js-Cq0L6YlN.js.map +0 -1
  312. package/build/server/chunks/chunks/legacy-client.js-DAqKExQD.js.map +0 -1
  313. package/build/server/chunks/chunks/level-filter.js-D9MNrew3.js.map +0 -1
  314. package/build/server/chunks/chunks/lineRadial.js-B7ZNP_Jp.js +0 -126
  315. package/build/server/chunks/chunks/lineRadial.js-B7ZNP_Jp.js.map +0 -1
  316. package/build/server/chunks/chunks/linear.js-CHlwr1I4.js +0 -1046
  317. package/build/server/chunks/chunks/linear.js-CHlwr1I4.js.map +0 -1
  318. package/build/server/chunks/chunks/log-buffer.js-A9FA-Qv8.js.map +0 -1
  319. package/build/server/chunks/chunks/math.js-BqujbaBs.js +0 -50
  320. package/build/server/chunks/chunks/math.js-BqujbaBs.js.map +0 -1
  321. package/build/server/chunks/chunks/max.js-CuS0BpRI.js +0 -11
  322. package/build/server/chunks/chunks/max.js-CuS0BpRI.js.map +0 -1
  323. package/build/server/chunks/chunks/min.js-DZWt5tPl.js +0 -11
  324. package/build/server/chunks/chunks/min.js-DZWt5tPl.js.map +0 -1
  325. package/build/server/chunks/chunks/motion.svelte.js-Crk8ri1u.js +0 -677
  326. package/build/server/chunks/chunks/motion.svelte.js-Crk8ri1u.js.map +0 -1
  327. package/build/server/chunks/chunks/occlusion.js-ot9_OqWn.js +0 -33
  328. package/build/server/chunks/chunks/occlusion.js-ot9_OqWn.js.map +0 -1
  329. package/build/server/chunks/chunks/path.js-BizMrlzb.js +0 -488
  330. package/build/server/chunks/chunks/path.js-BizMrlzb.js.map +0 -1
  331. package/build/server/chunks/chunks/path2.js-DLVU8nc9.js +0 -27
  332. package/build/server/chunks/chunks/path2.js-DLVU8nc9.js.map +0 -1
  333. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js +0 -7
  334. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js.map +0 -1
  335. package/build/server/chunks/chunks/rect.svelte.js-_0PgI5fe.js +0 -187
  336. package/build/server/chunks/chunks/rect.svelte.js-_0PgI5fe.js.map +0 -1
  337. package/build/server/chunks/chunks/regions.js-COf7DgnH.js.map +0 -1
  338. package/build/server/chunks/chunks/scales.svelte.js-DeNkKcI-.js +0 -276
  339. package/build/server/chunks/chunks/scales.svelte.js-DeNkKcI-.js.map +0 -1
  340. package/build/server/chunks/chunks/series-buckets.js-C-vMEJT2.js +0 -316
  341. package/build/server/chunks/chunks/series-buckets.js-C-vMEJT2.js.map +0 -1
  342. package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js.map +0 -1
  343. package/build/server/chunks/chunks/shared.js-CgjUIvRK.js.map +0 -1
  344. package/build/server/chunks/chunks/source.js-DZEVvuho.js.map +0 -1
  345. package/build/server/chunks/chunks/state.js-i-NVNGIq.js.map +0 -1
  346. package/build/server/chunks/chunks/time-range.js-BLMT8aU3.js.map +0 -1
  347. package/build/server/chunks/chunks/types.js-x3GyGPOz.js +0 -11
  348. package/build/server/chunks/chunks/types.js-x3GyGPOz.js.map +0 -1
  349. package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js.map +0 -1
  350. package/build/server/chunks/chunks/utils.js-BIlHjgGW.js.map +0 -1
  351. package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-C4hWyXuu.js.map +0 -1
  352. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-C5tfrpmC.js.map +0 -1
  353. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-PWRPScuN.js.map +0 -1
  354. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-D4y43Vwe.js.map +0 -1
  355. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-9_g0ojki.js.map +0 -1
  356. package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DibT3Hjc.js.map +0 -1
  357. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BxXw5K0R.js.map +0 -1
  358. package/build/server/chunks/entries/fallbacks/error.svelte.js-ylsqA41Y.js.map +0 -1
  359. package/build/server/chunks/entries/pages/_layout.svelte.js-D7sAdBVX.js +0 -113
  360. package/build/server/chunks/entries/pages/_layout.svelte.js-D7sAdBVX.js.map +0 -1
  361. package/build/server/chunks/entries/pages/_page.svelte.js-C9-7d7mD.js.map +0 -1
  362. package/build/server/chunks/handler-Bqo8aDgP.js.map +0 -1
  363. package/build/server/chunks/index.js-fPvMujCL.js.map +0 -1
  364. package/build/server/chunks/manifest.js-Bkj-8GaD.js.map +0 -1
  365. package/build/server/chunks/nodes/0.js-7J6kXnEo.js +0 -9
  366. package/build/server/chunks/nodes/0.js-7J6kXnEo.js.map +0 -1
  367. package/build/server/chunks/nodes/1.js-DZXnUx67.js +0 -9
  368. package/build/server/chunks/nodes/1.js-DZXnUx67.js.map +0 -1
  369. package/build/server/chunks/nodes/2.js-85y9-1SS.js +0 -9
  370. package/build/server/chunks/nodes/2.js-85y9-1SS.js.map +0 -1
  371. package/build/shims.js.map +0 -1
@@ -1,756 +0,0 @@
1
- import { af as bind_props, an as spread_props, a1 as derived, a6 as ensure_array_like } from './index-server.js-CtH9Hqwf.js';
2
- import { a as getChartContext, b as cls, e as accessor } from './common.js-BvQnfkFo.js';
3
- import { a as getMarkData } from './key.svelte.js-Cq0L6YlN.js';
4
- import { w as withPath, c as constant_default } from './path2.js-DLVU8nc9.js';
5
- import { b as Path_canvas, a as Path_svg, i as interpolatePath } from './Path.canvas.js-5A9wB8zQ.js';
6
- import { s as slice } from './array.js-CBp0H4t3.js';
7
- import { l as lineRadial_default, a as line_default, x, y } from './lineRadial.js-B7ZNP_Jp.js';
8
- import { p as pointRadial_default } from './pointRadial.js-Deeu1LXx.js';
9
- import { e as extractTweenConfig, d as createMotion } from './motion.svelte.js-Crk8ri1u.js';
10
- import { g as getTextRect } from './Text.html.js-LbmYJb11.js';
11
-
12
- //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
13
- var Bump = class {
14
- constructor(context, x) {
15
- this._context = context;
16
- this._x = x;
17
- }
18
- areaStart() {
19
- this._line = 0;
20
- }
21
- areaEnd() {
22
- this._line = NaN;
23
- }
24
- lineStart() {
25
- this._point = 0;
26
- }
27
- lineEnd() {
28
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
29
- this._line = 1 - this._line;
30
- }
31
- point(x, y) {
32
- x = +x, y = +y;
33
- switch (this._point) {
34
- case 0:
35
- this._point = 1;
36
- if (this._line) this._context.lineTo(x, y);
37
- else this._context.moveTo(x, y);
38
- break;
39
- case 1: this._point = 2;
40
- default: if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
41
- else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
42
- }
43
- this._x0 = x, this._y0 = y;
44
- }
45
- };
46
- var BumpRadial = class {
47
- constructor(context) {
48
- this._context = context;
49
- }
50
- lineStart() {
51
- this._point = 0;
52
- }
53
- lineEnd() {}
54
- point(x, y) {
55
- x = +x, y = +y;
56
- if (this._point === 0) this._point = 1;
57
- else {
58
- const p0 = pointRadial_default(this._x0, this._y0);
59
- const p1 = pointRadial_default(this._x0, this._y0 = (this._y0 + y) / 2);
60
- const p2 = pointRadial_default(x, this._y0);
61
- const p3 = pointRadial_default(x, y);
62
- this._context.moveTo(...p0);
63
- this._context.bezierCurveTo(...p1, ...p2, ...p3);
64
- }
65
- this._x0 = x, this._y0 = y;
66
- }
67
- };
68
- function bumpX(context) {
69
- return new Bump(context, true);
70
- }
71
- function bumpY(context) {
72
- return new Bump(context, false);
73
- }
74
- function bumpRadial(context) {
75
- return new BumpRadial(context);
76
- }
77
- //#endregion
78
- //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/link.js
79
- function linkSource(d) {
80
- return d.source;
81
- }
82
- function linkTarget(d) {
83
- return d.target;
84
- }
85
- function link(curve) {
86
- let source = linkSource, target = linkTarget, x$1 = x, y$1 = y, context = null, output = null, path = withPath(link);
87
- function link() {
88
- let buffer;
89
- const argv = slice.call(arguments);
90
- const s = source.apply(this, argv);
91
- const t = target.apply(this, argv);
92
- if (context == null) output = curve(buffer = path());
93
- output.lineStart();
94
- argv[0] = s, output.point(+x$1.apply(this, argv), +y$1.apply(this, argv));
95
- argv[0] = t, output.point(+x$1.apply(this, argv), +y$1.apply(this, argv));
96
- output.lineEnd();
97
- if (buffer) return output = null, buffer + "" || null;
98
- }
99
- link.source = function(_) {
100
- return arguments.length ? (source = _, link) : source;
101
- };
102
- link.target = function(_) {
103
- return arguments.length ? (target = _, link) : target;
104
- };
105
- link.x = function(_) {
106
- return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant_default(+_), link) : x$1;
107
- };
108
- link.y = function(_) {
109
- return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant_default(+_), link) : y$1;
110
- };
111
- link.context = function(_) {
112
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), link) : context;
113
- };
114
- return link;
115
- }
116
- function linkRadial() {
117
- const l = link(bumpRadial);
118
- l.angle = l.x, delete l.x;
119
- l.radius = l.y, delete l.y;
120
- return l;
121
- }
122
- //#endregion
123
- //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
124
- function Step(context, t) {
125
- this._context = context;
126
- this._t = t;
127
- }
128
- Step.prototype = {
129
- areaStart: function() {
130
- this._line = 0;
131
- },
132
- areaEnd: function() {
133
- this._line = NaN;
134
- },
135
- lineStart: function() {
136
- this._x = this._y = NaN;
137
- this._point = 0;
138
- },
139
- lineEnd: function() {
140
- if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
141
- if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
142
- if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
143
- },
144
- point: function(x, y) {
145
- x = +x, y = +y;
146
- switch (this._point) {
147
- case 0:
148
- this._point = 1;
149
- this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y);
150
- break;
151
- case 1: this._point = 2;
152
- default: if (this._t <= 0) {
153
- this._context.lineTo(this._x, y);
154
- this._context.lineTo(x, y);
155
- } else {
156
- var x1 = this._x * (1 - this._t) + x * this._t;
157
- this._context.lineTo(x1, this._y);
158
- this._context.lineTo(x1, y);
159
- }
160
- }
161
- this._x = x, this._y = y;
162
- }
163
- };
164
- function step_default(context) {
165
- return new Step(context, .5);
166
- }
167
- function stepBefore(context) {
168
- return new Step(context, 0);
169
- }
170
- function stepAfter(context) {
171
- return new Step(context, 1);
172
- }
173
- //#endregion
174
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/utils/labelPlacement.js
175
- /**
176
- * Resolve where a `smart` (or discrete) placement puts a label attached to a point —
177
- * text position, anchors, and leader direction. Shared by `<AnnotationPoint>` and
178
- * `<Labels layout="voronoi" links>`, so labels can be measured/occluded with the exact
179
- * geometry the component renders instead of re-deriving it.
180
- */
181
- function getPointLabelLayout(options) {
182
- const { x: px, y: py, r = 4, labelPlacement = "center", labelX, labelY, labelXOffset = 0, labelYOffset = 0, fontSize = 16, labelGap = 2, link = false, verticalAnchor } = options;
183
- const explicit = labelX != null || labelY != null;
184
- const capHeight = fontSize * .71;
185
- let dirX = 0;
186
- let dirY = 0;
187
- if (labelPlacement === "smart") {
188
- const ddx = (labelX ?? px) - px;
189
- const ddy = (labelY ?? py) - py;
190
- const ax = Math.abs(ddx);
191
- const ay = Math.abs(ddy);
192
- if (ax > 1e-6 || ay > 1e-6) {
193
- dirX = ax >= ay * .4 ? Math.sign(ddx) : 0;
194
- dirY = ay >= ax * .4 ? Math.sign(ddy) : 0;
195
- }
196
- } else if (labelPlacement !== "center") {
197
- dirX = labelPlacement.includes("left") ? -1 : labelPlacement.includes("right") ? 1 : 0;
198
- dirY = labelPlacement.includes("top") ? -1 : labelPlacement.includes("bottom") ? 1 : 0;
199
- }
200
- const mag = Math.hypot(dirX, dirY) || 1;
201
- const signX = dirX < 0 ? -1 : 1;
202
- const signY = dirY < 0 ? -1 : 1;
203
- const anchorX = explicit ? labelX ?? px : px + r * dirX / mag + labelXOffset * signX;
204
- const anchorY = explicit ? labelY ?? py : py + r * dirY / mag + labelYOffset * signY;
205
- const gap = link ? labelGap : 0;
206
- const adx = anchorX - px;
207
- const ady = anchorY - py;
208
- const adist = Math.hypot(adx, ady) || 1;
209
- const gapX = gap * adx / adist;
210
- const gapY = gap * ady / adist;
211
- const capBias = verticalAnchor != null ? 0 : dirY > 0 ? capHeight / 2 : dirY < 0 ? -capHeight / 2 : 0;
212
- return {
213
- direction: {
214
- x: dirX,
215
- y: dirY
216
- },
217
- anchor: {
218
- x: anchorX,
219
- y: anchorY
220
- },
221
- text: {
222
- x: anchorX + gapX,
223
- y: anchorY + gapY + capBias,
224
- textAnchor: dirX > 0 ? "start" : dirX < 0 ? "end" : "middle",
225
- verticalAnchor: "middle"
226
- }
227
- };
228
- }
229
- /**
230
- * Bounding box of a point label, combining {@link getPointLabelLayout} with `getTextRect` —
231
- * a reliable `bounds` for `occlude()` when hiding overlapping labels.
232
- */
233
- function getPointLabelRect(label, options) {
234
- const { text } = getPointLabelLayout(options);
235
- return getTextRect(label, text.x, text.y, {
236
- textAnchor: text.textAnchor,
237
- verticalAnchor: text.verticalAnchor,
238
- fontSize: options.fontSize ?? 16
239
- });
240
- }
241
- //#endregion
242
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/utils/linkUtils.js
243
- function isSamePoint(p1, p2) {
244
- return Math.abs(p1.x - p2.x) < 1e-6 && Math.abs(p1.y - p2.y) < 1e-6;
245
- }
246
- function createDirectPath(source, target) {
247
- if (isSamePoint(source, target)) return "";
248
- return `M ${source.x} ${source.y} L ${target.x} ${target.y}`;
249
- }
250
- function isNearZero(value) {
251
- return Math.abs(value) < 1e-6;
252
- }
253
- function createSquarePath({ source, target, sweep }) {
254
- if (sweep === "horizontal-vertical") return `M ${source.x} ${source.y} L ${target.x} ${source.y} L ${target.x} ${target.y}`;
255
- else return `M ${source.x} ${source.y} L ${source.x} ${target.y} L ${target.x} ${target.y}`;
256
- }
257
- function createBeveledPath(opts) {
258
- const { radius, dx, dy, source, target, sweep } = opts;
259
- const effectiveRadius = Math.max(0, Math.min(radius, Math.abs(dx), Math.abs(dy)));
260
- if (isNearZero(effectiveRadius)) return createSquarePath(opts);
261
- const signX = Math.sign(dx);
262
- const signY = Math.sign(dy);
263
- if (sweep === "horizontal-vertical") {
264
- const pBeforeCorner = {
265
- x: target.x - effectiveRadius * signX,
266
- y: source.y
267
- };
268
- const pAfterCorner = {
269
- x: target.x,
270
- y: source.y + effectiveRadius * signY
271
- };
272
- return `M ${source.x} ${source.y} L ${pBeforeCorner.x} ${pBeforeCorner.y} L ${pAfterCorner.x} ${pAfterCorner.y} L ${target.x} ${target.y}`;
273
- } else {
274
- const pBeforeCorner = {
275
- x: source.x,
276
- y: target.y - effectiveRadius * signY
277
- };
278
- const pAfterCorner = {
279
- x: source.x + effectiveRadius * signX,
280
- y: target.y
281
- };
282
- return `M ${source.x} ${source.y} L ${pBeforeCorner.x} ${pBeforeCorner.y} L ${pAfterCorner.x} ${pAfterCorner.y} L ${target.x} ${target.y}`;
283
- }
284
- }
285
- function createRoundedPath(opts) {
286
- const { radius, dx, dy, source, target, sweep } = opts;
287
- const effectiveRadius = Math.max(0, Math.min(radius, Math.abs(dx), Math.abs(dy)));
288
- if (isNearZero(effectiveRadius)) return createSquarePath(opts);
289
- const signX = Math.sign(dx);
290
- const signY = Math.sign(dy);
291
- if (sweep === "horizontal-vertical") {
292
- const pBeforeCorner = {
293
- x: target.x - effectiveRadius * signX,
294
- y: source.y
295
- };
296
- const pAfterCorner = {
297
- x: target.x,
298
- y: source.y + effectiveRadius * signY
299
- };
300
- const sweepFlag = signX * signY > 0 ? 1 : 0;
301
- return `M ${source.x} ${source.y} L ${pBeforeCorner.x} ${pBeforeCorner.y} A ${effectiveRadius} ${effectiveRadius} 0 0 ${sweepFlag} ${pAfterCorner.x} ${pAfterCorner.y} L ${target.x} ${target.y}`;
302
- } else {
303
- const pBeforeCorner = {
304
- x: source.x,
305
- y: target.y - effectiveRadius * signY
306
- };
307
- const pAfterCorner = {
308
- x: source.x + effectiveRadius * signX,
309
- y: target.y
310
- };
311
- const sweepFlag = signX * signY > 0 ? 0 : 1;
312
- return `M ${source.x} ${source.y} L ${pBeforeCorner.x} ${pBeforeCorner.y} A ${effectiveRadius} ${effectiveRadius} 0 0 ${sweepFlag} ${pAfterCorner.x} ${pAfterCorner.y} L ${target.x} ${target.y}`;
313
- }
314
- }
315
- /**
316
- * Swoop: circular arc between source and target. Equivalent to ObservablePlot's
317
- * Arrow `bend` option — positive angle bends right (clockwise from source to
318
- * target), negative bends left, 0 is a straight line.
319
- */
320
- function createSwoopPath({ source, target, dx, dy, bend = 22.5 }) {
321
- const chordLen = Math.hypot(dx, dy);
322
- const bendRad = bend * Math.PI / 180;
323
- if (Math.abs(bendRad) < 1e-6 || chordLen < 1e-6) return createDirectPath(source, target);
324
- const arcRadius = chordLen / (2 * Math.sin(Math.abs(bendRad)));
325
- const largeArc = Math.abs(bend) > 90 ? 1 : 0;
326
- const sweepFlag = bend > 0 ? 1 : 0;
327
- return `M${source.x},${source.y}A${arcRadius},${arcRadius} 0 ${largeArc} ${sweepFlag} ${target.x},${target.y}`;
328
- }
329
- var pathStrategies = {
330
- square: createSquarePath,
331
- beveled: createBeveledPath,
332
- rounded: createRoundedPath,
333
- swoop: createSwoopPath
334
- };
335
- function getLinkPresetPath(opts) {
336
- const { source, target, type } = opts;
337
- if (isSamePoint(source, target)) return "";
338
- const dx = target.x - source.x;
339
- const dy = target.y - source.y;
340
- if (type === "straight" || type !== "swoop" && (isNearZero(dx) || isNearZero(dy))) return createDirectPath(source, target);
341
- return (pathStrategies[type] || pathStrategies.square)({
342
- ...opts,
343
- dx,
344
- dy
345
- });
346
- }
347
- var FALLBACK_PATH = "M0,0L0,0";
348
- function getLinkD3Path({ source, target, sweep, curve, orientation = "horizontal" }) {
349
- const dx = target.x - source.x;
350
- const dy = target.y - source.y;
351
- if (orientation === "vertical" && sweep === "none") {
352
- const { x: sx, y: sy } = source;
353
- const { x: tx, y: ty } = target;
354
- if (curve === step_default) {
355
- const my = (sy + ty) / 2;
356
- return `M${sx},${sy}L${sx},${my}L${tx},${my}L${tx},${ty}`;
357
- }
358
- if (curve === stepBefore) return `M${sx},${sy}L${tx},${sy}L${tx},${ty}`;
359
- if (curve === stepAfter) return `M${sx},${sy}L${sx},${ty}L${tx},${ty}`;
360
- }
361
- const line = line_default().curve(curve);
362
- let points = [];
363
- const isAligned = isNearZero(dx) || isNearZero(dy);
364
- if (sweep === "none" || isAligned) points = [[source.x, source.y], [target.x, target.y]];
365
- else if (sweep === "horizontal-vertical") points = [
366
- [source.x, source.y],
367
- [target.x, source.y],
368
- [target.x, target.y]
369
- ];
370
- else if (sweep === "vertical-horizontal") points = [
371
- [source.x, source.y],
372
- [source.x, target.y],
373
- [target.x, target.y]
374
- ];
375
- if (points.length === 2 && isNearZero(dx) && isNearZero(dx)) return FALLBACK_PATH;
376
- const d = line(points);
377
- if (!d || d.includes("NaN")) return FALLBACK_PATH;
378
- return d;
379
- }
380
- function radialGeometry(source, target) {
381
- const sa = source.x - Math.PI / 2;
382
- const sr = source.y;
383
- const ta = target.x - Math.PI / 2;
384
- const tr = target.y;
385
- const sc = Math.cos(sa);
386
- const ss = Math.sin(sa);
387
- const tc = Math.cos(ta);
388
- const ts = Math.sin(ta);
389
- const sweepFlag = Math.abs(ta - sa) > Math.PI ? ta <= sa ? 1 : 0 : ta > sa ? 1 : 0;
390
- return {
391
- sa,
392
- sr,
393
- ta,
394
- tr,
395
- sc,
396
- ss,
397
- tc,
398
- ts,
399
- sx: sr * sc,
400
- sy: sr * ss,
401
- tx: tr * tc,
402
- ty: tr * ts,
403
- sweepFlag
404
- };
405
- }
406
- function getLinkRadialPresetPath({ source, target, type, radius, bend = 22.5 }) {
407
- const { sr, tr, sc, ss, tc, ts, sx, sy, tx, ty, sweepFlag } = radialGeometry(source, target);
408
- if (type === "straight") return `M${sx},${sy}L${tx},${ty}`;
409
- if (type === "swoop") {
410
- const dx = tx - sx;
411
- const dy = ty - sy;
412
- const chordLen = Math.hypot(dx, dy);
413
- const bendRad = bend * Math.PI / 180;
414
- if (Math.abs(bendRad) < 1e-6 || chordLen < 1e-6) return `M${sx},${sy}L${tx},${ty}`;
415
- const arcRadius = chordLen / (2 * Math.sin(Math.abs(bendRad)));
416
- return `M${sx},${sy}A${arcRadius},${arcRadius} 0 ${Math.abs(bend) > 90 ? 1 : 0} ${bend > 0 ? 1 : 0} ${tx},${ty}`;
417
- }
418
- if (type === "rounded") {
419
- const percent = .2;
420
- const dx = tx - sx;
421
- const dy = ty - sy;
422
- const ix = percent * (dx + dy);
423
- const iy = percent * (dy - dx);
424
- return `M${sx},${sy}C${sx + ix},${sy + iy} ${tx + iy},${ty - ix} ${tx},${ty}`;
425
- }
426
- if (type === "square") {
427
- if (sr < 1e-6) return `M${sx},${sy}L${tx},${ty}`;
428
- const mr = (sr + tr) / 2;
429
- return `M${sx},${sy}L${mr * sc},${mr * ss}A${mr},${mr},0,0,${sweepFlag},${mr * tc},${mr * ts}L${tx},${ty}`;
430
- }
431
- const cornerX = sr * tc;
432
- const cornerY = sr * ts;
433
- const chordDx = cornerX - sx;
434
- const chordDy = cornerY - sy;
435
- const chordLen = Math.hypot(chordDx, chordDy);
436
- if (chordLen < 1e-6) return `M${sx},${sy}L${tx},${ty}`;
437
- const radialLen = Math.abs(tr - sr) || 1;
438
- const r = Math.max(0, Math.min(radius, chordLen, radialLen));
439
- const cux = chordDx / chordLen;
440
- const cuy = chordDy / chordLen;
441
- const radialDir = Math.sign(tr - sr) || 1;
442
- return `M${sx},${sy}L${cornerX - r * cux},${cornerY - r * cuy}L${cornerX + radialDir * r * tc},${cornerY + radialDir * r * ts}L${tx},${ty}`;
443
- }
444
- function getLinkRadialD3Path({ source, target, curve }) {
445
- const { sr, tr, sc, ss, tc, ts, sx, sy, tx, ty, sweepFlag } = radialGeometry(source, target);
446
- if (curve === stepBefore || curve === stepAfter || curve === step_default) {
447
- if (sr < 1e-6) return `M${sx},${sy}L${tx},${ty}`;
448
- }
449
- if (curve === stepBefore) return `M${sx},${sy}A${sr},${sr},0,0,${sweepFlag},${sr * tc},${sr * ts}L${tx},${ty}`;
450
- if (curve === stepAfter) return `M${sx},${sy}L${tr * sc},${tr * ss}A${tr},${tr},0,0,${sweepFlag},${tx},${ty}`;
451
- if (curve === step_default) {
452
- const mr = (sr + tr) / 2;
453
- return `M${sx},${sy}L${mr * sc},${mr * ss}A${mr},${mr},0,0,${sweepFlag},${mr * tc},${mr * ts}L${tx},${ty}`;
454
- }
455
- if (curve) return lineRadial_default().curve(curve)([[source.x, source.y], [target.x, target.y]]) ?? FALLBACK_PATH;
456
- return linkRadial().angle((d) => d.x).radius((d) => d.y)({
457
- source,
458
- target
459
- }) ?? FALLBACK_PATH;
460
- }
461
- //#endregion
462
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Link/Link.shared.svelte.js
463
- var LINK_FALLBACK_COORDS = {
464
- x: 0,
465
- y: 0
466
- };
467
- function isAccessorAccessor(value) {
468
- return typeof value === "string" || typeof value === "function";
469
- }
470
- //#endregion
471
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Link/Link.base.svelte
472
- function Link_base($$renderer, $$props) {
473
- $$renderer.component(($$renderer) => {
474
- const ctx = getChartContext();
475
- const markData = getMarkData();
476
- let { Path, x1, y1, x2, y2, data, sankey = false, source: sourceProp, target: targetProp, x: xProp, y: yProp, orientation: orientationProp, curve: curveProp, type = "d3", sweep: sweepProp, radius = 20, bend = 22.5, radial: radialProp, marker, markerStart, markerMid, markerEnd, motion, pathRef = void 0, pathData: pathDataProp, class: classProp, $$slots, $$events, ...restProps } = $$props;
477
- const radial = derived(() => radialProp ?? ctx.radial ?? false);
478
- const orientation = derived(() => {
479
- if (orientationProp) return orientationProp;
480
- if (sankey) return "horizontal";
481
- return "vertical";
482
- });
483
- const curve = derived(() => {
484
- if (curveProp) return curveProp;
485
- if (orientation() === "horizontal") return bumpX;
486
- return bumpY;
487
- });
488
- const sweep = derived(() => {
489
- if (type === "d3") return sweepProp ?? "none";
490
- if (sweepProp && sweepProp !== "none") return sweepProp;
491
- return orientation() === "vertical" ? "horizontal-vertical" : "vertical-horizontal";
492
- });
493
- const isArrayMode = derived(() => isAccessorAccessor(x1) || isAccessorAccessor(y1) || isAccessorAccessor(x2) || isAccessorAccessor(y2));
494
- const isPixelMode = derived(() => !isArrayMode() && (typeof x1 === "number" || typeof y1 === "number" || typeof x2 === "number" || typeof y2 === "number"));
495
- const sourceAccessor = derived(() => {
496
- if (sourceProp) return sourceProp;
497
- if (sankey) return (d) => ({
498
- node: d.source,
499
- y: d.y0,
500
- isSource: true
501
- });
502
- return (d) => d.source;
503
- });
504
- const targetAccessor = derived(() => {
505
- if (targetProp) return targetProp;
506
- if (sankey) return (d) => ({
507
- node: d.target,
508
- y: d.y1,
509
- isSource: false
510
- });
511
- return (d) => d.target;
512
- });
513
- const xAccessor = derived(() => {
514
- if (xProp) return xProp;
515
- if (sankey) return (d) => d.isSource ? d.node.x1 : d.node.x0;
516
- if (radial()) return (d) => d.x;
517
- return (d) => orientation() === "horizontal" ? d.y : d.x;
518
- });
519
- const yAccessor = derived(() => {
520
- if (yProp) return yProp;
521
- if (sankey) return (d) => d.y;
522
- if (radial()) return (d) => d.y;
523
- return (d) => orientation() === "horizontal" ? d.x : d.y;
524
- });
525
- const x1Accessor = derived(() => accessor(x1));
526
- const y1Accessor = derived(() => accessor(y1));
527
- const x2Accessor = derived(() => accessor(x2));
528
- const y2Accessor = derived(() => accessor(y2));
529
- const resolveArrayCoords = (d) => {
530
- const sxRaw = x1Accessor()(d);
531
- const syRaw = y1Accessor()(d);
532
- const txRaw = x2Accessor()(d);
533
- const tyRaw = y2Accessor()(d);
534
- const scaleX = typeof x1 === "string" || typeof x1 === "function" ? ctx.xScale : null;
535
- const scaleY = typeof y1 === "string" || typeof y1 === "function" ? ctx.yScale : null;
536
- const sx = scaleX && sxRaw != null ? scaleX(sxRaw) : typeof sxRaw === "number" ? sxRaw : 0;
537
- const sy = scaleY && syRaw != null ? scaleY(syRaw) : typeof syRaw === "number" ? syRaw : 0;
538
- const tx = scaleX && txRaw != null ? scaleX(txRaw) : typeof txRaw === "number" ? txRaw : 0;
539
- const ty = scaleY && tyRaw != null ? scaleY(tyRaw) : typeof tyRaw === "number" ? tyRaw : 0;
540
- return {
541
- source: {
542
- x: Number.isFinite(sx) ? sx : 0,
543
- y: Number.isFinite(sy) ? sy : 0
544
- },
545
- target: {
546
- x: Number.isFinite(tx) ? tx : 0,
547
- y: Number.isFinite(ty) ? ty : 0
548
- }
549
- };
550
- };
551
- const singleSourceCoords = derived(() => {
552
- if (isPixelMode()) return {
553
- x: typeof x1 === "number" ? x1 : 0,
554
- y: typeof y1 === "number" ? y1 : 0
555
- };
556
- if (!data) return LINK_FALLBACK_COORDS;
557
- try {
558
- const sourceData = sourceAccessor()(data);
559
- if (sourceData == null) return LINK_FALLBACK_COORDS;
560
- const xVal = xAccessor()(sourceData);
561
- const yVal = yAccessor()(sourceData);
562
- return {
563
- x: Number.isFinite(xVal) ? xVal : 0,
564
- y: Number.isFinite(yVal) ? yVal : 0
565
- };
566
- } catch (e) {
567
- console.error("Error accessing source coordinates:", e, "Data:", data);
568
- return LINK_FALLBACK_COORDS;
569
- }
570
- });
571
- const singleTargetCoords = derived(() => {
572
- if (isPixelMode()) return {
573
- x: typeof x2 === "number" ? x2 : 100,
574
- y: typeof y2 === "number" ? y2 : 100
575
- };
576
- if (!data) return LINK_FALLBACK_COORDS;
577
- try {
578
- const targetData = targetAccessor()(data);
579
- if (targetData == null) return LINK_FALLBACK_COORDS;
580
- const xVal = xAccessor()(targetData);
581
- const yVal = yAccessor()(targetData);
582
- return {
583
- x: Number.isFinite(xVal) ? xVal : 0,
584
- y: Number.isFinite(yVal) ? yVal : 0
585
- };
586
- } catch (e) {
587
- console.error("Error accessing target coordinates:", e, "Data:", data);
588
- return LINK_FALLBACK_COORDS;
589
- }
590
- });
591
- function buildPath(source, target) {
592
- if (pathDataProp) return pathDataProp;
593
- if (radial()) return type === "d3" ? getLinkRadialD3Path({
594
- source,
595
- target,
596
- curve: curve()
597
- }) : getLinkRadialPresetPath({
598
- source,
599
- target,
600
- type,
601
- radius,
602
- bend
603
- });
604
- if (type === "d3") return getLinkD3Path({
605
- source,
606
- target,
607
- sweep: sweep(),
608
- curve: curve(),
609
- orientation: orientation()
610
- });
611
- return getLinkPresetPath({
612
- source,
613
- target,
614
- sweep: sweep(),
615
- type,
616
- radius,
617
- bend
618
- });
619
- }
620
- const singlePathData = derived(() => isArrayMode() ? "" : buildPath(singleSourceCoords(), singleTargetCoords()));
621
- const extractedTween = extractTweenConfig(motion);
622
- const tweenOptions = extractedTween ? {
623
- type: extractedTween.type,
624
- options: {
625
- interpolate: interpolatePath,
626
- ...extractedTween.options
627
- }
628
- } : void 0;
629
- const motionPath = createMotion("", () => singlePathData(), tweenOptions);
630
- const getPathData = () => motionPath.current;
631
- const arrayRows = derived(() => isArrayMode() ? markData(data) : []);
632
- function resolvePerDatum(value, d) {
633
- return typeof value === "function" ? value(d) : value;
634
- }
635
- function resolveClass(d) {
636
- return resolvePerDatum(classProp, d);
637
- }
638
- const strokeProp = derived(() => restProps.stroke);
639
- const fillProp = derived(() => restProps.fill);
640
- const strokeWidthProp = derived(() => restProps["stroke-width"] ?? restProps.strokeWidth);
641
- let $$settled = true;
642
- let $$inner_renderer;
643
- function $$render_inner($$renderer) {
644
- if (isArrayMode()) {
645
- $$renderer.push(`<!--[0--><!--[-->`);
646
- const each_array = ensure_array_like(arrayRows());
647
- for (let i = 0, $$length = each_array.length; i < $$length; i++) {
648
- let d = each_array[i];
649
- const { source, target } = resolveArrayCoords(d);
650
- const resolvedStroke = resolvePerDatum(strokeProp(), d) ?? (ctx.config.c ? ctx.cGet(d) : void 0);
651
- if (Path) {
652
- $$renderer.push("<!--[-->");
653
- Path($$renderer, spread_props([
654
- {
655
- pathData: buildPath(source, target),
656
- marker,
657
- markerStart,
658
- markerMid,
659
- markerEnd
660
- },
661
- restProps,
662
- {
663
- stroke: resolvedStroke,
664
- fill: resolvePerDatum(fillProp(), d),
665
- "stroke-width": resolvePerDatum(strokeWidthProp(), d),
666
- class: cls("lc-link", resolveClass(d))
667
- }
668
- ]));
669
- $$renderer.push("<!--]-->");
670
- } else {
671
- $$renderer.push("<!--[!-->");
672
- $$renderer.push("<!--]-->");
673
- }
674
- }
675
- $$renderer.push(`<!--]-->`);
676
- } else {
677
- $$renderer.push("<!--[-1-->");
678
- if (Path) {
679
- $$renderer.push("<!--[-->");
680
- Path($$renderer, spread_props([
681
- {
682
- pathData: getPathData,
683
- marker,
684
- markerStart,
685
- markerMid,
686
- markerEnd
687
- },
688
- restProps,
689
- {
690
- class: cls("lc-link", typeof classProp === "string" ? classProp : void 0),
691
- get pathRef() {
692
- return pathRef;
693
- },
694
- set pathRef($$value) {
695
- pathRef = $$value;
696
- $$settled = false;
697
- }
698
- }
699
- ]));
700
- $$renderer.push("<!--]-->");
701
- } else {
702
- $$renderer.push("<!--[!-->");
703
- $$renderer.push("<!--]-->");
704
- }
705
- }
706
- $$renderer.push(`<!--]-->`);
707
- }
708
- do {
709
- $$settled = true;
710
- $$inner_renderer = $$renderer.copy();
711
- $$render_inner($$inner_renderer);
712
- } while (!$$settled);
713
- $$renderer.subsume($$inner_renderer);
714
- bind_props($$props, { pathRef });
715
- });
716
- }
717
- //#endregion
718
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Link/Link.svg.svelte
719
- function Link_svg($$renderer, $$props) {
720
- $$renderer.component(($$renderer) => {
721
- let { pathRef = void 0, $$slots, $$events, ...rest } = $$props;
722
- let $$settled = true;
723
- let $$inner_renderer;
724
- function $$render_inner($$renderer) {
725
- Link_base($$renderer, spread_props([
726
- { Path: Path_svg },
727
- rest,
728
- {
729
- get pathRef() {
730
- return pathRef;
731
- },
732
- set pathRef($$value) {
733
- pathRef = $$value;
734
- $$settled = false;
735
- }
736
- }
737
- ]));
738
- }
739
- do {
740
- $$settled = true;
741
- $$inner_renderer = $$renderer.copy();
742
- $$render_inner($$inner_renderer);
743
- } while (!$$settled);
744
- $$renderer.subsume($$inner_renderer);
745
- bind_props($$props, { pathRef });
746
- });
747
- }
748
- //#endregion
749
- //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Link/Link.canvas.svelte
750
- function Link_canvas($$renderer, $$props) {
751
- let { $$slots, $$events, ...props } = $$props;
752
- Link_base($$renderer, spread_props([{ Path: Path_canvas }, props]));
753
- }
754
-
755
- export { Link_svg as L, Link_canvas as a, getPointLabelRect as b, getPointLabelLayout as g };
756
- //# sourceMappingURL=Link.canvas.js-nWimAHfH.js.map