efficient-shell 9.9.0 → 9.10.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 (311) hide show
  1. package/dist/{Browser-ZPOVP4Z7.js → Browser-VUQISZ2Z.js} +14 -14
  2. package/dist/Calculator-IZXBE6R7.js +29 -0
  3. package/dist/{CurrencyConverter-SSR2XDIC.js → CurrencyConverter-AW7BB3DD.js} +8 -8
  4. package/dist/{Documents-T7JYO223.js → Documents-WPTBUSKV.js} +7 -7
  5. package/dist/{Files-HBGW3JWI.js → Files-IZ6N6SG6.js} +31 -31
  6. package/dist/{Notepad-GO2QT55C.js → Notepad-VRQH524R.js} +10 -10
  7. package/dist/{PdfViewer-XSISAJZP.js → PdfViewer-FFQOKKFW.js} +1 -1
  8. package/dist/{PomodoroTimer-EV6D4OFU.js → PomodoroTimer-5VCWY4QT.js} +25 -25
  9. package/dist/{Preview-Z2CRCDHA.js → Preview-SP3WIE54.js} +11 -11
  10. package/dist/Sidebar-PUXP2DFI.js +43 -0
  11. package/dist/{Spreadsheet-GEE77GD3.js → Spreadsheet-4U4ABNE2.js} +11 -11
  12. package/dist/{Stock-6ZIQHGPH.js → Stock-2VWS2IQJ.js} +4 -4
  13. package/dist/{Weather-II7NFRMK.js → Weather-4MEYBP4D.js} +18 -18
  14. package/dist/{WorldClock-NBLNO63Q.js → WorldClock-Y4YRJ43F.js} +6 -6
  15. package/dist/ai/index.js +56 -53
  16. package/dist/ai.css +1 -1
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.d.ts +24 -1
  24. package/dist/charts/CartesianPlot.js +1 -1
  25. package/dist/charts/ChartBrush.js +1 -1
  26. package/dist/charts/ChartFrame.js +1 -1
  27. package/dist/charts/ChartSkeleton.js +1 -1
  28. package/dist/charts/ChordChart.js +1 -1
  29. package/dist/charts/ColumnChart.d.ts +4 -1
  30. package/dist/charts/ColumnChart.js +1 -1
  31. package/dist/charts/FunnelChart.js +1 -1
  32. package/dist/charts/HeatmapChart.js +1 -1
  33. package/dist/charts/HistogramChart.js +1 -1
  34. package/dist/charts/Meter.js +1 -1
  35. package/dist/charts/PieChart.js +1 -1
  36. package/dist/charts/RadarChart.js +1 -1
  37. package/dist/charts/RadialBarChart.js +1 -1
  38. package/dist/charts/RangeChart.js +1 -1
  39. package/dist/charts/RankedBars.js +1 -1
  40. package/dist/charts/SankeyChart.js +1 -1
  41. package/dist/charts/ScatterChart.js +1 -1
  42. package/dist/charts/SpecChart.js +1 -1
  43. package/dist/charts/StatTile.js +1 -1
  44. package/dist/charts/SunburstChart.js +1 -1
  45. package/dist/charts/TimeSeriesChart.d.ts +1 -1
  46. package/dist/charts/TimeSeriesChart.js +1 -1
  47. package/dist/charts/TreemapChart.js +1 -1
  48. package/dist/charts/WaterfallChart.js +1 -1
  49. package/dist/charts/types.d.ts +35 -1
  50. package/dist/{chunk-7WGOLPGM.js → chunk-2AHLONPR.js} +1 -1
  51. package/dist/{chunk-2MLRK7IO.js → chunk-2GPHHW7C.js} +4 -4
  52. package/dist/{chunk-P3OBE43Q.js → chunk-2LDOLQ7F.js} +6 -6
  53. package/dist/{chunk-EFFF3FCS.js → chunk-2SJDTKQA.js} +19 -19
  54. package/dist/{chunk-DZTAGMNY.js → chunk-2XBJNB7D.js} +34 -34
  55. package/dist/{chunk-HQMN5THW.js → chunk-3FBYM6O5.js} +14 -14
  56. package/dist/{chunk-EXNAAHN4.js → chunk-3MHBALGV.js} +2 -2
  57. package/dist/{chunk-CJB73MHF.js → chunk-3XRBVYTO.js} +2 -2
  58. package/dist/{chunk-BVTNGW5S.js → chunk-46YVA2BF.js} +1 -1
  59. package/dist/chunk-4CPE5NBC.js +8 -0
  60. package/dist/{chunk-CO5RKOVX.js → chunk-4DBPKTVX.js} +16 -16
  61. package/dist/{chunk-DNWV6N4P.js → chunk-4SZ3NNVF.js} +1 -1
  62. package/dist/{chunk-XD34TCRG.js → chunk-4XZXY2AF.js} +1 -1
  63. package/dist/{chunk-5JRL5LXD.js → chunk-5AWV5R6E.js} +6 -6
  64. package/dist/{chunk-PYLNMN6E.js → chunk-5CVQN2BR.js} +8 -8
  65. package/dist/{chunk-RWJCKZEY.js → chunk-5Q3PFKB5.js} +1 -1
  66. package/dist/{chunk-LUWRPPJA.js → chunk-5R6RNUDB.js} +5 -5
  67. package/dist/{chunk-WUKN5WUM.js → chunk-5RAOFJYT.js} +6 -6
  68. package/dist/{chunk-WFHYU66E.js → chunk-5VYBPDZ2.js} +1 -1
  69. package/dist/{chunk-ZAU2HIRH.js → chunk-5XNN2SSR.js} +4 -4
  70. package/dist/{chunk-O5LQBBW2.js → chunk-5Y6LGPZI.js} +7 -7
  71. package/dist/{chunk-ZYDZY6ED.js → chunk-5Y7JITHW.js} +1 -1
  72. package/dist/{chunk-3APSMJPN.js → chunk-64R3IYAM.js} +1 -1
  73. package/dist/{chunk-Z3JW77LH.js → chunk-65DYHG73.js} +1 -1
  74. package/dist/{chunk-5VOVNIOU.js → chunk-6O2W4X2V.js} +1 -1
  75. package/dist/{chunk-VVGL5O4F.js → chunk-6TRE326A.js} +6 -6
  76. package/dist/{chunk-ZTL2RPNY.js → chunk-73W7537K.js} +1 -1
  77. package/dist/{chunk-GS5AISRS.js → chunk-7IC4JMFA.js} +4 -4
  78. package/dist/{chunk-OV2SWQPT.js → chunk-7JJUI52C.js} +1 -1
  79. package/dist/{chunk-IMOPDLMA.js → chunk-7WLFHDWA.js} +1 -1
  80. package/dist/chunk-7YZJLFAK.js +11 -0
  81. package/dist/{chunk-56RAOI7O.js → chunk-AG63JVX7.js} +6 -6
  82. package/dist/{chunk-WH3JHMEA.js → chunk-AGETTWMK.js} +1 -1
  83. package/dist/{chunk-6MVHRNWC.js → chunk-BF7PZFKT.js} +1 -1
  84. package/dist/{chunk-IJWFKUYA.js → chunk-BJONHLET.js} +4 -4
  85. package/dist/{chunk-B4KMHEFZ.js → chunk-BNKULSCG.js} +1 -1
  86. package/dist/{chunk-RULVWW4A.js → chunk-BRHKQMRH.js} +6 -6
  87. package/dist/{chunk-VG2R6PZV.js → chunk-BYHKYYL6.js} +1 -1
  88. package/dist/{chunk-DLNYXXNE.js → chunk-CB6ROWOC.js} +2 -2
  89. package/dist/chunk-CBMXYXBH.js +15 -0
  90. package/dist/{chunk-BZBMZDLD.js → chunk-CFO54C3H.js} +1 -1
  91. package/dist/{chunk-P3Y5RFI4.js → chunk-CJI3POCE.js} +2 -2
  92. package/dist/{chunk-GVC535IA.js → chunk-D4KZOYXQ.js} +1 -1
  93. package/dist/chunk-D7JY2KHG.js +7 -0
  94. package/dist/{chunk-PDXPMHG3.js → chunk-DRNB7KDC.js} +1 -1
  95. package/dist/{chunk-U4OGRIP6.js → chunk-DWSCYYDM.js} +1 -1
  96. package/dist/{chunk-U5N6PSXO.js → chunk-E6EUGQGA.js} +5 -5
  97. package/dist/{chunk-N3JXHNID.js → chunk-E72USUUR.js} +10 -10
  98. package/dist/{chunk-C4UL2UNR.js → chunk-EOWOVR55.js} +1 -1
  99. package/dist/{chunk-CE5BARZI.js → chunk-EWJELWIT.js} +3 -3
  100. package/dist/{chunk-OQ2EDMB2.js → chunk-FEPBXJUR.js} +1 -1
  101. package/dist/{chunk-BWUU565Y.js → chunk-FKA6ZVQO.js} +9 -9
  102. package/dist/{chunk-QZKWIVZW.js → chunk-FNSVXN7B.js} +1 -1
  103. package/dist/{chunk-CRXFSN5K.js → chunk-G6LOKIFC.js} +11 -11
  104. package/dist/chunk-GCB5S2OI.js +8 -0
  105. package/dist/{chunk-LNQVTH5S.js → chunk-GP5UNEKY.js} +1 -1
  106. package/dist/{chunk-EW3L4W2I.js → chunk-GVAWCTJN.js} +8 -8
  107. package/dist/{chunk-X7PM7JOD.js → chunk-H2XCQJRG.js} +1 -1
  108. package/dist/{chunk-FBUUXK5G.js → chunk-H4YFANH5.js} +1 -1
  109. package/dist/chunk-HHOXLECO.js +29 -0
  110. package/dist/{chunk-442FFHQJ.js → chunk-HRAK46H7.js} +12 -12
  111. package/dist/chunk-HSTIEPLI.js +1 -0
  112. package/dist/chunk-I5XVZLDH.js +14 -0
  113. package/dist/{chunk-NWCW22U6.js → chunk-IBIUI2D3.js} +2 -2
  114. package/dist/{chunk-CXMTDYVI.js → chunk-IENPHB5B.js} +1 -1
  115. package/dist/{chunk-FLQZ7GQ3.js → chunk-IEPSBXMU.js} +12 -12
  116. package/dist/{chunk-LAEXWXJA.js → chunk-IUWAMMDN.js} +3 -3
  117. package/dist/{chunk-B6YOP2IX.js → chunk-IVY7CCTS.js} +3 -3
  118. package/dist/{chunk-JKDEE35P.js → chunk-IZQ3XTD2.js} +1 -1
  119. package/dist/chunk-J7OKOVSL.js +11 -0
  120. package/dist/{chunk-IB4333CI.js → chunk-JECMVR4S.js} +7 -7
  121. package/dist/{chunk-6ZHX56NM.js → chunk-JQDRM6UK.js} +1 -1
  122. package/dist/{chunk-QC6OK3ED.js → chunk-JVYSRH6U.js} +1 -1
  123. package/dist/{chunk-5VRMQTKV.js → chunk-KAHYUBXM.js} +7 -7
  124. package/dist/{chunk-YWGC7J6B.js → chunk-KECOZKJU.js} +7 -7
  125. package/dist/{chunk-JIW5CJXC.js → chunk-KOSV4UPK.js} +2 -2
  126. package/dist/{chunk-NHVXVHUR.js → chunk-KQSUSVMF.js} +17 -17
  127. package/dist/{chunk-BBEOFKLY.js → chunk-KTRNAMHY.js} +1 -1
  128. package/dist/chunk-LFPJ263N.js +6 -0
  129. package/dist/{chunk-F4DIVARP.js → chunk-LYX55RI3.js} +1 -1
  130. package/dist/{chunk-XZYAFTW4.js → chunk-M5MAIJQQ.js} +4 -4
  131. package/dist/{chunk-XNWQ72WA.js → chunk-MCMUJDEP.js} +1 -1
  132. package/dist/{chunk-ZOHQVSB3.js → chunk-MUHWI4GK.js} +12 -12
  133. package/dist/chunk-N3CTLEJS.js +9 -0
  134. package/dist/{chunk-HJWTWS5E.js → chunk-N52D37FS.js} +5 -5
  135. package/dist/chunk-NBKQADMY.js +9 -0
  136. package/dist/{chunk-P4XTWAKJ.js → chunk-NCRLKFXD.js} +1 -1
  137. package/dist/{chunk-43ONX6UZ.js → chunk-NGQHXTUK.js} +1 -1
  138. package/dist/{chunk-SOP447EP.js → chunk-NRGBXEBU.js} +1 -1
  139. package/dist/{chunk-JS6ZSEZJ.js → chunk-O426Q7KC.js} +1 -1
  140. package/dist/{chunk-CAG3TSV2.js → chunk-O4NPQ23Q.js} +1 -1
  141. package/dist/{chunk-ZHHEMSOD.js → chunk-ODOEH5QZ.js} +2 -2
  142. package/dist/{chunk-ENL5L6NR.js → chunk-P65C5TUU.js} +1 -1
  143. package/dist/chunk-PEM7UXQ3.js +1 -0
  144. package/dist/chunk-PTA7A7GF.js +22 -0
  145. package/dist/{chunk-FLEG5KP5.js → chunk-PWBLGKQ3.js} +5 -5
  146. package/dist/chunk-QCFN3ET4.js +9 -0
  147. package/dist/{chunk-F7F6Z64G.js → chunk-QLOKT22X.js} +1 -1
  148. package/dist/{chunk-IK2WXW2E.js → chunk-QLYOGT3U.js} +13 -13
  149. package/dist/{chunk-N7T63BVD.js → chunk-QMYQ4B5A.js} +3 -3
  150. package/dist/{chunk-EWVOGTEX.js → chunk-QSUQC4AN.js} +1 -1
  151. package/dist/{chunk-BGRT775Y.js → chunk-QYJQAY6C.js} +2 -2
  152. package/dist/{chunk-M5GMIQ47.js → chunk-R7JTTKG2.js} +3 -3
  153. package/dist/{chunk-Y44ABEW3.js → chunk-REGXKU74.js} +1 -1
  154. package/dist/{chunk-AGUA3O5O.js → chunk-RLLONZJJ.js} +1 -1
  155. package/dist/chunk-RSHNWBW2.js +4 -0
  156. package/dist/chunk-SC6HJBQA.js +8 -0
  157. package/dist/{chunk-OUSKOWNP.js → chunk-SGR4V5YI.js} +3 -3
  158. package/dist/{chunk-CVNJSD2J.js → chunk-T2ITXX7R.js} +6 -6
  159. package/dist/chunk-T76X2SHR.js +4 -0
  160. package/dist/{chunk-ARWMJSQJ.js → chunk-T7O2TNNX.js} +1 -1
  161. package/dist/chunk-TBLN4MDQ.js +6 -0
  162. package/dist/{chunk-ANFLQSGX.js → chunk-TQH6E5V2.js} +1 -1
  163. package/dist/{chunk-KEK47CP3.js → chunk-TRUPMMDJ.js} +9 -9
  164. package/dist/{chunk-L67VXJMF.js → chunk-UL4G6JY2.js} +1 -1
  165. package/dist/chunk-UYDP4DK3.js +9 -0
  166. package/dist/{chunk-E4E7MACR.js → chunk-UZGVIHFI.js} +14 -14
  167. package/dist/{chunk-DWBZ3Z34.js → chunk-V5QEPNPK.js} +2 -2
  168. package/dist/{chunk-MV6WDGB6.js → chunk-VANJPZ3H.js} +1 -1
  169. package/dist/{chunk-VVAJ23SD.js → chunk-VBNA237H.js} +1 -1
  170. package/dist/{chunk-24K6GVNM.js → chunk-VR4GSAFM.js} +17 -17
  171. package/dist/{chunk-2R3BVU75.js → chunk-VZV7Q5V2.js} +1 -1
  172. package/dist/{chunk-IJIESSTX.js → chunk-WIOG2NOJ.js} +5 -5
  173. package/dist/{chunk-BCUQXILM.js → chunk-WZQCRTXF.js} +1 -1
  174. package/dist/chunk-X4BKHXU5.js +9 -0
  175. package/dist/{chunk-UKDJUYIV.js → chunk-XI45TSEK.js} +1 -1
  176. package/dist/{chunk-MWIT4UN2.js → chunk-XREN3AKD.js} +9 -9
  177. package/dist/{chunk-IGNZULKG.js → chunk-YBU7NOD7.js} +1 -1
  178. package/dist/{chunk-QSJR7EI7.js → chunk-YQB5OYDC.js} +1 -1
  179. package/dist/{chunk-TVL3JPMY.js → chunk-YWR2WRDR.js} +1 -1
  180. package/dist/{chunk-2HEJDLPP.js → chunk-ZA6S5XVM.js} +2 -2
  181. package/dist/{chunk-K4D63NP3.js → chunk-ZC3CCRPG.js} +7 -7
  182. package/dist/{chunk-IPTCV6CQ.js → chunk-ZPW3KQ27.js} +30 -30
  183. package/dist/data/DataTable.js +1 -1
  184. package/dist/data/Kanban.js +1 -1
  185. package/dist/data/ListFooter.js +1 -1
  186. package/dist/data/ListLoadError.js +1 -1
  187. package/dist/data/Pagination.js +1 -1
  188. package/dist/file-intake/index.js +1 -1
  189. package/dist/forms/BorderInput.js +1 -1
  190. package/dist/forms/BrandAssetEditor.js +1 -1
  191. package/dist/forms/Calendar.js +1 -1
  192. package/dist/forms/ColorPicker.js +1 -1
  193. package/dist/forms/ComposerAttachments.js +1 -1
  194. package/dist/forms/CornersInput.js +1 -1
  195. package/dist/forms/DatePicker.js +1 -1
  196. package/dist/forms/DateRangePicker.js +1 -1
  197. package/dist/forms/DateTimePicker.js +1 -1
  198. package/dist/forms/DisplayChips.js +1 -1
  199. package/dist/forms/FilePicker.js +1 -1
  200. package/dist/forms/FormErrorSummary.js +1 -1
  201. package/dist/forms/IconPicker.js +1 -1
  202. package/dist/forms/ImageFocusPoint.js +1 -1
  203. package/dist/forms/InputNumber.js +1 -1
  204. package/dist/forms/LinkPicker.js +1 -1
  205. package/dist/forms/MediaLibrary.js +1 -1
  206. package/dist/forms/MediaUploadField.js +1 -1
  207. package/dist/forms/MediaUploadGrid.js +1 -1
  208. package/dist/forms/MediaUsedInList.js +1 -1
  209. package/dist/forms/NumericKeypad.js +1 -1
  210. package/dist/forms/PositionInput.js +1 -1
  211. package/dist/forms/Select.js +1 -1
  212. package/dist/forms/SidesInput.js +1 -1
  213. package/dist/forms/Slider.js +1 -1
  214. package/dist/forms/Snippet.js +1 -1
  215. package/dist/forms/TagInput.js +1 -1
  216. package/dist/forms/TextToolbar.js +1 -1
  217. package/dist/forms/TimePicker.js +1 -1
  218. package/dist/forms/WidthsBar.js +1 -1
  219. package/dist/forms/mediaLibraryMenu.js +1 -1
  220. package/dist/forms/mediaMoveItems.js +1 -1
  221. package/dist/forms/textAlign.js +1 -1
  222. package/dist/forms/useFileIntake.js +1 -1
  223. package/dist/hooks/useTheme.d.ts +1 -1
  224. package/dist/index.d.ts +1 -1
  225. package/dist/index.js +139 -139
  226. package/dist/locales/zh-Hans.js +1 -1
  227. package/dist/map/index.js +7 -7
  228. package/dist/page-tabs/index.js +5 -5
  229. package/dist/pdf/index.js +1 -1
  230. package/dist/shell/Accordion.js +1 -1
  231. package/dist/shell/AppUpdateBanner.js +1 -1
  232. package/dist/shell/Avatar.js +1 -1
  233. package/dist/shell/Banner.js +1 -1
  234. package/dist/shell/Breadcrumbs.js +1 -1
  235. package/dist/shell/BudgetBar.js +1 -1
  236. package/dist/shell/Card.js +1 -1
  237. package/dist/shell/ColoredBadge.js +1 -1
  238. package/dist/shell/ConfirmDialog.js +1 -1
  239. package/dist/shell/ContainerFillChart.js +1 -1
  240. package/dist/shell/CountBadge.js +1 -1
  241. package/dist/shell/Dialog.js +1 -1
  242. package/dist/shell/Drawer.js +1 -1
  243. package/dist/shell/EditableGrid.js +1 -1
  244. package/dist/shell/EmptyState.js +1 -1
  245. package/dist/shell/GlobalSearch.js +1 -1
  246. package/dist/shell/HelpCenter.js +1 -1
  247. package/dist/shell/IconRail.js +1 -1
  248. package/dist/shell/ImageLightbox.js +1 -1
  249. package/dist/shell/ItemCount.js +1 -1
  250. package/dist/shell/LanguageSelect.js +1 -1
  251. package/dist/shell/Markdown.js +1 -1
  252. package/dist/shell/MetricBar.js +1 -1
  253. package/dist/shell/MetricBarLegend.js +1 -1
  254. package/dist/shell/MilestoneTimeline.js +1 -1
  255. package/dist/shell/PageHeader.js +1 -1
  256. package/dist/shell/ProductionTimeline.js +1 -1
  257. package/dist/shell/ResizeHandle.js +1 -1
  258. package/dist/shell/Result.js +1 -1
  259. package/dist/shell/SearchableSelect.js +1 -1
  260. package/dist/shell/SettingReset.js +1 -1
  261. package/dist/shell/SettingRow.js +1 -1
  262. package/dist/shell/SidebarLayout.js +1 -1
  263. package/dist/shell/SidebarNav.js +1 -1
  264. package/dist/shell/SortableList.js +1 -1
  265. package/dist/shell/Statistic.js +1 -1
  266. package/dist/shell/TimeAgo.js +1 -1
  267. package/dist/shell/TimelineTrack.js +1 -1
  268. package/dist/shell/TransferProgress.js +1 -1
  269. package/dist/shell/Tree.js +1 -1
  270. package/dist/shell/language.js +1 -1
  271. package/dist/shell/strings.d.ts +6 -0
  272. package/dist/shell/strings.js +1 -1
  273. package/dist/shell/toast.js +1 -1
  274. package/dist/telemetry/index.js +1 -1
  275. package/dist/templates/AuthScreen.js +1 -1
  276. package/dist/templates/ChatTemplate.js +1 -1
  277. package/dist/templates/CheckoutTemplate.js +1 -1
  278. package/dist/templates/DashboardTemplate.js +1 -1
  279. package/dist/templates/DataTablePage.js +1 -1
  280. package/dist/templates/EmailTemplate.js +1 -1
  281. package/dist/templates/ErrorBoundary.d.ts +1 -1
  282. package/dist/templates/ErrorBoundary.js +1 -1
  283. package/dist/templates/ErrorPage.js +1 -1
  284. package/dist/templates/FormLayoutPage.js +1 -1
  285. package/dist/templates/GalleryTemplate.js +1 -1
  286. package/dist/ui/index.js +1 -1
  287. package/dist/version.js +1 -1
  288. package/package.json +1 -1
  289. package/dist/Calculator-CSYRZAS5.js +0 -29
  290. package/dist/Sidebar-Y4DTQYW2.js +0 -43
  291. package/dist/chunk-6453ISTQ.js +0 -4
  292. package/dist/chunk-6FEL5D56.js +0 -8
  293. package/dist/chunk-AC373WIU.js +0 -8
  294. package/dist/chunk-BZG5E7GF.js +0 -6
  295. package/dist/chunk-D7IXMMZT.js +0 -9
  296. package/dist/chunk-FKNJSD6B.js +0 -14
  297. package/dist/chunk-G6CTTBKE.js +0 -9
  298. package/dist/chunk-HEEY4TVP.js +0 -8
  299. package/dist/chunk-HUF34LSW.js +0 -15
  300. package/dist/chunk-IX6QMUJQ.js +0 -9
  301. package/dist/chunk-KWT6GT4M.js +0 -29
  302. package/dist/chunk-L4TN4EWK.js +0 -1
  303. package/dist/chunk-MG7A3R75.js +0 -1
  304. package/dist/chunk-OX2DOOOI.js +0 -8
  305. package/dist/chunk-PDB5W7VI.js +0 -6
  306. package/dist/chunk-Q7KTTDUS.js +0 -11
  307. package/dist/chunk-QWHQJNKL.js +0 -1
  308. package/dist/chunk-QXWY3CJ2.js +0 -11
  309. package/dist/chunk-RC6UHOAV.js +0 -4
  310. package/dist/chunk-WE7CYRZT.js +0 -7
  311. package/dist/chunk-XI4HKNFI.js +0 -19
@@ -1,4 +1,4 @@
1
- import{DAY_MS as e,fmtSliderDate as t}from"./chunk-YDEIXM2A.js";import{calendarNames as n}from"./chunk-5OTS2G3M.js";import{stagger as r}from"./chunk-465RRWBY.js";import{popupBounds as l}from"./chunk-GLUJS42B.js";import{useBrowserValueOnce as a}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-QWHQJNKL.js";import{useRef as c,useState as d,useId as u,useEffect as m,useCallback as h,useLayoutEffect as p}from"react";import{jsx as x,jsxs as f,Fragment as y}from"react/jsx-runtime";var k={receipt:/* @__PURE__ */f(y,{children:[
1
+ import{DAY_MS as e,fmtSliderDate as t}from"./chunk-YDEIXM2A.js";import{calendarNames as n}from"./chunk-5OTS2G3M.js";import{stagger as r}from"./chunk-465RRWBY.js";import{popupBounds as l}from"./chunk-GLUJS42B.js";import{useBrowserValueOnce as a}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-PEM7UXQ3.js";import{useRef as c,useState as d,useId as u,useEffect as m,useCallback as h,useLayoutEffect as p}from"react";import{jsx as x,jsxs as f,Fragment as y}from"react/jsx-runtime";var k={receipt:/* @__PURE__ */f(y,{children:[
2
2
  /* @__PURE__ */x("path",{d:"M3.4 1.9h5.2v7.2l-1.3-.9-1.3.9-1.3-.9-1.3.9z",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),
3
3
  /* @__PURE__ */x("path",{d:"M4.9 4.4h2.2M4.9 6.1h2.2",stroke:"currentColor",strokeWidth:"1.1",strokeLinecap:"round"})]}),check:/* @__PURE__ */x("path",{d:"M2.6 6.3 4.9 8.6 9.4 3.6",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round"}),doc:/* @__PURE__ */f(y,{children:[
4
4
  /* @__PURE__ */x("path",{d:"M3.5 1.9h3.4l2 2v6.2H3.5z",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),
@@ -13,10 +13,10 @@ return x("svg",{viewBox:"0 0 12 12","aria-hidden":"true",children:k[e]})}functio
13
13
  return f("svg",{viewBox:"0 0 16 16","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",children:[
14
14
  /* @__PURE__ */x("path",{d:"M4.2 2.2v11.6"}),
15
15
  /* @__PURE__ */x("path",{d:"M4.2 3.1h7.4l-1.6 2.5 1.6 2.6H4.2z"})]})}function v(){/* @__PURE__ */
16
- return x("svg",{viewBox:"0 0 16 16","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",children:/* @__PURE__ */x("path",{d:"M2.8 11.6V8.2M6.6 11.6V5.4M10.4 11.6V7M14.2 11.6V3.6"})})}var b=1e-6;function $(e,t,n={}){const r=Number.isFinite(t)&&t>0?t:0,l=Array.from(new Set(e.filter(e=>Number.isFinite(e)))).sort((e,t)=>e-t);if(r<=0||l.length<2){const e=l[0]??0;return{anchorsMs:l,xs:l.map(()=>0),gaps:[],xByMs:()=>0,msByPx:()=>e,inCut:()=>!1}}const a=l[l.length-1]-l[0],s=n.maxTimeShare??.3,i=Math.min(n.breakPx??48,r),o=n.minGapPx??48,c=[],d=[],u=[];for(let e=0;e+1<l.length;e++){const t=l[e+1]-l[e];c.push(t),d.push(a>0?t/a*r:0),u.push(a>0&&t/a>s)}const m=u.filter(Boolean).length,h=Math.max(0,r-m*i);let p=0,x=0;for(let e=0;e<c.length;e++)u[e]||(p+=c[e],x+=1);const f=c.map((e,t)=>u[t]?i:0===x?0:p>0?h*e/p:h/x),y=function(e,t,n){const r=e.slice();let l=0;for(let e=0;e<r.length;e++)t[e]||r[e]>=n-b||(l+=n-r[e],r[e]=n);if(l<=b)return r;let a=0;for(let e=0;e<r.length;e++)!t[e]&&r[e]>n+b&&(a+=r[e]-n);if(a<=b)return r;const s=Math.min(l,a);for(let e=0;e<r.length;e++)t[e]||r[e]<=n+b||(r[e]-=s*(r[e]-n)/a);return r}(f,u,o),k=y.reduce((e,t,n)=>u[n]?e:e+t,0),g=y.map((e,t)=>u[t]?e:k>0?e*h/k:e),M=[0];for(let e=0;e<g.length;e++)M.push(M[e]+g[e]);M[M.length-1]=r;const v=M.slice(0,-1).map((e,t)=>({fromMs:l[t],toMs:l[t+1],gapMs:c[t],fromPx:e,toPx:M[t+1],wantPx:d[t],clampedPx:f[t],px:M[t+1]-e,compressed:u[t]}));return{anchorsMs:l,xs:M,gaps:v,xByMs:e=>{if(!Number.isFinite(e)||e<=l[0])return 0;if(e>=l[l.length-1])return r;for(let t=0;t+1<l.length;t++){if(e>l[t+1])continue;const n=l[t+1]-l[t],r=n>0?(e-l[t])/n:0;return M[t]+r*(M[t+1]-M[t])}return r},msByPx:e=>{const t=Math.min(Math.max(Number.isFinite(e)?e:0,0),r);for(let e=0;e+1<l.length;e++){if(t>M[e+1]&&e+2<l.length)continue;const n=M[e+1]-M[e],r=n>0?(t-M[e])/n:0;return l[e]+r*(l[e+1]-l[e])}return l[l.length-1]},inCut:e=>v.some(t=>t.compressed&&e>t.fromMs&&e<t.toMs)}}function w(e,t,n){return Math.max(0,Math.min(e-t/2,Math.max(0,n-t)))}var P="mixed";function N(e,t){return 5.6*Math.max(e.length,t.length)+8}var C=(e,t,n)=>Math.min(Math.max(e,t),n),T=e=>-(Math.cos(Math.PI*e)-1)/2;function B(e,t){if(!(t>0))return{px:e.fromPx,ms:e.fromMs};if(t>=1||e.durationMs<=0)return{px:e.toPx,ms:e.toMs};const n=e.fromPx+(e.toPx-e.fromPx)*T(t);return{px:n,ms:e.msByPx(n)}}var L={lanes:{tag:0,laneA:17,laneH:30,rail:52,ruler:64,laneB:86,height:120},active:{tag:0,laneA:17,laneH:30,rail:38,ruler:50,laneB:74,height:108},none:{tag:0,laneA:16,laneH:14,rail:34,ruler:46,laneB:46,height:72}};function D(){try{return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}var K=e=>5.6*e.length,A={default:{},dfm:{glyph:"doc",token:"var(--tl-dfm)"},shipment:{diamond:!0,glyph:"truck",token:"var(--tl-shipment)"},testing:{glyph:"flask",token:"var(--tl-testing)"},completion:{glyph:"check",token:"var(--tl-completion)"},inspection:{glyph:"flask",token:"var(--tl-inspection)"},invoice:{glyph:"receipt",token:"var(--tl-invoice)"},report:{}},F={doc:"dfm",flask:"testing",check:"completion",truck:"shipment",receipt:"invoice"};function j(e,t,n){if("none"!==e.glyph)return e.glyph?e.glyph:A[t].glyph??(n?"flag":void 0)}function R(e,t,n=!1){const r=A[e],l=["rosh-tl-node","rosh-tl-mark",`is-${t}`];r.diamond&&l.push("is-diamond"),n&&l.push("is-provisional");const a="current"===t?"var(--tl-accent)":r.token??"var(--tl-accent)",s="dot"===t||n?{borderColor:a,color:a}:{backgroundColor:a,color:"var(--tl-on-kind)"};return{className:l.join(" "),style:s}}function H(e){const t=(e=>"string"==typeof e?e:"")(e.detail);return`${e.label} · ${e.dateText}${t?` · ${t}`:""}`}var O="undefined"==typeof document?m:p;function U(e,t){const[n,r]=d(0);return O(()=>{const n=t?e.current:null;if(!n)return;const l=()=>{const e=n.getBoundingClientRect().width;e>0&&r(e)};if(l(),"undefined"==typeof ResizeObserver)return;const a=new ResizeObserver(l);return a.observe(n),()=>{a.disconnect()}},[e,t]),n}function I(e,t,n){const r=/* @__PURE__ */new Map;for(const e of t)Number.isFinite(e.x)&&r.set(e.x,Math.max(r.get(e.x)??0,e.widthPx));const l=[...r.keys()].sort((e,t)=>e-t);if(n<=0||l.length<2)return e;const a=Math.max(0,l[0]),s=Math.min(n,l[l.length-1]),i=s-a,o=[];for(let e=0;e+1<l.length;e++){const t=(r.get(l[e])??0)/2+(r.get(l[e+1])??0)/2+8;o.push(Math.max(28,t,l[e+1]-l[e]))}const c=o.reduce((e,t)=>e+t,0),d=Math.min(Math.max(c,i),.8*n);if(d<=i+.5)return e;const u=a,m=n-s,h=u+m,p=Math.max(0,n-d),x=h>0?p*u/h:0,f=x,y=x+d,k=o.map(e=>c>0?e*d/c:0),g=e=>{if(e<=a)return u>0?e*x/u:f;if(e>=s)return m>0?y+(e-s)*(n-y)/m:y;let t=f;for(let n=0;n+1<l.length;n++){if(e>l[n+1]){t+=k[n];continue}const r=l[n+1]-l[n];return t+(r>0?(e-l[n])/r*k[n]:0)}return y};return{anchorsMs:e.anchorsMs,xs:e.xs.map(g),gaps:e.gaps.map(e=>({...e,fromPx:g(e.fromPx),toPx:g(e.toPx),px:g(e.toPx)-g(e.fromPx)})),xByMs:t=>g(e.xByMs(t)),msByPx:t=>e.msByPx((e=>{if(e<=f)return x>0?e*u/x:a;if(e>=y)return n-y>0?s+(e-y)*m/(n-y):s;let t=f;for(let n=0;n+1<l.length;n++){if(!(e>t+k[n]))return l[n]+(k[n]>0?(e-t)/k[n]*(l[n+1]-l[n]):0);t+=k[n]}return s})(t)),inCut:e.inCut}}function S(e){if(!e||0===e.length)return null;const t=e.filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);return t.length>0?t:null}function W({marks:e,innerRef:t}){/* @__PURE__ */
16
+ return x("svg",{viewBox:"0 0 16 16","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",children:/* @__PURE__ */x("path",{d:"M2.8 11.6V8.2M6.6 11.6V5.4M10.4 11.6V7M14.2 11.6V3.6"})})}var b=1e-6;function $(e,t,n={}){const r=Number.isFinite(t)&&t>0?t:0,l=Array.from(new Set(e.filter(e=>Number.isFinite(e)))).sort((e,t)=>e-t);if(r<=0||l.length<2){const e=l[0]??0;return{anchorsMs:l,xs:l.map(()=>0),gaps:[],xByMs:()=>0,msByPx:()=>e,inCut:()=>!1}}const a=l[l.length-1]-l[0],s=n.maxTimeShare??.3,i=Math.min(n.breakPx??48,r),o=n.minGapPx??48,c=[],d=[],u=[];for(let e=0;e+1<l.length;e++){const t=l[e+1]-l[e];c.push(t),d.push(a>0?t/a*r:0),u.push(a>0&&t/a>s)}const m=u.filter(Boolean).length,h=Math.max(0,r-m*i);let p=0,x=0;for(let e=0;e<c.length;e++)u[e]||(p+=c[e],x+=1);const f=c.map((e,t)=>u[t]?i:0===x?0:p>0?h*e/p:h/x),y=function(e,t,n){const r=e.slice();let l=0;for(let e=0;e<r.length;e++)t[e]||r[e]>=n-b||(l+=n-r[e],r[e]=n);if(l<=b)return r;let a=0;for(let e=0;e<r.length;e++)!t[e]&&r[e]>n+b&&(a+=r[e]-n);if(a<=b)return r;const s=Math.min(l,a);for(let e=0;e<r.length;e++)t[e]||r[e]<=n+b||(r[e]-=s*(r[e]-n)/a);return r}(f,u,o),k=y.reduce((e,t,n)=>u[n]?e:e+t,0),g=y.map((e,t)=>u[t]?e:k>0?e*h/k:e),M=[0];for(let e=0;e<g.length;e++)M.push(M[e]+g[e]);M[M.length-1]=r;const v=M.slice(0,-1).map((e,t)=>({fromMs:l[t],toMs:l[t+1],gapMs:c[t],fromPx:e,toPx:M[t+1],wantPx:d[t],clampedPx:f[t],px:M[t+1]-e,compressed:u[t]}));return{anchorsMs:l,xs:M,gaps:v,xByMs:e=>{if(!Number.isFinite(e)||e<=l[0])return 0;if(e>=l[l.length-1])return r;for(let t=0;t+1<l.length;t++){if(e>l[t+1])continue;const n=l[t+1]-l[t],r=n>0?(e-l[t])/n:0;return M[t]+r*(M[t+1]-M[t])}return r},msByPx:e=>{const t=Math.min(Math.max(Number.isFinite(e)?e:0,0),r);for(let e=0;e+1<l.length;e++){if(t>M[e+1]&&e+2<l.length)continue;const n=M[e+1]-M[e],r=n>0?(t-M[e])/n:0;return l[e]+r*(l[e+1]-l[e])}return l[l.length-1]},inCut:e=>v.some(t=>t.compressed&&e>t.fromMs&&e<t.toMs)}}function w(e,t,n){return Math.max(0,Math.min(e-t/2,Math.max(0,n-t)))}var P="mixed";function N(e,t){return 5.6*Math.max(e.length,t.length)+8}var C=(e,t,n)=>Math.min(Math.max(e,t),n),T=e=>-(Math.cos(Math.PI*e)-1)/2;function B(e,t){if(!(t>0))return{px:e.fromPx,ms:e.fromMs};if(t>=1||e.durationMs<=0)return{px:e.toPx,ms:e.toMs};const n=e.fromPx+(e.toPx-e.fromPx)*T(t);return{px:n,ms:e.msByPx(n)}}var L={lanes:{tag:0,laneA:17,laneH:30,rail:52,ruler:64,laneB:86,height:120},active:{tag:0,laneA:17,laneH:30,rail:38,ruler:50,laneB:74,height:108},none:{tag:0,laneA:16,laneH:14,rail:34,ruler:46,laneB:46,height:72}};function D(){try{return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch{return!1}}var K=e=>5.6*e.length,A={default:{},dfm:{glyph:"doc",token:"var(--tl-dfm)"},shipment:{diamond:!0,glyph:"truck",token:"var(--tl-shipment)"},testing:{glyph:"flask",token:"var(--tl-testing)"},completion:{glyph:"check",token:"var(--tl-completion)"},inspection:{glyph:"flask",token:"var(--tl-inspection)"},invoice:{glyph:"receipt",token:"var(--tl-invoice)"},report:{}},F={doc:"dfm",flask:"testing",check:"completion",truck:"shipment",receipt:"invoice"};function j(e,t,n){if("none"!==e.glyph)return e.glyph?e.glyph:A[t].glyph??(n?"flag":void 0)}function R(e,t,n=!1){const r=A[e],l=["rosh-tl-node","rosh-tl-mark",`is-${t}`];r.diamond&&l.push("is-diamond"),n&&l.push("is-provisional");const a="current"===t?"var(--tl-accent)":r.token??"var(--tl-accent)",s="dot"===t||n?{borderColor:a,color:a}:{backgroundColor:a,color:"var(--tl-on-kind)"};return{className:l.join(" "),style:s}}function U(e){const t=(e=>"string"==typeof e?e:"")(e.detail);return`${e.label} · ${e.dateText}${t?` · ${t}`:""}`}var O="undefined"==typeof document?m:p;function H(e,t){const[n,r]=d(0);return O(()=>{const n=t?e.current:null;if(!n)return;const l=()=>{const e=n.getBoundingClientRect().width;e>0&&r(e)};if(l(),"undefined"==typeof ResizeObserver)return;const a=new ResizeObserver(l);return a.observe(n),()=>{a.disconnect()}},[e,t]),n}function I(e,t,n){const r=/* @__PURE__ */new Map;for(const e of t)Number.isFinite(e.x)&&r.set(e.x,Math.max(r.get(e.x)??0,e.widthPx));const l=[...r.keys()].sort((e,t)=>e-t);if(n<=0||l.length<2)return e;const a=Math.max(0,l[0]),s=Math.min(n,l[l.length-1]),i=s-a,o=[];for(let e=0;e+1<l.length;e++){const t=(r.get(l[e])??0)/2+(r.get(l[e+1])??0)/2+8;o.push(Math.max(28,t,l[e+1]-l[e]))}const c=o.reduce((e,t)=>e+t,0),d=Math.min(Math.max(c,i),.8*n);if(d<=i+.5)return e;const u=a,m=n-s,h=u+m,p=Math.max(0,n-d),x=h>0?p*u/h:0,f=x,y=x+d,k=o.map(e=>c>0?e*d/c:0),g=e=>{if(e<=a)return u>0?e*x/u:f;if(e>=s)return m>0?y+(e-s)*(n-y)/m:y;let t=f;for(let n=0;n+1<l.length;n++){if(e>l[n+1]){t+=k[n];continue}const r=l[n+1]-l[n];return t+(r>0?(e-l[n])/r*k[n]:0)}return y};return{anchorsMs:e.anchorsMs,xs:e.xs.map(g),gaps:e.gaps.map(e=>({...e,fromPx:g(e.fromPx),toPx:g(e.toPx),px:g(e.toPx)-g(e.fromPx)})),xByMs:t=>g(e.xByMs(t)),msByPx:t=>e.msByPx((e=>{if(e<=f)return x>0?e*u/x:a;if(e>=y)return n-y>0?s+(e-y)*m/(n-y):s;let t=f;for(let n=0;n+1<l.length;n++){if(!(e>t+k[n]))return l[n]+(k[n]>0?(e-t)/k[n]*(l[n+1]-l[n]):0);t+=k[n]}return s})(t)),inCut:e.inCut}}function S(e){if(!e||0===e.length)return null;const t=e.filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);return t.length>0?t:null}function z({marks:e,innerRef:t}){/* @__PURE__ */
17
17
  return x("div",{ref:t,"aria-hidden":"true",className:"rosh-tl-measure",children:e.map(e=>/* @__PURE__ */f("div",{"data-lane-key":e.key,className:"rosh-tl-measure-box",children:[
18
18
  /* @__PURE__ */x("span",{className:"rosh-tl-name",children:e.label}),
19
- /* @__PURE__ */x("span",{className:"rosh-tl-date",children:e.dateText})]},e.key))})}function z({startMs:t,endMs:r,axis:l,geo:a,reveal:s}){const c=i().timeline,d=n(o()),u=a.ruler,m=[],h=[],p=l.gaps.filter(e=>e.compressed),y=new Date(t);y.setUTCDate(y.getUTCDate()+(8-y.getUTCDay())%7);for(let t=y.getTime();t<r;t+=7*e){if(l.inCut(t))continue;const n=l.xByMs(t);l.xByMs(t+7*e)-n<14||m.push(
19
+ /* @__PURE__ */x("span",{className:"rosh-tl-date",children:e.dateText})]},e.key))})}function E({startMs:t,endMs:r,axis:l,geo:a,reveal:s}){const c=i().timeline,d=n(o()),u=a.ruler,m=[],h=[],p=l.gaps.filter(e=>e.compressed),y=new Date(t);y.setUTCDate(y.getUTCDate()+(8-y.getUTCDay())%7);for(let t=y.getTime();t<r;t+=7*e){if(l.inCut(t))continue;const n=l.xByMs(t);l.xByMs(t+7*e)-n<14||m.push(
20
20
  /* @__PURE__ */x("i",{className:"rosh-tl-tick is-week",style:{left:`${n}px`,top:`${u}px`,height:"3px"}},`wk-${t}`))}const k=p.map(t=>{const n=(t.fromPx+t.toPx)/2,r=K(c.days(Math.round(t.gapMs/e)))/2+6;return[n-r,n+r]}),g=(e,t)=>k.some(([n,r])=>e<r&&t>n);m.push(
21
21
  /* @__PURE__ */x("i",{"data-timeline-part":"start-tick",className:"rosh-tl-tick",style:{left:"0px",top:`${u}px`,height:"6px"}},"start"));const M=new Date(t);M.setUTCDate(1);let v=-1/0,b=!0;for(;M.getTime()<r;){const e=M.getTime();if(!(e<=t)&&!l.inCut(e)){const t=l.xByMs(e);if(m.push(
22
22
  /* @__PURE__ */x("i",{className:"rosh-tl-tick",style:{left:`${t}px`,top:`${u}px`,height:"6px"}},`mo-${e}`)),t-v>=72||b){const n=b||0===M.getUTCMonth()?d.shortMonthYear(M.getUTCFullYear(),M.getUTCMonth()):d.monthsShort[M.getUTCMonth()];g(t,t+K(n))||(h.push(
@@ -26,7 +26,7 @@ return f("span",{"data-timeline-part":"break",className:"rosh-tl-rulercut"+(s?"
26
26
  /* @__PURE__ */f("span",{className:"rosh-tl-cutglyph",children:[
27
27
  /* @__PURE__ */x("i",{}),
28
28
  /* @__PURE__ */x("i",{})]}),
29
- /* @__PURE__ */x("span",{children:c.days(n)})]},`cut-${t.fromMs}`)})]})}function E({pending:e,reveal:t}){const n=i().timeline,[r,l]=d(!1),a=r?e:e.slice(0,2),s=e.length-a.length;/* @__PURE__ */
29
+ /* @__PURE__ */x("span",{children:c.days(n)})]},`cut-${t.fromMs}`)})]})}function W({pending:e,reveal:t}){const n=i().timeline,[r,l]=d(!1),a=r?e:e.slice(0,2),s=e.length-a.length;/* @__PURE__ */
30
30
  return f("div",{className:"rosh-tl-pending","data-timeline-part":"pending",children:[
31
31
  /* @__PURE__ */x("p",{className:"rosh-tl-pending-head",children:n.notReached}),
32
32
  /* @__PURE__ */x("ol",{className:"rosh-tl-ghosts","aria-label":n.notReached,children:a.map((e,r)=>/* @__PURE__ */f("li",{className:t?"rosh-tl-fade":void 0,style:t?{animationDelay:440+60*r+"ms"}:void 0,children:[
@@ -41,7 +41,7 @@ return f("li",{className:s?"rosh-tl-fade":void 0,style:s?r(t,c):void 0,...e.key=
41
41
  /* @__PURE__ */x("span",{className:"rosh-tl-name",children:e.label}),
42
42
  /* @__PURE__ */x("span",{className:"rosh-tl-date",children:e.dateText})]})]},e.key)})}),p>0&&/* @__PURE__ */f("p",{className:"rosh-tl-vgap","aria-hidden":"true",children:[
43
43
  /* @__PURE__ */x("i",{className:"rosh-tl-vline is-dash"}),
44
- /* @__PURE__ */x("span",{children:m.daysToToday(p)})]}),n.length>0&&/* @__PURE__ */x(E,{pending:n,reveal:s})]})}function V({axis:e,geo:t,fillTo:n,reveal:r,trackPx:l,tweened:a=!1}){/* @__PURE__ */
44
+ /* @__PURE__ */x("span",{children:m.daysToToday(p)})]}),n.length>0&&/* @__PURE__ */x(W,{pending:n,reveal:s})]})}function V({axis:e,geo:t,fillTo:n,reveal:r,trackPx:l,tweened:a=!1}){/* @__PURE__ */
45
45
  return f("div",{"aria-hidden":"true",children:[
46
46
  /* @__PURE__ */x("div",{className:"rosh-tl-rail bg-gray-200",style:{top:`${t.rail}px`,height:"6px",width:`${l}px`}}),null!==n&&/* @__PURE__ */x("div",{"data-timeline-part":"fill",className:`rosh-tl-fill bg-blue-600${a?" is-tweened":""}${r?" rosh-tl-draw":""}`,style:{top:`${t.rail}px`,height:"6px",width:`${Math.max(0,Math.min(e.xByMs(n),l))}px`}}),e.gaps.filter(e=>e.compressed).map(e=>/* @__PURE__ */f("div",{className:"rosh-tl-cut",style:{left:(e.fromPx+e.toPx)/2+"px",top:`${t.rail}px`,height:"6px"},children:[
47
47
  /* @__PURE__ */x("i",{}),
@@ -50,12 +50,12 @@ return f("div",{"aria-hidden":"true","data-timeline-part":"start",children:[
50
50
  /* @__PURE__ */x("i",{className:`rosh-tl-start${r?" is-around":""}${i}`,style:{left:"0px",top:`${e.rail+3}px`,...o}}),null!=t&&!1!==t&&/* @__PURE__ */x("span",{className:`rosh-tl-edge${i}`,"data-timeline-part":"start-caption",style:{left:"0px",top:`${s}px`,...o},children:t}),null!=n&&!1!==n&&/* @__PURE__ */x("span",{className:`rosh-tl-edge is-end${i}`,"data-timeline-part":"end-caption",style:{left:`${a}px`,top:`${s}px`,...o},children:n})]})}function Y({x:e,geo:t,trackPx:n,label:r,reveal:l}){const a=i().timeline;/* @__PURE__ */
51
51
  return f("div",{"aria-hidden":"true","data-timeline-part":"today",children:[
52
52
  /* @__PURE__ */x("div",{className:"rosh-tl-todayline"+(l?" rosh-tl-fade":""),style:{left:`${e}px`,top:`${t.laneA}px`,height:t.ruler+20-t.laneA+"px",...l?{animationDelay:"420ms"}:{}}}),
53
- /* @__PURE__ */x("span",{className:"rosh-tl-todaytag"+(l?" rosh-tl-fade":""),title:a.todayTitle(r),style:{left:`${w(e,48,n)}px`,top:`${t.tag}px`,...l?{animationDelay:"420ms"}:{}},children:a.today})]})}function _({nodes:e,geo:t,reveal:n}){const r=e.map(e=>{const t=e.members.map(e=>e.caption).filter(e=>!!e);return 0===t.length?null:{x:e.x,first:t[0],last:t[t.length-1]}}).filter(e=>null!==e).sort((e,t)=>e.x-t.x),l=[];let a=null;const s=()=>{a&&(l.push({x:(a.from+a.to)/2,text:a.first===a.last?a.first:`${a.first}–${a.last}`}),a=null)};for(const e of r){const t=e.first===e.last?e.first:`${e.first}–${e.last}`,n=K(t)/2;a&&e.x-n<a.right+6?(a.to=e.x,a.last=e.last,a.right=e.x+n):(s(),a={from:e.x,to:e.x,first:e.first,last:e.last,right:e.x+n})}return s(),/* @__PURE__ */x("div",{"aria-hidden":"true","data-timeline-part":"captions",children:l.map(e=>/* @__PURE__ */x("span",{className:"rosh-tl-caption"+(n?" rosh-tl-fade":""),style:{left:`${e.x}px`,top:`${t.laneA}px`,...n?{animationDelay:"360ms"}:{}},children:e.text},`${e.x}-${e.text}`))})}function J({phase:e,geo:t,xOf:n}){const r=n(e.minMs),l=Math.max(n(e.maxMs)-r,4);/* @__PURE__ */
53
+ /* @__PURE__ */x("span",{className:"rosh-tl-todaytag"+(l?" rosh-tl-fade":""),title:a.todayTitle(r),style:{left:`${w(e,48,n)}px`,top:`${t.tag}px`,...l?{animationDelay:"420ms"}:{}},children:a.today})]})}function _({nodes:e,geo:t,reveal:n}){const r=e.map(e=>{const t=e.members.map(e=>e.caption).filter(e=>!!e);return 0===t.length?null:{x:e.x,first:t[0],last:t[t.length-1]}}).filter(e=>null!==e).sort((e,t)=>e.x-t.x),l=[];let a=null;const s=()=>{a&&(l.push({x:(a.from+a.to)/2,text:a.first===a.last?a.first:`${a.first}–${a.last}`}),a=null)};for(const e of r){const t=e.first===e.last?e.first:`${e.first}–${e.last}`,n=K(t)/2;a&&e.x-n<a.right+6?(a.to=e.x,a.last=e.last,a.right=e.x+n):(s(),a={from:e.x,to:e.x,first:e.first,last:e.last,right:e.x+n})}return s(),/* @__PURE__ */x("div",{"aria-hidden":"true","data-timeline-part":"captions",children:l.map(e=>/* @__PURE__ */x("span",{className:"rosh-tl-caption"+(n?" rosh-tl-fade":""),style:{left:`${e.x}px`,top:`${t.laneA}px`,...n?{animationDelay:"360ms"}:{}},children:e.text},`${e.x}-${e.text}`))})}function q({phase:e,geo:t,xOf:n}){const r=n(e.minMs),l=Math.max(n(e.maxMs)-r,4);/* @__PURE__ */
54
54
  return f("div",{"aria-hidden":"true","data-timeline-part":"phase",children:[
55
55
  /* @__PURE__ */x("div",{className:"rosh-tl-phase border-gray-300",style:{left:`${r}px`,width:`${l}px`,top:t.laneB+t.laneH-4+"px"}}),
56
- /* @__PURE__ */f("span",{className:"rosh-tl-phase-label text-gray-500",style:{left:`${r+l/2}px`,top:`${t.laneB+t.laneH+5}px`},children:[e.label," · parallel"]})]})}function Q({nodes:e,trackPx:t,geo:n,activeKey:r,hoveredKey:l,currentKey:a}){const s=i().timeline,o=(e,t)=>null!==t&&(e.key===t||e.members.some(e=>e.key===t)),c=e.find(e=>e.key===l)??e.find(e=>o(e,r))??null;if(!c)return null;const d=c.mark,u=d?d.label:`×${c.members.length}`,m=d?d.dateText:function(e){const t=e[0].dateText,n=e[e.length-1].dateText;return t===n?t:`${t} – ${n}`}(c.members),h=d?d.widthPx:N(u,m),p=d?.onOpen;/* @__PURE__ */
56
+ /* @__PURE__ */f("span",{className:"rosh-tl-phase-label text-gray-500",style:{left:`${r+l/2}px`,top:`${t.laneB+t.laneH+5}px`},children:[e.label," · parallel"]})]})}function J({nodes:e,trackPx:t,geo:n,activeKey:r,hoveredKey:l,currentKey:a}){const s=i().timeline,o=(e,t)=>null!==t&&(e.key===t||e.members.some(e=>e.key===t)),c=e.find(e=>e.key===l)??e.find(e=>o(e,r))??null;if(!c)return null;const d=c.mark,u=d?d.label:`×${c.members.length}`,m=d?d.dateText:function(e){const t=e[0].dateText,n=e[e.length-1].dateText;return t===n?t:`${t} – ${n}`}(c.members),h=d?d.widthPx:N(u,m),p=d?.onOpen;/* @__PURE__ */
57
57
  return f("div",{"data-timeline-part":"label",className:`rosh-tl-label${c.key===l?" is-hot":""}${o(c,a)?" is-current":""}`,style:{left:`${w(c.x,h,t)}px`,top:`${n.laneB}px`,width:`${h}px`,height:`${n.laneH}px`},children:[p?/* @__PURE__ */x("button",{type:"button",className:"rosh-tl-name rosh-tl-open","data-timeline-part":"open","aria-label":s.open(u),onClick:p,children:u}):/* @__PURE__ */x("span",{className:"rosh-tl-name","aria-hidden":"true",children:u}),
58
- /* @__PURE__ */x("span",{className:"rosh-tl-date","aria-hidden":"true",children:m})]})}function q({groups:t,trackPx:n,geo:r,startMs:l,endMs:a,currentKey:s,hoveredKey:i,reveal:o,step:c,zoomedKey:d,popId:u,aimBubble:m,openCluster:h,setOpenCluster:p,previewCluster:k,setPreviewCluster:g,setZoomKey:M,startCaptionPx:v}){const b=[];t.forEach((e,t)=>{if("cluster"===e.type){const r=`cluster-${e.members[0].key}`,l=(n=e.members,`${(n[0]?.label??"").replace(/\s*v?\d+$/i,"").trim()||(n[0]?.label??"")} ×${n.length}`);if(b.push({key:r,group:e,text:l,x:e.members.reduce((e,t)=>e+t.baseX,0)/e.members.length,index:t,lane:-1,left:0,widthPx:Math.ceil(K(l))+28}),r===d)for(const n of e.members)b.push({key:n.key,group:{type:"item",mark:n},text:n.label,x:n.x,index:t,lane:-1,left:0,widthPx:n.widthPx});return}var n;b.push({key:e.mark.key,group:e,text:e.mark.label,x:e.mark.x,index:t,lane:-1,left:0,widthPx:e.mark.widthPx})}),b.sort((e,t)=>e.x-t.x);const $=function(e,t,n,r,l={}){const a=t>0?t:0,s=r>0?r:1,i=l.gapPx??6,o=Math.max(1,l.laneCount??4),c=e.map((e,t)=>({item:e,index:t})).sort((e,t)=>(e.item.priority??0)-(t.item.priority??0)||e.item.ms-t.item.ms||e.index-t.index),d=Array.from({length:o},()=>[]),u=/* @__PURE__ */new Map;for(const{item:e}of c){const t=Math.max(0,e.widthPx);if(a<=0||t>a){u.set(e.key,-1);continue}const r=e.xPx??(e.ms-n)/s*a,l=Math.min(Math.max(r-t/2,0),a-t),c=l+t;let m=-1;for(let e=0;e<o;e++)if(d[e].every(e=>l>e.right+i||c+i<e.left)){d[e].push({left:l,right:c}),m=e;break}u.set(e.key,m)}return e.map(e=>({key:e.key,lane:u.get(e.key)??-1}))}([...v>0?[{key:"__rosh-tl-start__",ms:l,xPx:0,widthPx:v,priority:-2}]:[],...b.map(e=>({key:e.key,ms:"cluster"===e.group.type?e.group.members[0].ms:e.group.mark.ms,xPx:e.x,widthPx:e.widthPx,priority:"cluster"===e.group.type?-1:0}))],n,l,Math.max(a-l,e),{laneCount:2}),P=new Map($.map(e=>[e.key,e.lane]));for(const e of b)e.lane=P.get(e.key)??-1,e.left=w(e.x,e.widthPx,n);const N=b.find(e=>e.key===(h??k)),C=e=>0===e?r.laneA:r.laneB,T=e=>0===e?r.rail-4:r.rail+6+3;/* @__PURE__ */
58
+ /* @__PURE__ */x("span",{className:"rosh-tl-date","aria-hidden":"true",children:m})]})}function Q({groups:t,trackPx:n,geo:r,startMs:l,endMs:a,currentKey:s,hoveredKey:i,reveal:o,step:c,zoomedKey:d,popId:u,aimBubble:m,openCluster:h,setOpenCluster:p,previewCluster:k,setPreviewCluster:g,setZoomKey:M,startCaptionPx:v}){const b=[];t.forEach((e,t)=>{if("cluster"===e.type){const r=`cluster-${e.members[0].key}`,l=(n=e.members,`${(n[0]?.label??"").replace(/\s*v?\d+$/i,"").trim()||(n[0]?.label??"")} ×${n.length}`);if(b.push({key:r,group:e,text:l,x:e.members.reduce((e,t)=>e+t.baseX,0)/e.members.length,index:t,lane:-1,left:0,widthPx:Math.ceil(K(l))+28}),r===d)for(const n of e.members)b.push({key:n.key,group:{type:"item",mark:n},text:n.label,x:n.x,index:t,lane:-1,left:0,widthPx:n.widthPx});return}var n;b.push({key:e.mark.key,group:e,text:e.mark.label,x:e.mark.x,index:t,lane:-1,left:0,widthPx:e.mark.widthPx})}),b.sort((e,t)=>e.x-t.x);const $=function(e,t,n,r,l={}){const a=t>0?t:0,s=r>0?r:1,i=l.gapPx??6,o=Math.max(1,l.laneCount??4),c=e.map((e,t)=>({item:e,index:t})).sort((e,t)=>(e.item.priority??0)-(t.item.priority??0)||e.item.ms-t.item.ms||e.index-t.index),d=Array.from({length:o},()=>[]),u=/* @__PURE__ */new Map;for(const{item:e}of c){const t=Math.max(0,e.widthPx);if(a<=0||t>a){u.set(e.key,-1);continue}const r=e.xPx??(e.ms-n)/s*a,l=Math.min(Math.max(r-t/2,0),a-t),c=l+t;let m=-1;for(let e=0;e<o;e++)if(d[e].every(e=>l>e.right+i||c+i<e.left)){d[e].push({left:l,right:c}),m=e;break}u.set(e.key,m)}return e.map(e=>({key:e.key,lane:u.get(e.key)??-1}))}([...v>0?[{key:"__rosh-tl-start__",ms:l,xPx:0,widthPx:v,priority:-2}]:[],...b.map(e=>({key:e.key,ms:"cluster"===e.group.type?e.group.members[0].ms:e.group.mark.ms,xPx:e.x,widthPx:e.widthPx,priority:"cluster"===e.group.type?-1:0}))],n,l,Math.max(a-l,e),{laneCount:2}),P=new Map($.map(e=>[e.key,e.lane]));for(const e of b)e.lane=P.get(e.key)??-1,e.left=w(e.x,e.widthPx,n);const N=b.find(e=>e.key===(h??k)),C=e=>0===e?r.laneA:r.laneB,T=e=>0===e?r.rail-4:r.rail+6+3;/* @__PURE__ */
59
59
  return f(y,{children:[b.map(e=>{const t=Math.max(0,e.lane),n=Math.round(e.index*c+60);if("cluster"===e.group.type){const l=h===e.key,a=e.group.members.map(e=>e.x),s=()=>{g(null),l||M(null)};/* @__PURE__ */
60
60
  return f("div",{children:[
61
61
  /* @__PURE__ */f("button",{type:"button","data-timeline-part":"cluster",className:`rosh-tl-pill${A[e.group.kind]?.token?"":" text-blue-600"}${o?" rosh-tl-fade":""}`,"aria-expanded":l,"aria-controls":u,style:{left:`${e.left}px`,top:`${0===t?r.laneA+r.laneH-19:r.laneB}px`,color:A[e.group.kind]?.token,...o?{animationDelay:`${n}ms`}:{}},onMouseEnter:()=>{g(e.key),M(e.key)},onMouseLeave:s,onFocus:()=>{g(e.key),M(e.key)},onBlur:s,onClick:()=>{p(l?null:e.key),M(l?null:e.key)},children:[
@@ -74,20 +74,20 @@ return f("div",{children:[
74
74
  return f(y,{children:[
75
75
  /* @__PURE__ */x("div",{className:"rosh-tl-hit","aria-hidden":"true","data-timeline-part":"hit",style:{top:s.rail-9+"px",height:"24px"},onPointerDown:e=>{K(e),D(L(e.clientX))},onPointerMove:F,onPointerUp:A,onPointerCancel:A}),
76
76
  /* @__PURE__ */x("div",{className:"rosh-tl-chip","data-timeline-part":"chip",style:{left:`${w(P,88,m)+44}px`,top:`${s.tag}px`},children:n.chip?n.chip(N):t(N,b)}),
77
- /* @__PURE__ */x("div",{role:"slider",tabIndex:0,className:"rosh-tl-thumb text-blue-600","data-timeline-part":"thumb","aria-label":n.ariaLabel??v.scrub,"aria-valuemin":0,"aria-valuemax":T&&T.length>0?T.length-1:R,"aria-valuenow":T&&T.length>0?Math.max(0,B):Math.round((r-d)/e),"aria-valuetext":j,style:{left:`${P}px`,top:`${s.rail+3}px`},onPointerDown:K,onPointerMove:F,onPointerUp:A,onPointerCancel:A,onKeyDown:t=>{const n=(t=>{const{key:n}=t;if(T&&T.length>0){const e=B<0?0:B;return"ArrowRight"===n||"ArrowUp"===n?T[Math.min(e+1,T.length-1)]:"ArrowLeft"===n||"ArrowDown"===n?T[Math.max(e-1,0)]:"Home"===n?T[0]:"End"===n?T[T.length-1]:null}const l=(t.shiftKey?7:1)*e;return"ArrowRight"===n||"ArrowUp"===n?r+l:"ArrowLeft"===n||"ArrowDown"===n?r-l:"Home"===n?d:"End"===n?u:null})(t);null!==n&&(t.preventDefault(),k?.(),D(n))}})]})}function ee(e,t,n){return(t?e.height:e.ruler+26)+(n?22:0)}function te({startMs:n,endMs:p,axis:k="linear",items:M,markers:v=[],pending:b=[],fillToMs:w,todayMs:te,labels:ne="lanes",activeKey:re=null,onActivate:le,thumb:ae,playback:se,edgeCaptions:ie,phases:oe=[],currentKey:ce,zoomRange:de=null,motion:ue=!0,ariaLabel:me,highlightKeys:he=null,onHoverChange:pe,endMark:xe=null}){const fe="none"===ne,ye=a(Date.now,null),ke=a(D,!1),ge=te??ye,Me=c(null),ve=i().timeline,be=o(),$e=e=>t(e,be),we=c(null),Pe=c(null),Ne=c(null),Ce=c(/* @__PURE__ */new Map),Te=c(void 0),Be=c(void 0),Le=c(null),[De,Ke]=d({}),[Ae,Fe]=d(null),[je,Re]=d(null),[He,Oe]=d(null),[Ue,Ie]=d(null),[Se,We]=d(null),[ze,Ee]=d(null),Xe=u(),Ve=u(),Ge=U(Me,!0),Ye=Ge>0?Ge-(b.length>0&&!fe?176:0):0,_e=Ye>0&&Ye-20<320,Je=U(we,!_e),Qe=Je>0?Je:600,qe=L[ne],Ze=fe&&b.length>0,et=Ze?Math.max(0,Qe-36):Qe,tt=t=>t>=n-e&&t<=p+e,nt=M.filter(e=>Number.isFinite(e.ms)&&tt(e.ms)).slice().sort((e,t)=>e.ms-t.ms),rt="spread"===k?v.map(e=>new Date(e.date).getTime()).filter(e=>Number.isFinite(e)):[],lt=$([n,...[...nt.map(e=>e.ms),...rt].filter(e=>e>n&&e<p),p],et,"compressed"===(at=k)?{}:"spread"===at?{maxTimeShare:1/0}:{maxTimeShare:1/0,minGapPx:0});var at;const st=lt.xByMs,it=nt.filter(e=>!e.provisional),ot=ce??(it.length>0?it[it.length-1].key:null),ct=nt.map((e,t)=>{const n=e.date??$e(e.ms),r=(e.priority??0)>0||"report"===e.kind,l=function(e){const t=e.kind??"default";return"default"===t&&e.glyph&&"none"!==e.glyph?F[e.glyph]??t:t}(e);return{key:e.key,ms:e.ms,x:st(e.ms),baseX:st(e.ms),kind:l,label:e.label,dateText:n,detail:e.detail,preview:e.preview,glyph:j(e,l,0===t&&"default"===l),role:e.key===ot?"current":r?"dot":"key",widthPx:fe?Math.max(16,K(e.caption??"")+6):De[e.key]||N(e.label,n),collapsible:r,onClick:e.onClick,onOpen:e.onOpen,isItem:!0,caption:e.caption,provisional:!!e.provisional,isCap:!1}}),dt=v.map(e=>({marker:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)&&tt(e)).map(({marker:e,ms:t})=>{const n=`marker-${e.id}`,r=$e(t);return{key:n,ms:t,x:st(t),baseX:st(t),kind:e.kind,label:e.label,dateText:r,detail:e.detail,preview:e.preview,glyph:e.glyph??A[e.kind].glyph,role:"key",widthPx:De[n]||N(e.label,r),collapsible:!1,onClick:e.onClick?()=>e.onClick?.(e):void 0,onOpen:e.onOpen?()=>e.onOpen?.(e):void 0,isItem:!1,provisional:!1,isCap:!1}}),ut=Ze?(()=>{const t=b[b.length-1],n=b.slice(0,-1).map(e=>e.label);return[{key:t.key,ms:p+e,x:Qe,baseX:Qe,kind:t.kind??"default",label:t.label,dateText:ve.notReached,detail:n.length>0?ve.alsoToCome(n):void 0,glyph:void 0,role:"key",widthPx:16,collapsible:!1,isItem:!1,provisional:!1,isCap:!0}]})():[],mt=fe&&xe&&!Ze?[{key:xe.key,ms:p,x:et,baseX:et,kind:"default",label:xe.label,dateText:xe.dateText??$e(p),detail:xe.detail,glyph:void 0,role:"key",widthPx:16,collapsible:!1,isItem:!1,provisional:!1,isCap:!0}]:[],ht=[...ct,...dt,...ut,...mt].sort((e,t)=>e.x-t.x||e.ms-t.ms),pt=ie?.start??ve.start($e(n)),xt=null==pt||!1===pt?0:"string"==typeof pt?Math.ceil(K(pt)):96,ft="lanes"===ne?function(e,t={}){const n=t.minPitchPx??40,r=[];let l=0;for(;l<e.length;){const t=e[l];if(!t.collapsible){r.push({type:"item",mark:t}),l+=1;continue}let a=l+1;for(;a<e.length&&e[a].collapsible&&e[a].kind===t.kind;)a+=1;const s=e.slice(l,a),i=s.length>1&&s.every((e,t)=>{if(0===t)return!0;const r=s[t-1],l=Math.max(n,Math.max(e.widthPx,r.widthPx)+8);return e.x-r.x<l});if(s.length>=3||i)r.push({type:"cluster",kind:t.kind,members:s});else for(const e of s)r.push({type:"item",mark:e});l=a}return r}(ht):[],yt=function(e,t=16){const n=[];let r=0;for(;r<e.length;){let l=r+1;for(;l<e.length&&e[l].x-e[l-1].x<t;)l+=1;if(l-r===1)n.push({type:"item",mark:e[r]});else{const t=e.slice(r,l),a=new Set(t.map(e=>e.kind));n.push({type:"cluster",kind:1===a.size?t[0].kind:P,members:t})}r=l}return n}(ht),kt=e=>"cluster"===e.type?`fold-${e.members[0].key}`:e.mark.key,gt=/* @__PURE__ */new Map;for(const e of yt)if("cluster"===e.type)for(const t of e.members)gt.set(t.key,kt(e));const Mt=He??Ue??Se,vt=ft.find(e=>"cluster"===e.type&&(e=>"cluster"===e.type?`cluster-${e.members[0].key}`:e.mark.key)(e)===Mt)??yt.find(e=>"cluster"===e.type&&kt(e)===Mt),bt=e=>({x:e.baseX,widthPx:e.widthPx}),$t=vt&&"cluster"===vt.type?vt.members.map(bt):de?ht.filter(e=>e.ms>=de[0]&&e.ms<=de[1]).map(bt):[],wt=$t.length>1?I(lt,$t,et):lt,Pt=wt!==lt;if(Pt)for(const e of ht)e.isCap||(e.x=wt.xByMs(e.ms));const Nt=ht.some(e=>e.x<14),Ct=Pt&&vt?Mt:null,Tt=e=>({key:e.key,mark:e,members:[e],x:e.x,kind:e.kind,openable:!1}),Bt=_e?ht.map(Tt):yt.flatMap(e=>{if("item"===e.type)return[Tt(e.mark)];const t=kt(e);if(t===Ct&&(n=e.members).every((e,t)=>0===t||e.x-n[t-1].x>=16))return e.members.map(Tt);var n;const r=e.members.map(e=>e.x);return[{key:t,mark:null,members:e.members,x:r.reduce((e,t)=>e+t,0)/r.length,kind:e.kind,openable:new Set(e.members.map(e=>e.ms)).size>1}]}),Lt=/* @__PURE__ */new Map;for(const e of Bt)for(const t of e.members)Lt.set(t.key,e.key);const Dt=yt.find(e=>"cluster"===e.type&&kt(e)===Ct),Kt=Dt&&"cluster"===Dt.type?{from:Math.min(...Dt.members.map(e=>e.x))-16,to:Math.max(...Dt.members.map(e=>e.x))+16}:null,At=c(Ct),[Ft,jt]=d(!1);m(()=>{if(At.current===Ct)return;At.current=Ct,jt(!0);const e=setTimeout(()=>jt(!1),240);return()=>clearTimeout(e)},[Ct]);const Rt=ht.map(e=>`${e.key} ${e.label} ${e.dateText}`).join("|");O(()=>{const e=Pe.current;if(!e)return;const t={};for(const n of Array.from(e.children)){const e=n.dataset.laneKey,r=n.getBoundingClientRect().width;e&&r>0&&(t[e]=r)}Ke(e=>function(e,t){const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Math.abs((e[n]??0)-(t[n]??0))<.5)}(e,t)?e:t)},[Rt]);const Ht=`${ne}|${k}|${ht.map(e=>`${e.key}@${e.ms}`).join("|")}`,[Ot,Ut]=d(Ht),It=ue&&Ot===Ht;m(()=>{Ot!==Ht&&Ut(Ht)},[Ot,Ht]);const St=Math.min(28,340/Math.max(1,ht.length-1)),Wt=S(ae?.stops),zt=e=>{const t=Math.min(Math.max(e,n),p);if(!Wt)return t;let r=Wt[0];for(const e of Wt)Math.abs(e-t)<Math.abs(r-t)&&(r=e);return r},Et=ae?zt(ae.valueMs):null,Xt=se&&ae?ct.filter(e=>!Wt||Wt.includes(e.ms)).map(e=>({key:e.key,ms:e.ms})):[],Vt=function(e,t,n={}){const r=Number.isFinite(n.speed)&&(n.speed??0)>0?n.speed:1,l=Math.max(0,n.dwellMs??700)/r,a=t.filter(e=>Number.isFinite(e.ms)).slice().sort((e,t)=>e.ms-t.ms),s=[];for(let t=0;t+1<a.length;t++){const i=a[t],o=a[t+1],c=e.xByMs(i.ms),d=e.xByMs(o.ms),u=Math.max(0,d-c),m=u<=.5||n.reducedMotion?0:C(350*u/100,450,1400)/r;s.push({fromKey:i.key,toKey:o.key,fromMs:i.ms,toMs:o.ms,fromPx:c,toPx:d,lengthPx:u,durationMs:m,dwellMs:l,msByPx:e.msByPx})}return s}(wt,Xt,{speed:se?.speed,reducedMotion:ke}),[Gt,Yt]=d(null),_t=c(null),Jt=c({segments:Vt,value:Et,playback:se});m(()=>{Jt.current={segments:Vt,value:Et,playback:se}});const Qt=c(null),qt=h(e=>{null===e&&null===Qt.current||(Qt.current=e,Jt.current.playback?.onProgress?.(e))},[]),Zt=h(()=>{_t.current=null,Yt(null),qt(null),Jt.current.playback?.onStop?.()},[qt]),en=!!se?.playing&&!!ae;m(()=>{if(!en)return;const e=Jt.current,t=null===e.value?-1:e.segments.findIndex(t=>t.fromMs===e.value);if(t<0)return void Zt();_t.current&&_t.current.index===t||(_t.current={index:t,phase:"rest",t:0,restLeftMs:e.segments[t].dwellMs,sinceMs:null});let n,r=0;const l=e=>Yt(t=>t&&t.px===e.px&&t.ms===e.ms?t:e),a=()=>{clearTimeout(n);const e=_t.current;"rest"===e?.phase&&(n=setTimeout(s,Math.max(0,e.restLeftMs)))},s=()=>{const e=_t.current;if("rest"!==e?.phase)return;const t=Jt.current.segments[e.index];t?(_t.current={index:e.index,phase:"glide",t:0,restLeftMs:0,sinceMs:null},l(B(t,0))):Zt()},i=e=>{const t=Jt.current,n=_t.current;if(!n)return;const s=function(e,t,n){const r=e[t.index];if(!r)return{cursor:null,at:null,arrived:null,progress:null};const l=null===t.sinceMs?0:Math.max(0,n-t.sinceMs);if("rest"===t.phase){const e=t.restLeftMs-l;return e>0?{cursor:{...t,restLeftMs:e,sinceMs:n},at:B(r,0),arrived:null,progress:null}:{cursor:{index:t.index,phase:"glide",t:0,restLeftMs:0,sinceMs:n},at:B(r,0),arrived:null,progress:null}}const a=r.durationMs>0?Math.min(1,t.t+l/r.durationMs):1,s=B(r,a);if(a<1)return{cursor:{...t,t:a,sinceMs:n},at:s,arrived:null,progress:{fromKey:r.fromKey,toKey:r.toKey,t:T(a),ms:s.ms}};const i=e[t.index+1];return{cursor:i?{index:t.index+1,phase:"rest",t:0,restLeftMs:i.dwellMs,sinceMs:n}:null,at:s,arrived:{key:r.toKey,ms:r.toMs},progress:null}}(t.segments,n,e);_t.current=s.cursor,s.at&&l(s.at),qt(s.progress),s.arrived&&t.playback?.onArrive(s.arrived.key,s.arrived.ms),s.cursor?(s.cursor.phase===n.phase&&s.cursor.index===n.index||a(),r=requestAnimationFrame(i)):Zt()};return a(),r=requestAnimationFrame(i),()=>{cancelAnimationFrame(r),clearTimeout(n),_t.current&&(_t.current.sinceMs=null,qt(null))}},[en,Zt,qt]);const tn=ct.filter(e=>!e.provisional),nn=ae?Gt?Gt.ms:Et:void 0!==w?w:tn.length>0?null===ge?tn[tn.length-1].ms:Math.min(tn[tn.length-1].ms,ge):null,rn=new Set(he??[]),ln=ht.filter(e=>rn.has(e.key)).map(e=>e.x),an=ln.length>0?{from:Math.min(...ln),to:Math.max(...ln)}:null,sn=h(()=>{clearTimeout(Te.current),clearTimeout(Be.current),Fe(null),Re(null),Oe(null),Ie(null),We(null)},[]);m(()=>()=>{clearTimeout(Te.current),clearTimeout(Be.current)},[]),m(()=>{const e=Le.current;e&&(Le.current=null,Ce.current.get(e)?.focus())});const on=null!==je||null!==He||null!==Ue||null!==Se;m(()=>{if(on)return s(e=>"Escape"===e.key&&(sn(),!0))},[on,sn]);const cn=h((e,t)=>{if(!e)return;const n=e.offsetWidth/2;let r=n>0?Math.max(n,Math.min(t,Qe-n)):t;const a=e.parentElement;if(n>0&&a){const t=l(e),s=a.getBoundingClientRect().left,i=t.left+8+n-s,o=t.right-8-n-s;i<=o&&(r=Math.max(i,Math.min(r,o)))}e.style.left=`${r}px`,e.style.setProperty("--rosh-tl-arrow",`${n+(t-r)}px`)},[Qe]),dn=Bt.find(e=>e.key===je)??null,un=dn?dn.x:0;O(()=>{cn(Ne.current,un)},[cn,je,un]);const mn=Et??void 0,hn=c(null);m(()=>{if(void 0===mn)return;const e=wt.xByMs(mn),t=hn.current;if(hn.current=e,null===t||e<=t)return;const n=[];for(const r of ht){if(r.x<=t||r.x>e)continue;const l=Ce.current.get(Lt.get(r.key)??r.key);l&&(l.classList.add("is-hit"),n.push(setTimeout(()=>l.classList.remove("is-hit"),460)))}return()=>{for(const e of n)clearTimeout(e)}},[mn]);const pn=Bt.map(e=>e.key),xn=ot?Lt.get(ot)??null:null,fn=ze&&pn.includes(ze)?ze:xn&&pn.includes(xn)?xn:pn[0],yn=e=>{const t=pn.indexOf(e.target.dataset?.timelineKey??"");if(t<0)return;const n="ArrowRight"===e.key||"ArrowDown"===e.key?t+1:"ArrowLeft"===e.key||"ArrowUp"===e.key?t-1:"Home"===e.key?0:"End"===e.key?pn.length-1:-1;n<0||n>pn.length-1||(e.preventDefault(),Ee(pn[n]),Ce.current.get(pn[n])?.focus())},kn=()=>clearTimeout(Be.current),gn=e=>{kn(),We(e)},Mn=()=>{clearTimeout(Be.current),Be.current=setTimeout(()=>We(null),260)},vn=e=>{Ct&&gt.get(e)===Ct?kn():(kn(),We(null))},bn=e=>{clearTimeout(Te.current),Fe(e),Re(e),pe?.((e=>{const t=Bt.find(t=>t.key===e);return t?.members[0]?.key??e})(e))},$n=e=>{Fe(t=>t===e?null:t),clearTimeout(Te.current),Te.current=setTimeout(()=>Re(t=>t===e?null:t),160),pe?.(null)},wn=e=>({type:"button","data-timeline-node":e.isCap?"cap":e.isItem?"item":"marker","data-timeline-key":e.key,"aria-label":H(e),"aria-describedby":je===e.key?Xe:void 0,tabIndex:e.key===fn?0:-1,ref:t=>{t?Ce.current.set(e.key,t):Ce.current.delete(e.key)},onMouseEnter:()=>{vn(e.key),bn(e.key)},onMouseLeave:()=>{Mn(),$n(e.key)},onFocus:()=>{vn(e.key),bn(e.key),Ee(e.key)},onBlur:()=>{Mn(),$n(e.key)},onPointerDown:e=>e.stopPropagation(),onClick:t=>{t.stopPropagation(),e.onClick?.(),e.isItem&&le?.(e.key)}}),Pn=e=>{return{type:"button","data-timeline-node":"fold","data-timeline-key":e.key,"data-timeline-count":String(e.members.length),"aria-label":(t=e.members,n=ve,n.events(t.length,t.map(H))),"aria-describedby":je===e.key?Xe:void 0,tabIndex:e.key===fn?0:-1,ref:t=>{t?Ce.current.set(e.key,t):Ce.current.delete(e.key)},onMouseEnter:()=>{e.openable?gn(e.key):bn(e.key)},onMouseLeave:()=>{Mn(),$n(e.key)},onFocus:()=>{kn(),bn(e.key),Ee(e.key)},onBlur:()=>{Mn(),$n(e.key)},onPointerDown:e=>e.stopPropagation(),onClick:t=>{if(t.stopPropagation(),!e.openable)return void bn(e.key);gn(e.key);const n=e.members[0];Ee(n.key),Le.current=n.key}};var t,n},Nn="lanes"!==ne||ht.length>1;if(_e)/* @__PURE__ */
78
- return x("div",{ref:Me,children:/* @__PURE__ */x(X,{marks:ht.filter(e=>!e.isCap),pending:b,currentKey:ot,todayMs:ge,reveal:It,ariaLabel:me,step:St,nodeProps:wn,onKeyDown:yn})});const Cn=(e,t)=>null==e||!1===e?null:/* @__PURE__ */x("span",{"aria-hidden":"true",className:"rosh-tl-flank"+(t?" is-end":""),"data-timeline-part":t?"end-caption":"start-caption",style:{paddingTop:qe.rail-3+"px"},children:e});/* @__PURE__ */
77
+ /* @__PURE__ */x("div",{role:"slider",tabIndex:0,className:"rosh-tl-thumb text-blue-600","data-timeline-part":"thumb","aria-label":n.ariaLabel??v.scrub,"aria-valuemin":0,"aria-valuemax":T&&T.length>0?T.length-1:R,"aria-valuenow":T&&T.length>0?Math.max(0,B):Math.round((r-d)/e),"aria-valuetext":j,style:{left:`${P}px`,top:`${s.rail+3}px`},onPointerDown:K,onPointerMove:F,onPointerUp:A,onPointerCancel:A,onKeyDown:t=>{const n=(t=>{const{key:n}=t;if(T&&T.length>0){const e=B<0?0:B;return"ArrowRight"===n||"ArrowUp"===n?T[Math.min(e+1,T.length-1)]:"ArrowLeft"===n||"ArrowDown"===n?T[Math.max(e-1,0)]:"Home"===n?T[0]:"End"===n?T[T.length-1]:null}const l=(t.shiftKey?7:1)*e;return"ArrowRight"===n||"ArrowUp"===n?r+l:"ArrowLeft"===n||"ArrowDown"===n?r-l:"Home"===n?d:"End"===n?u:null})(t);null!==n&&(t.preventDefault(),k?.(),D(n))}})]})}function ee(e,t,n){return(t?e.height:e.ruler+26)+(n?22:0)}function te({startMs:n,endMs:p,axis:k="linear",items:M,markers:v=[],pending:b=[],fillToMs:w,todayMs:te,labels:ne="lanes",activeKey:re=null,onActivate:le,thumb:ae,playback:se,edgeCaptions:ie,phases:oe=[],currentKey:ce,zoomRange:de=null,motion:ue=!0,ariaLabel:me,highlightKeys:he=null,onHoverChange:pe,endMark:xe=null}){const fe="none"===ne,ye=a(Date.now,null),ke=a(D,!1),ge=te??ye,Me=c(null),ve=i().timeline,be=o(),$e=e=>t(e,be),we=c(null),Pe=c(null),Ne=c(null),Ce=c(/* @__PURE__ */new Map),Te=c(void 0),Be=c(void 0),Le=c(null),[De,Ke]=d({}),[Ae,Fe]=d(null),[je,Re]=d(null),[Ue,Oe]=d(null),[He,Ie]=d(null),[Se,ze]=d(null),[Ee,We]=d(null),Xe=u(),Ve=u(),Ge=H(Me,!0),Ye=Ge>0?Ge-(b.length>0&&!fe?176:0):0,_e=Ye>0&&Ye-20<320,qe=H(we,!_e),Je=qe>0?qe:600,Qe=L[ne],Ze=fe&&b.length>0,et=Ze?Math.max(0,Je-36):Je,tt=t=>t>=n-e&&t<=p+e,nt=M.filter(e=>Number.isFinite(e.ms)&&tt(e.ms)).slice().sort((e,t)=>e.ms-t.ms),rt="spread"===k?v.map(e=>new Date(e.date).getTime()).filter(e=>Number.isFinite(e)):[],lt=$([n,...[...nt.map(e=>e.ms),...rt].filter(e=>e>n&&e<p),p],et,"compressed"===(at=k)?{}:"spread"===at?{maxTimeShare:1/0}:{maxTimeShare:1/0,minGapPx:0});var at;const st=lt.xByMs,it=nt.filter(e=>!e.provisional),ot=ce??(it.length>0?it[it.length-1].key:null),ct=nt.map((e,t)=>{const n=e.date??$e(e.ms),r=(e.priority??0)>0||"report"===e.kind,l=function(e){const t=e.kind??"default";return"default"===t&&e.glyph&&"none"!==e.glyph?F[e.glyph]??t:t}(e);return{key:e.key,ms:e.ms,x:st(e.ms),baseX:st(e.ms),kind:l,label:e.label,dateText:n,detail:e.detail,preview:e.preview,glyph:j(e,l,0===t&&"default"===l),role:e.key===ot?"current":r?"dot":"key",widthPx:fe?Math.max(16,K(e.caption??"")+6):De[e.key]||N(e.label,n),collapsible:r,onClick:e.onClick,onOpen:e.onOpen,isItem:!0,caption:e.caption,provisional:!!e.provisional,isCap:!1}}),dt=v.map(e=>({marker:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)&&tt(e)).map(({marker:e,ms:t})=>{const n=`marker-${e.id}`,r=$e(t);return{key:n,ms:t,x:st(t),baseX:st(t),kind:e.kind,label:e.label,dateText:r,detail:e.detail,preview:e.preview,glyph:e.glyph??A[e.kind].glyph,role:"key",widthPx:De[n]||N(e.label,r),collapsible:!1,onClick:e.onClick?()=>e.onClick?.(e):void 0,onOpen:e.onOpen?()=>e.onOpen?.(e):void 0,isItem:!1,provisional:!1,isCap:!1}}),ut=Ze?(()=>{const t=b[b.length-1],n=b.slice(0,-1).map(e=>e.label);return[{key:t.key,ms:p+e,x:Je,baseX:Je,kind:t.kind??"default",label:t.label,dateText:ve.notReached,detail:n.length>0?ve.alsoToCome(n):void 0,glyph:void 0,role:"key",widthPx:16,collapsible:!1,isItem:!1,provisional:!1,isCap:!0}]})():[],mt=fe&&xe&&!Ze?[{key:xe.key,ms:p,x:et,baseX:et,kind:"default",label:xe.label,dateText:xe.dateText??$e(p),detail:xe.detail,glyph:void 0,role:"key",widthPx:16,collapsible:!1,isItem:!1,provisional:!1,isCap:!0}]:[],ht=[...ct,...dt,...ut,...mt].sort((e,t)=>e.x-t.x||e.ms-t.ms),pt=ie?.start??ve.start($e(n)),xt=null==pt||!1===pt?0:"string"==typeof pt?Math.ceil(K(pt)):96,ft="lanes"===ne?function(e,t={}){const n=t.minPitchPx??40,r=[];let l=0;for(;l<e.length;){const t=e[l];if(!t.collapsible){r.push({type:"item",mark:t}),l+=1;continue}let a=l+1;for(;a<e.length&&e[a].collapsible&&e[a].kind===t.kind;)a+=1;const s=e.slice(l,a),i=s.length>1&&s.every((e,t)=>{if(0===t)return!0;const r=s[t-1],l=Math.max(n,Math.max(e.widthPx,r.widthPx)+8);return e.x-r.x<l});if(s.length>=3||i)r.push({type:"cluster",kind:t.kind,members:s});else for(const e of s)r.push({type:"item",mark:e});l=a}return r}(ht):[],yt=function(e,t=16){const n=[];let r=0;for(;r<e.length;){let l=r+1;for(;l<e.length&&e[l].x-e[l-1].x<t;)l+=1;if(l-r===1)n.push({type:"item",mark:e[r]});else{const t=e.slice(r,l),a=new Set(t.map(e=>e.kind));n.push({type:"cluster",kind:1===a.size?t[0].kind:P,members:t})}r=l}return n}(ht),kt=e=>"cluster"===e.type?`fold-${e.members[0].key}`:e.mark.key,gt=/* @__PURE__ */new Map;for(const e of yt)if("cluster"===e.type)for(const t of e.members)gt.set(t.key,kt(e));const Mt=Ue??He??Se,vt=ft.find(e=>"cluster"===e.type&&(e=>"cluster"===e.type?`cluster-${e.members[0].key}`:e.mark.key)(e)===Mt)??yt.find(e=>"cluster"===e.type&&kt(e)===Mt),bt=e=>({x:e.baseX,widthPx:e.widthPx}),$t=vt&&"cluster"===vt.type?vt.members.map(bt):de?ht.filter(e=>e.ms>=de[0]&&e.ms<=de[1]).map(bt):[],wt=$t.length>1?I(lt,$t,et):lt,Pt=wt!==lt;if(Pt)for(const e of ht)e.isCap||(e.x=wt.xByMs(e.ms));const Nt=ht.some(e=>e.x<14),Ct=Pt&&vt?Mt:null,Tt=e=>({key:e.key,mark:e,members:[e],x:e.x,kind:e.kind,openable:!1}),Bt=_e?ht.map(Tt):yt.flatMap(e=>{if("item"===e.type)return[Tt(e.mark)];const t=kt(e);if(t===Ct&&(n=e.members).every((e,t)=>0===t||e.x-n[t-1].x>=16))return e.members.map(Tt);var n;const r=e.members.map(e=>e.x);return[{key:t,mark:null,members:e.members,x:r.reduce((e,t)=>e+t,0)/r.length,kind:e.kind,openable:new Set(e.members.map(e=>e.ms)).size>1}]}),Lt=/* @__PURE__ */new Map;for(const e of Bt)for(const t of e.members)Lt.set(t.key,e.key);const Dt=yt.find(e=>"cluster"===e.type&&kt(e)===Ct),Kt=Dt&&"cluster"===Dt.type?{from:Math.min(...Dt.members.map(e=>e.x))-16,to:Math.max(...Dt.members.map(e=>e.x))+16}:null,At=c(Ct),[Ft,jt]=d(!1);m(()=>{if(At.current===Ct)return;At.current=Ct,jt(!0);const e=setTimeout(()=>jt(!1),240);return()=>clearTimeout(e)},[Ct]);const Rt=ht.map(e=>`${e.key} ${e.label} ${e.dateText}`).join("|");O(()=>{const e=Pe.current;if(!e)return;const t={};for(const n of Array.from(e.children)){const e=n.dataset.laneKey,r=n.getBoundingClientRect().width;e&&r>0&&(t[e]=r)}Ke(e=>function(e,t){const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Math.abs((e[n]??0)-(t[n]??0))<.5)}(e,t)?e:t)},[Rt]);const Ut=`${ne}|${k}|${ht.map(e=>`${e.key}@${e.ms}`).join("|")}`,[Ot,Ht]=d(Ut),It=ue&&Ot===Ut;m(()=>{Ot!==Ut&&Ht(Ut)},[Ot,Ut]);const St=Math.min(28,340/Math.max(1,ht.length-1)),zt=S(ae?.stops),Et=e=>{const t=Math.min(Math.max(e,n),p);if(!zt)return t;let r=zt[0];for(const e of zt)Math.abs(e-t)<Math.abs(r-t)&&(r=e);return r},Wt=ae?Et(ae.valueMs):null,Xt=se&&ae?ct.filter(e=>!zt||zt.includes(e.ms)).map(e=>({key:e.key,ms:e.ms})):[],Vt=function(e,t,n={}){const r=Number.isFinite(n.speed)&&(n.speed??0)>0?n.speed:1,l=Math.max(0,n.dwellMs??700)/r,a=t.filter(e=>Number.isFinite(e.ms)).slice().sort((e,t)=>e.ms-t.ms),s=[];for(let t=0;t+1<a.length;t++){const i=a[t],o=a[t+1],c=e.xByMs(i.ms),d=e.xByMs(o.ms),u=Math.max(0,d-c),m=u<=.5||n.reducedMotion?0:C(350*u/100,450,1400)/r;s.push({fromKey:i.key,toKey:o.key,fromMs:i.ms,toMs:o.ms,fromPx:c,toPx:d,lengthPx:u,durationMs:m,dwellMs:l,msByPx:e.msByPx})}return s}(wt,Xt,{speed:se?.speed,reducedMotion:ke}),[Gt,Yt]=d(null),_t=c(null),qt=c({segments:Vt,value:Wt,playback:se});m(()=>{qt.current={segments:Vt,value:Wt,playback:se}});const Jt=c(null),Qt=h(e=>{null===e&&null===Jt.current||(Jt.current=e,qt.current.playback?.onProgress?.(e))},[]),Zt=h(()=>{_t.current=null,Yt(null),Qt(null),qt.current.playback?.onStop?.()},[Qt]),en=!!se?.playing&&!!ae;m(()=>{if(!en)return;const e=qt.current,t=null===e.value?-1:e.segments.findIndex(t=>t.fromMs===e.value);if(t<0)return void Zt();_t.current&&_t.current.index===t||(_t.current={index:t,phase:"rest",t:0,restLeftMs:e.segments[t].dwellMs,sinceMs:null});let n,r=0;const l=e=>Yt(t=>t&&t.px===e.px&&t.ms===e.ms?t:e),a=()=>{clearTimeout(n);const e=_t.current;"rest"===e?.phase&&(n=setTimeout(s,Math.max(0,e.restLeftMs)))},s=()=>{const e=_t.current;if("rest"!==e?.phase)return;const t=qt.current.segments[e.index];t?(_t.current={index:e.index,phase:"glide",t:0,restLeftMs:0,sinceMs:null},l(B(t,0))):Zt()},i=e=>{const t=qt.current,n=_t.current;if(!n)return;const s=function(e,t,n){const r=e[t.index];if(!r)return{cursor:null,at:null,arrived:null,progress:null};const l=null===t.sinceMs?0:Math.max(0,n-t.sinceMs);if("rest"===t.phase){const e=t.restLeftMs-l;return e>0?{cursor:{...t,restLeftMs:e,sinceMs:n},at:B(r,0),arrived:null,progress:null}:{cursor:{index:t.index,phase:"glide",t:0,restLeftMs:0,sinceMs:n},at:B(r,0),arrived:null,progress:null}}const a=r.durationMs>0?Math.min(1,t.t+l/r.durationMs):1,s=B(r,a);if(a<1)return{cursor:{...t,t:a,sinceMs:n},at:s,arrived:null,progress:{fromKey:r.fromKey,toKey:r.toKey,t:T(a),ms:s.ms}};const i=e[t.index+1];return{cursor:i?{index:t.index+1,phase:"rest",t:0,restLeftMs:i.dwellMs,sinceMs:n}:null,at:s,arrived:{key:r.toKey,ms:r.toMs},progress:null}}(t.segments,n,e);_t.current=s.cursor,s.at&&l(s.at),Qt(s.progress),s.arrived&&t.playback?.onArrive(s.arrived.key,s.arrived.ms),s.cursor?(s.cursor.phase===n.phase&&s.cursor.index===n.index||a(),r=requestAnimationFrame(i)):Zt()};return a(),r=requestAnimationFrame(i),()=>{cancelAnimationFrame(r),clearTimeout(n),_t.current&&(_t.current.sinceMs=null,Qt(null))}},[en,Zt,Qt]);const tn=ct.filter(e=>!e.provisional),nn=ae?Gt?Gt.ms:Wt:void 0!==w?w:tn.length>0?null===ge?tn[tn.length-1].ms:Math.min(tn[tn.length-1].ms,ge):null,rn=new Set(he??[]),ln=ht.filter(e=>rn.has(e.key)).map(e=>e.x),an=ln.length>0?{from:Math.min(...ln),to:Math.max(...ln)}:null,sn=h(()=>{clearTimeout(Te.current),clearTimeout(Be.current),Fe(null),Re(null),Oe(null),Ie(null),ze(null)},[]);m(()=>()=>{clearTimeout(Te.current),clearTimeout(Be.current)},[]),m(()=>{const e=Le.current;e&&(Le.current=null,Ce.current.get(e)?.focus())});const on=null!==je||null!==Ue||null!==He||null!==Se;m(()=>{if(on)return s(e=>"Escape"===e.key&&(sn(),!0))},[on,sn]);const cn=h((e,t)=>{if(!e)return;const n=e.offsetWidth/2;let r=n>0?Math.max(n,Math.min(t,Je-n)):t;const a=e.parentElement;if(n>0&&a){const t=l(e),s=a.getBoundingClientRect().left,i=t.left+8+n-s,o=t.right-8-n-s;i<=o&&(r=Math.max(i,Math.min(r,o)))}e.style.left=`${r}px`,e.style.setProperty("--rosh-tl-arrow",`${n+(t-r)}px`)},[Je]),dn=Bt.find(e=>e.key===je)??null,un=dn?dn.x:0;O(()=>{cn(Ne.current,un)},[cn,je,un]);const mn=Wt??void 0,hn=c(null);m(()=>{if(void 0===mn)return;const e=wt.xByMs(mn),t=hn.current;if(hn.current=e,null===t||e<=t)return;const n=[];for(const r of ht){if(r.x<=t||r.x>e)continue;const l=Ce.current.get(Lt.get(r.key)??r.key);l&&(l.classList.add("is-hit"),n.push(setTimeout(()=>l.classList.remove("is-hit"),460)))}return()=>{for(const e of n)clearTimeout(e)}},[mn]);const pn=Bt.map(e=>e.key),xn=ot?Lt.get(ot)??null:null,fn=Ee&&pn.includes(Ee)?Ee:xn&&pn.includes(xn)?xn:pn[0],yn=e=>{const t=pn.indexOf(e.target.dataset?.timelineKey??"");if(t<0)return;const n="ArrowRight"===e.key||"ArrowDown"===e.key?t+1:"ArrowLeft"===e.key||"ArrowUp"===e.key?t-1:"Home"===e.key?0:"End"===e.key?pn.length-1:-1;n<0||n>pn.length-1||(e.preventDefault(),We(pn[n]),Ce.current.get(pn[n])?.focus())},kn=()=>clearTimeout(Be.current),gn=e=>{kn(),ze(e)},Mn=()=>{clearTimeout(Be.current),Be.current=setTimeout(()=>ze(null),260)},vn=e=>{Ct&&gt.get(e)===Ct?kn():(kn(),ze(null))},bn=e=>{clearTimeout(Te.current),Fe(e),Re(e),pe?.((e=>{const t=Bt.find(t=>t.key===e);return t?.members[0]?.key??e})(e))},$n=e=>{Fe(t=>t===e?null:t),clearTimeout(Te.current),Te.current=setTimeout(()=>Re(t=>t===e?null:t),160),pe?.(null)},wn=e=>({type:"button","data-timeline-node":e.isCap?"cap":e.isItem?"item":"marker","data-timeline-key":e.key,"aria-label":U(e),"aria-describedby":je===e.key?Xe:void 0,tabIndex:e.key===fn?0:-1,ref:t=>{t?Ce.current.set(e.key,t):Ce.current.delete(e.key)},onMouseEnter:()=>{vn(e.key),bn(e.key)},onMouseLeave:()=>{Mn(),$n(e.key)},onFocus:()=>{vn(e.key),bn(e.key),We(e.key)},onBlur:()=>{Mn(),$n(e.key)},onPointerDown:e=>e.stopPropagation(),onClick:t=>{t.stopPropagation(),e.onClick?.(),e.isItem&&le?.(e.key)}}),Pn=e=>{return{type:"button","data-timeline-node":"fold","data-timeline-key":e.key,"data-timeline-count":String(e.members.length),"aria-label":(t=e.members,n=ve,n.events(t.length,t.map(U))),"aria-describedby":je===e.key?Xe:void 0,tabIndex:e.key===fn?0:-1,ref:t=>{t?Ce.current.set(e.key,t):Ce.current.delete(e.key)},onMouseEnter:()=>{e.openable?gn(e.key):bn(e.key)},onMouseLeave:()=>{Mn(),$n(e.key)},onFocus:()=>{kn(),bn(e.key),We(e.key)},onBlur:()=>{Mn(),$n(e.key)},onPointerDown:e=>e.stopPropagation(),onClick:t=>{if(t.stopPropagation(),!e.openable)return void bn(e.key);gn(e.key);const n=e.members[0];We(n.key),Le.current=n.key}};var t,n},Nn="lanes"!==ne||ht.length>1;if(_e)/* @__PURE__ */
78
+ return x("div",{ref:Me,children:/* @__PURE__ */x(X,{marks:ht.filter(e=>!e.isCap),pending:b,currentKey:ot,todayMs:ge,reveal:It,ariaLabel:me,step:St,nodeProps:wn,onKeyDown:yn})});const Cn=(e,t)=>null==e||!1===e?null:/* @__PURE__ */x("span",{"aria-hidden":"true",className:"rosh-tl-flank"+(t?" is-end":""),"data-timeline-part":t?"end-caption":"start-caption",style:{paddingTop:Qe.rail-3+"px"},children:e});/* @__PURE__ */
79
79
  return f("div",{ref:Me,className:"rosh-tl-body"+(b.length>0&&!fe?"":" is-solo"),children:[
80
80
  /* @__PURE__ */f("div",{className:"flex items-stretch gap-3",children:[fe&&Cn(pt,!1),
81
- /* @__PURE__ */x("div",{className:"rosh-tl-stage",style:{height:`${ee(qe,Nn,oe.length>0&&!fe)}px`},children:/* @__PURE__ */f("div",{ref:we,className:`rosh-tl-layer${Ft?" is-zooming":""}${Gt?" is-gliding":""}`,onMouseMove:e=>{if(!Kt)return;const t=we.current?.getBoundingClientRect();if(!t)return;const n=e.clientX-t.left;n>=Kt.from&&n<=Kt.to?kn():Mn()},onMouseLeave:Mn,children:[!fe&&/* @__PURE__ */x(W,{marks:ht,innerRef:Pe}),
82
- /* @__PURE__ */x(V,{axis:wt,geo:qe,fillTo:nn,reveal:It,trackPx:et,tweened:!!ae}),Ze&&
83
- /* @__PURE__ */x("i",{"aria-hidden":"true",className:"rosh-tl-tail","data-timeline-part":"tail",style:{left:`${et}px`,width:Qe-et+"px",top:qe.rail+3-1+"px"}}),an&&/* @__PURE__ */x("div",{"aria-hidden":"true",className:"rosh-tl-band","data-timeline-part":"highlight",style:{left:an.from-10+"px",width:an.to-an.from+20+"px",top:qe.rail-7+"px",height:"20px"}}),
84
- /* @__PURE__ */x(z,{startMs:n,endMs:p,axis:wt,geo:qe,reveal:It}),
85
- /* @__PURE__ */x(G,{geo:qe,caption:fe?null:pt,endCaption:fe?null:ie?.end,around:Nt,reveal:It,trackPx:Qe}),fe&&/* @__PURE__ */x(_,{nodes:Bt,geo:qe,reveal:It}),null!==ge&&ge>n&&ge<=p+e&&/* @__PURE__ */x(Y,{x:wt.xByMs(Math.min(ge,p)),geo:qe,trackPx:Qe,label:$e(ge),reveal:It}),!fe&&oe.map(e=>/* @__PURE__ */x(J,{phase:e,geo:qe,xOf:wt.xByMs},e.key)),
86
- /* @__PURE__ */x("ol",{className:"rosh-tl-nodes","aria-label":me,onKeyDown:yn,children:Bt.map((e,t)=>{const n=t=>null!==t&&e.members.some(e=>e.key===t),l=`${qe.rail+3}px`,a=It?r(t,St):{},s=(e=>!!an&&e.x>=an.from-.5&&e.x<=an.to+.5)(e)?" is-lit":"";if(e.mark?.isCap)/* @__PURE__ */
81
+ /* @__PURE__ */x("div",{className:"rosh-tl-stage",style:{height:`${ee(Qe,Nn,oe.length>0&&!fe)}px`},children:/* @__PURE__ */f("div",{ref:we,className:`rosh-tl-layer${Ft?" is-zooming":""}${Gt?" is-gliding":""}`,onMouseMove:e=>{if(!Kt)return;const t=we.current?.getBoundingClientRect();if(!t)return;const n=e.clientX-t.left;n>=Kt.from&&n<=Kt.to?kn():Mn()},onMouseLeave:Mn,children:[!fe&&/* @__PURE__ */x(z,{marks:ht,innerRef:Pe}),
82
+ /* @__PURE__ */x(V,{axis:wt,geo:Qe,fillTo:nn,reveal:It,trackPx:et,tweened:!!ae}),Ze&&
83
+ /* @__PURE__ */x("i",{"aria-hidden":"true",className:"rosh-tl-tail","data-timeline-part":"tail",style:{left:`${et}px`,width:Je-et+"px",top:Qe.rail+3-1+"px"}}),an&&/* @__PURE__ */x("div",{"aria-hidden":"true",className:"rosh-tl-band","data-timeline-part":"highlight",style:{left:an.from-10+"px",width:an.to-an.from+20+"px",top:Qe.rail-7+"px",height:"20px"}}),
84
+ /* @__PURE__ */x(E,{startMs:n,endMs:p,axis:wt,geo:Qe,reveal:It}),
85
+ /* @__PURE__ */x(G,{geo:Qe,caption:fe?null:pt,endCaption:fe?null:ie?.end,around:Nt,reveal:It,trackPx:Je}),fe&&/* @__PURE__ */x(_,{nodes:Bt,geo:Qe,reveal:It}),null!==ge&&ge>n&&ge<=p+e&&/* @__PURE__ */x(Y,{x:wt.xByMs(Math.min(ge,p)),geo:Qe,trackPx:Je,label:$e(ge),reveal:It}),!fe&&oe.map(e=>/* @__PURE__ */x(q,{phase:e,geo:Qe,xOf:wt.xByMs},e.key)),
86
+ /* @__PURE__ */x("ol",{className:"rosh-tl-nodes","aria-label":me,onKeyDown:yn,children:Bt.map((e,t)=>{const n=t=>null!==t&&e.members.some(e=>e.key===t),l=`${Qe.rail+3}px`,a=It?r(t,St):{},s=(e=>!!an&&e.x>=an.from-.5&&e.x<=an.to+.5)(e)?" is-lit":"";if(e.mark?.isCap)/* @__PURE__ */
87
87
  return x("li",{children:/* @__PURE__ */x("button",{...wn(e.mark),className:`rosh-tl-node rosh-tl-mark is-cap${s}${It?" rosh-tl-pop":""}`,style:{left:`${e.x}px`,top:l,...a}})},e.key);if(!e.mark){const t=e.kind===P,r=R(t?"default":e.kind,"key"),i=t?void 0:A[e.kind]?.glyph;/* @__PURE__ */
88
88
  return f("li",{...n(ot)?{"aria-current":"step"}:{},children:[
89
89
  /* @__PURE__ */f("button",{...Pn(e),className:`${r.className} is-fold${t?" is-mixed":""}${n(re)?" is-active":""}${s}${It?" rosh-tl-pop":""}`,style:{...r.style,left:`${e.x}px`,top:l,...a},children:[i&&/* @__PURE__ */x(g,{name:i}),t&&/* @__PURE__ */f("span",{"aria-hidden":"true",className:"rosh-tl-foldnum",children:["×",e.members.length]})]}),!t&&/* @__PURE__ */f("i",{"aria-hidden":"true",className:"rosh-tl-count"+(It?" rosh-tl-fade":""),style:{left:`${e.x}px`,top:l},children:["×",e.members.length]})]},e.key)}const i=e.mark,o=R(i.kind,i.role,i.provisional),{glyph:c}=i;/* @__PURE__ */
90
- return x("li",{...i.key===ot?{"aria-current":"step"}:{},children:/* @__PURE__ */f("button",{...wn(i),className:`${o.className}${i.key===re?" is-active":""}${s}${It?" rosh-tl-pop":""}`,style:{...o.style,left:`${i.x}px`,top:l,...a},children:[c&&/* @__PURE__ */x(g,{name:c}),"current"===i.role&&/* @__PURE__ */x("span",{"aria-hidden":"true",className:"rosh-tl-pulse bg-blue-600"+(It?" is-on":"")})]})},i.key)})}),"lanes"===ne?/* @__PURE__ */x(q,{groups:ft,trackPx:Qe,geo:qe,startMs:n,endMs:p,currentKey:ot,hoveredKey:Ae,reveal:It,step:St,zoomedKey:Ct,popId:Ve,aimBubble:cn,startCaptionPx:xt,openCluster:He,setOpenCluster:Oe,previewCluster:Ue,setPreviewCluster:Ie,setZoomKey:We}):"active"===ne?/* @__PURE__ */x(Q,{nodes:Bt,trackPx:Qe,geo:qe,activeKey:re,hoveredKey:Ae,currentKey:ot}):null,dn&&/* @__PURE__ */x("div",{ref:Ne,id:Xe,role:"tooltip",className:"rosh-tl-bubble"+(dn.members.some(e=>e.preview)?" is-preview":""),"data-timeline-part":"tooltip",style:{top:`${qe.rail+6+6}px`},onMouseEnter:()=>{kn(),bn(dn.key)},onMouseLeave:()=>{Mn(),$n(dn.key)},onFocus:()=>{kn(),bn(dn.key)},onBlur:()=>{Mn(),$n(dn.key)},children:dn.mark?/* @__PURE__ */f(y,{children:[
90
+ return x("li",{...i.key===ot?{"aria-current":"step"}:{},children:/* @__PURE__ */f("button",{...wn(i),className:`${o.className}${i.key===re?" is-active":""}${s}${It?" rosh-tl-pop":""}`,style:{...o.style,left:`${i.x}px`,top:l,...a},children:[c&&/* @__PURE__ */x(g,{name:c}),"current"===i.role&&/* @__PURE__ */x("span",{"aria-hidden":"true",className:"rosh-tl-pulse bg-blue-600"+(It?" is-on":"")})]})},i.key)})}),"lanes"===ne?/* @__PURE__ */x(Q,{groups:ft,trackPx:Je,geo:Qe,startMs:n,endMs:p,currentKey:ot,hoveredKey:Ae,reveal:It,step:St,zoomedKey:Ct,popId:Ve,aimBubble:cn,startCaptionPx:xt,openCluster:Ue,setOpenCluster:Oe,previewCluster:He,setPreviewCluster:Ie,setZoomKey:ze}):"active"===ne?/* @__PURE__ */x(J,{nodes:Bt,trackPx:Je,geo:Qe,activeKey:re,hoveredKey:Ae,currentKey:ot}):null,dn&&/* @__PURE__ */x("div",{ref:Ne,id:Xe,role:"tooltip",className:"rosh-tl-bubble"+(dn.members.some(e=>e.preview)?" is-preview":""),"data-timeline-part":"tooltip",style:{top:`${Qe.rail+6+6}px`},onMouseEnter:()=>{kn(),bn(dn.key)},onMouseLeave:()=>{Mn(),$n(dn.key)},onFocus:()=>{kn(),bn(dn.key)},onBlur:()=>{Mn(),$n(dn.key)},children:dn.mark?/* @__PURE__ */f(y,{children:[
91
91
  /* @__PURE__ */x("span",{className:"rosh-tl-name",children:dn.mark.label}),
92
92
  /* @__PURE__ */x("span",{className:"rosh-tl-date",children:dn.mark.dateText}),dn.mark.preview?/* @__PURE__ */x("div",{className:"rosh-tl-preview","data-timeline-part":"preview",children:dn.mark.preview}):dn.mark.detail&&/* @__PURE__ */x("span",{className:"rosh-tl-detail",children:dn.mark.detail}),(dn.mark.onOpen??dn.mark.onClick)&&/* @__PURE__ */x("button",{type:"button",className:"rosh-tl-bubble-open text-blue-600","data-timeline-part":"bubble-open",onClick:()=>(dn.mark?.onOpen??dn.mark?.onClick)?.(),children:ve.openButton})]}):
93
93
  /* @__PURE__ */f("div",{className:"rosh-tl-fold-list","data-timeline-part":"fold-members",children:[
@@ -95,5 +95,5 @@ return x("li",{...i.key===ot?{"aria-current":"step"}:{},children:/* @__PURE__ */
95
95
  /* @__PURE__ */x("ol",{children:dn.members.map(e=>/* @__PURE__ */f("li",{children:[
96
96
  /* @__PURE__ */f("p",{className:"rosh-tl-foldrow",children:[
97
97
  /* @__PURE__ */x("span",{children:e.label}),
98
- /* @__PURE__ */x("span",{className:"rosh-tl-date",children:e.dateText})]}),e.preview?/* @__PURE__ */x("div",{className:"rosh-tl-preview","data-timeline-part":"preview",children:e.preview}):e.detail&&/* @__PURE__ */x("span",{className:"rosh-tl-detail",children:e.detail})]},e.key))})]})}),ae&&null!==Et&&
99
- /* @__PURE__ */x(Z,{thumb:ae,value:Et,snap:zt,axis:wt,geo:qe,startMs:n,endMs:p,trackPx:Qe,layerRef:we,glide:Gt,onScrub:se?Zt:void 0,nodes:Xt,onProgress:qt})]})}),fe&&Cn(ie?.end,!0)]}),b.length>0&&!fe&&/* @__PURE__ */x(E,{pending:b,reveal:It})]})}export{g as TimelineGlyph,M as TimelineMilestoneIcon,v as TimelineProgressIcon,te as TimelineTrack};
98
+ /* @__PURE__ */x("span",{className:"rosh-tl-date",children:e.dateText})]}),e.preview?/* @__PURE__ */x("div",{className:"rosh-tl-preview","data-timeline-part":"preview",children:e.preview}):e.detail&&/* @__PURE__ */x("span",{className:"rosh-tl-detail",children:e.detail})]},e.key))})]})}),ae&&null!==Wt&&
99
+ /* @__PURE__ */x(Z,{thumb:ae,value:Wt,snap:Et,axis:wt,geo:Qe,startMs:n,endMs:p,trackPx:Je,layerRef:we,glide:Gt,onScrub:se?Zt:void 0,nodes:Xt,onProgress:Qt})]})}),fe&&Cn(ie?.end,!0)]}),b.length>0&&!fe&&/* @__PURE__ */x(W,{pending:b,reveal:It})]})}export{g as TimelineGlyph,M as TimelineMilestoneIcon,v as TimelineProgressIcon,te as TimelineTrack};