@mavea/mavea 1.0.17 → 1.1.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 (690) hide show
  1. package/CHANGELOG.md +59 -3
  2. package/DISCLAIMER.md +4 -1
  3. package/PRIVACY.md +14 -8
  4. package/README.md +67 -24
  5. package/TERMS.md +11 -1
  6. package/THIRD-PARTY.txt +25248 -621
  7. package/bin/mavea.mjs +156 -147
  8. package/dist/.vite/manifest.json +2333 -1738
  9. package/dist/assets/AnnotationLayer-ClU-e6qL.css +1 -0
  10. package/dist/assets/AnnotationLayer-IiuYsoSa.js +0 -0
  11. package/dist/assets/AppCommandPalette-Dm3SedPO.js +1 -0
  12. package/dist/assets/AtlasView-B82UfrEX.js +1 -0
  13. package/dist/assets/BlockEmpty-B82uCse8.js +1 -0
  14. package/dist/assets/BriefingPlayer-C0D_2ILa.js +1 -0
  15. package/dist/assets/CanvasSkeleton-CcHXJqdq.js +2 -0
  16. package/dist/assets/CardEditor-DABIhGdQ.js +1 -0
  17. package/dist/assets/CheckLogRail-BOaXnqWK.css +1 -0
  18. package/dist/assets/CheckLogRail-BU_rmAFH.js +1 -0
  19. package/dist/assets/{CodeOutput-H8TQzjqL.js → CodeOutput-DF892aIR.js} +3 -3
  20. package/dist/assets/CommandPalette-E3reEqYR.js +1 -0
  21. package/dist/assets/ConversationVideoStudio-CIAMxElj.css +1 -0
  22. package/dist/assets/ConversationVideoStudio-DEZBpJUz.js +1 -0
  23. package/dist/assets/CourseLessonReader-Bpt-DkJo.js +2 -0
  24. package/dist/assets/CourseRail-C8MJG-zf.js +1 -0
  25. package/dist/assets/CoursesApp-DFVkhP2f.js +2 -0
  26. package/dist/assets/CrossExamPanel-CdIYUu-B.js +1 -0
  27. package/dist/assets/DashPresent-DwWDtjrU.js +1 -0
  28. package/dist/assets/DashboardDetail-D4wkiTux.js +2 -0
  29. package/dist/assets/DashboardLoopGate-B5UBPsvU.js +2 -0
  30. package/dist/assets/DashboardLoopRuntime-CAnZX234.js +1 -0
  31. package/dist/assets/DashboardOverview-C3hv9sm1.js +1 -0
  32. package/dist/assets/DashboardSettings-eMhHliVh.js +1 -0
  33. package/dist/assets/{DashboardsApp-Dx-EsaPW.css → DashboardsApp-B6yUtkKB.css} +1 -1
  34. package/dist/assets/DashboardsApp-BwFtTdWa.js +2 -0
  35. package/dist/assets/{DeepZoomApp-CQaTT2Uh.js → DeepZoomApp-CxdcUeFJ.js} +2 -2
  36. package/dist/assets/DelegatePanel-B0kIu8Et.js +33 -0
  37. package/dist/assets/DemoGallery-B__X0_H3.js +1 -0
  38. package/dist/assets/DropSelect-C3uYlej-.js +1 -0
  39. package/dist/assets/DropSelect-DilESAgA.css +1 -0
  40. package/dist/assets/ExportModal-CDGlhpdH.js +2 -0
  41. package/dist/assets/ExtractionPreview-CloJnrQi.js +18 -0
  42. package/dist/assets/{FallbackCard-B489rTd9.js → FallbackCard-ap_4wOfj.js} +1 -1
  43. package/dist/assets/FeatureUseNotice-CwHstxBh.js +1 -0
  44. package/dist/assets/FlagshipCTA-uoeGMQas.js +1 -0
  45. package/dist/assets/FlagshipCommandPalette-CHsD5BSH.js +1 -0
  46. package/dist/assets/FlagshipShowcase-D53Q_4m0.js +1 -0
  47. package/dist/assets/FlashcardsApp-CnLfEnDH.js +1 -0
  48. package/dist/assets/ForecastPanel-zPUh2ClQ.js +1 -0
  49. package/dist/assets/GalleryApp-2Ffc6CY6.js +1 -0
  50. package/dist/assets/{HonestByDesign-CCOt31nx.js → HonestByDesign-5jIu2ZC8.js} +1 -1
  51. package/dist/assets/{HowItWorks-auW5XXCZ.js → HowItWorks-BiJF84EM.js} +1 -1
  52. package/dist/assets/LegalApp-zC-rvTww.js +1 -0
  53. package/dist/assets/{LegalMarkdownDocument-DBjLz9Yf.js → LegalMarkdownDocument-CJ-gRHdX.js} +2 -2
  54. package/dist/assets/LegalPageShell-CmxGCdqJ.css +1 -0
  55. package/dist/assets/LegalPageShell-Dyd4Uh3r.js +1 -0
  56. package/dist/assets/LeverPanel-D1SNRGdm.js +1 -0
  57. package/dist/assets/Library-DmdzY2se.js +1 -0
  58. package/dist/assets/LibraryOverlay-_xpWdhLN.js +1 -0
  59. package/dist/assets/LiveApp-BNae3fDZ.css +1 -0
  60. package/dist/assets/LiveApp-DjcJQURO.js +78 -0
  61. package/dist/assets/LiveSettings-BceODlOb.js +6 -0
  62. package/dist/assets/MindMapViewerDrawer-BuDodC0s.js +1 -0
  63. package/dist/assets/MindShape-CBcCC7hP.js +1 -0
  64. package/dist/assets/MindShape-CaPeUo-a.css +1 -0
  65. package/dist/assets/{Orb-B0NEVfqL.js → Orb-D8lhTdmY.js} +1 -1
  66. package/dist/assets/PinToDashboard-DBIXvhlF.js +1 -0
  67. package/dist/assets/PlanReview-DUQ7OMvV.js +1 -0
  68. package/dist/assets/Presence-CKSoyuhE.js +1 -0
  69. package/dist/assets/PresentationDeck-C518t9pP.js +1 -0
  70. package/dist/assets/PrismApp-DRLl8841.js +2 -0
  71. package/dist/assets/PrismAskController-QRwxRP8D.js +37 -0
  72. package/dist/assets/PrismBriefingPlayer-Kyb8Vs_w.js +2 -0
  73. package/dist/assets/PrismOverlay-Bj7tCu5Q.js +105 -0
  74. package/dist/assets/PrismWorkbench-BCnhkp-S.js +1 -0
  75. package/dist/assets/{PrivacyApp-rhzy-5HG.js → PrivacyApp-DHSRr8wq.js} +16 -10
  76. package/dist/assets/Recap-T9DtFaEk.js +1 -0
  77. package/dist/assets/ReelJelly-D5e-jt-8.js +1 -0
  78. package/dist/assets/ReplayCard-CKo5reXy.js +2 -0
  79. package/dist/assets/ReplayCard-Cs6mzTRa.css +1 -0
  80. package/dist/assets/ReplayOverlay-DqAwLshS.js +1 -0
  81. package/dist/assets/ReplayOverlay-DzkcTnCA.css +1 -0
  82. package/dist/assets/RewindOverlay-CkJIETE0.js +1 -0
  83. package/dist/assets/RippleApp-C76VTaZK.js +2 -0
  84. package/dist/assets/RippleAskController-CdlMlRH8.js +34 -0
  85. package/dist/assets/RippleOverlay-Mvz3CXhD.js +6 -0
  86. package/dist/assets/SeeDontRead-BkySmnP3.js +1 -0
  87. package/dist/assets/ShareModal-Cl3ryjgK.js +2 -0
  88. package/dist/assets/{ShareModal-PobtP7AJ.css → ShareModal-D1QuQEko.css} +1 -1
  89. package/dist/assets/ShipCascade-Bf-qDWMb.js +1 -0
  90. package/dist/assets/ShipCourse-Cy5ldKLE.js +1 -0
  91. package/dist/assets/{ShipGate-BYYu9WVq.js → ShipGate-D4BP41-h.js} +1 -1
  92. package/dist/assets/ShipHotspots-lGioTtf1.js +1 -0
  93. package/dist/assets/{ShipIncident-Xod2gbjc.js → ShipIncident-DMLb14Lx.js} +1 -1
  94. package/dist/assets/ShipMigration-ZnzL-1rC.js +1 -0
  95. package/dist/assets/ShipOnboarding-DUxtx2Vr.js +1 -0
  96. package/dist/assets/ShipRead-CJJmY-wy.js +1 -0
  97. package/dist/assets/ShipRollout-Dt2TgI0L.js +1 -0
  98. package/dist/assets/ShipSuggestions-BrAXTjAR.js +1 -0
  99. package/dist/assets/ShipWorkspace-_MtKAiKH.js +2 -0
  100. package/dist/assets/SignatureLoop-Cdkifjb8.js +1 -0
  101. package/dist/assets/SrsReview-B1B2VekR.css +1 -0
  102. package/dist/assets/SrsReview-DhWNYYv7.js +1 -0
  103. package/dist/assets/SynthesisApp-C5udWwng.js +2 -0
  104. package/dist/assets/SynthesisOverlay-1o-CJsyX.js +66 -0
  105. package/dist/assets/{TermsApp-Dk2jpxq-.js → TermsApp-DIAESAZs.js} +13 -3
  106. package/dist/assets/TopbarMenu-DQXxqSWY.js +1 -0
  107. package/dist/assets/TopicCanvas-DkzJORfl.js +2 -0
  108. package/dist/assets/TourPrism-Bxp--s0i.js +1 -0
  109. package/dist/assets/TrackerTile-CyPD0A6b.js +2 -0
  110. package/dist/assets/TwoSurfaces-C_0XBpwA.js +1 -0
  111. package/dist/assets/UnderstoodPanel-DmJph4el.js +1 -0
  112. package/dist/assets/WhyMachineOverlay-QDSZx5Y7.js +1 -0
  113. package/dist/assets/WorldOverlay-DRdBQMnb.css +1 -0
  114. package/dist/assets/WorldOverlay-DorHCLzw.js +1 -0
  115. package/dist/assets/WowFeatures-DNEeO2pr.js +1 -0
  116. package/dist/assets/ZoomDeck-qdlPe_yl.js +1 -0
  117. package/dist/assets/__vite-browser-external-gfE6fZcA.js +1 -0
  118. package/dist/assets/alternateFinishes-Cgks49KV.js +494 -0
  119. package/dist/assets/annotationAuto-BmKrZ3hU.js +1 -0
  120. package/dist/assets/annotationReel-K2FYv-3B.js +1 -0
  121. package/dist/assets/annotations-CftUUB13.js +1 -0
  122. package/dist/assets/attachments-BW-vki-E.js +1 -0
  123. package/dist/assets/backup-PaRBwjJy.js +1 -0
  124. package/dist/assets/blockLabel-FogyzEQY.js +1 -0
  125. package/dist/assets/blockTypes-DUDdP3pB.js +1 -0
  126. package/dist/assets/buildShip-BgFg98tH.js +1 -0
  127. package/dist/assets/cache-CvbSI-pr.js +1 -0
  128. package/dist/assets/canvas-BlkTFnVo.js +1 -0
  129. package/dist/assets/capture-CL9ENM-c.js +2 -0
  130. package/dist/assets/catalog-Db9GWM6N.js +1 -0
  131. package/dist/assets/{cfo.generated-Bjl5OGay.js → cfo.generated-j5CXp1Zz.js} +1 -1
  132. package/dist/assets/chapters-Dqm4iLDa.js +1 -0
  133. package/dist/assets/charts2-CaKGzkgJ.js +1 -0
  134. package/dist/assets/checkLogModel-BMtruriG.js +1 -0
  135. package/dist/assets/{citation-BcvmjKS8.js → citation-BsSvaaer.js} +1 -1
  136. package/dist/assets/{codeContext-0UMRSGRr.js → codeContext-goNoLAIr.js} +1 -1
  137. package/dist/assets/compiler-runtime-qQQXpJgv.js +1 -0
  138. package/dist/assets/{compose-BJ9EfcQS.js → compose-D-OsDiU9.js} +1 -1
  139. package/dist/assets/confirmAdd-CZPBG1xe.js +1 -0
  140. package/dist/assets/{contentVault-DzTYWcbD.js → contentVault-xfUwSJ3i.js} +1 -1
  141. package/dist/assets/coreIcons-BzqW7Qiz.js +1 -0
  142. package/dist/assets/cpp-CJIxL8VH.js +1 -0
  143. package/dist/assets/cpp-Cts1PyIS.js +1 -0
  144. package/dist/assets/csv-DAqzYXUs.js +5 -0
  145. package/dist/assets/dash-composer-DeNWVwpU.css +1 -0
  146. package/dist/assets/dashboardEvents-D-wLCp1A.js +2 -0
  147. package/dist/assets/dashboards-CdzGklae.css +1 -0
  148. package/dist/assets/dataPending-lZUzUEo6.js +1 -0
  149. package/dist/assets/{diagrams-CaSfjT4I.js → diagrams-1DJMD4j-.js} +1 -1
  150. package/dist/assets/display-BrieMea1.js +1 -0
  151. package/dist/assets/dist-DRo0JOkC.js +14 -0
  152. package/dist/assets/{dist-DIKAXwpM.js → dist-kNHRtoqd.js} +21 -21
  153. package/dist/assets/emphasize-BqCIst-B.js +1 -0
  154. package/dist/assets/empty-BO1NC9qY.js +1 -0
  155. package/dist/assets/engine-2U7mvPIl.js +1 -0
  156. package/dist/assets/engine-BF8FqSbi.css +1 -0
  157. package/dist/assets/explode-qQ7Fzt6V.js +15 -0
  158. package/dist/assets/facts-BUGuVUIc.js +1 -0
  159. package/dist/assets/fit-CMu7prjb.js +1 -0
  160. package/dist/assets/fitText-DQ2omSN0.js +1 -0
  161. package/dist/assets/format-q0LwBjID.js +1 -0
  162. package/dist/assets/{format-hc2QOoIu.js → format-rPI6ZwwH.js} +1 -1
  163. package/dist/assets/friendlyAsk-BBdRZIar.js +1 -0
  164. package/dist/assets/{generate-8odaTyr4.js → generate-C9vOL1C2.js} +3 -3
  165. package/dist/assets/generateBeats-DpDpBcgV.js +1 -0
  166. package/dist/assets/{generateCourse-Cj_-vDWu.js → generateCourse-DU281tDE.js} +1 -1
  167. package/dist/assets/generateLive-_x2tWkBH.js +51 -0
  168. package/dist/assets/githubBrowser-BDiuD9dz.js +1 -0
  169. package/dist/assets/githubToken-Bwa7V9YT.js +1 -0
  170. package/dist/assets/history-D2EH2X6D.js +1 -0
  171. package/dist/assets/homeTarget-CsO8nY7z.js +1 -0
  172. package/dist/assets/http-Lar_UMKb.js +2 -0
  173. package/dist/assets/{icons-CHVz6kv_.js → icons-gLFQTv74.js} +1 -1
  174. package/dist/assets/incident-D3bmMmES.js +10 -0
  175. package/dist/assets/index-CfcUMOBf.js +22 -0
  176. package/dist/assets/index-D4FIsool.css +1 -0
  177. package/dist/assets/index.es-yrxxdux0.js +5 -0
  178. package/dist/assets/jspdf.es.min-Bbaa2Qun.js +79 -0
  179. package/dist/assets/jsx-runtime-DeHZSEgm.js +1 -0
  180. package/dist/assets/katex-CiJ_n4H9.js +257 -0
  181. package/dist/assets/keyVault-Aw5Y2PjT.js +1 -0
  182. package/dist/assets/kokoro-CdL8Kl48.js +1 -0
  183. package/dist/assets/layout-CEoNLr-w.js +1 -0
  184. package/dist/assets/{layout-CkO0Psde.js → layout-CHn3XWJd.js} +1 -1
  185. package/dist/assets/learn-CXstDWJf.js +1 -0
  186. package/dist/assets/ledger-Cv0LBflx.js +1 -0
  187. package/dist/assets/lib-B7OE1ZQQ.js +1 -0
  188. package/dist/assets/liveSchema-B4bQtO88.js +100 -0
  189. package/dist/assets/maplibre-gl-CrDadnl3.js +801 -0
  190. package/dist/assets/maplibre-gl-worker-DZ7nj4vd.js +11 -0
  191. package/dist/assets/{mastery-D7xYf5D7.js → mastery-CUfDeuqO.js} +2 -2
  192. package/dist/assets/{media-CsrUl279.js → media-BvwzACIX.js} +1 -1
  193. package/dist/assets/{model-BE0UHu1w.js → model-DxwoIVpo.js} +1 -1
  194. package/dist/assets/motion-BY_Egaxm.js +1 -0
  195. package/dist/assets/motion-DxHSlPN6.js +1 -0
  196. package/dist/assets/{neighborhoods-DFqKm9Xi.js → neighborhoods-D7QjURnE.js} +1 -1
  197. package/dist/assets/nextFrame-12y0UrAd.js +1 -0
  198. package/dist/assets/notes-CUeZ1cYu.js +1 -0
  199. package/dist/assets/{number-DXgzss0v.js → number-Bmf7DqLj.js} +1 -1
  200. package/dist/assets/officeDoc-GU6Cssjf.js +3 -0
  201. package/dist/assets/openWorld-BHTJM39n.js +1 -0
  202. package/dist/assets/openchemlib-Cz_MN0FG.js +23 -0
  203. package/dist/assets/{owners-FXDGInVq.js → owners-HRBX7JN_.js} +1 -1
  204. package/dist/assets/parseDiff-D8uBQ9mQ.js +2 -0
  205. package/dist/assets/pdf-CUAVYiYW.js +54 -0
  206. package/dist/assets/pdf.worker.min-CHFwMXne.mjs +29 -0
  207. package/dist/assets/pen-BAEq0JnM.js +24 -0
  208. package/dist/assets/{perfProbe-Xs39DqMh.js → perfProbe-3Ip5n0yx.js} +1 -1
  209. package/dist/assets/{php-CYrBA5iX.js → php-CQT4wx5i.js} +1 -1
  210. package/dist/assets/pin-BwWjjqmt.js +1 -0
  211. package/dist/assets/pin-D-4Zjiik.css +1 -0
  212. package/dist/assets/planTracker-BI9z_0gW.js +1 -0
  213. package/dist/assets/portal-BJzn-Tgn.js +1 -0
  214. package/dist/assets/{pptxgen.es-CveAizg8.js → pptxgen.es-zw8PIOkD.js} +11 -11
  215. package/dist/assets/predictions-CkVKHq-5.js +1 -0
  216. package/dist/assets/preload-helper-CiWYd9n-.js +1 -0
  217. package/dist/assets/preloadableLazy-MIX1ApBW.js +1 -0
  218. package/dist/assets/{prewarm-K5WcvrNh.js → prewarm-CheeUP2L.js} +1 -1
  219. package/dist/assets/prism.generated-BQkO5r6r.js +41 -0
  220. package/dist/assets/{prismExtract.worker-Cws9K1NG.js → prismExtract.worker-OxGWMXXN.js} +1 -1
  221. package/dist/assets/prismGround.worker-C9hyveb3.js +1 -0
  222. package/dist/assets/prismLayout.worker-CJa4orCT.js +1 -0
  223. package/dist/assets/providers-B2OCzEo1.js +1 -0
  224. package/dist/assets/purify.es-JEAr64Sr.js +3 -0
  225. package/dist/assets/{queue-J4h7E3uc.js → queue-Adae4IzW.js} +1 -1
  226. package/dist/assets/quietHours-DCMczU9R.js +1 -0
  227. package/dist/assets/quizResult-DB8yeqDr.js +1 -0
  228. package/dist/assets/react-BZJXY1be.js +1 -0
  229. package/dist/assets/ready-Ba6nk9O1.js +1 -0
  230. package/dist/assets/ready-DZY1bETr.js +1 -0
  231. package/dist/assets/receipts-ClyzFFGD.js +1 -0
  232. package/dist/assets/{reference-sJzyMiL4.js → reference-BjexflMu.js} +1 -1
  233. package/dist/assets/registry-4mMEt1Xy.css +1 -0
  234. package/dist/assets/registry-7poQfBaM.js +4 -0
  235. package/dist/assets/registry-9QjeHgKs.js +1 -0
  236. package/dist/assets/registry-B0GIHERt.js +1 -0
  237. package/dist/assets/{registry-DpaaVbmL.css → registry-B1KQ1VPZ.css} +1 -1
  238. package/dist/assets/registry-B5S3brjM.css +1 -0
  239. package/dist/assets/registry-BFbfXK-W.js +1 -0
  240. package/dist/assets/registry-BM9FDQxO.js +1 -0
  241. package/dist/assets/registry-BRbEINOV.js +1 -0
  242. package/dist/assets/registry-BSX3aFUw.js +1 -0
  243. package/dist/assets/registry-BZuT2Epw.css +1 -0
  244. package/dist/assets/registry-Bv1f5UU4.js +2 -0
  245. package/dist/assets/registry-C28gYnVq.js +1 -0
  246. package/dist/assets/registry-CPImC7mO.js +1 -0
  247. package/dist/assets/registry-CPiwQhAm.js +1 -0
  248. package/dist/assets/registry-CcOO8UZr.js +1 -0
  249. package/dist/assets/registry-ChQGee7C.js +1 -0
  250. package/dist/assets/registry-Ci65uThi.js +1 -0
  251. package/dist/assets/{registry-upbw6pyj.css → registry-CuVk7MAI.css} +1 -1
  252. package/dist/assets/registry-CvylL2BN.css +1 -0
  253. package/dist/assets/registry-D4Xdd7dO.js +1 -0
  254. package/dist/assets/registry-D8O0apUT.js +2 -0
  255. package/dist/assets/registry-DLyrLfe-.js +1 -0
  256. package/dist/assets/registry-DO4hGO5e.js +1 -0
  257. package/dist/assets/{registry-Xzq_Rpmm.css → registry-DScSjt8p.css} +1 -1
  258. package/dist/assets/registry-D_4_HlMg.js +1 -0
  259. package/dist/assets/registry-Daypk4uR.js +1 -0
  260. package/dist/assets/registry-Dd1lcXrO.js +2 -0
  261. package/dist/assets/{registry-DWcNVyI2.css → registry-DpMI23iE.css} +1 -1
  262. package/dist/assets/registry-DuP_q42N.js +1 -0
  263. package/dist/assets/registry-Vp8VuMV0.js +9 -0
  264. package/dist/assets/registry-WHd1PwU3.js +1 -0
  265. package/dist/assets/registry-Xl8mAnKq.js +1 -0
  266. package/dist/assets/registry-tkd3UhWn.css +1 -0
  267. package/dist/assets/{registry-ei6fIgBT.css → registry-twSIyxJQ.css} +1 -1
  268. package/dist/assets/registry-types-D3q_LrlV.js +1 -0
  269. package/dist/assets/registry-w4R6c89s.js +48 -0
  270. package/dist/assets/{relate-CEND9Qlk.js → relate-BXcg3Ioz.js} +1 -1
  271. package/dist/assets/replay-rSsGKjEc.js +1 -0
  272. package/dist/assets/rolldown-runtime-DkW27tQK.js +1 -0
  273. package/dist/assets/route-D4kd-D3B.js +1 -0
  274. package/dist/assets/{ruby-BhrksQMt.js → ruby-D_UtGFHI.js} +1 -1
  275. package/dist/assets/run-CkaYNX89.js +23 -0
  276. package/dist/assets/run-aj7robML.js +21 -0
  277. package/dist/assets/run-ndUTOxjM.js +21 -0
  278. package/dist/assets/safeImageUrl-BINWXOTz.js +1 -0
  279. package/dist/assets/screen-DFWKge3-.js +1 -0
  280. package/dist/assets/search-ZN7v_P5B.js +1 -0
  281. package/dist/assets/seed-DN4mRJp-.js +1 -0
  282. package/dist/assets/shapes-C5fjibEc.js +42 -0
  283. package/dist/assets/shard005-Dp5TM33O.js +1 -0
  284. package/dist/assets/shard006-DpJfkjmW.js +1 -0
  285. package/dist/assets/shard007-CIQN8OfZ.js +1 -0
  286. package/dist/assets/shard008-BFiyL7r6.js +1 -0
  287. package/dist/assets/shard009-0s30Tkk9.js +1 -0
  288. package/dist/assets/shard010-DPhgF5ck.js +1 -0
  289. package/dist/assets/shard011-C2jVsC25.js +1 -0
  290. package/dist/assets/shard012-DYtN5yzJ.js +1 -0
  291. package/dist/assets/shard013-1D6_Qy9C.js +1 -0
  292. package/dist/assets/shard014-D8s7GHnm.js +1 -0
  293. package/dist/assets/shard015-16W6KgnL.js +1 -0
  294. package/dist/assets/shard016-B4PpWmro.js +1 -0
  295. package/dist/assets/shard017-BO1sA5b3.js +1 -0
  296. package/dist/assets/shard018-D4gn8z25.js +1 -0
  297. package/dist/assets/shard019-vSbfaqRA.js +1 -0
  298. package/dist/assets/shard020-DwbHP8bp.js +1 -0
  299. package/dist/assets/{shard021-2FE-tze4.js → shard021-BhEyVVAL.js} +1 -1
  300. package/dist/assets/shard022-BdT7zFy3.js +1 -0
  301. package/dist/assets/shard023-Dga_NQcm.js +1 -0
  302. package/dist/assets/shard024-CXHofcxc.js +1 -0
  303. package/dist/assets/shard025-a4CQKYw1.js +1 -0
  304. package/dist/assets/shard026-0rhLKfDL.js +1 -0
  305. package/dist/assets/shard027-C9GMfOtn.js +1 -0
  306. package/dist/assets/shard028-D9__rPnw.js +1 -0
  307. package/dist/assets/shard029-BSdYKGgG.js +1 -0
  308. package/dist/assets/shard030-DceOU7pS.js +1 -0
  309. package/dist/assets/shard031-C6_p076r.js +1 -0
  310. package/dist/assets/shard032-Cah16sJi.js +1 -0
  311. package/dist/assets/shard033-D-iobGzc.js +1 -0
  312. package/dist/assets/shard034-DIyfCKl8.js +1 -0
  313. package/dist/assets/shard035-BHWs8v0a.js +1 -0
  314. package/dist/assets/shard036-AhOPHqzq.js +1 -0
  315. package/dist/assets/shard037-CuAGDOOu.js +1 -0
  316. package/dist/assets/shard038-CYdtnPjK.js +1 -0
  317. package/dist/assets/shard039-DgvXKOyi.js +1 -0
  318. package/dist/assets/shard040-DO012waT.js +1 -0
  319. package/dist/assets/shard041-BeUicA1R.js +1 -0
  320. package/dist/assets/shard042-D2zbq14A.js +1 -0
  321. package/dist/assets/shard043-BKoTEB-H.js +1 -0
  322. package/dist/assets/shard044-bmYKfH3A.js +1 -0
  323. package/dist/assets/shard045-i_R1olD9.js +1 -0
  324. package/dist/assets/shard046-CFk2L0GQ.js +1 -0
  325. package/dist/assets/shard047-pjHCnVaT.js +1 -0
  326. package/dist/assets/shard048-Cc7tGz6R.js +1 -0
  327. package/dist/assets/shard049-C9eoD-6Z.js +1 -0
  328. package/dist/assets/shard050-V3c_ZDrB.js +1 -0
  329. package/dist/assets/shard051-D1ISwZzf.js +1 -0
  330. package/dist/assets/shard052-Dy09xx3S.js +1 -0
  331. package/dist/assets/shard053-Bi4Z4cwW.js +1 -0
  332. package/dist/assets/shard054-BoC-LNYu.js +1 -0
  333. package/dist/assets/shard055-D2NJeMN1.js +1 -0
  334. package/dist/assets/shard056-sSFMbxXN.js +1 -0
  335. package/dist/assets/shard057-DhNK5nyZ.js +1 -0
  336. package/dist/assets/shard058-Du4SjxeD.js +1 -0
  337. package/dist/assets/shard059-fGiLnJzG.js +1 -0
  338. package/dist/assets/shard060-l84MDY2t.js +1 -0
  339. package/dist/assets/shard061-B3aIa7Aa.js +1 -0
  340. package/dist/assets/{shard061-C9A8iNiq.js → shard062-BJ8OX6CJ.js} +1 -1
  341. package/dist/assets/shard063-CMo-7Qit.js +1 -0
  342. package/dist/assets/shard064-B0EEOnfG.js +1 -0
  343. package/dist/assets/shard065-D-StlUHp.js +1 -0
  344. package/dist/assets/share-kW3pZ027.js +1 -0
  345. package/dist/assets/shikiHighlight-BwX78OP8.js +153 -0
  346. package/dist/assets/speed-K5_Ebj-8.js +1 -0
  347. package/dist/assets/spokenText-C88IQJ0M.js +1 -0
  348. package/dist/assets/spreadLabels-CQ8hufvK.js +1 -0
  349. package/dist/assets/src-DG1n-LFe.js +1 -0
  350. package/dist/assets/store-B39HvB_l.js +1 -0
  351. package/dist/assets/store-BWLbFXiY.js +1 -0
  352. package/dist/assets/{store-BMRQiV1z.js → store-BfHRbVKz.js} +1 -1
  353. package/dist/assets/store-D-f8ZuaK.js +1 -0
  354. package/dist/assets/store-D2IJF4SA.js +0 -0
  355. package/dist/assets/store-DpObYU1u.js +1 -0
  356. package/dist/assets/store-gohr8YVT.js +1 -0
  357. package/dist/assets/{streamParse-DRgMHWye.js → streamParse-B-Gjwa9T.js} +1 -1
  358. package/dist/assets/svgLabel-BQMDdcT2.js +1 -0
  359. package/dist/assets/swift-CyEgAFGc.js +1 -0
  360. package/dist/assets/theme-7IrMJ70_.js +1 -0
  361. package/dist/assets/threads-Cu2t3070.js +1 -0
  362. package/dist/assets/tiles-CBiVVjtT.css +1 -0
  363. package/dist/assets/tiles-pdNi6MGe.js +1 -0
  364. package/dist/assets/types-C42I77wh.js +1 -0
  365. package/dist/assets/types-CaO6xOn5.js +1 -0
  366. package/dist/assets/useDashboardLoop-B_YA5jLs.js +5 -0
  367. package/dist/assets/useDashboards-GafZIADI.js +1 -0
  368. package/dist/assets/{useFocusTrap-DbfG6zbM.js → useFocusTrap-DBtkeyRy.js} +1 -1
  369. package/dist/assets/useInView-CXTOAEV3.js +1 -0
  370. package/dist/assets/useLedger-1WVXef68.js +1 -0
  371. package/dist/assets/useLiveConfig-DWz7BRdk.js +1 -0
  372. package/dist/assets/useSpatialCanvas-CfmZOXXP.js +1 -0
  373. package/dist/assets/useSpotlightWalk-DxlxBezO.js +1 -0
  374. package/dist/assets/useSrsCards-C27o39fF.js +1 -0
  375. package/dist/assets/useStudy-CFIuakaM.js +1 -0
  376. package/dist/assets/{useTimeout-BRYvu2jQ.js → useTimeout-Cm4yzted.js} +1 -1
  377. package/dist/assets/{useValidatedImage-D2fhA198.js → useValidatedImage-BQi2c66o.js} +1 -1
  378. package/dist/assets/useZoomGesture-CN0p0lHL.js +1 -0
  379. package/dist/assets/validate-CnG23_8J.js +1 -0
  380. package/dist/assets/verbatim-DBTj9sPD.js +1 -0
  381. package/dist/assets/walkSync-AAocUygp.js +1 -0
  382. package/dist/assets/worker-D7eK-Ya8.js +2 -0
  383. package/dist/demo-assets/CREDITS.md +75 -24
  384. package/dist/demo-assets/pdf/cfd-primer.pdf +0 -0
  385. package/dist/demo-assets/video/azores-film.webm +0 -0
  386. package/dist/fonts/LICENSE.txt +32 -28
  387. package/dist/fonts/OFL-1.1.txt +81 -0
  388. package/dist/fonts/PROVENANCE.md +38 -0
  389. package/dist/index.html +24 -17
  390. package/dist/legal/DISCLAIMER.md +4 -1
  391. package/dist/legal/PRIVACY.md +14 -8
  392. package/dist/legal/TERMS.md +11 -1
  393. package/dist/legal/THIRD-PARTY.txt +25248 -621
  394. package/dist/pdfjs/LICENSE_JBIG2 +196 -0
  395. package/dist/pdfjs/LICENSE_OPENJPEG +39 -0
  396. package/dist/pdfjs/LICENSE_PDFJS_JBIG2 +13 -0
  397. package/dist/pdfjs/LICENSE_PDFJS_OPENJPEG +22 -0
  398. package/dist/pdfjs/LICENSE_PDFJS_QCMS +22 -0
  399. package/dist/pdfjs/LICENSE_QCMS +21 -0
  400. package/dist/pdfjs/jbig2.wasm +0 -0
  401. package/dist/pdfjs/openjpeg.wasm +0 -0
  402. package/dist/pdfjs/qcms_bg.wasm +0 -0
  403. package/docker-compose.yml +40 -7
  404. package/docs/media/answer-ink.jpg +0 -0
  405. package/docs/media/canvas-view.jpg +0 -0
  406. package/docs/media/deck-export.jpg +0 -0
  407. package/docs/media/deep-zoom.jpg +0 -0
  408. package/docs/media/doc-export.jpg +0 -0
  409. package/docs/media/doc-prism.jpg +0 -0
  410. package/docs/media/repo-course.jpg +0 -0
  411. package/docs/media/think-map.jpg +0 -0
  412. package/docs/media/trip-plan.jpg +0 -0
  413. package/docs/media/voice-scrub.jpg +0 -0
  414. package/package.json +72 -60
  415. package/voice/start-whisper.sh +28 -0
  416. package/voice/whisper.Dockerfile +44 -0
  417. package/dist/assets/AppCommandPalette-B3E1gTd4.js +0 -1
  418. package/dist/assets/AtlasView-B8b67dk0.js +0 -1
  419. package/dist/assets/BlockEmpty-DQkdduUE.js +0 -1
  420. package/dist/assets/BriefingPlayer-CRKTlKa3.js +0 -1
  421. package/dist/assets/CanvasSkeleton-cQ6KF-6z.js +0 -2
  422. package/dist/assets/CardEditor-DzJXb0G7.js +0 -1
  423. package/dist/assets/CheckLogRail-C6nouD1Y.js +0 -1
  424. package/dist/assets/CheckLogRail-F4AlgAcc.css +0 -1
  425. package/dist/assets/CommandPalette-CSvgbXxg.js +0 -1
  426. package/dist/assets/CourseLessonReader-1KDKwxIj.js +0 -2
  427. package/dist/assets/CourseRail-BijCpApU.js +0 -1
  428. package/dist/assets/CoursesApp-BWkdYL07.js +0 -2
  429. package/dist/assets/CrossExamPanel-Cn7b5y7B.js +0 -1
  430. package/dist/assets/DashPresent-B025i7iJ.js +0 -1
  431. package/dist/assets/DashboardDetail-CZLnxgp0.js +0 -2
  432. package/dist/assets/DashboardLoopRuntime-7MpMUcMg.js +0 -1
  433. package/dist/assets/DashboardOverview-COyleu7v.js +0 -1
  434. package/dist/assets/DashboardSettings-DUfUqbsp.js +0 -1
  435. package/dist/assets/DashboardsApp-6xMz2qCP.js +0 -2
  436. package/dist/assets/DelegatePanel-D4OrMa2D.js +0 -33
  437. package/dist/assets/DemoGallery-Bt92vKqc.js +0 -1
  438. package/dist/assets/DropSelect-Q310fTbf.js +0 -1
  439. package/dist/assets/ExportModal-D0zXlC8w.js +0 -2
  440. package/dist/assets/ExtractionPreview-0SZYynDs.js +0 -18
  441. package/dist/assets/FeatureUseNotice-CoK5HkbR.js +0 -1
  442. package/dist/assets/FlagshipCTA-D845jkdt.js +0 -1
  443. package/dist/assets/FlagshipCommandPalette-DHMnyG7j.js +0 -1
  444. package/dist/assets/FlagshipShowcase-BuR3PZvU.js +0 -1
  445. package/dist/assets/FlashcardsApp-BzWb4cRP.js +0 -1
  446. package/dist/assets/ForecastPanel-lTnux0EB.js +0 -1
  447. package/dist/assets/GalleryApp-D0NGZ1_t.js +0 -1
  448. package/dist/assets/LegalApp-DXDomKFv.js +0 -1
  449. package/dist/assets/LegalPageShell-BG5UUk-9.js +0 -1
  450. package/dist/assets/LegalPageShell-C_HottbD.css +0 -1
  451. package/dist/assets/LeverPanel-CvYnTLjh.js +0 -1
  452. package/dist/assets/Library-Cl1gE9Qg.js +0 -1
  453. package/dist/assets/LibraryOverlay-CX4cJLqD.js +0 -1
  454. package/dist/assets/LiveApp-CDckMWYX.js +0 -61
  455. package/dist/assets/LiveApp-Dj_6EQuL.css +0 -1
  456. package/dist/assets/LiveSettings-DgfIXanM.js +0 -6
  457. package/dist/assets/MindMapViewerDrawer-ClU9wgSH.js +0 -1
  458. package/dist/assets/MindShape-DjHtMW_5.css +0 -1
  459. package/dist/assets/MindShape-yF19n9qq.js +0 -1
  460. package/dist/assets/PinToDashboard-CpIDAcIU.js +0 -1
  461. package/dist/assets/PlanReview-CPcqOxjp.js +0 -1
  462. package/dist/assets/Presence-CHGZ1JRp.js +0 -1
  463. package/dist/assets/PresentationDeck-CrtiWjiM.js +0 -1
  464. package/dist/assets/PrismApp-D7RbekoX.js +0 -2
  465. package/dist/assets/PrismAskController-D6_7Epdb.js +0 -37
  466. package/dist/assets/PrismBriefingPlayer-Dq5_KRU3.js +0 -2
  467. package/dist/assets/PrismOverlay-CduGpA8D.js +0 -131
  468. package/dist/assets/Quiz-CUwtekfu.js +0 -1
  469. package/dist/assets/Recap-BPg2xEPo.js +0 -1
  470. package/dist/assets/ReelJelly-LWeMsFpj.js +0 -1
  471. package/dist/assets/ReplayCard-C3dGQfxG.js +0 -2
  472. package/dist/assets/ReplayOverlay-C9W603B5.js +0 -1
  473. package/dist/assets/RewindOverlay-BIWmxQlx.js +0 -1
  474. package/dist/assets/RippleApp-C9-KFvkn.js +0 -2
  475. package/dist/assets/RippleAskController-DEKz-6Vn.js +0 -34
  476. package/dist/assets/RippleOverlay-CfXvnUHE.js +0 -6
  477. package/dist/assets/SeeDontRead-DrG1qBxJ.js +0 -1
  478. package/dist/assets/ShareModal-eJ6sdMpf.js +0 -32
  479. package/dist/assets/ShipCascade-BP8qL0yM.js +0 -1
  480. package/dist/assets/ShipCourse-BoqW58VU.js +0 -1
  481. package/dist/assets/ShipHotspots-_9XPhZg2.js +0 -1
  482. package/dist/assets/ShipMigration-BdkaiJ9D.js +0 -1
  483. package/dist/assets/ShipOnboarding-CblWatXR.js +0 -1
  484. package/dist/assets/ShipRead-BBn7xkOF.js +0 -1
  485. package/dist/assets/ShipRollout-i5BY3YnP.js +0 -1
  486. package/dist/assets/ShipSuggestions-liytLgC-.js +0 -1
  487. package/dist/assets/ShipWorkspace-C3VQwGn1.js +0 -2
  488. package/dist/assets/SignatureLoop-Ba7plTb5.js +0 -1
  489. package/dist/assets/SrsReview-BoaYb6XN.js +0 -1
  490. package/dist/assets/SrsReview-DmGdGxT0.css +0 -1
  491. package/dist/assets/SynthesisApp-Ch0tWRBS.js +0 -2
  492. package/dist/assets/SynthesisOverlay-DMZndCzV.js +0 -66
  493. package/dist/assets/TopicCanvas-DX0Z1ZHv.js +0 -2
  494. package/dist/assets/TourPrism-6fWPMU4Z.js +0 -1
  495. package/dist/assets/TrackerTile-BboQpBGy.js +0 -2
  496. package/dist/assets/TwoSurfaces-Cabk1rES.js +0 -1
  497. package/dist/assets/UnderstoodPanel-B6jfiKx1.js +0 -1
  498. package/dist/assets/WhyMachineOverlay-BRNibJSf.js +0 -1
  499. package/dist/assets/WowFeatures-C7f4qzIf.js +0 -1
  500. package/dist/assets/ZoomDeck-BtlVyhwv.js +0 -1
  501. package/dist/assets/__vite-browser-external-BufR4LQa.js +0 -1
  502. package/dist/assets/alternateFinishes-CVUX4x0C.js +0 -494
  503. package/dist/assets/annotationAuto-BjWqgseH.js +0 -1
  504. package/dist/assets/annotationReel-B5A2RZkx.js +0 -1
  505. package/dist/assets/annotations-D2K9A5GB.js +0 -1
  506. package/dist/assets/backup-d46KwktS.js +0 -1
  507. package/dist/assets/blockLabel-DAqaHKy3.js +0 -1
  508. package/dist/assets/cache-BumECILO.js +0 -1
  509. package/dist/assets/canvas-BuMP6u6i.js +0 -1
  510. package/dist/assets/catalog-Bv0dWU_C.js +0 -1
  511. package/dist/assets/chapters-Cbe53c3W.js +0 -1
  512. package/dist/assets/charts2-tyUiQPff.js +0 -1
  513. package/dist/assets/chunk-BVpWp9h4.js +0 -1
  514. package/dist/assets/confirmAdd-CWWtX1VN.js +0 -1
  515. package/dist/assets/cpp-BGdv8dzs.js +0 -1
  516. package/dist/assets/cpp-CNAAXZl-.js +0 -1
  517. package/dist/assets/dashboardEvents-Be4sftHN.js +0 -2
  518. package/dist/assets/dashboards-rcWxdoXI.css +0 -1
  519. package/dist/assets/dist-xRGLOZwv.js +0 -14
  520. package/dist/assets/explode-WBykfhqW.js +0 -13
  521. package/dist/assets/facts-BBTt3ImG.js +0 -1
  522. package/dist/assets/fit-CuHWhwsj.js +0 -1
  523. package/dist/assets/fitText-CDFmCQzl.js +0 -1
  524. package/dist/assets/format-DlZTyeMy.js +0 -1
  525. package/dist/assets/generateBeats-b64CL54v.js +0 -1
  526. package/dist/assets/generateLive-CMbGT3eM.js +0 -52
  527. package/dist/assets/githubBrowser-DywfDeYx.js +0 -1
  528. package/dist/assets/githubToken-DtcLYqwm.js +0 -11
  529. package/dist/assets/homeTarget-BcZYH3DY.js +0 -1
  530. package/dist/assets/http-CJCtjYpA.js +0 -2
  531. package/dist/assets/index-CepQEz75.css +0 -1
  532. package/dist/assets/index-Dbr1j8Fe.js +0 -22
  533. package/dist/assets/index.es-CRLiWwiA.js +0 -5
  534. package/dist/assets/jspdf.es.min-ydC1TxUW.js +0 -79
  535. package/dist/assets/jsx-runtime-DaSxXjOY.js +0 -1
  536. package/dist/assets/katex-BMCG0xok.js +0 -257
  537. package/dist/assets/keyVault-DEsNh9FR.js +0 -1
  538. package/dist/assets/kokoro-DsmNzulR.js +0 -1
  539. package/dist/assets/layout-BFQOzXtG.js +0 -1
  540. package/dist/assets/leaflet-src-C_xhOQY7.js +0 -1
  541. package/dist/assets/learn-DVfqN-nf.js +0 -1
  542. package/dist/assets/lib-B6qSkBPa.js +0 -1
  543. package/dist/assets/liveSchema-B1MGdSkK.js +0 -99
  544. package/dist/assets/motion-luJxBPnj.js +0 -1
  545. package/dist/assets/notes-3WQ6b0Mi.js +0 -1
  546. package/dist/assets/officeDoc-B6nEhNp4.js +0 -3
  547. package/dist/assets/openchemlib-nMLMmg26.js +0 -23
  548. package/dist/assets/pdf-RyoPCIGN.js +0 -11
  549. package/dist/assets/pdf.worker.min-yatZIOMy.mjs +0 -21
  550. package/dist/assets/pin-Bya3BL_a.css +0 -1
  551. package/dist/assets/pin-Cj-LMfpK.js +0 -1
  552. package/dist/assets/planTracker-7AMCQPNx.js +0 -1
  553. package/dist/assets/portal-zyqZwnb1.js +0 -1
  554. package/dist/assets/predictions-CYS7Vo39.js +0 -1
  555. package/dist/assets/prism.generated-BhbHDHR6.js +0 -41
  556. package/dist/assets/prismGround.worker-CIvKqxm2.js +0 -1
  557. package/dist/assets/prismLayout.worker-CZO2CY7B.js +0 -1
  558. package/dist/assets/providers-wzm7E8Pa.js +0 -1
  559. package/dist/assets/purify.es-adlwq8Pz.js +0 -3
  560. package/dist/assets/quietHours-BklvMqsV.js +0 -1
  561. package/dist/assets/react-BQSORdFI.js +0 -1
  562. package/dist/assets/registry-1h9idbfk.js +0 -2
  563. package/dist/assets/registry-2zthbrHC.js +0 -1
  564. package/dist/assets/registry-4O5l9cd5.js +0 -1
  565. package/dist/assets/registry-5a-E7vEN.css +0 -1
  566. package/dist/assets/registry-BRB85vr4.js +0 -2
  567. package/dist/assets/registry-BVHiKEwE.css +0 -1
  568. package/dist/assets/registry-BcZXBr3y.css +0 -1
  569. package/dist/assets/registry-BdMZ_4cm.js +0 -2
  570. package/dist/assets/registry-Bnp_yh8G.js +0 -4
  571. package/dist/assets/registry-C1IrZBk8.js +0 -1
  572. package/dist/assets/registry-C5DK98Hl.js +0 -1
  573. package/dist/assets/registry-CK0-re_Q.js +0 -49
  574. package/dist/assets/registry-COrl_Heq.js +0 -1
  575. package/dist/assets/registry-CQUQlrSx.js +0 -1
  576. package/dist/assets/registry-CXa3qXl3.js +0 -1
  577. package/dist/assets/registry-C_baBbqq.js +0 -5
  578. package/dist/assets/registry-CjY5POtx.js +0 -1
  579. package/dist/assets/registry-CoBAqOlY.js +0 -1
  580. package/dist/assets/registry-D5oMqeSa.js +0 -1
  581. package/dist/assets/registry-DJj-o3MQ.js +0 -1
  582. package/dist/assets/registry-DVzLacl_.css +0 -1
  583. package/dist/assets/registry-DfCCnIfu.js +0 -1
  584. package/dist/assets/registry-DfgFkD3J.js +0 -1
  585. package/dist/assets/registry-Dhlx1mF4.js +0 -1
  586. package/dist/assets/registry-Dkc7hN5T.js +0 -1
  587. package/dist/assets/registry-DmQlNN3y.js +0 -1
  588. package/dist/assets/registry-DnEh7nbX.js +0 -1
  589. package/dist/assets/registry-VD94nLXO.js +0 -1
  590. package/dist/assets/registry-aIH-Im5Y.css +0 -1
  591. package/dist/assets/registry-mFD4P5dI.js +0 -1
  592. package/dist/assets/registry-sDzDmht4.js +0 -1
  593. package/dist/assets/registry-types-DMuK0vJ6.js +0 -1
  594. package/dist/assets/run-BYP2YlZT.js +0 -23
  595. package/dist/assets/run-DSVvshaB.js +0 -21
  596. package/dist/assets/run-Dc2ZJz6n.js +0 -21
  597. package/dist/assets/safeImageUrl-CUkucDUu.js +0 -1
  598. package/dist/assets/screen-DLR7p_yP.js +0 -1
  599. package/dist/assets/search-Be63DJkp.js +0 -1
  600. package/dist/assets/shapes-Cw7tCHIp.js +0 -1
  601. package/dist/assets/shard005-DLVkh9IH.js +0 -1
  602. package/dist/assets/shard006-B6efKHov.js +0 -1
  603. package/dist/assets/shard007-AFdZLe38.js +0 -1
  604. package/dist/assets/shard008-LbSBzwRx.js +0 -1
  605. package/dist/assets/shard009-D_6-SUDb.js +0 -1
  606. package/dist/assets/shard010-DbOj-uZW.js +0 -1
  607. package/dist/assets/shard011-BYSz7EEW.js +0 -1
  608. package/dist/assets/shard012-B5Ypj7OV.js +0 -1
  609. package/dist/assets/shard013-BtsliNIe.js +0 -1
  610. package/dist/assets/shard014-15sjmk68.js +0 -1
  611. package/dist/assets/shard015-nnXrqru_.js +0 -1
  612. package/dist/assets/shard016-BayXFE13.js +0 -1
  613. package/dist/assets/shard017-Cy4cGexs.js +0 -1
  614. package/dist/assets/shard018-aO-BYJ8H.js +0 -1
  615. package/dist/assets/shard019-gxaTeA3I.js +0 -1
  616. package/dist/assets/shard020-BibJdMI0.js +0 -1
  617. package/dist/assets/shard022-IXiyG-JK.js +0 -1
  618. package/dist/assets/shard023-314F6NJS.js +0 -1
  619. package/dist/assets/shard024-cN5rpQ_X.js +0 -1
  620. package/dist/assets/shard025-KKTaXOGE.js +0 -1
  621. package/dist/assets/shard026-C2Dkd1t6.js +0 -1
  622. package/dist/assets/shard027-Xy-8x9As.js +0 -1
  623. package/dist/assets/shard028-Bul-klUj.js +0 -1
  624. package/dist/assets/shard029-BbRSUcUZ.js +0 -1
  625. package/dist/assets/shard030-GYllsFVC.js +0 -1
  626. package/dist/assets/shard031-DMigeiyn.js +0 -1
  627. package/dist/assets/shard032-CcvmzK0l.js +0 -1
  628. package/dist/assets/shard033-11AU702M.js +0 -1
  629. package/dist/assets/shard034-Bx3urxjM.js +0 -1
  630. package/dist/assets/shard035-DBdEeyCt.js +0 -1
  631. package/dist/assets/shard036-vYgoRBqS.js +0 -1
  632. package/dist/assets/shard037-DP4MMw91.js +0 -1
  633. package/dist/assets/shard038-ffxsv7d6.js +0 -1
  634. package/dist/assets/shard039-C1JHHNp9.js +0 -1
  635. package/dist/assets/shard040-JbVvCSO_.js +0 -1
  636. package/dist/assets/shard041-5L_eFwGx.js +0 -1
  637. package/dist/assets/shard042-C9nsGL79.js +0 -1
  638. package/dist/assets/shard043-Dx_9HSKI.js +0 -1
  639. package/dist/assets/shard044-B3QQNC4A.js +0 -1
  640. package/dist/assets/shard045-B7z0WHO6.js +0 -1
  641. package/dist/assets/shard046-D1yDablJ.js +0 -1
  642. package/dist/assets/shard047-DJi3AgeT.js +0 -1
  643. package/dist/assets/shard048-D_2ipfUr.js +0 -1
  644. package/dist/assets/shard049-1aGgWZdd.js +0 -1
  645. package/dist/assets/shard050-Bjwa0Og4.js +0 -1
  646. package/dist/assets/shard051-Cx_GAk3v.js +0 -1
  647. package/dist/assets/shard052-LaeOD3V5.js +0 -1
  648. package/dist/assets/shard053-D-da7Foj.js +0 -1
  649. package/dist/assets/shard054-CM8eSRQk.js +0 -1
  650. package/dist/assets/shard055-QRpDl4Vs.js +0 -1
  651. package/dist/assets/shard056-DkY7CQm3.js +0 -1
  652. package/dist/assets/shard057-BVCgf7o0.js +0 -1
  653. package/dist/assets/shard058-93aGtdrX.js +0 -1
  654. package/dist/assets/shard059-rJE9X1_I.js +0 -1
  655. package/dist/assets/shard060-Lu_hfl1r.js +0 -1
  656. package/dist/assets/shard062-BBIpEYZO.js +0 -1
  657. package/dist/assets/shard063-C_uen3Ub.js +0 -1
  658. package/dist/assets/shard064-DAHUsHST.js +0 -1
  659. package/dist/assets/share-QHGHNDhQ.js +0 -1
  660. package/dist/assets/shikiHighlight-SCFIB43b.js +0 -153
  661. package/dist/assets/speed-DwPw9KSv.js +0 -1
  662. package/dist/assets/spokenText-D4zPX9JY.js +0 -1
  663. package/dist/assets/src-B-t8Mww-.js +0 -2
  664. package/dist/assets/store-DXmC_fP2.js +0 -0
  665. package/dist/assets/store-Dn23_Ymr.js +0 -1
  666. package/dist/assets/store-DoJn3lBF.js +0 -1
  667. package/dist/assets/store-DrBDvqXF.js +0 -1
  668. package/dist/assets/swift-DonLKvLd.js +0 -1
  669. package/dist/assets/threads-CkMgrSDP.js +0 -1
  670. package/dist/assets/useDashboardLoop-C8Mcbcto.js +0 -5
  671. package/dist/assets/useLiveConfig-BW1WkpTc.js +0 -1
  672. package/dist/assets/useSpatialCanvas-C5TNlpeK.js +0 -1
  673. package/dist/assets/useSpotlightWalk-dA3IdI-1.js +0 -1
  674. package/dist/assets/useSrsCards-C7Xni9C0.js +0 -1
  675. package/dist/assets/useStudy-DHRIx8p-.js +0 -1
  676. package/dist/assets/useZoomGesture-BsPXvLw2.js +0 -1
  677. package/dist/assets/verbatim-CBMzUDlf.js +0 -1
  678. package/dist/assets/worker-BbLKfGzm.js +0 -2
  679. package/dist/demo-assets/video/azores-film.mp4 +0 -0
  680. /package/dist/assets/{shard065-C2edvdvh.js → shard066-C2edvdvh.js} +0 -0
  681. /package/dist/assets/{shard066-DFcuVhZm.js → shard067-DFcuVhZm.js} +0 -0
  682. /package/dist/assets/{shard067-BN8DM8JZ.js → shard068-BN8DM8JZ.js} +0 -0
  683. /package/dist/assets/{shard068-i464K77p.js → shard069-i464K77p.js} +0 -0
  684. /package/dist/assets/{shard069-Dm9m2a5U.js → shard070-Dm9m2a5U.js} +0 -0
  685. /package/dist/assets/{shard070-BPVvR8GH.js → shard071-BPVvR8GH.js} +0 -0
  686. /package/dist/assets/{shard071-Bal_0d9L.js → shard072-Bal_0d9L.js} +0 -0
  687. /package/dist/assets/{shard072-CBQu62kt.js → shard073-CBQu62kt.js} +0 -0
  688. /package/dist/assets/{shard073-D5BRae0w.js → shard074-D5BRae0w.js} +0 -0
  689. /package/dist/assets/{shard074-DtFvcBnZ.js → shard075-DtFvcBnZ.js} +0 -0
  690. /package/dist/assets/{queue-DHeyJ32F.css → templates-DHeyJ32F.css} +0 -0
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{t as n}from"./useFocusTrap-DbfG6zbM.js";import{n as r}from"./queue-J4h7E3uc.js";import{m as i,o as a,u as o}from"./store-DXmC_fP2.js";var s=e(),c={spaced:{eyebrow:`REVIEW`,dialogLabel:`Review your cards`,emptyHead:`Nothing ready`,emptySub:`No cards are ready to study here yet.`,doneHead:`Session done`,doneSub:(e,t)=>`${e} of ${t} answered confidently.`,moreLeft:`That's this round. The rest will keep.`,filters:[{key:`all`,label:`All`,showCount:!0},{key:`due`,label:`Due`,showCount:!0},{key:`new`,label:`New`,showCount:!0},{key:`struggling`,label:`Struggling`,showCount:!0},{key:`suspended`,label:`Suspended`,showCount:!0}],filterAdjective:{due:`Due`,new:`New`,struggling:`Struggling`},status:{parked:`Suspended`,fresh:`New`,touched:`Scheduled`},parkVerb:{park:`Suspend`,unpark:`Unsuspend`,title:`Suspend (skip in study)`}},collection:{eyebrow:`FLASHCARDS`,dialogLabel:`Flip through your cards`,emptyHead:`Nothing to flip`,emptySub:`No cards here yet. Tap "Cards" on any answer to start a pile.`,doneHead:`Done`,doneSub:(e,t)=>`You got ${e} of ${t}.`,moreLeft:`That's this round. The rest will keep.`,filters:[{key:`all`,label:`All`,showCount:!0},{key:`unseen`,label:`Unseen`,showCount:!1},{key:`missed`,label:`Missed`,showCount:!1},{key:`suspended`,label:`Parked`,showCount:!1}],filterAdjective:{unseen:`Unseen`,missed:`Missed`},status:{parked:`Parked`,fresh:`Unseen`,touched:`Seen`},parkVerb:{park:`Park`,unpark:`Unpark`,title:`Park (skip in study)`}}};function l(e){return c[e]}var u=t(),d={spaced:[{key:`again`,label:`Again`,tint:`var(--danger)`,good:!1,apply:e=>i(e,0)},{key:`hard`,label:`Hard`,tint:`var(--warning)`,good:!1,apply:e=>i(e,2)},{key:`good`,label:`Good`,tint:`var(--presence)`,good:!0,apply:e=>i(e,4)},{key:`easy`,label:`Easy`,tint:`var(--insight)`,good:!0,apply:e=>i(e,5)}],collection:[{key:`missed`,label:`Not yet`,tint:`var(--warning)`,good:!1,requeue:!0,apply:e=>o(e,!1)},{key:`got`,label:`Got it`,tint:`var(--presence)`,good:!0,apply:e=>o(e,!0)}]};function f({onClose:e,scope:t,title:i}){let o=(0,s.useRef)(null);n(o);let c=(0,s.useMemo)(()=>a(),[]),f=l(c),p=d[c],[m]=(0,s.useState)(()=>r(t??{})),[h,g]=(0,s.useState)(0),[_,v]=(0,s.useState)(!1),[y,b]=(0,s.useState)(!1),[x,S]=(0,s.useState)(0),[C,w]=(0,s.useState)(()=>Object.fromEntries(p.map(e=>[e.key,0]))),[T,E]=(0,s.useState)([]),D=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{let t=t=>{if(t.key===`Escape`){e();return}if(!y&&m.length!==0){if(t.key===` `&&!_){t.preventDefault(),v(!0);return}if(_){let e=Number(t.key);Number.isInteger(e)&&e>=1&&e<=p.length&&k(p[e-1])}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[_,y,m.length,e,p]);let O=(0,s.useRef)(()=>{}),k=(0,s.useCallback)(e=>{O.current(e)},[]);(0,s.useEffect)(()=>{O.current=e=>{let t=[...m,...T];if(h>=t.length)return;let n=t[h];e.apply(n.id),e.good&&S(e=>e+1),w(t=>({...t,[e.key]:(t[e.key]??0)+1}));let r=T;e.requeue&&!D.current.has(n.id)&&(D.current.add(n.id),r=[...T,n],E(r));let i=h+1;i>=m.length+r.length?b(!0):(g(i),v(!1))}},[h,m,T]);let A=[...m,...T],j=A[h],M=m.length,N=h>=M?`${A.length-h} to look at again`:`${h+1} / ${M}`,P=t=>{t.target===t.currentTarget&&e()};return(0,u.jsx)(`div`,{className:`srs-scrim`,role:`button`,tabIndex:0,"aria-label":`Close`,onClick:P,onKeyDown:e=>{e.key!==`Enter`&&e.key!==` `||(e.key===` `&&e.preventDefault(),P(e))},children:(0,u.jsxs)(`div`,{className:`srs-shell`,ref:o,role:`dialog`,"aria-label":f.dialogLabel,tabIndex:-1,children:[(0,u.jsxs)(`div`,{className:`srs-header`,children:[(0,u.jsx)(`div`,{className:`srs-eyebrow`,children:i??f.eyebrow}),M>0&&!y&&(0,u.jsx)(`div`,{className:`srs-progress`,children:N}),(0,u.jsx)(`button`,{type:`button`,className:`srs-close-btn`,onClick:e,"aria-label":`Close review session`,children:`✕`})]}),M===0&&(0,u.jsxs)(`div`,{className:`srs-center`,children:[(0,u.jsx)(`div`,{className:`srs-big-icon`,"aria-hidden":`true`,children:`✓`}),(0,u.jsx)(`div`,{className:`srs-done-head`,children:f.emptyHead}),(0,u.jsx)(`div`,{className:`srs-done-sub`,children:f.emptySub}),(0,u.jsx)(`button`,{type:`button`,className:`srs-close-action`,onClick:e,children:`Close`})]}),y&&(0,u.jsxs)(`div`,{className:`srs-center`,children:[(0,u.jsx)(`div`,{className:`srs-big-icon`,"aria-hidden":`true`,children:`🎉`}),(0,u.jsx)(`div`,{className:`srs-done-head`,children:f.doneHead}),(0,u.jsx)(`div`,{className:`srs-done-sub`,children:f.doneSub(x,M)}),(0,u.jsx)(`div`,{className:`srs-done-breakdown`,"aria-label":`How it went`,children:p.map(e=>(0,u.jsxs)(`span`,{className:`srs-done-chip`,style:{borderColor:e.tint},children:[(0,u.jsx)(`span`,{className:`srs-done-chip-n`,children:C[e.key]??0}),e.label]},e.key))}),(0,u.jsx)(`button`,{type:`button`,className:`srs-close-action`,onClick:e,children:`Close`})]}),M>0&&!y&&j&&(0,u.jsxs)(`div`,{className:`srs-body`,children:[j.deck&&(0,u.jsx)(`div`,{className:`srs-tag`,children:j.deck}),(0,u.jsx)(`div`,{className:`srs-flip-scene`,onClick:()=>{_||v(!0)},role:`button`,tabIndex:0,"aria-label":_?`Card back`:`Tap to reveal answer`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&!_&&(e.preventDefault(),v(!0))},children:(0,u.jsxs)(`div`,{className:`srs-flip-card${_?` flipped`:``}`,children:[(0,u.jsxs)(`div`,{className:`srs-face srs-face-front`,children:[(0,u.jsx)(`div`,{className:`srs-face-label`,children:`QUESTION`}),(0,u.jsx)(`div`,{className:`srs-face-text`,children:j.front}),(0,u.jsx)(`div`,{className:`srs-tap-hint`,children:`tap to flip`})]}),(0,u.jsxs)(`div`,{className:`srs-face srs-face-back`,children:[(0,u.jsx)(`div`,{className:`srs-face-label`,children:`ANSWER`}),(0,u.jsx)(`div`,{className:`srs-face-text`,children:j.back})]})]})}),_&&(0,u.jsx)(`div`,{className:`srs-grades`,"data-count":p.length,children:p.map((e,t)=>(0,u.jsxs)(`button`,{type:`button`,className:`srs-grade-btn`,style:{border:`1px solid ${e.tint}`},onClick:()=>k(e),title:`Press ${t+1}`,children:[(0,u.jsx)(`span`,{className:`srs-grade-label`,children:e.label}),(0,u.jsx)(`span`,{className:`srs-grade-key`,children:t+1})]},e.key))}),!_&&(0,u.jsx)(`div`,{className:`srs-flip-prompt`,children:`Space to flip · Escape to close`})]})]})})}export{f as SrsReview,l as t};
@@ -1 +0,0 @@
1
- .srs-scrim{z-index:90;background:rgba(var(--scrim-rgb), .72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.srs-shell{background:var(--surface-elevated);border:1px solid var(--line-soft);width:min(520px,100%);box-shadow:var(--shadow-modal);border-radius:20px;flex-direction:column;display:flex;position:relative;overflow:hidden}.srs-header{border-bottom:1px solid var(--line-soft);align-items:center;gap:12px;padding:20px 24px 16px;display:flex}.srs-eyebrow{font:700 10.5px/1 var(--font);letter-spacing:.14em;color:var(--text-muted)}.srs-progress{font:600 13px/1 var(--font);color:var(--text-secondary);margin-left:auto}.srs-close-btn{border:1px solid var(--line-soft);width:30px;height:30px;color:var(--text-muted);cursor:pointer;transition:color var(--m-quick), border-color var(--m-quick);background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;font-size:13px;line-height:1;display:flex}.srs-close-btn:hover{color:var(--text-primary);border-color:var(--line-mid)}.srs-header:has(.srs-progress) .srs-close-btn{margin-left:0}.srs-body{flex-direction:column;align-items:center;gap:20px;padding:28px 24px;display:flex}.srs-tag{font:600 10.5px/1 var(--font);letter-spacing:.1em;text-transform:uppercase;color:var(--presence-soft);background:color-mix(in oklab, var(--presence) 14%, transparent);border:1px solid color-mix(in oklab, var(--presence) 30%, transparent);border-radius:var(--r-full);padding:4px 12px}.srs-flip-scene{perspective:1000px;cursor:pointer;width:100%}.srs-flip-card{width:100%;min-height:200px;transform-style:preserve-3d;transition:transform .42s cubic-bezier(.4,0,.2,1);position:relative}.srs-flip-card.flipped{transform:rotateY(180deg)}.srs-face{backface-visibility:hidden;border-radius:14px;flex-direction:column;gap:12px;min-height:200px;padding:28px 28px 20px;display:flex;position:absolute;inset:0}.srs-face-front{background:var(--surface-elevated-2);border:1px solid var(--line-soft)}.srs-face-back{background:color-mix(in oklab, var(--insight) 8%, var(--surface-elevated));border:1px solid color-mix(in oklab, var(--insight) 28%, transparent);transform:rotateY(180deg)}.srs-face-label{font:700 9.5px/1 var(--font);letter-spacing:.16em;text-transform:uppercase;color:var(--text-faint)}.srs-face-text{font:450 18px/1.55 var(--font);color:var(--text-primary);word-break:break-word;flex:1}.srs-tap-hint{font:450 11.5px/1 var(--font);color:var(--text-faint);text-align:right;margin-top:auto}.srs-grades{gap:10px;width:100%;display:flex}@media (width<=480px){.srs-grades{grid-template-columns:1fr 1fr;display:grid}}.srs-grades[data-count="2"]{max-width:420px;margin-inline:auto}.srs-grade-btn{border-radius:var(--r-md);cursor:pointer;transition:background var(--m-quick);background:0 0;flex-direction:column;flex:1;align-items:center;gap:0;padding:11px 8px;display:flex}.srs-grade-btn:hover{background:var(--surface-glass)}.srs-grade-label{font:600 13.5px/1 var(--font);color:var(--text-primary);display:block}.srs-grade-key{font:500 10px/1 var(--font);color:var(--text-muted);margin-top:4px;display:block}.srs-flip-prompt{font:450 11.5px/1 var(--font);color:var(--text-faint);text-align:center}.srs-center{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:48px 24px 40px;display:flex}.srs-big-icon{color:var(--text-secondary);font-size:48px;line-height:1}.srs-done-head{font:700 22px/1.2 var(--font);color:var(--text-primary)}.srs-done-sub{font:450 14px/1.55 var(--font);color:var(--text-secondary);max-width:320px}.srs-done-breakdown{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px;display:flex}.srs-done-chip{border:1px solid var(--line-mid);border-radius:var(--r-full);font:500 12px/1 var(--font);color:var(--text-secondary);align-items:center;gap:6px;padding:5px 11px;display:inline-flex}.srs-done-chip-n{font:700 13px/1 var(--font);color:var(--text-primary)}.srs-close-action{border-radius:var(--r-full);border:1px solid var(--line-mid);color:var(--text-primary);font:600 14px/1 var(--font);cursor:pointer;transition:background var(--m-quick), border-color var(--m-quick);background:0 0;margin-top:8px;padding:10px 28px}.srs-close-action:hover{background:var(--surface-glass)}
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PrismOverlay-CduGpA8D.js","assets/index-Dbr1j8Fe.js","assets/chunk-BVpWp9h4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/providers-wzm7E8Pa.js","assets/http-CJCtjYpA.js","assets/info-CiqHR5cs.js","assets/sourceHost-BV3t2XDb.js","assets/toast-BBNs2h3L.js","assets/penStrokes-DlHnO9xE.js","assets/gesture-Bouqjr3g.js","assets/citation-BcvmjKS8.js","assets/verbatim-CBMzUDlf.js","assets/officeDoc-B6nEhNp4.js","assets/search-Be63DJkp.js","assets/streamParse-DRgMHWye.js","assets/useFocusTrap-DbfG6zbM.js","assets/PrismOverlay-BTfAicBt.css","assets/SynthesisOverlay-DMZndCzV.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{I as n,J as r,L as i,M as a,N as o,k as s,q as c}from"./index-Dbr1j8Fe.js";import{n as l}from"./icons-CHVz6kv_.js";import{t as u}from"./FeatureUseNotice-CoK5HkbR.js";import{a as d,g as f,o as p,p as m,u as h}from"./providers-wzm7E8Pa.js";import{t as g}from"./homeTarget-BcZYH3DY.js";import{l as _,n as v}from"./useLiveConfig-BW1WkpTc.js";/* empty css */import{n as y,r as b}from"./officeDoc-B6nEhNp4.js";var x=e(),S=/\.(pdf|docx|pptx|xlsx|csv|tsv|txt|text|md|markdown|json|jsonl|ndjson|ya?ml|toml|xml|log|tab|js|ts|jsx|tsx|py|rb|go|rs|java|c|h|cpp|cs|sh|sql|css|html?)$/i,C=/(^|\/)(\.git|node_modules|\.DS_Store|__pycache__|\.venv|dist|build|__MACOSX)(\/|$)/i;function w(e){return e.filter(e=>{let t=e.webkitRelativePath||e.name;return S.test(e.name)&&!C.test(t)})}async function T(e,t={}){let{max:n=200,onProgress:r}=t,i=w(e),a=i.slice(0,n),o=[];for(let e=0;e<a.length;e+=1){let t=await m(a[e]);t.ok&&t.attachment&&o.push(t.attachment),r?.(e+1,a.length)}return{sources:o,skipped:i.length-o.length}}var E={docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`};function D(e){let t=e.split(`.`).pop()?.toLowerCase()??``;return t===`pdf`?`application/pdf`:E[t]??``}async function O(e){let t;try{t=await b(e.data?y(e.data):await p(e))}catch{return[]}if(!t)return[];let n=[];for(let[e,r]of t){if(n.length>=200)break;if(e.endsWith(`/`)||r.length===0||C.test(e))continue;let t=e.split(`/`).pop()??e;if(!t||t.startsWith(`.`))continue;let i={name:t,mime:D(t),data:``,size:r.length,bytes:Uint8Array.from(r).buffer};f(i)&&n.push(i)}return n}function k(e){return e.mime===`application/zip`||e.mime===`application/x-zip-compressed`||/\.zip$/i.test(e.name)}var A=[[`Foci et al. 2024. In the treatment arm we observed 42% improvement at 12 weeks on the primary endpoint. No serious adverse events were reported over the study period.`],[`Maso et al. 2023. Across the full cohort there was no significant effect at 24 weeks on the relapse rate, a secondary endpoint.`],[`Nyra 2024. The trial recorded 38% improvement at 12 weeks in the treatment arm, with mild adverse events in 12% of patients. Adoption remains limited outside academic centers.`],[`Cost Review 2023. The analysis finds the annual treatment cost is $18,400 per patient at list price.`],[`Ledger 2022. After rebates, the intervention costs $9,200 per patient annually.`],[`Adoption Survey 2024. Among surveyed sites, 62% of clinics adopted the protocol within the first year.`]],j={sources:[{id:`s0`,fileName:`foci-2024.pdf`,kind:`pdf`,pageCount:1,label:`Foci et al. 2024`},{id:`s1`,fileName:`maso-2023.pdf`,kind:`pdf`,pageCount:1,label:`Maso et al. 2023`},{id:`s2`,fileName:`nyra-2024.pdf`,kind:`pdf`,pageCount:1,label:`Nyra 2024`},{id:`s3`,fileName:`cost-review-2023.pdf`,kind:`pdf`,pageCount:1,label:`Cost Review 2023`},{id:`s4`,fileName:`ledger-2022.pdf`,kind:`pdf`,pageCount:1,label:`Ledger 2022`},{id:`s5`,fileName:`adoption-survey-2024.pdf`,kind:`pdf`,pageCount:1,label:`Adoption Survey 2024`}],themes:[{id:`Efficacy`,name:`Efficacy`,sourceCount:3,claimCount:3},{id:`Safety`,name:`Safety`,sourceCount:2,claimCount:2},{id:`Cost`,name:`Cost`,sourceCount:2,claimCount:2},{id:`Adoption`,name:`Adoption`,sourceCount:2,claimCount:2}],claims:[{id:`s0c0`,quote:`42% improvement at 12 weeks on the primary endpoint`,page:1,kind:`stat`,title:`42% improvement at 12 weeks`,ask:`On which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:0},{id:`s1c0`,quote:`no significant effect at 24 weeks on the relapse rate`,page:1,kind:`finding`,title:`No effect at 24 weeks`,ask:`Which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:1},{id:`s2c0`,quote:`38% improvement at 12 weeks in the treatment arm`,page:1,kind:`stat`,title:`38% improvement at 12 weeks`,ask:`How measured?`,role:`supporting`,region:`Efficacy`,source:2},{id:`s0c1`,quote:`No serious adverse events were reported`,page:1,kind:`finding`,title:`No serious adverse events`,ask:`Over what period?`,role:`supporting`,region:`Safety`,source:0},{id:`s2c1`,quote:`mild adverse events in 12% of patients`,page:1,kind:`risk`,title:`Mild adverse events in 12%`,ask:`Which events?`,role:`supporting`,region:`Safety`,source:2},{id:`s3c0`,quote:`annual treatment cost is $18,400 per patient`,page:1,kind:`stat`,title:`Cost $18,400 per patient`,ask:`List or net price?`,role:`load-bearing`,region:`Cost`,source:3},{id:`s4c0`,quote:`the intervention costs $9,200 per patient annually`,page:1,kind:`stat`,title:`Cost $9,200 per patient`,ask:`Before or after rebates?`,role:`load-bearing`,region:`Cost`,source:4},{id:`s5c0`,quote:`62% of clinics adopted the protocol`,page:1,kind:`stat`,title:`62% of clinics adopted`,ask:`Over what window?`,role:`supporting`,region:`Adoption`,source:5},{id:`s2c2`,quote:`Adoption remains limited outside academic centers`,page:1,kind:`finding`,title:`Limited outside academia`,ask:`Why limited?`,role:`context`,region:`Adoption`,source:2}],threads:[{a:`s0c0`,b:`s1c0`,relation:`in-tension`,crossDoc:!0},{a:`s3c0`,b:`s4c0`,relation:`contradicts`,crossDoc:!0},{a:`s0c0`,b:`s2c0`,relation:`agrees`,crossDoc:!0}],contradictions:[{id:`x0`,theme:`Efficacy`,a:`s0c0`,b:`s1c0`,relation:`in-tension`,sharedQuantity:`drug efficacy`,comparable:!1,caveat:`timeframe`,label:`Two trials disagree on efficacy`,seedQuestion:`Are these comparable? "42% improvement at 12 weeks" (12week) vs "No effect at 24 weeks" (24week) — do they measure the same endpoint, population, and timeframe?`},{id:`x1`,theme:`Cost`,a:`s3c0`,b:`s4c0`,relation:`contradicts`,sharedQuantity:`annual treatment cost`,comparable:!0,matchPhrase:`per patient`,delta:{aValue:18400,bValue:9200,unit:`$`},label:`Sources disagree on annual treatment cost`,seedQuestion:`Are these comparable? "Cost $18,400 per patient" (unspecified scope) vs "Cost $9,200 per patient" (unspecified scope) — do they measure the same endpoint, population, and timeframe?`}],gaps:[{id:`g0`,theme:`Safety`,facet:{id:`f0`,label:`Pediatric population`,surfaceForms:[`pediatric`,`paediatric`,`children`,`under 18`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`pediatric`,`paediatric`,`children`,`under 18`],label:`No coverage — Pediatric population`},{id:`g1`,theme:`Efficacy`,facet:{id:`f1`,label:`Long-term outcomes`,surfaceForms:[`long-term`,`long term`,`follow-up`,`5-year`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`long-term`,`long term`,`follow-up`,`5-year`],label:`No coverage — Long-term outcomes`}],consensus:[{id:`c0`,theme:`Efficacy`,proposition:`The treatment improves the primary endpoint at 12 weeks.`,memberClaimIds:[`s0c0`,`s2c0`],sourceCount:2,corpusSize:6,band:{unit:`%`,min:38,max:42}}],counts:{contradictions:2,gaps:2,consensus:2},pageCount:6},M=t();r();var N=n(()=>c(()=>import(`./PrismOverlay-CduGpA8D.js`).then(e=>({default:e.PrismOverlay})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),P=n(()=>c(()=>import(`./SynthesisOverlay-DMZndCzV.js`).then(e=>({default:e.SynthesisOverlay})),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,0,11,12,13,14,15,16,17,18,19,20,21]))),F=N.Component,I=P.Component,L=Math.round(d/(1024*1024));async function R(e){return{name:e.name,mime:e.type||`application/zip`,data:``,size:e.size,file:e}}function z(){let e=g();(0,x.useEffect)(()=>a(o()),[]);let[t,n]=(0,x.useState)([]),[r,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),[y,b]=(0,x.useState)(null),S=(0,x.useRef)(null),C=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=C.current;e&&(e.setAttribute(`webkitdirectory`,``),e.setAttribute(`directory`,``))},[]);let w=(0,x.useMemo)(()=>_(v()),[]),[E]=(0,x.useState)(()=>new URLSearchParams(window.location.hash.split(`?`)[1]??``).get(`demo`)===`1`),D=(0,x.useCallback)(async e=>{if(!e||e.length===0)return;P.preload().catch(()=>{}),m(!0),b(null);let r=Array.from(e),i=r.filter(e=>B(e)&&e.size<=41943040),a=r.filter(e=>B(e)&&e.size>41943040),o=r.filter(e=>!B(e));try{let e=[],r=await T(o);e.push(...r.sources);for(let t of i)try{e.push(...await O(await R(t)))}catch{}n(t=>{let n=new Set(t.map(V)),r=[...t,...e.filter(e=>!n.has(V(e)))];return r.length>200?r.slice(0,200):r}),a.length>0?b(`Archive is too large — up to ${L} MB per .zip.`):e.length===0?b(`No readable sources found. Add PDFs, docs, or text/data files.`):t.length+e.length>200&&b(`Capped at 200 sources.`)}catch{b(`Those files couldn't be read. Try PDFs, docs, or text/data files.`)}finally{m(!1),S.current&&(S.current.value=``),C.current&&(C.current.value=``)}},[t.length]),k=(0,x.useCallback)(e=>{n(t=>t.filter((t,n)=>n!==e))},[]),z=(0,x.useCallback)(e=>{e.preventDefault(),f(!1),D(e.dataTransfer.files)},[D]);return E?(0,M.jsx)(s,{label:`Synthesis world`,overlay:!0,children:(0,M.jsx)(I,{cfg:w,demo:{spec:j,corpus:A},onClose:()=>{window.location.hash=e.href}})}):r?(0,M.jsx)(s,{label:r.mode===`prism`?`Prism workbench`:`Synthesis world`,overlay:!0,children:r.mode===`prism`?(0,M.jsx)(F,{pdf:r.sources,cfg:w,onClose:()=>c(null)}):(0,M.jsx)(I,{sources:r.sources,cfg:w,onClose:()=>c(null)})}):(0,M.jsxs)(`div`,{className:`prism-app`,children:[(0,M.jsxs)(`header`,{className:`prism-app-header`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-app-back`,onClick:()=>{window.location.hash=e.href},"aria-label":`Back to ${e.label}`,title:`Back to ${e.label}`,children:(0,M.jsx)(l.chevL,{})}),(0,M.jsx)(`span`,{className:`prism-app-brand`,children:`Synthesis`})]}),(0,M.jsxs)(`main`,{className:`prism-app-main`,children:[(0,M.jsxs)(`div`,{className:`prism-app-hero`,children:[(0,M.jsx)(`h1`,{className:`prism-app-title`,children:`Drop in 100 sources. Walk the one result.`}),(0,M.jsx)(`p`,{className:`prism-app-lede`,children:`Point Mavéa at a whole topic — a folder of papers, a data room, a quarter of notes — and it fuses them into one map: where they agree, where they fight, and where they’re silent.`}),(0,M.jsx)(u,{kind:`upload`})]}),(0,M.jsxs)(`div`,{className:`prism-dropzone${d?` prism-dropzone--over`:``}`,onDrop:z,onDragOver:e=>{e.preventDefault(),f(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||f(!1)},onClick:()=>S.current?.click(),role:`button`,tabIndex:0,"aria-label":`Add sources`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&S.current?.click()},...i(P.preload),children:[(0,M.jsx)(`input`,{ref:S,type:`file`,multiple:!0,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(`input`,{ref:C,type:`file`,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(l.upload,{}),(0,M.jsx)(`span`,{className:`prism-dropzone-label`,children:d?`Drop to add`:p?`Reading…`:`Drop a folder, a .zip, or files`}),(0,M.jsx)(`span`,{className:`prism-dropzone-hint`,children:`PDF · Word · Excel · PowerPoint · Text · CSV — or a whole folder / archive`}),(0,M.jsx)(`button`,{type:`button`,style:{marginTop:12,padding:`7px 16px`,whiteSpace:`nowrap`,borderRadius:`var(--r-full, 999px)`,border:`1px solid var(--line)`,background:`var(--surface-elevated)`,color:`var(--text-secondary)`,fontSize:13,cursor:`pointer`},onClick:e=>{e.stopPropagation(),C.current?.click()},children:`Choose a folder…`})]}),y&&(0,M.jsx)(`p`,{className:`prism-app-error`,role:`status`,children:y}),t.length>0&&(0,M.jsxs)(`div`,{className:`prism-staged`,children:[(0,M.jsx)(`p`,{className:`prism-staged-label`,children:t.length===1?`1 source ready`:`${t.length} sources ready`}),(0,M.jsx)(`ul`,{className:`prism-staged-list`,children:t.slice(0,60).map((e,t)=>(0,M.jsxs)(`li`,{className:`prism-staged-item`,children:[(0,M.jsx)(l.doc,{}),(0,M.jsx)(`span`,{className:`prism-staged-name`,children:h(e)}),(0,M.jsx)(`button`,{type:`button`,className:`prism-staged-remove`,onClick:e=>{e.stopPropagation(),k(t)},"aria-label":`Remove ${e.name}`,children:(0,M.jsx)(l.x,{})})]},`${V(e)}-${t}`))}),t.length>60&&(0,M.jsxs)(`p`,{className:`prism-staged-label`,children:[`+ `,t.length-60,` more`]}),(()=>{let e=e=>{(e===`prism`?N.preload():P.preload()).catch(()=>{}),c({sources:t,mode:e})},n=t.length;return n<=2?(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`prism`),...i(N.preload),children:[n===1?`Open in Prism`:`Compare 2 documents`,(0,M.jsx)(l.chevR,{})]}):n===3?(0,M.jsxs)(`div`,{className:`prism-confirm-row`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-confirm-btn prism-confirm-alt`,onClick:()=>e(`prism`),...i(N.preload),children:`Compare 3`}),(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize 3 sources`,(0,M.jsx)(l.chevR,{})]})]}):(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize `,n,` sources`,(0,M.jsx)(l.chevR,{})]})})()]})]})]})}function B(e){return k({name:e.name,mime:e.type,data:``,size:e.size})}function V(e){return`${e.name}:${e.size}`}export{z as SynthesisApp};
@@ -1,66 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-Dbr1j8Fe.js";import{t as r,v as i,x as a}from"./providers-wzm7E8Pa.js";import{i as o,n as s}from"./verbatim-CBMzUDlf.js";import{PrismOverlay as c,a as l,c as u,d,l as f,o as p,s as m}from"./PrismOverlay-CduGpA8D.js";var h=e(),g=n(),_=/[a-z0-9]{4,}/g;function v(e){return new Set(e.toLowerCase().match(_)??[])}function y(e,t){if(e.size===0||t.size===0)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function b(e,t=12){let n=new Map;for(let t of e.toLowerCase().match(_)??[])n.set(t,(n.get(t)??0)+1);return[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).slice(0,t).map(([e])=>e)}function x(e,t=2){return e.replace(/\s+/g,` `).split(/(?<=[.!?])\s+/).map(e=>e.trim()).filter(Boolean).slice(0,t)}var S={thousand:1e3,k:1e3,million:1e6,m:1e6,billion:1e9,bn:1e9,b:1e9,trillion:0xe8d4a51000};function C(e){let t=e.toLowerCase();return t===`%`||t===`percent`||t===`pct`?`pct`:/^(week|wk|month|mo|year|yr|day)s?$/.test(t)?`time`:/^(mg|kg|µg|mcg|g|ml|l)$/.test(t)?`dose`:`count`}var w=/(\$|€|£|¥)?\s?(\d{1,3}(?:,\d{3})+|\d+)(?:\.(\d+))?\s?(thousand|million|billion|trillion|bn)?\s?(%|percent|pct|mg|kg|µg|mcg|ml|weeks?|wks?|months?|mos?|years?|yrs?|days?)?/gi;function T(e){let t=[];for(let n of e.matchAll(w)){let[e,r,i,a,o,s]=n;if(!i)continue;let c=Number(`${i.replace(/,/g,``)}${a?`.${a}`:``}`);if(!Number.isFinite(c))continue;o&&(c*=S[o.toLowerCase()]??1);let l=(r??s??``).trim(),u=r?`money`:s?C(s):`count`;t.push({value:c,unit:l,family:u,raw:e.trim()})}return t}function E(e,t){for(let n of T(e))if(!t||n.family===t)return n;return null}function D(e){let t=` ${e.toLowerCase()} `;return/\b(p[ae]diatric|children|child|adolescents?|infants?|neonat|under[\s-]?18|aged? \d{1,2})\b/.test(t)?`pediatric`:/\b(elderly|geriatric|older adults?|aged 65)\b/.test(t)?`elderly`:/\b(adults?|grown[\s-]?ups?)\b/.test(t)?`adult`:null}function O(e){let t=e.toLowerCase(),n=t.match(/\b(\d{1,3})\s?(week|wk|month|mo|year|yr|day)s?\b/);if(n)return`${n[1]}${n[2].replace(/s$/,``)}`;let r=t.match(/\bphase\s?([1-4]|i{1,3}|iv)\b/);if(r)return`phase${r[1]}`;let i=t.match(/\bby\s(20\d{2})\b/);return i?`by${i[1]}`:null}function k(e,t){let n=D(e),r=D(t);if(n&&r&&n!==r)return`population`;let i=O(e),a=O(t);return i&&a&&i!==a?`timeframe`:null}function ee(e){let t=e.slice(0,1200),n=t.match(/\b([A-Z][a-zà-ÿ]+)\s+et al\.?,?\s*(\d{4})/);if(n)return`${n[1]} et al. ${n[2]}`;let r=t.match(/\b([A-Z][a-zà-ÿ]+)\s*\(?(19|20)\d{2}\)?/);return r?`${r[1]} ${r[0].match(/\d{4}/)?.[0]??``}`.trim():``}function te(e,t={}){let{minOverlap:n=.12,topK:r=120,maxDocFraction:i=.35,crossSourceOnly:a=!0}=t,o=e.length;if(o<2)return[];let s=e.map(e=>v(e.text)),c=e.map(e=>e.source),l=new Map;s.forEach((e,t)=>{for(let n of e){let e=l.get(n);e?e.push(t):l.set(n,[t])}});let u=Math.max(6,Math.floor(o*i)),d=new Set,f=[];for(let t of l.values())if(!(t.length<2||t.length>u))for(let r=0;r<t.length;r+=1)for(let i=r+1;i<t.length;i+=1){let o=t[r],l=t[i];if(a&&c[o]===c[l])continue;let u=o<l?`${o}|${l}`:`${l}|${o}`;if(d.has(u))continue;d.add(u);let p=y(s[o],s[l]);if(p>=n){let t=e[o],n=e[l];f.push(t.id<n.id?{a:t.id,b:n.id,overlap:p}:{a:n.id,b:t.id,overlap:p})}}return f.sort((e,t)=>t.overlap-e.overlap||(e.a<t.a?-1:e.a>t.a?1:e.b<t.b?-1:1)),f.slice(0,r)}function A(e){let t=new Map,n=e=>{let n=e;for(;t.get(n)!==n;)n=t.get(n);let r=e;for(;t.get(r)!==n;){let e=t.get(r);t.set(r,n),r=e}return n},r=e=>{t.has(e)||t.set(e,e)};for(let{a:i,b:a}of e)r(i),r(a),t.set(n(i),n(a));let i=new Map;for(let e of t.keys()){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}return[...i.values()].map(e=>e.slice().sort())}var j=[`pct`,`money`,`dose`,`count`];function M(e,t){let n=Math.max(1,Math.abs(e),Math.abs(t));return Math.abs(e-t)<=.005*n}function N(e,t){return t.some(t=>s(e,t))}function P(e,t,n,r,i){if(t.source===n.source)return null;let a=String(e.relation).toLowerCase();if(a!==`contradicts`&&a!==`in-tension`)return null;let o=k(t.quote,n.quote),s=(e.matchPhrase??``).trim(),c=s.length>0&&N(s,r)&&N(s,i),l,u=!1;for(let e of j){let r=E(t.quote,e),i=E(n.quote,e);if(r&&i){M(r.value,i.value)?u=!0:l={aValue:r.value,bValue:i.value,unit:r.unit||i.unit};break}}let d=!!e.comparable&&c&&!o&&!u,f=a===`contradicts`&&d?`contradicts`:`in-tension`,p;return o?p=o:!d&&!u&&a===`contradicts`&&(p=`scope`),{relation:f,comparable:d,...c?{matchPhrase:s}:{},...p?{caveat:p}:{},...l?{delta:l}:{}}}function F(e,t,n,r={}){let{minCorpus:i=3,minSurfaceForms:a=3,minCorpusForThin:o=10,thinFraction:s=.1}=r;return t<i||n<a?null:e<=0?`absent`:t>=o&&e<=Math.max(1,Math.ceil(t*s))?`thin`:null}function I(e,t){let n=new Set;for(let r of e){let e=t.get(r);e!==void 0&&n.add(e)}return n.size}function L(e,t=2){return e>=t}function R(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function z(e){return typeof e==`string`?e:``}function B(e,t){if(!e)return[];let n=e[t];return Array.isArray(n)?n:[]}var V=`You compare pairs of grounded claims from different sources and return strict JSON only. You never invent a quote; a shared "matchPhrase" must be copied verbatim from the claims. When two claims measure different endpoints, populations, or timeframes you mark them "not-comparable".`;function ne(e){return`These are candidate claim pairs, each from two DIFFERENT sources in a large corpus. For each
2
- pair, decide how the two claims relate on the ONE quantity they share.
3
-
4
- Pairs:
5
- ${e.map((e,t)=>`[p${t}]\n A (${e.a.id}): "${e.a.quote}"\n B (${e.b.id}): "${e.b.quote}"`).join(`
6
- `)}
7
-
8
- Return ONLY a JSON object (no prose, no fences):
9
- { "pairs": [ { "id": "p0", "relation": "contradicts|in-tension|agrees|not-comparable",
10
- "sharedQuantity": "the one thing both measure, e.g. 'drug efficacy'", "comparable": true,
11
- "matchPhrase": "a short phrase copied VERBATIM that appears in BOTH claims' text, proving same scope",
12
- "point": "for agrees only: the shared point in one sentence" } ] }
13
-
14
- Rules:
15
- - "agrees" (be generous — this is how consensus is found): the two claims make the same or a mutually
16
- SUPPORTING point — e.g. both report a benefit on the same outcome, or point the same direction on a
17
- shared measure — even if the specifics differ. Give the shared "point" in one sentence.
18
- - "contradicts" (be strict — a false one is worse than a missed one): they DIRECTLY conflict on the
19
- SAME measured quantity, same population, same timeframe. When a contradiction is at all doubtful,
20
- use "in-tension" (related but pulling different ways) or "not-comparable" instead.
21
- - "not-comparable": they are about genuinely different things with no shared outcome or measure.
22
- - "comparable": true ONLY when the two truly measure the same thing on the same scope.
23
- - "matchPhrase": copy a phrase that is present, word-for-word, in BOTH claims above (proving they talk
24
- about the same scope). Omit it if there is no shared verbatim phrase.
25
- - Every "id" MUST be one of the [p#] ids above.`}function H(e){let t=[D(e),O(e)].filter(Boolean);return t.length?t.join(`, `):`unspecified scope`}function re(e,t){return`Are these comparable? "${e.title}" (${H(e.quote)}) vs "${t.title}" (${H(t.quote)}) — do they measure the same endpoint, population, and timeframe?`}function U(e,t){let n=t.trim();return e===`contradicts`?n?`Sources disagree on ${n}`:`Two sources disagree`:n?`Tension over ${n}`:`Sources in tension`}async function W(e,t){let n=[];for(let r of e){let e=t.claimById.get(r.a),i=t.claimById.get(r.b);e&&i&&e.source!==i.source&&n.push({a:e,b:i,pair:r})}if(n.length===0)return{contradictions:[],agreements:[]};let i=Math.min(8192,Math.max(2048,300+n.length*100)),a;try{a=(await r(t.cfg.provider).generate({system:V,history:[],user:ne(n),maxTokens:i,temperature:0,format:null,...t.signal?{signal:t.signal}:{}},t.cfg)).raw}catch{return{contradictions:[],agreements:[]}}let o=R(a),s=o&&Array.isArray(o.pairs)?o.pairs:[],c=[],l=[],u=0,d=new Set;for(let e of s){if(!e||typeof e!=`object`)continue;let r=e,i=Number(String(r.id).replace(/^p/,``)),a=Number.isInteger(i)?n[i]:void 0;if(!a)continue;let o=[a.a.id,a.b.id].sort().join(`|`);if(d.has(o))continue;d.add(o);let s=z(r.relation).toLowerCase();if(s===`agrees`){l.push({a:a.a.id,b:a.b.id,point:z(r.point).trim()});continue}let f=P({relation:s,sharedQuantity:z(r.sharedQuantity),comparable:!!r.comparable,matchPhrase:z(r.matchPhrase)},a.a,a.b,t.corpus[a.a.source]??[],t.corpus[a.b.source]??[]);if(!f)continue;let p=z(r.sharedQuantity).trim();c.push({id:`x${u}`,theme:a.a.region,a:a.a.id,b:a.b.id,relation:f.relation,sharedQuantity:p,comparable:f.comparable,label:U(f.relation,p),seedQuestion:re(a.a,a.b),...f.matchPhrase?{matchPhrase:f.matchPhrase}:{},...f.caveat?{caveat:f.caveat}:{},...f.delta?{delta:f.delta}:{}}),u+=1}return{contradictions:c,agreements:l}}function G(e){let t=o(e);if(!t)return null;let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`(?:^|[^a-z0-9])${n}(?:[^a-z0-9]|$)`)}function K(e,t){for(let n of t.surfaceForms){let t=G(n);if(t&&t.test(e))return!0}return!1}function q(e,t){let n=[];return t.forEach((t,r)=>{K(t,e)&&n.push(r)}),{coveredCount:n.length,coveringSources:n}}function J(e,t){return t===`absent`?`No coverage — ${e.label}`:`Thin coverage — ${e.label}`}function Y(e,t,n,r={}){let i=t.length,a=[];return e.forEach((e,o)=>{let{coveredCount:s}=q(e,t),c=F(s,i,e.surfaceForms.length,r);c&&a.push({id:`g${o}`,theme:n(e),facet:e,sourcesScanned:i,coveredCount:s,kind:c,searchedForms:e.surfaceForms.slice(),label:J(e,c)})}),a}function X(e){let t=Array.isArray(e)?e:[],n=[];return t.forEach((e,t)=>{if(!e||typeof e!=`object`)return;let r=e,i=typeof r.label==`string`?r.label.trim():``,a=Array.isArray(r.surfaceForms)?Array.from(new Set(r.surfaceForms.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(e=>e.length>=3))):[];!i||a.length===0||n.push({id:`f${t}`,label:i,surfaceForms:a,...typeof r.rationale==`string`&&r.rationale.trim()?{rationale:r.rationale.trim()}:{}})}),n}var ie=8,ae=5e3,oe=6;function se(e){let t=e.replace(/\.[a-z0-9]+$/i,``).trim();return t.length>40?`${t.slice(0,39).trimEnd()}…`:t||`Source`}async function ce(e,t){if(t)return{att:e,pages:t.slice(),kind:`text`};try{if(i(e)){let t=await m(e);return t.pages&&t.pages.length>0?{att:e,pages:t.pages,kind:`office`}:{att:e,pages:[],kind:`image-deck`}}return a(e)?{att:e,pages:await u(e)??[],kind:`text`}:{att:e,pages:await f(e)??[],kind:`pdf`}}catch{return{att:e,pages:[],kind:`pdf`}}}async function le(e,t,n){let r=Array(e.length),i=0;return await Promise.all(Array.from({length:Math.min(t,e.length)},async()=>{for(;;){let t=i;if(i+=1,t>=e.length)return;r[t]=await n(e[t],t)}})),r}async function ue(e,t,n,i,a){try{return R((await r(e.provider).generate({system:t,history:[],user:n,maxTokens:i,temperature:0,format:null,...a?{signal:a}:{}},e)).raw)}catch{return null}}async function de(e,t,n,i,a){try{let o=await r(e.provider).generate({system:t,history:[],user:n,maxTokens:i,temperature:0,format:null,...a?{signal:a}:{}},e);return typeof o.raw==`string`?o.raw:JSON.stringify(o.raw)}catch{return``}}var fe=`You organize a corpus of sources into a small set of themes and list the facets a complete treatment would cover, returning strict JSON only. You never claim a facet is present or absent — you only name what to expect and the words it would appear under.`;function pe(e){let t=e.map((e,t)=>`[${t}] ${e.label}\n terms: ${e.terms.join(`, `)}\n "${e.lead.join(` `)}"`).join(`
26
- `);return`Below are short digests of ${e.length} sources in one corpus (top terms + a lead line each).
27
-
28
- ${t}
29
-
30
- Return ONLY a JSON object (no prose, no fences):
31
- {
32
- "themes": ["Efficacy", "Safety", "Cost", "Adoption"],
33
- "facets": [ { "label": "Pediatric population", "theme": "Safety",
34
- "surfaceForms": ["pediatric","paediatric","children","under 18"], "rationale": "why a full treatment would cover it" } ]
35
- }
36
-
37
- Rules:
38
- - "themes": 3-7 broad topics that span the corpus (NOT one per source) — the map's regions.
39
- - "facets": the sub-topics a COMPLETE treatment of these themes would address. For each, give 3-8
40
- surface forms — the exact words/synonyms it would appear under IF a source covered it (so absence can
41
- be checked literally). "theme" must be one of "themes". Do NOT say whether any source covers it.
42
- - Base everything on the digests above — do not invent facets unrelated to this corpus.`}var me=`You extract grounded, verbatim-quoted claims from sources and tag each with a theme, returning strict JSON only. Every quote must be copied character-for-character from the source text.`;function he(e,t,n){let r=e.reduce((e,t)=>e+t.length,0),i=e.map((e,n)=>({i:n,t:e,s:ge(e,t)})),a=r<=n?i:i.slice().sort((e,t)=>t.s-e.s||e.i-t.i),o=[],s=0;for(let e of a)if(o.push({i:e.i,t:e.t}),s+=e.t.length,s>=n&&o.length>=2)break;return o.sort((e,t)=>e.i-t.i).map(e=>`[p.${e.i+1}]\n${e.t.slice(0,Math.max(400,Math.round(n/o.length)))}`).join(`
43
-
44
- `)}function ge(e,t){let n=e.toLowerCase(),r=0;for(let e of t)n.includes(e)&&(r+=1);return r}function _e(e,t){let n=e.map(e=>`=== source ${e.source} — ${e.label} ===\n${e.slice}`).join(`
45
-
46
- `);return`Themes for this corpus (tag every claim with exactly one): ${t.join(` | `)}
47
-
48
- Extract the most important claims from each source below. Copy each "quote" VERBATIM from that source's
49
- text (it is verified word-for-word — anything not found is dropped). Cite the "page" from its [p.N]
50
- marker, and the "source" number from its heading.
51
-
52
- ${n}
53
-
54
- Return ONLY a JSON object (no prose, no fences):
55
- { "claims": [ { "source": 0, "quote": "verbatim phrase (6-160 chars)", "page": 3,
56
- "theme": "one of the themes above", "kind": "forecast|stat|finding|risk|definition|method|diagram",
57
- "title": "a 3-7 word headline", "role": "load-bearing|supporting|context",
58
- "ask": "a short follow-up question" } ] }
59
-
60
- Rules:
61
- - Copy quotes character-for-character from the text above; never paraphrase or round.
62
- - "theme" MUST be one of: ${t.join(`, `)}.
63
- - Extract 6-12 DISTINCT claims from EACH source — cover its different facets (definition, mechanism,
64
- specific findings and numbers, health effects, risks, evidence quality), not just the opening lines.
65
- Favor specific, checkable statements — especially ones with a number, a finding, or a direct claim
66
- another source might agree or disagree with. Mark only a few "load-bearing".`}var ve=new Set([`forecast`,`stat`,`finding`,`risk`,`definition`,`method`,`diagram`]),ye=new Set([`load-bearing`,`supporting`,`context`]);function be(e){let t=z(e).toLowerCase();return ve.has(t)?t:`finding`}function xe(e){let t=z(e).toLowerCase().trim();return ye.has(t)?t:`supporting`}function Z(e){let t=z(e.quote),n=Number(e.page),r=Number(e.source);return!t||!Number.isInteger(n)||!Number.isInteger(r)?null:{source:r,quote:t,page:n,theme:z(e.theme).trim(),kind:be(e.kind),title:z(e.title).trim()||t.slice(0,40),role:xe(e.role),ask:z(e.ask).trim()||`What does this mean?`}}function Se(e){let t=R(e),n=t&&Array.isArray(t.claims)?t.claims:null;if(n&&n.length){let e=n.filter(e=>!!e&&typeof e==`object`).map(Z).filter(e=>e!==null);if(e.length)return e}return Ce(e)}function Ce(e){let t=[];for(let n=0;n<e.length;n+=1){if(e[n]!==`{`)continue;let r=0,i=!1,a=!1,o=-1;for(let t=n;t<e.length;t+=1){let n=e[t];if(i){a?a=!1:n===`\\`?a=!0:n===`"`&&(i=!1);continue}if(n===`"`)i=!0;else if(n===`{`)r+=1;else if(n===`}`&&(--r,r===0)){o=t;break}}if(o<0)break;let s=e.slice(n,o+1);if(s.includes(`"quote"`))try{let e=Z(JSON.parse(s));e&&(t.push(e),n=o)}catch{}}return t}function we(e,t){let n=[];for(let r=0;r<e.length;r+=Math.max(1,t))n.push(e.slice(r,r+t));return n}async function Te(e,t,n,r={}){let{pagesOverride:i,onProgress:a,batchSize:s=ie}=r,c=0;a?.(`Reading ${e.length} sources…`);let l=(await le(e,oe,(e,t)=>ce(e,i?.[t]))).filter(e=>e.pages.length>0);if(l.length===0)return{spec:null,error:`No readable text could be extracted from these sources.`,callCount:c,proposed:0};let u=l.map((e,t)=>({id:`s${t}`,fileName:e.att.name,kind:e.kind,pageCount:e.pages.length,label:ee(e.pages.join(` `))||se(e.att.name),...e.slideImages?{slideImages:e.slideImages}:{}})),f=l.map(e=>e.pages),p=l.map((e,t)=>{let n=e.pages.join(` `);return{label:u[t].label,terms:b(n,12),lead:x(n,2)}});a?.(`Finding themes…`);let m=Math.min(4096,Math.max(1600,900+p.length*45)),h=await ue(t,fe,pe(p),m,n);c+=1;let g=Ee(B(h,`themes`).map(z)),_=new Set(g),y=X(B(h,`facets`)),S=new Map;for(let e of B(h,`facets`))if(e&&typeof e==`object`){let t=e,n=z(t.label).trim(),r=z(t.theme).trim();n&&_.has(r)&&S.set(n,r)}let C=g[0]??`Findings`;g.length===0&&g.push(C),a?.(`Mapping claims…`);let w=v(g.join(` `)),T=l.map((e,t)=>({source:t,label:u[t].label,slice:he(e.pages,w,ae)})),E=[],D=0;for(let e of we(T,s)){let r=await de(t,me,_e(e,g),Math.min(8192,1500+e.length*850),n);c+=1;let i=Se(r);D+=i.length;for(let t of e)(await d(i.filter(e=>e.source===t.source),f[t.source])).forEach((e,n)=>{let r=_.has(e.theme)?e.theme:C;E.push({id:`s${t.source}c${n}`,quote:e.quote,page:e.page,kind:e.kind,title:e.title,ask:e.ask,role:e.role,region:r,source:t.source})})}if(E.length===0)return{spec:null,error:`No claims could be grounded across these sources.`,callCount:c,corpus:f,proposed:D};a?.(`Finding contradictions…`);let O=new Map(E.map(e=>[e.id,e])),k=new Map(E.map(e=>[e.id,e.source])),A=te(E.map(e=>({id:e.id,source:e.source,text:`${e.title}. ${e.quote}`}))),{contradictions:j,agreements:M}=await W(A,{claimById:O,corpus:f,cfg:t,signal:n});A.length>0&&(c+=1);let N=Oe(M,O,k,l.length),P=Y(y,f.map(e=>o(e.join(` `))),e=>S.get(e.label)??``),F=De(g,E),I=[...j.map(e=>({a:e.a,b:e.b,relation:e.relation,crossDoc:!0})),...M.map(e=>({a:e.a,b:e.b,relation:`agrees`,crossDoc:!0}))],L=new Set;for(let e of N)for(let t of e.memberClaimIds){let e=k.get(t);e!==void 0&&L.add(e)}let R={sources:u,themes:F,claims:E,threads:I,contradictions:j,gaps:P,consensus:N,counts:{contradictions:j.length,gaps:P.length,consensus:L.size},pageCount:u.reduce((e,t)=>e+t.pageCount,0)},V=u.map(()=>0);for(let e of E)V[e.source]!==void 0&&(V[e.source]+=1);return{spec:R,corpus:f,sourcesAtt:l.map(e=>e.att),callCount:c,proposed:D,debug:{facetCount:y.length,candidatePairs:A.length,agreements:M.length,claimsBySource:V}}}function Ee(e){let t=new Set,n=[];for(let r of e){let e=r.trim();if(!e)continue;let i=e.toLowerCase();if(!t.has(i)&&(t.add(i),n.push(e),n.length>=8))break}return n}function De(e,t){let n=new Map;for(let e of t){let t=n.get(e.region)??{sources:new Set,count:0};t.sources.add(e.source),t.count+=1,n.set(e.region,t)}let r=[...e,...[...n.keys()].filter(t=>!e.includes(t))],i=[];for(let e of r){let t=n.get(e);t&&i.push({id:e,name:e,sourceCount:t.sources.size,claimCount:t.count})}return i}function Oe(e,t,n,r){let i=A(e.map(e=>({a:e.a,b:e.b}))),a=[],o=0;for(let s of i){let i=I(s,n);if(!L(i))continue;let c=new Set(s),l=e.find(e=>c.has(e.a)&&c.has(e.b)&&e.point),u=t.get(s[0]);a.push({id:`c${o}`,theme:u?.region??``,proposition:l?.point||u?.title||`Sources agree`,memberClaimIds:s,sourceCount:i,corpusSize:r,...Q(s,t)}),o+=1}return a}function Q(e,t){for(let n of[`pct`,`money`,`dose`,`count`]){let r=[],i=``;for(let a of e){let e=t.get(a),o=e&&E(e.quote,n);o&&(r.push(o.value),i||=o.unit)}if(r.length>=2)return{band:{unit:i,min:Math.min(...r),max:Math.max(...r)}}}return{}}var ke=900;function Ae(e){let t=(0,g.c)(15),[n,r]=(0,h.useState)(`idle`),[i,a]=(0,h.useState)(null),[o,s]=(0,h.useState)(null),[c,l]=(0,h.useState)(null),[u,d]=(0,h.useState)(0),[f,p]=(0,h.useState)(``),[m,_]=(0,h.useState)(null),v=(0,h.useRef)(null),y=(0,h.useRef)(null),b=(0,h.useRef)(0),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{v.current?.abort(),v.current=null,y.current!==null&&(clearTimeout(y.current),y.current=null)},t[0]=x):x=t[0];let S=x,C,w;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>S,w=[S],t[1]=C,t[2]=w):(C=t[1],w=t[2]),(0,h.useEffect)(C,w);let T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{S(),b.current+=1,r(`idle`),a(null),s(null),l(null),d(0),p(``),_(null)},t[3]=T):T=t[3];let E=T,D;t[4]===e?D=t[5]:(D=t=>{if(!e){_(`Connect a model to synthesize a corpus.`),r(`error`);return}S();let n=b.current+=1,i=new AbortController;v.current=i,a(null),s(null),d(0),_(null),p(`Reading ${t.length} sources…`),r(`igniting`),y.current=setTimeout(()=>{b.current===n&&r(je)},ke),Te(t,e,i.signal,{onProgress:e=>{b.current===n&&p(e)}}).then(e=>{b.current===n&&(e.spec?(a(e.spec),s(e.corpus??null),l(e.sourcesAtt??null),d(e.proposed),r(`settled`)):(_(e.error??`This corpus could not be synthesized.`),r(`error`)))}).catch(e=>{b.current===n&&(i.signal.aborted||(_(e instanceof Error?e.message:`Synthesis failed.`),r(`error`)))})},t[4]=e,t[5]=D);let O=D,k;return t[6]!==o||t[7]!==m||t[8]!==n||t[9]!==u||t[10]!==c||t[11]!==i||t[12]!==f||t[13]!==O?(k={phase:n,spec:i,corpus:o,sourcesAtt:c,proposed:u,stage:f,error:m,synthesize:O,reset:E},t[6]=o,t[7]=m,t[8]=n,t[9]=u,t[10]=c,t[11]=i,t[12]=f,t[13]=O,t[14]=k):k=t[14],k}function je(e){return e===`igniting`?`blooming`:e}function Me(e){return{documents:e.sources.map(e=>({fileName:e.fileName,pageCount:e.pageCount,...e.slideImages?{slideImages:e.slideImages}:{}})),fileName:e.sources[0]?.fileName??`corpus`,pageCount:e.pageCount,claims:e.claims,regions:e.themes.map(e=>e.name),threads:e.threads}}var Ne=t(),$=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-deep)`,`var(--insight-soft)`,`var(--danger)`];function Pe({sources:e,cfg:t,search:n,onClose:r,demo:i}){let a=Ae(t),o=i?`settled`:a.phase,s=i?i.spec:a.spec,u=i?i.corpus:a.corpus;(0,h.useEffect)(()=>{if(!i)return e&&e.length>0&&a.synthesize(e),()=>a.reset()},[e]);let[d,f]=(0,h.useState)(`all`),[m,g]=(0,h.useState)(null);(0,h.useEffect)(()=>{if(!s||s.claims.length<48)return;let e=!0;return l(s,$).then(t=>{e&&g({spec:s,result:t})}),()=>{e=!1}},[s]);let _=(0,h.useMemo)(()=>s?s.claims.length<48?p(s,$):m?.spec===s?m.result:null:null,[s,m]),v=(0,h.useMemo)(()=>s?Me(s):null,[s]),y=(0,h.useCallback)(e=>s?.sources[e]?.label??`Source ${e+1}`,[s]),b=(0,h.useMemo)(()=>i?(i.spec.sources??[]).map(e=>({name:e.fileName,mime:`text/plain`,data:``,size:0})):(a.sourcesAtt??e??[]).slice(),[i,a.sourcesAtt,e]),x={phase:o,spec:v,corpus:u,proposed:i?s?.claims.length??0:a.proposed,error:a.error,stage:a.stage},S=s&&_?{lens:d,setLens:f,counts:s.counts,contradictions:_.contradictions,gaps:_.gaps,consensus:_.consensus,sourceLabel:y}:void 0;return(0,Ne.jsx)(c,{pdf:b,cfg:i?null:t,...n?{search:n}:{},onClose:r,world:x,...S?{corpusChrome:S}:{}})}export{Pe as SynthesisOverlay};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ReplayCard-C3dGQfxG.js","assets/chunk-BVpWp9h4.js","assets/index-Dbr1j8Fe.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/ShareModal-eJ6sdMpf.js","assets/ReelJelly-LWeMsFpj.js","assets/geometry-DXAbnb0J.js","assets/registry-BdMZ_4cm.js","assets/fit-CuHWhwsj.js","assets/share-QHGHNDhQ.js","assets/icons-CHVz6kv_.js","assets/FeatureUseNotice-CoK5HkbR.js","assets/FeatureUseNotice-CsCxxfOl.css","assets/spokenText-D4zPX9JY.js","assets/toast-BBNs2h3L.js","assets/threads-CkMgrSDP.js","assets/useFocusTrap-DbfG6zbM.js","assets/kokoro-DsmNzulR.js","assets/ShareModal-PobtP7AJ.css","assets/annotationReel-B5A2RZkx.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{J as r,ht as i,mt as a,q as o}from"./index-Dbr1j8Fe.js";import{n as s}from"./icons-CHVz6kv_.js";import{t as c}from"./toast-BBNs2h3L.js";import{a as l,c as u,d,i as f,l as p,o as m,r as h,s as g,t as _,u as v}from"./CanvasSkeleton-cQ6KF-6z.js";import{n as y,t as b}from"./FallbackCard-B489rTd9.js";import{n as x,t as S}from"./blockLabel-DAqaHKy3.js";import{n as C,r as w,t as T}from"./useSpatialCanvas-C5TNlpeK.js";import{t as E}from"./richText-BkxJhl9N.js";import{i as D,r as O}from"./format-DlZTyeMy.js";import{t as k}from"./safeImageUrl-CUkucDUu.js";import{t as A}from"./useValidatedImage-D2fhA198.js";import{n as j,t as M}from"./layout-BFQOzXtG.js";import{i as N,r as P,t as F}from"./catalog-BHjl-1uH.js";import{n as I}from"./http-CJCtjYpA.js";import{n as L}from"./lib-B6qSkBPa.js";var R=t();function ee(e){let t=p(e),n=Array.from(t).sort().join(`,`),[r,i]=(0,R.useState)(()=>v(t));return(0,R.useEffect)(()=>{if(v(t)){i(!0);return}i(!1);let e=!0;return d(n.split(`,`)).then(()=>{e&&i(!0)}),()=>{e=!1}},[n]),r}var z=i(),te=null,ne=new WeakMap;function re(){return typeof ResizeObserver>`u`?null:(te||=new ResizeObserver(e=>{for(let t of e)ne.get(t.target)?.()}),te)}function B(e,t){let n=re();return n?(ne.set(e,t),n.observe(e),()=>{n.unobserve(e),ne.delete(e)}):()=>{}}var V=n(),H=new Set([`hidden`,`clip`,`auto`,`scroll`]);function U(e){let t=(0,z.c)(14),{children:n,maxAspect:r,className:i}=e,a=(0,R.useRef)(null),o=(0,R.useRef)(null),[s,c]=(0,R.useState)(1),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=a.current,t=o.current;if(!e||!t)return;let n=()=>{let n=e.clientWidth;if(!n)return;let r=t.querySelectorAll(`*`),i=t.style.transform;t.style.transform=`none`;let a=[];for(let e of r){let t=getComputedStyle(e);(H.has(t.overflowX)||H.has(t.overflowY)||t.webkitLineClamp!==`none`)&&a.push(e)}let o=[];for(let e of a)o.push({el:e,o:e.style.overflow,c:e.style.webkitLineClamp}),e.style.overflow=`visible`,e.style.webkitLineClamp=`unset`;let s=t.scrollWidth;for(let e of r)e.scrollWidth>s&&(s=e.scrollWidth);for(let e of o)e.el.style.overflow=e.o,e.el.style.webkitLineClamp=e.c;if(t.style.transform=i,!s||s<=n+1){c(W);return}let l=n/s,u=Math.max(.4,Math.floor(l*1e3)/1e3);c(e=>Math.abs(e-u)>.002?u:e)};return n(),B(e,n)},t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=[n],t[1]=n,t[2]=u),(0,R.useLayoutEffect)(l,u);let d=s<1,f=`fit-box`+(i?` `+i:``),p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p={contentVisibility:`auto`,containIntrinsicSize:`auto 200px`},t[3]=p):p=t[3];let m;t[4]!==s||t[5]!==r||t[6]!==d?(m=d?{transformOrigin:`top left`,transform:`scale(${s})`,width:`${100/s}%`,marginBottom:`calc(${s-1} * 100%)`,...r?{maxHeight:`calc(${r} * 100cqw)`,overflow:`hidden`}:{}}:void 0,t[4]=s,t[5]=r,t[6]=d,t[7]=m):m=t[7];let h;t[8]!==n||t[9]!==m?(h=(0,V.jsx)(`div`,{ref:o,style:m,children:n}),t[8]=n,t[9]=m,t[10]=h):h=t[10];let g;return t[11]!==f||t[12]!==h?(g=(0,V.jsx)(`div`,{ref:a,className:f,style:p,children:h}),t[11]=f,t[12]=h,t[13]=g):g=t[13],g}function W(e){return e===1?e:1}var ie=new Set([`gridtrace`,`chronologicaltimeline`,`roadmap`,`matrix`,`sparktable`,`gantt`]),G=`mavea-bloom-mode`,ae=G,oe=!0,K=null;function se(){try{if(typeof localStorage>`u`)return oe;let e=localStorage.getItem(G);return e===`on`?!0:e===`off`?!1:oe}catch{return oe}}function q(){return K===null&&(K=se()),K}function ce(e){K=e;try{typeof localStorage<`u`&&localStorage.setItem(G,e?`on`:`off`)}catch{}try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(ae))}catch{}}function le(){let[e,t]=(0,R.useState)(()=>q());return(0,R.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(q());return window.addEventListener(ae,e),()=>window.removeEventListener(ae,e)},[]),[e,(0,R.useCallback)(ce,[])]}var J=a(),Y=260,X=56,Z={min:.2,max:3};function ue(e){return e.col>=10?640:e.col>=7?500:360}function Q(e){return Math.max(1,Math.min(e,Math.round(Math.sqrt(e*1.3))))}function de(e,t,n){let r=Math.max(1,Math.ceil(e.length/n)),i=[];for(let a=0;a<r;a++){let r=Y;for(let i=0;i<n;i++){let o=a*n+i;o<e.length&&(r=Math.max(r,t[o]||Y))}i[a]=r}let a=[],o=0;for(let e=0;e<r;e++)a[e]=o,o+=i[e]+X;let s=[];for(let t=0;t<r;t++){let r=[];for(let i=0;i<n;i++){let a=t*n+i;a<e.length&&r.push(a)}t%2==1&&r.reverse(),s[t]=r}let c=s.map(t=>t.reduce((t,n)=>t+ue(e[n]),0)+Math.max(0,t.length-1)*X),l=Math.max(...c,1),u=Array(e.length);return s.forEach((t,n)=>{let r=(l-c[n])/2;for(let n of t){let t=ue(e[n]);u[n]={x:r,w:t},r+=t+X}}),{placed:e.map((e,r)=>{let o=Math.floor(r/n),s=t[r]||Y,{x:c,w:l}=u[r];return{block:e,x:c,y:a[o]+(i[o]-s)/2,w:l,h:s,cx:c+l/2,cy:a[o]+i[o]/2}}),w:l,h:Math.max(Y,o-X)}}function fe(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=0;n<e.length-1;n++){let r=e[n-1]??e[n],i=e[n],a=e[n+1],o=e[n+2]??a,s=i.x+(a.x-r.x)/6,c=i.y+(a.y-r.y)/6,l=a.x-(o.x-i.x)/6,u=a.y-(o.y-i.y)/6;t+=` C ${s} ${c} ${l} ${u} ${a.x} ${a.y}`}return t}function $(e){let t=e.props?.title;return typeof t==`string`&&t.trim()?t.trim():x(e)}function pe(e){let t=(0,z.c)(24),{data:n,onExit:r,selectedBlockIds:i}=e,a=(0,R.useRef)(null),o=i?.size??0,s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=document.activeElement;return a.current?.querySelector(`.cv-viewport`)?.focus(),()=>e?.focus?.()},c=[],t[0]=s,t[1]=c):(s=t[0],c=t[1]),(0,R.useEffect)(s,c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=[],t[2]=l):l=t[2],(0,R.useEffect)(me,l);let u=`${n.title} — canvas`,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`span`,{className:`cv-takeover-glyph`,"aria-hidden":`true`,children:`◇`}),t[3]=d):d=t[3];let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsx)(`span`,{className:`cv-takeover-eyebrow`,children:`Canvas`}),t[4]=f):f=t[4];let p;t[5]===n.title?p=t[6]:(p=(0,V.jsxs)(`div`,{className:`cv-takeover-id`,children:[d,(0,V.jsxs)(`div`,{className:`cv-takeover-titles`,children:[f,(0,V.jsx)(`span`,{className:`cv-takeover-title`,children:n.title})]})]}),t[5]=n.title,t[6]=p);let m;t[7]===o?m=t[8]:(m=o>0&&(0,V.jsxs)(`span`,{className:`cv-takeover-selection`,"aria-live":`polite`,children:[o,` selected`]}),t[7]=o,t[8]=m);let h;t[9]!==r||t[10]!==o?(h=r&&(0,V.jsxs)(`button`,{type:`button`,className:`cv-takeover-close`,onClick:r,children:[o>0?(0,V.jsxs)(V.Fragment,{children:[`Ask about `,o,` →`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`←`}),` Back to answer`]}),(0,V.jsx)(`kbd`,{"aria-hidden":`true`,children:`esc`})]}),t[9]=r,t[10]=o,t[11]=h):h=t[11];let g;t[12]!==m||t[13]!==h?(g=(0,V.jsxs)(`div`,{className:`cv-takeover-actions`,children:[m,h]}),t[12]=m,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==p||t[16]!==g?(_=(0,V.jsxs)(`header`,{className:`cv-takeover-head`,children:[p,g]}),t[15]=p,t[16]=g,t[17]=_):_=t[17];let v;t[18]===e?v=t[19]:(v=(0,V.jsx)(he,{...e}),t[18]=e,t[19]=v);let y;return t[20]!==_||t[21]!==v||t[22]!==u?(y=(0,J.createPortal)((0,V.jsxs)(`div`,{ref:a,className:`cv-takeover`,role:`dialog`,"aria-modal":`true`,"aria-label":u,children:[_,v]}),document.body),t[20]=_,t[21]=v,t[22]=u,t[23]=y):y=t[23],y}function me(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function he({blocks:e,spot:t,renderBlock:n,onAskBlock:r,selectedBlockIds:i,onExit:a}){let o=(0,R.useMemo)(()=>e.filter(e=>!!e.id),[e]),s=(0,R.useMemo)(()=>Q(o.length),[o.length]),c=(0,R.useRef)([]),[l,u]=(0,R.useState)([]),d=(0,R.useCallback)(()=>{let e=o.map((e,t)=>c.current[t]?.offsetHeight||Y);u(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)},[o]);(0,R.useLayoutEffect)(()=>{d()},[d]),(0,R.useEffect)(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>d());return c.current.forEach(t=>t&&e.observe(t)),()=>e.disconnect()},[d,o]);let{placed:f,w:p,h:m}=(0,R.useMemo)(()=>de(o,l,s),[o,l,s]),h=(0,R.useMemo)(()=>({x:-56/2,y:-56/2,w:p+X,h:m+X}),[p,m]),_=(0,R.useMemo)(()=>fe(f.map(e=>({x:e.cx,y:e.cy}))),[f]),{camera:v,transform:x,viewportRef:S,fitTo:E,zoomAtClient:D,pan:O,setCamera:k}=T({clamp:Z,margin:40}),A=g(),j=(0,R.useRef)(v);j.current=v;let M=(0,R.useRef)(0);(0,R.useEffect)(()=>{let e=0,t=0;e=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>E(h))});let n=setTimeout(()=>E(h),360);return()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),clearTimeout(n)}},[h,E]);let N=(0,R.useCallback)(e=>{let t=S.current,n=f[e];if(!t||!n)return;M.current=e;let r=t.getBoundingClientRect(),i=Math.min(Math.max(j.current.scale,.85),Z.max);k(C(n.cx,n.cy,i,{w:r.width,h:r.height},Z))},[f,S,k]),P=(0,R.useRef)(!1);(0,R.useEffect)(()=>{if(!t){P.current&&E(h),P.current=!1;return}let e=f.findIndex(e=>e.block.id===t);e>=0&&(P.current=!0,N(e))},[t,f,N,E,h]);let[F,I]=(0,R.useState)(!1),L=(0,R.useRef)(!1),ee=(0,R.useRef)(!1),z=(0,R.useRef)({x:0,y:0}),te=(0,R.useCallback)(e=>{e.target.closest(`.cv-node-ask, .cv-controls, a, button, input, select, textarea, [contenteditable="true"]`)||(L.current=!0,ee.current=!1,I(!0),z.current={x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture(e.pointerId))},[]),ne=(0,R.useCallback)(e=>{if(!L.current)return;let t=e.clientX-z.current.x,n=e.clientY-z.current.y;Math.abs(t)+Math.abs(n)>3&&(ee.current=!0),z.current={x:e.clientX,y:e.clientY},O(t,n)},[O]),re=(0,R.useCallback)(e=>{let t=L.current;L.current=!1,I(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(!t||ee.current)return;let n=S.current;if(!n||f.length===0)return;let r=n.getBoundingClientRect(),i=w(j.current,e.clientX-r.left,e.clientY-r.top),a=f.findIndex(e=>i.x>=e.x&&i.x<=e.x+e.w&&i.y>=e.y&&i.y<=e.y+e.h);a>=0&&N(a)},[f,S,N]);(0,R.useEffect)(()=>{let e=S.current;if(!e)return;let t=e=>{e.preventDefault(),D(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[S,D]);let B=(0,R.useCallback)(e=>{let t=S.current;if(!t)return;let n=t.getBoundingClientRect();D(e,n.left+n.width/2,n.top+n.height/2)},[S,D]),H=(0,R.useCallback)(e=>{e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),N(Math.min(f.length-1,M.current+1))):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),N(Math.max(0,M.current-1))):e.key===`Home`?(e.preventDefault(),E(h)):e.key===`Escape`&&a&&(e.preventDefault(),a())},[N,E,h,f.length,a]),U=v.scale>=.6;return(0,V.jsxs)(`div`,{className:`cv-viewport`+(F?` is-panning`:``),ref:S,role:`group`,"aria-label":`Answer canvas — this answer's cards as a board you can pan and zoom`,tabIndex:0,onPointerDown:te,onPointerMove:ne,onPointerUp:re,onPointerCancel:re,onKeyDown:H,children:[(0,V.jsxs)(`div`,{className:`cv-controls`,children:[(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1.25),title:`Zoom in`,"aria-label":`Zoom in`,children:`+`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1/1.25),title:`Zoom out`,"aria-label":`Zoom out`,children:`−`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>E(h),title:`Fit the whole canvas`,"aria-label":`Fit the whole canvas`,children:`⤢`})]}),(0,V.jsxs)(`div`,{className:`cv-world`,style:{width:p,height:m,transform:x},children:[(0,V.jsx)(`svg`,{className:`cv-thread-svg`,width:p,height:m,viewBox:`0 0 ${p} ${m}`,"aria-hidden":`true`,children:(0,V.jsx)(`path`,{className:`cv-thread`+(A?``:` cv-draw`),d:_,pathLength:1})}),f.map((e,a)=>{let o=e.block.id,s=i?.has(o)??!1;return(0,V.jsxs)(`div`,{ref:e=>{c.current[a]=e},className:`cv-node`+(s?` is-selected`:``)+(t===o?` is-spot`:``),style:{left:e.x,top:e.y,width:e.w},"data-kind":e.block.type,children:[(0,V.jsxs)(`div`,{className:`cv-node-label`,title:$(e.block),children:[(0,V.jsx)(`span`,{className:`cv-node-step`,children:a+1}),(0,V.jsx)(`span`,{className:`cv-node-title`,children:$(e.block)})]}),(0,V.jsx)(`div`,{className:`cv-node-inner`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e.block}),children:n(e.block)})}),r&&U&&(0,V.jsx)(`button`,{type:`button`,className:`cv-node-ask`,onClick:t=>{t.stopPropagation(),r(e.block)},children:s?`Selected`:`Ask`})]},o)})]})]})}function ge(e){let t=(0,z.c)(35),{num:n,title:r,summary:i,stat:a,delta:o,deltaDir:c,conf:l,sources:u,spotlight:d,dimmed:f,onProve:p,delay:m,children:g}=e,_=`card reveal`+(d?` spotlight`:``)+(f?` dimmed`:``),v=(m||0)+`ms`,y;t[0]===v?y=t[1]:(y={"--delay":v},t[0]=v,t[1]=y);let b=y,x;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),t[2]=x):x=t[2];let S;t[3]===n?S=t[4]:(S=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[x,`Finding `,n]}),t[3]=n,t[4]=S);let C;t[5]===r?C=t[6]:(C=(0,V.jsx)(`div`,{className:`insight-title`,children:r}),t[5]=r,t[6]=C);let w;t[7]!==o||t[8]!==c||t[9]!==a?(w=a&&(0,V.jsxs)(`div`,{className:`insight-stat`,children:[(0,V.jsx)(`span`,{className:`big tab-num`,"data-mark":`underline`,children:a}),o&&(0,V.jsxs)(`span`,{className:`delta `+(c||`up`),children:[c===`good`||c===`down`?(0,V.jsx)(s.arrowDown,{style:{width:13,height:13}}):(0,V.jsx)(s.arrowUp,{style:{width:13,height:13}}),o]})]}),t[7]=o,t[8]=c,t[9]=a,t[10]=w):w=t[10];let T;t[11]===i?T=t[12]:(T=(0,V.jsx)(`div`,{className:`insight-summary`,children:i}),t[11]=i,t[12]=T);let E;t[13]===u?E=t[14]:(E=u&&u.map(_e),t[13]=u,t[14]=E);let D;t[15]===E?D=t[16]:(D=(0,V.jsx)(`div`,{className:`card-foot-l`,children:E}),t[15]=E,t[16]=D);let O;t[17]!==l||t[18]!==u?.length?(O=l&&(0,V.jsx)(h,{level:l,title:u?.length?void 0:`Best estimate from the model's knowledge — not verified`}),t[17]=l,t[18]=u?.length,t[19]=O):O=t[19];let k;t[20]!==D||t[21]!==O?(k=(0,V.jsxs)(`div`,{className:`card-foot`,children:[D,O]}),t[20]=D,t[21]=O,t[22]=k):k=t[22];let A;t[23]===p?A=t[24]:(A=p&&(0,V.jsx)(`div`,{style:{marginTop:14},children:(0,V.jsxs)(`button`,{className:`mini-btn accent`,onClick:p,children:[(0,V.jsx)(s.proof,{}),` Prove it`]})}),t[23]=p,t[24]=A);let j;return t[25]!==g||t[26]!==_||t[27]!==k||t[28]!==A||t[29]!==b||t[30]!==S||t[31]!==C||t[32]!==w||t[33]!==T?(j=(0,V.jsxs)(`div`,{className:_,style:b,children:[S,C,w,T,g,k,A]}),t[25]=g,t[26]=_,t[27]=k,t[28]=A,t[29]=b,t[30]=S,t[31]=C,t[32]=w,t[33]=T,t[34]=j):j=t[34],j}function _e(e,t){return(0,V.jsx)(l,{file:e.file,loc:e.loc},t)}function ve({title:e,series:t,labels:n,unit:r=`$`,delay:i,footer:a,conf:o}){let[c,l]=(0,R.useState)(null),u={l:50,r:50,t:14,b:26},d=t.flatMap(e=>e.data),f=(d.length?Math.max(...d):1)*1.12,p=Math.min(0,...d),m=f-p||1,g=n.length,_=e=>u.l+(g>1?e/(g-1):0)*(560-u.l-u.r),v=e=>u.t+(1-(e-p)/m)*(220-u.t-u.b),y=(()=>{let e=0,n=-1/0;for(let r of t)r.data.forEach((t,r)=>{t>n&&(n=t,e=r)});return e})(),b=e=>e.map((e,t)=>`${t?`L`:`M`}${_(t).toFixed(1)} ${v(e).toFixed(1)}`).join(` `),x=e=>`${b(e)} L${_(g-1)} ${v(p)} L${_(0)} ${v(p)} Z`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.chart,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsxs)(`div`,{className:`chart-wrap`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 560 220`,width:`100%`,style:{display:`block`,overflow:`visible`},onMouseLeave:()=>l(null),children:[(0,V.jsx)(`defs`,{children:t.map((e,t)=>(0,V.jsxs)(`linearGradient`,{id:`g${t}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:e.color,stopOpacity:`0`})]},t))}),[.25,.5,.75].map((e,t)=>(0,V.jsx)(`line`,{x1:u.l,x2:560-u.r,y1:u.t+e*(220-u.t-u.b),y2:u.t+e*(220-u.t-u.b),stroke:`var(--grid-line)`},t)),t.map((e,t)=>(0,V.jsxs)(`g`,{children:[e.area!==!1&&(0,V.jsx)(`path`,{className:`tc-area`,d:x(e.data),fill:`url(#g${t})`}),(0,V.jsx)(`path`,{className:`tc-line`,d:b(e.data),pathLength:1,fill:`none`,stroke:e.color,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]},t)),n.map((e,t)=>(0,V.jsx)(`rect`,{x:_(t)-560/g/2,y:0,width:560/g,height:220,fill:`transparent`,"data-mark":t===y?`circle`:void 0,onMouseEnter:()=>l(t)},t)),c!=null&&(0,V.jsxs)(`g`,{children:[(0,V.jsx)(`line`,{x1:_(c),x2:_(c),y1:u.t,y2:220-u.b,stroke:`var(--hover-line)`}),t.map((e,t)=>(0,V.jsx)(`circle`,{cx:_(c),cy:v(e.data[c]),r:`4.5`,fill:e.color,stroke:`var(--surface-default)`,strokeWidth:`2`},t))]}),n.map((e,t)=>(0,V.jsx)(`text`,{x:_(t),y:214,fontSize:`11`,textAnchor:`middle`,fill:`var(--text-muted)`,children:e},t))]}),c!=null&&(0,V.jsxs)(`div`,{className:`chart-tip`,style:{opacity:1,left:`${_(c)/560*100}%`,top:`${v(Math.max(...t.map(e=>e.data[c])))/220*100}%`},children:[(0,V.jsx)(`strong`,{children:n[c]}),t.map((e,n)=>(0,V.jsxs)(`div`,{style:{color:e.color,fontVariantNumeric:`tabular-nums`},children:[e.name,`: `,r,t[n].data[c].toLocaleString()]},n))]})]}),(0,V.jsx)(`div`,{className:`chart-legend`,children:t.map((e,t)=>(0,V.jsxs)(`span`,{className:`legend-item`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),e.name]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function ye({title:e,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,conf:i,delay:a}){let o=s[t]||s.table,c=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.pct>r[t].pct&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`cat-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`cat-row`,children:[(0,V.jsxs)(`div`,{className:`cat-top`,children:[(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`span`,{className:`cat-name`,children:e.name}),e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:e.tagColor?{color:e.tagColor,background:`transparent`,border:`1px solid currentColor`}:void 0,children:e.tag})]}),(0,V.jsx)(`span`,{className:`tab-num`,children:e.val})]}),(0,V.jsx)(`div`,{className:`cat-bar`,children:(0,V.jsx)(`i`,{"data-mark":t===c?`circle`:void 0,style:{width:e.pct+`%`,background:e.hot?`var(--warning)`:`var(--presence)`}})})]},e.name))}),i&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:i,title:`Best estimate from the model's knowledge — not verified`})]})]})}function be(e){let t=(0,z.c)(13),{title:n,events:r,delay:i,eyebrow:a}=e,o=(i||0)+`ms`,c;t[0]===o?c=t[1]:(c={"--delay":o},t[0]=o,t[1]=c);let l=c,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(s.clock,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=u):u=t[2];let d=a||n,f;t[3]===d?f=t[4]:(f=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[u,` `,d]}),t[3]=d,t[4]=f);let p;t[5]===r?p=t[6]:(p=r.map(xe),t[5]=r,t[6]=p);let m;t[7]===p?m=t[8]:(m=(0,V.jsx)(`div`,{className:`timeline`,children:p}),t[7]=p,t[8]=m);let h;return t[9]!==l||t[10]!==f||t[11]!==m?(h=(0,V.jsxs)(`div`,{className:`card reveal`,style:l,children:[f,m]}),t[9]=l,t[10]=f,t[11]=m,t[12]=h):h=t[12],h}function xe(e,t){return(0,V.jsxs)(`div`,{className:`tl-row`,children:[(0,V.jsx)(`div`,{className:`tl-rail`,children:(0,V.jsx)(`span`,{className:`tl-dot`,"data-mark":t===0?`point`:void 0,style:{background:e.color||`var(--presence)`}})}),(0,V.jsxs)(`div`,{className:`tl-body`,children:[(0,V.jsx)(`div`,{className:`tl-time`,children:e.time}),(0,V.jsxs)(`div`,{className:`tl-title`,children:[e.title,e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:{marginLeft:8},children:e.tag})]}),e.detail&&(0,V.jsx)(`div`,{className:`tl-detail`,children:e.detail})]})]},t)}function Se({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,items:r,delay:i}){let a=s[t]||s.layers;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(a,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`check-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`check-row`,children:[(0,V.jsx)(`span`,{className:`check-ic`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e)})]},t))})]})}function Ce(e){let t=(0,z.c)(26),{eyebrow:n,options:r,criteria:i,recommendation:a,delay:o}=e,c=(o||0)+`ms`,l;t[0]===c?l=t[1]:(l={"--delay":c},t[0]=c,t[1]=l);let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=d):d=t[2];let f=n||`Side by side`,p;t[3]===f?p=t[4]:(p=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[d,` `,f]}),t[3]=f,t[4]=p);let m=`minmax(0, 1.1fr) repeat(${r.length}, minmax(0, 1fr))`,h;t[5]===m?h=t[6]:(h={gridTemplateColumns:m},t[5]=m,t[6]=h);let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(`div`,{className:`cmp-corner`}),t[7]=g):g=t[7];let _;t[8]===r?_=t[9]:(_=r.map(we),t[8]=r,t[9]=_);let v;if(t[10]!==i||t[11]!==r){let e;t[13]===r?e=t[14]:(e=(e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsx)(`div`,{className:`cmp-crit`,children:e.label}),e.cells.map((e,t)=>(0,V.jsxs)(`div`,{className:`cmp-val`+(e.win?` win`:``)+(r[t]&&r[t].pick?` in-pick`:``),children:[e.win&&(0,V.jsx)(`span`,{className:`cmp-tick`,children:(0,V.jsx)(s.check,{style:{width:11,height:11}})}),(0,V.jsx)(`span`,{children:e.v})]},t))]},t),t[13]=r,t[14]=e),v=i.map(e),t[10]=i,t[11]=r,t[12]=v}else v=t[12];let y;t[15]!==_||t[16]!==v||t[17]!==h?(y=(0,V.jsxs)(`div`,{className:`cmp`,style:h,children:[g,_,v]}),t[15]=_,t[16]=v,t[17]=h,t[18]=y):y=t[18];let b;t[19]===a?b=t[20]:(b=a&&(0,V.jsxs)(`div`,{className:`cmp-rec`,children:[(0,V.jsx)(s.sparkle,{style:{width:16,height:16,color:`var(--insight)`,flexShrink:0}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(a)})]}),t[19]=a,t[20]=b);let x;return t[21]!==y||t[22]!==b||t[23]!==u||t[24]!==p?(x=(0,V.jsxs)(`div`,{className:`card reveal`,style:u,children:[p,y,b]}),t[21]=y,t[22]=b,t[23]=u,t[24]=p,t[25]=x):x=t[25],x}function we(e,t){return(0,V.jsxs)(`div`,{className:`cmp-opt`+(e.pick?` pick`:``),"data-mark":e.pick?`circle`:void 0,children:[(0,V.jsx)(`div`,{className:`cmp-opt-name`,children:e.name}),e.sub&&(0,V.jsx)(`div`,{className:`cmp-opt-sub`,children:e.sub}),e.pick&&(0,V.jsxs)(`div`,{className:`cmp-pick`,children:[(0,V.jsx)(s.check,{style:{width:12,height:12}}),` Mavéa's pick`]})]},t)}function Te({kicker:e,head:t,bullets:n,foot:r,eyebrow:i=`One-pager · ready to share`,delay:a}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,i]}),(0,V.jsxs)(`div`,{className:`slide-card`,children:[(0,V.jsx)(`div`,{className:`slide-kicker`,children:e}),(0,V.jsx)(`div`,{className:`slide-head`,children:t}),(0,V.jsx)(`div`,{className:`slide-bullets`,children:n.map((e,t)=>(0,V.jsxs)(`div`,{className:`slide-bullet`,children:[(0,V.jsx)(`span`,{className:`bdot`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(e.text)})]},t))}),(0,V.jsxs)(`div`,{className:`slide-foot`,children:[(0,V.jsx)(`span`,{children:r||`Made by Mavéa · from your files`}),(0,V.jsx)(`span`,{children:`June 2026`})]})]}),(0,V.jsxs)(`div`,{className:`action-btns`,style:{marginTop:16},children:[(0,V.jsxs)(`button`,{className:`btn-ghost`,onClick:()=>c(`Tell Mavéa what to change — it'll redo the one-pager`,`info`),children:[(0,V.jsx)(s.edit,{style:{width:15,height:15}}),` Edit`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>c(`Simplified — fewer words, bigger takeaways`,`good`),children:`Make it simpler`}),(0,V.jsxs)(`button`,{className:`btn-primary`,style:{flex:`0 0 auto`,padding:`0 20px`},onClick:()=>window.print(),title:`Export this canvas to PDF`,children:[(0,V.jsx)(s.export,{style:{width:16,height:16}}),` Export`]})]})]})}function Ee(e,t){return t||(e?e.startsWith(`calendar.`)?`Adds one event to your calendar. No invites are sent.`:e.startsWith(`github.`)?`Opens a draft PR. It won't merge until you review and approve it on GitHub.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`)}function De({delay:e,onConfirm:t,eyebrow:n=`Action`,icon:r=`mail`,title:i=`Run this action`,lines:a,perm:o,cta:c=`Confirm`,doneText:l=`Done`,mcpId:u,fields:d}){let[f,p]=(0,R.useState)(`idle`),[m,h]=(0,R.useState)(()=>Object.fromEntries((d??[]).map(e=>[e.param,e.value]))),[g,_]=(0,R.useState)(``),v=(0,R.useRef)(void 0);(0,R.useEffect)(()=>()=>clearTimeout(v.current),[]);let y=s[r]||s.mail,b=Ee(u,o),x=async()=>{p(`running`),await new Promise(e=>{v.current=setTimeout(e,1400)}),p(`done`),t?.()};return(0,V.jsxs)(`div`,{className:`card action-card reveal`,style:{"--delay":(e||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(y,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,n]}),(0,V.jsx)(`div`,{className:`insight-title`,style:{fontSize:17},children:i}),f!==`editing`&&a&&a.length>0&&(0,V.jsx)(`div`,{className:`action-preview`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{style:{marginTop:t?6:0},children:[(0,V.jsx)(`span`,{className:`to`,children:e.k}),` · `,e.v]},t))}),f===`editing`&&d&&d.length>0&&(0,V.jsx)(`div`,{className:`action-edit-fields`,children:d.map(e=>(0,V.jsxs)(`div`,{className:`action-edit-field`,children:[(0,V.jsx)(`label`,{className:`action-edit-label`,children:e.label}),e.multiline?(0,V.jsx)(`textarea`,{className:`action-edit-input action-edit-textarea`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value})),rows:4}):(0,V.jsx)(`input`,{className:`action-edit-input`,type:`text`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value}))})]},e.param))}),f!==`editing`&&(0,V.jsxs)(`div`,{className:`perm`,children:[(0,V.jsx)(s.lock,{}),` `,b]}),f===`done`&&(0,V.jsxs)(`button`,{type:`button`,onClick:t,disabled:!t,style:{display:`flex`,alignItems:`center`,gap:8,color:`var(--insight)`,fontWeight:600,fontSize:14,marginTop:6,background:`none`,border:0,padding:0,textAlign:`left`,cursor:t?`pointer`:`default`},children:[(0,V.jsx)(s.check,{style:{width:18,height:18}}),` `,l,t&&(0,V.jsx)(`span`,{className:`open-app-hint`,children:`· open ↗`})]}),f===`error`&&(0,V.jsxs)(`div`,{className:`action-error`,children:[(0,V.jsx)(`span`,{className:`action-error-msg`,children:g}),(0,V.jsx)(`button`,{className:`btn-ghost`,style:{marginLeft:12},onClick:()=>{p(`idle`),_(``)},children:`Retry`})]}),f===`idle`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:x,children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` `,c]}),d&&d.length>0&&(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`editing`),children:`Edit first`})]}),f===`editing`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:()=>x(),children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` Confirm`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`idle`),children:`Cancel`})]}),f===`running`&&(0,V.jsx)(`div`,{className:`action-btns`,children:(0,V.jsxs)(`button`,{className:`btn-primary`,disabled:!0,children:[(0,V.jsx)(`span`,{className:`tiny-spin`}),` Working…`]})})]})}function Oe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,rings:r,footer:i,delay:a}){let o=s[t]||s.spark,c=`rs`+(0,R.useId)().replace(/:/g,``),l=2*Math.PI*52;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`ring-row`,children:r.map((e,t)=>{let n=Math.max(0,Math.min(1,e.pct)),r=e.color||`var(--presence)`;return(0,V.jsxs)(`div`,{className:`ring-item`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 130 130`,className:`ring-svg`,children:[(0,V.jsxs)(`defs`,{children:[(0,V.jsxs)(`linearGradient`,{id:`${c}g${t}`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.65`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:r})]}),(0,V.jsxs)(`filter`,{id:`${c}f${t}`,x:`-40%`,y:`-40%`,width:`180%`,height:`180%`,children:[(0,V.jsx)(`feGaussianBlur`,{stdDeviation:`3`,result:`b`}),(0,V.jsxs)(`feMerge`,{children:[(0,V.jsx)(`feMergeNode`,{in:`b`}),(0,V.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`var(--track)`,strokeWidth:`11`}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`url(#${c}g${t})`,strokeWidth:`11`,strokeLinecap:`round`,strokeDasharray:l,strokeDashoffset:l*(1-n),filter:`url(#${c}f${t})`,transform:`rotate(-90 65 65)`,className:`ring-arc`,"data-mark":t===0?`circle`:void 0}),(()=>{let t=String(e.display??``),n=t.length,r=Math.max(9,Math.min(25,Math.round(155/Math.max(1,n)))),i=n>10;return(0,V.jsx)(`text`,{x:`65`,y:e.unit?61:70,textAnchor:`middle`,className:`ring-val`,style:{fontSize:r},...i?{textLength:92,lengthAdjust:`spacingAndGlyphs`}:{},children:t})})(),e.unit&&(0,V.jsx)(`text`,{x:`65`,y:`80`,textAnchor:`middle`,className:`ring-unit`,children:e.unit})]}),(0,V.jsx)(`div`,{className:`ring-label`,children:e.label}),e.hint&&(0,V.jsx)(`div`,{className:`ring-hint`,children:e.hint})]},t)})}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:6},children:i})]})}function ke({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,bars:r,unit:i=``,goal:a,goalLabel:o,footer:c,conf:l,delay:u}){let d=s[t]||s.chart,f=Math.max(...r.map(e=>e.value),a||0)*1.05||1,p=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.value>r[t].value&&(t=n)}),t})(),m=i.trim(),g=m!==``&&(/^[$€£¥₹]/.test(m)||m===`%`||m.length<=2),_=g?``:m;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),_&&(0,V.jsx)(`div`,{className:`bars-unit`,children:_}),(0,V.jsxs)(`div`,{className:`bars-chart`,children:[(0,V.jsxs)(`div`,{className:`bars-plot`,children:[a!=null&&(0,V.jsx)(`div`,{className:`bars-goal`,style:{bottom:`${a/f*100}%`},children:(0,V.jsx)(`span`,{className:`bars-goal-label`,children:o||`Goal`})}),r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-col`,children:(0,V.jsx)(`div`,{className:`bar-fill`,"data-mark":t===p?`circle`:void 0,style:{height:`${e.value/f*100}%`,background:e.hot?`var(--warning)`:e.color||`var(--presence)`},children:(0,V.jsx)(`span`,{className:`bar-val tab-num`,children:e.label2||(g?D(e.value,i):O(e.value))})})},t))]}),(0,V.jsx)(`div`,{className:`bars-axis`,children:r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-label`,children:e.label},t))})]}),c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:c}),l&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:l,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ae({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,total:r,segments:i,footer:a,conf:o,delay:c}){let l=s[t]||s.layers,u=i.reduce((e,t)=>e+t.value,0)||1,d=i.reduce((e,t,n)=>t.value>i[e].value?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,V.jsx)(`div`,{className:`stack-total tab-num`,children:r}),(0,V.jsx)(`div`,{className:`stack-bar`,children:i.map((e,t)=>(0,V.jsx)(`div`,{className:`stack-seg`,title:`${e.label} · ${e.display}`,"data-mark":t===d?`circle`:void 0,style:{width:`${e.value/u*100}%`,background:e.color}},t))}),(0,V.jsx)(`div`,{className:`stack-legend`,children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`stack-leg`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`stack-leg-name`,children:e.label}),(0,V.jsx)(`span`,{className:`stack-leg-val tab-num`,children:e.display})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function je({title:e,icon:t=`chart`,iconColor:n=`var(--warning)`,points:r,xLabel:i,yLabel:a,xDomain:o,yDomain:c,trend:l,footer:u,delay:d}){let f=s[t]||s.chart,p={l:54,r:14,t:14,b:38},m=1/0,h=-1/0,g=1/0,_=-1/0;for(let e of r)e.x<m&&(m=e.x),e.x>h&&(h=e.x),e.y<g&&(g=e.y),e.y>_&&(_=e.y);let v=o||[m,h],y=c||[g,_],b=v[1]-v[0]||1,x=y[1]-y[0]||1,S=e=>p.l+(e-v[0])/b*(540-p.l-p.r),C=e=>p.t+(1-(e-y[0])/x)*(240-p.t-p.b),w=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.y>r[t].y&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`svg`,{viewBox:`0 0 540 240`,width:`100%`,style:{display:`block`,overflow:`visible`},children:[[0,.5,1].map((e,t)=>{let n=p.t+e*(240-p.t-p.b);return(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:n,y2:n,stroke:`var(--grid-line)`},t)}),(0,V.jsx)(`line`,{x1:p.l,x2:p.l,y1:p.t,y2:240-p.b,stroke:`var(--grid-strong)`}),(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:240-p.b,y2:240-p.b,stroke:`var(--grid-strong)`}),l&&(0,V.jsx)(`line`,{x1:S(l[0][0]),y1:C(l[0][1]),x2:S(l[1][0]),y2:C(l[1][1]),stroke:`var(--warning)`,strokeWidth:`2`,strokeDasharray:`5 5`,opacity:`0.7`}),r.map((e,t)=>(0,V.jsx)(`circle`,{cx:S(e.x),cy:C(e.y),r:e.hot?7:5.5,fill:e.hot?`var(--warning)`:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`,opacity:e.hot?1:.8,"data-mark":t===w?`circle`:void 0},t)),(0,V.jsx)(`text`,{x:540/2,y:234,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:i}),(0,V.jsx)(`text`,{x:0,y:0,transform:`translate(13, ${(p.t+240-p.b)/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:a})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:u})]})}function Me({title:e,icon:t=`clock`,iconColor:n=`var(--insight)`,cols:r,rows:i,levelColor:a,footer:o,legend:c,delay:l}){let u=s[t]||s.clock,d=0,f=0,p=-1;i.forEach((e,t)=>{e.cells.forEach((e,n)=>{let r=typeof e==`object`&&e?e.lvl??0:e??0;r!=null&&r>p&&(p=r,d=t,f=n)})});let m=e=>e==null?`var(--cell-empty)`:`color-mix(in oklab, ${a||`var(--presence)`} ${[.14,.34,.6,.92][Math.max(0,Math.min(3,e))]*100}%, transparent)`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`heat-wrap`,children:[r&&(0,V.jsxs)(`div`,{className:`heat-cols`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`}),r.map((e,t)=>(0,V.jsx)(`span`,{className:`heat-col-label`,children:e},t))]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`heat-row`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`,children:e.label}),e.cells.map((e,n)=>(0,V.jsx)(`span`,{className:`heat-cell`,title:e&&typeof e==`object`&&e.note?e.note:``,"data-mark":t===d&&n===f?`circle`:void 0,style:{background:m(typeof e==`object`&&e?e.lvl:e)},children:typeof e==`object`&&e&&e.mark?(0,V.jsx)(`span`,{className:`heat-mark`,children:e.mark}):null},n))]},t))]}),c&&(0,V.jsxs)(`div`,{className:`heat-legend`,children:[(0,V.jsx)(`span`,{className:`faint`,children:c[0]}),[0,1,2,3].map(e=>(0,V.jsx)(`span`,{className:`heat-cell sm`,style:{background:m(e)}},e)),(0,V.jsx)(`span`,{className:`faint`,children:c[1]})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function Ne({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence-soft)`,steps:r,footer:i,delay:a}){let o=s[t]||s.sparkle;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`flow`,children:r.map((e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flow-step`,style:{"--sc":e.color||`var(--presence)`},children:[(0,V.jsx)(`div`,{className:`flow-num`,"data-mark":t===0?`circle`:void 0,children:t+1}),(0,V.jsx)(`div`,{className:`flow-title`,children:e.title}),(0,V.jsx)(`div`,{className:`flow-sub`,children:e.sub})]}),t<r.length-1&&(0,V.jsx)(`div`,{className:`flow-arrow`,children:(0,V.jsx)(s.chevR,{})})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:i})]})}function Pe({title:e=`From the web`,live:t=!0,results:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.globe,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e,t&&(0,V.jsxs)(`span`,{className:`web-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`live`]})]}),(0,V.jsx)(`div`,{className:`web-list`,children:n.map((e,t)=>(0,V.jsxs)(`button`,{type:`button`,className:`web-result`,onClick:()=>c(`Opening `+e.domain+` →`),children:[(0,V.jsx)(`span`,{className:`web-fav`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`},children:(e.domain||`?`)[0].toUpperCase()}),(0,V.jsxs)(`span`,{className:`web-body`,children:[(0,V.jsx)(`span`,{className:`web-title`,children:e.title}),(0,V.jsxs)(`span`,{className:`web-url`,children:[e.domain,e.path||``]}),(0,V.jsx)(`span`,{className:`web-excerpt`,dangerouslySetInnerHTML:E(e.excerpt)})]}),(0,V.jsx)(s.external,{className:`web-ext`})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function Fe(e){let t=(0,z.c)(12),{item:n}=e,r=n.src??``,i;t[0]!==n.candidates||t[1]!==r?(i=[r,...n.candidates??[]].map(Le).filter(Ie),t[0]=n.candidates,t[1]=r,t[2]=i):i=t[2];let a=i,o;t[3]===n.fallbackSrc?o=t[4]:(o=k(n.fallbackSrc),t[3]=n.fallbackSrc,t[4]=o);let c=o,l=A(a),u=l.src??(a.length&&l.state===`none`?c:void 0);if(!u){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsx)(s.image,{className:`img-ph-ic`}),t[5]=e):e=t[5],e}let d;t[6]===c?d=t[7]:(d=e=>{let t=e.currentTarget;c&&t.src!==c&&(t.src=c)},t[6]=c,t[7]=d);let f;return t[8]!==n.label||t[9]!==u||t[10]!==d?(f=(0,V.jsx)(`img`,{className:`img-real`,src:u,alt:n.label,loading:`lazy`,referrerPolicy:`no-referrer`,onError:d}),t[8]=n.label,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}function Ie(e){return!!e}function Le(e){return k(e)}function Re({eyebrow:e=`From the web`,items:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.image,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`gallery`,children:t.map((e,t)=>{let n=()=>c(`Saved “`+e.label+`” to your notes`);return(0,V.jsxs)(`div`,{className:`img-tile`,role:`button`,tabIndex:0,"aria-label":`Save ${e.label} to your notes`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},style:{"--h1":e.h1||`#3a4a6e`,"--h2":e.h2||`#1a2236`,cursor:`pointer`},children:[(0,V.jsxs)(`span`,{className:`img-ph`,children:[(0,V.jsx)(Fe,{item:e}),e.tag&&(0,V.jsx)(`span`,{className:`img-tag`,children:e.tag}),e.source&&(0,V.jsx)(`span`,{className:`img-src`,children:e.source})]}),(0,V.jsx)(`span`,{className:`img-cap`,children:e.label})]},e.label+t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function ze({title:e=`What this change touches`,center:t,nodes:n,footer:r,delay:i}){let a=n.map((e,t)=>{let r=(-90+360/n.length*t)*Math.PI/180;return{...e,x:180+Math.cos(r)*74,y:125+Math.sin(r)*74*.86}}),o=Math.max(0,a.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`codemap`,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 360 250`,width:`100%`,style:{display:`block`},children:[a.map((e,t)=>(0,V.jsx)(`line`,{x1:180,y1:125,x2:e.x,y2:e.y,stroke:e.hot?`var(--warning)`:`var(--grid-strong)`,strokeWidth:e.hot?1.6:1,strokeDasharray:e.hot?`0`:`3 3`},t)),a.map((e,t)=>(0,V.jsxs)(`g`,{transform:`translate(${e.x} ${e.y})`,children:[(0,V.jsx)(`circle`,{r:`6`,fill:e.hot?`var(--warning)`:`var(--surface-elevated-2)`,stroke:e.hot?`var(--warning)`:`var(--line-strong)`,strokeWidth:`1.5`,"data-mark":t===o?`circle`:void 0}),(0,V.jsx)(`text`,{x:`0`,y:e.y>125?20:-12,textAnchor:`middle`,fontSize:`10.5`,fill:`var(--text-secondary)`,className:`mono`,children:e.label}),e.note&&(0,V.jsx)(`text`,{x:`0`,y:e.y>125?32:-24,textAnchor:`middle`,fontSize:`9`,fill:`var(--text-muted)`,children:e.note})]},t)),(0,V.jsxs)(`g`,{transform:`translate(180 125)`,children:[(0,V.jsx)(`circle`,{r:`11`,fill:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`}),(0,V.jsx)(`circle`,{r:`11`,fill:`none`,stroke:`var(--presence)`,strokeWidth:`1`,opacity:`0.4`,className:`codemap-pulse`}),(0,V.jsx)(`text`,{x:`0`,y:`28`,textAnchor:`middle`,fontSize:`11`,fontWeight:`600`,fill:`var(--text-primary)`,className:`mono`,children:t})]})]})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:r})]})}function Be(e){let t=(0,z.c)(32),{title:n,file:r,add:i,del:a,lines:o,footer:c,delay:l}=e,u=(l||0)+`ms`,d;t[0]===u?d=t[1]:(d={"--delay":u},t[0]=u,t[1]=d);let f=d,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,V.jsx)(s.edit,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=p):p=t[2];let m=n||`The change`,h;t[3]===m?h=t[4]:(h=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[p,` `,m]}),t[3]=m,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(s.doc,{style:{width:13,height:13}}),t[5]=g):g=t[5];let _;t[6]===r?_=t[7]:(_=(0,V.jsxs)(`span`,{className:`diff-file mono`,children:[g,` `,r]}),t[6]=r,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,V.jsxs)(`span`,{className:`add`,children:[`+`,i]}),t[8]=i,t[9]=v);let y;t[10]===a?y=t[11]:(y=(0,V.jsxs)(`span`,{className:`del`,children:[`−`,a]}),t[10]=a,t[11]=y);let b;t[12]!==y||t[13]!==v?(b=(0,V.jsxs)(`span`,{className:`diff-stat`,children:[v,` `,y]}),t[12]=y,t[13]=v,t[14]=b):b=t[14];let x;t[15]!==b||t[16]!==_?(x=(0,V.jsxs)(`div`,{className:`diff-head`,children:[_,b]}),t[15]=b,t[16]=_,t[17]=x):x=t[17];let S;t[18]===o?S=t[19]:(S=o.map(Ve),t[18]=o,t[19]=S);let C;t[20]===S?C=t[21]:(C=(0,V.jsx)(`div`,{className:`diff-body mono`,children:S}),t[20]=S,t[21]=C);let w;t[22]!==x||t[23]!==C?(w=(0,V.jsxs)(`div`,{className:`diff`,children:[x,C]}),t[22]=x,t[23]=C,t[24]=w):w=t[24];let T;t[25]===c?T=t[26]:(T=c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c}),t[25]=c,t[26]=T);let E;return t[27]!==w||t[28]!==T||t[29]!==f||t[30]!==h?(E=(0,V.jsxs)(`div`,{className:`card reveal`,style:f,children:[h,w,T]}),t[27]=w,t[28]=T,t[29]=f,t[30]=h,t[31]=E):E=t[31],E}function Ve(e,t){return(0,V.jsxs)(`div`,{className:`diff-line `+(e.t||`ctx`),children:[(0,V.jsx)(`span`,{className:`diff-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,V.jsx)(`span`,{className:`diff-code`,dangerouslySetInnerHTML:E(e.c)})]},t)}var He={pass:s.check,fail:s.x,skip:s.clock};function Ue({title:e=`Tests after the change`,summary:t,items:n,footer:r,delay:i}){let a=n.findIndex(e=>e.status===`fail`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.proof,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),t&&(0,V.jsx)(`div`,{className:`checks-summary`,children:t}),(0,V.jsx)(`div`,{className:`checks-list`,children:n.map((e,t)=>{let n=He[e.status]||s.check;return(0,V.jsxs)(`div`,{className:`check2-row `+e.status,children:[(0,V.jsx)(`span`,{className:`check2-ic`,"data-mark":t===a?`circle`:void 0,children:(0,V.jsx)(n,{})}),(0,V.jsx)(`span`,{className:`check2-name mono`,children:e.name}),e.note&&(0,V.jsx)(`span`,{className:`check2-note`,children:e.note})]},t)})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function We({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,size:r=132,thickness:i=18,rows:a,footer:o,conf:c,delay:l}){let u=s[t]||s.chart,d=r/2-i/2,f=2*Math.PI*d,p=0,m=a.map(e=>{let t=f*e.pct/100,n={len:t,off:-p,color:e.color};return p+=t,n}),g=a.reduce((e,t,n)=>t.pct>a[e].pct?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`donut-wrap`,children:[(0,V.jsx)(`svg`,{className:`donut`,viewBox:`0 0 ${r} ${r}`,width:r,height:r,children:(0,V.jsxs)(`g`,{transform:`rotate(-90 ${r/2} ${r/2})`,children:[(0,V.jsx)(`circle`,{cx:r/2,cy:r/2,r:d,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:i}),m.map((e,t)=>(0,V.jsx)(`circle`,{className:`donut-seg`,cx:r/2,cy:r/2,r:d,fill:`none`,stroke:e.color,strokeWidth:i,strokeLinecap:`butt`,strokeDasharray:`${Math.max(0,e.len-1.5)} ${f-Math.max(0,e.len-1.5)}`,strokeDashoffset:e.off,"data-mark":t===g?`circle`:void 0},t))]})}),(0,V.jsx)(`ul`,{className:`donut-legend`,children:a.map((e,t)=>(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`i`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`dl-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`dl-pct tab-num`,children:[e.pct,`%`]})]},t))})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o}),c&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:c,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ge({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,value:r,max:i=100,size:a=116,color:o,band:c,driver:l,footer:u,conf:d,delay:f}){let p=s[t]||s.spark,m=a/2-10,g=Math.max(0,Math.min(1,r/i)),_=o||(r>=40?`var(--warning)`:`var(--insight)`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`risk-wrap`,children:[(0,V.jsxs)(`div`,{className:`gauge-host`,children:[(0,V.jsxs)(`svg`,{className:`gauge`,viewBox:`0 0 ${a} ${a}`,width:a,height:a,children:[(0,V.jsx)(`circle`,{cx:a/2,cy:a/2,r:m,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:`9`}),(0,V.jsx)(`circle`,{className:`gauge-arc`,cx:a/2,cy:a/2,r:m,fill:`none`,stroke:_,strokeWidth:`9`,strokeLinecap:`round`,pathLength:1,strokeDasharray:1,strokeDashoffset:1-g,transform:`rotate(-90 ${a/2} ${a/2})`})]}),(0,V.jsxs)(`div`,{className:`gauge-center`,children:[(0,V.jsx)(`div`,{className:`gauge-num tab-num`,"data-mark":`underline`,style:{color:_},children:r}),c&&(0,V.jsx)(`div`,{className:`gauge-band`,children:c})]})]}),l&&(0,V.jsx)(`p`,{className:`risk-driver`,dangerouslySetInnerHTML:E(l)})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u}),d&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:d,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ke({title:e=`Around the league`,icon:t=`bell`,iconColor:n=`var(--presence-soft)`,games:r,footer:i,delay:a}){let o=s[t]||s.bell,c=Math.max(0,r.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`score-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`game`+(e.hot?` hot`:``),"data-mark":t===c?`circle`:void 0,style:{"--ti":t},children:[(0,V.jsxs)(`div`,{className:`g-rows`,children:[(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.away}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.as})]}),(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.home}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.hs})]})]}),(0,V.jsxs)(`span`,{className:`g-status`+(e.hot?` live`:``),children:[e.hot&&(0,V.jsx)(`span`,{className:`live-dot`}),e.status]})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function qe({title:e=`Standings`,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.table;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`stand-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`stand`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`stand-rank`,children:t+1}),(0,V.jsx)(`span`,{className:`stand-team`,"data-mark":t===0?`underline`:void 0,children:e.team}),(0,V.jsx)(`span`,{className:`stand-rec tab-num`,children:e.rec}),(0,V.jsx)(`span`,{className:`stand-gb tab-num`,children:e.gb})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Je({title:e=`By stage`,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,headline:r,sub:i,unit:a=`$`,suffix:o=`M`,stages:c,footer:l,delay:u}){let d=s[t]||s.layers,f=Math.max(1,...c.map(e=>e.v)),p=c.reduce((e,t,n)=>t.v>c[e].v?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,V.jsxs)(`div`,{className:`stat-row`,children:[r&&(0,V.jsx)(`div`,{className:`big-stat tab-num`,style:{color:`var(--presence)`},children:r}),i&&(0,V.jsx)(`span`,{className:`delta accent`,children:i})]}),(0,V.jsx)(`ul`,{className:`funnel`,children:c.map((e,t)=>(0,V.jsxs)(`li`,{className:`funnel-row`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`funnel-label`,children:e.k}),(0,V.jsx)(`span`,{className:`funnel-track`,children:(0,V.jsx)(`span`,{className:`funnel-fill`,"data-mark":t===p?`circle`:void 0,style:{width:e.v/f*100+`%`}})}),(0,V.jsxs)(`span`,{className:`funnel-val tab-num`,children:[a,e.v,o]})]},t))}),l&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:l})]})}function Ye(e){return e===4?2:Math.min(Math.max(e,1),3)}function Xe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,cols:r,kpis:i,footer:a,conf:o,delay:c}){let l=s[t]||s.spark;return(0,V.jsxs)(`div`,{className:`card reveal kpi-card`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`kpi-grid`,style:{"--kpi-cols":r??Ye(i.length)},children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`kpi`,children:[(0,V.jsx)(`div`,{className:`kpi-val tab-num`,"data-mark":t===0?`underline`:void 0,style:e.color?{color:e.color}:void 0,children:e.val}),(0,V.jsx)(`div`,{className:`kpi-label`,children:e.label})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ze({title:e=`What customers are saying`,icon:t=`quote`,iconColor:n=`var(--presence-soft)`,quotes:r,footer:i,delay:a}){let o=s[t]||s.quote;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`quote-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`quote-item q-`+(e.tone||`neutral`),style:{"--ti":t},children:[(0,V.jsxs)(`p`,{className:`quote-text`,children:[`“`,e.text,`”`]}),(0,V.jsx)(`span`,{className:`quote-who`,children:e.who})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Qe({title:e=`Plan`,icon:t=`check`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.check,c=(()=>{let e=r.findIndex(e=>e.st===`doing`);return e>=0?e:r.findIndex(e=>e.st===`todo`)})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`plan-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`plan-row st-`+e.st,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`plan-check`,"data-mark":t===c?`circle`:void 0,children:e.st===`done`?(0,V.jsx)(s.check,{style:{width:12,height:12}}):e.st===`doing`?(0,V.jsx)(`span`,{className:`plan-dot`}):null}),(0,V.jsx)(`span`,{className:`plan-t`,children:e.t})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function $e({title:e=`What I learned about you`,items:t,conf:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.sparkle,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`understand-list`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`understand-row`,children:[(0,V.jsx)(`span`,{className:`understand-check`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{className:`understand-text`,"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e.text)}),(0,V.jsxs)(`span`,{className:`understand-meta`,children:[e.source&&(0,V.jsx)(l,{file:e.source}),(0,V.jsx)(`button`,{className:`understand-edit`,title:`Fix this`,type:`button`,onClick:()=>c(`Tell Mavéa what's off — it'll adjust`,`info`),children:(0,V.jsx)(s.edit,{})})]})]},t))}),(0,V.jsxs)(`div`,{className:`card-foot`,style:{marginTop:14},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5},children:`Read straight from your site — correct anything.`}),n&&(0,V.jsx)(h,{level:n,title:t.some(e=>e.source)?void 0:`Best estimate from the model's knowledge — not verified`})]})]})}function et({title:e=`The data model`,entities:t,relations:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`schema`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity`,style:{"--ec":e.color||`var(--presence)`},children:[(0,V.jsxs)(`div`,{className:`entity-head`,children:[(0,V.jsx)(s.table,{style:{width:13,height:13}}),` `,e.name,e.badge&&(0,V.jsx)(`span`,{className:`entity-badge`,children:e.badge})]}),(0,V.jsx)(`div`,{className:`entity-fields`,children:e.fields.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity-field`,children:[(0,V.jsx)(`span`,{className:`ef-key`+(e.key?` is-key`:``),children:e.name}),(0,V.jsx)(`span`,{className:`ef-type`,children:e.type})]},t))})]},t))}),n&&(0,V.jsx)(`div`,{className:`relations`,children:n.map((e,t)=>(0,V.jsxs)(`span`,{className:`relation`,children:[(0,V.jsx)(`b`,{children:e.from}),` `,e.label,` `,(0,V.jsx)(`b`,{children:e.to})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}var tt={dashboard:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w60`}),(0,V.jsxs)(`div`,{className:`wgrid`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]}),(0,V.jsx)(`span`,{className:`wbar`})]}),table:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]}),board:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsxs)(`div`,{className:`wcols`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]})]}),detail:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w50`}),(0,V.jsx)(`span`,{className:`wblock`}),(0,V.jsx)(`span`,{className:`wl w70`}),(0,V.jsx)(`span`,{className:`wl w50`})]}),list:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]})};function nt({title:e=`The screens you'll get`,screens:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`screenmap`,children:t.map((e,t)=>{let n=()=>c(`Opening `+e.name+` — you can rename or reorder`,`info`);return(0,V.jsxs)(`div`,{className:`screen-thumb`,role:`button`,tabIndex:0,"aria-label":`Open ${e.name}`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},children:[(0,V.jsx)(`div`,{className:`screen-wire`,children:tt[e.kind]||tt.table}),(0,V.jsx)(`figcaption`,{children:e.name})]},t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function rt({title:e=`Building it`,steps:t,footer:n,delay:r}){let[i,a]=(0,R.useState)(0),o=t.filter(e=>e.status===`active`).length;(0,R.useEffect)(()=>{if(o===0)return;let e=(r||0)+1400,t=Array.from({length:o},(t,n)=>setTimeout(()=>a(e=>Math.max(e,n+1)),e+n*900));return()=>t.forEach(clearTimeout)},[o,r]);let c=0,l=t.map(e=>{if(e.status!==`active`)return e;let t=c<i;return c+=1,t?{...e,status:`done`}:e}),u=l.findIndex(e=>e.status===`active`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`buildsteps`,children:l.map((e,t)=>(0,V.jsxs)(`div`,{className:`buildstep `+(e.status||`done`),children:[(0,V.jsx)(`span`,{className:`buildstep-ic`,"data-mark":t===u?`circle`:void 0,children:e.status===`active`?(0,V.jsx)(`span`,{className:`tiny-spin`}):e.status===`todo`?(0,V.jsx)(`span`,{className:`bs-dot`}):(0,V.jsx)(s.check,{})}),(0,V.jsxs)(`span`,{className:`buildstep-body`,children:[(0,V.jsx)(`span`,{className:`buildstep-label`,children:e.label}),e.sub&&(0,V.jsx)(`span`,{className:`buildstep-sub`,children:e.sub})]})]},t))}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function it({app:e,seededFrom:t,nav:n,stages:r,rows:i,kpis:a,columns:o,groupColumns:c=[`Group`,`Items`,`Total`],pipelineLabel:l=`Pipeline by stage`,agg:u=`money`,createdNote:d=`created this with Mavéa`,activities:f,footer:p,delay:m}){let[h,g]=(0,R.useState)(n[0]?.label||``),_=n.find(e=>e.label===h)||n[0],v=e=>u===`money`?`$`+Math.round(e/1e3)+`k`:e.toLocaleString(),y=i.reduce((e,t)=>e+(t.amt||0),0),b=new Map,x=new Map;for(let e of i){let t=b.get(e.group)??{count:0,value:0,color:e.color};t.count+=1,t.value+=e.amt||0,b.set(e.group,t),x.set(e.stage,(x.get(e.stage)??0)+1)}let S=Array.from(b,([e,t])=>({name:e,...t})),C=r.reduce((e,t)=>Math.max(e,x.get(t.key)??0),1),w=f||[],T=({s:e})=>(0,V.jsx)(`span`,{className:`at-stage `+(r.find(t=>t.key===e)||r[0]).kind,children:e});return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.external,{className:`ic`,style:{color:`var(--insight)`}}),` Live preview · your app`,(0,V.jsxs)(`span`,{className:`preview-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`working`]})]}),(0,V.jsxs)(`div`,{className:`appframe`,children:[(0,V.jsxs)(`div`,{className:`appframe-bar`,children:[(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsxs)(`span`,{className:`afurl mono`,children:[e.toLowerCase().replace(/\s+/g,`-`),`.mavea.app`]})]}),(0,V.jsxs)(`div`,{className:`appframe-body`,children:[(0,V.jsxs)(`div`,{className:`appnav`,children:[(0,V.jsx)(`div`,{className:`appnav-brand`,children:e}),n.map((e,t)=>(0,V.jsx)(`button`,{className:`appnav-item`+(h===e.label?` on`:``),type:`button`,onClick:()=>g(e.label),children:e.label},t))]}),(0,V.jsxs)(`div`,{className:`appmain`,children:[(0,V.jsxs)(`div`,{className:`appmain-top`,children:[(0,V.jsx)(`span`,{className:`appmain-title`,children:_?.label}),_?.view===`dashboard`&&t&&(0,V.jsx)(`span`,{className:`appmain-sub`,children:t})]}),_?.view===`dashboard`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`appkpis`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{className:`appkpi`,children:[(0,V.jsx)(`span`,{className:`appkpi-v tab-num`,children:e.v}),(0,V.jsx)(`span`,{className:`appkpi-k`,children:e.k})]},t))}),(0,V.jsxs)(`div`,{className:`appdash`,children:[(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:l}),r.map((e,t)=>{let n=i.filter(t=>t.stage===e.key),r=n.reduce((e,t)=>e+(t.amt||0),0),a=Math.round(y?r/y*100:n.length/C*100);return(0,V.jsxs)(`div`,{className:`apppipe`,children:[(0,V.jsxs)(`span`,{className:`apppipe-l`,children:[e.key,` `,(0,V.jsxs)(`span`,{className:`faint`,children:[`· `,n.length]})]}),(0,V.jsx)(`span`,{className:`apppipe-bar`,children:(0,V.jsx)(`i`,{style:{width:Math.max(6,a)+`%`,background:e.color}})}),(0,V.jsx)(`span`,{className:`apppipe-v tab-num`,children:y?v(r):n.length})]},t)})]}),(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:`Recent activity`}),w.map((e,t)=>(0,V.jsxs)(`div`,{className:`appact`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))]})]})]}),_?.view===`table`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head`,children:[(0,V.jsx)(`span`,{children:o[0]}),(0,V.jsx)(`span`,{children:o[1]}),(0,V.jsx)(`span`,{children:o[2]}),(0,V.jsx)(`span`,{className:`ta-r`,children:o[3]})]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.group}),(0,V.jsx)(`span`,{children:(0,V.jsx)(T,{s:e.stage})}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:e.value})]},t))]}),_?.view===`board`&&(0,V.jsx)(`div`,{className:`appboard`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`appcol`,children:[(0,V.jsxs)(`div`,{className:`appcol-h`,children:[(0,V.jsx)(`span`,{className:`appcol-dot`,style:{background:e.color}}),e.key,(0,V.jsx)(`span`,{className:`faint`,children:i.filter(t=>t.stage===e.key).length})]}),i.filter(t=>t.stage===e.key).map((e,t)=>(0,V.jsxs)(`div`,{className:`appdeal`,children:[(0,V.jsx)(`div`,{className:`appdeal-n`,children:e.name}),(0,V.jsxs)(`div`,{className:`appdeal-m`,children:[e.group,` · `,(0,V.jsx)(`span`,{className:`tab-num`,children:e.value})]})]},t))]},t))}),_?.view===`group`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head threecol`,children:[(0,V.jsx)(`span`,{children:c[0]}),(0,V.jsx)(`span`,{children:c[1]}),(0,V.jsx)(`span`,{className:`ta-r`,children:c[2]})]}),S.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row threecol`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.count}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:v(e.value)})]},t))]}),_?.view===`activity`&&(0,V.jsx)(`div`,{className:`appactivity`,children:w.concat([{who:`You`,what:d,when:`just now`,color:`var(--presence-deep)`}]).map((e,t)=>(0,V.jsxs)(`div`,{className:`appact row`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))})]})]})]}),p&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function at(e){return e>=1100?12:e>=820?9:e>=580?6:4}var ot=e=>{let t=M[e.type??``],n=e.col;return n===void 0?t:t?{...t,pref:n}:{pref:n}};function st(e,t){if(e.length===0)return e;try{return j(e,ot,t)}catch{return e}}function ct(e,t){let n=(0,z.c)(9),[r,i]=(0,R.useState)(lt),a,o;n[0]===t?(a=n[1],o=n[2]):(a=()=>{let e=t.current;if(!e||typeof ResizeObserver>`u`)return;let n=0,r=new ResizeObserver(t=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let n=t[0]?.contentRect.width??e.offsetWidth;i(e=>{let t=at(n);return e===t?e:t})})});r.observe(e);let a=at(e.offsetWidth);return i(e=>e===a?e:a),()=>{cancelAnimationFrame(n),r.disconnect()}},o=[t],n[0]=t,n[1]=a,n[2]=o),(0,R.useLayoutEffect)(a,o);let s;try{let t;n[3]!==e||n[4]!==r?(t=j(e,ot,r),n[3]=e,n[4]=r,n[5]=t):t=n[5],s=t}catch{s=e}let c=s,l;return n[6]!==r||n[7]!==c?(l={displayBlocks:c,budget:r},n[6]=r,n[7]=c,n[8]=l):l=n[8],l}function lt(){return typeof window<`u`?at(window.innerWidth):12}var ut=new Set([`auto`,`scroll`]);function dt(e){let t=(e.closest(`.card`)?.querySelector(`.card-eyebrow, h1, h2, h3, [role="heading"]`)?.textContent)?.trim().replace(/\s+/g,` `).slice(0,100);return t?`Scrollable content: ${t}`:`Scrollable card content`}function ft(e,t){let n=(0,z.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t)return;let n=new Map,r=0,i=e=>n.has(e)||e.scrollWidth<=e.clientWidth+8?!1:ut.has(getComputedStyle(e).overflowX),a=e=>{let t=e.hasAttribute(`tabindex`),r=e.hasAttribute(`role`),i=e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`);t||(e.tabIndex=0),r||e.setAttribute(`role`,`region`),i||e.setAttribute(`aria-label`,dt(e)),e.classList.add(`canvas-hscroll`);let a=()=>{let t=e.scrollLeft+e.clientWidth>=e.scrollWidth-2;e.classList.toggle(`canvas-hscroll--end`,t)};a(),e.addEventListener(`scroll`,a,{passive:!0}),n.set(e,()=>{e.removeEventListener(`scroll`,a),e.classList.remove(`canvas-hscroll`,`canvas-hscroll--end`),t||e.removeAttribute(`tabindex`),r||e.removeAttribute(`role`),i||e.removeAttribute(`aria-label`)})},o=()=>{r=0;let e=[];for(let n of t.querySelectorAll(`*`))i(n)&&e.push(n);for(let t of e)a(t)},s=()=>{r||=requestAnimationFrame(o)};s();let c=window.setTimeout(s,700),l=typeof MutationObserver>`u`?null:new MutationObserver(s);l?.observe(t,{childList:!0,subtree:!0});let u=typeof ResizeObserver>`u`?null:new ResizeObserver(s);return u?.observe(t),()=>{r&&cancelAnimationFrame(r),clearTimeout(c),l?.disconnect(),u?.disconnect();for(let e of n.values())e()}},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,R.useEffect)(r,i)}var pt=/…\s*$/u,mt=0;function ht(e){return(e??``).replace(/\s+/g,` `).trim()}var gt=/\S/u;function _t(e){let t=new Map,n=e=>{if(e.tagName.toLowerCase()===`title`)return t.set(e,``),``;let r=``;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE?r+=`${t.textContent??``} `:t instanceof Element&&(r+=`${n(t)} `);return t.set(e,r),r};return n(e),t}function vt(e,t){let n=t.textOverflow===`ellipsis`&&t.whiteSpace.includes(`nowrap`)&&e.scrollWidth>e.clientWidth+1,r=t.webkitLineClamp||t.getPropertyValue(`-webkit-line-clamp`),i=Number.parseInt(r,10),a=Number.isFinite(i)&&i>0&&e.scrollHeight>e.clientHeight+2;return n||a}function yt(e){let t=[...e.children].find(e=>e.tagName.toLowerCase()===`title`);return ht(e.getAttribute(`data-full-text`)||e.getAttribute(`title`)||t?.textContent||e.getAttribute(`aria-label`))}function bt(e,t,n){let r=yt(e)||(n?t:``),i=e;if(!r||r===t){let n=e.parentElement,a=n?yt(n):``;a&&a!==t&&(r=a,i=n)}return!r||!n&&(r===t||r.length<=t.replace(pt,``).length)||!(i instanceof HTMLElement)&&!(i instanceof SVGElement)?null:{target:i,full:r}}function xt(e){return e.matches(`button, a[href], input, select, textarea, summary, [contenteditable="true"]`)}function St(e,t){if(e.hasAttribute(`data-semantic-ellipsis`))return null;let n=t.get(e)??``;if(!gt.test(n))return null;let r=getComputedStyle(e);if(r.visibility===`hidden`||parseFloat(r.opacity)===0)return null;let i=ht(n),a=e instanceof HTMLElement&&vt(e,r);if(!pt.test(i)&&!a)return null;let o=bt(e,i,a);return o?{source:e,...o}:null}function Ct(e,t){(0,R.useEffect)(()=>{let t=e.current;if(!t)return;let n=`canvas-text-disclosure-${++mt}`,r=document.createElement(`div`);r.id=n,r.className=`canvas-text-popover`,r.setAttribute(`role`,`tooltip`),r.hidden=!0,document.body.appendChild(r);let i=new Map,a=new Set,o=null,s=0,c=0,l=e=>{let t=e.getBoundingClientRect();r.style.maxWidth=`${Math.max(180,Math.min(420,window.innerWidth-24))}px`,r.style.left=`0px`,r.style.top=`0px`;let n=r.getBoundingClientRect(),i=Math.min(window.innerWidth-n.width-12,Math.max(12,t.left)),a=t.top-n.height-8,o=a>=12?a:Math.min(window.innerHeight-n.height-12,t.bottom+8);r.style.left=`${Math.round(i)}px`,r.style.top=`${Math.round(Math.max(12,o))}px`},u=()=>{c&&window.clearTimeout(c),c=0,o?.removeAttribute(`data-text-disclosure-active`),o=null,r.hidden=!0},d=(e,t)=>{c&&window.clearTimeout(c),o?.removeAttribute(`data-text-disclosure-active`),o=e,e.setAttribute(`data-text-disclosure-active`,`true`),r.textContent=t,r.hidden=!1,l(e)},f=({source:e,target:t,full:r})=>{if(e.setAttribute(`data-text-disclosure`,`true`),a.add(e),i.has(t))return;let s=t.hasAttribute(`tabindex`),l=t.hasAttribute(`role`),f=t.getAttribute(`aria-label`),p=t.getAttribute(`aria-describedby`);s||t.setAttribute(`tabindex`,`0`),!l&&!xt(t)&&t.setAttribute(`role`,`button`),f||t.setAttribute(`aria-label`,r);let m=new Set(ht(p).split(` `).filter(Boolean));m.add(n),t.setAttribute(`aria-describedby`,[...m].join(` `)),t.setAttribute(`data-text-disclosure`,`true`);let h=()=>d(t,r),g=()=>{c=window.setTimeout(u,120)},_=()=>o===t?u():d(t,r),v=e=>{let n=e.key;n===`Escape`&&u(),(n===`Enter`||n===` `)&&!xt(t)&&(e.preventDefault(),d(t,r))};t.addEventListener(`pointerenter`,h),t.addEventListener(`pointerleave`,g),t.addEventListener(`focus`,h),t.addEventListener(`blur`,g),t.addEventListener(`click`,_),t.addEventListener(`keydown`,v),i.set(t,()=>{t.removeEventListener(`pointerenter`,h),t.removeEventListener(`pointerleave`,g),t.removeEventListener(`focus`,h),t.removeEventListener(`blur`,g),t.removeEventListener(`click`,_),t.removeEventListener(`keydown`,v),t.removeAttribute(`data-text-disclosure`),t.removeAttribute(`data-text-disclosure-active`),s||t.removeAttribute(`tabindex`),l||t.removeAttribute(`role`),f||t.removeAttribute(`aria-label`),p===null?t.removeAttribute(`aria-describedby`):t.setAttribute(`aria-describedby`,p)})},p=()=>{s=0;let e=_t(t),n=[];for(let r of t.querySelectorAll(`*`)){let t=St(r,e);t&&n.push(t)}for(let e of n)f(e)},m=()=>{s||=requestAnimationFrame(p)},h=e=>{o&&!o.contains(e.target)&&u()},g=()=>{o&&!r.hidden&&l(o)};m();let _=window.setTimeout(m,700),v=typeof MutationObserver>`u`?null:new MutationObserver(m);v?.observe(t,{childList:!0,subtree:!0});let y=typeof ResizeObserver>`u`?null:new ResizeObserver(m);return y?.observe(t),document.addEventListener(`pointerdown`,h,!0),window.addEventListener(`resize`,g,{passive:!0}),window.addEventListener(`scroll`,g,{passive:!0,capture:!0}),()=>{s&&cancelAnimationFrame(s),c&&window.clearTimeout(c),clearTimeout(_),v?.disconnect(),y?.disconnect(),document.removeEventListener(`pointerdown`,h,!0),window.removeEventListener(`resize`,g),window.removeEventListener(`scroll`,g,!0);for(let e of i.values())e();for(let e of a)e.removeAttribute(`data-text-disclosure`);r.remove()}},[e,t])}function wt(e){if(!e)return;let t=e.parentElement;if(!t)return;let n=()=>{let n=Math.ceil(e.getBoundingClientRect().width);n>0&&t.style.setProperty(`--block-actions-w`,`${n+18}px`)};return n(),B(e,n)}function Tt(e){return e.some(e=>typeof e.section==`string`&&e.section.trim()!==``)}function Et(e){if(!Tt(e))return[{label:``,order:0,standard:e.slice(),deeper:[]}];let t=0,n=new Map;for(let r of e){let e=r.section,i=(typeof e==`string`?e.trim():``)||`__ungrouped__`;if(!n.has(i)){let e=typeof r.order==`number`?r.order:0;n.set(i,{ord:e||++t,standard:[],deeper:[]})}let a=n.get(i),o=r.depth;(typeof o==`number`?o:1)>=2?a.deeper.push(r):a.standard.push(r)}let r=[];for(let[e,t]of n)t.standard.length===0&&t.deeper.length>0&&t.standard.push(t.deeper.shift()),r.push({label:e===`__ungrouped__`?``:e,order:t.ord,standard:t.standard,deeper:t.deeper});return r.sort((e,t)=>e.order-t.order),r}function Dt(e){let t=(0,z.c)(25),{section:n,renderCard:r,readingMode:i}=e,[a,o]=(0,R.useState)(!1),c=i||a,l=n.deeper.length>0,u=`depth-drawer-${n.order}`,d;t[0]!==u||t[1]!==l||t[2]!==c||t[3]!==n.deeper.length||t[4]!==n.label||t[5]!==n.order?(d=n.label&&(0,V.jsxs)(`div`,{className:`depth-section-header`,children:[n.order>0&&(0,V.jsx)(`span`,{className:`depth-section-num`,"aria-hidden":`true`,children:n.order}),(0,V.jsx)(`span`,{className:`depth-section-label`,children:n.label}),l&&(0,V.jsxs)(`button`,{type:`button`,className:`depth-go-deeper`+(c?` is-open`:``),"aria-expanded":c,"aria-controls":u,onClick:()=>o(Ot),children:[(0,V.jsx)(s.arrowDown,{className:`depth-deeper-icon`,"aria-hidden":`true`}),`Go deeper`,(0,V.jsxs)(`span`,{className:`depth-deeper-count`,children:[`(`,n.deeper.length,`)`]})]})]}),t[0]=u,t[1]=l,t[2]=c,t[3]=n.deeper.length,t[4]=n.label,t[5]=n.order,t[6]=d):d=t[6];let f;if(t[7]!==r||t[8]!==n.standard){let e;t[10]===r?e=t[11]:(e=(e,t)=>r(e,t),t[10]=r,t[11]=e),f=n.standard.map(e),t[7]=r,t[8]=n.standard,t[9]=f}else f=t[9];let p;t[12]===f?p=t[13]:(p=(0,V.jsx)(`div`,{className:`card-grid`,children:f}),t[12]=f,t[13]=p);let m;t[14]!==u||t[15]!==l||t[16]!==c||t[17]!==r||t[18]!==n.deeper||t[19]!==n.standard.length?(m=l&&(0,V.jsx)(`div`,{className:`depth-drawer`+(c?` is-open`:``),id:u,"aria-hidden":!c,children:(0,V.jsx)(`div`,{className:`depth-drawer-inner`,children:(0,V.jsx)(`div`,{className:`card-grid depth-drawer-grid`,children:n.deeper.map((e,t)=>r(e,n.standard.length+t))})})}),t[14]=u,t[15]=l,t[16]=c,t[17]=r,t[18]=n.deeper,t[19]=n.standard.length,t[20]=m):m=t[20];let h;return t[21]!==d||t[22]!==p||t[23]!==m?(h=(0,V.jsxs)(`div`,{className:`depth-section`,children:[d,p,m]}),t[21]=d,t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function Ot(e){return!e}function kt(e){let t=(0,z.c)(33),{bend:n}=e,[r,i]=(0,R.useState)(n.param.value),a=n.param.unit??``,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(`span`,{className:`bend-kicker`,children:`BEND IT`}),t[0]=o):o=t[0];let s;t[1]===n.label?s=t[2]:(s=(0,V.jsx)(`span`,{className:`bend-label`,children:n.label}),t[1]=n.label,t[2]=s);let c;t[3]===r?c=t[4]:(c=N(r),t[3]=r,t[4]=c);let l;t[5]===a?l=t[6]:(l=a&&(0,V.jsx)(`em`,{children:a}),t[5]=a,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,V.jsxs)(`span`,{className:`bend-value`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]!==s||t[11]!==u?(d=(0,V.jsxs)(`div`,{className:`bend-head`,children:[o,s,u]}),t[10]=s,t[11]=u,t[12]=d):d=t[12];let f;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>i(Number(e.target.value)),t[13]=f):f=t[13];let p=`Bend ${n.label}`,m;t[14]!==n.param.max||t[15]!==n.param.min||t[16]!==n.param.step||t[17]!==p||t[18]!==r?(m=(0,V.jsx)(`input`,{className:`bend-slider`,type:`range`,min:n.param.min,max:n.param.max,step:n.param.step,value:r,onChange:f,"aria-label":p}),t[14]=n.param.max,t[15]=n.param.min,t[16]=n.param.step,t[17]=p,t[18]=r,t[19]=m):m=t[19];let h;if(t[20]!==n.label||t[21]!==n.outputs||t[22]!==r){let e;t[24]!==n.label||t[25]!==r?(e=e=>{let t=P(e.formula,r);return t===null?null:(0,V.jsxs)(`li`,{title:`= ${e.formula.replaceAll(`x`,`(${n.label})`)}`,children:[(0,V.jsx)(`span`,{className:`bend-out-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`bend-out-value`,children:[N(t),e.unit&&(0,V.jsx)(`em`,{children:e.unit})]})]},e.label)},t[24]=n.label,t[25]=r,t[26]=e):e=t[26],h=n.outputs.map(e),t[20]=n.label,t[21]=n.outputs,t[22]=r,t[23]=h}else h=t[23];let g;t[27]===h?g=t[28]:(g=(0,V.jsx)(`ul`,{className:`bend-outputs`,children:h}),t[27]=h,t[28]=g);let _;return t[29]!==g||t[30]!==d||t[31]!==m?(_=(0,V.jsxs)(`div`,{className:`bend-strip`,"data-bend":!0,children:[d,m,g]}),t[29]=g,t[30]=d,t[31]=m,t[32]=_):_=t[32],_}var At=15e3,jt=5e3;async function Mt(e,t){let n=F(e);if(!n)return{ok:!1,detail:`Unknown action: ${e}`};for(let e of n.params)if(e.required&&!(t[e.name]??``).trim())return{ok:!1,detail:`Missing required field: ${e.name}`};try{let r=JSON.stringify({args:t}),i=await I(`/actions/confirm`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({id:e,args:t})},jt),a=await i.json().catch(()=>({}));if(!i.ok||!a.confirmationToken)return{ok:!1,detail:a.detail||`The action confirmation expired. Please try again.`};let o=await I(`/actions/${encodeURIComponent(e)}`,{method:`POST`,headers:{"content-type":`application/json`,"x-action-confirmation":a.confirmationToken},body:r},At),s=await o.json().catch(()=>({}));return o.ok?{ok:!0,detail:s.detail||`${n.label} — done.`}:{ok:!1,detail:s.detail||`The ${n.mcp} action didn't go through (${o.status}).`}}catch{return{ok:!1,detail:`Couldn't reach the ${n.mcp} connector — is it set up in this deployment?`}}}function Nt({id:e,label:t,args:n={},delay:r=0}){let i=F(e),[a,o]=(0,R.useState)(`idle`),[s,c]=(0,R.useState)(``);if(!i)return null;let l={};for(let[e,t]of Object.entries(n))l[e]=typeof t==`string`?t:t==null?``:String(t);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{animationDelay:`${r}ms`},children:[(0,V.jsx)(`div`,{className:`card-eyebrow`,children:i.label}),(0,V.jsx)(`div`,{style:{fontWeight:600,fontSize:15,marginBottom:10},children:t||i.desc}),(0,V.jsx)(`dl`,{style:{margin:`0 0 12px`,display:`grid`,gap:4},children:i.params.map(e=>{let t=l[e.name];return t?(0,V.jsxs)(`div`,{style:{display:`flex`,gap:8,fontSize:13},children:[(0,V.jsx)(`dt`,{className:`faint`,style:{minWidth:84},children:e.name}),(0,V.jsx)(`dd`,{style:{margin:0},children:t})]},e.name):null})}),a===`done`?(0,V.jsxs)(`div`,{style:{fontSize:13,color:`var(--insight)`},children:[`✓ `,s]}):a===`error`?(0,V.jsx)(`div`,{style:{fontSize:13,color:`var(--warning)`},children:s}):(0,V.jsx)(`button`,{className:`entry-action`,onClick:async()=>{o(`running`);let t=await Mt(e,l);c(t.detail),o(t.ok?`done`:`error`)},disabled:a===`running`,style:{fontSize:13},children:a===`running`?`Working…`:i.cta}),(0,V.jsx)(`div`,{className:`faint`,style:{fontSize:11.5,marginTop:8},children:`Review before confirming. You are responsible for recipients, account changes, irreversible effects, provider terms, charges, and other consequences.`})]})}var Pt=6;function Ft(e,t){return e?.find(e=>e.key===t)}function It(e,t){return!e||e.kind!==`card`?!1:!e.accepts||e.accepts.includes(t)}function Lt(e,t,n){let[r,i]=(0,R.useState)(null),a=(0,R.useRef)(null),o=(0,R.useRef)(null),s=(0,R.useRef)(e);s.current=e;let c=(0,R.useRef)(t);c.current=t;let l=(0,R.useRef)(n);l.current=n;let u=()=>{o.current?.classList.remove(`is-drop-target`),o.current=null},d=(e,t,n)=>{let r=document.elementFromPoint(e,t)?.closest(`[data-blank-key]`)??null,i=r?.getAttribute(`data-blank-key`)??``;return r&&It(Ft(s.current,i),n)?{el:r,key:i}:null};return{handleProps:(0,R.useCallback)(e=>({onPointerDown:t=>{t.button===0&&(a.current={block:e,startX:t.clientX,startY:t.clientY,armed:!1},t.currentTarget.setPointerCapture(t.pointerId))},onPointerMove:e=>{let t=a.current;if(!t)return;if(!t.armed){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<Pt)return;t.armed=!0}i({label:x(t.block),x:e.clientX,y:e.clientY});let n=d(e.clientX,e.clientY,t.block.type);if(o.current&&o.current!==n?.el&&u(),n){let e=n.el.querySelector(`.blank-drop`)??n.el;e.classList.add(`is-drop-target`),o.current=e}},onPointerUp:e=>{let t=a.current;if(a.current=null,i(null),u(),t)if(t.armed){let n=d(e.clientX,e.clientY,t.block.type);n&&c.current(n.key,t.block)}else l.current?.(t.block)}}),[]),ghost:r?(0,V.jsx)(`div`,{className:`card-drag-ghost`,style:{left:r.x,top:r.y},"aria-hidden":!0,children:r.label}):null}}function Rt(e){let t=e.find(e=>e.type===`insight`&&!!e.id);return t?.id?t.id:e.find(e=>!!e.id)?.id??null}var zt=340;function Bt(e){let t=(0,z.c)(9),{block:n,renderBlock:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={width:zt},t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,V.jsx)(b,{block:n}),t[1]=n,t[2]=a);let o;t[3]!==n||t[4]!==r?(o=r(n),t[3]=n,t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==a||t[7]!==o?(s=(0,V.jsx)(`span`,{className:`filmstrip-thumb`,"aria-hidden":`true`,inert:!0,children:(0,V.jsx)(`span`,{className:`filmstrip-thumb-design`,style:i,children:(0,V.jsx)(y,{fallback:a,children:o})})}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}var Vt=(0,R.memo)(Bt,(e,t)=>e.block===t.block),Ht=24;function Ut(e){let t=(0,z.c)(21),{blocks:n,activeId:r,narratingId:i,onPick:a,renderBlock:o}=e,s=n.slice(0,Ht),c=n.length-s.length,l=(0,R.useRef)(null),u;t[0]===r?u=t[1]:(u=e=>e.id===r,t[0]=r,t[1]=u);let d=Math.max(0,s.findIndex(u)),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=window.setTimeout(()=>{let e=l.current?.querySelector(`.filmstrip-entry.active`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:g()?`auto`:`smooth`})},60);return()=>window.clearTimeout(e)},t[2]=f):f=t[2];let p;t[3]===r?p=t[4]:(p=[r],t[3]=r,t[4]=p),(0,R.useEffect)(f,p);let m=e=>{let t=s.length;if(!t)return;let n=document.activeElement,r=n instanceof HTMLElement?n.dataset.idx:void 0,i=r===void 0?d:Number(r),o;bb37:switch(e.key){case`ArrowDown`:case`ArrowRight`:o=Math.min(t-1,i+1);break bb37;case`ArrowUp`:case`ArrowLeft`:o=Math.max(0,i-1);break bb37;case`Home`:o=0;break bb37;case`End`:o=t-1;break bb37;default:return}e.preventDefault(),l.current?.querySelector(`[data-idx="${o}"]`)?.focus();let c=s[o].id;c&&a(c)},h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,V.jsx)(`div`,{className:`filmstrip-eyebrow`,children:`In this view`}),t[5]=h):h=t[5];let _;t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==o||t[10]!==d?(_=(e,t)=>{let n=e.id===r,s=!!e.id&&e.id===i;return(0,V.jsxs)(`div`,{role:`button`,"data-idx":t,tabIndex:t===d?0:-1,className:`filmstrip-entry`+(n?` active`:``)+(s?` speaking`:``),"aria-current":n?`true`:void 0,"aria-label":`${S(e)} — ${x(e)}`,onClick:()=>a(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e.id))},children:[(0,V.jsx)(Vt,{block:e,renderBlock:o}),s&&(0,V.jsx)(`span`,{className:`filmstrip-speaking`,"aria-hidden":`true`}),(0,V.jsxs)(`span`,{className:`filmstrip-meta`,children:[(0,V.jsx)(`span`,{className:`filmstrip-kind`,children:S(e)}),(0,V.jsx)(`span`,{className:`filmstrip-title`,children:x(e)})]})]},e.id)},t[6]=r,t[7]=i,t[8]=a,t[9]=o,t[10]=d,t[11]=_):_=t[11];let v=s.map(_),y;t[12]===c?y=t[13]:(y=c>0&&(0,V.jsxs)(`div`,{className:`filmstrip-more`,children:[`+`,c,` more card`,c===1?``:`s`]}),t[12]=c,t[13]=y);let b;t[14]!==m||t[15]!==v||t[16]!==y?(b=(0,V.jsxs)(`div`,{className:`filmstrip-list`,ref:l,role:`toolbar`,onKeyDown:m,children:[v,y]}),t[14]=m,t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;return t[18]!==b||t[19]!==h?(C=(0,V.jsxs)(`aside`,{className:`filmstrip-rail`,"aria-label":`All cards in this view`,children:[h,b]}),t[18]=b,t[19]=h,t[20]=C):C=t[20],C}var Wt=560;function Gt(e){let t=(0,z.c)(93),{data:n,blocks:r,spot:i,renderBlock:a,onAskBlock:o,selectedBlockIds:c,onNarrate:l,narratingId:u,muted:d,walkNotes:f,presenting:p}=e,m;t[0]===r?m=t[1]:(m=r.filter(Kt),t[0]=r,t[1]=m);let h=m,[_,v]=(0,R.useState)(null),S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>v(null),t[2]=S):S=t[2];let C;t[3]===n.id?C=t[4]:(C=[n.id],t[3]=n.id,t[4]=C),(0,R.useEffect)(S,C);let w;t[5]!==l||t[6]!==h?(w=e=>{v(e);let t=h.find(t=>t.id===e);t&&l?.(t)},t[5]=l,t[6]=h,t[7]=w):w=t[7];let T=w,E;t[8]!==_||t[9]!==h||t[10]!==i?(E=(_&&h.some(e=>e.id===_)?_:null)??(i&&h.some(e=>e.id===i)?i:null)??Rt(h),t[8]=_,t[9]=h,t[10]=i,t[11]=E):E=t[11];let D=E,O;t[12]!==D||t[13]!==h?(O=h.find(e=>e.id===D)??h[0],t[12]=D,t[13]=h,t[14]=O):O=t[14];let k=O,[A,j]=(0,R.useState)(null),M=(0,R.useRef)(k?.id??null),N;t[15]===k?.id?N=t[16]:(N=()=>{let e=k?.id??null;if(e===M.current)return;let t=M.current;if(M.current=e,!t||g()){j(null);return}j(t);let n=window.setTimeout(()=>j(null),Wt);return()=>window.clearTimeout(n)},t[15]=k?.id,t[16]=N);let P=k?.id,F;t[17]===P?F=t[18]:(F=[P],t[17]=P,t[18]=F),(0,R.useEffect)(N,F);let I;t[19]!==k||t[20]!==c?(I=!!k?.id&&!!c?.has(k.id),t[19]=k,t[20]=c,t[21]=I):I=t[21];let L=I,ee=!d&&!!k?.id&&u===k.id,te=k?.note||null,ne;t[22]!==k?.id||t[23]!==A||t[24]!==h?(ne=A&&A!==k?.id?h.find(e=>e.id===A):void 0,t[22]=k?.id,t[23]=A,t[24]=h,t[25]=ne):ne=t[25];let re=ne,B;t[26]===k?.id?B=t[27]:(B=e=>e.id===k?.id,t[26]=k?.id,t[27]=B);let H=h.findIndex(B),U;t[28]!==H||t[29]!==T||t[30]!==h?(U=()=>{H>0&&T(h[H-1].id)},t[28]=H,t[29]=T,t[30]=h,t[31]=U):U=t[31];let W=U,ie;t[32]!==H||t[33]!==T||t[34]!==h?(ie=()=>{H<h.length-1&&T(h[H+1].id)},t[32]=H,t[33]=T,t[34]=h,t[35]=ie):ie=t[35];let G=ie,ae,oe;if(t[36]!==G||t[37]!==W||t[38]!==p?(ae=()=>{if(!p)return;let e=e=>{e.key===`ArrowRight`||e.key===`ArrowDown`||e.key===` `?(e.preventDefault(),G()):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),W())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},oe=[p,W,G],t[36]=G,t[37]=W,t[38]=p,t[39]=ae,t[40]=oe):(ae=t[39],oe=t[40]),(0,R.useEffect)(ae,oe),!k)return null;let K,se;if(t[41]!==T||t[42]!==k.id||t[43]!==p||t[44]!==f){let e=!p&&f&&f.length>0?[...f].reverse():null;K=`focus-stage`+(e?` has-notes`:``),se=e&&(0,V.jsxs)(`aside`,{className:`focus-notes`,"aria-label":`Mavéa's notes`,children:[(0,V.jsx)(`div`,{className:`focus-notes-eyebrow`,children:`Mavéa’s notes`}),(0,V.jsx)(`ol`,{className:`focus-notes-list`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsx)(`button`,{type:`button`,className:`focus-note`+(e.spot===k?.id?` active`:``),onClick:()=>T(e.spot),title:`Bring this card back on stage`,children:e.text})},e.spot))})]}),t[41]=T,t[42]=k.id,t[43]=p,t[44]=f,t[45]=K,t[46]=se}else K=t[45],se=t[46];let q;t[47]!==re||t[48]!==a?(q=re&&(0,V.jsx)(`div`,{className:`focus-hero-card focus-out`,"aria-hidden":`true`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:re}),children:a(re)})},`out-`+re.id),t[47]=re,t[48]=a,t[49]=q):q=t[49];let ce=k.id,le=k.id,J;t[50]===ee?J=t[51]:(J=ee&&(0,V.jsxs)(`div`,{className:`focus-speaking`,"aria-hidden":`true`,children:[(0,V.jsxs)(`span`,{className:`focus-speaking-bars`,children:[(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{})]}),`Speaking`]}),t[50]=ee,t[51]=J);let Y;t[52]===k?Y=t[53]:(Y=(0,V.jsx)(b,{block:k}),t[52]=k,t[53]=Y);let X;t[54]!==k||t[55]!==a?(X=a(k),t[54]=k,t[55]=a,t[56]=X):X=t[56];let Z;t[57]!==Y||t[58]!==X?(Z=(0,V.jsx)(y,{fallback:Y,children:X}),t[57]=Y,t[58]=X,t[59]=Z):Z=t[59];let ue;t[60]!==k||t[61]!==L||t[62]!==o?(ue=o&&k.id&&(0,V.jsx)(`div`,{className:`block-actions`,children:(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`+(L?` picked`:``),"aria-pressed":L,"aria-label":L?`Unpin ${x(k)}`:`Ask about ${x(k)}`,onClick:e=>{e.stopPropagation(),o(k)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:L?`Selected`:`Ask`})]})}),t[60]=k,t[61]=L,t[62]=o,t[63]=ue):ue=t[63];let Q;t[64]!==k.id||t[65]!==J||t[66]!==Z||t[67]!==ue?(Q=(0,V.jsxs)(`div`,{className:`focus-hero-card focus-in askable`,"data-spot-id":le,children:[J,Z,ue]},ce),t[64]=k.id,t[65]=J,t[66]=Z,t[67]=ue,t[68]=Q):Q=t[68];let de;t[69]!==q||t[70]!==Q?(de=(0,V.jsxs)(`div`,{className:`focus-hero`,children:[q,Q]}),t[69]=q,t[70]=Q,t[71]=de):de=t[71];let fe;t[72]!==k.id||t[73]!==te?(fe=te&&(0,V.jsx)(`p`,{className:`focus-caption`,"aria-live":`polite`,children:te},`cap-`+k.id),t[72]=k.id,t[73]=te,t[74]=fe):fe=t[74];let $;t[75]!==de||t[76]!==fe?($=(0,V.jsxs)(`div`,{className:`focus-main`,children:[de,fe]}),t[75]=de,t[76]=fe,t[77]=$):$=t[77];let pe;t[78]!==H||t[79]!==G||t[80]!==T||t[81]!==W||t[82]!==k.id||t[83]!==u||t[84]!==p||t[85]!==h||t[86]!==a?(pe=p?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-prev`,onClick:W,disabled:H<=0,"aria-label":`Previous slide`,children:(0,V.jsx)(s.chevL,{})}),(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-next`,onClick:G,disabled:H>=h.length-1,"aria-label":`Next slide`,children:(0,V.jsx)(s.chevR,{})}),(0,V.jsx)(`div`,{className:`present-nav`,"aria-label":`Slide navigation`,children:(0,V.jsxs)(`span`,{className:`present-nav-count`,"aria-live":`polite`,"aria-atomic":`true`,children:[H+1,` `,(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),` `,h.length]})})]}):(0,V.jsx)(Ut,{blocks:h,activeId:k.id??null,narratingId:u??null,onPick:T,renderBlock:a}),t[78]=H,t[79]=G,t[80]=T,t[81]=W,t[82]=k.id,t[83]=u,t[84]=p,t[85]=h,t[86]=a,t[87]=pe):pe=t[87];let me;return t[88]!==K||t[89]!==se||t[90]!==$||t[91]!==pe?(me=(0,V.jsxs)(`div`,{className:K,children:[se,$,pe]}),t[88]=K,t[89]=se,t[90]=$,t[91]=pe,t[92]=me):me=t[92],me}function Kt(e){return!!e.id}var qt=[{mode:`focus`,label:`Focus`},{mode:`everything`,label:`Everything`}];function Jt(e){let t=(0,z.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=qt.map(e=>{let t=n===e.mode;return(0,V.jsx)(`button`,{type:`button`,className:`focus-toggle-opt`+(t?` active`:``),"aria-pressed":t,onClick:()=>r(e.mode),children:e.label},e.mode)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`focus-toggle`,role:`group`,"aria-label":`Canvas view`,children:i}),t[3]=i,t[4]=a),a}var Yt=e({TopicCanvas:()=>on});r();var Xt=(0,R.lazy)(()=>o(()=>import(`./ReplayCard-C3dGQfxG.js`).then(e=>e.t).then(e=>({default:e.ReplayCard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),Zt=1,Qt=1.75,$t=.15,en=1.15;function tn(e){return typeof e!=`number`||!Number.isFinite(e)?6:Math.min(12,Math.max(1,Math.round(e)))}function nn(e,t){return(0,V.jsx)(s[e]||s.layers,{className:`ic`,style:{color:t||`var(--presence)`}})}function rn({block:e,nest:t,spotlight:n,dimmed:r,spot:i,onProve:a,onUnrenderable:o}){let s={delay:e.delay};if(e.type===`composite`){if(t>=2)return null;let n=e.props;return(0,V.jsxs)(`div`,{className:`card reveal cmp-card`,style:{"--delay":(e.delay||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[n.icon&&nn(n.icon,n.iconColor),` `,n.title]}),(0,V.jsx)(`div`,{className:`cmp-grid`,children:n.regions.map((e,n)=>(0,V.jsx)(`div`,{className:`cmp-cell`,"data-spot-id":e.block.id,"data-kind":e.block.type,style:{"--cmp-span":tn(e.span)},children:(0,V.jsx)(an,{block:e.block,nest:t+1,spotlight:!!e.block.id&&i===e.block.id,dimmed:!!e.block.id&&!!i&&i!==e.block.id,spot:e.block.type===`composite`?i:null,onProve:a,onUnrenderable:o})},n))}),n.footer&&(0,V.jsx)(`div`,{className:`cmp-foot`,children:n.footer})]})}if(e.type===`insight`)return(0,V.jsx)(ge,{num:e.num,...e.props,...s,spotlight:n,dimmed:r,onProve:e.prove?a:void 0});if(e.type===`chart`)return(0,V.jsx)(ve,{...e.props,...s});if(e.type===`breakdown`)return(0,V.jsx)(ye,{...e.props,...s});if(e.type===`timeline`)return(0,V.jsx)(be,{...e.props,...s});if(e.type===`list`)return(0,V.jsx)(Se,{...e.props,...s});if(e.type===`compare`)return(0,V.jsx)(Ce,{...e.props,...s});if(e.type===`ring`)return(0,V.jsx)(Oe,{...e.props,...s});if(e.type===`bars`)return(0,V.jsx)(ke,{...e.props,...s});if(e.type===`stack`)return(0,V.jsx)(Ae,{...e.props,...s});if(e.type===`scatter`)return(0,V.jsx)(je,{...e.props,...s});if(e.type===`heat`)return(0,V.jsx)(Me,{...e.props,...s});if(e.type===`flow`)return(0,V.jsx)(Ne,{...e.props,...s});if(e.type===`web`)return(0,V.jsx)(Pe,{...e.props,...s});if(e.type===`gallery`)return(0,V.jsx)(Re,{...e.props,...s});if(e.type===`codemap`)return(0,V.jsx)(ze,{...e.props,...s});if(e.type===`diff`)return(0,V.jsx)(Be,{...e.props,...s});if(e.type===`checks`)return(0,V.jsx)(Ue,{...e.props,...s});if(e.type===`donut`)return(0,V.jsx)(We,{...e.props,...s});if(e.type===`gauge`)return(0,V.jsx)(Ge,{...e.props,...s});if(e.type===`scoreboard`)return(0,V.jsx)(Ke,{...e.props,...s});if(e.type===`standings`)return(0,V.jsx)(qe,{...e.props,...s});if(e.type===`pipeline`)return(0,V.jsx)(Je,{...e.props,...s});if(e.type===`kpi`)return(0,V.jsx)(Xe,{...e.props,...s});if(e.type===`quotes`)return(0,V.jsx)(Ze,{...e.props,...s});if(e.type===`checklist`)return(0,V.jsx)(Qe,{...e.props,...s});if(e.type===`understand`)return(0,V.jsx)($e,{...e.props,...s});if(e.type===`schema`)return(0,V.jsx)(et,{...e.props,...s});if(e.type===`screenmap`)return(0,V.jsx)(nt,{...e.props,...s});if(e.type===`buildprog`)return(0,V.jsx)(rt,{...e.props,...s});if(e.type===`preview`)return(0,V.jsx)(it,{...e.props,...s});if(e.type===`action`){let t=e.props;return(0,V.jsx)(Nt,{...t,...s})}let c=e,l=u(c.type);if(l){let e=l(c.props,{delay:c.delay,spotlight:n,dimmed:r,blockId:c.id,onUnrenderable:o});return ie.has(c.type)?(0,V.jsx)(U,{children:e}):e}return(0,V.jsx)(b,{block:e})}var an=(0,R.memo)(rn);function on({data:e,spot:t,built:n,onProve:r,onAskBlock:i,onAddToDashboard:a,selectedBlockIds:o,viewMode:c,onViewMode:l,onNarrate:u,narratingId:d,muted:p,noteGutter:h,walkNotes:g,bend:v,onAddToFlashcard:S,flashedIds:C,headerSlot:w,belowHeaderSlot:T,presenting:E,blankFill:D}){let[O,k]=(0,R.useState)(null),[A,j]=(0,R.useState)(!1),[M,N]=(0,R.useState)(null),[P,F]=(0,R.useState)(en);(0,R.useEffect)(()=>{if(!M)return;let e=e=>{e.key===`Escape`&&N(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[M]);let I=(0,R.useRef)(null),[z]=le(),[te,ne]=(0,R.useState)(()=>new Set);(0,R.useEffect)(()=>{ne(e=>e.size?new Set:e)},[e.id]);let re=(0,R.useCallback)(e=>{ne(t=>t.has(e)?t:new Set(t).add(e))},[]),B=(0,R.useMemo)(()=>te.size?e.blocks.filter(e=>!e.id||!te.has(e.id)):e.blocks,[e.blocks,te]),{displayBlocks:H=B,budget:U}=ct(B,I),W=ee(e.blocks),ie=`${e.id}:${W}:${U}`;ft(I,ie),Ct(I,ie);let G=e.blocks.find(e=>e.type===`preview`),ae=G?G.props:null,oe=c!==void 0&&H.filter(e=>!!e.id).length>=2,K=oe&&c===`focus`,se=c!==void 0&&m(e),q=se&&c===`canvas`,ce=(0,R.useRef)(c);ce.current=c,(0,R.useEffect)(()=>{ce.current===`canvas`&&l?.(`everything`)},[e.id,l]);let J=e.blanks?.filter(e=>e.kind===`card`)??[],Y=!!D&&J.length>0,X=Lt(e.blanks,(e,t)=>D?.fill({kind:`card`,key:e,label:x(t),block:t}),e=>{let t=J.find(e=>e.key===D?.activeKey)??J[0];t&&D?.fill({kind:`card`,key:t.key,label:x(e),block:e})}),Z=(0,R.useRef)(r);Z.current=r;let ue=(0,R.useCallback)(()=>Z.current(),[]),Q=e=>(0,V.jsx)(an,{block:e,nest:0,spotlight:!!e.id&&t===e.id,dimmed:!!e.id&&!!t&&t!==e.id,spot:e.type===`composite`?t:null,onProve:ue,onUnrenderable:re}),de=t=>t.kind===`slide`?(0,V.jsx)(Te,{...t.props}):t.kind===`action`?(0,V.jsx)(De,{...t.props,onConfirm:ae?()=>k(ae):void 0}):t.kind===`replay`?(0,V.jsx)(R.Suspense,{fallback:null,children:(0,V.jsx)(Xt,{...t.props,spec:e})}):null,fe=(0,R.useMemo)(()=>Et(H).map(e=>({...e,standard:st(e.standard,U),deeper:st(e.deeper,U)})),[H,U]),$=Tt(H),me=fe.some(e=>e.deeper.length>0),he=(e,n)=>{let r=!!e.id,c=r&&t===e.id,l=r&&!!t&&t!==e.id,u=r&&!!i,d=r&&!!a,f=r&&!!S,p=f&&!!C?.has(e.id),m=u&&!!o?.has(e.id),h=r&&(u||d||f),g=Y&&r&&e.type!==`blanks`;return(0,V.jsxs)(`div`,{className:`col-`+e.col+(c?` spotlit`:``)+(l?` dimmed`:``)+(u?` askable`:``)+(d?` addable`:``)+(f?` flashcardable`:``)+(h?` zoomable`:``)+(m?` picked`:``),"data-spot-id":e.id,"data-kind":e.type,children:[(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e}),children:Q(e)}),v&&v.blockId===e.id&&(0,V.jsx)(kt,{bend:v}),(u||d||f||h||g)&&(0,V.jsxs)(`div`,{className:`block-actions`,ref:wt,children:[g&&(0,V.jsx)(`button`,{type:`button`,className:`card-drag-handle`,title:`Drag ${x(e)} into a slot`,"aria-label":`Use ${x(e)} to fill a slot`,...X.handleProps(e),children:(0,V.jsx)(`span`,{"aria-hidden":!0,children:`⠿`})}),u&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`,"aria-pressed":m,title:m?`Selected — ask about it below`:`Ask about ${x(e)}`,"aria-label":m?`Unpin ${x(e)}`:`Ask about ${x(e)}`,onClick:t=>{t.stopPropagation(),i(e)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:m?`Selected`:`Ask`})]}),d&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask block-add`,title:`Add ${x(e)} to a dashboard`,"aria-label":`Add ${x(e)} to a dashboard`,onClick:t=>{t.stopPropagation(),a(e)},children:[(0,V.jsx)(s.plus,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Dashboard`})]}),f&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-cards`+(p?` is-flashed`:``),"aria-pressed":p,title:p?`${x(e)} is in your flashcards`:`Make flashcards from ${x(e)}`,"aria-label":`Make flashcards from ${x(e)}`,onClick:t=>{t.stopPropagation(),S(e)},children:[p?(0,V.jsx)(s.check,{}):(0,V.jsx)(s.layers,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:p?`Added`:`Cards`})]}),h&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-zoom`,title:`Zoom into ${x(e)}`,"aria-label":`Zoom into ${x(e)}`,onClick:t=>{t.stopPropagation(),N(e),F(en)},children:[(0,V.jsx)(s.zoomIn,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Zoom`})]})]})]},e.id||n)};return(0,V.jsxs)(L.Provider,{value:D??null,children:[X.ghost,(0,V.jsxs)(`div`,{className:`canvas-header`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`div`,{className:`canvas-title`,children:e.title}),(0,V.jsx)(`div`,{className:`canvas-sub`,children:e.sub})]}),(0,V.jsxs)(`div`,{className:`canvas-header-actions`,children:[w,q?(0,V.jsxs)(`button`,{type:`button`,className:`canvas-exit`,onClick:()=>l?.(`everything`),children:[(0,V.jsx)(`span`,{"aria-hidden":!0,children:`←`}),` Back to answer`]}):(0,V.jsxs)(V.Fragment,{children:[$&&me&&!K&&(0,V.jsx)(`button`,{type:`button`,className:`depth-reading-toggle`+(A?` is-reading`:``),"aria-pressed":A,title:A?`Collapse all deeper sections`:`Expand all deeper sections`,onClick:()=>j(e=>!e),children:A?`Collapse sections`:`Expand sections`}),oe&&l&&(0,V.jsx)(Jt,{value:K?`focus`:`everything`,onChange:l}),se&&l&&(0,V.jsxs)(`button`,{type:`button`,className:`canvas-open`,onClick:()=>l(`canvas`),title:`Spread this answer's cards on a board you can wander`,children:[(0,V.jsx)(`span`,{className:`canvas-open-glyph`,"aria-hidden":!0,children:`◇`}),` `,`View as canvas`]})]})]})]}),T,e.context.length>0&&(0,V.jsxs)(`div`,{className:`context-row`,style:{marginBottom:18},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5,marginRight:2},children:`Reading`}),e.context.map((e,t)=>(0,V.jsx)(f,{name:e.name,color:e.color},t))]}),W?q?(0,V.jsx)(pe,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onExit:()=>l?.(`everything`)}):K?(0,V.jsx)(Gt,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onNarrate:u,narratingId:d,muted:p,walkNotes:g,presenting:E}):(0,V.jsxs)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,children:[$?fe.map((e,t)=>(0,V.jsx)(Dt,{section:e,renderCard:he,readingMode:A},e.label||t)):H.map((e,t)=>he(e,t)),Object.keys(n).filter(t=>n[t]&&e.extras&&e.extras[t]).map(t=>{let n=e.extras[t],r=Math.min(12,Math.max(1,n.col||6));return(0,V.jsx)(`div`,{className:`col-`+(U<9?12:r),children:de(n)},t)})]}):(0,V.jsx)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,role:`status`,"aria-busy":`true`,"aria-label":`Loading visuals`,children:(0,V.jsx)(_,{blocks:H,budget:U})}),e.awaiting&&D?.complete&&(()=>{let t=Object.keys(D.values).length,n=e.blanks?.length??0,r=n>0&&t===n,i=D.busy?`Completing your answer…`:r?`All filled — finish when ready`:t===0?`Fill the blanks above to finish`:`${t} of ${n} filled`;return(0,V.jsxs)(`div`,{className:`blank-complete-bar${D.busy?` is-busy`:``}${r&&!D.busy?` is-ready`:``}`,role:`status`,"aria-live":`polite`,children:[(0,V.jsxs)(`span`,{className:`blank-complete-count`,children:[D.busy&&(0,V.jsx)(`span`,{className:`blank-complete-spinner`,"aria-hidden":`true`}),i]}),(0,V.jsx)(`button`,{type:`button`,className:`blank-complete-btn`,disabled:D.busy||t===0,onClick:D.complete,children:`Complete the answer`})]})})(),O&&(0,V.jsx)(`div`,{className:`app-scrim`,role:`button`,tabIndex:0,"aria-label":`Close app preview`,onClick:()=>k(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),k(null))},children:(0,V.jsxs)(`div`,{className:`app-launch`,role:`button`,tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`app-launch-head`,children:[(0,V.jsxs)(`span`,{className:`app-launch-title`,children:[O.app,(0,V.jsxs)(`span`,{className:`app-launch-pill`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),` Live on your workspace`]})]}),(0,V.jsx)(`button`,{className:`drawer-x`,onClick:()=>k(null),"aria-label":`Close app`,children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`app-launch-body`,children:(0,V.jsx)(it,{...O})})]})}),M&&(0,V.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close zoomed view`,onClick:()=>N(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N(null))},children:(0,V.jsxs)(`div`,{className:`zoom-sheet`,role:`button`,tabIndex:0,"aria-label":x(M),onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`zoom-sheet-toolbar`,children:[(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom out`,disabled:P<=Zt,onClick:()=>F(e=>Math.max(Zt,+(e-$t).toFixed(2))),children:(0,V.jsx)(s.zoomOut,{})}),(0,V.jsxs)(`span`,{className:`zoom-sheet-zoom-level`,children:[Math.round(P*100),`%`]}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom in`,disabled:P>=Qt,onClick:()=>F(e=>Math.min(Qt,+(e+$t).toFixed(2))),children:(0,V.jsx)(s.zoomIn,{})}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-x`,"aria-label":`Close`,onClick:()=>N(null),children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`zoom-sheet-body`,style:{zoom:P},children:Q(M)})]})})]})}export{Yt as n,on as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-Dbr1j8Fe.js";import{PrismOverlay as r}from"./PrismOverlay-CduGpA8D.js";var i=n(),a=e(),o=t(),s=900;function c(e){let t=(0,i.c)(11),{doc:n,cfg:c,onClose:l}=e,[u,d]=(0,a.useState)(`igniting`),f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=setTimeout(()=>d(`blooming`),s),t=setTimeout(()=>d(`settled`),2300);return()=>{clearTimeout(e),clearTimeout(t)}},p=[],t[0]=f,t[1]=p):(f=t[0],p=t[1]),(0,a.useEffect)(f,p);let m=u===`settled`?n.spec:null,h;t[2]!==n.proposed||t[3]!==u||t[4]!==m?(h={phase:u,spec:m,corpus:null,proposed:n.proposed,error:null},t[2]=n.proposed,t[3]=u,t[4]=m,t[5]=h):h=t[5];let g=h,_;return t[6]!==c||t[7]!==n.doc||t[8]!==l||t[9]!==g?(_=(0,o.jsx)(r,{pdf:n.doc,world:g,cfg:c,autoBriefing:!0,onClose:l}),t[6]=c,t[7]=n.doc,t[8]=l,t[9]=g,t[10]=_):_=t[10],_}export{c as TourPrism};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useDashboardLoop-C8Mcbcto.js","assets/chunk-BVpWp9h4.js","assets/index-Dbr1j8Fe.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/providers-wzm7E8Pa.js","assets/http-CJCtjYpA.js","assets/info-CiqHR5cs.js","assets/useStudy-DHRIx8p-.js","assets/contentVault-DzTYWcbD.js","assets/keyVault-DEsNh9FR.js","assets/store-DrBDvqXF.js","assets/queue-J4h7E3uc.js","assets/store-DXmC_fP2.js","assets/queue-DHeyJ32F.css","assets/useLiveConfig-BW1WkpTc.js","assets/dashboardEvents-Be4sftHN.js","assets/spokenText-D4zPX9JY.js","assets/format-hc2QOoIu.js","assets/kokoro-DsmNzulR.js","assets/notify-Bz4wuE4T.js","assets/predictions-CYS7Vo39.js","assets/json-B0N3XRZU.js","assets/now-C9-UAzTC.js","assets/number-DXgzss0v.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,ht as r,q as i}from"./index-Dbr1j8Fe.js";import{n as a}from"./icons-CHVz6kv_.js";import{s as o}from"./useStudy-DHRIx8p-.js";import{f as s}from"./dashboardEvents-Be4sftHN.js";import{a as c,i as l}from"./CheckLogRail-C6nouD1Y.js";import{a as u,o as d,t as f}from"./format-hc2QOoIu.js";var p=e(),m={"15min":`15M`,hourly:`1H`,"6h":`6H`,daily:`DAILY`,manual:`MANUAL`};function h(e){return e.metrics.find(e=>e.lastValue!==null)??e.metrics[0]}function g(e,t){for(let n of e.widgets)if(n.block.type===t)return n.block}function _(e){if(!e.history||e.history.length<2)return!1;let t=e.unit?.trim();return t===`$`||t?.startsWith(`$`)?!0:/price/i.test(e.label)}function v(e){return e.metrics.length!==1||e.metrics[0].unit!==`%`?!1:!e.widgets.some(e=>e.block.type===`scoreboard`)}function y(e,t){if(e.oneShotAt!==void 0&&e.oneShotAt>t)return`scheduled`;if(e.cadence.window)return`live-event`;if(e.widgets.some(e=>e.block.type===`scoreboard`||e.block.type===`standings`))return`sports`;if(e.widgets.some(e=>e.block.type===`forecast`))return`weather`;if(v(e))return`probability`;let n=h(e);return n&&_(n)?`price`:`generic`}function b(e){if(!e?.history||e.history.length<2)return null;let t=e.history[e.history.length-2].value,n=e.history[e.history.length-1].value;if(n===t)return null;let r=n>t?`up`:`down`,i=Math.round(Math.abs(n-t)*100)/100,a=Number.isInteger(i)?String(i):i.toFixed(2),o=e.unit;return{direction:r,text:`${r===`up`?`+`:`-`}${o===`$`?`$`:``}${a}${o&&o!==`$`?o:``}`}}function x(e){return typeof e==`number`?Number.isFinite(e):typeof e==`string`&&e.trim()!==``}function S(e){let t=g(e,`scoreboard`);if(t)return t.props.games.slice(0,5).filter(e=>x(e.as)&&x(e.hs)).map(e=>({label:`${e.as}-${e.hs}`,tone:e.hot?`accent`:`flat`,title:`${e.away} @ ${e.home} · ${e.status}`}));let n=g(e,`standings`);return n?n.props.rows.slice(0,5).filter(e=>!!e.rec?.trim()).map((e,t)=>({label:e.rec,tone:t===0?`accent`:`flat`,title:e.team})):[]}function C(e){let t=g(e,`forecast`);return t?t.props.days.slice(0,4).map(e=>({label:e.label,hi:e.hi,lo:e.lo,icon:e.icon})):[]}function w(e){return e.replace(/^(updated|checked)\s+/,``)}var T={scheduled:`countdown`,"live-event":`livescore`,sports:`formchips`,weather:`forecast`,probability:`probability`};function E(e,t){let n=y(e,t),r=h(e),i=u(e),a=d(e),o=e.lastDataOutcome===`unverified`,s,c;i?(s=i.value,c=i.label):a>0?(s=String(a),c=a===1?`live card`:`live cards`):(s=`—`,c=o?`Couldn't verify with sources — check again`:`Not yet checked`);let l=i?r?.history??null:null,p=i?b(r):null,g;g=n===`price`?l&&l.length>=2?`area`:`none`:n===`generic`?l&&l.length>=2?`sparkline`:`none`:T[n];let _=e.cadence.window??null,v=_!==null&&t>=_.startAt&&t<=_.endAt,x=e.lastRefreshedAt!==null&&e.lastRefreshedAt>0,E=w(f(e.lastRefreshedAt,t,e.lastDataOutcome));return{id:e.id,name:e.title,kind:n,vizKind:g,cadenceLabel:m[e.cadence.data],pauseEligible:e.cadence.data!==`manual`,isLiveWindow:v,liveWindow:_,value:s,context:c,delta:p,history:l,probabilityPct:n===`probability`?e.metrics[0].lastValue:null,formChips:n===`sports`?S(e):[],forecastDays:n===`weather`?C(e):[],oneShotAt:e.oneShotAt??null,oneShotLabel:e.oneShotLabel??null,everChecked:x,asOf:E,unverified:o}}var D=r(),O=t();function k(e){let t=(0,D.c)(4),{days:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(A),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,O.jsx)(`div`,{className:`tile-forecast`,children:r}),t[2]=r,t[3]=i),i}function A(e,t){let n=e.icon?a[e.icon]:null;return(0,O.jsxs)(`div`,{className:`tile-forecast-day`,children:[(0,O.jsx)(`span`,{className:`tile-forecast-label`,children:e.label}),n&&(0,O.jsx)(n,{className:`tile-forecast-glyph`,"aria-hidden":`true`}),(0,O.jsxs)(`span`,{className:`tile-forecast-temp`,children:[e.hi??`—`,e.lo&&(0,O.jsxs)(`span`,{className:`tile-forecast-lo`,children:[`/`,e.lo]})]})]},`${e.label}-${t}`)}function j(e){let t=(0,D.c)(4),{items:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(M),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,O.jsx)(`div`,{className:`tile-chips`,children:r}),t[2]=r,t[3]=i),i}function M(e,t){return(0,O.jsx)(`span`,{className:`tile-chip tile-chip--${e.tone}`,title:e.title,children:e.label},`${e.label}-${t}`)}function N(e){let t=(0,D.c)(8),{liveWindow:n,now:r}=e,i=n.endAt-n.startAt||1,a=Math.min(1,Math.max(0,(r-n.startAt)/i)),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,O.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),t[0]=o):o=t[0];let s;t[1]===n.label?s=t[2]:(s=(0,O.jsxs)(`div`,{className:`tile-live-head`,children:[o,(0,O.jsx)(`span`,{className:`tile-live-label`,children:n.label})]}),t[1]=n.label,t[2]=s);let c=`${a*100}%`,l;t[3]===c?l=t[4]:(l=(0,O.jsx)(`div`,{className:`tile-live-track`,children:(0,O.jsx)(`div`,{className:`tile-live-fill`,style:{width:c}})}),t[3]=c,t[4]=l);let u;return t[5]!==s||t[6]!==l?(u=(0,O.jsxs)(`div`,{className:`tile-live`,children:[s,l]}),t[5]=s,t[6]=l,t[7]=u):u=t[7],u}function P(e){let t=(0,D.c)(10),{pct:n}=e,r;t[0]===n?r=t[1]:(r=Math.round(Math.min(100,Math.max(0,n))),t[0]=n,t[1]=r);let i=r,a=`${i}% likely`,o=`${i}%`,s;t[2]===o?s=t[3]:(s=(0,O.jsx)(`div`,{className:`tile-prob-track`,children:(0,O.jsx)(`div`,{className:`tile-prob-fill`,style:{width:o}})}),t[2]=o,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,O.jsxs)(`span`,{className:`tile-prob-pct`,children:[i,`%`]}),t[4]=i,t[5]=c);let l;return t[6]!==a||t[7]!==s||t[8]!==c?(l=(0,O.jsxs)(`div`,{className:`tile-prob`,role:`img`,"aria-label":a,children:[s,c]}),t[6]=a,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}var F=200,I=40,L=3;function R(e){let t=(0,D.c)(14),{points:n}=e;if(n.length<2)return null;let r,i;if(t[0]!==n){let e=n.map(z);r=Math.min(...e),i=Math.max(...e),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a=i-r||1,o=(F-L*2)/(n.length-1),s;if(t[3]!==r||t[4]!==n||t[5]!==a||t[6]!==o){let e;t[8]!==r||t[9]!==a||t[10]!==o?(e=(e,t)=>{let n=L+t*o,i=L+(1-(e.value-r)/a)*(I-L*2);return`${t===0?`M`:`L`}${n.toFixed(1)},${i.toFixed(1)}`},t[8]=r,t[9]=a,t[10]=o,t[11]=e):e=t[11],s=n.map(e).join(` `),t[3]=r,t[4]=n,t[5]=a,t[6]=o,t[7]=s}else s=t[7];let c=s,l;return t[12]===c?l=t[13]:(l=(0,O.jsx)(`svg`,{className:`tile-viz-svg`,viewBox:`0 0 ${F} ${I}`,preserveAspectRatio:`none`,role:`presentation`,children:(0,O.jsx)(`path`,{d:c,fill:`none`,stroke:`var(--text-secondary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})}),t[12]=c,t[13]=l),l}function z(e){return e.value}n();function B(e,t){switch(e.vizKind){case`area`:return e.history?(0,O.jsx)(c,{points:e.history,tone:e.delta?.direction??`flat`}):null;case`sparkline`:return e.history?(0,O.jsx)(R,{points:e.history}):null;case`probability`:return e.probabilityPct===null?null:(0,O.jsx)(P,{pct:e.probabilityPct});case`countdown`:return e.oneShotAt===null?null:(0,O.jsx)(l,{targetAt:e.oneShotAt,now:t,label:e.oneShotLabel??void 0});case`formchips`:return(0,O.jsx)(j,{items:e.formChips});case`forecast`:return(0,O.jsx)(k,{days:e.forecastDays});case`livescore`:return e.liveWindow?(0,O.jsx)(N,{liveWindow:e.liveWindow,now:t}):null;case`none`:return null}}function V({dashboard:e,now:t,paused:n=!1}){let r=(0,p.useMemo)(()=>E(e,t),[e,t]),c=s(e.id),l=n&&r.pauseEligible,u=l?`paused`:r.isLiveWindow?`live`:`plain`,d=t=>{t.preventDefault(),t.stopPropagation(),!c&&i(async()=>{let{refreshDashboardNow:e}=await import(`./useDashboardLoop-C8Mcbcto.js`).then(e=>e.i);return{refreshDashboardNow:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])).then(({refreshDashboardNow:t})=>t(e.id))};return(0,O.jsxs)(`a`,{className:`tile-frame`,href:o.detail(e.id),"data-tile-state":u===`plain`?void 0:u,children:[(0,O.jsxs)(`div`,{className:`tile-top`,children:[(0,O.jsx)(`span`,{className:`tile-name`,title:r.name,children:r.name}),(0,O.jsxs)(`span`,{className:`tile-cadence tile-cadence--${u}`,children:[u===`live`&&(0,O.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),l?`PAUSED`:r.cadenceLabel]})]}),(0,O.jsxs)(`div`,{className:`tile-value-row`,children:[(0,O.jsx)(`span`,{className:`tile-value${c?` tile-value--checking`:``}`,children:r.value}),r.delta&&(0,O.jsx)(`span`,{className:`tile-delta tile-delta--${r.delta.direction}`,children:r.delta.text})]}),(0,O.jsx)(`p`,{className:`tile-context`,children:c?`Checking for live data…`:r.context}),(0,O.jsx)(`div`,{className:`tile-viz`,children:B(r,t)}),(0,O.jsxs)(`div`,{className:`tile-foot`,children:[(0,O.jsx)(`span`,{className:`tile-asof`,children:r.everChecked?`AS OF ${r.asOf}`:r.asOf}),(0,O.jsx)(`span`,{role:`button`,tabIndex:0,className:`tile-check${c?` is-checking`:``}`,"aria-label":`Check ${r.name} now`,"aria-disabled":c,title:`Check now`,onClick:d,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&d(e)},children:(0,O.jsx)(a.refresh,{className:c?`dash-refresh-spin`:void 0})})]})]})}export{N as n,E as r,V as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t,ut as n}from"./index-Dbr1j8Fe.js";import{r}from"./info-CiqHR5cs.js";var i=t(),a=e(),o=[`No sign-up`,`No install`,`Key-free tour`,`Keys session-only`];function s(e){let t=(0,i.c)(16),{onEnterLive:s}=e,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,a.jsxs)(n,{eyebrow:`Yours in seconds`,children:[`No account. `,(0,a.jsx)(`em`,{children:`Your engine.`})]}),t[0]=u):u=t[0];let d,f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(`div`,{className:`fl-surface-tag insight`,children:`Instant · no sign-up`}),f=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Nothing to sign up for`}),p=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`No account, no waitlist, no install. The tour and demos run key-free; Live starts the moment you paste a key.`}),t[1]=d,t[2]=f,t[3]=p):(d=t[1],f=t[2],p=t[3]);let m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:o.map(l)}),t[4]=m):m=t[4];let h;t[5]===s?h=t[6]:(h=(0,a.jsxs)(`div`,{className:`fl-surface`,children:[d,f,p,m,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn`,onClick:()=>s(),children:`Open Mavéa →`})]}),t[5]=s,t[6]=h);let g,_,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,a.jsx)(`div`,{className:`fl-surface-tag live`,children:`Live · your model`}),_=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Bring your own keys`}),v=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`Anthropic, OpenAI, Gemini, Grok, OpenRouter. Same beautiful canvas, your engine.`}),t[7]=g,t[8]=_,t[9]=v):(g=t[7],_=t[8],v=t[9]);let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:r.map(c)}),t[10]=y):y=t[10];let b;t[11]===s?b=t[12]:(b=(0,a.jsxs)(`div`,{className:`fl-surface live`,children:[g,_,v,y,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn live`,onClick:()=>s(),children:`Open Live →`})]}),t[11]=s,t[12]=b);let x;return t[13]!==b||t[14]!==h?(x=(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(`div`,{className:`fl-surfaces`,children:[h,b]})]}),t[13]=b,t[14]=h,t[15]=x):x=t[15],x}function c(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip fl-model-chip`,children:e.label},e.id)}function l(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip`,children:e},e)}export{s as TwoSurfaces};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-Dbr1j8Fe.js";var r=e(),i=n(),a=t(),o=`Mavéa lists the assumptions it used for this answer. If one is wrong, tap that chip and correct it.`;function s(e){let t=(0,i.c)(28),{chips:n,onFix:s}=e,[c,l]=(0,r.useState)(null),[u,d]=(0,r.useState)(``),f=(0,r.useRef)(null),p=(0,r.useId)(),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{l(null)},t[0]=m):m=t[0];let h;t[1]===n?h=t[2]:(h=[n],t[1]=n,t[2]=h),(0,r.useEffect)(m,h);let g,_;if(t[3]===c?(g=t[4],_=t[5]):(g=()=>{c!==null&&f.current?.select()},_=[c],t[3]=c,t[4]=g,t[5]=_),(0,r.useEffect)(g,_),n.length===0)return null;let v;t[6]===n?v=t[7]:(v=e=>{d(n[e]),l(e)},t[6]=n,t[7]=v);let y=v,b;t[8]!==n||t[9]!==u||t[10]!==c||t[11]!==s?(b=()=>{let e=u.replace(/\s+/g,` `).trim();c!==null&&(e&&e!==n[c]&&s(n[c],e),l(null))},t[8]=n,t[9]=u,t[10]=c,t[11]=s,t[12]=b):b=t[12];let x=b,S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,a.jsx)(`span`,{className:`understood-label`,children:`What I understood — tap anything to fix it`}),t[13]=S):S=t[13];let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,a.jsx)(`span`,{"aria-hidden":`true`,children:`i`}),t[14]=C):C=t[14];let w;t[15]===p?w=t[16]:(w=(0,a.jsxs)(`div`,{className:`understood-head`,children:[S,(0,a.jsxs)(`span`,{className:`understood-help`,children:[(0,a.jsx)(`button`,{type:`button`,className:`understood-help-btn`,"aria-label":`What this section means`,"aria-describedby":p,title:o,children:C}),(0,a.jsx)(`span`,{id:p,className:`understood-tooltip`,role:`tooltip`,children:o})]})]}),t[15]=p,t[16]=w);let T;t[17]!==n||t[18]!==x||t[19]!==u||t[20]!==c||t[21]!==y?(T=n.map((e,t)=>c===t?(0,a.jsx)(`input`,{ref:f,className:`understood-edit`,value:u,size:Math.max(u.length,6),onChange:e=>d(e.target.value),onBlur:()=>l(null),onKeyDown:e=>{e.key===`Enter`&&x(),e.key===`Escape`&&l(null)},"aria-label":`Correct "${e}"`},e):(0,a.jsx)(`button`,{type:`button`,className:`understood-chip`,onClick:()=>y(t),title:`Not right? Tap to fix it`,children:e},e)),t[17]=n,t[18]=x,t[19]=u,t[20]=c,t[21]=y,t[22]=T):T=t[22];let E;t[23]===T?E=t[24]:(E=(0,a.jsx)(`div`,{className:`understood-chips`,children:T}),t[23]=T,t[24]=E);let D;return t[25]!==E||t[26]!==w?(D=(0,a.jsxs)(`section`,{className:`understood`,"aria-label":`What Mavéa understood`,children:[w,E]}),t[25]=E,t[26]=w,t[27]=D):D=t[27],D}export{s as UnderstoodPanel};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-Dbr1j8Fe.js";import{t as r}from"./useSpatialCanvas-C5TNlpeK.js";import{r as i}from"./sourceHost-BV3t2XDb.js";var a=e(),o=n();function s(e){return e===`T1`||e===`T2`}var c=e=>e<0?0:e>1?1:e;function l(e){let t=new Set(e.nodes.map(e=>e.id)),n=new Map,r=new Map;for(let t of e.nodes)n.set(t.id,0),r.set(t.id,[]);for(let i of e.edges)!t.has(i.from)||!t.has(i.to)||i.from===i.to||(n.set(i.to,(n.get(i.to)??0)+1),r.get(i.from).push(i.to));let i=e.nodes.filter(e=>(n.get(e.id)??0)===0).map(e=>e.id),a=[];for(;i.length;){let e=i.shift();a.push(e);for(let t of r.get(e)??[])n.set(t,(n.get(t)??0)-1),n.get(t)===0&&i.push(t)}return a.length===e.nodes.length?a:null}function u(e){let t=e.nodes.find(t=>t.id===e.outcomeId);return!t||typeof t.value!=`number`||!Number.isFinite(t.value)||!s(t.tier)?!1:e.edges.length>0&&e.edges.every(e=>typeof e.weight==`number`&&Number.isFinite(e.weight)&&s(e.tier))}function d(e,t=[]){let n=l(e),r={byNode:new Map(e.nodes.map(e=>[e.id,null])),outcomeDelta:null,explainedPct:null,fullyGrounded:!1,relativeByNode:new Map(e.nodes.map(e=>[e.id,0])),relativeOutcome:null};if(!n)return r;let i=new Map;for(let e of t)e.nodeId&&i.set(e.nodeId,c(e.pct));let a=new Map;for(let t of e.edges)a.has(t.to)||a.set(t.to,[]),a.get(t.to).push(t);let o=e=>{let t=new Map;for(let r of n){let n=a.get(r)??[];if(n.length===0){t.set(r,e.get(r)??1);continue}let i=0,o=!0;for(let e of n){let n=t.get(e.from);if(n==null||typeof e.weight!=`number`){o=!1;break}i+=e.sign*e.weight*n}t.set(r,o?i:null)}return t},s=o(i),d=new Map(e.nodes.map(e=>[e.id,s.get(e.id)??null])),f=new Map;for(let e of n){let t=a.get(e)??[];if(t.length===0){f.set(e,c(i.get(e)??1));continue}let n=0;for(let e of t)n+=e.sign*(f.get(e.from)??0);f.set(e,c(n/t.length))}let p=new Map(e.nodes.map(e=>[e.id,f.get(e.id)??0])),m=f.has(e.outcomeId)?f.get(e.outcomeId):null;if(!u(e))return{byNode:d,outcomeDelta:null,explainedPct:null,fullyGrounded:!1,relativeByNode:p,relativeOutcome:m};let h=o(new Map),g=e.nodes.find(t=>t.id===e.outcomeId).value,_=s.get(e.outcomeId),v=h.get(e.outcomeId);return{byNode:d,outcomeDelta:_!=null&&v!=null?(_-v)*g:null,explainedPct:_??null,fullyGrounded:!0,relativeByNode:p,relativeOutcome:m}}var f=268,p=112,m=90;function h(e){let t=new Map(e.nodes.map(e=>[e.id,e])),n=e=>Number.isFinite(e.depth)?e.depth:e.role===`root`?0:e.role===`mechanism`?1:2,r=[...new Set(e.nodes.map(n))].sort((e,t)=>e-t),i=new Map;for(let n of e.edges)!t.has(n.from)||!t.has(n.to)||(i.has(n.to)||i.set(n.to,[]),i.get(n.to).push(n.from));let a=new Map,o=[];r.forEach((t,r)=>{let s=e.nodes.filter(e=>n(e)===t).map((e,t)=>{let n=(i.get(e.id)??[]).map(e=>a.get(e)).filter(e=>e!==void 0);return{n:e,bary:n.length?n.reduce((e,t)=>e+t,0)/n.length:t*p,i:t}});s.sort((e,t)=>e.bary-t.bary||e.n.id.localeCompare(t.n.id));let c=s.length;s.forEach((e,t)=>{let n=(t-(c-1)/2)*p;a.set(e.n.id,n),o.push({node:e.n,x:r*f,y:n})})});let s=1/0,c=1/0,l=-1/0,u=-1/0;for(let e of o)s=Math.min(s,e.x-184/2),c=Math.min(c,e.y-76/2),l=Math.max(l,e.x+184/2),u=Math.max(u,e.y+76/2);let d=m-s,h=m-c;for(let e of o)e.x+=d,e.y+=h;let g=l-s+m*2,_=u-c+m*2;return{placed:o,w:g,h:_,bbox:{x:0,y:0,w:g,h:_}}}var g=t(),_=e=>e===`T1`||e===`T2`,v=e=>Number.isInteger(e)?String(e):e.toFixed(1),y=e=>e>=.66?`Strong relative support`:e>=.33?`Moderate relative support`:e>0?`Weak relative support`:`No active support`;function b({dag:e,onClose:t}){let n=(0,a.useMemo)(()=>h(e),[e]),[i,o]=(0,a.useState)(new Map),[s,c]=(0,a.useState)(null),l=(0,a.useMemo)(()=>[...i.entries()].map(([e,t])=>({nodeId:e,pct:t})),[i]),u=(0,a.useMemo)(()=>d(e,l),[e,l]),f=r({clamp:{min:.35,max:1.7},margin:64});(0,a.useMemo)(()=>(f.fitTo(n.bbox),e),[e,n]);let p=(0,a.useMemo)(()=>{let e=new Map;for(let t of n.placed)e.set(t.node.id,{x:t.x,y:t.y});return e},[n]),m=e.nodes.find(t=>t.id===e.outcomeId),b=(e,t)=>o(n=>new Map(n).set(e,t)),S=()=>o(new Map),C=u.fullyGrounded,w=m?.value,T=C&&w!==void 0&&u.outcomeDelta!==null?w+u.outcomeDelta:null,E=C&&u.explainedPct!==null?`${Math.round(u.explainedPct*100)}% explained`:`—`,D=u.relativeOutcome;return(0,g.jsx)(`div`,{className:`wm-scrim`,role:`dialog`,"aria-label":`Why machine`,"aria-modal":`true`,children:(0,g.jsxs)(`div`,{className:`wm-panel`,role:`presentation`,onClick:e=>e.stopPropagation(),children:[(0,g.jsxs)(`header`,{className:`wm-head`,children:[(0,g.jsxs)(`div`,{className:`wm-title`,children:[(0,g.jsx)(`span`,{className:`wm-kicker`,children:`THE WHY MACHINE`}),(0,g.jsx)(`h2`,{children:e.center})]}),(0,g.jsxs)(`div`,{className:`wm-head-actions`,children:[(0,g.jsx)(`button`,{type:`button`,className:`wm-btn`,onClick:S,disabled:i.size===0,children:`Reset`}),t&&(0,g.jsx)(`button`,{type:`button`,className:`wm-btn wm-btn-close`,onClick:t,"aria-label":`Close`,children:`✕`})]})]}),e.provenance.illustrative&&(0,g.jsx)(`div`,{className:`wm-banner wm-banner-illustrative`,children:`Illustrative model — shows the shape, not your numbers.`}),!e.provenance.illustrative&&!C&&(0,g.jsx)(`div`,{className:`wm-banner wm-banner-qual`,children:`Structure only — no grounded figures, so causes are shown as relative strength, not exact contributions. Attach data or turn on search for weighted deltas.`}),(0,g.jsxs)(`div`,{className:`wm-body`,children:[(0,g.jsx)(`div`,{className:`wm-viewport`,ref:f.viewportRef,children:(0,g.jsxs)(`div`,{className:`wm-world`,style:{transform:f.transform,width:n.w,height:n.h},children:[(0,g.jsx)(`svg`,{className:`wm-edges`,width:n.w,height:n.h,"aria-hidden":`true`,children:e.edges.map((e,t)=>{let n=p.get(e.from),r=p.get(e.to);if(!n||!r)return null;let i=n.x+184/2,a=r.x-184/2,o=(i+a)/2,s=_(e.tier)&&typeof e.weight==`number`?2.5+e.weight*12:2.25,l=_(e.tier)&&typeof e.weight==`number`?.5+e.weight*.45:.6,u=e.sign===-1?`var(--warning)`:`var(--insight)`;return(0,g.jsx)(`path`,{d:`M ${i} ${n.y} C ${o} ${n.y} ${o} ${r.y} ${a} ${r.y}`,fill:`none`,stroke:u,strokeWidth:s,strokeOpacity:l,strokeDasharray:e.provisional?`4 5`:void 0,className:`wm-edge`,onClick:()=>c({kind:`edge`,edge:e})},e.id??`${e.from}-${e.to}-${t}`)})}),n.placed.map(({node:e,x:t,y:n})=>{let r=u.byNode.get(e.id),a=i.get(e.id)??1,o={left:t-184/2,top:n-76/2,width:184},s=e.role===`root`&&a===0;return(0,g.jsxs)(`div`,{className:`wm-node wm-role-${e.role} ${_(e.tier)?`wm-real`:`wm-t0`} ${s?`wm-pruned`:``}`,style:o,onClick:()=>c({kind:`node`,node:e}),role:`button`,tabIndex:0,onKeyDown:t=>t.key===`Enter`&&c({kind:`node`,node:e}),children:[(0,g.jsx)(`div`,{className:`wm-node-label`,children:e.label}),(0,g.jsxs)(`div`,{className:`wm-node-foot`,children:[(0,g.jsx)(`span`,{className:`wm-tier wm-tier-${e.tier}`,children:e.tier===`T1`?`your data`:e.tier===`T2`?e.receipt?.host||`web`:e.tier===`T3`?`illustrative`:`unverified`}),e.role===`outcome`&&T!==null&&(0,g.jsxs)(`span`,{className:`wm-node-val`,children:[w!==void 0&&T!==w?`${v(w)}→${v(T)}`:v(T),e.unit??``]}),e.role!==`outcome`&&e.value!==void 0&&(0,g.jsxs)(`span`,{className:`wm-node-val`,children:[v(e.value),e.unit??``]})]}),e.role===`root`&&(0,g.jsxs)(`div`,{className:`wm-lever`,role:`button`,tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),e.stopPropagation())},children:[(0,g.jsx)(`button`,{type:`button`,className:`wm-prune ${s?`wm-prune-on`:``}`,onClick:()=>b(e.id,+!!s),title:s?`Restore this cause`:`Remove this cause`,children:s?`restore`:`remove`}),(0,g.jsx)(`input`,{type:`range`,min:0,max:100,value:Math.round(a*100),onChange:t=>b(e.id,Number(t.target.value)/100),"aria-label":`${e.label} strength`})]}),e.role!==`outcome`&&(C&&typeof r==`number`?(0,g.jsxs)(`div`,{className:`wm-contrib`,title:`share of the outcome this carries`,children:[Math.round(Math.abs(r)*100),`%`]}):(0,g.jsxs)(`div`,{className:`wm-contrib wm-contrib-rel`,title:`relative strength (structure only — not a measured contribution)`,children:[Math.round((u.relativeByNode.get(e.id)??0)*100),`%`]}))]},e.id)})]})}),(0,g.jsxs)(`aside`,{className:`wm-rail`,children:[(0,g.jsxs)(`div`,{className:`wm-conclusion`,children:[(0,g.jsx)(`span`,{className:`wm-rail-kicker`,children:`THE CONCLUSION, LIVE`}),(0,g.jsx)(`div`,{className:`wm-conclusion-val`,children:C&&T!==null?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(`strong`,{children:[v(T),m?.unit??``]}),(0,g.jsx)(`span`,{className:`wm-conclusion-label`,children:m?.label})]}):D===null?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`strong`,{className:`wm-dash`,children:`—`}),(0,g.jsx)(`span`,{className:`wm-conclusion-label`,children:m?.label})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(`strong`,{className:`wm-rel-pct`,children:[Math.round(D*100),(0,g.jsx)(`span`,{className:`wm-rel-pct-unit`,children:`%`})]}),(0,g.jsx)(`span`,{className:`wm-conclusion-label`,children:m?.label})]})}),C?(0,g.jsx)(`div`,{className:`wm-explained`,children:E}):D===null?(0,g.jsx)(`div`,{className:`wm-explained`,children:`—`}):(0,g.jsxs)(`div`,{className:`wm-rel`,children:[(0,g.jsx)(`div`,{className:`wm-rel-track`,"aria-hidden":`true`,children:(0,g.jsx)(`i`,{style:{width:`${Math.round(D*100)}%`}})}),(0,g.jsxs)(`span`,{className:`wm-rel-note`,children:[y(D),` · relative, not measured`]})]}),C&&(0,g.jsx)(`p`,{className:`wm-caveat`,children:`Isolated estimate — assumes the causes are independent.`})]}),(0,g.jsxs)(`div`,{className:`wm-evidence`,children:[(0,g.jsx)(`span`,{className:`wm-rail-kicker`,children:`EVIDENCE`}),!s&&(0,g.jsx)(`p`,{className:`wm-hint`,children:`Tap a cause or a link to see its receipt.`}),s?.kind===`node`&&(0,g.jsx)(x,{tier:s.node.tier,label:s.node.label,receipt:s.node.receipt}),s?.kind===`edge`&&(0,g.jsx)(x,{tier:s.edge.tier,label:s.edge.verb?`“${s.edge.verb}”`:`this link`,receipt:s.edge.receipt})]})]})]})]})})}function x(e){let t=(0,o.c)(20),{tier:n,label:r,receipt:a}=e;if(!_(n)||!a){let e;t[0]===r?e=t[1]:(e=(0,g.jsx)(`p`,{className:`wm-ev-label`,children:r}),t[0]=r,t[1]=e);let i=n===`T3`?`Illustrative — shows the shape, not a measured fact.`:`Mavéa's reading — no source, unverified.`,a;t[2]===i?a=t[3]:(a=(0,g.jsx)(`p`,{className:`wm-ev-unverified`,children:i}),t[2]=i,t[3]=a);let o;return t[4]!==e||t[5]!==a?(o=(0,g.jsxs)(`div`,{className:`wm-ev`,children:[e,a]}),t[4]=e,t[5]=a,t[6]=o):o=t[6],o}let s;t[7]===a.url?s=t[8]:(s=a.url?i(a.url):null,t[7]=a.url,t[8]=s);let c=s,l;t[9]===r?l=t[10]:(l=(0,g.jsx)(`p`,{className:`wm-ev-label`,children:r}),t[9]=r,t[10]=l);let u;t[11]===a.quote?u=t[12]:(u=(0,g.jsxs)(`blockquote`,{className:`wm-ev-quote`,children:[`“`,a.quote,`”`]}),t[11]=a.quote,t[12]=u);let d;t[13]!==a.host||t[14]!==c?(d=a.host&&(0,g.jsx)(`p`,{className:`wm-ev-src`,children:c?(0,g.jsx)(`a`,{href:c,target:`_blank`,rel:`noreferrer noopener`,children:a.host}):a.host}),t[13]=a.host,t[14]=c,t[15]=d):d=t[15];let f;return t[16]!==l||t[17]!==u||t[18]!==d?(f=(0,g.jsxs)(`div`,{className:`wm-ev`,children:[l,u,d]}),t[16]=l,t[17]=u,t[18]=d,t[19]=f):f=t[19],f}export{b as WhyMachineOverlay};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-DaSxXjOY.js";import{ht as t,ut as n}from"./index-Dbr1j8Fe.js";import{t as r}from"./Orb-B0NEVfqL.js";var i=t(),a=e();function o(e){let t=(0,i.c)(17),{reverse:n,eyebrow:r,eyebrowTone:o,title:s,body:c,visual:l}=e,u=`fl-panel`+(n?` reverse`:``),d=`fl-panel-eyebrow tone-`+o,f;t[0]!==r||t[1]!==d?(f=(0,a.jsx)(`div`,{className:d,children:r}),t[0]=r,t[1]=d,t[2]=f):f=t[2];let p;t[3]===s?p=t[4]:(p=(0,a.jsx)(`h3`,{className:`fl-panel-title`,children:s}),t[3]=s,t[4]=p);let m;t[5]===c?m=t[6]:(m=(0,a.jsx)(`p`,{className:`fl-panel-body`,children:c}),t[5]=c,t[6]=m);let h;t[7]!==f||t[8]!==p||t[9]!==m?(h=(0,a.jsxs)(`div`,{className:`fl-panel-copy`,children:[f,p,m]}),t[7]=f,t[8]=p,t[9]=m,t[10]=h):h=t[10];let g;t[11]===l?g=t[12]:(g=(0,a.jsx)(`div`,{className:`fl-panel-visual`,children:l}),t[11]=l,t[12]=g);let _;return t[13]!==u||t[14]!==h||t[15]!==g?(_=(0,a.jsxs)(`div`,{className:u,children:[h,g]}),t[13]=u,t[14]=h,t[15]=g,t[16]=_):_=t[16],_}var s=[`46%`,`52%`,`50%`,`58%`,`74%`,`100%`],c=[[24,72],[98,98],[173,116],[247,98],[322,66],[396,36]],l=[`Q1`,`Q2`,`Q3`,`Q4`,`Q5`,`Q6`];function u(){let e=(0,i.c)(12),t,n,r,o,s,u,m,h,g;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let i=c.map(p).join(` `);u=`fl-card fl-pen`,m=(0,a.jsxs)(`div`,{className:`fl-pen-head`,children:[(0,a.jsx)(`span`,{className:`fl-ink-label`,children:`Revenue · the road back`}),(0,a.jsxs)(`span`,{className:`fl-pen-value`,children:[`$4.2M`,(0,a.jsx)(`i`,{className:`fl-pen-delta`,children:`▲ recovering`})]})]}),t=`fl-pen-plot`,n=`0 0 420 184`,r=`true`,o=(0,a.jsx)(`defs`,{children:(0,a.jsxs)(`linearGradient`,{id:`fl-pen-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`0`,className:`fl-pen-fill-top`}),(0,a.jsx)(`stop`,{offset:`1`,className:`fl-pen-fill-bot`})]})}),s=(0,a.jsxs)(`g`,{className:`fl-pen-grid`,children:[(0,a.jsx)(`line`,{x1:`24`,y1:`48`,x2:`396`,y2:`48`}),(0,a.jsx)(`line`,{x1:`24`,y1:`84`,x2:`396`,y2:`84`}),(0,a.jsx)(`line`,{x1:`24`,y1:`120`,x2:`396`,y2:`120`}),(0,a.jsx)(`line`,{x1:`24`,y1:`150`,x2:`396`,y2:`150`,className:`base`})]}),h=(0,a.jsx)(`path`,{className:`fl-pen-area`,d:`M${i.replace(/ /g,` L`)} L396,150 L24,150 Z`}),g=(0,a.jsx)(`polyline`,{className:`fl-pen-line`,points:i}),e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=u,e[6]=m,e[7]=h,e[8]=g}else t=e[0],n=e[1],r=e[2],o=e[3],s=e[4],u=e[5],m=e[6],h=e[7],g=e[8];let _;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,a.jsx)(`g`,{className:`fl-pen-dots`,children:c.map(f)}),e[9]=_):_=e[9];let v;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,a.jsxs)(`svg`,{className:t,viewBox:n,"aria-hidden":r,children:[o,s,h,g,_,(0,a.jsx)(`g`,{className:`fl-pen-axis`,children:l.map(d)}),(0,a.jsx)(`path`,{className:`fl-pen-trend`,pathLength:1,d:`M166,126 C232,122 300,86 384,44 M384,44 l-13,1 m13,-1 l-3,12`}),(0,a.jsx)(`path`,{className:`fl-pen-star`,pathLength:1,d:`M396,18 L399,26 L407,26 L401,32 L403,40 L396,35 L389,40 L391,32 L385,26 L393,26 Z`})]}),e[10]=v):v=e[10];let y;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsxs)(`div`,{className:u,children:[m,v,(0,a.jsxs)(`div`,{className:`fl-pen-options`,children:[(0,a.jsxs)(`span`,{className:`fl-pen-chip`,children:[`Cut marketing`,(0,a.jsx)(`svg`,{viewBox:`0 0 120 26`,preserveAspectRatio:`none`,"aria-hidden":`true`,className:`fl-pen-strike`,children:(0,a.jsx)(`path`,{pathLength:1,d:`M5,15 C34,10 74,18 115,10`})})]}),(0,a.jsx)(`span`,{className:`fl-pen-chip kept`,children:`Raise prices ✓`})]})]}),e[11]=y):y=e[11],y}function d(e,t){return(0,a.jsx)(`text`,{x:c[t][0],y:`172`,children:e},e)}function f(e,t){let[n,r]=e;return(0,a.jsx)(`circle`,{cx:n,cy:r,r:`3.2`},t)}function p(e){let[t,n]=e;return`${t},${n}`}var m=[{id:`bars`,d:`M6,26 V14 M14,26 V6 M22,26 V18`,label:`chart`},{id:`line`,d:`M4,24 L11,14 L18,18 L26,6`,label:`trend`},{id:`donut`,d:`M14,4 A10,10 0 1 1 4,14`,label:`share`},{id:`pin`,d:`M14,4 a8,8 0 0 1 8,8 c0,6 -8,14 -8,14 s-8,-8 -8,-14 a8,8 0 0 1 8,-8`,label:`map`},{id:`steps`,d:`M4,24 H12 V16 H20 V8 H26`,label:`timeline`},{id:`net`,d:`M6,22 L14,8 L24,20 M6,22 L24,20`,label:`network`},{id:`gauge`,d:`M4,22 A11,11 0 0 1 26,22 M15,22 L21,12`,label:`gauge`},{id:`rows`,d:`M5,8 H25 M5,15 H25 M5,22 H17`,label:`table`}];function h(){return(0,a.jsx)(`div`,{className:`fl-card fl-instruments`,children:m.map((e,t)=>(0,a.jsxs)(`span`,{className:`fl-instrument`,style:{"--in-i":String(t)},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 30 30`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:e.d})}),e.label]},e.id))})}function g(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Revenue · last 6 quarters`}),e[0]=t):t=e[0];let n,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsx)(`div`,{className:`fl-ink-bars`,children:s.map(_)}),r=(0,a.jsx)(`span`,{className:`fl-hl-sweep`}),e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-ink`,children:[t,(0,a.jsxs)(`div`,{className:`fl-ink-plot`,children:[n,r,(0,a.jsxs)(`span`,{className:`fl-hl-chip`,children:[(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M3 21l3.2-.9L18 8.3l-2.3-2.3L4 17.6 3 21z M14.7 7l2.3 2.3`})}),`Ask about this`]})]})]}),e[3]=o):o=e[3],o}function _(e,t){return(0,a.jsx)(`div`,{className:`fl-ink-barcol`,children:(0,a.jsx)(`div`,{className:`fl-ink-bar`+(e===`100%`?` peak`:``),style:{height:e}})},t)}function v(){return(0,a.jsxs)(`div`,{className:`fl-card fl-ghostwrap`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost-said`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsxs)(`span`,{className:`fl-ghost-words`,children:[`“…and how does that compare to last year, and`,(0,a.jsx)(`span`,{className:`fl-caret`}),`”`]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost-cards`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsxs)(`div`,{className:`fl-ghost-bars`,children:[(0,a.jsx)(`i`,{style:{height:`50%`}}),(0,a.jsx)(`i`,{style:{height:`80%`}}),(0,a.jsx)(`i`,{style:{height:`65%`}})]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost delay`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsx)(`svg`,{viewBox:`0 0 120 50`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`0,42 24,30 48,34 72,18 96,22 120,8`})})]})]})]})}var y=[{label:`Runway: 14mo`,meta:`4×`,x:92,y:52,tone:`blue`},{label:`Hiring freeze`,meta:`a worry`,x:86,y:200,tone:`amber`},{label:`Ship velocity`,meta:`slowing`,x:300,y:204,tone:`amber`},{label:`Churn signal`,meta:`watch`,x:300,y:50,tone:`pink`},{label:`Pricing`,meta:`your idea`,x:206,y:226,tone:`green`}],b=[[0,3],[3,2],[1,4],[4,2],[0,1]];function x(){let e=(0,i.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`svg`,{className:`fl-mindmap-links`,viewBox:`0 0 420 264`,"aria-hidden":`true`,children:b.map(C)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`div`,{className:`fl-card fl-mindmap`,children:[t,(0,a.jsx)(`div`,{className:`fl-mindmap-hub`,children:(0,a.jsx)(r,{size:46})}),y.map(S)]}),e[1]=n):n=e[1],n}function S(e){return(0,a.jsxs)(`div`,{className:`fl-node tone-`+e.tone,style:{left:`${e.x/420*100}%`,top:`${e.y/264*100}%`},children:[(0,a.jsx)(`div`,{className:`fl-node-label`,children:e.label}),(0,a.jsx)(`div`,{className:`fl-node-meta`,children:e.meta})]},e.label)}function C(e,t){let[n,r]=e,i=y[n],o=y[r],s=(i.x+o.x)/2,c=(i.y+o.y)/2-20;return(0,a.jsx)(`path`,{d:`M${i.x},${i.y} Q${s},${c} ${o.x},${o.y}`},t)}var w=[{icon:`⌨`,label:`Type it`},{icon:`🎙`,label:`Say it`},{icon:`▦`,label:`Drag a card`}];function T(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`span`,{className:`fl-blank-num good`,children:`$2.1M`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`span`,{className:`fl-blank-hole`,children:[`your burn / mo`,(0,a.jsx)(`span`,{className:`fl-caret`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsxs)(`div`,{className:`fl-blank-sentence`,children:[`With `,t,` in the bank and a burn of`,` `,n,`, your runway is `,(0,a.jsx)(`span`,{className:`fl-blank-pending`,children:`— months`}),`.`]}),e[2]=r):r=e[2];let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-blank`,children:[r,(0,a.jsx)(`div`,{className:`fl-blank-options`,"aria-hidden":`true`,children:w.map(E)})]}),e[3]=o):o=e[3],o}function E(e){return(0,a.jsxs)(`span`,{className:`fl-blank-btn`,children:[(0,a.jsx)(`span`,{className:`fl-blank-icon`,children:e.icon}),e.label]},e.label)}var D=[`“ARR climbed to $15.1M — up 21%.”`,`“The trend held steady all quarter.”`,`“North America still leads, at 54%.”`];function O(){return(0,a.jsxs)(`div`,{className:`fl-card fl-walk`,children:[(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Q3 revenue · read to you`}),(0,a.jsxs)(`div`,{className:`fl-walk-stage`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-presenter`,children:[(0,a.jsx)(r,{size:44,className:`fl-walk-orb`}),(0,a.jsxs)(`div`,{className:`fl-walk-say`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:8},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsx)(`span`,{className:`fl-walk-caps`,children:D.map((e,t)=>(0,a.jsx)(`span`,{className:`fl-walk-line l${t+1}`,children:e},e))})]})]}),(0,a.jsxs)(`div`,{className:`fl-walk-items`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`ARR`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`$15.1M`}),(0,a.jsx)(`span`,{className:`fl-walk-up`,children:`▲ 21%`})]}),(0,a.jsx)(`div`,{className:`fl-walk-item`,children:(0,a.jsx)(`svg`,{className:`fl-walk-spark`,viewBox:`0 0 120 26`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`2,20 22,17 42,19 62,11 82,13 100,6 118,3`})})}),(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`N. America`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`54%`})]}),(0,a.jsx)(`span`,{className:`fl-walk-spot`,"aria-hidden":`true`})]})]})]})}function k(){let e=(0,i.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsxs)(n,{eyebrow:`Things a chat window can’t do`,children:[`It’s a `,(0,a.jsx)(`em`,{children:`friend at the whiteboard.`})]}),e[0]=t):t=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsx)(o,{eyebrow:`Highlight is the interface`,eyebrowTone:`presence`,title:`Highlight the answer to ask.`,body:`Drag across a bar, a row, a figure — the highlight grabs exactly what’s under it, and your next question is grounded on that piece, not the whole answer.`,visual:(0,a.jsx)(g,{})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,a.jsx)(o,{reverse:!0,eyebrow:`And the pen is in its hand`,eyebrowTone:`amber`,title:`It draws on its own answers.`,body:`A trend arrow along the recovery, a star on the number that matters, a strike through the option it rules out — the whiteboard marks a good teacher leaves.`,visual:(0,a.jsx)(u,{})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,a.jsx)(o,{eyebrow:`It answers while you talk`,eyebrowTone:`blue`,title:`The answer forms mid-sentence.`,body:`Dashed “ghost” cards sketch the answer taking shape behind your words — and reshape live as your question turns. You see it thinking with you, not after you.`,visual:(0,a.jsx)(v,{})}),e[3]=c):c=e[3];let l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,a.jsx)(o,{reverse:!0,eyebrow:`Watch it map your thinking`,eyebrowTone:`green`,title:`Ramble. Get a map of your mind.`,body:`Themes emerge from what you actually said — never fixed buckets — with the tensions between them drawn in. A minute of talking becomes a structure you can see.`,visual:(0,a.jsx)(x,{})}),e[4]=l):l=e[4];let d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(o,{eyebrow:`The Blank Space`,eyebrowTone:`pink`,title:`It won’t guess. It leaves a space.`,body:`When an answer needs a number only you have, Mavéa leaves a glowing hole to fill — type it, say it, or drag a card in. Uncertainty, made honest and interactive.`,visual:(0,a.jsx)(T,{})}),e[5]=d):d=e[5];let f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,a.jsx)(o,{reverse:!0,eyebrow:`One canvas, many instruments`,eyebrowTone:`presence`,title:`The answer picks its shape.`,body:`Charts, maps, timelines, networks, tables — hundreds of visual instruments on one canvas, and each answer reaches for the ones that fit.`,visual:(0,a.jsx)(h,{})}),e[6]=f):f=e[6];let p;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsxs)(`div`,{className:`fl-panels`,children:[r,s,c,l,d,f,(0,a.jsx)(o,{eyebrow:`It reads the answer to you`,eyebrowTone:`presence`,title:`It points, and talks you through.`,body:`Mavéa doesn’t drop a wall of cards and leave. It spotlights each part and speaks to it — walking you through the answer a piece at a time, the way a friend at the whiteboard would.`,visual:(0,a.jsx)(O,{})})]})]}),e[7]=p):p=e[7],p}export{k as WowFeatures};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{ht as n}from"./index-Dbr1j8Fe.js";import{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./useFocusTrap-DbfG6zbM.js";import{t as a}from"./portal-zyqZwnb1.js";import{t as o}from"./useZoomGesture-BsPXvLw2.js";var s=e(),c=n(),l=t();function u(e){let t=(0,c.c)(52),{model:n,level:u,onLevel:d,onJump:f,onClose:p}=e,m=(0,s.useRef)(null);i(m);let h;t[0]!==u||t[1]!==p||t[2]!==d?(h=e=>{e===`out`?d(`breath`):u===`breath`?d(`chapters`):p()},t[0]=u,t[1]=p,t[2]=d,t[3]=h):h=t[3],o(m,h);let g,_;t[4]!==u||t[5]!==p||t[6]!==d?(g=()=>{let e=e=>{e.key===`Escape`?(e.preventDefault(),p()):e.key===`ArrowRight`?(e.preventDefault(),u===`chapters`&&d(`breath`)):e.key===`ArrowLeft`&&(e.preventDefault(),u===`breath`?d(`chapters`):p())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},_=[u,p,d],t[4]=u,t[5]=p,t[6]=d,t[7]=g,t[8]=_):(g=t[7],_=t[8]),(0,s.useEffect)(g,_);let v;t[9]===p?v=t[10]:(v=e=>{e.target===e.currentTarget&&p()},t[9]=p,t[10]=v);let y=v,b;t[11]===y?b=t[12]:(b=e=>{e.key!==`Enter`&&e.key!==` `||(e.key===` `&&e.preventDefault(),y(e))},t[11]=y,t[12]=b);let x=`zoom-deck level-`+u,S;t[13]===p?S=t[14]:(S=(0,l.jsx)(`button`,{type:`button`,className:`zoom-level`,onClick:p,children:`Canvas`}),t[13]=p,t[14]=S);let C=`zoom-level`+(u===`chapters`?` active`:``),w=u===`chapters`,T;t[15]===d?T=t[16]:(T=()=>d(`chapters`),t[15]=d,t[16]=T);let E;t[17]!==T||t[18]!==C||t[19]!==w?(E=(0,l.jsx)(`button`,{type:`button`,className:C,"aria-pressed":w,onClick:T,children:`Chapters`}),t[17]=T,t[18]=C,t[19]=w,t[20]=E):E=t[20];let D=`zoom-level`+(u===`breath`?` active`:``),O=u===`breath`,k;t[21]===d?k=t[22]:(k=()=>d(`breath`),t[21]=d,t[22]=k);let A;t[23]!==D||t[24]!==O||t[25]!==k?(A=(0,l.jsx)(`button`,{type:`button`,className:D,"aria-pressed":O,onClick:k,children:`One breath`}),t[23]=D,t[24]=O,t[25]=k,t[26]=A):A=t[26];let j;t[27]!==E||t[28]!==A||t[29]!==S?(j=(0,l.jsxs)(`div`,{className:`zoom-levelbar`,role:`group`,"aria-label":`Zoom level`,children:[S,E,A]}),t[27]=E,t[28]=A,t[29]=S,t[30]=j):j=t[30];let M;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,l.jsx)(r.x,{}),t[31]=M):M=t[31];let N;t[32]===p?N=t[33]:(N=(0,l.jsx)(`button`,{type:`button`,className:`zoom-close`,onClick:p,"aria-label":`Close zoom`,title:`Close`,children:M}),t[32]=p,t[33]=N);let P;t[34]!==j||t[35]!==N?(P=(0,l.jsxs)(`header`,{className:`zoom-toolbar`,children:[j,N]}),t[34]=j,t[35]=N,t[36]=P):P=t[36];let F;t[37]!==u||t[38]!==n.heading||t[39]!==n.meta||t[40]!==n.rows||t[41]!==f||t[42]!==d?(F=u===`breath`?(0,l.jsxs)(`div`,{className:`zoom-breath`,children:[(0,l.jsxs)(`p`,{className:`zoom-breath-line`,children:[n.heading.replace(/, so far\.$/,``),`: `,n.rows.map((e,t)=>(0,l.jsxs)(`button`,{type:`button`,className:`zoom-breath-topic`,onClick:()=>d(`chapters`),children:[e.title,t<n.rows.length-1?` · `:``]},e.frameIndex))]}),(0,l.jsxs)(`p`,{className:`zoom-meta`,children:[n.meta,` · one breath`]})]}):(0,l.jsxs)(`div`,{className:`zoom-chapters`,children:[(0,l.jsxs)(`header`,{className:`zoom-head`,children:[(0,l.jsx)(`span`,{className:`zoom-title`,children:n.heading}),(0,l.jsx)(`span`,{className:`zoom-meta`,children:n.meta})]}),(0,l.jsx)(`ul`,{className:`zoom-rows`,children:n.rows.map(e=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(`button`,{type:`button`,className:`zoom-row`,onClick:()=>f(e.frameIndex),children:[(0,l.jsxs)(`span`,{className:`zoom-row-title`,children:[e.title,(0,l.jsx)(`span`,{className:`zoom-row-clock`,children:e.clock})]}),(0,l.jsx)(`span`,{className:`zoom-row-line`,children:e.line}),e.corrected&&(0,l.jsx)(`span`,{className:`zoom-row-corrected`,children:e.corrected})]})},e.frameIndex))})]}),t[37]=u,t[38]=n.heading,t[39]=n.meta,t[40]=n.rows,t[41]=f,t[42]=d,t[43]=F):F=t[43];let I;t[44]!==P||t[45]!==F||t[46]!==x?(I=(0,l.jsxs)(`div`,{ref:m,className:x,role:`dialog`,"aria-modal":`true`,"aria-label":`Conversation zoomed out`,tabIndex:-1,children:[P,F]}),t[44]=P,t[45]=F,t[46]=x,t[47]=I):I=t[47];let L;return t[48]!==y||t[49]!==I||t[50]!==b?(L=(0,l.jsx)(a,{children:(0,l.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close`,onClick:y,onKeyDown:b,children:I})}),t[48]=y,t[49]=I,t[50]=b,t[51]=L):L=t[51],L}export{u as ZoomDeck};
@@ -1 +0,0 @@
1
- import{t as e}from"./chunk-BVpWp9h4.js";var t=e(((e,t)=>{t.exports={}}));export{t};