@ngrok/mantle 0.94.0 → 0.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (615) hide show
  1. package/README.md +11 -2
  2. package/dist/CaretDown-MgTrjdYK.js +1 -0
  3. package/dist/CaretLeft-CZIqCyEF.js +1 -0
  4. package/dist/CaretRight-BKz4JHCI.js +1 -0
  5. package/dist/Check-C5a1hX4x.js +1 -0
  6. package/dist/CheckCircle-Bi4tSau6.js +1 -0
  7. package/dist/CircleNotch-BKE0NAIr.js +1 -0
  8. package/dist/Copy-BYWMO6PW.js +1 -0
  9. package/dist/Desktop-BaSlSeg2.js +1 -0
  10. package/dist/Eye-C38LQkZ_.js +1 -0
  11. package/dist/EyeClosed-BvOq-W8o.js +1 -0
  12. package/dist/FileText-CqAezJDn.js +1 -0
  13. package/dist/Info-weHV1B4q.js +1 -0
  14. package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
  15. package/dist/Megaphone-Cir2KHXa.js +1 -0
  16. package/dist/Minus-KBzmC4_K.js +1 -0
  17. package/dist/Moon-hn_oivM6.js +1 -0
  18. package/dist/Plus-D90-H9Ei.js +1 -0
  19. package/dist/Question-BhvEyO0K.js +1 -0
  20. package/dist/SidebarSimple-BXKgNz4l.js +1 -0
  21. package/dist/SortAscending-CEk4rgu_.js +1 -0
  22. package/dist/SortDescending-C0cE7hpU.js +1 -0
  23. package/dist/Sun-C3SaXdLl.js +1 -0
  24. package/dist/Terminal-aKZ6Y9Lk.js +1 -0
  25. package/dist/Warning-DTwF27_O.js +1 -0
  26. package/dist/WarningDiamond-BwpdVJ34.js +1 -0
  27. package/dist/X-BPGjP4b6.js +1 -0
  28. package/dist/accordion-BmDXs1-q.js +1 -0
  29. package/dist/accordion-NpJz3Uer.js +1 -0
  30. package/dist/accordion-parts.d.ts +268 -0
  31. package/dist/accordion-parts.js +1 -0
  32. package/dist/accordion.d.ts +8 -359
  33. package/dist/accordion.js +1 -1
  34. package/dist/agent.json +464 -92
  35. package/dist/alert-DCGSrVTa.js +1 -0
  36. package/dist/{alert-HffaioZM.d.ts → alert-Dz541Ve9.d.ts} +10 -196
  37. package/dist/alert-center-Bb39SBqJ.js +1 -0
  38. package/dist/alert-center-CGBbqO-y.d.ts +391 -0
  39. package/dist/alert-center-parts.d.ts +6 -0
  40. package/dist/alert-center-parts.js +1 -0
  41. package/dist/alert-center.d.ts +9 -590
  42. package/dist/alert-center.js +1 -1
  43. package/dist/alert-dialog-CtKnvX5N.js +1 -0
  44. package/dist/alert-dialog-parts.d.ts +569 -0
  45. package/dist/alert-dialog-parts.js +1 -0
  46. package/dist/alert-dialog.d.ts +3 -1054
  47. package/dist/alert-dialog.js +1 -1
  48. package/dist/alert-parts.d.ts +6 -0
  49. package/dist/alert-parts.js +1 -0
  50. package/dist/alert.d.ts +43 -1
  51. package/dist/alert.js +1 -1
  52. package/dist/anchor-DW5_Gb-1.js +1 -0
  53. package/dist/anchor.d.ts +6 -6
  54. package/dist/anchor.js +1 -1
  55. package/dist/app-layout-D7kwv9su.js +1 -0
  56. package/dist/app-layout-k6UjK30v.d.ts +1167 -0
  57. package/dist/app-layout-parts.d.ts +6 -0
  58. package/dist/app-layout-parts.js +1 -0
  59. package/dist/app-layout.d.ts +98 -1883
  60. package/dist/app-layout.js +1 -1
  61. package/dist/area-chart-C6lKu7Un.d.ts +390 -0
  62. package/dist/area-chart-SAaGaZFD.js +1 -0
  63. package/dist/area-chart-parts.d.ts +6 -0
  64. package/dist/area-chart-parts.js +1 -0
  65. package/dist/area-chart.d.ts +6 -581
  66. package/dist/area-chart.js +1 -1
  67. package/dist/avatar-BMZ81f_5.js +1 -0
  68. package/dist/avatar-Ti8GKSnS.d.ts +201 -0
  69. package/dist/avatar-parts.d.ts +6 -0
  70. package/dist/avatar-parts.js +1 -0
  71. package/dist/avatar.d.ts +5 -277
  72. package/dist/avatar.js +1 -1
  73. package/dist/badge.d.ts +10 -9
  74. package/dist/badge.js +1 -1
  75. package/dist/bar-chart-C0Ra1ZpG.js +1 -0
  76. package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
  77. package/dist/bar-chart-parts.d.ts +6 -0
  78. package/dist/bar-chart-parts.js +1 -0
  79. package/dist/bar-chart.d.ts +4 -583
  80. package/dist/bar-chart.js +1 -1
  81. package/dist/behaviors-BW8RjkkS.js +1 -0
  82. package/dist/behaviors-BbOq5SFv.js +1 -0
  83. package/dist/behaviors-C7R7ZIoN.js +1 -0
  84. package/dist/behaviors-CHF5PT3C.js +1 -0
  85. package/dist/behaviors-CSZQSSfL.js +1 -0
  86. package/dist/behaviors-CcjvGa0d.js +1 -0
  87. package/dist/behaviors-CnarRd47.js +1 -0
  88. package/dist/behaviors-CoNi6Rd-.js +1 -0
  89. package/dist/behaviors-D9VIyDk1.js +1 -0
  90. package/dist/behaviors-DHVC34f9.js +1 -0
  91. package/dist/behaviors-DkCIgQ8w.js +1 -0
  92. package/dist/behaviors-Mkc_HjTB.js +1 -0
  93. package/dist/breadcrumb-CAzq3SlR.js +1 -0
  94. package/dist/breadcrumb-parts.d.ts +287 -0
  95. package/dist/breadcrumb-parts.js +1 -0
  96. package/dist/breadcrumb.d.ts +65 -555
  97. package/dist/breadcrumb.js +1 -1
  98. package/dist/browser-only-CokCtIvB.js +1 -0
  99. package/dist/browser-only-ymFoM3Ya.js +1 -0
  100. package/dist/browser-only.js +1 -1
  101. package/dist/button-Bqm7U0OC.js +1 -0
  102. package/dist/{button-K0pKc3GN.d.ts → button-C6-6TecO.d.ts} +5 -5
  103. package/dist/{button-BGwOPjGV.d.ts → button-CL17Dxza.d.ts} +28 -25
  104. package/dist/button-CRCiBPEF.js +1 -0
  105. package/dist/{button-Cgf2IcEC.d.ts → button-CRMoQyum.d.ts} +27 -28
  106. package/dist/button-Cr2iY2cI.js +1 -0
  107. package/dist/button-DhoE-BbZ.js +1 -0
  108. package/dist/button.d.ts +3 -3
  109. package/dist/button.js +1 -1
  110. package/dist/calendar-DQtapcSC.js +1 -0
  111. package/dist/calendar.d.ts +1 -1
  112. package/dist/calendar.js +1 -1
  113. package/dist/card-DbtGVKyo.d.ts +129 -0
  114. package/dist/card-parts.d.ts +6 -0
  115. package/dist/card-parts.js +1 -0
  116. package/dist/card.d.ts +3 -228
  117. package/dist/card.js +1 -1
  118. package/dist/centered-layout-parts.d.ts +169 -0
  119. package/dist/centered-layout-parts.js +1 -0
  120. package/dist/centered-layout.d.ts +3 -300
  121. package/dist/centered-layout.js +1 -1
  122. package/dist/chart-B0n2xyYi.js +1 -0
  123. package/dist/chart-BPsMxs1f.js +1 -0
  124. package/dist/chart-BmZoTjRu.js +1 -0
  125. package/dist/chart-Bybyh2Dc.js +1 -0
  126. package/dist/chart-CACfdGlp.d.ts +86 -0
  127. package/dist/chart-CBQJUTIX.js +1 -0
  128. package/dist/chart-Cb0MBaZx.js +1 -0
  129. package/dist/chart-CmMcfDmv.js +1 -0
  130. package/dist/chart-Dlp9FidW.js +2 -0
  131. package/dist/{chart-jitNqimS.d.ts → chart-XvStK-oM.d.ts} +23 -99
  132. package/dist/chart-wTwYzUMJ.js +1 -0
  133. package/dist/checkbox-DH7WFfuR.js +1 -0
  134. package/dist/checkbox-DsVXD96X.js +1 -0
  135. package/dist/checkbox-TX74-Iep.js +1 -0
  136. package/dist/checkbox-group-parts.d.ts +197 -0
  137. package/dist/checkbox-group-parts.js +1 -0
  138. package/dist/checkbox.d.ts +60 -9
  139. package/dist/checkbox.js +1 -1
  140. package/dist/choice-BekuLm-b.d.ts +217 -0
  141. package/dist/choice-DGI8VNR9.d.ts +1 -0
  142. package/dist/choice-PDT386cc.js +1 -0
  143. package/dist/choice-parts.d.ts +7 -0
  144. package/dist/choice-parts.js +1 -0
  145. package/dist/choice.d.ts +63 -1
  146. package/dist/choice.js +1 -1
  147. package/dist/code-UKPv6LVP.js +1 -0
  148. package/dist/{code-block-W3kWPxCJ.js → code-block-B-xD4_RW.js} +1 -1
  149. package/dist/code-block-B7XPzZnp.js +1 -0
  150. package/dist/code-block-BXXceNVo.js +1 -0
  151. package/dist/code-block-C7uzLs8t.js +1 -0
  152. package/dist/{code-block-BGdV4Yty.d.ts → code-block-Cs1Lcmdr.d.ts} +82 -253
  153. package/dist/code-block-Erv7wuWW.d.ts +173 -0
  154. package/dist/code-block-parts.d.ts +380 -0
  155. package/dist/code-block-parts.js +1 -0
  156. package/dist/code-block.d.ts +66 -693
  157. package/dist/code-block.js +6 -6
  158. package/dist/code-block_highlight-utils.d.ts +2 -1
  159. package/dist/code-block_highlight-utils.js +1 -1
  160. package/dist/code.d.ts +4 -4
  161. package/dist/code.js +1 -1
  162. package/dist/combobox-6LXe1cLx.js +1 -0
  163. package/dist/combobox-parts.d.ts +303 -0
  164. package/dist/combobox-parts.js +1 -0
  165. package/dist/combobox.d.ts +5 -468
  166. package/dist/combobox.js +1 -1
  167. package/dist/command-B8L-zjGt.js +1 -0
  168. package/dist/command-CCMWCjAK.js +1 -0
  169. package/dist/command-VKj84zAX.d.ts +859 -0
  170. package/dist/command-cbgO9CiG.js +1 -0
  171. package/dist/command-parts.d.ts +6 -0
  172. package/dist/command-parts.js +1 -0
  173. package/dist/command.d.ts +91 -1135
  174. package/dist/command.js +1 -1
  175. package/dist/compose-refs-BdRUneoc.js +1 -0
  176. package/dist/compose-refs-Ce1vWUz0.js +1 -0
  177. package/dist/cx-CfAFHj5_.js +73 -0
  178. package/dist/cx-DhYnQ07J.js +1 -0
  179. package/dist/cx.d.ts +23 -17
  180. package/dist/cx.js +1 -1
  181. package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
  182. package/dist/data-table-C-FgaN3_.js +1 -0
  183. package/dist/data-table-Cw9dUo1w.js +1 -0
  184. package/dist/data-table-CwqrMtp0.js +1 -0
  185. package/dist/data-table-GUbt8mzo.d.ts +38 -0
  186. package/dist/data-table-parts.d.ts +763 -0
  187. package/dist/data-table-parts.js +1 -0
  188. package/dist/data-table.d.ts +21 -1217
  189. package/dist/data-table.js +1 -1
  190. package/dist/description-list-CjcKOOnr.d.ts +110 -0
  191. package/dist/description-list-parts.d.ts +6 -0
  192. package/dist/description-list-parts.js +1 -0
  193. package/dist/description-list.d.ts +3 -183
  194. package/dist/description-list.js +1 -1
  195. package/dist/dialog-4Ed3U7hz.js +1 -0
  196. package/dist/dialog-BDb_obii.d.ts +166 -0
  197. package/dist/dialog-BaR9D58J.js +1 -0
  198. package/dist/dialog-BkNxAcol.d.ts +467 -0
  199. package/dist/dialog-DSYuhFD5.js +1 -0
  200. package/dist/dialog-fXMCxM9W.js +1 -0
  201. package/dist/dialog-parts.d.ts +6 -0
  202. package/dist/dialog-parts.js +1 -0
  203. package/dist/dialog.d.ts +88 -2
  204. package/dist/dialog.js +1 -1
  205. package/dist/dropdown-menu-BuluRn0Z.js +1 -0
  206. package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
  207. package/dist/dropdown-menu-parts.d.ts +6 -0
  208. package/dist/dropdown-menu-parts.js +1 -0
  209. package/dist/dropdown-menu.d.ts +57 -1
  210. package/dist/dropdown-menu.js +1 -1
  211. package/dist/empty-parts.d.ts +120 -0
  212. package/dist/empty-parts.js +1 -0
  213. package/dist/empty.d.ts +2 -216
  214. package/dist/empty.js +1 -1
  215. package/dist/field-BRYypbjO.js +1 -0
  216. package/dist/field-BVMx7HoG.js +1 -0
  217. package/dist/field-BwCq1b9R.js +1 -0
  218. package/dist/field-CYAaNexp.js +1 -0
  219. package/dist/field-DRHAcM1s.js +1 -0
  220. package/dist/field-parts.d.ts +767 -0
  221. package/dist/field-parts.js +1 -0
  222. package/dist/field.d.ts +21 -1201
  223. package/dist/field.js +1 -1
  224. package/dist/flag.d.ts +3 -3
  225. package/dist/flag.js +1 -1
  226. package/dist/float-C_vwTtzU.js +1 -0
  227. package/dist/float-JmSzKDHd.js +1 -0
  228. package/dist/float-OhVY3cf4.js +1 -0
  229. package/dist/hooks-B-Cd15iL.js +1 -0
  230. package/dist/hooks-BP_uqBsI.js +1 -0
  231. package/dist/hooks-BeLOGKwE.js +1 -0
  232. package/dist/hooks-BsOjpTgs.js +1 -0
  233. package/dist/hooks-BybaGF7O.js +1 -0
  234. package/dist/hooks-C9b-2wGy.js +1 -0
  235. package/dist/hooks-CMmpICCH.js +1 -0
  236. package/dist/hooks-CUYIUcp6.js +1 -0
  237. package/dist/hooks-DKbOd_pQ.js +1 -0
  238. package/dist/hooks-DejuqCNF.js +1 -0
  239. package/dist/hooks-GsDfo7Zl.js +1 -0
  240. package/dist/hooks-PsYFJkz2.js +1 -0
  241. package/dist/hooks-lDz_S9UG.js +1 -0
  242. package/dist/hooks.d.ts +126 -17
  243. package/dist/hooks.js +1 -1
  244. package/dist/hover-card-BEC5EQiH.js +1 -0
  245. package/dist/hover-card-parts.d.ts +160 -0
  246. package/dist/hover-card-parts.js +1 -0
  247. package/dist/hover-card.d.ts +9 -281
  248. package/dist/hover-card.js +1 -1
  249. package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
  250. package/dist/icon-0RoVrpGj.js +1 -0
  251. package/dist/icon-BSGMvJ0W.js +1 -0
  252. package/dist/icon-DIiKxRTh.js +1 -0
  253. package/dist/{icon-DXDyhy2N.d.ts → icon-Dqn_LLrR.d.ts} +2 -2
  254. package/dist/{icon-NYvyyRMG.d.ts → icon-KTcDR4--.d.ts} +2 -2
  255. package/dist/icon.d.ts +3 -3
  256. package/dist/icon.js +1 -1
  257. package/dist/icons-CVgj9Whd.js +1 -0
  258. package/dist/icons-D_4cZaL1.js +1 -0
  259. package/dist/icons-DucrvIOa.js +1 -0
  260. package/dist/icons.d.ts +2 -2
  261. package/dist/icons.js +1 -1
  262. package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
  263. package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
  264. package/dist/input-83xaPZWK.js +1 -0
  265. package/dist/input-B78ah4AB.js +1 -0
  266. package/dist/{input-q8o5uMhW.d.ts → input-Bvpu3ruQ.d.ts} +2 -2
  267. package/dist/input.d.ts +5 -5
  268. package/dist/input.js +1 -1
  269. package/dist/kbd-Bz_Rbpv8.js +1 -0
  270. package/dist/kbd.d.ts +5 -5
  271. package/dist/kbd.js +1 -1
  272. package/dist/{label-r2sJcSQ4.d.ts → label-DZpKu3Pu.d.ts} +8 -8
  273. package/dist/label-DmkAp9xI.js +1 -0
  274. package/dist/label.d.ts +1 -1
  275. package/dist/label.js +1 -1
  276. package/dist/layer-container-DDOZJ0fn.js +1 -0
  277. package/dist/layer-container.d.ts +11 -3
  278. package/dist/layer-container.js +1 -1
  279. package/dist/line-chart-CBL7eCqF.js +1 -0
  280. package/dist/line-chart-CIDFDkyb.d.ts +380 -0
  281. package/dist/line-chart-parts.d.ts +6 -0
  282. package/dist/line-chart-parts.js +1 -0
  283. package/dist/line-chart.d.ts +5 -569
  284. package/dist/line-chart.js +1 -1
  285. package/dist/list-CC3Pi__V.js +1 -0
  286. package/dist/list-Cx4KNfgC.d.ts +286 -0
  287. package/dist/list-FiFQJ0BU.js +1 -0
  288. package/dist/list-parts.d.ts +6 -0
  289. package/dist/list-parts.js +1 -0
  290. package/dist/list.d.ts +9 -406
  291. package/dist/list.js +1 -1
  292. package/dist/live-region-78gbKwlB.js +1 -0
  293. package/dist/live-region.d.ts +2 -2
  294. package/dist/live-region.js +1 -1
  295. package/dist/llms.txt +50 -26
  296. package/dist/main-9d96oUPG.js +1 -0
  297. package/dist/main.d.ts +1 -1
  298. package/dist/main.js +1 -1
  299. package/dist/mantle.css +1304 -910
  300. package/dist/media-object-parts.d.ts +65 -0
  301. package/dist/media-object-parts.js +1 -0
  302. package/dist/media-object.d.ts +5 -121
  303. package/dist/media-object.js +1 -1
  304. package/dist/migrations/0017-select-owned-behavior.yml +117 -0
  305. package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
  306. package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
  307. package/dist/migrations/0020-native-floats.yml +823 -0
  308. package/dist/migrations/0021-native-radio-group.yml +397 -0
  309. package/dist/migrations/0024-command-owned-behavior.yml +66 -0
  310. package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
  311. package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
  312. package/dist/migrations/0030-between-variant.yml +1954 -0
  313. package/dist/multi-select-parts.d.ts +487 -0
  314. package/dist/multi-select-parts.js +1 -0
  315. package/dist/multi-select-qC0BuYKD.js +1 -0
  316. package/dist/multi-select.d.ts +6 -803
  317. package/dist/multi-select.js +1 -1
  318. package/dist/otp-input-LPdkb_Fg.js +1 -0
  319. package/dist/otp-input-parts.d.ts +211 -0
  320. package/dist/otp-input-parts.js +1 -0
  321. package/dist/otp-input-zl6MVio6.js +1 -0
  322. package/dist/otp-input.d.ts +11 -252
  323. package/dist/otp-input.js +1 -1
  324. package/dist/overlay-prompt-BIzMQvx7.js +1 -0
  325. package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
  326. package/dist/overlay-prompt.d.ts +57 -0
  327. package/dist/overlay-prompt.js +1 -0
  328. package/dist/pagination-B2ESEbMI.d.ts +171 -0
  329. package/dist/pagination-CxaLKZcE.js +1 -0
  330. package/dist/pagination-Df1gTCN-.js +1 -0
  331. package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
  332. package/dist/pagination-cursor-pagination-parts.js +1 -0
  333. package/dist/pagination.d.ts +39 -304
  334. package/dist/pagination.js +1 -1
  335. package/dist/popover-DOd6zLvE.d.ts +226 -0
  336. package/dist/popover-DWvHbepV.js +1 -0
  337. package/dist/popover-parts.d.ts +6 -0
  338. package/dist/popover-parts.js +1 -0
  339. package/dist/popover.d.ts +60 -2
  340. package/dist/popover.js +1 -1
  341. package/dist/position-Cv3XpSur.d.ts +5 -0
  342. package/dist/progress-BE0c8GW8.js +1 -0
  343. package/dist/progress-ZhFJhv9u.js +1 -0
  344. package/dist/progress-bar-parts.d.ts +86 -0
  345. package/dist/progress-bar-parts.js +1 -0
  346. package/dist/progress-donut-parts.d.ts +94 -0
  347. package/dist/progress-donut-parts.js +1 -0
  348. package/dist/progress-mJQMhxMX.js +1 -0
  349. package/dist/progress-zDpT3TY4.d.ts +2 -0
  350. package/dist/progress.d.ts +4 -268
  351. package/dist/progress.js +1 -1
  352. package/dist/qr-code-0zh10iIE.d.ts +148 -0
  353. package/dist/qr-code-BOOubA9x.js +1 -0
  354. package/dist/qr-code-D8tBKtjP.js +1 -0
  355. package/dist/qr-code-DzJjumoc.d.ts +46 -0
  356. package/dist/qr-code-encoder.browser.d.ts +15 -0
  357. package/dist/qr-code-encoder.browser.js +1 -0
  358. package/dist/qr-code-encoder.d.ts +15 -0
  359. package/dist/qr-code-encoder.js +1 -0
  360. package/dist/qr-code-parts.d.ts +6 -0
  361. package/dist/qr-code-parts.js +1 -0
  362. package/dist/qr-code.d.ts +4 -227
  363. package/dist/qr-code.js +1 -1
  364. package/dist/query-C0e5VYNp.d.ts +440 -0
  365. package/dist/query-V5NifJGs.js +1 -0
  366. package/dist/query-filter.d.ts +6 -6
  367. package/dist/query-filter.js +1 -1
  368. package/dist/query-parts.d.ts +6 -0
  369. package/dist/query-parts.js +1 -0
  370. package/dist/query.d.ts +5 -634
  371. package/dist/query.js +1 -1
  372. package/dist/radio-group-B9jtIbV1.d.ts +39 -0
  373. package/dist/radio-group-BliblUqe.js +1 -0
  374. package/dist/radio-group-f3ThXQCx.js +1 -0
  375. package/dist/radio-group-parts.d.ts +249 -0
  376. package/dist/radio-group-parts.js +1 -0
  377. package/dist/radio-group-zA5DjlLg.js +1 -0
  378. package/dist/radio-group.d.ts +7 -399
  379. package/dist/radio-group.js +1 -1
  380. package/dist/sandbar-Cm2yMjEZ.js +1 -0
  381. package/dist/sandbar-DU4wpKRc.d.ts +345 -0
  382. package/dist/sandbar-parts.d.ts +6 -0
  383. package/dist/sandbar-parts.js +1 -0
  384. package/dist/sandbar.d.ts +6 -441
  385. package/dist/sandbar.js +1 -1
  386. package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
  387. package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
  388. package/dist/sandboxed-on-click.d.ts +1 -1
  389. package/dist/sandboxed-on-click.js +1 -1
  390. package/dist/scatter-plot-1vFxkpjT.js +1 -0
  391. package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
  392. package/dist/scatter-plot-parts.d.ts +6 -0
  393. package/dist/scatter-plot-parts.js +1 -0
  394. package/dist/scatter-plot.d.ts +5 -575
  395. package/dist/scatter-plot.js +1 -1
  396. package/dist/segmented-control-DuiDPKDZ.js +1 -0
  397. package/dist/segmented-control-parts.d.ts +72 -0
  398. package/dist/segmented-control-parts.js +1 -0
  399. package/dist/segmented-control.d.ts +4 -100
  400. package/dist/segmented-control.js +1 -1
  401. package/dist/select-08IEtypH.js +1 -0
  402. package/dist/select-DM2wWfOO.d.ts +478 -0
  403. package/dist/select-parts.d.ts +6 -0
  404. package/dist/select-parts.js +1 -0
  405. package/dist/select.d.ts +63 -1
  406. package/dist/select.js +1 -1
  407. package/dist/selectable-list-Ax5F2Gz1.js +1 -0
  408. package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
  409. package/dist/selectable-list-GcpbbRM1.js +1 -0
  410. package/dist/selectable-list-parts.d.ts +6 -0
  411. package/dist/selectable-list-parts.js +1 -0
  412. package/dist/selectable-list.d.ts +7 -647
  413. package/dist/selectable-list.js +1 -1
  414. package/dist/separator-BB1ohsjn.js +1 -0
  415. package/dist/{separator-QfH0ot5K.d.ts → separator-BzHNVyyv.d.ts} +2 -2
  416. package/dist/separator.d.ts +1 -1
  417. package/dist/separator.js +1 -1
  418. package/dist/sheet-5JgxVaWC.js +1 -0
  419. package/dist/sheet-parts.d.ts +732 -0
  420. package/dist/sheet-parts.js +1 -0
  421. package/dist/sheet-qYPi5MP8.js +1 -0
  422. package/dist/sheet.d.ts +11 -1208
  423. package/dist/sheet.js +1 -1
  424. package/dist/sidebar-CsC9fyPL.js +1 -0
  425. package/dist/sidebar-OBA7L42d.d.ts +1480 -0
  426. package/dist/sidebar-parts.d.ts +6 -0
  427. package/dist/sidebar-parts.js +1 -0
  428. package/dist/sidebar.d.ts +108 -2518
  429. package/dist/sidebar.js +1 -1
  430. package/dist/skeleton-DB0oQyAx.js +1 -0
  431. package/dist/skeleton.d.ts +5 -5
  432. package/dist/skeleton.js +1 -1
  433. package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
  434. package/dist/skip-to-main-link.d.ts +1 -1
  435. package/dist/skip-to-main-link.js +1 -1
  436. package/dist/slider-YlBozcPQ.js +1 -0
  437. package/dist/slider.d.ts +150 -16
  438. package/dist/slider.js +1 -1
  439. package/dist/slot-5ZSmrISx.d.ts +19 -0
  440. package/dist/slot-BxngGBJ2.js +1 -0
  441. package/dist/slot-CBcGhRdV.js +1 -0
  442. package/dist/slot-tuk2J6bY.d.ts +50 -0
  443. package/dist/slot.d.ts +1 -1
  444. package/dist/slot.js +1 -1
  445. package/dist/source-all.css +5 -1
  446. package/dist/split-button-DvJHD7cZ.js +1 -0
  447. package/dist/split-button-parts.d.ts +178 -0
  448. package/dist/split-button-parts.js +1 -0
  449. package/dist/split-button.d.ts +2 -314
  450. package/dist/split-button.js +1 -1
  451. package/dist/strata-parts.d.ts +256 -0
  452. package/dist/strata-parts.js +1 -0
  453. package/dist/strata.d.ts +6 -495
  454. package/dist/strata.js +1 -1
  455. package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
  456. package/dist/switch-DajWYrq3.js +1 -0
  457. package/dist/switch.d.ts +37 -5
  458. package/dist/switch.js +1 -1
  459. package/dist/{table-rWiVWEgB.d.ts → table-C2KnE83u.d.ts} +6 -445
  460. package/dist/table-DJHK48-8.js +1 -0
  461. package/dist/table-parts.d.ts +6 -0
  462. package/dist/table-parts.js +1 -0
  463. package/dist/table.d.ts +81 -1
  464. package/dist/table.js +1 -1
  465. package/dist/tabs-36-4SlRo.js +1 -0
  466. package/dist/tabs-CC_HAqr4.d.ts +193 -0
  467. package/dist/tabs-DayeszXP.js +1 -0
  468. package/dist/tabs-headless-tabs-parts.d.ts +6 -0
  469. package/dist/tabs-headless-tabs-parts.js +1 -0
  470. package/dist/tabs-parts.d.ts +237 -0
  471. package/dist/tabs-parts.js +1 -0
  472. package/dist/tabs.d.ts +43 -420
  473. package/dist/tabs.js +1 -1
  474. package/dist/text-area-D29JTaZg.js +1 -0
  475. package/dist/text-area.d.ts +2 -2
  476. package/dist/text-area.js +1 -1
  477. package/dist/theme-D6rP5Fy8.js +1 -0
  478. package/dist/theme-switcher-PKMCyJxT.js +1 -0
  479. package/dist/theme-switcher.d.ts +26 -22
  480. package/dist/theme-switcher.js +1 -1
  481. package/dist/theme-xoFnLba6.js +1 -0
  482. package/dist/theme.d.ts +84 -77
  483. package/dist/theme.js +1 -1
  484. package/dist/time-zone-CpWYKHdp.js +1 -0
  485. package/dist/time-zone-DZ4hUJ8K.js +1 -0
  486. package/dist/time-zone.d.ts +190 -0
  487. package/dist/time-zone.js +1 -0
  488. package/dist/toast-BJZ__22c.js +1 -0
  489. package/dist/toast-Cb9IN-6e.d.ts +185 -0
  490. package/dist/toast-DM_oq-3E.js +1 -0
  491. package/dist/toast-parts.d.ts +6 -0
  492. package/dist/toast-parts.js +1 -0
  493. package/dist/toast.d.ts +7 -256
  494. package/dist/toast.js +1 -1
  495. package/dist/tokens.dark.json +3026 -0
  496. package/dist/tokens.json +4867 -0
  497. package/dist/tokens.resolver.json +37 -0
  498. package/dist/tooltip-D4HZn19B.js +1 -0
  499. package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
  500. package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
  501. package/dist/tooltip-parts.d.ts +7 -0
  502. package/dist/tooltip-parts.js +1 -0
  503. package/dist/tooltip.d.ts +57 -1
  504. package/dist/tooltip.js +1 -1
  505. package/dist/truncated-text-B5u2AlNg.js +1 -0
  506. package/dist/truncated-text-BoXHP-cD.js +1 -0
  507. package/dist/truncated-text.d.ts +4 -6
  508. package/dist/truncated-text.js +1 -1
  509. package/dist/types.d.ts +1 -1
  510. package/dist/types.js +1 -1
  511. package/dist/typography-C2BmSH12.d.ts +148 -0
  512. package/dist/typography-parts.d.ts +6 -0
  513. package/dist/typography-parts.js +1 -0
  514. package/dist/typography.d.ts +52 -0
  515. package/dist/typography.js +1 -0
  516. package/dist/use-combobox-OhIEVioc.d.ts +23 -0
  517. package/dist/use-float-WEqqhXBE.d.ts +18 -0
  518. package/dist/use-listbox-D4uIonSN.d.ts +1 -0
  519. package/dist/utils-BN3rwHzz.js +1 -0
  520. package/dist/utils-BlLYcYik.js +1 -0
  521. package/dist/utils-C4astHJG.js +1 -0
  522. package/dist/utils-CPSttKPD.js +1 -0
  523. package/dist/{copy-to-clipboard-DInu78k_.js → utils-Dd83caRw.js} +1 -1
  524. package/dist/utils.d.ts +1 -1
  525. package/dist/utils.js +1 -1
  526. package/dist/visually-hidden.d.ts +2 -2
  527. package/dist/visually-hidden.js +1 -1
  528. package/dist/well.d.ts +2 -2
  529. package/dist/well.js +1 -1
  530. package/dist/world-map-BDd3N_Ap.d.ts +424 -0
  531. package/dist/world-map-D3c8Pq-h.js +1 -0
  532. package/dist/world-map-parts.d.ts +6 -0
  533. package/dist/world-map-parts.js +1 -0
  534. package/dist/world-map-t9U-IMKS.js +1 -0
  535. package/dist/world-map.d.ts +80 -0
  536. package/dist/world-map.js +1 -0
  537. package/package.json +30 -19
  538. package/dist/alert-CH99Rw-R.js +0 -1
  539. package/dist/anchor-CgcbWEUs.js +0 -1
  540. package/dist/browser-only-BTSrYWLj.js +0 -1
  541. package/dist/button-69InNC_m.js +0 -1
  542. package/dist/button-BQZ6eoD3.js +0 -1
  543. package/dist/button-BWGUuWnu.js +0 -1
  544. package/dist/button-Cu9e3SM7.js +0 -1
  545. package/dist/chart-BO9EwQ60.js +0 -1
  546. package/dist/chart-CE5Uaqz9.js +0 -1
  547. package/dist/chart-DCTGGlWL.js +0 -1
  548. package/dist/chart-DudCw24t.js +0 -2
  549. package/dist/checkbox-CS504fKk.js +0 -1
  550. package/dist/choice-BwfmbepO.d.ts +0 -405
  551. package/dist/choice-uyYccm0A.js +0 -1
  552. package/dist/clsx-DUGZgXfJ.js +0 -1
  553. package/dist/clsx-Dj3RWZ2l.js +0 -1
  554. package/dist/code-DUJzSl4K.js +0 -1
  555. package/dist/compose-refs-sFdxsL7k.js +0 -1
  556. package/dist/cx-CK7o_rVv.js +0 -1
  557. package/dist/dialog-B9JAGy_x.d.ts +0 -28
  558. package/dist/dialog-CsugEt2A.js +0 -1
  559. package/dist/dialog-DD5H3EH1.d.ts +0 -942
  560. package/dist/dropdown-menu-DHdgaw4P.js +0 -1
  561. package/dist/dropdown-menu-DmDxYPde.d.ts +0 -775
  562. package/dist/field-Bihblt8U.js +0 -1
  563. package/dist/field-CPvjazWN.js +0 -1
  564. package/dist/icon-BudQMD2S.js +0 -1
  565. package/dist/icon-kK0c-POG.js +0 -1
  566. package/dist/icons-4JA-SGfv.js +0 -1
  567. package/dist/icons-CDLz5lpI.js +0 -1
  568. package/dist/icons-CSwTVV2m.js +0 -1
  569. package/dist/input-DHovzBjS.js +0 -1
  570. package/dist/input-DQyN6gN0.js +0 -1
  571. package/dist/interactive-target-BXScNeOr.js +0 -1
  572. package/dist/kbd-CLHsJ99p.js +0 -1
  573. package/dist/label-DmDwzPD8.js +0 -1
  574. package/dist/layer-container-kEQiE4zV.js +0 -1
  575. package/dist/list-CO_yLdln.js +0 -1
  576. package/dist/live-region-DQ1QLv3L.js +0 -1
  577. package/dist/main-CC1L9IsH.js +0 -1
  578. package/dist/popover-BhTFutCz.d.ts +0 -1
  579. package/dist/popover-DxOqLKxy.js +0 -1
  580. package/dist/popover-lwkwWcRW.d.ts +0 -291
  581. package/dist/primitive-Dz9Al-us.js +0 -1
  582. package/dist/radio-group-jj2abc0t.js +0 -1
  583. package/dist/radio-group-sLz5AA9I.d.ts +0 -27
  584. package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
  585. package/dist/select-BqmpVJJT.d.ts +0 -890
  586. package/dist/select-C6Su0dU0.js +0 -1
  587. package/dist/separator-DfzxVutO.js +0 -1
  588. package/dist/shake-DL6WhMXM.js +0 -1
  589. package/dist/sheet-Bd2LIhzF.js +0 -1
  590. package/dist/skeleton-DBpI-ko5.js +0 -1
  591. package/dist/slot-D12N_fZJ.d.ts +0 -67
  592. package/dist/slot-DdYN1L1C.js +0 -1
  593. package/dist/table-CFHiDBW8.js +0 -1
  594. package/dist/theme-DdZgLvKH.js +0 -1
  595. package/dist/tooltip-CpK3XTor.d.ts +0 -283
  596. package/dist/tooltip-b6oiTaWq.js +0 -1
  597. package/dist/use-breakpoint--mo7kr9d.js +0 -1
  598. package/dist/use-callback-ref-BvVyI5K1.js +0 -1
  599. package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
  600. package/dist/use-inert-siblings-CNmNuS2h.js +0 -1
  601. package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
  602. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
  603. package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
  604. package/dist/use-matches-media-query-m860lols.js +0 -1
  605. package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
  606. package/dist/use-swipe-to-dismiss-i__cTF2v.js +0 -1
  607. /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
  608. /package/dist/{radio-group-HDVxTNPi.js → sidebar-HDVxTNPi.js} +0 -0
  609. /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
  610. /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
  611. /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
  612. /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
  613. /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
  614. /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
  615. /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Re-exports for the World Map component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/preview/world-map
5
+ */
6
+ import { a as ChartMode, u as ChartDatumEvent } from "./chart-XvStK-oM.js";
7
+ import * as WorldMapParts from "./world-map-parts.js";
8
+ import { c as WorldMapCalloutProps, d as WorldMapPointProps, f as WorldMapRootProps, l as WorldMapConnectorProps, m as GeoBounds, p as WorldMapTooltipProps, u as WorldMapLegendProps } from "./world-map-BDd3N_Ap.js";
9
+ /**
10
+ * A canvas-rendered world map that plots points by longitude and latitude on
11
+ * the Robinson projection, such as ngrok agents placed by their IP address.
12
+ * Robinson bends the meridians so no region swells the way Mercator swells
13
+ * the poles, which keeps a point's place and the land around it honest.
14
+ *
15
+ * The map is a chart:
16
+ *
17
+ * - Hover and the keyboard reach each point the plot shows.
18
+ * - The tooltip and polite announcements name the point.
19
+ * - The sr-only data table lists the first 150 points from west to east.
20
+ * - A point at a new place pulses once.
21
+ *
22
+ * Size points by a count (`sizeKey`) when many share one place, as IP
23
+ * geolocation puts many agents in one city. For one request, zoom to the
24
+ * client's region (`bounds`), keep a card over its place (`Callout`), and
25
+ * draw a line to the ngrok edge (`Connector`).
26
+ *
27
+ * **CSS variables (public API):**
28
+ *
29
+ * | CSS Variable | Default | Description |
30
+ * | --- | --- | --- |
31
+ * | `--world-map-land-color` | `var(--color-neutral-200)` | The land fill. |
32
+ * | `--world-map-ocean-color` | `var(--color-neutral-50)` | The fill inside the world's outline. |
33
+ *
34
+ * Set a variable on `Root` to restyle one map:
35
+ * `className="[--world-map-land-color:var(--color-neutral-300)]"`.
36
+ *
37
+ * @useWhen Show where things are in the world: agents, endpoints, or edge locations placed by longitude and latitude, or one request's client and the ngrok edge that received it.
38
+ *
39
+ * @siblings
40
+ * - `ScatterPlot`: the two values are measures, not a place on Earth.
41
+ * - `DataTable`: a reader needs to sort, filter, or act on each place more than see where it is.
42
+ *
43
+ * @see https://mantle.ngrok.com/components/preview/world-map
44
+ *
45
+ * @example
46
+ * Composition:
47
+ * ```
48
+ * WorldMap.Root
49
+ * ├── WorldMap.Graticule
50
+ * ├── WorldMap.Point (one per series)
51
+ * ├── WorldMap.Connector
52
+ * ├── WorldMap.Callout
53
+ * ├── WorldMap.Tooltip
54
+ * └── WorldMap.Legend
55
+ * ```
56
+ *
57
+ * @example
58
+ * ```tsx
59
+ * const agents = [
60
+ * { name: "sfo-edge-1", longitude: -122.42, latitude: 37.77, sessions: 12 },
61
+ * { name: "fra-edge-1", longitude: 8.68, latitude: 50.11, sessions: 30 },
62
+ * { name: "syd-edge-1", longitude: 151.21, latitude: -33.87, sessions: 4 },
63
+ * ];
64
+ *
65
+ * <WorldMap.Root
66
+ * data={agents}
67
+ * longitudeKey="longitude"
68
+ * labelKey="name"
69
+ * sizeKey="sessions"
70
+ * aria-label="Agents by location"
71
+ * >
72
+ * <WorldMap.Graticule />
73
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
74
+ * <WorldMap.Tooltip />
75
+ * <WorldMap.Legend />
76
+ * </WorldMap.Root>
77
+ * ```
78
+ */
79
+ declare const WorldMap: typeof WorldMapParts;
80
+ export { type ChartDatumEvent, type ChartMode, type GeoBounds, WorldMap, type WorldMapCalloutProps, type WorldMapConnectorProps, type WorldMapLegendProps, type WorldMapPointProps, type WorldMapRootProps, type WorldMapTooltipProps };
@@ -0,0 +1 @@
1
+ export*as WorldMap from"./world-map-parts.js";
package/package.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.94.0",
3
+ "version": "0.95.0",
4
4
  "description": "mantle is ngrok's UI library and design system.",
5
5
  "homepage": "https://mantle.ngrok.com",
6
6
  "license": "MIT",
7
7
  "author": "ngrok",
8
+ "keywords": [
9
+ "react",
10
+ "design-system",
11
+ "component-library",
12
+ "ui",
13
+ "tailwindcss",
14
+ "radix-ui",
15
+ "accessibility",
16
+ "ngrok"
17
+ ],
8
18
  "repository": {
9
19
  "type": "git",
10
- "url": "https://github.com/ngrok/mantle"
20
+ "url": "https://github.com/ngrok/mantle",
21
+ "directory": "packages/mantle"
11
22
  },
12
23
  "files": [
13
24
  "dist",
@@ -18,6 +29,14 @@
18
29
  "sideEffects": [
19
30
  "*.css"
20
31
  ],
32
+ "imports": {
33
+ "#qr-code-encoder": {
34
+ "workerd": "./dist/qr-code-encoder.js",
35
+ "edge-light": "./dist/qr-code-encoder.js",
36
+ "browser": "./dist/qr-code-encoder.browser.js",
37
+ "default": "./dist/qr-code-encoder.js"
38
+ }
39
+ },
21
40
  "exports": {
22
41
  "./mantle.css": {
23
42
  "style": "./dist/mantle.css",
@@ -30,6 +49,9 @@
30
49
  "./package.json": "./package.json",
31
50
  "./agent.json": "./dist/agent.json",
32
51
  "./llms.txt": "./dist/llms.txt",
52
+ "./tokens.json": "./dist/tokens.json",
53
+ "./tokens.dark.json": "./dist/tokens.dark.json",
54
+ "./tokens.resolver.json": "./dist/tokens.resolver.json",
33
55
  "./accordion": "./dist/accordion.js",
34
56
  "./alert": "./dist/alert.js",
35
57
  "./alert-center": "./dist/alert-center.js",
@@ -76,6 +98,7 @@
76
98
  "./media-object": "./dist/media-object.js",
77
99
  "./multi-select": "./dist/multi-select.js",
78
100
  "./otp-input": "./dist/otp-input.js",
101
+ "./overlay-prompt": "./dist/overlay-prompt.js",
79
102
  "./pagination": "./dist/pagination.js",
80
103
  "./popover": "./dist/popover.js",
81
104
  "./progress": "./dist/progress.js",
@@ -104,33 +127,21 @@
104
127
  "./text-area": "./dist/text-area.js",
105
128
  "./theme": "./dist/theme.js",
106
129
  "./theme-switcher": "./dist/theme-switcher.js",
130
+ "./time-zone": "./dist/time-zone.js",
107
131
  "./toast": "./dist/toast.js",
108
132
  "./tooltip": "./dist/tooltip.js",
109
133
  "./truncated-text": "./dist/truncated-text.js",
134
+ "./typography": "./dist/typography.js",
110
135
  "./types": "./dist/types.js",
111
136
  "./utils": "./dist/utils.js",
112
137
  "./visually-hidden": "./dist/visually-hidden.js",
113
- "./well": "./dist/well.js"
138
+ "./well": "./dist/well.js",
139
+ "./world-map": "./dist/world-map.js"
114
140
  },
115
141
  "dependencies": {
116
- "@ariakit/react": "0.4.43",
117
- "@headlessui/react": "2.2.10",
118
- "@radix-ui/react-dialog": "1.3.1",
119
- "@radix-ui/react-dropdown-menu": "2.2.1",
120
- "@radix-ui/react-hover-card": "1.2.1",
121
- "@radix-ui/react-popover": "1.3.1",
122
- "@radix-ui/react-progress": "1.2.1",
123
- "@radix-ui/react-select": "2.4.1",
124
- "@radix-ui/react-slider": "1.6.1",
125
- "@radix-ui/react-slot": "1.5.0",
126
- "@radix-ui/react-switch": "1.4.1",
127
- "@radix-ui/react-tabs": "1.2.1",
128
- "@radix-ui/react-tooltip": "1.4.1",
129
142
  "@tanstack/react-table": "9.3.1",
130
- "@tanstack/react-virtual": "3.14.26",
143
+ "@tanstack/react-virtual": "3.14.28",
131
144
  "class-variance-authority": "0.7.1",
132
- "cmdk": "1.1.1",
133
- "input-otp": "1.5.0",
134
145
  "react-day-picker": "10.0.2",
135
146
  "sonner": "2.0.8",
136
147
  "tiny-invariant": "1.3.3",
@@ -1 +0,0 @@
1
- import{t as e}from"./use-isomorphic-layout-effect-CLSmHzo4.js";import{t}from"./css-properties-D85fCNV3.js";import{n}from"./compose-refs-sFdxsL7k.js";import{t as r}from"./cx-CK7o_rVv.js";import{t as i}from"./data-slot-EM6s2WEU.js";import{t as a}from"./button-Cu9e3SM7.js";import{t as o}from"./button-BWGUuWnu.js";import{t as s}from"./icon-BudQMD2S.js";import{t as c}from"./slot-DdYN1L1C.js";import{n as l,r as u}from"./alert-DO00UiQe.js";import{c as d}from"react/compiler-runtime";import{CaretDownIcon as f}from"@phosphor-icons/react/CaretDown";import{createContext as p,useContext as m,useEffect as h,useRef as g}from"react";import _ from"tiny-invariant";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{CheckCircleIcon as b}from"@phosphor-icons/react/CheckCircle";import{InfoIcon as x}from"@phosphor-icons/react/Info";import{MegaphoneIcon as S}from"@phosphor-icons/react/Megaphone";import{WarningIcon as C}from"@phosphor-icons/react/Warning";import{WarningDiamondIcon as w}from"@phosphor-icons/react/WarningDiamond";import{XIcon as T}from"@phosphor-icons/react/X";import{cva as E}from"class-variance-authority";const D=p(null),O=/* @__PURE__ */ v(T,{});function k(){let e=m(D);return _(e,`useAlertContext hook used outside of Alert parent!`),e}const A=e=>{let t=d(6),{children:n,intent:r,redirectDismissFocus:i}=e,a=i===void 0||i,o;t[0]!==r||t[1]!==a?(o={intent:r,redirectDismissFocus:a},t[0]=r,t[1]=a,t[2]=o):o=t[2];let s=o,c;return t[3]!==n||t[4]!==s?(c=/* @__PURE__ */ v(D.Provider,{value:s,children:n}),t[3]=n,t[4]=s,t[5]=c):c=t[5],c},j=E(`relative flex w-full gap-1.5 rounded-md border p-2.5 text-sm font-sans`,{variants:{intent:{danger:`border-danger-500/50 bg-danger-500/10 text-danger-700 [&_code]:bg-danger-500/10 [&_code]:border-danger-500/20 [&_code]:text-danger-900 [&_a:not([data-slot~=button])]:text-danger-700 [&_a:not([data-slot~=button])]:underline`,important:`border-important-500/50 bg-important-500/10 text-important-700 [&_code]:bg-important-500/10 [&_code]:border-important-500/20 [&_code]:text-important-900 [&_a:not([data-slot~=button])]:text-important-700 [&_a:not([data-slot~=button])]:underline`,info:`border-info-500/50 bg-info-500/10 text-info-700 [&_code]:bg-info-500/10 [&_code]:border-info-500/20 [&_code]:text-info-900 [&_a:not([data-slot~=button])]:text-info-700 [&_a:not([data-slot~=button])]:underline`,success:`border-success-500/50 bg-success-500/10 text-success-700 [&_code]:bg-success-500/10 [&_code]:border-success-500/20 [&_code]:text-success-900 [&_a:not([data-slot~=button])]:text-success-700 [&_a:not([data-slot~=button])]:underline`,warning:`border-warning-500/50 bg-warning-500/10 text-warning-700 [&_code]:bg-warning-500/10 [&_code]:border-warning-500/20 [&_code]:text-warning-900 [&_a:not([data-slot~=button])]:text-warning-700 [&_a:not([data-slot~=button])]:underline`},appearance:{banner:`border-x-0 border-t-0 rounded-none z-50 sticky`,default:``}}}),M=e=>{let n=d(26),a,o,s,c,l,u,f;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5],u=n[6],f=n[7]):({"data-slot":o,appearance:f,className:a,intent:s,ref:l,style:u,...c}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l,n[6]=u,n[7]=f);let p=f===void 0?`default`:f,m;n[8]===o?m=n[9]:(m=i(o,`alert`),n[8]=o,n[9]=m);let h;n[10]!==p||n[11]!==a||n[12]!==s?(h=r(j({appearance:p,intent:s}),`[--alert-dismiss-room:--spacing(10)]`,`has-[[data-alert-dismiss][data-size=md]]:[--alert-dismiss-room:--spacing(12)]`,`has-[[data-alert-dismiss][data-size=lg]]:[--alert-dismiss-room:--spacing(13)]`,`has-[[data-alert-dismiss][data-size=xl]]:[--alert-dismiss-room:--spacing(15)]`,`has-data-alert-dismiss:pr-(--alert-dismiss-room)`,`has-data-alert-dismiss:**:data-alert-expand:right-(--alert-dismiss-room)`,`has-data-alert-expand:**:data-[slot~=alert-content]:pr-16`,`md:has-data-alert-expand:**:data-[slot~=alert-content]:pr-24`,a),n[10]=p,n[11]=a,n[12]=s,n[13]=h):h=n[13];let g;n[14]!==s||n[15]!==u?(g=t({"--alert-control-color":R(s),"--alert-control-hover-color":z(s),"--alert-control-hover-bg":B(s),...u}),n[14]=s,n[15]=u,n[16]=g):g=n[16];let _;n[17]!==c||n[18]!==l||n[19]!==m||n[20]!==h||n[21]!==g?(_=/* @__PURE__ */ v(`div`,{ref:l,"data-slot":m,className:h,style:g,...c}),n[17]=c,n[18]=l,n[19]=m,n[20]=h,n[21]=g,n[22]=_):_=n[22];let y;return n[23]!==s||n[24]!==_?(y=/* @__PURE__ */ v(A,{intent:s,children:_}),n[23]=s,n[24]=_,n[25]=y):y=n[25],y},N={danger:/* @__PURE__ */ v(C,{}),important:/* @__PURE__ */ v(S,{mirrored:!0}),info:/* @__PURE__ */ v(x,{}),success:/* @__PURE__ */ v(b,{}),warning:/* @__PURE__ */ v(w,{})},P=e=>{let t=d(16),n,a,o,c,l;t[0]===e?(n=t[1],a=t[2],o=t[3],c=t[4],l=t[5]):({"data-slot":a,className:n,ref:c,svg:l,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=l);let u=k(),f=N[u.intent],p;t[6]===a?p=t[7]:(p=i(a,`alert-icon`),t[6]=a,t[7]=p);let m;t[8]===n?m=t[9]:(m=r(`size-5`,n),t[8]=n,t[9]=m);let h=l??f,g;return t[10]!==o||t[11]!==c||t[12]!==p||t[13]!==m||t[14]!==h?(g=/* @__PURE__ */ v(s,{ref:c,"data-slot":p,className:m,svg:h,...o}),t[10]=o,t[11]=c,t[12]=p,t[13]=m,t[14]=h,t[15]=g):g=t[15],g},F=e=>{let t=d(14),n,a,o,s;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4]):({"data-slot":a,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s);let c;t[5]===a?c=t[6]:(c=i(a,`alert-content`),t[5]=a,t[6]=c);let l;t[7]===n?l=t[8]:(l=r(`min-w-0 flex-1 has-data-alert-dismiss:pr-6`,n),t[7]=n,t[8]=l);let u;return t[9]!==o||t[10]!==s||t[11]!==c||t[12]!==l?(u=/* @__PURE__ */ v(`div`,{ref:s,"data-slot":c,className:l,...o}),t[9]=o,t[10]=s,t[11]=c,t[12]=l,t[13]=u):u=t[13],u},I=e=>{let t=d(16),n,a,o,s,l;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4],l=t[5]):({"data-slot":a,asChild:l,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l);let u=l!==void 0&&l?c:`h5`,f;t[6]===a?f=t[7]:(f=i(a,`alert-title`),t[6]=a,t[7]=f);let p;t[8]===n?p=t[9]:(p=r(`font-medium`,n),t[8]=n,t[9]=p);let m;return t[10]!==u||t[11]!==o||t[12]!==s||t[13]!==f||t[14]!==p?(m=/* @__PURE__ */ v(u,{ref:s,"data-slot":f,className:p,...o}),t[10]=u,t[11]=o,t[12]=s,t[13]=f,t[14]=p,t[15]=m):m=t[15],m},L=e=>{let t=d(16),n,a,o,s,l;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4],l=t[5]):({"data-slot":a,asChild:l,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l);let u=l!==void 0&&l?c:`div`,f;t[6]===a?f=t[7]:(f=i(a,`alert-description`),t[6]=a,t[7]=f);let p;t[8]===n?p=t[9]:(p=r(`text-sm`,n),t[8]=n,t[9]=p);let m;return t[10]!==u||t[11]!==o||t[12]!==s||t[13]!==f||t[14]!==p?(m=/* @__PURE__ */ v(u,{ref:s,"data-slot":f,className:p,...o}),t[10]=u,t[11]=o,t[12]=s,t[13]=f,t[14]=p,t[15]=m):m=t[15],m},R=e=>`var(--color-${e}-700)`,z=e=>`var(--color-${e}-800)`,B=e=>`color-mix(in oklab, var(--color-${e}-500) 10%, transparent)`;function V(t){let n=d(8),{buttonRef:r,enabled:i}=t,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],n[0]=a):a=n[0];let o=g(a),s,c;n[1]!==r||n[2]!==i?(s=()=>{if(i)return()=>{let e=r.current;if(e==null||document.activeElement!==e)return;let t=e.closest(`[data-slot~="alert"]`)??e;o.current=l(t)}},c=[r,i],n[1]=r,n[2]=i,n[3]=s,n[4]=c):(s=n[3],c=n[4]),e(s,c);let f,p;n[5]===i?(f=n[6],p=n[7]):(f=()=>{if(i)return()=>{let e=o.current;if(o.current=[],e.length===0)return;let{activeElement:t}=document;if(t==null||t===document.body){for(let t of e)if(t.isConnected&&u(t)&&(t.focus(),document.activeElement===t))return}}},p=[i],n[5]=i,n[6]=f,n[7]=p),h(f,p)}const H={Root:M,Content:F,ExpandButton:e=>{let t=d(25),n,o,s,c,l;t[0]===e?(n=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({"data-slot":s,count:o,expanded:c,className:n,...l}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u=c?`Collapse additional alerts`:`Show ${o} more ${o===1?`alert`:`alerts`}`,p;t[6]===s?p=t[7]:(p=i(s,`alert-expand-button`),t[6]=s,t[7]=p);let m=c&&`-rotate-180`,h;t[8]===m?h=t[9]:(h=r(`size-4 transition-transform duration-200 ease-out-strong motion-reduce:transition-none`,m),t[8]=m,t[9]=h);let g;t[10]===h?g=t[11]:(g=/* @__PURE__ */ v(f,{weight:`bold`,className:h}),t[10]=h,t[11]=g);let _;t[12]===n?_=t[13]:(_=r(`right-1.5 top-1.5 absolute gap-1 ps-1.5 pe-1`,`text-(--alert-control-color,currentColor)`,`not-disabled:hover:bg-(--alert-control-hover-bg,transparent) not-disabled:hover:text-(--alert-control-hover-color,currentColor)`,n),t[12]=n,t[13]=_);let b;t[14]===o?b=t[15]:(b=/* @__PURE__ */ y(`span`,{className:`min-w-[2ch] text-center tabular-nums`,children:[`+`,o]}),t[14]=o,t[15]=b);let x;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=/* @__PURE__ */ v(`span`,{className:`hidden md:inline`,children:`more`}),t[16]=x):x=t[16];let S;return t[17]!==c||t[18]!==l||t[19]!==u||t[20]!==p||t[21]!==g||t[22]!==_||t[23]!==b?(S=/* @__PURE__ */ y(a,{type:`button`,appearance:`ghost`,intent:`neutral`,size:`sm`,"aria-expanded":c,"aria-label":u,"data-slot":p,"data-alert-expand":!0,icon:g,iconPlacement:`end`,className:_,...l,children:[b,x]}),t[17]=c,t[18]=l,t[19]=u,t[20]=p,t[21]=g,t[22]=_,t[23]=b,t[24]=S):S=t[24],S},Description:L,DismissIconButton:e=>{let t=d(26),a,s,c,l,u,f,p,h,_;t[0]===e?(a=t[1],s=t[2],c=t[3],l=t[4],u=t[5],f=t[6],p=t[7],h=t[8],_=t[9]):({"data-slot":s,size:u,type:f,label:p,appearance:h,className:a,icon:_,ref:l,...c}=e,t[0]=e,t[1]=a,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=f,t[7]=p,t[8]=h,t[9]=_);let y=u===void 0?`sm`:u,b=f===void 0?`button`:f,x=p===void 0?`Dismiss Alert`:p,S=h===void 0?`ghost`:h,C=_===void 0?O:_,w=m(D),T=g(null),E=n(T,l),k=w?.redirectDismissFocus??!0,A;t[10]===k?A=t[11]:(A={buttonRef:T,enabled:k},t[10]=k,t[11]=A),V(A);let j;t[12]===s?j=t[13]:(j=i(s,`alert-dismiss-icon-button`),t[12]=s,t[13]=j);let M;t[14]===a?M=t[15]:(M=r(`right-1.5 top-1.5 absolute`,`text-(--alert-control-color,currentColor)`,`not-disabled:hover:bg-(--alert-control-hover-bg,transparent) not-disabled:hover:text-(--alert-control-hover-color,currentColor)`,a),t[14]=a,t[15]=M);let N;return t[16]!==S||t[17]!==E||t[18]!==C||t[19]!==x||t[20]!==c||t[21]!==y||t[22]!==j||t[23]!==M||t[24]!==b?(N=/* @__PURE__ */ v(o,{ref:E,appearance:S,icon:C,intent:`neutral`,label:x,size:y,"data-slot":j,"data-alert-dismiss":!0,className:M,type:b,...c}),t[16]=S,t[17]=E,t[18]=C,t[19]=x,t[20]=c,t[21]=y,t[22]=j,t[23]=M,t[24]=b,t[25]=N):N=t[25],N},Icon:P,Title:I};export{A as n,H as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./icon-kK0c-POG.js";import{t as r}from"./slot-DdYN1L1C.js";import{c as i}from"react/compiler-runtime";import{Children as a,cloneElement as o,isValidElement as s}from"react";import c from"tiny-invariant";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";const f=t=>e(`cursor-pointer rounded bg-transparent text-accent-600 hover:underline focus:outline-hidden focus-visible:ring-3 focus-visible:ring-focus-accent`,t),p=e=>{let p=i(72),g,_,v,y,b,x,S,C,w;p[0]===e?(g=p[1],_=p[2],v=p[3],y=p[4],b=p[5],x=p[6],S=p[7],C=p[8],w=p[9]):({"data-slot":y,asChild:g,children:_,className:v,rel:x,icon:b,iconPlacement:w,ref:C,...S}=e,p[0]=e,p[1]=g,p[2]=_,p[3]=v,p[4]=y,p[5]=b,p[6]=x,p[7]=S,p[8]=C,p[9]=w);let T=w===void 0?`start`:w,E;p[10]===x?E=p[11]:(E=h(x),p[10]=x,p[11]=E);let D=E;if(g){let e,i,h,g,x,w,E;if(p[12]!==_||p[13]!==v||p[14]!==y||p[15]!==b||p[16]!==T||p[17]!==S||p[18]!==C||p[19]!==D){let O=a.only(_);c(s(O),"When using `asChild`, Anchor must be passed a single child as a JSX tag.");let k=O.props?.children,A=S.target===`_blank`||O.props?.target===`_blank`;e=r,p[27]===y?i=p[28]:(i=t(y,`anchor`),p[27]=y,p[28]=i),p[29]===v?h=p[30]:(h=f(v),p[29]=v,p[30]=h),g=C,p[31]!==A||p[32]!==D?(x=D??m(A),p[31]=A,p[32]=D,p[33]=x):x=p[33],w=S;let j;p[34]!==b||p[35]!==T?(j=b&&T===`start`&&/* @__PURE__ */ u(n,{className:`inline-block mr-1.5`,svg:b}),p[34]=b,p[35]=T,p[36]=j):j=p[36];let M;p[37]!==b||p[38]!==T?(M=b&&T===`end`&&/* @__PURE__ */ u(n,{className:`inline-block ml-1.5`,svg:b}),p[37]=b,p[38]=T,p[39]=M):M=p[39],E=o(O,{},/* @__PURE__ */ d(l,{children:[j,/* @__PURE__ */ u(`span`,{"data-slot":`anchor-label`,children:k}),M]})),p[12]=_,p[13]=v,p[14]=y,p[15]=b,p[16]=T,p[17]=S,p[18]=C,p[19]=D,p[20]=e,p[21]=i,p[22]=h,p[23]=g,p[24]=x,p[25]=w,p[26]=E}else e=p[20],i=p[21],h=p[22],g=p[23],x=p[24],w=p[25],E=p[26];let O;return p[40]!==e||p[41]!==i||p[42]!==h||p[43]!==g||p[44]!==x||p[45]!==w||p[46]!==E?(O=/* @__PURE__ */ u(e,{"data-slot":i,className:h,ref:g,rel:x,...w,children:E}),p[40]=e,p[41]=i,p[42]=h,p[43]=g,p[44]=x,p[45]=w,p[46]=E,p[47]=O):O=p[47],O}let O;p[48]===y?O=p[49]:(O=t(y,`anchor`),p[48]=y,p[49]=O);let k;p[50]===v?k=p[51]:(k=f(v),p[50]=v,p[51]=k);let A;p[52]!==S||p[53]!==D?(A=D??m(S.target===`_blank`),p[52]=S,p[53]=D,p[54]=A):A=p[54];let j;p[55]!==b||p[56]!==T?(j=b&&T===`start`&&/* @__PURE__ */ u(n,{className:`inline-block mr-1.5`,svg:b}),p[55]=b,p[56]=T,p[57]=j):j=p[57];let M;p[58]===_?M=p[59]:(M=/* @__PURE__ */ u(`span`,{"data-slot":`anchor-label`,children:_}),p[58]=_,p[59]=M);let N;p[60]!==b||p[61]!==T?(N=b&&T===`end`&&/* @__PURE__ */ u(n,{className:`inline-block ml-1.5`,svg:b}),p[60]=b,p[61]=T,p[62]=N):N=p[62];let P;return p[63]!==S||p[64]!==C||p[65]!==O||p[66]!==k||p[67]!==A||p[68]!==j||p[69]!==M||p[70]!==N?(P=/* @__PURE__ */ d(`a`,{"data-slot":O,className:k,ref:C,rel:A,...S,children:[j,M,N]}),p[63]=S,p[64]=C,p[65]=O,p[66]=k,p[67]=A,p[68]=j,p[69]=M,p[70]=N,p[71]=P):P=p[71],P};function m(e){return e?`noopener noreferrer`:void 0}function h(e){return Array.isArray(e)?[...new Set(e)].map(e=>e?.trim()).filter(Boolean).toSorted().join(` `)||void 0:e?.trim()||void 0}export{f as n,h as r,p as t};
@@ -1 +0,0 @@
1
- import{useSyncExternalStore as e}from"react";function t(){return()=>{}}function n(){return!0}function r(){return!1}function i(){return e(t,n,r)}function a(e){let{children:t,fallback:n}=e,r=n===void 0?null:n;return i()?t():r}function o(){return typeof window<`u`&&typeof document<`u`}export{o as n,i as r,a as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-DdYN1L1C.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";import{cva as a}from"class-variance-authority";const o=a(`border-form inline-flex items-center rounded-md`,{variants:{appearance:{panel:`bg-form gap-0.5 border p-0.75 [--icon-button-border-radius:0.125rem] [&>.separator]:mx-px`,ghost:`gap-0.5`,outlined:``}}}),s=a=>{let s=r(20),c,l,u,d,f,p,m;s[0]===a?(c=s[1],l=s[2],u=s[3],d=s[4],f=s[5],p=s[6],m=s[7]):({"data-slot":f,appearance:c,asChild:l,className:d,children:u,ref:m,...p}=a,s[0]=a,s[1]=c,s[2]=l,s[3]=u,s[4]=d,s[5]=f,s[6]=p,s[7]=m);let h=l?n:`div`,g;s[8]===f?g=s[9]:(g=t(f,`button-group`),s[8]=f,s[9]=g);let _;s[10]!==c||s[11]!==d?(_=e(o({appearance:c}),d),s[10]=c,s[11]=d,s[12]=_):_=s[12];let v;return s[13]!==h||s[14]!==u||s[15]!==p||s[16]!==m||s[17]!==g||s[18]!==_?(v=/* @__PURE__ */ i(h,{"data-slot":g,className:_,ref:m,...p,children:u}),s[13]=h,s[14]=u,s[15]=p,s[16]=m,s[17]=g,s[18]=_,s[19]=v):v=s[19],v};export{s as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{cva as t}from"class-variance-authority";const n=e(`icon-button`,`inline-flex shrink-0 items-center justify-center rounded-(--icon-button-border-radius,0.375rem) border`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`aria-disabled:cursor-default aria-disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`),r=t(n,{variants:{appearance:{filled:`bg-filled-neutral text-neutral-50 focus-visible:ring-focus-accent focus-visible:border-transparent not-disabled:hover:bg-filled-neutral-hover border-transparent`,ghost:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`,outlined:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600 focus-visible:not-disabled:active:border-accent-600`},intent:{neutral:``},isLoading:{false:``,true:`opacity-50`},size:{"2xs":`size-5 [&_svg]:size-4`,xs:`size-6`,sm:`size-7`,md:`size-9`,lg:`size-10`,xl:`size-12`}},defaultVariants:{intent:`neutral`,size:`md`}});export{r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./booleanish-BfvnW6vy.js";import{t}from"./cx-CK7o_rVv.js";import{t as n}from"./data-slot-EM6s2WEU.js";import{n as r,r as i}from"./button-Cu9e3SM7.js";import{t as a}from"./slot-DdYN1L1C.js";import{t as o}from"./button-BQZ6eoD3.js";import{c as s}from"react/compiler-runtime";import{Children as c,cloneElement as l,isValidElement as u}from"react";import d from"tiny-invariant";import{jsx as f}from"react/jsx-runtime";import{CircleNotchIcon as p}from"@phosphor-icons/react/CircleNotch";const m=m=>{let h=s(58),g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;h[0]===m?(g=h[1],_=h[2],v=h[3],y=h[4],b=h[5],x=h[6],S=h[7],C=h[8],w=h[9],T=h[10],E=h[11],D=h[12],O=h[13],k=h[14],A=h[15]):({"aria-disabled":g,"data-slot":x,appearance:v,asChild:D,children:y,className:b,disabled:_,icon:w,intent:S,isLoading:O,label:C,ref:E,size:k,type:A,...T}=m,h[0]=m,h[1]=g,h[2]=_,h[3]=v,h[4]=y,h[5]=b,h[6]=x,h[7]=S,h[8]=C,h[9]=w,h[10]=T,h[11]=E,h[12]=D,h[13]=O,h[14]=k,h[15]=A);let j=D!==void 0&&D,M=O!==void 0&&O,N=k===void 0?`md`:k,P;h[16]!==g||h[17]!==_||h[18]!==M?(P=e(_??M)||e(g),h[16]=g,h[17]=_,h[18]=M,h[19]=P):P=h[19];let F=P,I;h[20]===x?I=h[21]:(I=n(x,`icon-button`),h[20]=x,h[21]=I);let L;h[22]!==v||h[23]!==b||h[24]!==S||h[25]!==M||h[26]!==N?(L=t(o({appearance:v,intent:S,isLoading:M,size:N}),b),h[22]=v,h[23]=b,h[24]=S,h[25]=M,h[26]=N,h[27]=L):L=h[27];let R=F?``:void 0,z=M?``:void 0,B;h[28]!==v||h[29]!==F||h[30]!==S||h[31]!==C||h[32]!==T||h[33]!==E||h[34]!==N||h[35]!==I||h[36]!==L||h[37]!==R||h[38]!==z?(B={"aria-disabled":F,"data-slot":I,className:L,"data-appearance":v,"data-disabled":R,"data-icon-button":!0,"data-intent":S,"data-loading":z,"data-size":N,ref:E,...T,"aria-label":C},h[28]=v,h[29]=F,h[30]=S,h[31]=C,h[32]=T,h[33]=E,h[34]=N,h[35]=I,h[36]=L,h[37]=R,h[38]=z,h[39]=B):B=h[39];let V=B,H=M?`loading`:`idle`,U;h[40]===Symbol.for(`react.memo_cache_sentinel`)?(U=/* @__PURE__ */ f(p,{className:`animate-spin`}),h[40]=U):U=h[40];let W;h[41]===w?W=h[42]:(W={idle:w,loading:U},h[41]=w,h[42]=W);let G;h[43]!==H||h[44]!==W?(G=/* @__PURE__ */ f(i,{active:H,icons:W}),h[43]=H,h[44]=W,h[45]=G):G=h[45];let K=G;if(j){d(u(y)&&c.only(y),"When using `asChild`, IconButton must be passed a single child as a JSX tag.");let e;h[46]!==y||h[47]!==F||h[48]!==K?(e=l(y,F?r:{},K),h[46]=y,h[47]=F,h[48]=K,h[49]=e):e=h[49];let t;return h[50]!==V||h[51]!==e?(t=/* @__PURE__ */ f(a,{...V,children:e}),h[50]=V,h[51]=e,h[52]=t):t=h[52],t}let q=A??`button`,J;return h[53]!==V||h[54]!==F||h[55]!==K||h[56]!==q?(J=/* @__PURE__ */ f(`button`,{...V,disabled:F,type:q,children:K}),h[53]=V,h[54]=F,h[55]=K,h[56]=q,h[57]=J):J=h[57],J};export{m as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./booleanish-BfvnW6vy.js";import{t}from"./clsx-DUGZgXfJ.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as ee}from"./icon-kK0c-POG.js";import{t as i}from"./slot-DdYN1L1C.js";import{c as a}from"react/compiler-runtime";import{Children as o,cloneElement as s,isValidElement as c}from"react";import l from"tiny-invariant";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{cva as p}from"class-variance-authority";import{CircleNotchIcon as m}from"@phosphor-icons/react/CircleNotch";const h=e=>{let t=a(20),i,o,s,c,l;t[0]===e?(i=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({"data-slot":s,active:i,className:o,icons:c,...l}=e,t[0]=e,t[1]=i,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===s?u=t[7]:(u=r(s,`icon-swap`),t[6]=s,t[7]=u);let f;t[8]===o?f=t[9]:(f=n(`inline-grid shrink-0 place-items-center`,o),t[8]=o,t[9]=f);let p;t[10]===c?p=t[11]:(p=Object.entries(c),t[10]=c,t[11]=p);let m;t[12]!==i||t[13]!==p?(m=p.map(e=>{let[t,r]=e,a=t===i;return/* @__PURE__ */ d(`span`,{"data-slot":`icon-swap-item`,"data-state":a?`active`:`inactive`,"aria-hidden":!a||void 0,className:n(`col-start-1 row-start-1 grid place-items-center`,`motion-safe:transition-[opacity,scale,filter,visibility] motion-safe:duration-200 motion-safe:ease-out-strong`,`data-state-inactive:opacity-0 motion-safe:data-state-inactive:scale-50 motion-safe:data-state-inactive:blur-[2px] motion-safe:data-state-inactive:duration-150`,`data-state-inactive:invisible`,`data-state-inactive:*:paused`),children:/* @__PURE__ */ d(ee,{svg:r})},t)}),t[12]=i,t[13]=p,t[14]=m):m=t[14];let h;return t[15]!==l||t[16]!==u||t[17]!==f||t[18]!==m?(h=/* @__PURE__ */ d(`span`,{"data-slot":u,className:f,...l,children:m}),t[15]=l,t[16]=u,t[17]=f,t[18]=m,t[19]=h):h=t[19],h},te=p(``,{variants:{appearance:{filled:`bg-filled-accent text-white focus-visible:ring-focus-accent not-disabled:hover:bg-filled-accent-hover border border-transparent text-sm font-medium`,ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border border-transparent text-sm font-medium`,outlined:`border-accent-600 bg-form text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-accent-700 not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border text-sm font-medium`,link:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:underline group/button-link border-transparent`},isLoading:{false:``,true:`opacity-50`},intent:{accent:``,danger:``,neutral:``},size:{xs:``,sm:``,md:``,lg:``,xl:``}},defaultVariants:{isLoading:!1,size:`md`},compoundVariants:[{appearance:[`filled`,`ghost`,`outlined`],size:`xs`,class:`h-6 px-2`},{appearance:[`filled`,`ghost`,`outlined`],size:`sm`,class:`h-7 px-2.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`md`,class:`h-9 px-3`},{appearance:[`filled`,`ghost`,`outlined`],size:`lg`,class:`h-10 px-3.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`xl`,class:`h-12 px-4`},{appearance:`ghost`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700 border-transparent`},{appearance:`outlined`,intent:`danger`,class:`border-danger-600 bg-form text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:border-danger-700 not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700`},{appearance:`filled`,intent:`danger`,class:`bg-filled-danger focus-visible:ring-focus-danger not-disabled:hover:bg-filled-danger-hover border-transparent`},{appearance:`link`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger`},{appearance:`ghost`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`},{appearance:`outlined`,intent:`neutral`,class:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600 focus-visible:not-disabled:active:border-accent-600`},{appearance:`filled`,intent:`neutral`,class:`bg-filled-neutral not-disabled:hover:bg-filled-neutral-hover border-transparent focus-visible:border-transparent text-neutral-50`},{appearance:`link`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent`}]}),ne={xs:`ps-1.5`,sm:`ps-2`,md:`ps-2.5`,lg:`ps-3`,xl:`ps-3.5`},re={xs:`pe-1.5`,sm:`pe-2`,md:`pe-2.5`,lg:`pe-3`,xl:`pe-3.5`},g=p=>{let g=a(68),_,v,y,b,x,S,C,w,T,E,D,O,k,A,j;g[0]===p?(_=g[1],v=g[2],y=g[3],b=g[4],x=g[5],S=g[6],C=g[7],w=g[8],T=g[9],E=g[10],D=g[11],O=g[12],k=g[13],A=g[14],j=g[15]):({"aria-disabled":_,"data-slot":C,appearance:y,asChild:b,children:x,className:S,disabled:v,icon:T,iconPlacement:O,intent:w,isLoading:k,ref:D,size:A,type:j,...E}=p,g[0]=p,g[1]=_,g[2]=v,g[3]=y,g[4]=b,g[5]=x,g[6]=S,g[7]=C,g[8]=w,g[9]=T,g[10]=E,g[11]=D,g[12]=O,g[13]=k,g[14]=A,g[15]=j);let M=O===void 0?`start`:O,N=k!==void 0&&k,P=A===void 0?`md`:A,F;g[16]!==_||g[17]!==v||g[18]!==N?(F=e(v??N)||e(_),g[16]=_,g[17]=v,g[18]=N,g[19]=F):F=g[19];let I=F,L;g[20]===Symbol.for(`react.memo_cache_sentinel`)?(L=/* @__PURE__ */ d(m,{className:`animate-spin`}),g[20]=L):L=g[20];let ae=L,R=M===`end`&&`order-last`,z;g[21]===R?z=g[22]:(z=t(R),g[21]=R,g[22]=z);let B=z,V;g[23]!==B||g[24]!==N||g[25]!==T?(V=T?/* @__PURE__ */ d(h,{active:N?`loading`:`idle`,icons:{idle:T,loading:ae},className:B}):N&&/* @__PURE__ */ d(ee,{svg:ae,className:B}),g[23]=B,g[24]=N,g[25]=T,g[26]=V):V=g[26];let H=V,U=H&&y!==`link`,W;g[27]===C?W=g[28]:(W=r(C,`button`),g[27]=C,g[28]=W);let G;g[29]!==y||g[30]!==S||g[31]!==U||g[32]!==M||g[33]!==w||g[34]!==N||g[35]!==P?(G=n(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`aria-disabled:cursor-default aria-disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`,te({appearance:y,intent:w,isLoading:N,size:P}),y!==`link`&&`font-sans`,U&&M===`start`&&ne[P],U&&M===`end`&&re[P],S),g[29]=y,g[30]=S,g[31]=U,g[32]=M,g[33]=w,g[34]=N,g[35]=P,g[36]=G):G=g[36];let K=I?``:void 0,q=N?``:void 0,J=y===`link`?void 0:P,Y;g[37]!==y||g[38]!==I||g[39]!==w||g[40]!==E||g[41]!==D||g[42]!==G||g[43]!==K||g[44]!==q||g[45]!==J||g[46]!==W?(Y={"aria-disabled":I,"data-slot":W,className:G,"data-appearance":y,"data-disabled":K,"data-intent":w,"data-loading":q,"data-size":J,ref:D,...E},g[37]=y,g[38]=I,g[39]=w,g[40]=E,g[41]=D,g[42]=G,g[43]=K,g[44]=q,g[45]=J,g[46]=W,g[47]=Y):Y=g[47];let X=Y;if(b){l(c(x)&&o.only(x),"When using `asChild`, Button must be passed a single child as a JSX tag.");let e;if(g[48]!==x||g[49]!==I||g[50]!==H){let t;g[52]===x.props.children?t=g[53]:(t=/* @__PURE__ */ d(`span`,{"data-slot":`button-label`,className:`contents`,children:x.props.children}),g[52]=x.props.children,g[53]=t);let n;g[54]!==H||g[55]!==t?(n=/* @__PURE__ */ f(u,{children:[H,t]}),g[54]=H,g[55]=t,g[56]=n):n=g[56],e=s(x,I?ie:{},n),g[48]=x,g[49]=I,g[50]=H,g[51]=e}else e=g[51];let t;return g[57]!==X||g[58]!==e?(t=/* @__PURE__ */ d(i,{...X,children:e}),g[57]=X,g[58]=e,g[59]=t):t=g[59],t}let Z=j??`button`,Q;g[60]===x?Q=g[61]:(Q=/* @__PURE__ */ d(`span`,{"data-slot":`button-label`,className:`contents`,children:x}),g[60]=x,g[61]=Q);let $;return g[62]!==X||g[63]!==I||g[64]!==H||g[65]!==Z||g[66]!==Q?($=/* @__PURE__ */ f(`button`,{...X,disabled:I,type:Z,children:[H,Q]}),g[62]=X,g[63]=I,g[64]=H,g[65]=Z,g[66]=Q,g[67]=$):$=g[67],$},ie={tabIndex:-1,onClickCapture:e=>{e.preventDefault(),e.stopPropagation()}};export{ie as n,h as r,g as t};
@@ -1 +0,0 @@
1
- import{h as e,m as t}from"./chart-DudCw24t.js";import{a as n}from"./chart-CE5Uaqz9.js";const r=Math.PI/2-.05,i=e=>({cosYaw:Math.cos(e.yaw),sinYaw:Math.sin(e.yaw),cosPitch:Math.cos(e.pitch),sinPitch:Math.sin(e.pitch)}),a=(e,t,n,r)=>{let i=e*r.cosYaw+n*r.sinYaw,a=-e*r.sinYaw+n*r.cosYaw,o=t*r.cosPitch-a*r.sinPitch,s=t*r.sinPitch+a*r.cosPitch,c=4/(4+s);return{x:i*c,y:o*c,depth:s,scale:c}},o=e=>Math.min(r,Math.max(-r,e)),s=(e,t)=>{let n=t[1]-t[0];return n===0?0:(e-t[0])/n*2-1},c=[[-1,-1,-1],[1,-1,-1],[1,1,-1],[-1,1,-1],[-1,-1,1],[1,-1,1],[1,1,1],[-1,1,1]],l=[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[1,5],[2,6],[3,7]],u=(t,r)=>{let{count:i,order:a,screenX:o,screenY:s,radius:c,colorAt:l,shapeAt:u,alphaAt:d,surface:f}=r;if(t.save(),i>2e4){let e=``,n=-1;for(let r of a){let i=l(r);i!==e&&(t.fillStyle=i,e=i);let a=d(r);a!==n&&(t.globalAlpha=a,n=a);let u=Math.max(1,(c[r]??0)/2);t.fillRect((o[r]??0)-u/2,(s[r]??0)-u/2,u,u)}t.restore();return}let p=i<=n;t.strokeStyle=f,t.lineWidth=2;let m=``,h=-1;for(let n of a){let r=l(n);r!==m&&(t.fillStyle=r,m=r);let i=d(n);i!==h&&(t.globalAlpha=i,h=i),t.beginPath(),e(t,o[n]??0,s[n]??0,c[n]??0,u(n)),t.fill(),p&&t.stroke()}t.restore()},d=(e,t)=>{let{gridColor:n,axisColor:r,corners:i,edges:a,cubeAlpha:o,axes:s}=t;if(e.save(),o>.01){e.globalAlpha=o,e.strokeStyle=n,e.lineWidth=1,e.beginPath();for(let[t,n]of a){let r=i[t],a=i[n];r!=null&&a!=null&&(e.moveTo(r.x,r.y),e.lineTo(a.x,a.y))}e.stroke()}e.strokeStyle=r;for(let{alpha:t,from:n,to:r}of s)t<=.01||(e.globalAlpha=t,e.beginPath(),e.moveTo(n.x,n.y),e.lineTo(r.x,r.y),e.stroke());e.restore()},f=(e,t)=>{let{textColor:n,fontFamily:r,plot:i,center:a,axes:o}=t;e.save(),e.fillStyle=n,e.font=`11px ${r}`,e.textAlign=`center`,e.textBaseline=`middle`;for(let{label:t,alpha:n,from:r,to:s}of o){if(n<=.01)continue;let o=Math.hypot(r.x-a.x,r.y-a.y),c=Math.hypot(s.x-a.x,s.y-a.y),l=c>=o?s:r,u=c>=o?r:s,d=Math.max(1,Math.hypot(l.x-u.x,l.y-u.y)),f=(l.x-u.x)/d*16,p=(l.y-u.y)/d*16,m=Math.min(i.left+i.width-8,Math.max(i.left+8,l.x+f)),h=Math.min(i.top+i.height-6,Math.max(i.top+6,l.y+p));e.globalAlpha=n,e.fillText(t,m,h)}e.restore()},p=e=>e===3?{yaw:.65,pitch:-.35}:{yaw:0,pitch:0},m=e=>[+(e>=2),+(e>=3)];var h=class{#e;#t=p(3);#n=new t({speed:.12});#r=new t({speed:.16});#i=null;#a=null;#o=/* @__PURE__ */ new Int32Array;constructor(e,t){this.#e=e,this.snap(t)}setDimensions(e,t){let n=p(e);if(!t.glide){this.snap(e);return}let r=n.yaw+Math.round((this.#t.yaw-n.yaw)/(Math.PI*2))*Math.PI*2,i=performance.now();this.#r.aim(m(e),i),this.#n.jump([this.#t.yaw,this.#t.pitch]),this.#n.aim([r,n.pitch],i)}snap(e){let t=p(e);this.#r.jump(m(e)),this.#t=t,this.#n.jump([t.yaw,t.pitch])}settle(e){this.#r.jump(m(e)),this.#n.active&&this.snap(e)}tick(e){let t=this.#r.tick(e);if(this.#n.tick(e)){t=!0;let e=this.#n.values();this.#t={yaw:e[0]??this.#t.yaw,pitch:e[1]??this.#t.pitch}}return t}resetProjection(){this.#a=null}press({x:e,y:t,moved:n}){this.#i={lastX:e,lastY:t,moved:n}}dragTo(e,t){let n=this.#i;if(n==null)return`none`;let r=e-n.lastX,i=t-n.lastY;return!n.moved&&Math.abs(r)+Math.abs(i)<=3?`held`:(n.moved=!0,this.#t={yaw:this.#t.yaw+r*.008,pitch:o(this.#t.pitch+i*.008)},this.#n.jump([this.#t.yaw,this.#t.pitch]),n.lastX=e,n.lastY=t,`rotated`)}release(){let e=this.#i;return this.#i=null,e==null?`none`:e.moved?`rotated`:`tap`}paintLabels(e,t){let n=this.#e.colors();n!=null&&f(e,{textColor:n.chrome.tickText,fontFamily:n.fontFamily(),plot:this.#e.plot(),center:t.center,axes:t.axes})}paint(e,t,n){let r=this.#e,o=r.plot(),f=r.rowCount(),p=r.xs(),m=r.zs(),h=i(this.#t),g=o.left+o.width/2,_=o.top+o.height/2,v=this.#r.values(),y=v[0]??1,b=v[1]??1,x=.85-.22*y-.11*b,S=Math.min(o.width,o.height)/2*x,C=r.domains(),w=n.map(e=>r.reveal(e.dataKey)),T=(e,t,n)=>{let r=a(e,t,n,h);return{x:g+r.x*S,y:_-r.y*S}},E=c.map(([e,t,n])=>T(e,t,n)),D=n[0],O=n.length===1&&D!=null?D.dataKey:`y`,k=[{label:r.xKey(),alpha:1,from:T(-1,-y,-b),to:T(1,-y,-b)},{label:O,alpha:y,from:T(-1,-1,-b),to:T(-1,1,-b)},{label:r.zKey()??`z`,alpha:b,from:T(-1,-y,-1),to:T(-1,-y,1)}];d(e,{gridColor:t.chrome.grid,axisColor:t.chrome.baseline,corners:E,edges:l,cubeAlpha:b,axes:k});let A=f*n.length,j=this.#a;(j==null||j.screenX.length<A)&&(j={screenX:new Float64Array(A),screenY:new Float64Array(A),radius:new Float64Array(A),seriesIndex:new Int32Array(A),pointIndex:new Int32Array(A),depths:new Float64Array(A),count:0});let M=j.depths,N=0;n.forEach((e,t)=>{let n=r.paintedValues(e,t);for(let e=0;e<f;e++){let r=n[e]??NaN,i=m[e]??NaN;if(Number.isNaN(r)||Number.isNaN(i))continue;let o=a(s(p[e]??0,C.x),s(r,C.y)*y,s(i,C.z)*b,h);j.screenX[N]=g+o.x*S,j.screenY[N]=_-o.y*S,j.radius[N]=4*o.scale,j.seriesIndex[N]=t,j.pointIndex[N]=e,M[N]=o.depth,N+=1}}),j.count=N,this.#a=j;let P={center:{x:g,y:_},axes:k};if(w.every(e=>e<.00196078431372549))return P;this.#o.length<N&&(this.#o=new Int32Array(A));let F=this.#o.subarray(0,N);for(let e=0;e<N;e++)F[e]=e;F.sort((e,t)=>(M[t]??0)-(M[e]??0));let I=n.map(e=>r.shape(e.dataKey));return u(e,{count:N,order:F,screenX:j.screenX,screenY:j.screenY,radius:j.radius,colorAt:e=>{let r=n[j.seriesIndex[e]??0];return r==null?`currentColor`:t.series.get(r.dataKey)??`currentColor`},shapeAt:e=>I[j.seriesIndex[e]??0]??`circle`,alphaAt:e=>w[j.seriesIndex[e]??0]??1,surface:t.chrome.surface}),P}hitAt(e,t,n){let r=this.#e.specs(),i=n*n,a=null,o=this.#a;if(o==null)return null;for(let n=0;n<o.count;n++){let s=(o.screenX[n]??0)-e,c=(o.screenY[n]??0)-t,l=s*s+c*c;if(l<i){let e=r[o.seriesIndex[n]??0];if(e==null)continue;i=l,a={seriesKey:e.dataKey,index:o.pointIndex[n]??0,screenX:o.screenX[n]??0,screenY:o.screenY[n]??0}}}return a}screenFor(e){let t=this.#a;if(t==null)return null;for(let n=0;n<t.count;n++)if((t.pointIndex[n]??-1)===e)return{x:t.screenX[n]??0,y:t.screenY[n]??0};return null}};export{h as Scatter3d};
@@ -1 +0,0 @@
1
- import{g as e,h as t}from"./chart-DudCw24t.js";const n=5e3,r=2e4,i=(e,r)=>{let{color:i,surface:a,shape:o,totalPointCount:s,indexes:c,xAt:l,yAt:u,radiusAt:d}=r;if(e.fillStyle=i,s>2e4){e.beginPath();for(let t of c)d(t)<=0||e.rect(l(t)-1,u(t)-1,2,2);e.fill();return}let f=s<=n;e.strokeStyle=a,e.lineWidth=2;for(let n of c){let r=d(n);r<=0||(e.beginPath(),t(e,l(n),u(n),r,o),e.fill(),f&&e.stroke())}},a=1/510,o=[1e3,4e3,16e3];let s=null,c=null;const l=()=>(c??=import(`./chart-BO9EwQ60.js`).then(e=>(s=e.Scatter3d,e.Scatter3d),e=>{throw c=null,reportError(e),e}),c);var u=class{#e;#t=null;#n=!1;#r=0;#i=null;#a=null;#o=3;#s=null;constructor(e){this.#e=e}#c(){if(this.#t==null&&s!=null){this.#t=new s(this.#e,this.#o),this.#d();let e=this.#a;this.#a=null,e!=null&&this.#t.press(e)}return this.#t!=null||this.#n?this.#t:(this.#n=!0,this.#l(),null)}async#l(){try{await l()}catch{this.#n=!1,this.#u();return}this.#n=!1,this.#c(),this.#e.requestPaint()}#u(){let e=o[this.#r];e!=null&&this.#i==null&&(this.#r+=1,this.#i=setTimeout(()=>{this.#i=null,this.#e.requestPaint()},e))}#d(){this.#i!=null&&(clearTimeout(this.#i),this.#i=null),this.#r=0}setDimensions(e,t){this.#o=e,this.#t?.setDimensions(e,t)}settle(e){this.#o=e,this.#t?.settle(e)}tick(e){return this.#t?.tick(e)??!1}resetProjection(){this.#d(),this.#t?.resetProjection()}pressAt(e,t){if(!this.#e.is3d())return!1;this.#d();let n=this.#c();return n==null?this.#a={x:e,y:t,moved:!1}:n.press({x:e,y:t,moved:!1}),!0}dragTo(e,t){let n=this.#a;return n==null?this.#t?.dragTo(e,t)??`none`:(n.moved||=Math.abs(e-n.x)+Math.abs(t-n.y)>3,`held`)}release(){let e=this.#a;return e==null?this.#t?.release()??`none`:(this.#a=null,e.moved?`rotated`:`tap`)}paint(e){let t=this.#e,n=t.colors(),r=t.specs();if(n==null||t.rowCount()===0||r.length===0)return null;if(t.is3d())return this.#c()?.paint(e,n,r)??null;let a=t.xCoefficients(),o=t.yCoefficients(),s=t.xs(),c=t.columns(),l=this.#s;if(l==null||l.columns!==c||l.specs!==r){let e=r.map((e,n)=>t.definedIndexes(c[n]??/* @__PURE__ */ new Float64Array));l={columns:c,specs:r,indexes:e,total:e.reduce((e,t)=>e+t.length,0)},this.#s=l}let u=l.indexes,d=l.total;return r.forEach((r,c)=>{let l=t.reveal(r.dataKey);if(l<.00196078431372549)return;let f=t.paintedValues(r,c);e.save(),e.globalAlpha=l,i(e,{color:n.series.get(r.dataKey)??`currentColor`,surface:n.chrome.surface,shape:t.shape(r.dataKey),totalPointCount:d,indexes:u[c]??[],xAt:e=>(s[e]??0)*a.k+a.b,yAt:e=>(f[e]??0)*o.k+o.b,radiusAt:()=>4}),e.restore()}),null}paintLabels(e,t){this.#t?.paintLabels(e,t)}hitAt(t,n){let r=this.#e;if(r.is3d())return this.#t?.hitAt(t,n,24)??null;let i=r.specs(),a=576,o=null,s=r.xCoefficients(),c=r.yCoefficients(),l=r.xs(),u=r.rowCount(),d=e=>(l[e]??0)*s.k+s.b,f=s.k>0,p=f?e(u,e=>d(e)-t<=-24):0,m=f?e(u,e=>d(e)-t<24):u;for(let e of i){let i=r.columnOf(e.dataKey);if(i!=null)for(let r=p;r<m;r++){let s=i[r]??NaN;if(Number.isNaN(s))continue;let l=d(r),u=s*c.k+c.b,f=l-t,p=u-n,m=f*f+p*p;m<a&&(a=m,o={seriesKey:e.dataKey,index:r,screenX:l,screenY:u})}}return o}screenFor(e){let t=this.#e;if(t.is3d())return this.#t?.screenFor(e)??null;let n=t.xCoefficients(),r=t.yCoefficients();for(let i of t.specs()){let a=t.columnOf(i.dataKey)?.[e]??NaN;if(!Number.isNaN(a))return{x:(t.xs()[e]??0)*n.k+n.b,y:a*r.k+r.b}}return null}};const d=e=>new u(e);export{n as a,r as i,d as n,l as r,a as t};
@@ -1 +0,0 @@
1
- import{f as e,i as t,p as n,r}from"./chart-DudCw24t.js";import i from"tiny-invariant";const a=`http://www.w3.org/2000/svg`,o=e=>e?.namespaceURI===a,s=[`underlay`,`marks`,`overlay`],c={fillStyle:`#000`,strokeStyle:`#000`,lineWidth:1,globalAlpha:1,lineJoin:`miter`,lineCap:`butt`,dash:``,font:`10px sans-serif`,textAlign:`start`,textBaseline:`alphabetic`,clip:null},l=e=>String(Math.round(e*100)/100),u={start:`start`,left:`start`,center:`middle`,right:`end`,end:`end`},d={top:`text-before-edge`,hanging:`hanging`,middle:`central`,alphabetic:`alphabetic`,ideographic:`ideographic`,bottom:`text-after-edge`},f=/* @__PURE__ */ new WeakMap,p=e=>(f.has(e)||f.set(e,e.createElement(`canvas`).getContext(`2d`)),f.get(e)??null),m=e=>Number.parseFloat(e)||10,h=e=>e==null?``:`${l(e.x)},${l(e.y)},${l(e.width)},${l(e.height)}`,g=(e,t)=>{if(e==null)return t;let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y);return{x:n,y:r,width:Math.max(0,Math.min(e.x+e.width,t.x+t.width)-n),height:Math.max(0,Math.min(e.y+e.height,t.y+t.height)-r)}};var _=class{#e={...c};#t=[];#n=[];#r=null;#i=0;#a=!1;#o;layer=`overlay`;marks={underlay:[],marks:[],overlay:[]};constructor(e){this.#o=e}get fillStyle(){return this.#e.fillStyle}set fillStyle(e){i(typeof e==`string`,`The SVG chart backend fills with color strings only.`),this.#e.fillStyle=e}get strokeStyle(){return this.#e.strokeStyle}set strokeStyle(e){i(typeof e==`string`,`The SVG chart backend strokes with color strings only.`),this.#e.strokeStyle=e}get lineWidth(){return this.#e.lineWidth}set lineWidth(e){this.#e.lineWidth=e}get globalAlpha(){return this.#e.globalAlpha}set globalAlpha(e){this.#e.globalAlpha=e}get lineJoin(){return this.#e.lineJoin}set lineJoin(e){this.#e.lineJoin=e}get lineCap(){return this.#e.lineCap}set lineCap(e){this.#e.lineCap=e}get font(){return this.#e.font}set font(e){this.#e.font=e}get textAlign(){return this.#e.textAlign}set textAlign(e){this.#e.textAlign=e}get textBaseline(){return this.#e.textBaseline}set textBaseline(e){this.#e.textBaseline=e}reset(){this.#e={...c},this.#t=[],this.beginPath();for(let e of s)this.marks[e]=[];this.layer=`overlay`}save(){this.#t.push({...this.#e})}restore(){let e=this.#t.pop();e!=null&&(this.#e=e)}beginPath(){this.#n=[],this.#r=null,this.#i=0,this.#a=!1}closePath(){this.#n.push(`Z`)}moveTo(e,t){this.#n.push(`M${l(e)} ${l(t)}`),this.#i+=1,this.#r=null,this.#a=!0}lineTo(e,t){let n=this.#a?`L`:`M`;this.#n.push(`${n}${l(e)} ${l(t)}`),this.#r=null,this.#a=!0}bezierCurveTo(e,t,n,r,i,a){this.#n.push(`C${l(e)} ${l(t)} ${l(n)} ${l(r)} ${l(i)} ${l(a)}`),this.#r=null,this.#a=!0}rect(e,t,n,r){this.#n.push(`M${l(e)} ${l(t)}h${l(n)}v${l(r)}h${l(-n)}Z`),this.#i+=1,this.#r=this.#i===1?{x:e,y:t,width:n,height:r}:null,this.#a=!0}roundRect(e,t,n,r,i){let[a=0,o=0,s=0,c=0]=i,u=e+n,d=t+r,f=(e,t,n)=>e>0?`A${l(e)} ${l(e)} 0 0 1 ${l(t)} ${l(n)}`:`L${l(t)} ${l(n)}`;this.#n.push(`M${l(e+a)} ${l(t)}`,`L${l(u-o)} ${l(t)}`,f(o,u,t+o),`L${l(u)} ${l(d-s)}`,f(s,u-s,d),`L${l(e+c)} ${l(d)}`,f(c,e,d-c),`L${l(e)} ${l(t+a)}`,f(a,e+a,t),`Z`),this.#i+=1,this.#r=null,this.#a=!0}arc(e,t,n,r,i){let a=e+n*Math.cos(r),o=t+n*Math.sin(r);this.#n.push(`${this.#a?`L`:`M`}${l(a)} ${l(o)}`);let s=i-r,c=l(n);if(s>=Math.PI*2){let i=e-n*Math.cos(r),s=t-n*Math.sin(r);this.#n.push(`A${c} ${c} 0 1 1 ${l(i)} ${l(s)}`,`A${c} ${c} 0 1 1 ${l(a)} ${l(o)}`)}else{let r=e+n*Math.cos(i),a=t+n*Math.sin(i),o=+(s>Math.PI);this.#n.push(`A${c} ${c} 0 ${o} 1 ${l(r)} ${l(a)}`)}this.#r=null,this.#a=!0}fill(){this.#s(`fill`,this.#n.join(``))}stroke(){this.#s(`stroke`,this.#n.join(``))}fillRect(e,t,n,r){this.#s(`fill`,`M${l(e)} ${l(t)}h${l(n)}v${l(r)}h${l(-n)}Z`)}clip(){let e=this.#r;i(e!=null,`The SVG chart backend clips to one rectangle only.`),this.#e.clip=g(this.#e.clip,e)}setLineDash(e){this.#e.dash=e.join(` `)}fillText(e,t,n){this.marks[this.layer].push({type:`text`,text:e,x:t,y:n,state:{...this.#e}})}measureText(e){let t=p(this.#o);return t==null?{width:e.length*m(this.#e.font)*.6}:(t.font=this.#e.font,{width:t.measureText(e).width})}#s(e,t){if(t===``)return;let n=this.#e,r=e===`fill`?`f|${n.fillStyle}|${n.globalAlpha}|${h(n.clip)}`:`s|${n.strokeStyle}|${n.globalAlpha}|${n.lineWidth}|${n.lineJoin}|${n.lineCap}|${n.dash}|${h(n.clip)}`,i=this.marks[this.layer],a=i.at(-1);a?.type===`path`&&a.key===r?a.data+=t:i.push({type:`path`,key:r,data:t,paint:e,state:{...n}})}};const v=/* @__PURE__ */ new WeakMap,y=(e,t,n)=>{let r=v.get(e);r??(r=/* @__PURE__ */ new Map,v.set(e,r)),r.get(t)!==n&&(r.set(t,n),n===``?e.style.removeProperty(t):e.style.setProperty(t,n))},b=(e,t,n)=>{n==null?e.hasAttribute(t)&&e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)};let x=0;var S=class{svg;#e;#t;#n;#r;#i=/* @__PURE__ */ new Map;#a=0;#o=null;constructor(e,t){this.#e=e,x+=1,this.#r=`mantle-chart-${x}`;let n=this.#s(`svg`);n.setAttribute(`data-slot`,`${t}-svg`),n.setAttribute(`aria-hidden`,`true`),n.setAttribute(`focusable`,`false`),n.style.position=`absolute`,n.style.inset=`0`,n.style.width=`100%`,n.style.height=`100%`,n.style.overflow=`hidden`,n.style.direction=`ltr`,this.#t=this.#s(`defs`),n.append(this.#t),this.#n={underlay:this.#s(`g`),marks:this.#s(`g`),overlay:this.#s(`g`)};for(let e of s)n.append(this.#n[e]);this.svg=n}#s(e){return this.#e.createElementNS(a,e)}id(e){return`${this.#r}-${e}`}define(e){let t=e.id===``?null:this.#t.querySelector(`#${e.id}`);t==null?this.#t.append(e):t.replaceWith(e)}undefine(e){for(let t of Array.from(this.#t.children))t.id.startsWith(e)&&t.remove()}write(e,t){let n=/* @__PURE__ */ new Set;for(let t of s)this.#c(this.#n[t],e.marks[t],n);for(let[e,t]of this.#i)n.has(e)||(t.remove(),this.#i.delete(e));this.#u(t)}#c(e,t,n){for(t.forEach((t,r)=>{let i=t.type===`path`?`path`:`text`,a=e.children[r],s;o(a)&&a.localName===i?s=a:(s=this.#s(i),a==null?e.append(s):a.replaceWith(s));let{state:c}=t,f=h(c.clip);b(s,`clip-path`,f===``?null:`url(#${this.#l(f,c.clip)})`),f!==``&&n.add(f),y(s,`opacity`,c.globalAlpha===1?``:String(c.globalAlpha)),t.type===`path`?(b(s,`d`,t.data),t.paint===`fill`?(y(s,`fill`,c.fillStyle),y(s,`stroke`,`none`),y(s,`stroke-width`,``),y(s,`stroke-linejoin`,``),y(s,`stroke-linecap`,``),y(s,`stroke-dasharray`,``)):(y(s,`fill`,`none`),y(s,`stroke`,c.strokeStyle),y(s,`stroke-width`,String(c.lineWidth)),y(s,`stroke-linejoin`,c.lineJoin),y(s,`stroke-linecap`,c.lineCap),y(s,`stroke-dasharray`,c.dash))):(b(s,`x`,l(t.x)),b(s,`y`,l(t.y)),y(s,`font`,c.font),y(s,`fill`,c.fillStyle),y(s,`text-anchor`,u[c.textAlign]),y(s,`dominant-baseline`,d[c.textBaseline]),s.textContent!==t.text&&(s.textContent=t.text))});e.children.length>t.length;)e.lastElementChild?.remove()}#l(e,t){let n=this.#i.get(e);if(n==null&&t!=null){n=this.#s(`clipPath`),this.#a+=1,n.id=this.id(`clip-${this.#a}`);let r=this.#s(`rect`);r.setAttribute(`x`,l(t.x)),r.setAttribute(`y`,l(t.y)),r.setAttribute(`width`,l(t.width)),r.setAttribute(`height`,l(t.height)),n.append(r),this.#t.append(n),this.#i.set(e,n)}return n?.id??``}#u(e){let t=this.#n.marks;if(e==null){b(t,`mask`,null);return}if(this.#o==null){let e=this.#s(`mask`);e.id=this.id(`fade`),e.setAttribute(`maskUnits`,`userSpaceOnUse`);let t=this.#s(`linearGradient`);t.id=this.id(`fade-ramp`),t.setAttribute(`gradientUnits`,`userSpaceOnUse`);let n=this.#s(`stop`);n.setAttribute(`offset`,`0`),n.setAttribute(`stop-color`,`white`);let r=this.#s(`stop`);r.setAttribute(`offset`,`1`),r.setAttribute(`stop-color`,`white`),t.append(n,r);let i=this.#s(`rect`);i.setAttribute(`x`,`0`),i.setAttribute(`y`,`0`),i.setAttribute(`width`,`100%`),i.setAttribute(`height`,`100%`),i.setAttribute(`fill`,`url(#${t.id})`),e.append(i),this.#t.append(t,e),this.#o={mask:e,gradient:t,rect:i}}let{gradient:n}=this.#o;b(n,`x1`,l(e.left)),b(n,`x2`,l(e.left+e.width)),n.firstElementChild?.setAttribute(`stop-opacity`,String(1-e.alpha)),b(t,`mask`,`url(#${this.#o.mask.id})`)}},C=class{kind=`svg`;element;#e;#t;#n;#r=null;#i=null;constructor({root:e,slotName:t}){this.#e=e;let n=e.ownerDocument;this.#t=new S(n,t),this.#n=new _(n),this.element=this.#t.svg}paintSignature({orientation:e}){return e}resolvePaint({series:e,orientation:n,signature:i}){this.#i=null;let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=this.#t.id(`texture-`);return this.#t.undefine(c),e.forEach((e,t)=>{if(a.set(e.dataKey,e.color),o.set(e.dataKey,`${e.colorInput}|${e.texture}`),e.mark!==`bar`||e.texture===`solid`)return;let r=`${c}${t}`;this.#t.define(this.#o(r,e.texture,e.color,n)),s.set(e.dataKey,`url(#${r})`)}),{signature:i,series:a,inputs:o,barFills:s,chrome:r,fontFamily:this.#a,resolve:t}}#a=()=>{if(this.#i==null){let e=this.#e.ownerDocument.defaultView;this.#i=e?.getComputedStyle(this.#e).fontFamily||`sans-serif`}return this.#i};#o(t,r,i,o){let s=this.#e.ownerDocument,c=s.createElementNS(a,`pattern`);c.id=t,c.setAttribute(`patternUnits`,`userSpaceOnUse`),c.setAttribute(`width`,`8`),c.setAttribute(`height`,`8`);let l=new _(s);e(l,{texture:r,ground:n(i),ink:i,orientation:o});let u=s.createElementNS(a,`g`);for(let e of l.marks.overlay){if(e.type!==`path`)continue;let t=s.createElementNS(a,`path`);t.setAttribute(`d`,e.data),e.paint===`fill`?t.style.setProperty(`fill`,e.state.fillStyle):(t.style.setProperty(`fill`,`none`),t.style.setProperty(`stroke`,e.state.strokeStyle),t.style.setProperty(`stroke-width`,String(e.state.lineWidth)),t.style.setProperty(`stroke-linecap`,e.state.lineCap)),u.append(t)}return c.append(u),c}measureContext(){return this.#n}begin(){return this.#n.reset(),this.#r=null,this.#n}composite(e,t){let n=this.#n;n.layer=`underlay`,t.underlay(),n.layer=`marks`,t.marks(),n.layer=`overlay`,this.#r=t.fade}end(){this.#t.write(this.#n,this.#r),this.#n.reset()}release(){}destroy(){}};const w=Object.assign(e=>new C(e),{kind:`svg`});export{w as t};
@@ -1,2 +0,0 @@
1
- import{r as e}from"./browser-only-BTSrYWLj.js";import{n as t,t as n}from"./compose-refs-sFdxsL7k.js";import{t as r}from"./cx-CK7o_rVv.js";import{t as i}from"./data-slot-EM6s2WEU.js";import{r as a}from"./button-Cu9e3SM7.js";import{t as o}from"./button-BWGUuWnu.js";import{t as s}from"./use-copy-to-clipboard-Dy_0Qzb7.js";import{t as c}from"./alternate-announcement-BkH4bOKp.js";import{t as l}from"./live-region-DQ1QLv3L.js";import{r as u}from"./color-CHZbU1Ww.js";import{t as d}from"./use-callback-ref-BvVyI5K1.js";import{c as f}from"react/compiler-runtime";import{createContext as p,useContext as m,useEffect as h,useId as g,useLayoutEffect as _,useRef as v,useState as y,useSyncExternalStore as b}from"react";import x from"tiny-invariant";import{Fragment as S,jsx as C,jsxs as w}from"react/jsx-runtime";import{CheckIcon as T}from"@phosphor-icons/react/Check";import{CopyIcon as E}from"@phosphor-icons/react/Copy";const D=(e,t)=>Reflect.get(e,t),O=(e,t)=>e instanceof Date?e.getTime():typeof e==`number`?e:t&&typeof e==`string`?new Date(e).getTime():NaN,k=(e,t,n,r)=>{let i=/* @__PURE__ */ new Set;for(let e of r)for(let t of Object.keys(e))i.add(t);return`${e} ${t} "${n}" does not match any key in the provided data. Available keys: ${[...i].join(`, `)}.`},A=(e,t,n)=>`${e} could not read any "${t}" values as ${n===`time`?`dates`:`numbers`} for the "${n}" x scale — check the xScale and the data types.`,ee=(e,t)=>e.some(e=>D(e,t)!==void 0),te=({rootName:e,partName:t,rows:n,xKey:r,xScale:i,dataKeys:a,zKey:o})=>{if(n.length===0)return;if(!ee(n,r))throw Error(k(e,`xKey`,r,n));let s=n;if(i===`linear`||i===`time`){let t=!1;if(s=n.filter(e=>{let n=D(e,r);return n!=null&&(t=!0),Number.isFinite(O(n,i===`time`))}),t&&s.length===0)throw Error(A(e,r,i))}if(s.length!==0){for(let e of a)if(!ee(s,e))throw Error(k(t,`dataKey`,e,n));if(o!=null&&!ee(s,o))throw Error(k(e,`zKey`,o,n))}},j=e=>e.replaceAll(`|`,`\\|`).replaceAll(/\s*\n\s*/g,` `),M=(e,t)=>{let n=t===`time`?new Date(O(e,!0)):e;return n instanceof Date?Number.isNaN(n.getTime())?`—`:n.toISOString():typeof n==`number`?Number.isFinite(n)?String(n):`—`:typeof n==`string`?j(n):`—`},N=e=>typeof e==`number`&&Number.isFinite(e)?String(e):`—`,P=e=>`| ${e.join(` | `)} |`,ne=({data:e,xKey:t,xScale:n,series:r,zKey:i})=>{let a=[j(t),...r.map(e=>j(e.label)),...i==null?[]:[j(i)]],o=e.map(e=>[M(D(e,t),n),...r.map(t=>N(D(e,t.dataKey))),...i==null?[]:[N(D(e,i))]]);return[P(a),P(a.map(()=>`---`)),...o.map(e=>P(e))].join(`
2
- `)},re=p(null),F=e=>{let t=m(re);return x(t,()=>`${e} must be composed inside ${e.split(`.`)[0]}.Root — it registers into the chart it belongs to and renders nothing on its own.`),t},ie=e=>{let t=f(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().series,r=()=>e.getSnapshot().series,t[0]=e,t[1]=n,t[2]=r),b(e.subscribe,n,r)},ae=(e,t)=>{let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&Object.is(Reflect.get(e,n),Reflect.get(t,n)))},oe=e=>{let[t,n]=y(e);return ae(t,e)?t:(n(e),e)},I=e=>{let t=f(36),n,r,u,d,p,m,g,_,b;t[0]===e?(n=t[1],r=t[2],u=t[3],d=t[4],p=t[5],m=t[6],g=t[7],_=t[8],b=t[9]):({partName:p,slotName:_,label:b,onCopy:u,onCopyError:d,onClick:r,ref:g,"data-slot":n,...m}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=u,t[4]=d,t[5]=p,t[6]=m,t[7]=g,t[8]=_,t[9]=b);let x=b===void 0?`Copy data as Markdown`:b,D=F(p),O=s(),[k,A]=y(``),ee=k!==``,te=v(!1),j=v(void 0),M,N;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>()=>{j.current!=null&&clearTimeout(j.current)},N=[],t[10]=M,t[11]=N):(M=t[10],N=t[11]),h(M,N);let P=`${_}-copy-button`,re;t[12]!==n||t[13]!==P?(re=i(n,P),t[12]=n,t[13]=P,t[14]=re):re=t[14];let ie=ee?`check`:`copy`,ae;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(ae={check:/* @__PURE__ */ C(T,{}),copy:/* @__PURE__ */ C(E,{})},t[15]=ae):ae=t[15];let oe;t[16]===ie?oe=t[17]:(oe=/* @__PURE__ */ C(a,{active:ie,icons:ae}),t[16]=ie,t[17]=oe);let I;t[18]!==D||t[19]!==O||t[20]!==r||t[21]!==u||t[22]!==d?(I=async e=>{try{if(r?.(e),e.defaultPrevented){j.current!=null&&(clearTimeout(j.current),j.current=void 0),A(``);return}let{data:t,xKey:n,xScale:i,zKey:a}=D.dataRef.current,o=ne({data:t,xKey:n,xScale:i,zKey:a,series:D.store.getSnapshot().series});await O(o),u?.(o),A(c(`Copied`,te)),j.current!=null&&clearTimeout(j.current),j.current=setTimeout(()=>{A(``)},2e3)}catch(e){d?.(e)}},t[18]=D,t[19]=O,t[20]=r,t[21]=u,t[22]=d,t[23]=I):I=t[23];let L;t[24]!==x||t[25]!==m||t[26]!==g||t[27]!==re||t[28]!==oe||t[29]!==I?(L=/* @__PURE__ */ C(o,{type:`button`,appearance:`ghost`,intent:`neutral`,size:`sm`,"data-slot":re,label:x,icon:oe,ref:g,onClick:I,...m}),t[24]=x,t[25]=m,t[26]=g,t[27]=re,t[28]=oe,t[29]=I,t[30]=L):L=t[30];let R;t[31]===k?R=t[32]:(R=/* @__PURE__ */ C(l,{children:k}),t[31]=k,t[32]=R);let z;return t[33]!==L||t[34]!==R?(z=/* @__PURE__ */ w(S,{children:[L,R]}),t[33]=L,t[34]=R,t[35]=z):z=t[35],z},L=e=>{let{step:t,slot:n}=e,r=Math.min(64,Math.max(24,t*.6));return Math.min(n,r)},R=.5,z=(e,t)=>e<0?e:t,se=e=>{let{lower:t,upper:n,toPixel:r,reveal:i,gap:a}=e,o=r(t<0?n:t),s=o+(r(z(t,n))-o)*i;if(Math.abs(o-r(0))<R)return{baseline:o,value:s};let c=Math.min(a,Math.abs(o-s)/2);return{baseline:o-Math.sign(o-s)*c,value:s}},B=e=>{let{lower:t,upper:n,pileOuter:r,toPixel:i}=e;if(Number.isNaN(r))return!1;let a=i(z(t,n));return Math.abs(a-i(r))<R},V=e=>Math.abs(e.baseline-e.toPixel(0))<R,ce=e=>{let{lower:t,upper:n,reveal:r,count:i}=e,a=n.map(()=>new Float64Array(i)),o=n.map(()=>new Float64Array(i));for(let e=0;e<i;e++){let i=0,s=0;for(let c=0;c<n.length;c++){let l=n[c]?.[e]??NaN,u=t[c]?.[e]??NaN,d=r[c]??1,f=a[c],p=o[c];if(f==null||p==null)continue;if(Number.isNaN(l)){f[e]=NaN,p[e]=NaN;continue}let m=Number.isNaN(u)?0:u;m<0?(p[e]=s,s+=(m-l)*d,f[e]=s):(f[e]=i,i+=(l-m)*d,p[e]=i)}}return{lower:a,upper:o}},H=/* @__PURE__ */ new WeakMap,U=e=>{if(typeof e.matchMedia!=`function`)return!1;let t=e.matchMedia,n=H.get(t);return n??(n=e.matchMedia(`(prefers-reduced-motion: reduce)`),H.set(t,n)),n.matches},le=/* @__PURE__ */ new WeakMap,ue=(e,t)=>{let n=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),r=()=>{if(n.removeEventListener(`change`,r),t.listeners.size!==0){ue(e,t);for(let e of t.listeners)e()}};n.addEventListener(`change`,r),t.disarm=()=>n.removeEventListener(`change`,r)},W=(e,t)=>{if(typeof e.matchMedia!=`function`)return()=>{};let n=le.get(e);if(n==null){let t={listeners:/* @__PURE__ */ new Set,disarm:()=>{}};ue(e,t),le.set(e,t),n=t}return n.listeners.add(t),()=>{n.listeners.delete(t),n.listeners.size===0&&(n.disarm(),le.delete(e))}},G=/* @__PURE__ */ new WeakMap,de=(e,t)=>{let n=G.get(e);if(n==null){let t={listeners:/* @__PURE__ */ new Set,onBefore:()=>{for(let e of t.listeners)e.before()},onAfter:()=>{for(let e of t.listeners)e.after()}};e.addEventListener(`beforeprint`,t.onBefore),e.addEventListener(`afterprint`,t.onAfter),G.set(e,t),n=t}return n.listeners.add(t),()=>{n.listeners.delete(t),n.listeners.size===0&&(e.removeEventListener(`beforeprint`,n.onBefore),e.removeEventListener(`afterprint`,n.onAfter),G.delete(e))}},K=/* @__PURE__ */ new WeakMap,fe=(e,t)=>{let n=e.fonts;if(n==null||typeof n.addEventListener!=`function`)return()=>{};let r=K.get(n);if(r==null){let e={listeners:/* @__PURE__ */ new Set,onLoad:()=>{for(let t of e.listeners)t()}};n.addEventListener(`loadingdone`,e.onLoad),K.set(n,e),r=e}return r.listeners.add(t),()=>{r.listeners.delete(t),r.listeners.size===0&&(n.removeEventListener(`loadingdone`,r.onLoad),K.delete(n))}},pe=/* @__PURE__ */ new WeakMap,q=(e,t)=>{if(typeof ResizeObserver>`u`)return()=>{};let n=e.ownerDocument,r=pe.get(n);if(r==null){let e=/* @__PURE__ */ new Map;r={handlers:e,observer:new ResizeObserver(t=>{for(let n of t)e.get(n.target)?.(n)})},pe.set(n,r)}let i=r;return i.handlers.set(e,t),i.observer.observe(e),()=>{i.handlers.get(e)===t&&(i.handlers.delete(e),i.observer.unobserve(e),i.handlers.size===0&&(i.observer.disconnect(),pe.get(n)===i&&pe.delete(n)))}},me=/* @__PURE__ */ new WeakMap,he=(e,t)=>{t.handle=0;let n=t.callbacks;t.callbacks=/* @__PURE__ */ new Set;let r=[];for(let e of n)try{e()}catch(e){r.push(e)}if(t.callbacks.size===0&&me.get(e)===t&&me.delete(e),r.length===1)throw r[0];if(r.length>1)throw AggregateError(r,`More than one chart failed to commit a frame.`)},ge=(e,t)=>{let n=me.get(e);n??(n={callbacks:/* @__PURE__ */ new Set,handle:0},me.set(e,n));let r=n,i=r.callbacks;return i.add(t),r.handle===0&&(r.handle=e.requestAnimationFrame(()=>he(e,r))),()=>{i.delete(t),i===r.callbacks&&i.size===0&&r.handle!==0&&(e.cancelAnimationFrame(r.handle),r.handle=0,me.delete(e))}},_e=e=>{let{pointCount:t,columnCount:n,wasDecimated:r}=e;return n<=0?!1:r?t>=n*3:t>=n*4},ve=e=>{let{xs:t,values:n,startIndex:r,endIndex:i,positionK:a,positionB:o,columnCount:s}=e,c=new Uint8Array(s),l=new Float64Array(s),u=new Float64Array(s),d=new Float64Array(s),f=new Float64Array(s);for(let e=r;e<=i;e++){let r=n[e]??NaN;if(Number.isNaN(r))continue;let i=t[e]??NaN,p=Math.floor(i*a+o);p===s&&(p=s-1),p<0||p>=s||(c[p]===0?(c[p]=1,l[p]=r,u[p]=r,d[p]=r,f[p]=r):(r<(l[p]??1/0)&&(l[p]=r),r>(u[p]??-1/0)&&(u[p]=r),f[p]=r))}return{columnCount:s,hasData:c,minValue:l,maxValue:u,inValue:d,outValue:f}};let ye=null;const be=()=>ye??=new Intl.NumberFormat;let xe=null;const J=()=>xe??=new Intl.NumberFormat(void 0,{maximumSignificantDigits:4}),Se=/* @__PURE__ */ new Map,Y=(e,t)=>{let n=Object.is(e,-0)?0:e,r=t?.maximumFractionDigits;if(r!=null){let e=Se.get(r);return e??(e=new Intl.NumberFormat(void 0,{maximumFractionDigits:r}),Se.set(r,e)),e.format(n)}return n!==0&&Math.abs(n)<1?J().format(n):be().format(n)},Ce=e=>!Number.isFinite(e)||e<=0?0:Math.min(20,Math.max(0,-Math.floor(Math.log10(e))));let we=null;const Te=()=>we??=new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`});let Ee=null;const De=()=>Ee??=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`short`,day:`numeric`}),Oe=e=>e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0,ke=(e,t)=>typeof e==`string`?e:typeof e==`number`?Y(e):Number.isNaN(e.getTime())?`—`:t?.datasetHasTimeOfDay??Oe(e)?Te().format(e):De().format(e),Ae={bar:`BarChart.Bar`,line:`LineChart.Line`,area:`AreaChart.Area`,scatter:`ScatterPlot.Point`},je=({rows:e,xKey:t,rootName:n})=>{let r=e.length,i=new Float64Array(r),a=Array.from({length:r},()=>``),o=!1;for(let n=0;n<r;n++){let r=e[n],s=r==null?void 0:D(r,t);s!==void 0&&(o=!0),a[n]=typeof s==`string`||typeof s==`number`||s instanceof Date?s:String(s),i[n]=n}return x(r===0||o,()=>k(n,`xKey`,t,e)),{rowCount:r,xs:i,xValues:a,order:null,orderInverse:null,xsAllIntegers:!0}},Me=({rows:e,xKey:t,xScale:n,rootName:r})=>{let i=new Float64Array(e.length),a=new Int32Array(e.length),o=0,s=!0,c=!1,l=!1;for(let r=0;r<e.length;r++){let u=e[r],d=u==null?void 0:D(u,t);d!==void 0&&(c=!0),d!=null&&(l=!0);let f=O(d,n===`time`);Number.isFinite(f)&&(o>0&&f<(i[o-1]??0)&&(s=!1),i[o]=f,a[o]=r,o+=1)}x(e.length===0||c,()=>k(r,`xKey`,t,e)),x(!l||o>0,()=>A(r,t,n));let u=o,d=u===e.length?i:i.slice(0,u),f=u===e.length?a:a.slice(0,u);if(!s){let e=d,t=f,n=Array.from({length:u},(e,t)=>t).toSorted((t,n)=>(e[t]??0)-(e[n]??0)||t-n);d=new Float64Array(u),f=new Int32Array(u);for(let r=0;r<u;r++){let i=n[r]??r;d[r]=e[i]??0,f[r]=t[i]??0}}let p=!0;for(let e=0;e<u;e++)if(!Number.isInteger(d[e])){p=!1;break}if(u===e.length&&s)return{rowCount:u,xs:d,xValues:[],order:null,orderInverse:null,xsAllIntegers:p};let m=new Int32Array(e.length).fill(-1);for(let e=0;e<u;e++){let t=f[e];t!=null&&(m[t]=e)}return{rowCount:u,xs:d,xValues:[],order:f,orderInverse:m,xsAllIntegers:p}},Ne=e=>{let{rows:t,specs:n,zKey:r}=e,i=e.xScale===`band`||e.xScale===`point`?je(e):Me(e),{rowCount:a,order:o}=i,s=e=>o==null?e:o[e]??e,c=!1;for(let e of i.xValues)if(e instanceof Date&&Oe(e)){c=!0;break}let l=1/0,u=-1/0,d=!0,f=n.map(e=>{let n=new Float64Array(a),r=!1;for(let i=0;i<a;i++){let a=t[s(i)],o=a==null?void 0:D(a,e.dataKey);if(o===void 0){n[i]=NaN;continue}r=!0;let c=typeof o==`number`&&Number.isFinite(o)?o:NaN;n[i]=c,Number.isNaN(c)||(l=Math.min(l,c),u=Math.max(u,c),Number.isInteger(c)||(d=!1))}return x(a===0||r,()=>k(Ae[e.mark],`dataKey`,e.dataKey,t)),n}),p=/* @__PURE__ */ new Float64Array,m=null;if(r!=null){p=new Float64Array(a);let e=1/0,n=-1/0,i=!1;for(let o=0;o<a;o++){let a=t[s(o)],c=a==null?void 0:D(a,r);c!==void 0&&(i=!0);let l=typeof c==`number`&&Number.isFinite(c)?c:NaN;p[o]=l,Number.isNaN(l)||(e=Math.min(e,l),n=Math.max(n,l))}x(a===0||i,()=>k(`ScatterPlot.Root`,`zKey`,r,t)),m=e===1/0?null:[e,n]}return{...i,xHasTimeOfDay:c,columns:f,valueMin:l===1/0?0:l,valueMax:u===-1/0?0:u,valuesAllIntegers:d,zs:p,zExtent:m}},Pe=(e,t,n)=>{if(t<=0)return null;let r=0,i=t-1,a=e[0]??0,o=e[i]??0;if(n<=a)return 0;if(n>=o)return i;for(;i-r>1;){let t=r+i>>1;(e[t]??0)<=n?r=t:i=t}let s=n-(e[r]??0);return(e[i]??0)-n<s?i:r},Fe=(e,t)=>{let n=0,r=e;for(;n<r;){let e=n+r>>1;t(e)?n=e+1:r=e}return n},Ie=Math.sqrt(50),Le=Math.sqrt(10),Re=Math.sqrt(2),X=e=>e>=Ie?10:e>=Le?5:e>=Re?2:1,Z=(e,t,n,r)=>{let i=(t-e)/Math.max(0,n),a=r?.integer?Math.max(1,i):i,o=Math.floor(Math.log10(a)),s=a/10**o,c=X(s),l,u,d;return o<0?(d=10**-o/c,l=Math.round(e*d),u=Math.round(t*d),l/d<e&&(l+=1),u/d>t&&--u,d=-d):(d=10**o*c,l=Math.round(e/d),u=Math.round(t/d),l*d<e&&(l+=1),u*d>t&&--u),u<l&&.5<=n&&n<2?Z(e,t,n*2,r):[l,u,d]},ze=(e,t,n,r)=>{if(!(n>0))return[];if(e===t)return r?.integer&&!Number.isInteger(e)?[]:[e];let i=t<e,[a,o,s]=i?Z(t,e,n,r):Z(e,t,n,r);if(!(o>=a))return[];let c=o-a+1,l=[];for(let e=0;e<c;e+=1){let t=i?o-e:a+e;l.push(s<0?t/-s:t*s)}return l},Be=(e,t,n,r)=>{if(!(n>0))return 0;if(e===t)return r?.integer&&!Number.isInteger(e)?0:1;let[i,a]=t<e?Z(t,e,n,r):Z(e,t,n,r);return a>=i?a-i+1:0},Ve=(e,t,n)=>Z(e,t,n)[2],He=(e,t)=>{let n=e[1]-e[0];if(n===0)return{k:0,b:(t[0]+t[1])/2};let r=(t[1]-t[0])/n;return{k:r,b:t[0]-e[0]*r}},Ue=e=>{let{count:t,rangeStart:n,rangeEnd:r,paddingInner:i,paddingOuter:a}=e,o=r-n;if(t<=0||o<=0)return{count:Math.max(0,t),rangeStart:n,step:0,bandwidth:0,offset:0};let s=o/Math.max(1,t-i+a*2);return{count:t,rangeStart:n,step:s,bandwidth:s*(1-i),offset:s*a}},We=(e,t)=>e.rangeStart+e.offset+t*e.step,Ge=(e,t)=>We(e,t)+e.bandwidth/2,Ke=(e,t)=>({start:We(e,t)-(e.step-e.bandwidth)/2,size:e.step}),qe=(e,t)=>{if(e.count===0||e.step===0)return null;let n=Math.floor((t-e.rangeStart-e.offset+e.step/2-e.bandwidth/2)/e.step);return Math.min(e.count-1,Math.max(0,n))},Je=(e,t,n)=>ze(e[0],e[1],t,n),Ye=(e,t,n)=>{let r=Math.floor(Math.min(n?.count??t,t));for(;r>1&&Be(e[0],e[1],r,n)>t;)--r;return Je(e,r,n).slice(0,Math.max(0,Math.floor(t)))},Xe=(e,t)=>{if(e[0]>e[1])return Xe([e[1],e[0]],t);if(e[0]===e[1]){let n=e[0],r=n===0?1:Math.abs(n)*.5;return Xe([n-r,n+r],t)}let n=e[0],r=e[1],i=NaN;for(let e=0;e<10;e++){let e=Ve(n,r,t);if(e===i||e===0||!Number.isFinite(e))break;if(e>0)n=Math.floor(n/e)*e,r=Math.ceil(r/e)*e;else{let t=-e;n=Math.floor(n*t)/t,r=Math.ceil(r*t)/t}i=e}return[n,r]},Ze=(e,t)=>{let n=Xe(e,t);return e[0]===0?[0,n[1]]:n},Q=1e3,Qe=Q*60,$e=Qe*60,et=$e*24,tt=et*30,nt=et*365,rt={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds())},offset:e=>{e.setTime(e.getTime()+Q)},field:e=>e.getUTCSeconds()},it={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Q)},offset:e=>{e.setTime(e.getTime()+Qe)},field:e=>e.getMinutes()},at={floor:e=>{e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Q-e.getMinutes()*Qe)},offset:e=>{e.setTime(e.getTime()+$e)},field:e=>e.getHours()},ot={floor:e=>{e.setHours(0,0,0,0)},offset:e=>{e.setDate(e.getDate()+1)},field:e=>e.getDate()-1},st={floor:e=>{e.setDate(e.getDate()-e.getDay()),e.setHours(0,0,0,0)},offset:e=>{e.setDate(e.getDate()+7)}},ct={floor:e=>{e.setDate(1),e.setHours(0,0,0,0)},offset:e=>{e.setMonth(e.getMonth()+1)},field:e=>e.getMonth()},lt=e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},$=(e,t)=>{let n=n=>e.field(n)%t===0;return{floor:t=>{if(!Number.isNaN(t.getTime()))for(e.floor(t);!n(t);)t.setTime(t.getTime()-1),e.floor(t)},offset:t=>{if(!Number.isNaN(t.getTime()))do e.offset(t);while(!n(t))}}},ut=e=>({floor:t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),lt(t)},offset:t=>{t.setFullYear(t.getFullYear()+e)}}),dt=e=>({floor:t=>{t.setTime(Math.floor(t.getTime()/e)*e)},offset:t=>{t.setTime(t.getTime()+e)}}),ft=(e,t)=>{let n=Math.floor(e);return Number.isFinite(n)&&n>0?t(n):null},pt=[[Q,rt],[5*Q,$(rt,5)],[15*Q,$(rt,15)],[30*Q,$(rt,30)],[Qe,it],[5*Qe,$(it,5)],[15*Qe,$(it,15)],[30*Qe,$(it,30)],[$e,at],[3*$e,$(at,3)],[6*$e,$(at,6)],[12*$e,$(at,12)],[et,ot],[2*et,$(ot,2)],[6048e5,st],[tt,ct],[3*tt,$(ct,3)],[nt,ut(1)]],mt=(e,t,n)=>{let r=Ve(e,t,n);return r<0?1/-r:r},ht=(e,t,n)=>{let r=(t-e)/n,i=pt.findLast(([e])=>e<=r),a=pt.find(([e])=>e>r);if(a==null)return ft(mt(e/nt,t/nt,n),ut);if(i==null)return ft(Math.max(mt(e,t,n),1),dt);let[o,s]=i,[c,l]=a;return r/o<c/r?s:l},gt=(e,t,n)=>{let r=/* @__PURE__ */ new Date(t-1);e.floor(r),e.offset(r),e.floor(r);let i=[];if(!(r.getTime()<n))return i;let a;do a=r.getTime(),i.push(a),e.offset(r),e.floor(r);while(a<r.getTime()&&r.getTime()<n);return i},_t=(e,t)=>{let n=new Date(e[0]).getTime(),r=new Date(e[1]).getTime(),i=r<n,a=i?r:n,o=i?n:r,s=ht(a,o,t);if(s==null)return[];let c=gt(s,a,o+1);return i?c.toReversed():c},vt=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],yt=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],bt=(e,t)=>e<0?`-${String(-e).padStart(t,`0`)}`:String(e).padStart(t,`0`),xt=e=>bt(e.getHours()%12||12,2),St=(e,t)=>{let n=new Date(t);return e(n),n.getTime()<t.getTime()},Ct=e=>{let t=new Date(e);return St(rt.floor,t)?`.${bt(t.getMilliseconds(),3)}`:St(it.floor,t)?`:${bt(t.getSeconds(),2)}`:St(at.floor,t)?`${xt(t)}:${bt(t.getMinutes(),2)}`:St(ot.floor,t)?`${xt(t)} ${t.getHours()>=12?`PM`:`AM`}`:St(ct.floor,t)?`${(St(st.floor,t)?yt[t.getDay()]:vt[t.getMonth()]?.slice(0,3))??``} ${bt(t.getDate(),2)}`:St(lt,t)?vt[t.getMonth()]??``:bt(t.getFullYear()%1e4,4)},wt=(e,t,n,r)=>{r?e.lineTo(t,n):e.moveTo(t,n)},Tt=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0;for(let l=n;l!==r+s;l+=s){let n=t[l];n!=null&&(c===0?wt(e,i(n),a(n),o):e.lineTo(i(n),a(n)),c+=1)}return c},Et=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0,l=NaN,u=NaN;for(let d=n;d!==r+s;d+=s){let n=t[d];if(n==null)continue;let r=i(n),s=a(n);if(c===0)wt(e,r,s,o);else{let t=l*.5+r*.5;e.lineTo(t,u),e.lineTo(t,s)}c+=1,l=r,u=s}return c>1&&e.lineTo(l,u),c},Dt=e=>e<0?-1:1,Ot=(e,t,n,r,i,a)=>{let o=n-e,s=i-n,c=(r-t)/(o||(s<0?-0:0)),l=(a-r)/(s||(o<0?-0:0)),u=(c*s+l*o)/(o+s);return(Dt(c)+Dt(l))*Math.min(Math.abs(c),Math.abs(l),.5*Math.abs(u))||0},kt=(e,t,n,r,i)=>{let a=n-e;return a?(3*(r-t)/a-i)/2:i},At=(e,t,n,r,i,a,o)=>{let s=(r-t)/3;e.bezierCurveTo(t+s,n+s*a,r-s,i-s*o,r,i)},jt=(e,{indexes:t,from:n,to:r,xAt:i,yAt:a,joined:o})=>{let s=r<n?-1:1,c=0,l=NaN,u=NaN,d=NaN,f=NaN,p=NaN;for(let m=n;m!==r+s;m+=s){let n=t[m];if(n==null)continue;let r=i(n),s=a(n);if(r!==d||s!==f){if(c===0)wt(e,r,s,o);else if(c>1){let t=Ot(l,u,d,f,r,s);At(e,l,u,d,f,c===2?kt(l,u,d,f,t):p,t),p=t}c+=1,l=d,u=f,d=r,f=s}}return c===2?e.lineTo(d,f):c>2&&At(e,l,u,d,f,p,kt(l,u,d,f,p)),c},Mt=e=>e===`monotone`?jt:e===`step`?Et:Tt,Nt=(e,t,n)=>{let r=null;for(let i=0;i<=e.length;i++){let a=e[i];a!=null&&t(a)?r??=i:r!=null&&(n(r,i-1),r=null)}},Pt=(e,t)=>{let{curve:n,indexes:r,xAt:i,yAt:a,definedAt:o}=t,s=Mt(n);Nt(r,o,(t,n)=>{s(e,{indexes:r,from:t,to:n,xAt:i,yAt:a,joined:!1})===1&&e.closePath()})},Ft=(e,t)=>{let{curve:n,indexes:r,xAt:i,y0At:a,y1At:o,definedAt:s}=t,c=Mt(n);Nt(r,s,(t,n)=>{c(e,{indexes:r,from:t,to:n,xAt:i,yAt:o,joined:!1}),c(e,{indexes:r,from:n,to:t,xAt:i,yAt:a,joined:!0}),e.closePath()})},It=e=>Math.round(e)+.5,Lt=(e,t)=>{let{plot:n,color:r,xLines:i,yLines:a}=t;e.save(),e.strokeStyle=r,e.lineWidth=1,Rt(e,i,t=>{e.moveTo(It(t),n.top),e.lineTo(It(t),n.top+n.height)}),Rt(e,a,t=>{e.moveTo(n.left,It(t)),e.lineTo(n.left+n.width,It(t))}),e.restore()},Rt=(e,t,n)=>{let r=NaN;for(let i of t)i.alpha!==r&&(Number.isNaN(r)||e.stroke(),r=i.alpha,e.globalAlpha=r,e.beginPath()),n(i.position);Number.isNaN(r)||e.stroke()},zt=(e,t)=>{let{plot:n,color:r,y:i}=t;e.strokeStyle=r,e.lineWidth=1,e.beginPath(),e.moveTo(n.left,It(i)),e.lineTo(n.left+n.width,It(i)),e.stroke()},Bt=(e,t)=>{let{plot:n,color:r,x:i}=t;e.strokeStyle=r,e.lineWidth=1,e.beginPath(),e.moveTo(It(i),n.top),e.lineTo(It(i),n.top+n.height),e.stroke()},Vt=e=>e.thickness>=e.radius*2?Math.min(e.radius,e.thickness/2,e.length):0,Ht=(e,t)=>{let{fill:n,rects:r,count:i=r.length}=t;e.fillStyle=n,e.beginPath();for(let t=0;t<i;t++){let n=r[t];if(n==null)continue;let i=Math.max(.5,n.width),a=Math.min(n.valueY,n.baselineY),o=Math.abs(n.baselineY-n.valueY);if(o===0)continue;let s=n.rounded&&n.roundedBase?2:1,c=Vt({radius:2,thickness:i,length:o/s}),l=n.rounded?c:0,u=n.roundedBase?c:0;l===0&&u===0?e.rect(n.x,a,i,o):n.valueY<=n.baselineY?e.roundRect(n.x,a,i,o,[l,l,u,u]):e.roundRect(n.x,a,i,o,[u,u,l,l])}e.fill()},Ut=(e,t)=>{let{fill:n,rects:r,count:i=r.length}=t;e.fillStyle=n,e.beginPath();for(let t=0;t<i;t++){let n=r[t];if(n==null)continue;let i=Math.max(.5,n.height),a=Math.min(n.valueX,n.baselineX),o=Math.abs(n.valueX-n.baselineX);if(o===0)continue;let s=n.rounded&&n.roundedBase?2:1,c=Vt({radius:2,thickness:i,length:o/s}),l=n.rounded?c:0,u=n.roundedBase?c:0;l===0&&u===0?e.rect(a,n.y,o,i):n.valueX>=n.baselineX?e.roundRect(a,n.y,o,i,[u,l,l,u]):e.roundRect(a,n.y,o,i,[l,u,u,l])}e.fill()},Wt=(e,t)=>{let{color:n,curve:r,indexes:i,xAt:a,yAt:o,definedAt:s}=t;e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath(),Pt(e,{curve:r,indexes:i,xAt:a,yAt:o,definedAt:s}),e.stroke()},Gt=(e,t)=>{let{color:n,curve:r,indexes:i,xAt:a,y0At:o,y1At:s,definedAt:c}=t;e.beginPath(),Ft(e,{curve:r,indexes:i,xAt:a,y0At:o,y1At:s,definedAt:c}),e.save(),e.globalAlpha=.1,e.fillStyle=n,e.fill(),e.restore(),e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath(),Pt(e,{curve:r,indexes:i,xAt:a,yAt:s,definedAt:c}),e.stroke()},Kt=(e,t)=>{let{color:n,columns:r,columnToX:i,valueK:a,valueB:o}=t;e.strokeStyle=n,e.lineWidth=2,e.lineJoin=`round`,e.lineCap=`round`,e.beginPath();let s=!1;for(let t=0;t<r.columnCount;t++){if(r.hasData[t]===0){s=!1;continue}let n=i(t),c=(r.inValue[t]??0)*a+o,l=(r.minValue[t]??0)*a+o,u=(r.maxValue[t]??0)*a+o,d=(r.outValue[t]??0)*a+o;s?e.lineTo(n,c):(e.moveTo(n,c),s=!0),(l!==c||u!==c)&&(e.lineTo(n,l),e.lineTo(n,u)),d!==u&&e.lineTo(n,d)}e.stroke()},qt=(e,t)=>{let{color:n,lowerColumns:r,upperColumns:i,columnToX:a,valueK:o,valueB:s}=t;e.beginPath();let c=-1,l=t=>{if(c<0)return;let n=!1;for(let r=c;r<=t;r++){let t=a(r),c=(i.maxValue[r]??0)*o+s;n?e.lineTo(t,c):(e.moveTo(t,c),n=!0)}for(let n=t;n>=c;n--){let t=a(n),i=(r.minValue[n]??0)*o+s;e.lineTo(t,i)}e.closePath(),c=-1};for(let e=0;e<i.columnCount;e++)i.hasData[e]===0?l(e-1):c<0&&(c=e);l(i.columnCount-1),e.save(),e.globalAlpha=.1,e.fillStyle=n,e.fill(),e.restore(),Kt(e,{color:n,columns:i,columnToX:a,valueK:o,valueB:s})},Jt=(e,t,n,r,i)=>{let a=!1;for(let[o,s]of i)a?e.lineTo(t+o*r,n+s*r):(e.moveTo(t+o*r,n+s*r),a=!0);e.closePath()},Yt=[[-1/3,-1],[1/3,-1],[1/3,-1/3],[1,-1/3],[1,1/3],[1/3,1/3],[1/3,1],[-1/3,1],[-1/3,1/3],[-1,1/3],[-1,-1/3],[-1/3,-1/3]],Xt=Yt.map(([e,t])=>[(e-t)/Math.SQRT2,(e+t)/Math.SQRT2]),Zt=Array.from({length:10},(e,t)=>{let n=-Math.PI/2+t*Math.PI/5,r=t%2==0?1:.382;return[Math.cos(n)*r,Math.sin(n)*r]}),Qt={circle:(e,t,n,r)=>{e.moveTo(t+r,n),e.arc(t,n,r,0,Math.PI*2)},square:(e,t,n,r)=>{let i=r*.886;e.moveTo(t-i,n-i),e.lineTo(t+i,n-i),e.lineTo(t+i,n+i),e.lineTo(t-i,n+i),e.closePath()},triangle:(e,t,n,r)=>{let i=r*1.55;e.moveTo(t,n-i),e.lineTo(t+i*.866,n+i*.5),e.lineTo(t-i*.866,n+i*.5),e.closePath()},diamond:(e,t,n,r)=>{let i=r*1.253;e.moveTo(t,n-i),e.lineTo(t+i,n),e.lineTo(t,n+i),e.lineTo(t-i,n),e.closePath()},"triangle-down":(e,t,n,r)=>{let i=r*1.55;e.moveTo(t,n+i),e.lineTo(t+i*.866,n-i*.5),e.lineTo(t-i*.866,n-i*.5),e.closePath()},plus:(e,t,n,r)=>{Jt(e,t,n,r*1.189,Yt)},cross:(e,t,n,r)=>{Jt(e,t,n,r*1.189,Xt)},star:(e,t,n,r)=>{Jt(e,t,n,r*1.673,Zt)}},$t=(e,t,n,r,i)=>{Qt[i](e,t,n,r)},en=(e,t)=>{let{color:n,surface:r,shape:i,indexes:a,xAt:o,yAt:s,definedAt:c}=t;e.fillStyle=n,e.strokeStyle=r,e.lineWidth=2,e.beginPath();for(let t of a)c(t)&&$t(e,o(t),s(t),4,i);e.fill(),e.stroke()},tn=(e,t)=>{let{plot:n,color:r,textColor:i,y:a,label:o,fontFamily:s}=t;e.strokeStyle=r,e.lineWidth=1,e.setLineDash([4,4]),e.beginPath(),e.moveTo(n.left,It(a)),e.lineTo(n.left+n.width,It(a)),e.stroke(),e.setLineDash([]),o!=null&&o.length>0&&(e.font=`11px ${s}`,e.fillStyle=i,e.textAlign=`right`,e.textBaseline=`bottom`,e.fillText(o,n.left+n.width-4,a-3))},nn=(e,t)=>{let{plot:n,color:r,textColor:i,x:a,label:o,fontFamily:s}=t;if(e.strokeStyle=r,e.lineWidth=1,e.setLineDash([4,4]),e.beginPath(),e.moveTo(It(a),n.top),e.lineTo(It(a),n.top+n.height),e.stroke(),e.setLineDash([]),o!=null&&o.length>0){e.font=`11px ${s}`,e.fillStyle=i;let t=e.measureText(o).width,r=a+4+t<=n.left+n.width;e.textAlign=r?`left`:`right`,e.textBaseline=`top`,e.fillText(o,r?a+4:a-4,n.top+3)}},rn=(e,t)=>{let{plot:n,color:r,fontFamily:i,xLabels:a,yLabels:o}=t;e.save(),e.font=`11px ${i}`,e.fillStyle=r,e.textAlign=`right`,e.textBaseline=`middle`;for(let t of o)e.globalAlpha=t.alpha,e.fillText(t.text,n.left-8,t.position);e.textAlign=`center`,e.textBaseline=`top`;for(let t of a)e.globalAlpha=t.alpha,e.fillText(t.text,t.position,n.top+n.height+8);e.restore()},an=e=>{let t=e.length,n=e[0]?.length??0,r=[],i=[];for(let e=0;e<t;e++)r.push(new Float64Array(n)),i.push(new Float64Array(n));let a=0,o=0,s=new Float64Array(n),c=new Float64Array(n),l=new Int32Array(n).fill(-1),u=new Int32Array(n).fill(-1);for(let d=0;d<t;d++){let t=e[d],f=r[d],p=i[d];if(t!=null&&f!=null&&p!=null)for(let e=0;e<n;e++){let n=t[e]??NaN;if(Number.isNaN(n))f[e]=NaN,p[e]=NaN;else if(n>=0){let t=s[e]??0,r=t+n;s[e]=r,f[e]=t,p[e]=r,r>o&&(o=r),n>0&&(l[e]=d)}else{let t=c[e]??0,r=t+n;c[e]=r,f[e]=r,p[e]=t,r<a&&(a=r),u[e]=d}}}return{lower:r,upper:i,min:a,max:o,positiveEnd:l,negativeEnd:u}},on=e=>1-(1-e)**3;var sn=class{#e=/* @__PURE__ */ new Float64Array;#t=/* @__PURE__ */ new Float64Array;#n=/* @__PURE__ */ new Float64Array;#r=0;#i=0;#a=!1;get active(){return this.#a}values(){return this.#n}retarget(e,t){let{duration:n,now:r}=t,i=e.length,a=this.#n.length!==i;if(a&&(this.#e=new Float64Array(i),this.#t=new Float64Array(i),this.#n=new Float64Array(i)),a||n<=0){for(let t=0;t<i;t++){let n=e[t]??NaN;this.#e[t]=n,this.#t[t]=n,this.#n[t]=n}this.#a=!1;return}let o=!1;for(let t=0;t<i;t++){let n=e[t]??NaN,r=this.#n[t]??NaN;if(r!==n&&!(Number.isNaN(r)&&Number.isNaN(n))){o=!0;break}}if(o){for(let t=0;t<i;t++)this.#e[t]=this.#n[t]??NaN,this.#t[t]=e[t]??NaN;this.#r=r,this.#i=n,this.#a=!0}else{for(let t=0;t<i;t++)this.#t[t]=e[t]??NaN;this.#a=!1}}snap(){this.#n.set(this.#t),this.#a=!1}tick(e){if(!this.#a)return!1;let t=Math.min(1,(e-this.#r)/this.#i),n=on(t);for(let e=0;e<this.#n.length;e++){let t=this.#e[e]??NaN,r=this.#t[e]??NaN;Number.isNaN(t)||Number.isNaN(r)?this.#n[e]=r:this.#n[e]=t+(r-t)*n}return t>=1&&(this.#a=!1),this.#a}},cn=class{#e=/* @__PURE__ */ new Float64Array;#t=/* @__PURE__ */ new Float64Array;#n=0;#r=!1;#i;#a;#o=0;#s=null;constructor(e={}){this.#i=e.speed??.14,this.#a=e.epsilon??.001}get active(){return this.#r}values(){return this.#t}jump(e){this.#s=null,this.#t.length!==e.length&&(this.#e=new Float64Array(e.length),this.#t=new Float64Array(e.length));for(let t=0;t<e.length;t++){let n=e[t]??NaN;this.#e[t]=n,this.#t[t]=n}this.#r=!1}aim(e,t){if(this.#t.length!==e.length){this.jump(e);return}if(this.#c(e))return;this.#s!=null&&(this.#l(t),this.#s=null,this.#r=!1);let n=0;for(let t=0;t<e.length;t++){let r=e[t]??NaN;this.#e[t]=r;let i=Math.abs(r-(this.#t[t]??NaN));Number.isFinite(i)&&i>n&&(n=i)}this.#o=n,this.#r||(this.#r=!0,this.#n=t)}glide(e,t){let{now:n,duration:r}=t;if(this.#t.length!==e.length||r<=0)this.jump(e);else if(!this.#c(e)){this.#s!=null&&this.#l(n);for(let t=0;t<e.length;t++)this.#e[t]=e[t]??NaN;this.#s={from:Float64Array.from(this.#t),start:n,duration:r},this.#r=!0,this.#n=n}}#c(e){for(let t=0;t<e.length;t++){let n=e[t]??NaN,r=this.#e[t]??NaN;if(r!==n&&!(Number.isNaN(r)&&Number.isNaN(n)))return!1}return!0}#l(e){let t=this.#s;if(t==null)return;let n=Math.min(1,Math.max(0,(e-t.start)/t.duration));for(let e=0;e<this.#t.length;e++){let r=t.from[e]??NaN,i=this.#e[e]??NaN;this.#t[e]=Number.isNaN(r)||Number.isNaN(i)?i:r+(i-r)*n}n>=1&&(this.#s=null,this.#r=!1)}tick(e,t=0){if(!this.#r)return!1;if(this.#s!=null)return this.#n=e,this.#l(e),this.#r;let n=Math.min(50,Math.max(0,e-this.#n));this.#n=e;let r=1-(1-this.#i)**(n/16.67),i=Math.max(this.#o*this.#a,t,2**-52),a=!0;for(let e=0;e<this.#t.length;e++){let t=this.#e[e]??NaN,n=this.#t[e]??NaN;if(Number.isNaN(t)||Number.isNaN(n)){this.#t[e]=t;continue}let o=n+(t-n)*r;r>0&&o===n||Math.abs(t-o)<=i?this.#t[e]=t:(this.#t[e]=o,a=!1)}return this.#r=!a,this.#r}};const ln=e=>`${e.colorInput}|${e.texture}`,un=1e3,dn=[{minStep:6,gap:2},{minStep:3,gap:1}],fn={lower:null,upper:/* @__PURE__ */ new Float64Array,reveal:1},pn=1.12,mn=/* @__PURE__ */ new Map([[`ArrowDown`,`ArrowRight`],[`ArrowUp`,`ArrowLeft`],[`PageDown`,`PageUp`],[`PageUp`,`PageDown`]]),hn=e=>{let t=dn.find(t=>e>=t.minStep)?.gap??0;return e>0?t/e:0},gn=({bandwidth:e,groupCount:t})=>e>=8*t?2:+(e>=3*t);var _n=class{#e;#t;#n;#r={xKey:``,xScale:`linear`,yDomain:[`auto`,`auto`],orientation:`vertical`,zKey:null,dimensions:3,stacked:!1,animate:!0};#i={onDatumActivate:null,onActiveIndexChange:null};#a;#o=null;#s=null;#c=null;#l=null;#u=null;#d;#f;#p=!1;#m;#h=!1;#g=0;#_=0;#v=1;#y=[];#b=0;#x=/* @__PURE__ */ new Float64Array;#S=[];#C=null;#w=null;#T=!1;#E=!1;#D=[];#O=/* @__PURE__ */ new Map;#k=0;#A=0;#j=!0;#M=!0;#N=null;#P=new cn({speed:.16});#F=new cn({speed:.2});#I=/* @__PURE__ */ new Map;#L=/* @__PURE__ */ new Map;#R=!1;#z=/* @__PURE__ */ new Map;#B=/* @__PURE__ */ new Map;#V=0;#H=null;#U=null;#W=/* @__PURE__ */ new Map;#G=!1;#K=/* @__PURE__ */ new Map;#q={alpha:0,target:0};#J=-1/0;#Y=!1;#X=null;#Z=null;#Q=null;#$=null;#ee={left:0,top:0,width:0,height:0};#te=null;#ne=/* @__PURE__ */ new Float64Array;#re=[0,1];#ie=null;#ae;#oe=null;#se=!1;#ce=[];#le=[];#ue=[];#de=null;#fe=null;#pe=null;#me=null;#he=void 0;#ge=null;#_e=!1;#ve=null;#ye=null;#be={width:0,height:0};#xe=!1;#Se=!1;#Ce=null;#we=!1;constructor(e){this.#e=e.kind,this.#t=e.elements,this.#ae=e.createHoverLayers??null,this.#n=e.store,this.#d=e.inView??!0,this.#f=e.onScreen??!0,this.#m=this.#d,e.size!=null&&(this.#g=e.size.width,this.#_=e.size.height),this.#v=this.#Xe(),this.#a=e.backend({root:e.elements.root,plot:e.elements.plot,slotName:e.slotName,onColorsChange:this.#Ee}),e.elements.plot.prepend(this.#a.element),this.#n.onSeriesChange=()=>{this.#E=!0,this.#We()},this.#n.onPresentationChange=()=>{this.#Oe(),this.#We()},this.#o=q(e.elements.plot,e=>{let t=this.#Xe();(e.contentRect.width!==this.#g||e.contentRect.height!==this.#_||t!==this.#v)&&(this.#g=e.contentRect.width,this.#_=e.contentRect.height,this.#v=t,this.#K.clear(),this.#fe=null,this.#We())}),this.#d&&this.#De(),this.#l=fe(e.elements.root.ownerDocument,()=>{this.#W.clear(),this.#Be()&&this.#We()}),this.#u=e.elements.root.ownerDocument.defaultView;let t=this.#u;this.#s=t==null?null:W(t,this.#Te),this.#e===`scatter`&&(x(e.scatter!=null,"A scatter ChartEngine needs a `scatter` view factory."),this.#ie=e.scatter({plot:()=>this.#ee,colors:()=>this.#Q,specs:()=>this.#n.seriesSpecs(),rowCount:()=>this.#b,xs:()=>this.#x,zs:()=>this.#ne,columns:()=>this.#D,columnOf:e=>this.#pt(e),paintedValues:(e,t)=>this.#ft(e,`value`,t),definedIndexes:e=>this.#mt(e),reveal:e=>this.#gt(e),shape:e=>this.#n.seriesShape(e),xCoefficients:()=>this.#tt(),yCoefficients:()=>this.#$e(),domains:()=>{let e=this.#F.values(),t=this.#P.values();return{x:[e[0]??0,e[1]??1],y:[t[0]??0,t[1]??1],z:this.#re}},xKey:()=>this.#r.xKey,zKey:()=>this.#r.zKey,is3d:()=>this.#Re(),requestPaint:()=>this.#We()}))}#Te=()=>{this.#v=this.#Xe(),this.#K.clear(),this.#We()};#Ee=()=>{this.#Q=null,this.#We()};destroy(){this.#we=!0,this.#o?.(),this.#s?.(),this.#c?.(),this.#a.destroy(),this.#a.element.remove(),this.#l?.(),this.#n.onSeriesChange=null,this.#n.onPresentationChange=null,this.#Z!=null&&(clearTimeout(this.#Z),this.#Z=null),this.#Ce?.(),this.#Ce=null,this.#oe!=null&&(this.#oe.crosshair.remove(),this.#oe.band.remove(),this.#oe.markers.remove(),this.#oe=null)}setInView(e){e===this.#d||this.#we||(this.#d=e,e&&(this.#De(),(this.#Se||this.#E)&&this.#Ke()))}setOnScreen(e){e===this.#f||this.#we||(this.#f=e,!e&&this.#Se&&(this.#Ae(),this.#We()))}markSeen(){if(this.#m||this.#we)return;this.#m=!0;let e=performance.now(),t=this.#Ne();for(let n of this.#L.values())n.retarget([1],{duration:t,now:e});this.#We()}releaseBackingStores(){this.#we||this.#a.kind===`svg`||(this.#a.release(),this.#Se=!0)}commitNow(){this.#we||(this.#Ce?.(),this.#Ce=null,this.#xe=!1,this.#Je())}attachTooltip(e){this.#t.tooltip===e||this.#we||(this.#c?.(),this.#c=null,this.#be={width:0,height:0},this.#t.tooltip=e,e!=null&&this.#d&&this.#De(),this.#Ge())}paintForPrint(){if(!(this.#we||this.#p)){if(this.#p=!0,this.#g===0||this.#_===0){let e=this.#t.plot.getBoundingClientRect();this.#g=e.width,this.#_=e.height}if(!this.#m){this.#m=!0;let e=performance.now();for(let t of this.#L.values())t.retarget([1],{duration:0,now:e})}this.#Ae(),this.#Se=!0,this.#Je()}}afterPrint(){this.#we||!this.#p||(this.#p=!1,this.#d||this.releaseBackingStores())}#De(){let e=this.#t.tooltip;e!=null&&this.#c==null&&(this.#c=q(e,()=>{this.#Tt()!=null&&(this.#be={width:e.offsetWidth,height:e.offsetHeight},this.#Ge())}))}setOptions(e){let t=this.#r;this.#r=e,t.xScale!==e.xScale&&this.#z.clear(),t.animate&&!e.animate&&this.#Ae(),t.dimensions!==e.dimensions&&this.#ie?.setDimensions(e.dimensions,{glide:this.#Ne()>0&&this.#R}),(t.xKey!==e.xKey||t.xScale!==e.xScale||t.zKey!==e.zKey||t.stacked!==e.stacked)&&(this.#E=!0),(t.yDomain[0]!==e.yDomain[0]||t.yDomain[1]!==e.yDomain[1])&&(this.#fe=null,this.#Oe()),this.#We()}#Oe(){this.#R&&(this.#Ne()===0?this.#P.jump(this.#Ie()):this.#P.aim(this.#Ie(),performance.now()))}setCallbacks(e){this.#i=e}setRows(e){e!==this.#y&&(this.#y=e,this.#E=!0,this.#We())}flushIngest(){!this.#E||this.#we||(this.#E=!1,this.#je())}setControlledActiveIndex(e){let t=this.#ge;this.#ge=null;let n=this.#he!==void 0;if(this.#he=e,e!==void 0){let n=t!=null&&t.index===e&&t.viaKeyboard;this.#jt(e==null?null:this.#Dt(e),{viaKeyboard:n,notify:!1})}else n&&this.#jt(null,{viaKeyboard:!1,notify:!1});this.#Ge()}handlePointerMove(e,t){let n=this.#ie,r=n?.dragTo(e,t)??`none`;if(r!==`none`){r===`rotated`&&(this.#jt(null,{viaKeyboard:!1,notify:!1}),this.#We());return}if(this.#ve=e,this.#ye=t,n!=null){let r=n.hitAt(e,t);this.#pe=r?.seriesKey??null,this.#fe=r==null?null:{x:r.screenX,y:r.screenY},this.#jt(r?.index??null,{viaKeyboard:!1,notify:!0});return}let i=this.#kt(e,t);this.#jt(i,{viaKeyboard:!1,notify:!0})}handlePointerDown(e,t){this.#se=!0,this.#ie?.pressAt(e,t)!==!0&&this.handlePointerMove(e,t)}handlePointerUp(e,t,{activate:n=!0}={}){let r=this.#ie?.release()??`none`,i=this.#se;this.#se=!1,r!==`rotated`&&(r===`tap`&&this.handlePointerMove(e,t),i&&n&&this.handleActivate(e,t))}handlePointerLeave(){this.#ve=null,this.#ye=null,this.#ie?.release(),this.#se=!1,this.#pe=null,this.#fe=null,this.#jt(null,{viaKeyboard:!1,notify:!0})}handleActivate(e,t){let n=this.#ke(e,t);if(n==null)return;let r=this.#Et(n.index),i=this.#y[r];i!=null&&this.#i.onDatumActivate?.({index:r,xValue:this.#Ot(n.index),datum:i,dataKey:n.dataKey})}#ke(e,t){if(e==null||t==null){let e=this.#Tt();return e==null?null:{index:e,dataKey:this.#e===`scatter`?this.#pe:null}}if(this.#ie!=null){let n=this.#ie.hitAt(e,t);return n==null?null:{index:n.index,dataKey:n.seriesKey}}let n=this.#kt(e,t);return n==null?null:{index:n,dataKey:this.#At(n,e,t)}}handleKeyDown(e,{repeat:t=!1}={}){if(this.#b===0)return!1;let n=this.#b-1,r=this.#Tt(),i=this.#G?Math.max(1,Math.floor(this.#b/Math.max(1,this.#ee.width*this.#v))):1,a=Math.max(1,Math.floor(this.#b/10)),o=this.#Ve()?mn.get(e)??e:e,s=(()=>{switch(o){case`ArrowLeft`:return Math.max(0,(r??this.#b)-i);case`ArrowRight`:return Math.min(n,(r??-1)+i);case`PageUp`:return Math.min(n,(r??0)+a);case`PageDown`:return Math.max(0,(r??n)-a);case`Home`:return 0;case`End`:return n;case`Escape`:return r==null?void 0:null;default:return}})();return s===void 0?e!==`Enter`&&e!==` `||r==null?!1:(t||this.handleActivate(null,null),!0):(this.#ve=null,this.#ye=null,this.#pe=null,this.#fe=null,this.#jt(s,{viaKeyboard:!0,notify:!0}),!0)}invalidateColors(){this.#Q!=null&&(this.#Q=null,this.#We())}setColorScope(e,t){let n=this.#$;(n==null||n.className!==e||n.style!==t)&&(this.#$={className:e,style:t},this.invalidateColors())}#Ae(){this.#P.jump(this.#Ie()),this.#F.jump(this.#Le()),this.#ie?.settle(this.#r.dimensions);for(let e of this.#I.values())e.snap();for(let e of this.#L.values())e.snap();this.#q.alpha=this.#q.target}#je(){let e=this.#y,{xScale:t}=this.#r,n=this.#n.seriesSpecs();this.#K.clear();let r=this.#x,i=this.#S,a=Ne({rows:e,xKey:this.#r.xKey,xScale:t,specs:n,zKey:this.#e===`scatter`?this.#r.zKey:null,rootName:this.#He()});this.#b=a.rowCount,this.#x=a.xs,this.#S=a.xValues,this.#C=a.order,this.#w=a.orderInverse,this.#M=a.xsAllIntegers,this.#T=a.xHasTimeOfDay;let o=this.#x[0],s=this.#x[this.#b-1],c=r[0],l=r[r.length-1];if(!this.#Re()&&(t===`linear`||t===`time`)&&o!=null&&s!=null&&c!=null&&l!=null&&o>c&&o<=l&&s>=l){this.#q.target=1;let e=performance.now(),t=e-this.#J;this.#X=t>2e3?null:this.#X==null?t:this.#X*.7+t*.3,this.#J=e,this.#Y=!0}else(o!==c||s!==l)&&(this.#q.target=0,this.#X=null),this.#Y=!1;let u=this.#b,d=t===`band`||t===`point`,f=r.length===u&&u<=2500;if(f){for(let e=0;e<u;e++)if(!(d?vn(i[e],this.#S[e]):r[e]===this.#x[e])){f=!1;break}}let p=this.#O;this.#D=a.columns,this.#O=new Map(n.map((e,t)=>[e.dataKey,t])),this.#k=a.valueMin,this.#A=a.valueMax,this.#j=a.valuesAllIntegers,this.#ne=a.zs,this.#re=a.zExtent==null?[0,1]:Xe(a.zExtent,5),this.#ie?.resetProjection(),this.#fe=null,this.#N=this.#r.stacked?an(this.#D):null,this.#G=this.#e!==`scatter`&&_e({pointCount:u,columnCount:Math.max(1,Math.round(this.#ee.width*this.#v)),wasDecimated:this.#G});let m=this.#Q;if(m!=null){for(let e of this.#n.seriesMeta())if(m.inputs.get(e.dataKey)!==ln(e)){this.#Q=null;break}}this.#Me(n,p,f);let h=this.#Tt();h!=null&&this.#jt(Math.min(h,Math.max(0,u-1)),{viaKeyboard:this.#_e,notify:!1}),this.#Ft({force:!0})}#Me(e,t,n){let r=performance.now(),i=this.#Ne(),a=!this.#R;this.#R=this.#R||this.#b>0,a||i===0?(this.#P.jump(this.#Ie()),this.#F.jump(this.#Le())):(this.#P.aim(this.#Ie(),r),this.#e===`bar`?this.#F.jump(this.#Le()):this.#Y&&this.#X!=null?this.#F.glide(this.#Le(),{now:r,duration:this.#X}):this.#F.aim(this.#Le(),r));let o=this.#b>0&&this.#b<=2500&&n&&!this.#G,s=this.#b<=2500,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=(e,t,n)=>{c.add(e);let a=this.#I.get(e);a??(a=new sn,this.#I.set(e,a));let s=o&&n&&a.values().length===t.length;a.retarget(t,{duration:s?i:0,now:r})};e.forEach((e,n)=>{l.add(e.dataKey);let i=t.has(e.dataKey);if(s&&this.#N!=null?(u(`${e.dataKey}:lower`,this.#N.lower[n]??/* @__PURE__ */ new Float64Array,i),u(`${e.dataKey}:upper`,this.#N.upper[n]??/* @__PURE__ */ new Float64Array,i)):s&&u(e.dataKey,this.#D[n]??/* @__PURE__ */ new Float64Array,i),!this.#L.has(e.dataKey)&&this.#b>0){let t=new sn,n=this.#Pe();t.retarget([0],{duration:0,now:r}),(this.#m||n===0)&&t.retarget([1],{duration:this.#m?this.#Ne():0,now:r}),this.#L.set(e.dataKey,t)}});for(let e of this.#I.keys())c.has(e)||this.#I.delete(e);for(let e of this.#L.keys())l.has(e)||this.#L.delete(e)}#Ne(){return!(this.#d&&this.#f)&&!this.#p?0:this.#Pe()}#Pe(){return!this.#r.animate||this.#Fe()?0:280}#Fe(){return this.#u!=null&&U(this.#u)}#Ie(){let[e,t]=this.#r.yDomain,n,r;if(this.#N==null?this.#e===`line`||this.#e===`scatter`?(n=this.#k,r=this.#A):(n=Math.min(0,this.#k),r=Math.max(0,this.#A)):(n=Math.min(0,this.#N.min),r=Math.max(0,this.#N.max)),typeof e==`number`&&(n=e),typeof t==`number`&&(r=t),this.#b===0)return[0,1];if(this.#e===`bar`&&!this.#ze())return[typeof e==`number`?e:n*pn,typeof t==`number`?t:r*pn||(n<0?0:1)];let i=this.#e===`bar`||this.#e===`area`?Ze([n,r],5):Xe([n,r],5);return[typeof e==`number`?e:i[0],typeof t==`number`?t:i[1]]}#Le(){if(this.#b===0)return[0,1];let e=this.#x[0]??0,t=this.#x[this.#b-1]??0;return e===t?[e-.5,t+.5]:this.#e===`scatter`?Xe([e,t],5):[e,t]}#Re(){return this.#e===`scatter`&&this.#r.zKey!=null}#ze(){let e=this.#n.getSnapshot();return e.xAxis!=null||e.yAxis!=null||e.grid!=null}#Be(){return this.#ze()||this.#Re()||this.#n.getSnapshot().referenceLines.some(e=>e.label!=null&&e.label.length>0)}#Ve(){return this.#e===`bar`&&this.#r.orientation===`horizontal`}#He(){return`${Ae[this.#e].split(`.`)[0]??`Chart`}.Root`}#Ue(e,t){let n=this.#W.get(t);return n??(this.#W.size>=512&&this.#W.clear(),n=e.measureText(t).width,this.#W.set(t,n)),n}#We(){this.#Se=!0,this.#h=!0,this.#Ke()}#Ge(){this.#Ke()}#Ke(){let e=this.#u;this.#xe||this.#we||e==null||(this.#xe=!0,this.#Ce=ge(e,this.#qe))}#qe=()=>{this.#xe=!1,this.#Ce=null,this.#Je()};#Je(){if(!this.#we){if(this.flushIngest(),this.#Se&&!this.#d&&!this.#p)this.#h&&(this.#h=!1,this.#Qe());else if(this.#Se){this.#Se=!1,this.#h=!1;let e=performance.now(),t=!1,n=this.#Ve()?this.#ee.width:this.#ee.height;t=this.#P.tick(e,this.#Ye(this.#P,n))||t,t=this.#F.tick(e,this.#Ye(this.#F,this.#ee.width))||t;for(let n of this.#I.values())t=n.tick(e)||t;for(let n of this.#L.values())t=n.tick(e)||t;t=(this.#ie?.tick(e)??!1)||t,this.#g>0&&this.#_>0&&this.#Ze(),this.#Qe(),t=this.#ct(e)||t,t&&this.#We()}this.#It()}}#Ye(e,t){let n=e.values(),r=Math.abs((n[1]??0)-(n[0]??0));return t>0&&Number.isFinite(r)?r*.5/(t*this.#v):0}#Xe(){return typeof devicePixelRatio==`number`&&devicePixelRatio>0?Math.min(devicePixelRatio,3):1}#Ze(){let e=this.#a.paintSignature({devicePixelRatio:this.#v,orientation:this.#r.orientation});if(this.#Q?.signature===e)return;let t=this.#a.resolvePaint({series:this.#n.seriesMeta(),devicePixelRatio:this.#v,orientation:this.#r.orientation,signature:e});t!=null&&(this.#W.clear(),this.#Q=t)}#Qe(){let e=this.#n.getSnapshot(),t=this.#Re(),n=this.#Ve(),r=!t&&e.xAxis!=null,i=!t&&e.yAxis!=null,a=n?r:i,o=n?i:r,s=this.#e===`bar`&&!this.#ze()?0:8,c=s,l=o?24:s,u=Math.max(0,this.#_-c-l);this.#ee={left:s,top:c,width:Math.max(0,this.#g-s*2),height:u};let d=s;if(a){d=40;let e=this.#Q==null?null:this.#a.measureContext();if(e!=null&&this.#Q!=null){e.font=`11px ${this.#Q.fontFamily()}`;let t=0,r=n?this.#it().map(e=>e.text):this.#rt().map(e=>e.text);for(let n of r){let r=this.#Ue(e,n);r>t&&(t=r)}d=Math.ceil(t)+14}}this.#ee={left:d,top:c,width:Math.max(0,this.#g-d-s),height:u};let f=n?this.#ee.top:this.#ee.left,p=n?this.#ee.top+this.#ee.height:this.#ee.left+this.#ee.width;if(this.#r.xScale===`band`){let e=hn((p-f)/Math.max(1,this.#b));this.#te=Ue({count:this.#b,rangeStart:f,rangeEnd:p,paddingInner:e,paddingOuter:e/2})}else this.#te=this.#r.xScale===`point`?Ue({count:this.#b,rangeStart:f,rangeEnd:p,paddingInner:1,paddingOuter:.5}):null;this.#G=this.#e!==`scatter`&&_e({pointCount:this.#b,columnCount:Math.max(1,Math.round(this.#ee.width*this.#v)),wasDecimated:this.#G})}#$e(){let e=this.#P.values();return He([e[0]??0,e[1]??1],[this.#ee.top+this.#ee.height,this.#ee.top])}#et(){let e=this.#P.values(),t=this.#Ve()?[this.#ee.left,this.#ee.left+this.#ee.width]:[this.#ee.top+this.#ee.height,this.#ee.top];return He([e[0]??0,e[1]??1],t)}#tt(){let e=this.#F.values();return He([e[0]??0,e[1]??1],[this.#ee.left,this.#ee.left+this.#ee.width])}#nt(e){let t=this.#te;if(t!=null)return Ge(t,e);let{k:n,b:r}=this.#tt();return(this.#x[e]??0)*n+r}#rt(){let e=this.#n.getSnapshot(),t=this.#P.values(),n=e.yAxis?.tickCount,r=this.#Ve()?1/0:Math.max(2,Math.floor(this.#ee.height/28)),i=Math.min(n??1/0,r),a=n??5,o=e.yAxis?.tickFormat,s=`${t[0]}|${t[1]}|${i}|${a}|${this.#j}`,c=this.#H;if(c!=null&&c.key===s&&c.format===o)return c.ticks;let l=Ye([t[0]??0,t[1]??1],i,{count:a,integer:this.#j}),u=l.length>1?Math.abs((l[1]??0)-(l[0]??0)):0,d=Math.abs((t[1]??1)-(t[0]??0)),f=l.length>1?u:d,p=f>0?Ce(f):void 0,m=l.map(e=>{let t=Y(e,p==null?void 0:{maximumFractionDigits:p});return{value:e,text:o==null?t:o(e,{defaultLabel:t,step:u})}});return this.#H={key:s,format:o,ticks:m},m}#it(){let e=this.#n.getSnapshot().xAxis?.tickFormat,t=this.#ot(),n=this.#U;if(n!=null&&n.key===t&&n.format===e&&n.xValues===this.#S)return n.ticks;let r=this.#st();return this.#U={key:t,format:e,xValues:this.#S,ticks:r},r}#at(){let{xScale:e}=this.#r;return e===`band`||e===`point`}#ot(){if(this.#at()){let e=this.#Ve();return`band|${e}|${e?this.#ee.height:this.#ee.width}|${this.#b}|${this.#T}`}let e=this.#F.values(),t=this.#n.getSnapshot().xAxis?.tickCount;return`${this.#r.xScale}|${e[0]}|${e[1]}|${t}|${this.#ee.width}|${this.#M}`}#st(){let e=this.#n.getSnapshot(),t=e.xAxis?.tickFormat;if(this.#at()){let e=this.#Ve(),n=e?this.#ee.height:this.#ee.width,r=Math.max(1,Math.floor(n/(e?15:60))),i=Math.max(1,Math.ceil(this.#b/r)),a=[];for(let e=0;e<this.#b;e+=i){let n=this.#S[e]??``,r=ke(n,{datasetHasTimeOfDay:this.#T});a.push({index:e,value:e,text:t==null?r:t(n,{defaultLabel:r})})}return a}let n=this.#F.values(),r=[n[0]??0,n[1]??1],i=e.xAxis?.tickCount??Math.max(2,Math.floor(this.#ee.width/90));if(this.#r.xScale===`time`)return _t(r,i).map(e=>{let n=Ct(e);return{index:null,value:e,text:t==null?n:t(new Date(e),{defaultLabel:n})}});let a=Je(r,i,{integer:this.#M}),o=a.length>1?Ce(Math.abs((a[1]??0)-(a[0]??0))):void 0;return a.map(e=>{let n=Y(e,o==null?void 0:{maximumFractionDigits:o});return{index:null,value:e,text:t==null?n:t(e,{defaultLabel:n})}})}#ct(e){let t=this.#Q;if(t==null||this.#g<=0||this.#_<=0)return!1;let n=this.#a.begin({cssWidth:this.#g,cssHeight:this.#_,devicePixelRatio:this.#v});if(n==null)return!1;let r=this.#lt(n,t,e);return this.#a.end(),r}#lt(e,t,n){let r=Math.min(50,Math.max(0,n-this.#V));this.#V=n;let i=this.#n.getSnapshot(),a=this.#ee;if(a.width<=0||a.height<=0)return!1;let o=this.#$e(),s=this.#tt(),c=this.#n.seriesSpecs(),l=this.#Re(),u=this.#p||this.#Ne()===0,d=this.#ze(),f=l||!d?[]:this.#ut(e,t.fontFamily()),p=l||!d?[]:this.#dt(e,t.fontFamily()),m=yn(this.#z,f,r,u);m=yn(this.#B,p,r,u)||m;let h=this.#q;if(h.target===1){if(n-this.#J>un)h.target=0;else if(this.#Z==null){let e=un-(n-this.#J)+17;this.#Z=setTimeout(()=>{this.#Z=null,this.#We()},e)}}if(u)h.alpha=h.target;else{let e=1-(1-(h.target>h.alpha?.16:.08))**(r/16.67);h.alpha+=(h.target-h.alpha)*e,Math.abs(h.target-h.alpha)<.02&&(h.alpha=h.target)}h.alpha!==h.target&&(m=!0);let g=this.#Ve(),_=g?this.#et():o,v=e=>this.#te==null?e*s.k+s.b:Ge(this.#te,e),y=e=>e*_.k+_.b,b=[...this.#z.entries()].map(([e,t])=>({position:v(e),alpha:t.alpha})),x=[...this.#B.entries()].map(([e,t])=>({position:y(e),alpha:t.alpha})),S=()=>{if(i.grid==null||l)return;let n=i.grid.lines??(g?`vertical`:`horizontal`),r=g?b:x,o=g?x:b;Lt(e,{plot:a,color:t.chrome.grid,xLines:n===`horizontal`?[]:o,yLines:n===`vertical`?[]:r})},C=Math.min(40,a.width*.25),w=h.alpha>.01&&C>1,T={labels:null};this.#a.composite(e,{underlay:S,marks:()=>{e.save(),e.beginPath(),e.rect(a.left,a.top,a.width,a.height+1),e.clip(),this.#e===`bar`?g?this.#xt(e,c):this.#bt(e,c,o):this.#e===`scatter`?T.labels=this.#ie?.paint(e)??null:this.#St(e,c,o),e.restore()},fade:w?{left:a.left,top:a.top,width:C,height:a.height+1,alpha:h.alpha}:null}),T.labels!=null&&this.#ie?.paintLabels(e,T.labels),this.#e===`bar`&&this.#b>0&&this.#ze()&&(g?Bt(e,{plot:a,color:t.chrome.baseline,x:y(0)}):zt(e,{plot:a,color:t.chrome.baseline,y:y(0)}));for(let n of l?[]:i.referenceLines){let r=y(n.y);if(g?r<a.left||r>a.left+a.width:r<a.top||r>a.top+a.height)continue;let i=n.color==null?t.chrome.reference:t.resolve(n.color);g?nn(e,{plot:a,color:i,textColor:t.chrome.tickText,x:r,label:n.label,fontFamily:t.fontFamily()}):tn(e,{plot:a,color:i,textColor:t.chrome.tickText,y:r,label:n.label,fontFamily:t.fontFamily()})}let E=i.xAxis==null||l?[]:[...this.#z.entries()].map(([e,t])=>({position:v(e),text:t.text,alpha:t.alpha})),D=i.yAxis==null||l?[]:[...this.#B.entries()].map(([e,t])=>({position:y(e),text:t.text,alpha:t.alpha})),O=g?D:E,k=g?E:D;return(O.length>0||k.length>0)&&rn(e,{plot:a,color:t.chrome.tickText,fontFamily:t.fontFamily(),xLabels:O,yLabels:k}),m}#ut(e,t){e.font=`11px ${t}`;let n=this.#Ve(),r=this.#tt(),i=[],a=-1/0;for(let t of this.#it()){let o=t.index!=null&&this.#te!=null,s=o&&this.#te!=null?Ge(this.#te,t.index??0):t.value*r.k+r.b,c=n?15/2:this.#Ue(e,t.text)/2,l=n?2:8;s-c<a+l||(a=s+c,i.push({key:o?t.index??0:t.value,text:t.text}))}return i}#dt(e,t){let n=this.#rt(),r=this.#et();if(!this.#Ve()){let e=[],t=NaN;for(let i of n){let n=i.value*r.k+r.b;Math.abs(n-t)<13||(t=n,e.push({key:i.value,text:i.text}))}return e}e.font=`11px ${t}`;let i=[],a=-1/0;for(let t of n){let n=t.value*r.k+r.b,o=this.#Ue(e,t.text)/2;n-o<a+8||(a=n+o,i.push({key:t.value,text:t.text}))}return i}#ft(e,t,n){let r=t===`value`?e.dataKey:`${e.dataKey}:${t}`;if(!this.#G&&this.#b<=2500){let e=this.#I.get(r);if(e!=null&&e.values().length===this.#b)return e.values()}return t===`value`?this.#D[n]??/* @__PURE__ */ new Float64Array:(t===`lower`?this.#N?.lower:this.#N?.upper)?.[n]??/* @__PURE__ */ new Float64Array}#pt(e){let t=this.#O.get(e);return t==null?void 0:this.#D[t]}#mt(e){let t=[];for(let n=0;n<this.#b;n++)Number.isNaN(e[n]??NaN)||t.push(n);return t}#ht(e){return this.#ue.length!==e&&(this.#ue=Array.from({length:e},(e,t)=>t)),this.#ue}#gt(e){return this.#L.get(e)?.values()[0]??1}#_t(e){let t=e.map(e=>this.#gt(e.dataKey));if(this.#N==null)return e.map((e,n)=>({lower:null,upper:this.#ft(e,`value`,n),reveal:t[n]??1}));let n=e.map((e,t)=>this.#ft(e,`lower`,t)),r=e.map((e,t)=>this.#ft(e,`upper`,t));if(t.every(e=>e>=1))return e.map((e,t)=>({lower:n[t]??null,upper:r[t]??/* @__PURE__ */ new Float64Array,reveal:1}));let i=ce({lower:n,upper:r,reveal:t,count:this.#b});return e.map((e,t)=>({lower:i.lower[t]??null,upper:i.upper[t]??/* @__PURE__ */ new Float64Array,reveal:1}))}#vt(e,t){if(e==null)return 0;let n=e[t]??0;return Number.isNaN(n)?0:n}#yt(e,t,n){let r=this.#N;if(r==null)return!0;let i=r.lower[e]?.[t]??NaN,a=r.upper[e]?.[t]??NaN;if(Number.isNaN(i)||Number.isNaN(a))return!1;let o=i<0,s=(o?r.negativeEnd:r.positiveEnd)[t]??-1;if(s<0)return!1;let c=(o?r.lower:r.upper)[s]?.[t]??NaN;return B({lower:i,upper:a,pileOuter:c,toPixel:n})}#bt(e,t,n){let r=this.#te,i=this.#Q;if(r==null||i==null||this.#b===0||t.length===0)return;let a=this.#N!=null,o=a?1:t.length,s=gn({bandwidth:r.bandwidth,groupCount:o}),c=(r.bandwidth-s*(o-1))/o,l=L({step:r.step,slot:c}),u=e=>e*n.k+n.b,d=+!!a,f=this.#ce,p=this.#_t(t);t.forEach((t,n)=>{let{lower:m,upper:h,reveal:g}=p[n]??fn,_=0;for(let e=0;e<this.#b;e++){let t=h[e]??NaN;if(Number.isNaN(t))continue;let i=this.#vt(m,e),p=a?We(r,e)+(r.bandwidth-l)/2:We(r,e)+(r.bandwidth-(c*o+s*(o-1)))/2+n*(c+s)+(c-l)/2,v=se({lower:i,upper:t,toPixel:u,reveal:g,gap:d}),y=f[_]??wn();f[_]=y,_+=1,y.x=p,y.width=l,y.baselineY=v.baseline,y.valueY=v.value,y.rounded=this.#yt(n,e,u),y.roundedBase=V({baseline:v.baseline,toPixel:u})}Ht(e,{fill:i.barFills.get(t.dataKey)??i.series.get(t.dataKey)??`currentColor`,rects:f,count:_})})}#xt(e,t){let n=this.#te,r=this.#Q;if(n==null||r==null||this.#b===0||t.length===0)return;let i=this.#et(),a=this.#N!=null,o=a?1:t.length,s=gn({bandwidth:n.bandwidth,groupCount:o}),c=(n.bandwidth-s*(o-1))/o,l=L({step:n.step,slot:c}),u=e=>e*i.k+i.b,d=+!!a,f=this.#le,p=this.#_t(t);t.forEach((t,i)=>{let{lower:m,upper:h,reveal:g}=p[i]??fn,_=0;for(let e=0;e<this.#b;e++){let t=h[e]??NaN;if(Number.isNaN(t))continue;let r=this.#vt(m,e),p=a?We(n,e)+(n.bandwidth-l)/2:We(n,e)+(n.bandwidth-(c*o+s*(o-1)))/2+i*(c+s)+(c-l)/2,v=se({lower:r,upper:t,toPixel:u,reveal:g,gap:d}),y=f[_]??Tn();f[_]=y,_+=1,y.y=p,y.height=l,y.baselineX=v.baseline,y.valueX=v.value,y.rounded=this.#yt(i,e,u),y.roundedBase=V({baseline:v.baseline,toPixel:u})}Ut(e,{fill:r.barFills.get(t.dataKey)??r.series.get(t.dataKey)??`currentColor`,rects:f,count:_})})}#St(e,t,n){let r=this.#Q;if(r==null||this.#b===0)return;let i=this.#tt(),a=this.#te,o=e=>a==null?(this.#x[e]??0)*i.k+i.b:Ge(a,e);t.forEach((t,i)=>{let a=r.series.get(t.dataKey)??`currentColor`,s=this.#gt(t.dataKey);if(e.save(),s<1&&(e.beginPath(),e.rect(this.#ee.left,0,this.#ee.width*s,this.#_),e.clip()),this.#G){this.#Ct(e,t,i,a,n),e.restore();return}let c=t.mark===`area`,l=this.#ft(t,this.#N==null?`value`:`upper`,i),u=this.#N==null?null:this.#ft(t,`lower`,i),d=e=>!Number.isNaN(l[e]??NaN),f=t.connectNulls?this.#mt(l):this.#ht(this.#b),p=e=>(l[e]??0)*n.k+n.b;if(c){let r=u==null?()=>0*n.k+n.b:e=>(u[e]??0)*n.k+n.b;Gt(e,{color:a,curve:t.curve,indexes:f,xAt:o,y0At:r,y1At:p,definedAt:d})}else Wt(e,{color:a,curve:t.curve,indexes:f,xAt:o,yAt:p,definedAt:d}),t.markers&&this.#ee.width/this.#b>=12&&en(e,{color:a,surface:r.chrome.surface,shape:t.shape,indexes:f,xAt:o,yAt:p,definedAt:d});e.restore()})}#Ct(e,t,n,r,i){let a=Math.max(1,Math.round(this.#ee.width*this.#v)),o=e=>this.#ee.left+(e+.5)/this.#v;if(t.mark===`area`){let s=this.#wt(`${t.dataKey}:upper`,this.#ft(t,this.#N==null?`value`:`upper`,n),a),c=this.#N==null?null:this.#wt(`${t.dataKey}:lower`,this.#ft(t,`lower`,n),a);if(c==null){let t=this.#de;t?.columnCount!==a&&(t=En(a),this.#de=t),qt(e,{color:r,lowerColumns:t,upperColumns:s,columnToX:o,valueK:i.k,valueB:i.b})}else qt(e,{color:r,lowerColumns:c,upperColumns:s,columnToX:o,valueK:i.k,valueB:i.b});return}let s=this.#wt(t.dataKey,this.#ft(t,`value`,n),a);Kt(e,{color:r,columns:s,columnToX:o,valueK:i.k,valueB:i.b})}#wt(e,t,n){let r=this.#F.values(),i=`${r[0]??0}:${r[1]??1}:${n}`,a=this.#K.get(e);if(a!=null&&a.key===i)return a.columns;let o=[r[0]??0,r[1]??1],s=He(o,[0,n]),c=ve({xs:this.#x,values:t,startIndex:0,endIndex:this.#b-1,positionK:s.k,positionB:s.b,columnCount:n});return this.#K.set(e,{key:i,columns:c}),c}#Tt(){if(this.#b===0)return null;let e;return e=this.#he===void 0?this.#me:this.#he==null?null:this.#Dt(this.#he),e==null?null:Math.min(Math.max(0,e),this.#b-1)}#Et(e){return this.#C==null?e:this.#C[e]??e}#Dt(e){if(this.#y.length===0)return null;let t=Math.min(Math.max(0,e),this.#y.length-1);if(this.#w==null)return t;let n=this.#w[t]??-1;return n===-1?null:n}#Ot(e){if(e<0||e>=this.#b)return``;let{xScale:t}=this.#r;if(t===`band`||t===`point`)return this.#S[e]??``;let n=this.#x[e]??0;return t===`time`?new Date(n):n}#kt(e,t){if(this.#b===0)return null;let n=this.#te;if(n!=null)return qe(n,this.#Ve()?t:e);let{k:r,b:i}=this.#tt();if(r===0)return 0;let a=e;if(this.#G){let t=Math.floor((e-this.#ee.left)*this.#v);a=this.#ee.left+(t+.5)/this.#v}return Pe(this.#x,this.#b,(a-i)/r)}#At(e,t,n){let r=this.#n.seriesSpecs(),i=this.#Ve(),a=this.#te;if(this.#e===`bar`&&this.#N==null&&a!=null&&r.length>1){let o=(i?n:t)-We(a,e),s=Math.floor(o/Math.max(1,a.bandwidth)*r.length);return r[Math.min(r.length-1,Math.max(0,s))]?.dataKey??null}let{k:o,b:s}=i?this.#et():this.#$e(),c=i?t:n,l=this.#N;if(this.#e===`bar`&&l!=null)for(let t=0;t<r.length;t++){let n=l.lower[t]?.[e]??NaN,i=l.upper[t]?.[e]??NaN;if(Number.isNaN(n)||Number.isNaN(i)||n===i)continue;let a=n*o+s,u=i*o+s;if(c>=Math.min(a,u)&&c<=Math.max(a,u))return r[t]?.dataKey??null}let u=null,d=1/0;return r.forEach((t,n)=>{let r=(this.#N==null?this.#pt(t.dataKey):this.#N.upper[n])?.[e]??NaN;if(Number.isNaN(r))return;let i=Math.abs(r*o+s-c);i<d&&(d=i,u=t.dataKey)}),u}#jt(e,t){let n=e==null||this.#b===0?null:Math.min(Math.max(0,e),this.#b-1),r=this.#he!==void 0;if(t.notify&&n!==this.#Tt()){let e=n==null?null:this.#Et(n);if(this.#i.onActiveIndexChange?.(e),r){this.#ge={index:e,viaKeyboard:t.viaKeyboard};return}}this.#_e=t.viaKeyboard,r||(this.#me=n),this.#Ft(),this.#Ge()}#Mt=null;#Nt=!1;#Pt=null;#Ft(e={force:!1}){let t=this.#Tt();if(!e.force&&t===this.#Mt&&this.#_e===this.#Nt&&this.#pe===this.#Pt)return;if(this.#Mt=t,this.#Nt=this.#_e,this.#Pt=this.#pe,t==null||this.#b===0){this.#n.publishHover(null);return}let n=this.#Et(t),r=this.#y[n]??{},i=this.#n.getSnapshot().series.map(e=>{let n=this.#pt(e.dataKey)?.[t]??NaN;return{dataKey:e.dataKey,label:e.label,value:Number.isNaN(n)?null:n,color:e.color}});this.#r.stacked&&i.reverse(),this.#e===`scatter`&&(i=this.#pe==null?i.filter(e=>e.value!=null):i.filter(e=>e.dataKey===this.#pe));let a={index:n,xValue:this.#Ot(t),datum:r,points:i,viaKeyboard:this.#_e};if(this.#r.stacked&&i.length>1&&(a.total=i.reduce((e,t)=>e+(t.value??0),0)),this.#Re()){let e=this.#ne[t]??NaN;a.zValue=Number.isNaN(e)?null:e}this.#n.publishHover(a)}#It(){let e=this.#Tt(),t=e!=null&&this.#b>0,n=this.#oe??(t?this.#Lt():null);if(n==null)return;let{tooltip:r}=this.#t,{crosshair:i,band:a,markers:o}=n,s=this.#e===`bar`,c=this.#e===`scatter`;if(i.style.opacity=t&&!s&&!c?`1`:`0`,a.style.opacity=t&&s?`1`:`0`,o.style.opacity=t&&!s?`1`:`0`,r!=null&&(r.style.opacity=t?`1`:`0`),!t)return;let l=this.#ee;if(c){let t=this.#fe??this.#ie?.screenFor(e)??null;if(t==null){o.style.opacity=`0`,r!=null&&(r.style.opacity=`0`);return}for(;o.children.length>1;)o.lastElementChild?.remove();o.children.length===0&&o.appendChild(xn(o.ownerDocument));let n=o.children[0];if(n instanceof HTMLElement){let r=this.#n.getSnapshot().series,i=this.#pe==null?r.find(t=>{let n=this.#pt(t.dataKey)?.[e]??NaN;return!Number.isNaN(n)}):r.find(e=>e.dataKey===this.#pe);n.style.opacity=`1`,Cn(n,i?.shape??`circle`,i?.color??`currentColor`),n.style.transform=`translate(${t.x}px, ${t.y}px)`}this.#Rt(t.x,t.y);return}let u=this.#nt(e),d=this.#Ve();if(s){let t=this.#te;if(t!=null){let n=Ke(t,e),r=Math.max(1,n.size),i=n.start-(r-n.size)/2;d?(a.style.transform=`translate(${l.left}px, ${i}px)`,a.style.width=`${l.width}px`,a.style.height=`${r}px`):(a.style.transform=`translate(${i}px, ${l.top}px)`,a.style.width=`${r}px`,a.style.height=`${l.height}px`)}}else{i.style.transform=`translate(${u}px, ${l.top}px)`,i.style.height=`${l.height}px`;let t=this.#n.getSnapshot().series;for(;o.children.length>t.length;)o.lastElementChild?.remove();for(;o.children.length<t.length;)o.appendChild(xn(o.ownerDocument));let n=this.#$e();t.forEach((t,r)=>{let i=o.children[r];if(!(i instanceof HTMLElement))return;let a=this.#pt(t.dataKey)?.[e]??NaN,s=this.#ft(t,this.#N==null?`value`:`upper`,r)[e]??NaN;Number.isNaN(a)||Number.isNaN(s)?i.style.opacity=`0`:(i.style.opacity=`1`,Cn(i,t.shape,t.color),i.style.transform=`translate(${u}px, ${s*n.k+n.b}px)`)})}s&&d&&this.#te!=null?this.#Rt(this.#ve??l.left+l.width/2,Ge(this.#te,e)):this.#Rt(u,this.#ye??l.top+8)}#Lt(){if(this.#ae==null)return null;let e=this.#ae();return this.#t.plot.append(e.crosshair,e.band,e.markers),this.#oe=e,e}#Rt(e,t){let n=this.#ee,r=this.#t.tooltip;if(r==null)return;this.#d&&this.#be.width===0&&this.#be.height===0&&(this.#be={width:r.offsetWidth,height:r.offsetHeight});let i=this.#be,a=e+12;a+i.width>n.left+n.width&&e-12-i.width>=n.left&&(a=e-12-i.width);let o=Math.max(0,Math.min(t-i.height/2,n.top+n.height-i.height));r.style.transform=`translate(${a}px, ${o}px)`}};const vn=(e,t)=>e instanceof Date&&t instanceof Date?Object.is(e.getTime(),t.getTime()):Object.is(e,t),yn=(e,t,n,r)=>{for(let t of e.values())t.target=0;for(let n of t){let t=e.get(n.key);t==null?e.set(n.key,{alpha:+!!r,target:1,text:n.text}):(t.target=1,t.text=n.text)}let i=1-.84**(n/16.67),a=1-.88**(n/16.67),o=!1;for(let[t,n]of e){if(r)n.alpha=n.target;else{let e=n.target>n.alpha?i:a;n.alpha+=(n.target-n.alpha)*e}n.target===1&&n.alpha>.98&&(n.alpha=1),n.target===0&&n.alpha<.03?e.delete(t):n.alpha!==n.target&&(o=!0)}return o},bn={circle:`circle(50%)`,square:`inset(8%)`,triangle:`polygon(50% 0%, 100% 100%, 0% 100%)`,diamond:`polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)`,"triangle-down":`polygon(0% 0%, 100% 0%, 50% 100%)`,plus:`polygon(33.33% 0%, 66.67% 0%, 66.67% 33.33%, 100% 33.33%, 100% 66.67%, 66.67% 66.67%, 66.67% 100%, 33.33% 100%, 33.33% 66.67%, 0% 66.67%, 0% 33.33%, 33.33% 33.33%)`,cross:`polygon(73.57% 2.86%, 97.14% 26.43%, 73.57% 50%, 97.14% 73.57%, 73.57% 97.14%, 50% 73.57%, 26.43% 97.14%, 2.86% 73.57%, 26.43% 50%, 2.86% 26.43%, 26.43% 2.86%, 50% 26.43%)`,star:`polygon(50% 2.45%, 61.8% 38.77%, 100% 38.77%, 69.1% 61.23%, 80.9% 97.55%, 50% 75.1%, 19.1% 97.55%, 30.9% 61.23%, 0% 38.77%, 38.2% 38.77%)`},xn=e=>{let t=e.createElement(`div`);t.setAttribute(`data-slot`,`chart-active-point`),t.style.position=`absolute`,t.style.width=`12px`,t.style.height=`12px`,t.style.left=`-6px`,t.style.top=`-6px`,t.style.forcedColorAdjust=`none`;let n=e.createElement(`div`);n.style.position=`absolute`,n.style.inset=`0`,n.style.backgroundColor=`var(--background-color-card)`;let r=e.createElement(`div`);return r.style.position=`absolute`,r.style.inset=`2px`,t.appendChild(n),t.appendChild(r),t},Sn=/* @__PURE__ */ new WeakMap,Cn=(e,t,n)=>{let r=Sn.get(e);if(r?.shape===t&&r.color===n)return;Sn.set(e,{shape:t,color:n});let i=bn[t];e.setAttribute(`data-shape`,t);let[a,o]=e.children;a instanceof HTMLElement&&(a.style.clipPath=i),o instanceof HTMLElement&&(o.style.clipPath=i,o.style.backgroundColor=n)},wn=()=>({x:0,width:0,baselineY:0,valueY:0,rounded:!1,roundedBase:!1}),Tn=()=>({y:0,height:0,baselineX:0,valueX:0,rounded:!1,roundedBase:!1}),En=e=>{let t=new Float64Array(e);return{columnCount:e,hasData:new Uint8Array(e).fill(1),minValue:t,maxValue:t,inValue:t,outValue:t}},Dn=1.5,On=1.1,kn=1.6,An=e=>`color-mix(in oklab, ${e} 25%, var(--background-color-card))`,jn=(e,t,n)=>{let r=Dn;n===`up`?(e.moveTo(-1.5,t+r),e.lineTo(t+r,-1.5),e.moveTo(-1.5,r),e.lineTo(r,-1.5),e.moveTo(t-r,t+r),e.lineTo(t+r,t-r)):(e.moveTo(-1.5,-1.5),e.lineTo(t+r,t+r),e.moveTo(t-r,-1.5),e.lineTo(t+r,r),e.moveTo(-1.5,t-r),e.lineTo(r,t+r))},Mn=(e,t)=>{let{size:n,width:r}=t;e.fillRect(0,n/2-r/2,n,r)},Nn=(e,t)=>{let{size:n,width:r}=t;e.fillRect(n/2-r/2,0,r,n)},Pn={hatch:(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=Dn,e.beginPath(),jn(e,t,`up`),e.stroke()},"hatch-reverse":(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=Dn,e.beginPath(),jn(e,t,`down`),e.stroke()},crosshatch:(e,{size:t,ink:n})=>{e.strokeStyle=n,e.lineWidth=1,e.beginPath(),jn(e,t,`up`),jn(e,t,`down`),e.stroke()},perpendicular:(e,{size:t,ink:n,orientation:r})=>{e.fillStyle=n,r===`horizontal`?Nn(e,{size:t,width:2}):Mn(e,{size:t,width:2})},parallel:(e,{size:t,ink:n,orientation:r})=>{e.fillStyle=n,r===`horizontal`?Mn(e,{size:t,width:2}):Nn(e,{size:t,width:2})},grid:(e,{size:t,ink:n})=>{e.fillStyle=n,Mn(e,{size:t,width:On}),Nn(e,{size:t,width:On})},dots:(e,{size:t,ink:n})=>{e.fillStyle=n,e.beginPath(),e.arc(t/4,t/4,kn,0,Math.PI*2),e.moveTo(3*t/4+kn,3*t/4),e.arc(3*t/4,3*t/4,kn,0,Math.PI*2),e.fill()}},Fn=(e,t)=>{let{texture:n,ground:r,ink:i,orientation:a}=t;e.fillStyle=r,e.fillRect(0,0,8,8),Pn[n](e,{size:8,ink:i,orientation:a})},In=e=>{let t=f(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().orientation,r=()=>e.getSnapshot().orientation,t[0]=e,t[1]=n,t[2]=r),b(e.subscribe,n,r)},Ln=(e,t,n=3)=>`repeating-linear-gradient(${e}, ${t} 0, ${t} 1px, transparent 1px, transparent ${n}px)`,Rn=`forced-color-adjust-none [print-color-adjust:exact] [-webkit-print-color-adjust:exact]`,zn={hatch:({ink:e})=>({backgroundImage:Ln(`135deg`,e)}),"hatch-reverse":({ink:e})=>({backgroundImage:Ln(`45deg`,e)}),crosshatch:({ink:e})=>({backgroundImage:`${Ln(`135deg`,e,4)}, ${Ln(`45deg`,e,4)}`}),perpendicular:({ink:e,orientation:t})=>({backgroundImage:Ln(t===`horizontal`?`90deg`:`0deg`,e)}),parallel:({ink:e,orientation:t})=>({backgroundImage:Ln(t===`horizontal`?`0deg`:`90deg`,e)}),grid:({ink:e})=>({backgroundImage:`${Ln(`0deg`,e,4)}, ${Ln(`90deg`,e,4)}`}),dots:({ink:e})=>({backgroundImage:`radial-gradient(circle at 1px 1px, ${e} 0.75px, transparent 0.8px)`,backgroundSize:`3px 3px`})},Bn=(e,t,n)=>e===`solid`?{}:{backgroundColor:An(t),...zn[e]({ink:t,orientation:n})},Vn=e=>{let t=f(31),{series:n,orientation:i}=e;if(n.mark===`bar`){let e=n.texture,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=r(`size-2 shrink-0 rounded-[2px]`,Rn),t[0]=a):a=t[0];let o=n.color,s;t[1]!==i||t[2]!==n.color||t[3]!==n.texture?(s=Bn(n.texture,n.color,i),t[1]=i,t[2]=n.color,t[3]=n.texture,t[4]=s):s=t[4];let c;t[5]!==n.color||t[6]!==s?(c={backgroundColor:o,...s},t[5]=n.color,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==n.texture||t[9]!==c?(l=/* @__PURE__ */ C(`span`,{"aria-hidden":!0,"data-texture":e,className:a,style:c}),t[8]=n.texture,t[9]=c,t[10]=l):l=t[10],l}if(n.mark===`line`){let e;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=r(`absolute inset-x-0 top-1/2 h-0.5 -translate-y-1/2 rounded-full`,Rn),t[11]=e):e=t[11];let i;t[12]===n.color?i=t[13]:(i=/* @__PURE__ */ C(`span`,{className:e,style:{backgroundColor:n.color}}),t[12]=n.color,t[13]=i);let a=n.shape,o;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(o=r(`relative size-2`,Rn),t[14]=o):o=t[14];let s=bn[n.shape],c;t[15]!==n.color||t[16]!==s?(c={backgroundColor:n.color,clipPath:s},t[15]=n.color,t[16]=s,t[17]=c):c=t[17];let l;t[18]!==n.shape||t[19]!==c?(l=/* @__PURE__ */ C(`span`,{"data-shape":a,className:o,style:c}),t[18]=n.shape,t[19]=c,t[20]=l):l=t[20];let u;return t[21]!==i||t[22]!==l?(u=/* @__PURE__ */ w(`span`,{"aria-hidden":!0,className:`relative flex h-2 w-3 shrink-0 items-center justify-center`,children:[i,l]}),t[21]=i,t[22]=l,t[23]=u):u=t[23],u}let a=n.shape,o;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(o=r(`size-2 shrink-0`,Rn),t[24]=o):o=t[24];let s=bn[n.shape],c;t[25]!==n.color||t[26]!==s?(c={backgroundColor:n.color,clipPath:s},t[25]=n.color,t[26]=s,t[27]=c):c=t[27];let l;return t[28]!==n.shape||t[29]!==c?(l=/* @__PURE__ */ C(`span`,{"aria-hidden":!0,"data-shape":a,className:o,style:c}),t[28]=n.shape,t[29]=c,t[30]=l):l=t[30],l},Hn=e=>{let n=f(27),i,a,o,s,c,l;n[0]===e?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6]):({partName:o,slotName:l,className:a,children:i,ref:c,...s}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l);let u=F(o),d=ie(u.store),p=In(u.store),m=v(null),g=t(m,c),[_,b]=y(!1),x;n[7]===d.length?x=n[8]:(x=()=>{let e=m.current;if(!(e==null||d.length<2))return q(e,()=>{b(e.scrollHeight>e.clientHeight)})},n[7]=d.length,n[8]=x);let S;if(n[9]===d?S=n[10]:(S=[d],n[9]=d,n[10]=S),h(x,S),d.length<2)return null;let T=`${l}-legend`,E;n[11]===a?E=n[12]:(E=r(`text-muted focus-visible:ring-focus-accent flex max-h-16 shrink-0 flex-wrap items-center gap-x-4 gap-y-1 overflow-y-auto rounded-sm pt-3 text-xs focus:outline-hidden focus-visible:ring-2`,a),n[11]=a,n[12]=E);let D;n[13]===_?D=n[14]:(D=_&&{role:`group`,"aria-label":`Legend`,tabIndex:0},n[13]=_,n[14]=D);let O;n[15]!==i||n[16]!==p||n[17]!==d||n[18]!==l?(O=i==null?d.map(e=>/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[/* @__PURE__ */ C(Vn,{series:e,orientation:p}),e.label]},e.dataKey)):/* @__PURE__ */ C(`div`,{"data-slot":`${l}-legend-label`,className:`contents`,children:i(d)}),n[15]=i,n[16]=p,n[17]=d,n[18]=l,n[19]=O):O=n[19];let k;return n[20]!==g||n[21]!==s||n[22]!==T||n[23]!==E||n[24]!==D||n[25]!==O?(k=/* @__PURE__ */ C(`div`,{ref:g,"data-slot":T,className:E,...D,...s,children:O}),n[20]=g,n[21]=s,n[22]=T,n[23]=E,n[24]=D,n[25]=O,n[26]=k):k=n[26],k},Un=p(null),Wn=e=>{let t=f(23),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({slotName:o,"data-slot":r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s={id:``,text:``},t[5]=s):s=t[5];let[c,l]=y(s),u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>({announce:(e,t)=>{l(n=>t===``&&n.id!==e||n.id===e&&n.text===t?n:{id:e,text:t})}}),t[6]=u):u=t[6];let[d]=y(u),p;t[7]!==r||t[8]!==o?(p=i(r,o),t[7]=r,t[8]=o,t[9]=p):p=t[9];let m=`${o}-items`,h;t[10]!==n||t[11]!==m?(h=/* @__PURE__ */ C(`div`,{"data-slot":m,className:`contents`,children:n}),t[10]=n,t[11]=m,t[12]=h):h=t[12];let g;t[13]!==d||t[14]!==h?(g=/* @__PURE__ */ C(Un.Provider,{value:d,children:h}),t[13]=d,t[14]=h,t[15]=g):g=t[15];let _;t[16]===c.text?_=t[17]:(_=/* @__PURE__ */ C(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:c.text}),t[16]=c.text,t[17]=_);let v;return t[18]!==a||t[19]!==p||t[20]!==g||t[21]!==_?(v=/* @__PURE__ */ w(`div`,{"data-slot":p,...a,children:[g,_]}),t[18]=a,t[19]=p,t[20]=g,t[21]=_,t[22]=v):v=t[22],v},Gn=(e,t,n)=>{let r=f(12),i=F(e);x(i.kind===t,()=>`${e} cannot be composed inside ${i.componentName}.Root — compose ${i.componentName} series parts instead.`);let{dataKey:a,label:o,color:s,curve:c,markers:l,connectNulls:u,shape:d,texture:p}=n,m=c===void 0?`linear`:c,h=l!==void 0&&l,g=u!==void 0&&u,v=d===void 0?`circle`:d,y=p===void 0?`solid`:p,b,S;return r[0]!==s||r[1]!==g||r[2]!==i.store||r[3]!==m||r[4]!==a||r[5]!==o||r[6]!==t||r[7]!==h||r[8]!==v||r[9]!==y?(b=()=>i.store.registerSeries({dataKey:a,label:o??a,color:s,mark:t,curve:m,markers:h,connectNulls:g,shape:v,texture:y}),S=[i.store,a,o,s,t,m,h,g,v,y],r[0]=s,r[1]=g,r[2]=i.store,r[3]=m,r[4]=a,r[5]=o,r[6]=t,r[7]=h,r[8]=v,r[9]=y,r[10]=b,r[11]=S):(b=r[10],S=r[11]),_(b,S),null},Kn=(e,t)=>{let n=f(4),r=F(e),{lines:i}=t,a,o;return n[0]!==r.store||n[1]!==i?(a=()=>r.store.registerGrid(i),o=[r.store,i],n[0]=r.store,n[1]=i,n[2]=a,n[3]=o):(a=n[2],o=n[3]),_(a,o),null},qn=(e,t)=>{let n=f(5),r=F(e),{tickFormat:i,tickCount:a}=t,o,s;return n[0]!==r.store||n[1]!==a||n[2]!==i?(o=()=>r.store.registerXAxis({tickFormat:i,tickCount:a}),s=[r.store,i,a],n[0]=r.store,n[1]=a,n[2]=i,n[3]=o,n[4]=s):(o=n[3],s=n[4]),_(o,s),null},Jn=(e,t)=>{let n=f(5),r=F(e),{tickFormat:i,tickCount:a}=t,o,s;return n[0]!==r.store||n[1]!==a||n[2]!==i?(o=()=>r.store.registerYAxis({tickFormat:i,tickCount:a}),s=[r.store,i,a],n[0]=r.store,n[1]=a,n[2]=i,n[3]=o,n[4]=s):(o=n[3],s=n[4]),_(o,s),null},Yn=(e,t)=>{let n=f(7),r=F(e),i=g(),{y:a,label:o,color:s}=t,c,l;return n[0]!==s||n[1]!==r.store||n[2]!==i||n[3]!==o||n[4]!==a?(c=()=>r.store.registerReferenceLine(i,{y:a,label:o,color:s}),l=[r.store,i,a,o,s],n[0]=s,n[1]=r.store,n[2]=i,n[3]=o,n[4]=a,n[5]=c,n[6]=l):(c=n[5],l=n[6]),_(c,l),null},Xn=/* @__PURE__ */ new Map;let Zn=!1,Qn=!1;const $n=e=>typeof e==`object`&&!!e&&`yield`in e&&typeof Reflect.get(e,`yield`)==`function`,er=()=>{let e=Reflect.get(globalThis,`scheduler`);return $n(e)?e.yield():new Promise(e=>{if(typeof MessageChannel<`u`){let t=new MessageChannel;t.port1.addEventListener(`message`,()=>{t.port1.close(),e()},{once:!0}),t.port1.start(),t.port2.postMessage(null)}else setTimeout(e,0)})},tr=(e,t)=>{let n=e.ownerDocument.defaultView;return t==null||n==null||t.bottom>0&&t.top<n.innerHeight&&t.right>0&&t.left<n.innerWidth},nr=()=>{Qn=!1;let e=performance.now(),t=[...Xn.entries()].toSorted(([,e],[,t])=>Number(t.onScreen)-Number(e.onScreen)||e.top-t.top);try{for(let[n,r]of t)if(Xn.get(n)===r&&(Xn.delete(n),r.run(r.rect),Xn.size>0&&performance.now()-e>=4))break}finally{Xn.size>0&&!Zn&&(Zn=!0,rr())}},rr=async()=>{await er(),Zn=!1;try{nr()}catch(e){reportError(e)}},ir=(e,t)=>{Xn.set(e,{run:t.run,rect:t.rect,onScreen:tr(e,t.rect),top:t.rect?.top??0}),Qn=!0},ar=e=>{let t=Xn.get(e);t!=null&&!t.onScreen&&(t.onScreen=!0,Qn=!0)},or=e=>{Xn.delete(e)},sr=()=>{Xn.size!==0&&Qn&&nr()},cr=e=>typeof e==`string`||typeof e==`number`||e instanceof Date?e:String(e),lr=({raw:e,epoch:t,isTime:n})=>e instanceof Date?e:n?new Date(t):null,ur=(e,t,n)=>{let r=!1;if(n===`band`||n===`point`){let n=null,i=null;for(let a of e){let e=cr(D(a,t));e instanceof Date&&Oe(e)&&(r=!0),n??=e,i=e}return{count:e.length,first:n,last:i,hasTimeOfDay:r}}let i=n===`time`,a=0,o=1/0,s=-1/0;for(let n of e){let e=D(n,t),c=O(e,i);if(Number.isFinite(c)){if(!r){let t=lr({raw:e,epoch:c,isTime:i});t!=null&&Oe(t)&&(r=!0)}a+=1,o=Math.min(o,c),s=Math.max(s,c)}}return a===0?{count:a,first:null,last:null,hasTimeOfDay:r}:{count:a,first:i?new Date(o):o,last:i?new Date(s):s,hasTimeOfDay:r}},dr={line:`Line chart`,bar:`Bar chart`,area:`Area chart`,scatter:`Scatter plot`},fr=(e,t)=>e===`bar`?t?`category`:`categories`:t?`data point`:`data points`,pr=e=>e.length>0?` Series: ${e.join(`, `)}.`:``,mr=({kind:e,summary:t,hydrated:n})=>{let r;if(t.count===0)r=`${dr[e]} with no data.`;else{let i=t.count===1,a=fr(e,i),o=n?Y(t.count):String(t.count),s=``;if(n&&t.first!=null&&t.last!=null){let e={datasetHasTimeOfDay:t.hasTimeOfDay};s=i?` at ${ke(t.first,e)}`:` from ${ke(t.first,e)} to ${ke(t.last,e)}`}r=`${dr[e]} with ${o} ${a}${s}.`}return{sentence:r,instructions:` Use the left and right arrow keys to move between data points, Page Up and Page Down to jump by a tenth of the data, Home and End to jump to the first and last, Enter or Space to activate the current point, and Escape to dismiss the readout.`}},hr=`var(--color-chart-decorative)`,gr={grid:`var(--border-color-card-muted)`,baseline:`var(--border-color-card)`,tickText:`var(--text-color-muted)`,reference:`var(--color-neutral-500)`,surface:`var(--background-color-card)`},_r=e=>u(e)?`var(--color-chart-${e})`:e;var vr=class{#e=/* @__PURE__ */ new Set;#t={series:[],hover:null,grid:null,xAxis:null,yAxis:null,referenceLines:[],tooltip:null,orientation:`vertical`};#n=/* @__PURE__ */ new Map;#r=null;#i=/* @__PURE__ */ new Map;#a=0;#o=null;#s=!1;#c=`vertical`;#l=null;#u=null;#d=/* @__PURE__ */ new Map;#f=/* @__PURE__ */ new Map;#p=null;#m=null;#h=!1;get hoverEver(){return this.#h}onSeriesChange=null;onPresentationChange=null;subscribe=e=>(this.#e.add(e),()=>{this.#e.delete(e)});getSnapshot=()=>this.#t;seriesSpecs(){return this.#r??=[...this.#n.values()].toSorted((e,t)=>e.sequence-t.sequence).map(e=>e.spec),this.#r}seriesShape(e){return this.#n.get(e)?.spec.shape??`circle`}registerSeries(e){let t=this.#i.get(e.dataKey)??this.#a++;return this.#i.set(e.dataKey,t),this.#n.set(e.dataKey,{spec:e,sequence:t}),this.#r=null,this.#g(`series`),()=>{this.#n.get(e.dataKey)?.spec===e&&(this.#n.delete(e.dataKey),this.#r=null,this.#g(`series`))}}setDecorative(e){this.#s!==e&&(this.#s=e,this.#g(`series`))}setOrientation(e){this.#c!==e&&(this.#c=e,this.#g())}registerGrid(e){let t={lines:e};return this.#o=t,this.#g(),()=>{this.#o===t&&(this.#o=null,this.#g())}}registerXAxis(e){return this.#l=e,this.#g(),()=>{this.#l===e&&(this.#l=null,this.#g())}}registerYAxis(e){return this.#u=e,this.#g(),()=>{this.#u===e&&(this.#u=null,this.#g())}}registerReferenceLine(e,t){let n=this.#f.get(e)??this.#a++;return this.#f.set(e,n),this.#d.set(e,{spec:t,sequence:n}),this.#g(),()=>{this.#d.get(e)?.spec===t&&(this.#d.delete(e),this.#g())}}registerTooltip(e){return this.#p=e,this.#g(`tooltip`),()=>{this.#p===e&&(this.#p=null,this.#g(`tooltip`))}}publishHover(e){this.#m!==e&&(this.#m=e,e!=null&&(this.#h=!0),this.#t={...this.#t,hover:e},this.#_())}seriesMeta(){return this.seriesSpecs().map(e=>{let t=this.#s?hr:_r(e.color),n=this.#s?hr:e.color;return{dataKey:e.dataKey,label:e.label,mark:e.mark,color:t,colorInput:n,shape:e.shape,texture:e.texture}})}#g(e=`presentation`){this.#t={series:e===`series`?this.seriesMeta():this.#t.series,hover:this.#m,grid:this.#o,xAxis:this.#l,yAxis:this.#u,referenceLines:[...this.#d.values()].toSorted((e,t)=>e.sequence-t.sequence).map(e=>e.spec),tooltip:this.#p,orientation:this.#c},this.#_(),e===`series`?this.onSeriesChange?.():e===`presentation`&&this.onPresentationChange?.()}#_(){for(let e of this.#e)e()}};const yr=`100%`,br=`300%`,xr=[`near`,`far`],Sr=/* @__PURE__ */ new WeakMap,Cr=/* @__PURE__ */ new WeakMap,wr=/* @__PURE__ */ new WeakMap;let Tr=null;const Er=()=>{if(Tr==null){let e=new IntersectionObserver(()=>{},{scrollMargin:`0px`});Tr=`scrollMargin`in e,e.disconnect()}return Tr},Dr=/auto|scroll/,Or=e=>{let t=e.ownerDocument,n=t.defaultView;if(n==null)return null;for(let r=e.parentElement;r!=null&&r!==t.documentElement&&r!==t.body;r=r.parentElement)if(Dr.test(n.getComputedStyle(r).overflowY))return r;return null},kr=(e,t,n)=>new IntersectionObserver(t=>{for(let n of t)wr.get(n.target)?.({band:e,inView:n.isIntersecting,rect:n.boundingClientRect});sr()},{root:n,rootMargin:Er()?`0px`:t,scrollMargin:t,threshold:0}),Ar=e=>{let t=Sr.get(e);return t??(t={near:kr(`near`,yr,null),far:kr(`far`,br,null),visible:kr(`visible`,`0px`,null),count:0},Sr.set(e,t)),t.count+=1,t},jr=(e,t)=>{--t.count,t.count>0||(t.near.disconnect(),t.far.disconnect(),t.visible.disconnect(),Sr.get(e)===t&&Sr.delete(e))},Mr=(e,t)=>{let n=Cr.get(e);if(n!=null)return n;let r={near:kr(`near`,yr,e),far:kr(`far`,br,e),open:{near:!1,far:!1},elements:{near:/* @__PURE__ */ new Set,far:/* @__PURE__ */ new Set}};return wr.set(e,({band:e,inView:t})=>{if(e!==`visible`&&r.open[e]!==t){r.open[e]=t;for(let n of r.elements[e])t?r[e].observe(n):(r[e].unobserve(n),wr.get(n)?.({band:e,inView:!1,rect:null}))}}),t.near.observe(e),t.far.observe(e),t.count+=1,Cr.set(e,r),r},Nr=(e,t,n,r)=>{t.elements.near.size>0||(t.near.disconnect(),t.far.disconnect(),n.near.unobserve(e),n.far.unobserve(e),wr.delete(e),Cr.get(e)===t&&Cr.delete(e),jr(r,n))},Pr=(e,{onChange:t,far:n=!0})=>{if(typeof IntersectionObserver>`u`)return t({band:`near`,inView:!0,rect:null}),n&&t({band:`far`,inView:!0,rect:null}),t({band:`visible`,inView:!0,rect:null}),sr(),()=>{or(e)};let r=e.ownerDocument,i=Ar(r);wr.set(e,t),i.visible.observe(e);let a=Er()?null:Or(e);if(a==null)return i.near.observe(e),n&&i.far.observe(e),()=>{wr.get(e)===t&&(wr.delete(e),or(e),i.near.unobserve(e),i.far.unobserve(e),i.visible.unobserve(e),jr(r,i))};let o=Mr(a,i);for(let t of xr)(t!==`far`||n)&&(o.elements[t].add(e),o.open[t]&&o[t].observe(e));return()=>{if(wr.get(e)===t){wr.delete(e),or(e);for(let t of xr)o.elements[t].delete(e),o[t].unobserve(e);i.visible.unobserve(e),jr(r,i),Nr(a,o,i,r)}}},Fr=e=>{let t=e.getSnapshot().hover;return t?.viaKeyboard===!0?t:null},Ir=e=>Fr(e)?.index??null,Lr=e=>{let t=f(12),{store:n,xHasTimeOfDay:r,announce:i}=e,a,o;t[0]===n?(a=t[1],o=t[2]):(a=()=>Ir(n),o=()=>Ir(n),t[0]=n,t[1]=a,t[2]=o);let s=b(n.subscribe,a,o),c;t[3]!==i||t[4]!==n||t[5]!==r?(c=e=>{i(e==null?``:Hr(e,{xHasTimeOfDay:r,tooltip:n.getSnapshot().tooltip}))},t[3]=i,t[4]=n,t[5]=r,t[6]=c):c=t[6];let l=d(c),u,p;t[7]!==s||t[8]!==n||t[9]!==l?(u=()=>{if(l(null),s==null)return;let e=setTimeout(()=>l(Fr(n)),Br);return()=>clearTimeout(e)},p=[s,n,l],t[7]=s,t[8]=n,t[9]=l,t[10]=u,t[11]=p):(u=t[10],p=t[11]),h(u,p)},Rr=t=>{let n=f(17),{id:r,kind:i,slotName:a,seriesRef:o,summary:s,instructions:c}=t,l=e(),u;n[0]!==l||n[1]!==i||n[2]!==s?(u=mr({kind:i,summary:s,hydrated:l}),n[0]=l,n[1]=i,n[2]=s,n[3]=u):u=n[3];let d=u,p=`${a}-description`,m;n[4]===d.sentence?m=n[5]:(m=/* @__PURE__ */ C(`span`,{children:d.sentence}),n[4]=d.sentence,n[5]=m);let h;n[6]===o?h=n[7]:(h=/* @__PURE__ */ C(`span`,{ref:o}),n[6]=o,n[7]=h);let g;n[8]!==c||n[9]!==d.instructions?(g=c&&/* @__PURE__ */ C(`span`,{children:d.instructions}),n[8]=c,n[9]=d.instructions,n[10]=g):g=n[10];let _;return n[11]!==r||n[12]!==p||n[13]!==m||n[14]!==h||n[15]!==g?(_=/* @__PURE__ */ w(`span`,{id:r,"data-slot":p,className:`sr-only`,children:[m,h,g]}),n[11]=r,n[12]=p,n[13]=m,n[14]=h,n[15]=g,n[16]=_):_=n[16],_},zr=e=>{let t=f(5),{store:n,xHasTimeOfDay:r}=e,[i,a]=y(``),o;t[0]!==n||t[1]!==r?(o={store:n,xHasTimeOfDay:r,announce:a},t[0]=n,t[1]=r,t[2]=o):o=t[2],Lr(o);let s;return t[3]===i?s=t[4]:(s=/* @__PURE__ */ C(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:i}),t[3]=i,t[4]=s),s},Br=120,Vr=e=>typeof e==`string`?e:typeof e==`number`?String(e):null,Hr=(e,{xHasTimeOfDay:t,tooltip:n})=>{let r=(e,t)=>Vr(n?.valueFormat?.(e,t))??Y(e);return`${Vr(n?.labelFormat?.(e.xValue))??ke(e.xValue,{datasetHasTimeOfDay:t})}. ${[...e.total==null?[]:[`Total: ${r(e.total,`total`)}`],...e.points.map(e=>`${e.label}: ${e.value==null?`no data`:r(e.value,e.dataKey)}`)].join(`, `)}${e.zValue===void 0?``:`, z: ${e.zValue==null?`no data`:Y(e.zValue)}`}`},Ur=e=>{let t=f(11),{id:n,list:r,store:i,xHasTimeOfDay:a}=e,o,s;t[0]!==n||t[1]!==r?(o=()=>()=>r.announce(n,``),s=[n,r],t[0]=n,t[1]=r,t[2]=o,t[3]=s):(o=t[2],s=t[3]),h(o,s);let c;t[4]!==n||t[5]!==r?(c=e=>r.announce(n,e),t[4]=n,t[5]=r,t[6]=c):c=t[6];let l;return t[7]!==i||t[8]!==c||t[9]!==a?(l={store:i,xHasTimeOfDay:a,announce:c},t[7]=i,t[8]=c,t[9]=a,t[10]=l):l=t[10],Lr(l),null};function Wr(){return()=>{}}const Gr=(e,t)=>{let n=f(2),r;n[0]===t?r=n[1]:(r=()=>qr(t),n[0]=t,n[1]=r);let i=b(Wr,r,Qr);return e??i},Kr=`[data-slot$="-chart-data-table"]`;function qr(e){if(e!=null)return e.split(/\s+/).map(e=>Jr(document.getElementById(e))).filter(Boolean).join(` `)||void 0}function Jr(e){if(e==null)return``;if(e.querySelector(Kr)==null)return e.textContent?.trim()??``;let t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:e=>e instanceof Element?e.matches(Kr)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),n=``;for(let e=t.nextNode();e!=null;e=t.nextNode())n+=e.textContent??``;return n.trim()}const Yr=e=>e==null||typeof e==`number`&&!Number.isFinite(e),Xr=(e,{xScale:t,xHasTimeOfDay:n})=>{let r=t===`time`?new Date(O(e,!0)):e;return r instanceof Date?{text:ke(r,{datasetHasTimeOfDay:n}),date:Number.isNaN(r.getTime())?null:r}:t===`linear`&&Yr(r)?{text:`—`,date:null}:{text:typeof r==`number`?Y(r):String(r),date:null}},Zr=e=>{let t=f(41),{data:n,label:r,labelledBy:i,slotName:a,store:o,xHasTimeOfDay:s,xKey:c,xScale:l,zKey:u}=e,d=ie(o),p=Gr(r,i);if(n.length===0||d.length===0)return null;let m,h,g,_,v;if(t[0]!==n||t[1]!==p||t[2]!==d||t[3]!==a||t[4]!==s||t[5]!==c||t[6]!==l||t[7]!==u){let e=n.slice(0,150);_=`sr-only`,v=`${a}-data-table`;let r=`${p==null?`Chart data`:`${p} — chart data`}${n.length>150?`. Showing the first 150 of ${n.length} rows.`:`.`}`;t[13]===r?h=t[14]:(h=/* @__PURE__ */ C(`caption`,{children:r}),t[13]=r,t[14]=h);let i;t[15]===c?i=t[16]:(i=/* @__PURE__ */ C(`th`,{scope:`col`,children:c}),t[15]=c,t[16]=i);let o;t[17]===d?o=t[18]:(o=d.map($r),t[17]=d,t[18]=o);let f;t[19]===u?f=t[20]:(f=u!=null&&/* @__PURE__ */ C(`th`,{scope:`col`,children:u}),t[19]=u,t[20]=f),t[21]!==i||t[22]!==o||t[23]!==f?(g=/* @__PURE__ */ C(`thead`,{children:/* @__PURE__ */ w(`tr`,{children:[i,o,f]})}),t[21]=i,t[22]=o,t[23]=f,t[24]=g):g=t[24];let y;t[25]!==d||t[26]!==s||t[27]!==c||t[28]!==l||t[29]!==u?(y=(e,t)=>{let n=D(e,c),r=Xr(n,{xScale:l,xHasTimeOfDay:s});return/* @__PURE__ */ w(`tr`,{children:[/* @__PURE__ */ C(`th`,{scope:`row`,"data-value":typeof n==`number`&&Number.isFinite(n)?n:void 0,children:r.date==null?r.text:/* @__PURE__ */ C(`time`,{dateTime:r.date.toISOString(),children:r.text})}),d.map(t=>{let n=D(e,t.dataKey),r=typeof n==`number`&&Number.isFinite(n);return/* @__PURE__ */ C(`td`,{"data-value":r?n:void 0,children:r?Y(n):`—`},t.dataKey)}),u!=null&&(()=>{let t=D(e,u),n=typeof t==`number`&&Number.isFinite(t);return/* @__PURE__ */ C(`td`,{"data-value":n?t:void 0,children:n?Y(t):`—`})})()]},t)},t[25]=d,t[26]=s,t[27]=c,t[28]=l,t[29]=u,t[30]=y):y=t[30],m=e.map(y),t[0]=n,t[1]=p,t[2]=d,t[3]=a,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=m,t[9]=h,t[10]=g,t[11]=_,t[12]=v}else m=t[8],h=t[9],g=t[10],_=t[11],v=t[12];let y;t[31]===m?y=t[32]:(y=/* @__PURE__ */ C(`tbody`,{children:m}),t[31]=m,t[32]=y);let b;t[33]!==h||t[34]!==g||t[35]!==y?(b=/* @__PURE__ */ w(`table`,{children:[h,g,y]}),t[33]=h,t[34]=g,t[35]=y,t[36]=b):b=t[36];let x;return t[37]!==_||t[38]!==v||t[39]!==b?(x=/* @__PURE__ */ C(`div`,{className:_,"data-slot":v,children:b}),t[37]=_,t[38]=v,t[39]=b,t[40]=x):x=t[40],x};function Qr(){}function $r(e){return/* @__PURE__ */ C(`th`,{scope:`col`,children:e.label},e.dataKey)}const ei=e=>{let t=f(9),n,r;t[0]===e?(n=t[1],r=t[2]):(n=()=>e.getSnapshot().hover,r=()=>e.getSnapshot().hover,t[0]=e,t[1]=n,t[2]=r);let i=b(e.subscribe,n,r),a,o;t[3]===e?(a=t[4],o=t[5]):(a=()=>e.getSnapshot().tooltip,o=()=>e.getSnapshot().tooltip,t[3]=e,t[4]=a,t[5]=o);let s=b(e.subscribe,a,o),c;return t[6]!==s||t[7]!==i?(c={hover:i,config:s},t[6]=s,t[7]=i,t[8]=c):c=t[8],c},ti=(e,t)=>{let n=f(16),r=F(e),i,a,o,s,c,l;n[0]===t?(i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6]):({labelFormat:s,valueFormat:l,indicator:c,footer:o,children:i,...a}=t,n[0]=t,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=c,n[6]=l);let u=c===void 0?`line`:c,d=oe(a),p,m;return n[7]!==i||n[8]!==r.store||n[9]!==o||n[10]!==u||n[11]!==s||n[12]!==d||n[13]!==l?(p=()=>r.store.registerTooltip({labelFormat:s,valueFormat:l,indicator:u,footer:o,children:i,divProps:d}),m=[r.store,s,l,u,o,i,d],n[7]=i,n[8]=r.store,n[9]=o,n[10]=u,n[11]=s,n[12]=d,n[13]=l,n[14]=p,n[15]=m):(p=n[14],m=n[15]),_(p,m),null},ni=(e,t,n)=>e==null?`—`:n==null?Y(e):n(e,t),ri=e=>{let i=f(26),{slotName:a,store:o,tooltipRef:s,xHasTimeOfDay:c}=e,{hover:l,config:u}=ei(o),d;i[0]===u?.divProps?d=i[1]:(d=u?.divProps??{},i[0]=u?.divProps,i[1]=d);let p,m,h,g;i[2]===d?(p=i[3],m=i[4],h=i[5],g=i[6]):({className:p,ref:m,style:g,...h}=d,i[2]=d,i[3]=p,i[4]=m,i[5]=h,i[6]=g);let y=v(null),b=t(s,y),x,S;i[7]===m?(x=i[8],S=i[9]):(x=()=>{if(m==null)return;let e=n(m),t=e(y.current);return()=>{typeof t==`function`?t():e(null)}},S=[m],i[7]=m,i[8]=x,i[9]=S),_(x,S);let w=`${a}-tooltip`,T;i[10]===p?T=i[11]:(T=r(`bg-popover border-popover text-strong pointer-events-none absolute left-0 top-0 z-10 min-w-32 rounded-md border px-2.5 py-1.5 text-xs shadow-md`,p),i[10]=p,i[11]=T);let E;i[12]===g?E=i[13]:(E={opacity:0,...g},i[12]=g,i[13]=E);let D=E,O;i[14]!==u||i[15]!==l||i[16]!==a||i[17]!==c?(O=l!=null&&/* @__PURE__ */ C(ii,{slotName:a,config:u,hover:l,xHasTimeOfDay:c}),i[14]=u,i[15]=l,i[16]=a,i[17]=c,i[18]=O):O=i[18];let k;return i[19]!==b||i[20]!==h||i[21]!==w||i[22]!==T||i[23]!==D||i[24]!==O?(k=/* @__PURE__ */ C(`div`,{"data-slot":w,ref:b,className:T,style:D,...h,children:O}),i[19]=b,i[20]=h,i[21]=w,i[22]=T,i[23]=D,i[24]=O,i[25]=k):k=i[25],k},ii=e=>{let t=f(35),{slotName:n,config:r,hover:i,xHasTimeOfDay:a}=e;if(r?.children!=null){let e=`${n}-tooltip-label`,a;t[0]!==r||t[1]!==i?(a=r.children(i),t[0]=r,t[1]=i,t[2]=a):a=t[2];let o;return t[3]!==e||t[4]!==a?(o=/* @__PURE__ */ C(`div`,{"data-slot":e,className:`contents`,children:a}),t[3]=e,t[4]=a,t[5]=o):o=t[5],o}let o=r?.footer,s;t[6]!==r||t[7]!==i.xValue||t[8]!==a?(s=r?.labelFormat==null?ke(i.xValue,{datasetHasTimeOfDay:a}):r.labelFormat(i.xValue),t[6]=r,t[7]=i.xValue,t[8]=a,t[9]=s):s=t[9];let c;t[10]===s?c=t[11]:(c=/* @__PURE__ */ C(`div`,{className:`text-muted font-medium`,children:s}),t[10]=s,t[11]=c);let l;t[12]!==r||t[13]!==i.total?(l=i.total!==void 0&&/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ C(`span`,{"aria-hidden":!0,className:`invisible h-2.5 w-0.5 shrink-0`}),/* @__PURE__ */ C(`span`,{className:`text-muted`,children:`Total`}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:r?.valueFormat==null?Y(i.total):r.valueFormat(i.total,`total`)})]}),t[12]=r,t[13]=i.total,t[14]=l):l=t[14];let u;if(t[15]!==r?.indicator||t[16]!==r?.valueFormat||t[17]!==i.points){let e;t[19]!==r?.indicator||t[20]!==r?.valueFormat?(e=e=>/* @__PURE__ */ w(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ C(`span`,{"aria-hidden":!0,className:`forced-color-adjust-none h-2.5 w-0.5 shrink-0 rounded-full`,style:{backgroundColor:e.color}}),/* @__PURE__ */ C(`span`,{className:`text-muted`,children:e.label}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:ni(e.value,e.dataKey,r?.valueFormat)})]},e.dataKey),t[19]=r?.indicator,t[20]=r?.valueFormat,t[21]=e):e=t[21],u=i.points.map(e),t[15]=r?.indicator,t[16]=r?.valueFormat,t[17]=i.points,t[18]=u}else u=t[18];let d;t[22]!==l||t[23]!==u?(d=/* @__PURE__ */ w(`div`,{className:`mt-1 grid gap-1`,children:[l,u]}),t[22]=l,t[23]=u,t[24]=d):d=t[24];let p;t[25]===i.zValue?p=t[26]:(p=i.zValue!==void 0&&/* @__PURE__ */ w(`div`,{className:`mt-1 flex items-center gap-1.5`,children:[/* @__PURE__ */ C(`span`,{className:`text-muted`,children:`z`}),/* @__PURE__ */ C(`span`,{className:`text-strong ml-auto pl-3 font-medium tabular-nums`,children:i.zValue==null?`—`:Y(i.zValue)})]}),t[25]=i.zValue,t[26]=p);let m;t[27]!==o||t[28]!==i?(m=o!=null&&/* @__PURE__ */ C(`div`,{className:`text-muted mt-1`,children:typeof o==`function`?o(i):o}),t[27]=o,t[28]=i,t[29]=m):m=t[29];let h;return t[30]!==c||t[31]!==d||t[32]!==p||t[33]!==m?(h=/* @__PURE__ */ w(S,{children:[c,d,p,m]}),t[30]=c,t[31]=d,t[32]=p,t[33]=m,t[34]=h):h=t[34],h},ai={},oi=(e,t)=>{for(let n of e){let e=D(n,t);if(e!=null)return e instanceof Date?`time`:typeof e==`number`?`linear`:`point`}return`point`},si=[`auto`,`auto`],ci=(e,t)=>{let n=(n,r)=>{let i=e.createElement(`div`);return i.setAttribute(`data-slot`,`${t}-${n}`),i.setAttribute(`aria-hidden`,`true`),i.className=r,i};return{crosshair:n(`crosshair`,`bg-neutral-500 pointer-events-none absolute left-0 top-0 w-px opacity-0 forced-colors:bg-[Highlight]`),band:n(`hover-band`,`bg-neutral-500/10 pointer-events-none absolute left-0 top-0 rounded-sm opacity-0 forced-colors:outline forced-colors:outline-[Highlight]`),markers:n(`markers`,`pointer-events-none absolute inset-0 opacity-0`)}},li={bar:`Bar`,line:`Line`,area:`Area`,scatter:`Point`},ui=e=>{let t=f(7),{plotRef:n,engineRef:r,activateRef:i,visibilityRef:a,holdsBitmap:o}=e,s,c;t[0]!==i||t[1]!==r||t[2]!==o||t[3]!==n||t[4]!==a?(s=()=>{let e=n.current;if(e!=null)return Pr(e,{far:o,onChange:t=>{let{band:n,inView:o,rect:s}=t,c=r.current,l=a.current;n===`near`?(l.near=o,c==null?o?ir(e,{rect:s,run:e=>i.current?.(e)}):or(e):c.setInView(o||l.focused)):n===`visible`?(l.visible=o,c?.setOnScreen(o),o&&(l.seen=!0,c==null?ar(e):c.markSeen())):n===`far`&&(l.withinFar=o,!o&&!l.focused&&c?.releaseBackingStores())}})},c=[n,r,i,a,o],t[0]=i,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=s,t[6]=c):(s=t[5],c=t[6]),_(s,c)},di=e=>{let t=f(5),{rootRef:n,engineRef:r,activateRef:i}=e,a,o;t[0]!==i||t[1]!==r||t[2]!==n?(a=()=>{let e=n.current?.ownerDocument.defaultView;if(e!=null)return de(e,{before:()=>{i.current?.(null),r.current?.paintForPrint()},after:()=>{r.current?.afterPrint()}})},o=[n,r,i],t[0]=i,t[1]=r,t[2]=n,t[3]=a,t[4]=o):(a=t[3],o=t[4]),_(a,o)},fi=e=>{let t=f(5),{store:n,decorative:r,targetRef:i}=e,a,o;t[0]!==r||t[1]!==n||t[2]!==i?(a=()=>{let e=i.current;if(r||e==null)return;let t=null,a=()=>{let r=pr(n.getSnapshot().series.map(mi));r!==t&&(t=r,e.textContent=r)};return a(),n.subscribe(a)},o=[n,r,i],t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o):(a=t[3],o=t[4]),_(a,o)},pi=e=>{let n=f(224),a,o,s,c,l,u,d,p,h,S,T,E,D,O,k,A,ee,j,M,N,P,ne,F,ie,ae,I,L,R,z,se,B;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5],u=n[6],d=n[7],p=n[8],h=n[9],S=n[10],T=n[11],E=n[12],D=n[13],O=n[14],k=n[15],A=n[16],ee=n[17],j=n[18],M=n[19],N=n[20],P=n[21],ne=n[22],F=n[23],ie=n[24],ae=n[25],I=n[26],L=n[27],R=n[28],z=n[29],se=n[30],B=n[31]):({kind:T,componentName:p,slotName:N,paintBackend:A,scatterView:M,data:h,xKey:z,xScale:se,zKey:B,dimensions:ne,yDomain:F,stacked:ie,orientation:ae,animate:o,pending:I,mode:L,activeIndex:a,onActiveIndexChange:E,onDatumActivate:O,className:d,children:u,ref:j,"data-slot":S,"aria-label":c,"aria-labelledby":l,"aria-hidden":s,tabIndex:R,onFocus:k,onBlur:D,style:P,...ee}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l,n[6]=u,n[7]=d,n[8]=p,n[9]=h,n[10]=S,n[11]=T,n[12]=E,n[13]=D,n[14]=O,n[15]=k,n[16]=A,n[17]=ee,n[18]=j,n[19]=M,n[20]=N,n[21]=P,n[22]=ne,n[23]=F,n[24]=ie,n[25]=ae,n[26]=I,n[27]=L,n[28]=R,n[29]=z,n[30]=se,n[31]=B);let V=ne===void 0?3:ne,ce=F===void 0?si:F,H=ie!==void 0&&ie,U=ae===void 0?`vertical`:ae,le=I!==void 0&&I,ue=L===void 0?`interactive`:L,W=ue===`interactive`,G=ue===`decorative`,de=o??ue!==`static`,[K]=y(hi),[fe,pe]=y(!1),q=v(null),me=v(!1),he=v(null),ge;n[32]===Symbol.for(`react.memo_cache_sentinel`)?(ge={near:!1,withinFar:!0,visible:null,seen:!1,focused:!1},n[32]=ge):ge=n[32];let _e=v(ge),ve=v(null),ye;n[33]===K.hoverEver?ye=n[34]:(ye=()=>K.hoverEver,n[33]=K.hoverEver,n[34]=ye);let be=b(K.subscribe,ye,gi),xe;n[35]!==h||n[36]!==T||n[37]!==z||n[38]!==se?(xe=T===`bar`?`band`:se??oi(h,z),n[35]=h,n[36]=T,n[37]=z,n[38]=se,n[39]=xe):xe=n[39];let J=xe,Se;n[40]!==h||n[41]!==J||n[42]!==z||n[43]!==B?(Se={data:h,xKey:z,xScale:J,zKey:B},n[40]=h,n[41]=J,n[42]=z,n[43]=B,n[44]=Se):Se=n[44];let Y=v(Se),Ce;n[45]!==p||n[46]!==T||n[47]!==K?(Ce=()=>({kind:T,componentName:p,store:K,engineRef:q,dataRef:Y}),n[45]=p,n[46]=T,n[47]=K,n[48]=Ce):Ce=n[48];let[we]=y(Ce),Te,Ee;n[49]!==h||n[50]!==J||n[51]!==z||n[52]!==B?(Te=()=>{Y.current={data:h,xKey:z,xScale:J,zKey:B}},Ee=[h,z,J,B],n[49]=h,n[50]=J,n[51]=z,n[52]=B,n[53]=Te,n[54]=Ee):(Te=n[53],Ee=n[54]),_(Te,Ee);let De=v(null),Oe=t(De,j),ke=v(null),Ae=v(null),je=m(Un),Me;n[55]===Symbol.for(`react.memo_cache_sentinel`)?(Me=e=>{Ae.current=e,q.current?.attachTooltip(e)},n[55]=Me):Me=n[55];let Ne=Me,Pe=g();x(T!==`scatter`||h.length===0||J!==`point`,()=>`${p}.Root requires numeric or Date x values — the "${z}" values are not numbers or dates, so they have no position on a continuous scatter axis.`);let[Fe,Ie]=ce,Le;n[56]!==h||n[57]!==J||n[58]!==z?(Le=ur(h,z,J),n[56]=h,n[57]=J,n[58]=z,n[59]=Le):Le=n[59];let Re=Le,X=Re.hasTimeOfDay,Z;n[60]!==Ie||n[61]!==Fe?(Z=[Fe,Ie],n[60]=Ie,n[61]=Fe,n[62]=Z):Z=n[62];let ze=B??null,Be;n[63]!==de||n[64]!==V||n[65]!==U||n[66]!==J||n[67]!==H||n[68]!==Z||n[69]!==ze||n[70]!==z?(Be={xKey:z,xScale:J,yDomain:Z,zKey:ze,dimensions:V,stacked:H,orientation:U,animate:de},n[63]=de,n[64]=V,n[65]=U,n[66]=J,n[67]=H,n[68]=Z,n[69]=ze,n[70]=z,n[71]=Be):Be=n[71];let Ve;n[72]===Symbol.for(`react.memo_cache_sentinel`)?(Ve={onDatumActivate:null,onActiveIndexChange:null},n[72]=Ve):Ve=n[72];let He;n[73]===Be?He=n[74]:(He={options:Be,callbacks:Ve,controlledActiveIndex:void 0},n[73]=Be,n[74]=He);let Ue=v(He),We;n[75]!==a||n[76]!==de||n[77]!==V||n[78]!==W||n[79]!==E||n[80]!==O||n[81]!==U||n[82]!==J||n[83]!==H||n[84]!==z||n[85]!==Ie||n[86]!==Fe||n[87]!==B?(We=()=>{Ue.current={options:{xKey:z,xScale:J,yDomain:[Fe,Ie],zKey:B??null,dimensions:V,stacked:H,orientation:U,animate:de},callbacks:W?{onDatumActivate:O??null,onActiveIndexChange:E??null}:{onDatumActivate:null,onActiveIndexChange:null},controlledActiveIndex:W?a:void 0}},n[75]=a,n[76]=de,n[77]=V,n[78]=W,n[79]=E,n[80]=O,n[81]=U,n[82]=J,n[83]=H,n[84]=z,n[85]=Ie,n[86]=Fe,n[87]=B,n[88]=We):We=n[88],_(We);let Ge,Ke;n[89]!==W||n[90]!==T||n[91]!==A||n[92]!==M||n[93]!==N||n[94]!==K?(Ge=()=>(he.current=e=>{let t=De.current,n=ke.current;if(q.current!=null||t==null||n==null)return;or(n);let r=e!=null&&e.width>0&&e.height>0?{width:e.width,height:e.height}:void 0,i=new _n({kind:T,store:K,backend:A,scatter:M,slotName:N,elements:{root:t,plot:n,tooltip:Ae.current},createHoverLayers:W?()=>ci(n.ownerDocument,N):void 0,inView:!1,onScreen:_e.current.visible??(e!=null&&tr(n,e)),size:r}),a=Ue.current;i.setOptions(a.options),i.setRows(Y.current.data),i.setCallbacks(a.callbacks),i.setControlledActiveIndex(a.controlledActiveIndex),q.current=i,i.flushIngest(),i.setInView(_e.current.near||_e.current.focused),_e.current.seen&&i.markSeen(),i.commitNow()},me.current&&(me.current=!1,he.current(null)),()=>{me.current=q.current!=null,he.current=null,q.current?.destroy(),q.current=null}),Ke=[T,K,N,W,A,M],n[89]=W,n[90]=T,n[91]=A,n[92]=M,n[93]=N,n[94]=K,n[95]=Ge,n[96]=Ke):(Ge=n[95],Ke=n[96]),_(Ge,Ke);let qe=A.kind===`canvas`,Je;n[97]===qe?Je=n[98]:(Je={plotRef:ke,engineRef:q,activateRef:he,visibilityRef:_e,holdsBitmap:qe},n[97]=qe,n[98]=Je),ui(Je);let Ye;n[99]===Symbol.for(`react.memo_cache_sentinel`)?(Ye={rootRef:De,engineRef:q,activateRef:he},n[99]=Ye):Ye=n[99],di(Ye);let Xe,Ze;n[100]!==de||n[101]!==G||n[102]!==V||n[103]!==U||n[104]!==J||n[105]!==H||n[106]!==K||n[107]!==z||n[108]!==Ie||n[109]!==Fe||n[110]!==B?(Xe=()=>{q.current?.setOptions({xKey:z,xScale:J,yDomain:[Fe,Ie],zKey:B??null,dimensions:V,stacked:H,orientation:U,animate:de}),K.setOrientation(U),K.setDecorative(G)},Ze=[K,G,z,J,Fe,Ie,B,V,H,U,de],n[100]=de,n[101]=G,n[102]=V,n[103]=U,n[104]=J,n[105]=H,n[106]=K,n[107]=z,n[108]=Ie,n[109]=Fe,n[110]=B,n[111]=Xe,n[112]=Ze):(Xe=n[111],Ze=n[112]),_(Xe,Ze);let Q,Qe;n[113]===h?(Q=n[114],Qe=n[115]):(Q=()=>{q.current?.setRows(h)},Qe=[h],n[113]=h,n[114]=Q,n[115]=Qe),_(Q,Qe);let $e;n[116]!==W||n[117]!==E||n[118]!==O?($e=()=>{q.current?.setCallbacks(W?{onDatumActivate:O??null,onActiveIndexChange:E??null}:{onDatumActivate:null,onActiveIndexChange:null})},n[116]=W,n[117]=E,n[118]=O,n[119]=$e):$e=n[119],_($e);let et,tt;n[120]!==a||n[121]!==W?(et=()=>{q.current?.setControlledActiveIndex(W?a:void 0)},tt=[W,a],n[120]=a,n[121]=W,n[122]=et,n[123]=tt):(et=n[122],tt=n[123]),_(et,tt);let nt=oe(P??ai),rt,it;n[124]!==d||n[125]!==nt?(rt=()=>{q.current?.setColorScope(d,nt)},it=[d,nt],n[124]=d,n[125]=nt,n[126]=rt,n[127]=it):(rt=n[126],it=n[127]),_(rt,it);let at;n[128]!==G||n[129]!==K?(at={store:K,decorative:G,targetRef:ve},n[128]=G,n[129]=K,n[130]=at):at=n[130],fi(at);let ot=v(null),st;n[131]!==p||n[132]!==h||n[133]!==T||n[134]!==J||n[135]!==K||n[136]!==z||n[137]!==B?(st=()=>{let e=q.current;if(e!=null){e.flushIngest();return}let t=K.seriesSpecs().map(_i),n=JSON.stringify([z,J,B??null,t]),r=ot.current;(r==null||r.data!==h||r.signature!==n)&&(te({rootName:`${p}.Root`,partName:`${p}.${li[T]}`,rows:h,xKey:z,xScale:J,dataKeys:t,zKey:B??null}),ot.current={data:h,signature:n})},n[131]=p,n[132]=h,n[133]=T,n[134]=J,n[135]=K,n[136]=z,n[137]=B,n[138]=st):st=n[138],_(st);let ct=fe?`engaged`:`dormant`,lt;n[139]!==S||n[140]!==N?(lt=i(S,N),n[139]=S,n[140]=N,n[141]=lt):lt=n[141];let $;n[142]===d?$=n[143]:($=r(`relative flex aspect-video w-full flex-col`,d),n[142]=d,n[143]=$);let ut=G?!0:s,dt=G?void 0:R,ft=G?!0:void 0,pt;n[144]!==W||n[145]!==k?(pt=e=>{k?.(e),W&&pe(!0),_e.current.focused=!0,he.current?.(null),q.current?.setInView(!0)},n[144]=W,n[145]=k,n[146]=pt):pt=n[146];let mt;n[147]===D?mt=n[148]:(mt=e=>{if(D?.(e),e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget))return;let t=_e.current;t.focused=!1;let n=q.current;n!=null&&(n.setInView(t.near),t.withinFar||n.releaseBackingStores())},n[147]=D,n[148]=mt);let ht=W?ct:void 0,gt=`${N}-plot`,_t=le&&`opacity-60`,vt;n[149]===_t?vt=n[150]:(vt=r(`relative min-h-0 w-full flex-1 transition-opacity duration-300 ease-out-strong motion-reduce:transition-none`,_t),n[149]=_t,n[150]=vt);let yt=ue===`static`?`img`:void 0,bt=ue===`static`?c:void 0,xt=ue===`static`?l:void 0,St=ue===`static`?Pe:void 0,Ct;n[151]!==c||n[152]!==l||n[153]!==Pe||n[154]!==W||n[155]!==T||n[156]!==B?(Ct=W&&/* @__PURE__ */ C(`div`,{role:`application`,"aria-label":c,"aria-labelledby":l,"aria-describedby":Pe,tabIndex:0,className:r(`focus-visible:ring-focus-accent absolute inset-0 rounded-sm focus:outline-hidden focus-visible:ring-2`,(T===`line`||T===`area`)&&`cursor-crosshair`,T===`scatter`&&B!=null&&`touch-none cursor-grab active:cursor-grabbing`),onPointerDown:e=>{e.button===0&&(e.isTrusted&&T===`scatter`&&B!=null&&e.currentTarget.setPointerCapture(e.pointerId),q.current??he.current?.(ke.current?.getBoundingClientRect()??null),q.current?.handlePointerDown(e.nativeEvent.offsetX,e.nativeEvent.offsetY))},onPointerMove:e=>{q.current?.handlePointerMove(e.nativeEvent.offsetX,e.nativeEvent.offsetY)},onPointerUp:e=>{q.current?.handlePointerUp(e.nativeEvent.offsetX,e.nativeEvent.offsetY,{activate:e.button===0})},onPointerLeave:()=>{q.current?.handlePointerLeave()},onPointerCancel:()=>{q.current?.handlePointerLeave()},onBlur:()=>{q.current?.handlePointerLeave()},onKeyDown:e=>{e.altKey||e.ctrlKey||e.metaKey||q.current?.handleKeyDown(e.key,{repeat:e.repeat})&&e.preventDefault()}}),n[151]=c,n[152]=l,n[153]=Pe,n[154]=W,n[155]=T,n[156]=B,n[157]=Ct):Ct=n[157];let wt;n[158]!==G||n[159]!==Pe||n[160]!==W||n[161]!==T||n[162]!==N||n[163]!==Re?(wt=!G&&/* @__PURE__ */ C(Rr,{id:Pe,kind:T,slotName:N,seriesRef:ve,summary:Re,instructions:W}),n[158]=G,n[159]=Pe,n[160]=W,n[161]=T,n[162]=N,n[163]=Re,n[164]=wt):wt=n[164];let Tt;n[165]!==W||n[166]!==N||n[167]!==K||n[168]!==be||n[169]!==X?(Tt=be&&W&&/* @__PURE__ */ C(ri,{slotName:N,store:K,tooltipRef:Ne,xHasTimeOfDay:X}),n[165]=W,n[166]=N,n[167]=K,n[168]=be,n[169]=X,n[170]=Tt):Tt=n[170];let Et;n[171]!==gt||n[172]!==vt||n[173]!==yt||n[174]!==bt||n[175]!==xt||n[176]!==St||n[177]!==Ct||n[178]!==wt||n[179]!==Tt?(Et=/* @__PURE__ */ w(`div`,{"data-slot":gt,className:vt,role:yt,"aria-label":bt,"aria-labelledby":xt,"aria-describedby":St,ref:ke,children:[Ct,wt,Tt]}),n[171]=gt,n[172]=vt,n[173]=yt,n[174]=bt,n[175]=xt,n[176]=St,n[177]=Ct,n[178]=wt,n[179]=Tt,n[180]=Et):Et=n[180];let Dt;n[181]!==W||n[182]!==je||n[183]!==K||n[184]!==X?(Dt=W&&je==null&&/* @__PURE__ */ C(zr,{store:K,xHasTimeOfDay:X}),n[181]=W,n[182]=je,n[183]=K,n[184]=X,n[185]=Dt):Dt=n[185];let Ot;n[186]!==Pe||n[187]!==W||n[188]!==je||n[189]!==K||n[190]!==X?(Ot=W&&je!=null&&/* @__PURE__ */ C(Ur,{id:Pe,list:je,store:K,xHasTimeOfDay:X}),n[186]=Pe,n[187]=W,n[188]=je,n[189]=K,n[190]=X,n[191]=Ot):Ot=n[191];let kt;n[192]!==c||n[193]!==l||n[194]!==h||n[195]!==fe||n[196]!==W||n[197]!==J||n[198]!==N||n[199]!==K||n[200]!==X||n[201]!==z||n[202]!==B?(kt=W&&fe&&/* @__PURE__ */ C(Zr,{data:h,label:c,labelledBy:l,slotName:N,store:K,xHasTimeOfDay:X,xKey:z,xScale:J,zKey:B}),n[192]=c,n[193]=l,n[194]=h,n[195]=fe,n[196]=W,n[197]=J,n[198]=N,n[199]=K,n[200]=X,n[201]=z,n[202]=B,n[203]=kt):kt=n[203];let At;n[204]!==u||n[205]!==we||n[206]!==Et||n[207]!==Dt||n[208]!==Ot||n[209]!==kt?(At=/* @__PURE__ */ w(re.Provider,{value:we,children:[Et,u,Dt,Ot,kt]}),n[204]=u,n[205]=we,n[206]=Et,n[207]=Dt,n[208]=Ot,n[209]=kt,n[210]=At):At=n[210];let jt;return n[211]!==Oe||n[212]!==ee||n[213]!==P||n[214]!==lt||n[215]!==$||n[216]!==ut||n[217]!==dt||n[218]!==ft||n[219]!==pt||n[220]!==mt||n[221]!==ht||n[222]!==At?(jt=/* @__PURE__ */ C(`div`,{"data-slot":lt,className:$,"aria-hidden":ut,tabIndex:dt,inert:ft,ref:Oe,onFocus:pt,onBlur:mt,style:P,...ee,"data-state":ht,children:At}),n[211]=Oe,n[212]=ee,n[213]=P,n[214]=lt,n[215]=$,n[216]=ut,n[217]=dt,n[218]=ft,n[219]=pt,n[220]=mt,n[221]=ht,n[222]=At,n[223]=jt):jt=n[223],jt};function mi(e){return e.label}function hi(){return new vr}function gi(){return!1}function _i(e){return e.dataKey}export{I as _,Kn as a,qn as c,Hn as d,Fn as f,Fe as g,$t as h,_r as i,Jn as l,cn as m,ti as n,Yn as o,An as p,gr as r,Gn as s,pi as t,Wn as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./use-isomorphic-layout-effect-CLSmHzo4.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./clsx-DUGZgXfJ.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{a as i,r as a}from"./field-CPvjazWN.js";import{c as o}from"react/compiler-runtime";import{useRef as s,useState as c}from"react";import{jsx as l}from"react/jsx-runtime";const u=e=>e===`indeterminate`,d=d=>{let f=o(41),p,m,h,g,_,v,y,b,x,S,C;f[0]===d?(p=f[1],m=f[2],h=f[3],g=f[4],_=f[5],v=f[6],y=f[7],b=f[8],x=f[9],S=f[10],C=f[11]):({"data-slot":v,"aria-invalid":p,className:_,checked:m,defaultChecked:h,defaultValue:C,onClick:y,readOnly:x,ref:S,validation:g,...b}=d,f[0]=d,f[1]=p,f[2]=m,f[3]=h,f[4]=g,f[5]=_,f[6]=v,f[7]=y,f[8]=b,f[9]=x,f[10]=S,f[11]=C);let w=C===void 0?`on`:C,T=s(null),E=t(T,S),[D]=c(h),O=i(),k=g??O,A;f[12]!==p||f[13]!==k?(A=a({"aria-invalid":p,validation:k}),f[12]=p,f[13]=k,f[14]=A):A=f[14];let{ariaInvalid:j,validation:M}=A,N=m??D,P,F;f[15]===N?(P=f[16],F=f[17]):(P=()=>{T.current&&(T.current.indeterminate=u(N))},F=[N],f[15]=N,f[16]=P,f[17]=F),e(P,F);let I;f[18]!==m||f[19]!==D?(I=m==null?{defaultChecked:u(D)?void 0:D}:{checked:!u(m)&&m},f[18]=m,f[19]=D,f[20]=I):I=f[20];let L=I,R=u(m)?`mixed`:m,z=x||void 0,B;f[21]===v?B=f[22]:(B=r(v,`checkbox`),f[21]=v,f[22]=B);let V;f[23]===_?V=f[24]:(V=n(`border-form bg-form shrink-0 cursor-pointer select-none appearance-none rounded border disabled:cursor-default disabled:opacity-50`,`bg-center bg-no-repeat focus:outline-hidden`,`focus-visible:border-accent-600 focus-visible:ring-focus-accent focus-visible:outline-hidden focus-visible:ring-4`,`checked:border-accent-600 checked:bg-accent-600 checked:bg-checked-icon`,`indeterminate:border-accent-600 indeterminate:bg-accent-600 indeterminate:bg-indeterminate-icon`,`data-validation-success:border-success-600 data-validation-success:checked:bg-success-600 data-validation-success:indeterminate:bg-success-600 focus-visible:data-validation-success:border-success-600 focus-visible:data-validation-success:ring-focus-success`,`data-validation-warning:border-warning-600 data-validation-warning:checked:bg-warning-600 data-validation-warning:indeterminate:bg-warning-600 focus-visible:data-validation-warning:border-warning-600 focus-visible:data-validation-warning:ring-focus-warning`,`data-validation-error:border-danger-600 data-validation-error:checked:bg-danger-600 data-validation-error:indeterminate:bg-danger-600 focus-visible:data-validation-error:border-danger-600 focus-visible:data-validation-error:ring-focus-danger`,`where:block where:size-4 where:p-0`,_),f[23]=_,f[24]=V);let H=M||void 0,U;f[25]!==y||f[26]!==x?(U=e=>{x?e.preventDefault():y?.(e)},f[25]=y,f[26]=x,f[27]=U):U=f[27];let W;return f[28]!==j||f[29]!==L||f[30]!==E||f[31]!==w||f[32]!==b||f[33]!==x||f[34]!==V||f[35]!==H||f[36]!==U||f[37]!==R||f[38]!==z||f[39]!==B?(W=/* @__PURE__ */ l(`input`,{"aria-checked":R,"aria-invalid":j,"aria-readonly":z,"data-slot":B,className:V,...L,"data-validation":H,defaultValue:w,onClick:U,readOnly:x,ref:E,type:`checkbox`,...b}),f[28]=j,f[29]=L,f[30]=E,f[31]=w,f[32]=b,f[33]=x,f[34]=V,f[35]=H,f[36]=U,f[37]=R,f[38]=z,f[39]=B,f[40]=W):W=f[40],W};function f({allSelected:e,someSelected:t}){return e?!0:t?`indeterminate`:!1}export{f as n,d as t};