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,983 +0,0 @@
1
- import { a6 as ensure_array_like, an as spread_props, a1 as derived, am as props_id, al as attributes, a7 as attr, ad as attr_class, ag as clsx, ae as stringify, af as bind_props } from './index-server.js-CtH9Hqwf.js';
2
- import { a as getChartContext, b as cls } from './common.js-BvQnfkFo.js';
3
- import { g as getLayerContext, b as getGeoContext, y as createPattern, n as getComputedStyles, z as createLinearGradient } from './key.svelte.js-Cq0L6YlN.js';
4
- import { i as isScaleBand } from './scales.svelte.js-DeNkKcI-.js';
5
- import { e as extractLayerProps } from './attributes.js-CbKEpZKa.js';
6
- import { c as createId } from './Path.canvas.js-5A9wB8zQ.js';
7
- import { L as Link_svg, a as Link_canvas, g as getPointLabelLayout } from './Link.canvas.js-nWimAHfH.js';
8
- import { a as parsePercent } from './math.js-BqujbaBs.js';
9
- import { R as Rect_svg, a as Rect_canvas, b as Rect_html } from './Rect.html.js-DnQ6ObhQ.js';
10
- import { T as Text_svg, a as Text_canvas, b as Text_html, c as getPixelValue } from './Text.html.js-LbmYJb11.js';
11
- import { C as Circle_svg, a as Circle_canvas, b as Circle_html } from './Circle.html.js-BJywADGK.js';
12
- import { a as asAny } from './types.js-x3GyGPOz.js';
13
- import { L as Line_svg, a as Line_canvas, b as Line_html } from './Line.html.js-B1REcOFe.js';
14
- import './uneval.js-DaakSYFQ.js';
15
- import './linear.js-CHlwr1I4.js';
16
- import './band.js-CjzHWr4k.js';
17
- import './motion.svelte.js-Crk8ri1u.js';
18
- import './path2.js-DLVU8nc9.js';
19
- import './array.js-CBp0H4t3.js';
20
- import './lineRadial.js-B7ZNP_Jp.js';
21
- import './pointRadial.js-Deeu1LXx.js';
22
- import './rect.svelte.js-_0PgI5fe.js';
23
- import './max.js-CuS0BpRI.js';
24
- import './min.js-DZWt5tPl.js';
25
-
26
- //#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/AnnotationLine/AnnotationLine.base.svelte
27
- function AnnotationLine_base($$renderer, $$props) {
28
- $$renderer.component(($$renderer) => {
29
- let { Line, Text, x, y, x1: x1Prop, y1: y1Prop, x2: x2Prop, y2: y2Prop, seriesKey, label, labelPlacement = "top-right", labelXOffset = 0, labelYOffset = 0, props } = $$props;
30
- const ctx = getChartContext();
31
- const isVertical = derived(() => x != null || x1Prop != null && x2Prop != null && x1Prop === x2Prop);
32
- /**
33
- * Each end read against its series' stacked segment, at the category that end sits on.
34
- *
35
- * A rule spanning the plot (a `y` with no `x`) has no single category to read against, so it
36
- * is left where it was asked for.
37
- */
38
- const stacked = derived(() => {
39
- if (seriesKey == null || !ctx.isStacked) return {
40
- x1: x1Prop,
41
- y1: y1Prop,
42
- x2: x2Prop,
43
- y2: y2Prop,
44
- x,
45
- y
46
- };
47
- const at = (value, keyValue) => keyValue == null ? value : ctx.stackedValue(seriesKey, keyValue, value);
48
- return ctx.valueAxis === "y" ? {
49
- x1: x1Prop,
50
- x2: x2Prop,
51
- x,
52
- y1: at(y1Prop, x1Prop ?? x),
53
- y2: at(y2Prop, x2Prop ?? x),
54
- y: at(y, x)
55
- } : {
56
- y1: y1Prop,
57
- y2: y2Prop,
58
- y,
59
- x1: at(x1Prop, y1Prop ?? y),
60
- x2: at(x2Prop, y2Prop ?? y),
61
- x: at(x, y)
62
- };
63
- });
64
- const line = derived(() => ({
65
- x1: stacked().x1 != null ? ctx.xScale(stacked().x1) : stacked().x != null ? ctx.xScale(stacked().x) : ctx.xRange[0],
66
- y1: stacked().y1 != null ? ctx.yScale(stacked().y1) : stacked().y != null && stacked().x == null ? ctx.yScale(stacked().y) : ctx.yRange[0],
67
- x2: stacked().x2 != null ? ctx.xScale(stacked().x2) : stacked().x != null ? ctx.xScale(stacked().x) : ctx.xRange[1],
68
- y2: stacked().y2 != null ? ctx.yScale(stacked().y2) : stacked().y != null ? ctx.yScale(stacked().y) : ctx.yRange[1]
69
- }));
70
- const isSloped = derived(() => !isVertical() && line().x1 !== line().x2 && line().y1 !== line().y2);
71
- const slopeAngle = derived(() => {
72
- let angle = Math.atan2(line().y2 - line().y1, line().x2 - line().x1) * (180 / Math.PI);
73
- if (angle > 90) angle -= 180;
74
- else if (angle < -90) angle += 180;
75
- return angle;
76
- });
77
- const labelProps = derived(() => {
78
- const isLeft = labelPlacement.includes("left");
79
- const isRight = labelPlacement.includes("right");
80
- const isTop = labelPlacement.includes("top");
81
- const isBottom = labelPlacement.includes("bottom");
82
- if (isVertical()) return {
83
- x: line().x1 + (isLeft ? -labelXOffset : labelXOffset),
84
- y: (isTop ? line().y2 : isBottom ? line().y1 : (line().y1 - line().y2) / 2) + ([
85
- "top",
86
- "bottom-left",
87
- "bottom-right"
88
- ].includes(labelPlacement) ? -labelYOffset : labelYOffset),
89
- dy: -2,
90
- textAnchor: isLeft ? "end" : isRight ? "start" : "middle",
91
- verticalAnchor: labelPlacement === "top" ? "end" : labelPlacement === "bottom" ? "start" : isTop ? "start" : isBottom ? "end" : "middle"
92
- };
93
- const _x = isLeft ? line().x1 : isRight ? line().x2 : (line().x1 + line().x2) / 2;
94
- const _y = isLeft ? line().y1 : isRight ? line().y2 : (line().y1 + line().y2) / 2;
95
- const textAnchor = labelPlacement === "left" ? "end" : labelPlacement === "right" ? "start" : isLeft ? "start" : isRight ? "end" : "middle";
96
- const verticalAnchor = isTop ? "end" : isBottom ? "start" : "middle";
97
- if (isSloped()) {
98
- const aSign = [
99
- "left",
100
- "top-right",
101
- "bottom-right"
102
- ].includes(labelPlacement) ? -1 : 1;
103
- const pSign = isTop ? 1 : -1;
104
- const alongLine = aSign * labelXOffset;
105
- const perpAbove = pSign * labelYOffset + 2;
106
- const theta = slopeAngle() * Math.PI / 180;
107
- const cosT = Math.cos(theta);
108
- const sinT = Math.sin(theta);
109
- return {
110
- x: _x,
111
- y: _y,
112
- rotate: slopeAngle(),
113
- dx: alongLine * cosT + perpAbove * sinT,
114
- dy: alongLine * sinT - perpAbove * cosT,
115
- textAnchor,
116
- verticalAnchor
117
- };
118
- }
119
- return {
120
- x: _x + ([
121
- "left",
122
- "top-right",
123
- "bottom-right"
124
- ].includes(labelPlacement) ? -labelXOffset : labelXOffset),
125
- y: _y + (isTop ? -labelYOffset : labelYOffset),
126
- dy: -2,
127
- textAnchor,
128
- verticalAnchor
129
- };
130
- });
131
- if (Line) {
132
- $$renderer.push("<!--[-->");
133
- Line($$renderer, spread_props([
134
- {
135
- x1: line().x1,
136
- y1: line().y1,
137
- x2: line().x2,
138
- y2: line().y2
139
- },
140
- props?.line,
141
- { class: cls("lc-annotation-line", props?.line?.class) }
142
- ]));
143
- $$renderer.push("<!--]-->");
144
- } else {
145
- $$renderer.push("<!--[!-->");
146
- $$renderer.push("<!--]-->");
147
- }
148
- $$renderer.push(` `);
149
- if (label) {
150
- $$renderer.push("<!--[0-->");
151
- if (Text) {
152
- $$renderer.push("<!--[-->");
153
- Text($$renderer, spread_props([
154
- { value: label },
155
- labelProps(),
156
- props?.label,
157
- { class: cls("lc-annotation-line-label", props?.label?.class) }
158
- ]));
159
- $$renderer.push("<!--]-->");
160
- } else {
161
- $$renderer.push("<!--[!-->");
162
- $$renderer.push("<!--]-->");
163
- }
164
- } else $$renderer.push("<!--[-1-->");
165
- $$renderer.push(`<!--]-->`);
166
- });
167
- }
168
- //#endregion
169
- //#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/AnnotationLine/AnnotationLine.svg.svelte
170
- function AnnotationLine_svg($$renderer, $$props) {
171
- let { $$slots, $$events, ...props } = $$props;
172
- AnnotationLine_base($$renderer, spread_props([{
173
- Line: Line_svg,
174
- Text: Text_svg
175
- }, props]));
176
- }
177
- //#endregion
178
- //#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/AnnotationLine/AnnotationLine.canvas.svelte
179
- function AnnotationLine_canvas($$renderer, $$props) {
180
- let { $$slots, $$events, ...props } = $$props;
181
- AnnotationLine_base($$renderer, spread_props([{
182
- Line: Line_canvas,
183
- Text: Text_canvas
184
- }, props]));
185
- }
186
- //#endregion
187
- //#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/AnnotationLine/AnnotationLine.html.svelte
188
- function AnnotationLine_html($$renderer, $$props) {
189
- let { $$slots, $$events, ...props } = $$props;
190
- AnnotationLine_base($$renderer, spread_props([{
191
- Line: Line_html,
192
- Text: Text_html
193
- }, props]));
194
- }
195
- //#endregion
196
- //#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/AnnotationLine/AnnotationLine.svelte
197
- function AnnotationLine($$renderer, $$props) {
198
- $$renderer.component(($$renderer) => {
199
- const layerCtx = getLayerContext();
200
- let { $$slots, $$events, ...props } = $$props;
201
- if (layerCtx === "svg") {
202
- $$renderer.push("<!--[0-->");
203
- AnnotationLine_svg($$renderer, spread_props([props]));
204
- } else if (layerCtx === "canvas") {
205
- $$renderer.push("<!--[1-->");
206
- AnnotationLine_canvas($$renderer, spread_props([props]));
207
- } else if (layerCtx === "html") {
208
- $$renderer.push("<!--[2-->");
209
- AnnotationLine_html($$renderer, spread_props([props]));
210
- } else $$renderer.push("<!--[-1-->");
211
- $$renderer.push(`<!--]-->`);
212
- });
213
- }
214
- //#endregion
215
- //#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/AnnotationPoint/AnnotationPoint.base.svelte
216
- function AnnotationPoint_base($$renderer, $$props) {
217
- $$renderer.component(($$renderer) => {
218
- let { Circle, Link, Text, x, y, r = 4, label, labelPlacement = "center", labelXOffset = 0, labelYOffset = 0, labelX, labelY, seriesKey, fontSize = 12, labelGap = 2, link, details, props } = $$props;
219
- const ctx = getChartContext();
220
- const geo = getGeoContext();
221
- const stackedX = derived(() => ctx.valueAxis === "x" ? ctx.stackedValue(seriesKey, y, x) : x);
222
- const stackedY = derived(() => ctx.valueAxis === "y" ? ctx.stackedValue(seriesKey, x, y) : y);
223
- const point = derived(() => {
224
- if (geo.projection && typeof x === "number" && typeof y === "number") {
225
- const [px, py] = geo.projection([x, y]) ?? [0, 0];
226
- return {
227
- x: px,
228
- y: py
229
- };
230
- }
231
- return {
232
- x: stackedX() ? ctx.xScale(stackedX()) + (isScaleBand(ctx.xScale) ? ctx.xScale.bandwidth() / 2 : 0) : 0,
233
- y: stackedY() ? ctx.yScale(stackedY()) + (isScaleBand(ctx.yScale) ? ctx.yScale.bandwidth() / 2 : 0) : ctx.height
234
- };
235
- });
236
- const labelLayout = derived(() => getPointLabelLayout({
237
- x: point().x,
238
- y: point().y,
239
- r,
240
- labelPlacement,
241
- labelX,
242
- labelY,
243
- labelXOffset,
244
- labelYOffset,
245
- fontSize: getPixelValue(fontSize),
246
- labelGap,
247
- link: !!link,
248
- verticalAnchor: props?.label?.verticalAnchor
249
- }));
250
- const labelProps = derived(() => ({
251
- ...labelLayout().text,
252
- fontSize
253
- }));
254
- const linkEndpoints = derived(() => {
255
- if (!link) return null;
256
- const a = labelLayout().anchor;
257
- if (labelPlacement === "smart") {
258
- const dx = a.x - point().x;
259
- const dy = a.y - point().y;
260
- const dist = Math.hypot(dx, dy);
261
- if (dist <= r) return null;
262
- return {
263
- source: {
264
- x: point().x + r * dx / dist,
265
- y: point().y + r * dy / dist
266
- },
267
- target: {
268
- x: a.x,
269
- y: a.y
270
- }
271
- };
272
- }
273
- const { x: dirX, y: dirY } = labelLayout().direction;
274
- if (dirX === 0 && dirY === 0) return null;
275
- const mag = Math.hypot(dirX, dirY);
276
- return {
277
- source: {
278
- x: point().x + r * dirX / mag,
279
- y: point().y + r * dirY / mag
280
- },
281
- target: {
282
- x: a.x,
283
- y: a.y
284
- }
285
- };
286
- });
287
- const linkProps = derived(() => typeof link === "object" ? link : {});
288
- function onPointerMove(e) {
289
- if (details) {
290
- e.stopPropagation();
291
- ctx.tooltip.show(e, { annotation: {
292
- label,
293
- details
294
- } });
295
- }
296
- }
297
- function onPointerLeave(e) {
298
- if (details) {
299
- e.stopPropagation();
300
- ctx.tooltip.hide();
301
- }
302
- }
303
- if (Circle) {
304
- $$renderer.push("<!--[-->");
305
- Circle($$renderer, spread_props([
306
- {
307
- cx: point().x,
308
- cy: point().y,
309
- r,
310
- onpointermove: onPointerMove,
311
- onmousemove: onPointerMove,
312
- ontouchmove: onPointerMove,
313
- onpointerleave: onPointerLeave,
314
- onmouseleave: onPointerLeave,
315
- ontouchend: onPointerLeave
316
- },
317
- props?.circle,
318
- { class: cls("lc-annotation-point", link && "lc-annotation-point-ring", props?.circle?.class) }
319
- ]));
320
- $$renderer.push("<!--]-->");
321
- } else {
322
- $$renderer.push("<!--[!-->");
323
- $$renderer.push("<!--]-->");
324
- }
325
- $$renderer.push(` `);
326
- if (linkEndpoints() && Link) {
327
- $$renderer.push("<!--[0-->");
328
- if (Link) {
329
- $$renderer.push("<!--[-->");
330
- Link($$renderer, spread_props([
331
- {
332
- x1: linkEndpoints().source.x,
333
- y1: linkEndpoints().source.y,
334
- x2: linkEndpoints().target.x,
335
- y2: linkEndpoints().target.y,
336
- type: "straight"
337
- },
338
- linkProps(),
339
- { class: cls("lc-annotation-point-link", typeof linkProps().class === "string" ? linkProps().class : void 0) }
340
- ]));
341
- $$renderer.push("<!--]-->");
342
- } else {
343
- $$renderer.push("<!--[!-->");
344
- $$renderer.push("<!--]-->");
345
- }
346
- } else $$renderer.push("<!--[-1-->");
347
- $$renderer.push(`<!--]--> `);
348
- if (label) {
349
- $$renderer.push("<!--[0-->");
350
- if (Text) {
351
- $$renderer.push("<!--[-->");
352
- Text($$renderer, spread_props([
353
- { value: label },
354
- labelProps(),
355
- props?.label,
356
- { class: cls("lc-annotation-point-label", props?.label?.class) }
357
- ]));
358
- $$renderer.push("<!--]-->");
359
- } else {
360
- $$renderer.push("<!--[!-->");
361
- $$renderer.push("<!--]-->");
362
- }
363
- } else $$renderer.push("<!--[-1-->");
364
- $$renderer.push(`<!--]-->`);
365
- });
366
- }
367
- //#endregion
368
- //#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/AnnotationPoint/AnnotationPoint.svg.svelte
369
- function AnnotationPoint_svg($$renderer, $$props) {
370
- let { $$slots, $$events, ...props } = $$props;
371
- AnnotationPoint_base($$renderer, spread_props([{
372
- Circle: Circle_svg,
373
- Link: Link_svg,
374
- Text: Text_svg
375
- }, props]));
376
- }
377
- //#endregion
378
- //#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/AnnotationPoint/AnnotationPoint.canvas.svelte
379
- function AnnotationPoint_canvas($$renderer, $$props) {
380
- let { $$slots, $$events, ...props } = $$props;
381
- AnnotationPoint_base($$renderer, spread_props([{
382
- Circle: Circle_canvas,
383
- Link: Link_canvas,
384
- Text: Text_canvas
385
- }, props]));
386
- }
387
- //#endregion
388
- //#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/AnnotationPoint/AnnotationPoint.html.svelte
389
- function AnnotationPoint_html($$renderer, $$props) {
390
- let { $$slots, $$events, ...props } = $$props;
391
- AnnotationPoint_base($$renderer, spread_props([{
392
- Circle: Circle_html,
393
- Text: Text_html
394
- }, props]));
395
- }
396
- //#endregion
397
- //#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/AnnotationPoint/AnnotationPoint.svelte
398
- function AnnotationPoint($$renderer, $$props) {
399
- $$renderer.component(($$renderer) => {
400
- const layerCtx = getLayerContext();
401
- let { $$slots, $$events, ...props } = $$props;
402
- if (layerCtx === "svg") {
403
- $$renderer.push("<!--[0-->");
404
- AnnotationPoint_svg($$renderer, spread_props([props]));
405
- } else if (layerCtx === "canvas") {
406
- $$renderer.push("<!--[1-->");
407
- AnnotationPoint_canvas($$renderer, spread_props([props]));
408
- } else if (layerCtx === "html") {
409
- $$renderer.push("<!--[2-->");
410
- AnnotationPoint_html($$renderer, spread_props([props]));
411
- } else $$renderer.push("<!--[-1-->");
412
- $$renderer.push(`<!--]-->`);
413
- });
414
- }
415
- //#endregion
416
- //#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/AnnotationRange/AnnotationRange.base.svelte
417
- function AnnotationRange_base($$renderer, $$props) {
418
- $$renderer.component(($$renderer) => {
419
- let { LinearGradient, Pattern, Rect, Text, x, y, fill, class: className, gradient, pattern, label, labelPlacement = "center", labelXOffset = 0, labelYOffset = 0, props } = $$props;
420
- const ctx = getChartContext();
421
- const rect = derived(() => {
422
- const x0FromScale = x?.[0] != null;
423
- const x1FromScale = x?.[1] != null;
424
- const x0 = x0FromScale ? ctx.xScale(x[0]) : ctx.xRange[0];
425
- const x1 = x1FromScale ? ctx.xScale(x[1]) : ctx.xRange[1];
426
- const y0 = y?.[0] != null ? ctx.yScale(y[0]) : ctx.yRange[0];
427
- const y1 = y?.[1] != null ? ctx.yScale(y[1]) : ctx.yRange[1];
428
- const bandPadding = isScaleBand(ctx.xScale) ? ctx.xScale.padding() * ctx.xScale.step() / 2 : 0;
429
- const bandStep = isScaleBand(ctx.xScale) ? ctx.xScale.step() : 0;
430
- const leftFromScale = x0 <= x1 ? x0FromScale : x1FromScale;
431
- const rightFromScale = x0 <= x1 ? x1FromScale : x0FromScale;
432
- const left = Math.min(x0, x1) - (leftFromScale ? bandPadding : 0);
433
- const right = Math.max(x0, x1) + (rightFromScale ? bandStep - bandPadding : 0);
434
- return {
435
- x: left,
436
- y: Math.min(y0, y1),
437
- width: right - left,
438
- height: Math.abs(y1 - y0)
439
- };
440
- });
441
- const labelProps = derived(() => ({
442
- x: ((labelPlacement.includes("left") ? rect().x : labelPlacement.includes("right") ? (rect().x ?? 0) + rect().width : (rect().x ?? 0) + rect().width / 2) ?? 0) + (labelPlacement.includes("right") ? -labelXOffset : labelXOffset),
443
- y: ((labelPlacement.includes("top") ? rect().y : labelPlacement.includes("bottom") ? (rect().y ?? 0) + rect().height : (rect().y ?? 0) + rect().height / 2) ?? 0) + (labelPlacement.includes("bottom") ? -labelYOffset : labelYOffset),
444
- dy: -2,
445
- textAnchor: labelPlacement.includes("left") ? "start" : labelPlacement.includes("right") ? "end" : "middle",
446
- verticalAnchor: labelPlacement.includes("top") ? "start" : labelPlacement.includes("bottom") ? "end" : "middle"
447
- }));
448
- if (fill || className) {
449
- $$renderer.push("<!--[0-->");
450
- if (Rect) {
451
- $$renderer.push("<!--[-->");
452
- Rect($$renderer, spread_props([
453
- rect(),
454
- props?.rect,
455
- {
456
- fill,
457
- class: cls("lc-annotation-range", props?.rect?.class, className)
458
- }
459
- ]));
460
- $$renderer.push("<!--]-->");
461
- } else {
462
- $$renderer.push("<!--[!-->");
463
- $$renderer.push("<!--]-->");
464
- }
465
- } else $$renderer.push("<!--[-1-->");
466
- $$renderer.push(`<!--]--> `);
467
- if (gradient) {
468
- $$renderer.push("<!--[0-->");
469
- {
470
- function children($$renderer, { gradient }) {
471
- if (Rect) {
472
- $$renderer.push("<!--[-->");
473
- Rect($$renderer, spread_props([
474
- rect(),
475
- props?.rect,
476
- { fill: gradient }
477
- ]));
478
- $$renderer.push("<!--]-->");
479
- } else {
480
- $$renderer.push("<!--[!-->");
481
- $$renderer.push("<!--]-->");
482
- }
483
- }
484
- if (LinearGradient) {
485
- $$renderer.push("<!--[-->");
486
- LinearGradient($$renderer, spread_props([gradient, {
487
- children,
488
- $$slots: { default: true }
489
- }]));
490
- $$renderer.push("<!--]-->");
491
- } else {
492
- $$renderer.push("<!--[!-->");
493
- $$renderer.push("<!--]-->");
494
- }
495
- }
496
- } else $$renderer.push("<!--[-1-->");
497
- $$renderer.push(`<!--]--> `);
498
- if (pattern) {
499
- $$renderer.push("<!--[0-->");
500
- {
501
- function children($$renderer, { pattern }) {
502
- if (Rect) {
503
- $$renderer.push("<!--[-->");
504
- Rect($$renderer, spread_props([
505
- rect(),
506
- props?.rect,
507
- { fill: pattern }
508
- ]));
509
- $$renderer.push("<!--]-->");
510
- } else {
511
- $$renderer.push("<!--[!-->");
512
- $$renderer.push("<!--]-->");
513
- }
514
- }
515
- if (Pattern) {
516
- $$renderer.push("<!--[-->");
517
- Pattern($$renderer, spread_props([pattern, {
518
- children,
519
- $$slots: { default: true }
520
- }]));
521
- $$renderer.push("<!--]-->");
522
- } else {
523
- $$renderer.push("<!--[!-->");
524
- $$renderer.push("<!--]-->");
525
- }
526
- }
527
- } else $$renderer.push("<!--[-1-->");
528
- $$renderer.push(`<!--]--> `);
529
- if (label) {
530
- $$renderer.push("<!--[0-->");
531
- if (Text) {
532
- $$renderer.push("<!--[-->");
533
- Text($$renderer, spread_props([
534
- { value: label },
535
- labelProps(),
536
- props?.label,
537
- { class: cls("lc-annotation-range-label", props?.label?.class) }
538
- ]));
539
- $$renderer.push("<!--]-->");
540
- } else {
541
- $$renderer.push("<!--[!-->");
542
- $$renderer.push("<!--]-->");
543
- }
544
- } else $$renderer.push("<!--[-1-->");
545
- $$renderer.push(`<!--]-->`);
546
- });
547
- }
548
- //#endregion
549
- //#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/LinearGradient/LinearGradient.svg.svelte
550
- function LinearGradient_svg($$renderer, $$props) {
551
- $$renderer.component(($$renderer) => {
552
- const uid = props_id($$renderer);
553
- let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, x1 = "0%", y1 = "0%", x2 = vertical ? "0%" : "100%", y2 = vertical ? "100%" : "0%", rotate, units = "objectBoundingBox", ref: refProp = void 0, class: className, stopsContent, children, $$slots, $$events, ...rest } = $$props;
554
- $$renderer.push(`<defs><linearGradient${attributes({
555
- id,
556
- x1,
557
- y1,
558
- x2,
559
- y2,
560
- gradientTransform: rotate ? `rotate(${rotate})` : "",
561
- gradientUnits: units,
562
- ...extractLayerProps(rest, "lc-linear-gradient")
563
- }, void 0, void 0, void 0, 3)}>`);
564
- if (stopsContent) {
565
- $$renderer.push("<!--[0-->");
566
- stopsContent?.($$renderer);
567
- $$renderer.push(`<!---->`);
568
- } else if (stops) {
569
- $$renderer.push(`<!--[1--><!--[-->`);
570
- const each_array = ensure_array_like(stops);
571
- for (let i = 0, $$length = each_array.length; i < $$length; i++) {
572
- let stop = each_array[i];
573
- if (Array.isArray(stop)) $$renderer.push(`<!--[0--><stop${attr("offset", stop[0])}${attr("stop-color", stop[1])}${attr_class(clsx(cls("lc-linear-gradient-stop", className)))}></stop>`);
574
- else $$renderer.push(`<!--[-1--><stop${attr("offset", `${stringify(i * (100 / (stops.length - 1)))}%`)}${attr("stop-color", stop)}${attr_class(clsx(cls("lc-linear-gradient-stop", className)))}></stop>`);
575
- $$renderer.push(`<!--]-->`);
576
- }
577
- $$renderer.push(`<!--]-->`);
578
- } else $$renderer.push("<!--[-1-->");
579
- $$renderer.push(`<!--]--></linearGradient></defs>`);
580
- children?.($$renderer, {
581
- id,
582
- gradient: `url(#${id})`
583
- });
584
- $$renderer.push(`<!---->`);
585
- bind_props($$props, { ref: refProp });
586
- });
587
- }
588
- //#endregion
589
- //#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/Pattern/Pattern.shared.svelte.js
590
- function buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp) {
591
- const shapes = [];
592
- if (linesProp) {
593
- const lineDefs = Array.isArray(linesProp) ? linesProp : linesProp === true ? [{}] : [linesProp];
594
- for (const line of lineDefs) {
595
- const stroke = line.color ?? "var(--color-surface-content, currentColor)";
596
- const strokeWidth = line.width ?? 1;
597
- const opacity = line.opacity ?? 1;
598
- let rotate = Math.round(line.rotate ?? 0) % 360;
599
- if (rotate > 180) rotate = rotate - 360;
600
- else if (rotate > 90) rotate = rotate - 180;
601
- else if (rotate < -180) rotate = rotate + 360;
602
- else if (rotate < -90) rotate = rotate + 180;
603
- let path = "";
604
- if (rotate === 0) path = `
605
- M 0 0 L ${width} 0
606
- M 0 ${height} L ${width} ${height}
607
- `;
608
- else if (rotate === 90) path = `
609
- M 0 0 L 0 ${height}
610
- M ${width} 0 L ${width} ${height}
611
- `;
612
- else if (rotate > 0) path = `
613
- M 0 ${-height} L ${width * 2} ${height}
614
- M ${-width} ${-height} L ${width} ${height}
615
- M ${-width} 0 L ${width} ${height * 2}
616
- `;
617
- else path = `
618
- M ${-width} ${height} L ${width} ${-height}
619
- M ${-width} ${height * 2} L ${width * 2} ${-height}
620
- M 0 ${height * 2} L ${width * 2} 0
621
- `;
622
- shapes.push({
623
- type: "line",
624
- path,
625
- stroke,
626
- strokeWidth,
627
- opacity
628
- });
629
- }
630
- }
631
- if (circlesProp) {
632
- const circleDefs = Array.isArray(circlesProp) ? circlesProp : circlesProp === true ? [{}] : [circlesProp];
633
- for (const circle of circleDefs) {
634
- const fill = circle.color ?? "var(--color-surface-content, currentColor)";
635
- const opacity = circle.opacity ?? 1;
636
- const r = circle.radius ?? 1;
637
- if (circle.stagger) shapes.push({
638
- type: "circle",
639
- cx: size / 4,
640
- cy: size / 4,
641
- r,
642
- fill,
643
- opacity
644
- }, {
645
- type: "circle",
646
- cx: size * 3 / 4,
647
- cy: size * 3 / 4,
648
- r,
649
- fill,
650
- opacity
651
- });
652
- else shapes.push({
653
- type: "circle",
654
- cx: size / 2,
655
- cy: size / 2,
656
- r,
657
- fill,
658
- opacity
659
- });
660
- }
661
- }
662
- if (rectsProp) {
663
- const rectDefs = Array.isArray(rectsProp) ? rectsProp : rectsProp === true ? [{}] : [rectsProp];
664
- for (const rect of rectDefs) {
665
- const inset = rect.inset ?? 0;
666
- const fill = rect.color ?? "var(--color-surface-content, currentColor)";
667
- const opacity = rect.opacity ?? 1;
668
- shapes.push({
669
- type: "rect",
670
- x: inset,
671
- y: inset,
672
- width: Math.max(0, width - 2 * inset),
673
- height: Math.max(0, height - 2 * inset),
674
- rx: rect.rx,
675
- ry: rect.ry,
676
- fill,
677
- opacity
678
- });
679
- }
680
- }
681
- return shapes;
682
- }
683
- //#endregion
684
- //#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/Pattern/Pattern.svg.svelte
685
- function Pattern_svg($$renderer, $$props) {
686
- $$renderer.component(($$renderer) => {
687
- const uid = props_id($$renderer);
688
- let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, rects: rectsProp, background, patternContent, children, $$slots, $$events, ...rest } = $$props;
689
- const shapes = derived(() => buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp));
690
- $$renderer.push(`<defs><pattern${attributes({
691
- id,
692
- width,
693
- height,
694
- patternUnits: "userSpaceOnUse",
695
- ...extractLayerProps(rest, "lc-pattern")
696
- }, void 0, void 0, void 0, 3)}>`);
697
- if (patternContent) {
698
- $$renderer.push("<!--[0-->");
699
- patternContent?.($$renderer);
700
- $$renderer.push(`<!---->`);
701
- } else {
702
- $$renderer.push("<!--[-1-->");
703
- if (background) $$renderer.push(`<!--[0--><rect${attr("width", width)}${attr("height", height)}${attr("fill", background)}></rect>`);
704
- else $$renderer.push("<!--[-1-->");
705
- $$renderer.push(`<!--]--><!--[-->`);
706
- const each_array = ensure_array_like(shapes().filter((s) => s.type === "line"));
707
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
708
- let line = each_array[$$index];
709
- $$renderer.push(`<path${attr("d", line.path)}${attr("stroke", line.stroke)}${attr("stroke-width", line.strokeWidth)} fill="none"${attr("opacity", line.opacity)}></path>`);
710
- }
711
- $$renderer.push(`<!--]--><!--[-->`);
712
- const each_array_1 = ensure_array_like(shapes().filter((s) => s.type === "circle"));
713
- for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
714
- let circle = each_array_1[$$index_1];
715
- $$renderer.push(`<circle${attr("cx", circle.cx)}${attr("cy", circle.cy)}${attr("r", circle.r)}${attr("fill", circle.fill)}${attr("opacity", circle.opacity)}></circle>`);
716
- }
717
- $$renderer.push(`<!--]--><!--[-->`);
718
- const each_array_2 = ensure_array_like(shapes().filter((s) => s.type === "rect"));
719
- for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
720
- let rect = each_array_2[$$index_2];
721
- $$renderer.push(`<rect${attr("x", rect.x)}${attr("y", rect.y)}${attr("width", rect.width)}${attr("height", rect.height)}${attr("rx", rect.rx)}${attr("ry", rect.ry)}${attr("fill", rect.fill)}${attr("opacity", rect.opacity)}></rect>`);
722
- }
723
- $$renderer.push(`<!--]-->`);
724
- }
725
- $$renderer.push(`<!--]--></pattern></defs>`);
726
- children?.($$renderer, {
727
- id,
728
- pattern: `url(#${id})`
729
- });
730
- $$renderer.push(`<!---->`);
731
- });
732
- }
733
- //#endregion
734
- //#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/AnnotationRange/AnnotationRange.svg.svelte
735
- function AnnotationRange_svg($$renderer, $$props) {
736
- let { $$slots, $$events, ...props } = $$props;
737
- AnnotationRange_base($$renderer, spread_props([{
738
- LinearGradient: LinearGradient_svg,
739
- Pattern: Pattern_svg,
740
- Rect: Rect_svg,
741
- Text: Text_svg
742
- }, props]));
743
- }
744
- //#endregion
745
- //#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/LinearGradient/LinearGradient.canvas.svelte
746
- function LinearGradient_canvas($$renderer, $$props) {
747
- $$renderer.component(($$renderer) => {
748
- const uid = props_id($$renderer);
749
- let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, x1 = "0%", y1 = "0%", x2 = vertical ? "0%" : "100%", y2 = vertical ? "100%" : "0%", class: className, children, $$slots, $$events, ...rest } = $$props;
750
- const ctx = getChartContext();
751
- let canvasGradient = void 0;
752
- function render(_ctx) {
753
- const _stops = stops.map((stop, i) => {
754
- if (Array.isArray(stop)) {
755
- const { fill } = getComputedStyles(_ctx.canvas, {
756
- styles: { fill: stop[1] },
757
- classes: className
758
- });
759
- return {
760
- offset: parsePercent(stop[0]),
761
- color: fill
762
- };
763
- } else {
764
- const { fill } = getComputedStyles(_ctx.canvas, {
765
- styles: { fill: stop },
766
- classes: className
767
- });
768
- return {
769
- offset: i / (stops.length - 1),
770
- color: fill
771
- };
772
- }
773
- });
774
- canvasGradient = createLinearGradient(_ctx, ctx.padding.left, ctx.padding.top, vertical ? ctx.padding.left : ctx.width - ctx.padding.right, vertical ? ctx.height + ctx.padding.bottom : ctx.padding.top, _stops);
775
- }
776
- ctx.registerComponent({
777
- name: "Gradient",
778
- kind: "group",
779
- canvasRender: {
780
- render,
781
- deps: () => [
782
- x1,
783
- y1,
784
- x2,
785
- y2,
786
- stops,
787
- className
788
- ]
789
- }
790
- });
791
- children?.($$renderer, {
792
- id,
793
- gradient: asAny(canvasGradient)
794
- });
795
- $$renderer.push(`<!---->`);
796
- });
797
- }
798
- //#endregion
799
- //#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/Pattern/Pattern.canvas.svelte
800
- function Pattern_canvas($$renderer, $$props) {
801
- $$renderer.component(($$renderer) => {
802
- const uid = props_id($$renderer);
803
- const chartCtx = getChartContext();
804
- let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, rects: rectsProp, background, children } = $$props;
805
- const shapes = derived(() => buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp));
806
- let canvasPattern = null;
807
- function render(_ctx) {
808
- canvasPattern = createPattern(_ctx, width, height, shapes(), background);
809
- }
810
- chartCtx.registerComponent({
811
- name: "Pattern",
812
- kind: "group",
813
- canvasRender: {
814
- render,
815
- deps: () => [
816
- width,
817
- height,
818
- shapes(),
819
- background
820
- ]
821
- }
822
- });
823
- children?.($$renderer, {
824
- id,
825
- pattern: asAny(canvasPattern)
826
- });
827
- $$renderer.push(`<!---->`);
828
- });
829
- }
830
- //#endregion
831
- //#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/AnnotationRange/AnnotationRange.canvas.svelte
832
- function AnnotationRange_canvas($$renderer, $$props) {
833
- let { $$slots, $$events, ...props } = $$props;
834
- AnnotationRange_base($$renderer, spread_props([{
835
- LinearGradient: LinearGradient_canvas,
836
- Pattern: Pattern_canvas,
837
- Rect: Rect_canvas,
838
- Text: Text_canvas
839
- }, props]));
840
- }
841
- //#endregion
842
- //#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/LinearGradient/LinearGradient.html.svelte
843
- function LinearGradient_html($$renderer, $$props) {
844
- $$renderer.component(($$renderer) => {
845
- const uid = props_id($$renderer);
846
- let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, rotate, children } = $$props;
847
- function createCSSGradient() {
848
- if (!stops?.length) return "";
849
- let direction;
850
- if (rotate !== void 0) direction = `${(vertical ? 180 : 90) + rotate}deg`;
851
- else direction = vertical ? "to bottom" : "to right";
852
- const cssStops = stops.map((stop, i) => {
853
- if (Array.isArray(stop)) return `${stop[1]} ${stop[0]}`;
854
- else return `${stop} ${i * (100 / (stops.length - 1))}%`;
855
- }).join(", ");
856
- return `linear-gradient(${direction}, ${cssStops})`;
857
- }
858
- children?.($$renderer, {
859
- id,
860
- gradient: createCSSGradient()
861
- });
862
- $$renderer.push(`<!---->`);
863
- });
864
- }
865
- //#endregion
866
- //#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/Pattern/Pattern.html.svelte
867
- function Pattern_html($$renderer, $$props) {
868
- $$renderer.component(($$renderer) => {
869
- const uid = props_id($$renderer);
870
- let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, background, children } = $$props;
871
- function withOpacity(color, opacity) {
872
- return opacity === 1 ? color : `color-mix(in srgb, ${color} ${opacity * 100}%, transparent)`;
873
- }
874
- function createCSSPattern() {
875
- const layers = [];
876
- if (linesProp) {
877
- const lineDefs = Array.isArray(linesProp) ? linesProp : linesProp === true ? [{}] : [linesProp];
878
- for (const line of lineDefs) {
879
- const color = withOpacity(line.color ?? "var(--color-surface-content, currentColor)", line.opacity ?? 1);
880
- const sw = line.width ?? 1;
881
- let rotate = Math.round(line.rotate ?? 0) % 360;
882
- if (rotate > 180) rotate = rotate - 360;
883
- else if (rotate > 90) rotate = rotate - 180;
884
- else if (rotate < -180) rotate = rotate + 360;
885
- else if (rotate < -90) rotate = rotate + 180;
886
- let angle;
887
- let period;
888
- if (rotate === 0) {
889
- angle = 0;
890
- period = height;
891
- } else if (rotate === 90) {
892
- angle = 90;
893
- period = width;
894
- } else if (rotate > 0) {
895
- angle = 45;
896
- period = width * height / Math.sqrt(width * width + height * height);
897
- } else {
898
- angle = 135;
899
- period = width * height / Math.sqrt(width * width + height * height);
900
- }
901
- layers.push(`repeating-linear-gradient(${angle}deg, ${color} 0 ${sw}px, transparent ${sw}px ${period}px)`);
902
- }
903
- }
904
- if (circlesProp) {
905
- const circleDefs = Array.isArray(circlesProp) ? circlesProp : circlesProp === true ? [{}] : [circlesProp];
906
- for (const circle of circleDefs) {
907
- const color = withOpacity(circle.color ?? "var(--color-surface-content, currentColor)", circle.opacity ?? 1);
908
- const r = circle.radius ?? 1;
909
- if (circle.stagger) layers.push(`radial-gradient(circle at 25% 25%, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`, `radial-gradient(circle at 75% 75%, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`);
910
- else layers.push(`radial-gradient(circle at center, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`);
911
- }
912
- }
913
- const isImage = background != null && /gradient\(|url\(/i.test(background);
914
- if (isImage) layers.push(`${background} 0 0 / ${width}px ${height}px`);
915
- if (layers.length === 0) return background ?? "transparent";
916
- return !isImage && background ? `${layers.join(", ")}, ${background}` : layers.join(", ");
917
- }
918
- children?.($$renderer, {
919
- id,
920
- pattern: createCSSPattern()
921
- });
922
- $$renderer.push(`<!---->`);
923
- });
924
- }
925
- //#endregion
926
- //#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/AnnotationRange/AnnotationRange.html.svelte
927
- function AnnotationRange_html($$renderer, $$props) {
928
- let { $$slots, $$events, ...props } = $$props;
929
- AnnotationRange_base($$renderer, spread_props([{
930
- LinearGradient: LinearGradient_html,
931
- Pattern: Pattern_html,
932
- Rect: Rect_html,
933
- Text: Text_html
934
- }, props]));
935
- }
936
- //#endregion
937
- //#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/AnnotationRange/AnnotationRange.svelte
938
- function AnnotationRange($$renderer, $$props) {
939
- $$renderer.component(($$renderer) => {
940
- const layerCtx = getLayerContext();
941
- let { $$slots, $$events, ...props } = $$props;
942
- if (layerCtx === "svg") {
943
- $$renderer.push("<!--[0-->");
944
- AnnotationRange_svg($$renderer, spread_props([props]));
945
- } else if (layerCtx === "canvas") {
946
- $$renderer.push("<!--[1-->");
947
- AnnotationRange_canvas($$renderer, spread_props([props]));
948
- } else if (layerCtx === "html") {
949
- $$renderer.push("<!--[2-->");
950
- AnnotationRange_html($$renderer, spread_props([props]));
951
- } else $$renderer.push("<!--[-1-->");
952
- $$renderer.push(`<!--]-->`);
953
- });
954
- }
955
- //#endregion
956
- //#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/charts/ChartAnnotations.svelte
957
- function ChartAnnotations($$renderer, $$props) {
958
- $$renderer.component(($$renderer) => {
959
- let { annotations, layer } = $$props;
960
- const ctx = getChartContext();
961
- let visibleAnnotations = derived(() => annotations.filter((a) => (a.layer === layer || a.layer == null && layer === "above") && (ctx.series.highlightKey == null || a.seriesKey == null || a.seriesKey === ctx.series.highlightKey) && ctx.series.visibleSeries.some((s) => a.seriesKey == null || a.seriesKey === s.key)));
962
- $$renderer.push(`<!--[-->`);
963
- const each_array = ensure_array_like(visibleAnnotations());
964
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
965
- let annotation = each_array[$$index];
966
- if (annotation.type === "point") {
967
- $$renderer.push("<!--[0-->");
968
- AnnotationPoint($$renderer, spread_props([annotation]));
969
- } else if (annotation.type === "line") {
970
- $$renderer.push("<!--[1-->");
971
- AnnotationLine($$renderer, spread_props([annotation]));
972
- } else if (annotation.type === "range") {
973
- $$renderer.push("<!--[2-->");
974
- AnnotationRange($$renderer, spread_props([annotation]));
975
- } else $$renderer.push("<!--[-1-->");
976
- $$renderer.push(`<!--]-->`);
977
- }
978
- $$renderer.push(`<!--]-->`);
979
- });
980
- }
981
-
982
- export { ChartAnnotations as default };
983
- //# sourceMappingURL=ChartAnnotations.js-twzDSVzY.js.map