@mavea/mavea 1.0.13 → 1.0.15

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 (163) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +4 -3
  3. package/dist/.vite/manifest.json +605 -623
  4. package/dist/assets/{AppCommandPalette-D_g8-7C0.js → AppCommandPalette-Dzl_DbDd.js} +1 -1
  5. package/dist/assets/{BlockEmpty-Ddhgr5pu.js → BlockEmpty-B5Q0hgDJ.js} +1 -1
  6. package/dist/assets/{BriefingPlayer-D-QhLgXI.js → BriefingPlayer-Dy7JCGm-.js} +1 -1
  7. package/dist/assets/{CanvasSkeleton-BIiOmCMG.js → CanvasSkeleton-CJwPWnFG.js} +2 -2
  8. package/dist/assets/{CheckLogRail-ZrDqyjQ7.js → CheckLogRail-DNtXlkcR.js} +1 -1
  9. package/dist/assets/{CodeOutput-D7sVg1Nr.js → CodeOutput-Bg64AyKu.js} +1 -1
  10. package/dist/assets/{CommandPalette-DNa2q8E_.js → CommandPalette-mO1FEvlx.js} +1 -1
  11. package/dist/assets/{CourseLessonReader-BIpGjcJk.js → CourseLessonReader-CKfvBMtL.js} +2 -2
  12. package/dist/assets/{CourseRail-CQaotzN0.js → CourseRail-CRcB319H.js} +1 -1
  13. package/dist/assets/{CoursesApp-q3kZJmu1.js → CoursesApp-BbCGxAav.js} +2 -2
  14. package/dist/assets/{CrossExamPanel-BIJslibV.js → CrossExamPanel-Deywo95y.js} +1 -1
  15. package/dist/assets/{DashPresent-DGSE0vYM.js → DashPresent-BEm1tGse.js} +1 -1
  16. package/dist/assets/{DashboardDetail-BpaLNg8R.js → DashboardDetail-tK6FpgtH.js} +2 -2
  17. package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +1 -0
  18. package/dist/assets/{DashboardOverview-8x3OxX2i.js → DashboardOverview-DrdqBgds.js} +1 -1
  19. package/dist/assets/{DashboardSettings-f_zxcs5j.js → DashboardSettings-CBhzLW0P.js} +1 -1
  20. package/dist/assets/DashboardsApp-Dc43FBIi.js +2 -0
  21. package/dist/assets/{DeepZoomApp-E7bDmzuL.js → DeepZoomApp-Chz6laKc.js} +1 -1
  22. package/dist/assets/{DelegatePanel-_9RZiLHM.css → DelegatePanel-Cf85-0qE.css} +1 -1
  23. package/dist/assets/DelegatePanel-DmtTY_lE.js +33 -0
  24. package/dist/assets/{DemoGallery-DDzX8Z7I.js → DemoGallery-zw3d7ap9.js} +1 -1
  25. package/dist/assets/{DropSelect-BMZYAX6q.js → DropSelect-Bo2Oyi-2.js} +1 -1
  26. package/dist/assets/{ExportModal-CTMJaU1l.js → ExportModal-DICXavg9.js} +2 -2
  27. package/dist/assets/{ExtractionPreview-C9wq7CrK.js → ExtractionPreview-C636AVw-.js} +1 -1
  28. package/dist/assets/{FlagshipCTA-DPNSflKv.js → FlagshipCTA-B-7nH43r.js} +1 -1
  29. package/dist/assets/{FlagshipCommandPalette-55zqyPFm.js → FlagshipCommandPalette-DgTL_Kjj.js} +1 -1
  30. package/dist/assets/{FlagshipShowcase-BWpoPWOn.js → FlagshipShowcase-CbAC2s4X.js} +1 -1
  31. package/dist/assets/{FlashcardsApp-apCj3I17.js → FlashcardsApp-CatYcaJJ.js} +1 -1
  32. package/dist/assets/{ForecastPanel-CMRD-UKn.js → ForecastPanel-BOG361kr.js} +1 -1
  33. package/dist/assets/{GalleryApp-CcsbirLT.js → GalleryApp-uW6b1Y0d.js} +1 -1
  34. package/dist/assets/{HonestByDesign-DU4qmc61.js → HonestByDesign-hCxc0A7b.js} +1 -1
  35. package/dist/assets/{HowItWorks-CkZXftN-.js → HowItWorks-BlbQcUxx.js} +1 -1
  36. package/dist/assets/{LegalApp-BmZpqH-6.js → LegalApp-sCZjJYWx.js} +1 -1
  37. package/dist/assets/{LegalMarkdownDocument-CcbAfubz.js → LegalMarkdownDocument-Bk3U7ChN.js} +1 -1
  38. package/dist/assets/{LegalPageShell-raMATqhx.js → LegalPageShell-BsgRV7aL.js} +1 -1
  39. package/dist/assets/{LeverPanel-DVUgGcYW.js → LeverPanel-CP32QcIf.js} +1 -1
  40. package/dist/assets/{Library-D725dNcx.js → Library-CJTnp1pC.js} +1 -1
  41. package/dist/assets/{LibraryOverlay-D7PzQIpH.js → LibraryOverlay-geQRGAzG.js} +1 -1
  42. package/dist/assets/LiveApp-C0BN0o3_.js +61 -0
  43. package/dist/assets/LiveApp-Dj_6EQuL.css +1 -0
  44. package/dist/assets/LiveSettings-CzSXXMoo.js +6 -0
  45. package/dist/assets/{MindMapViewerDrawer-CIMuABKE.js → MindMapViewerDrawer-7HLErRQF.js} +1 -1
  46. package/dist/assets/{MindShape-0KPrv0CF.js → MindShape-Bhu4yoIj.js} +1 -1
  47. package/dist/assets/MindShape-DjHtMW_5.css +1 -0
  48. package/dist/assets/{PinToDashboard-ML4NFCAU.js → PinToDashboard-Cj8S9XKC.js} +1 -1
  49. package/dist/assets/{PlanReview-CbJ_7Ld1.js → PlanReview-3NxZD9wt.js} +1 -1
  50. package/dist/assets/{Presence-B_zDfiE7.js → Presence-DDxb6yE5.js} +1 -1
  51. package/dist/assets/{PresentationDeck-Tm3PUdh5.js → PresentationDeck-B6AHRYEA.js} +1 -1
  52. package/dist/assets/{PrismApp-Bc-6PO_P.js → PrismApp-BlPpWxao.js} +2 -2
  53. package/dist/assets/{PrismAskController-OwqFx5Pk.js → PrismAskController-DUvOTeW9.js} +1 -1
  54. package/dist/assets/{PrismBriefingPlayer-Bu_ZxYdh.js → PrismBriefingPlayer-Bmo9tOGX.js} +2 -2
  55. package/dist/assets/{PrismOverlay-UTsJ8R5d.js → PrismOverlay-9Q_14eEO.js} +4 -4
  56. package/dist/assets/{PrivacyApp-BLXan6dm.js → PrivacyApp-CatB3OpJ.js} +1 -1
  57. package/dist/assets/{Recap-5rYrcMCC.js → Recap-DkKrrqi5.js} +1 -1
  58. package/dist/assets/{ReelJelly-Dg3XGB0c.js → ReelJelly-DCD4bG10.js} +1 -1
  59. package/dist/assets/{ReplayCard-wMIMlorH.js → ReplayCard-Bz69tOST.js} +2 -2
  60. package/dist/assets/{ReplayOverlay-BomkTonB.js → ReplayOverlay-DbJX08Kr.js} +1 -1
  61. package/dist/assets/{RewindOverlay-Izf89nG9.js → RewindOverlay-Bop4a63b.js} +1 -1
  62. package/dist/assets/{RippleApp-8QSIEjTX.js → RippleApp-u3hCfb5b.js} +2 -2
  63. package/dist/assets/{RippleAskController-Cd86GrKs.js → RippleAskController-CK4iSwT0.js} +1 -1
  64. package/dist/assets/{RippleOverlay-SCrXZTqz.js → RippleOverlay-BM_B9JEc.js} +2 -2
  65. package/dist/assets/{SeeDontRead-Bp8qsF20.js → SeeDontRead-CGGKmvBV.js} +1 -1
  66. package/dist/assets/{ShareModal-C-sD-aia.js → ShareModal-D4En6Y3L.js} +1 -1
  67. package/dist/assets/{ShipCascade-Cq_I4c_v.js → ShipCascade-k_GWrcau.js} +1 -1
  68. package/dist/assets/{ShipCourse-CzsJyMnT.js → ShipCourse-BQOY4MyI.js} +1 -1
  69. package/dist/assets/{ShipHotspots-OMjPhQWP.js → ShipHotspots-vLRK0w_b.js} +1 -1
  70. package/dist/assets/{ShipIncident-Cqn6ZmKz.js → ShipIncident-BWxerYtX.js} +1 -1
  71. package/dist/assets/{ShipMigration-5_ZWn7K9.js → ShipMigration-OgAGEbjm.js} +1 -1
  72. package/dist/assets/{ShipOnboarding-Yr8oKgmQ.js → ShipOnboarding-B_2IEq3N.js} +1 -1
  73. package/dist/assets/{ShipRead-Bnw7mnv3.js → ShipRead--gGqg2SE.js} +1 -1
  74. package/dist/assets/{ShipRollout-ECsDrqAd.js → ShipRollout-B_U2P8Yw.js} +1 -1
  75. package/dist/assets/{ShipSuggestions-C6oDw2F8.js → ShipSuggestions-D9coTmgw.js} +1 -1
  76. package/dist/assets/{ShipWorkspace-BT6gZrqd.js → ShipWorkspace-BmdcHZXa.js} +1 -1
  77. package/dist/assets/{SignatureLoop-D7sibSnc.js → SignatureLoop-KA6Cf93g.js} +1 -1
  78. package/dist/assets/{SynthesisApp-B768x2r_.js → SynthesisApp-BCBhCJhx.js} +2 -2
  79. package/dist/assets/{SynthesisOverlay-Ds0MhZLQ.js → SynthesisOverlay-BuGIeaKq.js} +1 -1
  80. package/dist/assets/{TermsApp-Da8FeMj3.js → TermsApp-CleIlDtR.js} +1 -1
  81. package/dist/assets/{TopicCanvas-D64O3lvD.js → TopicCanvas-BRu3xVL8.js} +2 -2
  82. package/dist/assets/{TopicCanvas-D2Nax9II.css → TopicCanvas-uRuHi99s.css} +1 -1
  83. package/dist/assets/{TourPrism-CTf1G-Vv.js → TourPrism-zbVLe2ag.js} +1 -1
  84. package/dist/assets/{TrackerTile-DeujTCk-.js → TrackerTile-D9Wa3CSq.js} +2 -2
  85. package/dist/assets/{TwoSurfaces-kyK2yqm0.js → TwoSurfaces-TyWXgAdq.js} +1 -1
  86. package/dist/assets/{UnderstoodPanel-Dgwk_Cuj.js → UnderstoodPanel-BS9OhgLJ.js} +1 -1
  87. package/dist/assets/{WhyMachineOverlay-C4eQC0lg.js → WhyMachineOverlay-B-KJhCjr.js} +1 -1
  88. package/dist/assets/{WowFeatures-CaBZ5WPM.js → WowFeatures-Bv1-PmXF.js} +1 -1
  89. package/dist/assets/{ZoomDeck-DnCtbhx1.js → ZoomDeck-C2Q6xbgX.js} +1 -1
  90. package/dist/assets/{alternateFinishes-FSV_gA1A.js → alternateFinishes-BG6svkXG.js} +1 -1
  91. package/dist/assets/{annotationAuto-x_dV8z65.js → annotationAuto-BpBsjbDQ.js} +1 -1
  92. package/dist/assets/{annotationReel-SeXzv0P-.js → annotationReel-yzysA-Gr.js} +1 -1
  93. package/dist/assets/{backup-0zODkqi-.js → backup-BdeBr3wq.js} +1 -1
  94. package/dist/assets/canvas-Ep2Kfupo.js +1 -0
  95. package/dist/assets/{catalog-Car_1ocN.js → catalog-DF7YTNju.js} +1 -1
  96. package/dist/assets/{dashboardEvents-BqcPN-K8.js → dashboardEvents-C_XvGVLJ.js} +1 -1
  97. package/dist/assets/{dist-BTg4yEWr.js → dist-CBEt6Q8V.js} +1 -1
  98. package/dist/assets/{fit-I3tuibfX.js → fit-B1LJWvMO.js} +1 -1
  99. package/dist/assets/{generateLive-Dk24OxVt.js → generateLive-ChhSWKbq.js} +1 -1
  100. package/dist/assets/gesture-Bouqjr3g.js +2 -0
  101. package/dist/assets/{index-CWqRe4-B.js → index-C7H7A1rW.js} +3 -3
  102. package/dist/assets/{jspdf.es.min-wkD3BzGZ.js → jspdf.es.min-DutJi91O.js} +1 -1
  103. package/dist/assets/{kokoro-B-3GqktX.js → kokoro-kGWf7M0e.js} +1 -1
  104. package/dist/assets/{lib-CwruVYU_.js → lib-C7zXL8h0.js} +1 -1
  105. package/dist/assets/{liveSchema-CCpVMy0H.js → liveSchema-DCL21WdS.js} +2 -2
  106. package/dist/assets/{motion-CURfDtdH.js → motion-dfA87zbb.js} +1 -1
  107. package/dist/assets/{notes-BG5QP-Dj.js → notes-DblI4Ko_.js} +1 -1
  108. package/dist/assets/{pdf-x4qTBJIZ.js → pdf-DFYCstCC.js} +1 -1
  109. package/dist/assets/{penStrokes-9Q_l7NTt.js → penStrokes-DlHnO9xE.js} +1 -1
  110. package/dist/assets/{perfProbe-BFwfpxJt.js → perfProbe-CCSPF3EA.js} +1 -1
  111. package/dist/assets/{pin-DRN5H7py.js → pin-D5_Ebl_s.js} +1 -1
  112. package/dist/assets/{portal-BYHo9LOD.js → portal-BndazODr.js} +1 -1
  113. package/dist/assets/{pptxgen.es-DGywGiaX.js → pptxgen.es-CwCkoJdp.js} +1 -1
  114. package/dist/assets/{prewarm-CQNCE4Uq.js → prewarm--KODwuMi.js} +1 -1
  115. package/dist/assets/{quietHours-CKjQ2pGY.js → quietHours-DVPplPtM.js} +1 -1
  116. package/dist/assets/{registry-CfTTYQrE.js → registry-0E1uKPCI.js} +1 -1
  117. package/dist/assets/{registry-Bpx4VBWb.js → registry-B3V5-8v0.js} +1 -1
  118. package/dist/assets/{registry-_T6pLDPG.js → registry-B51MhOLx.js} +2 -2
  119. package/dist/assets/{registry-DrqQbf_n.js → registry-BH6FfyZk.js} +1 -1
  120. package/dist/assets/{registry-CqfjqOX5.js → registry-Ba9xMFO4.js} +2 -2
  121. package/dist/assets/{registry-CNr6L-3z.js → registry-BlB0FYf0.js} +1 -1
  122. package/dist/assets/{registry-DFmFBfRz.js → registry-C30HGS2G.js} +1 -1
  123. package/dist/assets/{registry-1BWL6SXY.js → registry-CIa1EU-G.js} +1 -1
  124. package/dist/assets/{registry-DEgW3zel.js → registry-COxprhRN.js} +1 -1
  125. package/dist/assets/{registry-Dw42uggW.js → registry-CWkBxxsI.js} +1 -1
  126. package/dist/assets/{registry-9S6KiKjR.js → registry-D-qEhm1d.js} +1 -1
  127. package/dist/assets/registry-D5oMqeSa.js +1 -0
  128. package/dist/assets/{registry-BZQeYzgv.js → registry-D7rspCZr.js} +1 -1
  129. package/dist/assets/{registry-Bl3NkU-0.js → registry-DNzF-nvu.js} +1 -1
  130. package/dist/assets/{registry-aUZZeh27.js → registry-DQIm_hbI.js} +1 -1
  131. package/dist/assets/{registry-cPmSqaRu.js → registry-Dphh5ADP.js} +1 -1
  132. package/dist/assets/{registry-GLjcQX0n.js → registry-DrNMbrA_.js} +1 -1
  133. package/dist/assets/{registry-DBsjgIxw.js → registry-Dvv84L9K.js} +1 -1
  134. package/dist/assets/{registry-D84Bs-bD.js → registry-M3VgAiQv.js} +1 -1
  135. package/dist/assets/{registry-BueBIP-N.js → registry-Pr5IKqro.js} +1 -1
  136. package/dist/assets/{registry-BpBiRe-o.js → registry-WJE8Z0T1.js} +1 -1
  137. package/dist/assets/registry-hsSlT6pi.js +1 -0
  138. package/dist/assets/{registry-Bc6_RQ8l.js → registry-nG70-amx.js} +1 -1
  139. package/dist/assets/{registry-BklPTZre.js → registry-wJhGGVuP.js} +1 -1
  140. package/dist/assets/{relate-yq30L3hZ.js → relate-DxAi8xpo.js} +1 -1
  141. package/dist/assets/{shikiHighlight-BgZoQAHs.js → shikiHighlight-B_TEagaE.js} +1 -1
  142. package/dist/assets/{useDashboardLoop-mGmJwv27.js → useDashboardLoop-DzbRz-V9.js} +3 -3
  143. package/dist/assets/{useLiveConfig-vMyjo2gV.js → useLiveConfig-Lm0cYTcu.js} +1 -1
  144. package/dist/assets/{useSpatialCanvas-CEXy6ZC2.js → useSpatialCanvas-D_C8VoCy.js} +1 -1
  145. package/dist/assets/{useSpotlightWalk-B9XJ6OLK.js → useSpotlightWalk-CCQT0-_g.js} +1 -1
  146. package/dist/assets/{useSrsCards-Vc6B2_he.js → useSrsCards-BKCPBPYw.js} +1 -1
  147. package/dist/assets/{useStudy-6QnY-Fw_.js → useStudy-Diy4ITBm.js} +1 -1
  148. package/dist/assets/{useZoomGesture-BONUz5cE.js → useZoomGesture-B82XnSfi.js} +1 -1
  149. package/dist/index.html +1 -1
  150. package/package.json +1 -1
  151. package/dist/assets/DashboardLoopRuntime-14yzj-xx.js +0 -1
  152. package/dist/assets/DashboardsApp-mvMbGmp0.js +0 -2
  153. package/dist/assets/DelegatePanel-pwRk9pFf.js +0 -26
  154. package/dist/assets/LiveApp-B8Jw1Q0h.js +0 -61
  155. package/dist/assets/LiveApp-DQhDk2ma.css +0 -1
  156. package/dist/assets/LiveSettings-BQ06gZB7.js +0 -6
  157. package/dist/assets/MindShape-Bel2yDqO.css +0 -1
  158. package/dist/assets/RehearsalPanel-BCU615wg.css +0 -1
  159. package/dist/assets/RehearsalPanel-CM4466Os.js +0 -6
  160. package/dist/assets/canvas-uhcwigAL.js +0 -1
  161. package/dist/assets/gesture-DabMpPcq.js +0 -2
  162. package/dist/assets/registry-BffpZK5w.js +0 -1
  163. package/dist/assets/registry-Z3TIPbYJ.js +0 -1
@@ -0,0 +1 @@
1
+ var e=[`Your world`,`This session`,`While listening`,`Setup`],t=[{id:`atlas`,label:`Atlas`,blurb:`Kept conversations and topics, as a place you can wander`,group:`Your world`,surface:`live`,tourChapter:`atlas`,keywords:[`map`,`history`,`everything`,`concepts`]},{id:`memory`,label:`What Mavéa remembers`,blurb:`See, edit, or forget the facts stored about you on this device`,group:`Your world`,surface:`live`,tourChapter:`memory`,keywords:[`memory`,`remember`,`forget`,`facts`,`about me`,`personal`,`privacy`]},{id:`library`,label:`Past conversations`,blurb:`Reopen a canvas you built before`,group:`Your world`,surface:`live`,tourChapter:`library`,keywords:[`library`,`past`,`history`,`saved`,`resume`,`previous`,`conversations`]},{id:`deepzoom`,label:`Deep Zoom`,blurb:`Telescope any topic from the big picture down to the finest detail`,group:`Your world`,surface:`both`,tourChapter:`deepzoom`,keywords:[`zoom`,`telescope`,`powers of ten`,`scale`,`detail`,`deeper`,`magnify`]},{id:`pdf-world`,label:`Prism`,blurb:`Split a PDF, Office doc, or data file (CSV, text, JSON) into a map of its grounded claims — or compare several`,group:`Your world`,surface:`live`,tourChapter:`prism`,keywords:`prism.pdf.explode.split.document.word.docx.powerpoint.pptx.slides.excel.xlsx.spreadsheet.sheets.google docs.csv.tsv.text.txt.markdown.json.data.code.paper.claims.contradictions.compare.comparison.world`.split(`.`)},{id:`synthesis`,label:`Synthesis`,blurb:`Fuse a pile of documents into one map — agreements, contradictions, gaps`,group:`Your world`,surface:`live`,tourChapter:`synthesis`,keywords:[`synthesis`,`synthesize`,`fuse`,`merge`,`combine`,`many documents`,`multiple documents`,`literature review`,`cross-reference`,`corpus`]},{id:`ripple`,label:`Ripple`,blurb:`Model a code change’s blast radius — likely impact, risks, and a proposed ship order`,group:`Your world`,surface:`both`,tourChapter:`ripple`,keywords:[`ripple`,`pr`,`pull request`,`review`,`diff`,`code review`,`blast radius`,`impact`,`ship`,`merge`,`rollout`,`cascade`,`breaking change`,`migration`,`onboarding`,`codebase`,`repo`]},{id:`delegate`,label:`Rehearse`,blurb:`Practice a hard conversation — take the seat yourself, or send your Mavéa to scout it`,group:`Your world`,surface:`live`,tourChapter:`delegate`,keywords:[`negotiate`,`negotiation`,`deal`,`raise`,`salary`,`haggle`,`bargain`,`offer`,`counteroffer`,`prep`,`scout`,`boundaries`,`delegate`,`table`,`rehearse`,`practice`,`role play`,`interview`,`prepare`]},{id:`review`,label:`Study`,blurb:`Go through your flashcards — on a schedule if you want one`,group:`Your world`,surface:`live`,tourChapter:`review`,keywords:[`srs`,`flashcards`,`study`,`remember`,`spaced`,`due`,`flip`,`pile`,`anki`]},{id:`flashcards`,label:`Manage flashcards`,blurb:`See, organise, and edit your study deck (decks, tags, study)`,group:`Your world`,surface:`live`,tourChapter:`manage-flashcards`,keywords:[`flashcards`,`cards`,`deck`,`tag`,`manage`,`anki`,`study`]},{id:`courses`,label:`Courses`,blurb:`Turn a topic into a structured syllabus — a lesson at a time, at your pace`,group:`Your world`,surface:`live`,tourChapter:`course`,keywords:[`course`,`courses`,`lesson`,`syllabus`,`learn`,`teach`,`curriculum`,`class`]},{id:`dashboards`,label:`Living dashboards`,blurb:`Open dashboards that refresh on schedule while Mavéa is running`,group:`Your world`,surface:`both`,tourChapter:`dashboards`,keywords:[`dashboard`,`dashboards`,`track`,`metrics`,`watch`]},{id:`recap`,label:`Recap`,blurb:`What we've covered so far this session`,group:`This session`,surface:`live`,tourChapter:`recap`,keywords:[`summary`,`so far`,`covered`]},{id:`zoom-deck`,label:`Chapter view`,blurb:`Pull back from the cards to the shape of the whole session`,group:`This session`,surface:`live`,tourChapter:`zoom-deck`,keywords:[`zoom`,`chapters`,`pinch`,`altitude`,`overview`,`pull back`,`whole night`]},{id:`present`,label:`Present`,blurb:`Fill the room — the chrome falls away, the mic stays live`,group:`This session`,surface:`live`,tourChapter:`present`,keywords:[`presentation`,`full screen`,`room`,`talk`]},{id:`track`,label:`Track this`,blurb:`Turn this conversation into a dashboard that refreshes while Mavéa is running`,group:`This session`,surface:`live`,tourChapter:`track`,keywords:[`dashboard`,`watch`,`monitor`,`keep`]},{id:`share`,label:`Share`,blurb:`Turn this conversation into a polished presentation or document`,group:`This session`,surface:`live`,tourChapter:`share`,keywords:[`share`,`presentation`,`slides`,`document`,`export`,`publish`]},{id:`export`,label:`Export`,blurb:`Print this or save it as a PDF`,group:`This session`,surface:`live`,tourChapter:`export`,keywords:[`pdf`,`print`,`save`,`download`]},{id:`board`,label:`Board view`,blurb:`Spread this answer's cards on a spatial board you can wander`,group:`This session`,surface:`live`,tourChapter:`canvas`,keywords:[`board`,`spatial`,`canvas`,`spread`,`arrange`,`wander`,`map`]},{id:`focus`,label:`Focus mode`,blurb:`One card at a time, with a filmstrip of the rest`,group:`This session`,surface:`live`,tourChapter:`focus`,keywords:[`focus`,`one card`,`filmstrip`,`zoom`]},{id:`ink`,label:`Highlight to ask`,blurb:`Mark any part of an answer to ask Mavéa about it`,group:`This session`,surface:`live`,tourChapter:`highlight`,keywords:[`ink`,`draw`,`highlight`,`annotate`,`mark`,`ask`]},{id:`blanks`,label:`The Blank Space`,blurb:`An answer can leave a glowing hole for a value only you know — type it, say it, or drop a card in`,group:`This session`,surface:`live`,tourChapter:`blanks`,keywords:[`blank`,`blanks`,`fill`,`fill in`,`fill in my numbers`,`your numbers`,`hole`,`slot`,`placeholder`]},{id:`watch-me-think`,label:`Watch me think`,blurb:`Talk for a minute — Mavéa draws a live map of your thinking`,group:`While listening`,surface:`live`,tourChapter:`think`,keywords:[`mind map`,`mindshape`,`think`,`ramble`,`map`,`thinking`]},{id:`just-listen`,label:`Just listen`,blurb:`Bank recognized speech without answering — sort it later`,group:`While listening`,surface:`live`,tourChapter:`just-listen`,keywords:[`listen`,`bank`,`think out loud`,`notes`]},{id:`whisper`,label:`Whisper mode`,blurb:`Ultra-quiet voice for when you can't make a sound — opens its Quiet-hours setting`,group:`While listening`,surface:`live`,tourChapter:`whisper`,keywords:[`quiet`,`whisper`,`night`,`silent`]},{id:`ghost`,label:`Ghost answers`,blurb:`Mavéa quietly drafts what it would say — starts Just listen, where the drafts appear`,group:`While listening`,surface:`live`,tourChapter:`ghost`,keywords:[`ghost`,`draft`,`preview`,`alternative`]},{id:`settings`,label:`Model settings`,blurb:`Connect a provider and tune how Mavéa answers`,group:`Setup`,surface:`live`,tourChapter:`settings`,keywords:[`settings`,`model`,`provider`,`api key`,`config`]},{id:`morning-brief`,label:`Morning brief`,blurb:`Open the day with what's changed — off by default; opens the switch that turns it on`,group:`Setup`,surface:`live`,tourChapter:`morning-brief`,keywords:[`brief`,`briefing`,`morning`,`daily`,`catch up`,`start of day`]},{id:`how`,label:`How Mavéa works`,blurb:`A quick tour of the basics`,group:`Setup`,surface:`both`,keywords:[`help`,`tour`,`how`,`guide`,`onboarding`]}];function n(e){return[e.label,e.blurb,e.group,...e.keywords??[]].join(` `).toLowerCase()}export{e as n,n as r,t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-CwruVYU_.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-C7H7A1rW.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-C7zXL8h0.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./BlockEmpty-Ddhgr5pu.js";import"./lib-CwruVYU_.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{r as c}from"./sourceHost-BV3t2XDb.js";var l=n(),u={"two-tailed":`two-tailed`,greater:`one-tailed · greater`,less:`one-tailed · less`};function d({title:e=`Hypothesis Test`,icon:t=`proof`,iconColor:n=`var(--presence)`,h0:r,h1:o,direction:s,alpha:c,variables:d,rejected:f,footer:p,delay:m}){let h=i[t]||i.proof,g=typeof f==`boolean`,_=d?.iv,v=d?.dv,y=typeof c==`number`&&Number.isFinite(c),b=s?u[s]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(_||v||y)&&(0,l.jsxs)(`div`,{className:`hyp-meta`,children:[_&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`IV · `,_]}),v&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`DV · `,v]}),y&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip hyp-alpha tab-num`,children:[`α = `,c]})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h0 m-fade-rise m-stagger-item`+(g?f?` rejected`:` retained`:``),style:{"--i":0},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsx)(`span`,{className:`hyp-stmt-tag`,children:`H₀ · Null hypothesis`}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}),f?`Rejected`:`Retained`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:r})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h1 m-fade-rise m-stagger-item`+(g?f?` supported`:` unsupported`:``),style:{"--i":1},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsxs)(`span`,{className:`hyp-stmt-tag`,children:[`H₁ · Alternative hypothesis`,b&&(0,l.jsx)(`span`,{className:`hyp-direction`,children:b})]}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}),f?`Supported`:`Not supported`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:o})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var f=r();function p({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,page:o,blocks:s,note:c,footer:u,delay:d}){let f=i[t]||i.doc,p=s.some(e=>e.spot);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`+(p?` has-spot`:``),children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),o&&(0,l.jsxs)(`span`,{className:`doc-view-page`,children:[`p. `,o.n,` / `,o.of]})]}),(0,l.jsxs)(`div`,{className:`doc-view-page-surface`,children:[s.map((e,t)=>(0,l.jsx)(m,{b:e,spotlit:p&&!!e.spot,dimmed:p&&!e.spot},t)),p&&c&&(0,l.jsxs)(`div`,{className:`doc-view-note`,children:[(0,l.jsx)(`span`,{className:`doc-view-note-pin`}),(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(c)})]})]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function m(e){let t=(0,f.c)(8),{b:n,spotlit:r,dimmed:i}=e,o=`doc-view-${n.kind}`+(r?` spotlit`:``)+(i?` dimmed`:``),s;t[0]===n.text?s=t[1]:(s=a(n.text),t[0]=n.text,t[1]=s);let c;t[2]===r?c=t[3]:(c=r?{"data-mark":`underline`}:{},t[2]=r,t[3]=c);let u;return t[4]!==o||t[5]!==s||t[6]!==c?(u=(0,l.jsx)(`div`,{className:o,dangerouslySetInnerHTML:s,...c}),t[4]=o,t[5]=s,t[6]=c,t[7]=u):u=t[7],u}var h=t();function g(e){if(!e||typeof window>`u`)return null;try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||t.protocol!==`http:`&&t.protocol!==`https:`||!t.pathname.toLowerCase().endsWith(`.pdf`)&&t.pathname!==`/pdf`?null:`${t.pathname}${t.search}${t.hash}`}catch{return null}}function _({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,file:o,embedSrc:s,pages:u=[],footer:d,delay:f}){let p=i[t]||i.doc,[m,_]=(0,h.useState)(1),y=(0,h.useRef)(null),b=(0,h.useRef)([]),x=g(s)??g(o),S=x?null:c(o??``);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`,children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),(0,l.jsx)(`span`,{className:`doc-view-page`,children:o?`PDF`:`p. ${m} / ${u.length}`})]}),x?(0,l.jsx)(`iframe`,{className:`pr-embed`,src:x,title:r||e,sandbox:``,referrerPolicy:`no-referrer`}):o?(0,l.jsx)(`div`,{className:`pr-file-fallback`,children:S?(0,l.jsx)(`a`,{href:S,target:`_blank`,rel:`noopener noreferrer`,children:`Open the PDF in a new tab ↗`}):(0,l.jsx)(`span`,{children:`This PDF link could not be verified.`})}):(0,l.jsx)(`div`,{className:`pr-scroll`,ref:y,onScroll:()=>{let e=y.current;if(!e)return;let t=e.scrollTop+48,n=1;for(let e=0;e<b.current.length;e++){let r=b.current[e];r&&r.offsetTop<=t&&(n=e+1)}n!==m&&_(n)},children:u.map((e,t)=>(0,l.jsxs)(`div`,{className:`pr-sheet`,ref:e=>{b.current[t]=e},children:[(0,l.jsx)(`span`,{className:`pr-sheet-no`,children:t+1}),e.blocks.map((e,t)=>(0,l.jsx)(v,{b:e},t))]},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function v(e){let t=(0,f.c)(5),{b:n}=e,r=`doc-view-${n.kind}`,i;t[0]===n.text?i=t[1]:(i=a(n.text),t[0]=n.text,t[1]=i);let o;return t[2]!==r||t[3]!==i?(o=(0,l.jsx)(`div`,{className:r,dangerouslySetInnerHTML:i}),t[2]=r,t[3]=i,t[4]=o):o=t[4],o}function y({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,paragraphs:o,highlights:s,footer:c,delay:u}){let d=i[t]||i.doc,[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>o.map((e,t)=>{let n=[];s.forEach((t,r)=>{let i=e.indexOf(t.phrase);i>=0&&n.push({s:i,e:i+t.phrase.length,h:r})}),n.sort((e,t)=>e.s-t.s);let r=[],i=0;return n.forEach((n,a)=>{n.s<i||(n.s>i&&r.push({key:`t${t}-${a}`,text:e.slice(i,n.s)}),r.push({key:`h${t}-${a}`,text:e.slice(n.s,n.e),h:n.h}),i=n.e)}),i<e.length&&r.push({key:`t${t}-end`,text:e.slice(i)}),r}),[o,s]),g=s[f];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ad-body`,children:[(0,l.jsxs)(`div`,{className:`ad-doc`,children:[r&&(0,l.jsx)(`div`,{className:`ad-docname mono faint`,children:r}),m.map((e,t)=>(0,l.jsx)(`p`,{className:`ad-para`,children:e.map(e=>{if(e.h===void 0)return(0,l.jsx)(`span`,{children:e.text},e.key);let t=e.h,n=f===t;return(0,l.jsxs)(`span`,{className:`ad-mark ${n?`on`:``}`,style:{"--hl":s[t].color||`var(--presence)`},role:`button`,tabIndex:0,"aria-label":`Show note ${t+1}`,onMouseEnter:()=>p(t),onClick:()=>p(t),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(t))},"data-mark":n?`underline`:void 0,children:[e.text,(0,l.jsx)(`sup`,{className:`ad-mark-num tab-num`,children:t+1})]},e.key)})},t))]}),(0,l.jsxs)(`div`,{className:`ad-margin`,children:[g&&(0,l.jsxs)(`div`,{className:`ad-note`,style:{"--hl":g.color||`var(--presence)`},children:[(0,l.jsxs)(`div`,{className:`ad-note-head`,children:[(0,l.jsx)(`span`,{className:`ad-note-num tab-num`,children:f+1}),g.author&&(0,l.jsx)(`span`,{className:`ad-note-author`,children:g.author})]}),(0,l.jsx)(`div`,{className:`ad-note-body`,dangerouslySetInnerHTML:a(g.note)})]},f),(0,l.jsx)(`div`,{className:`ad-dots`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ad-dot ${f===t?`on`:``}`,style:{"--hl":e.color||`var(--presence)`},onClick:()=>p(t),"aria-label":`Note ${t+1}`},t))})]})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function b({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,docName:r,tokens:o,footer:s,delay:c}){let u=i[t]||i.edit,[d,f]=(0,h.useState)(`review`),p=o.filter(e=>e.ins!=null).length,m=o.filter(e=>e.del!=null).length,g=p+m;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rl-head`,children:[r&&(0,l.jsx)(`span`,{className:`rl-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`rl-count tab-num`,children:[(0,l.jsx)(`span`,{className:`rl-pip ins`}),p,` `,(0,l.jsx)(`span`,{className:`rl-pip del`}),m]})]}),(0,l.jsx)(`div`,{className:`rl-tabs`,children:[{id:`review`,label:`Tracked`,icon:`eye`},{id:`final`,label:`Final`,icon:`check`},{id:`original`,label:`Original`,icon:`undo`}].map(e=>{let t=i[e.icon];return(0,l.jsxs)(`button`,{className:`rl-tab ${d===e.id?`on`:``}`,onClick:()=>f(e.id),children:[(0,l.jsx)(t,{className:`ic`}),` `,e.label]},e.id)})}),(0,l.jsx)(`div`,{className:`rl-doc mode-${d}`,children:o.map((e,t)=>e.text==null?e.ins==null?e.del==null||d===`final`?null:(0,l.jsx)(`span`,{className:`rl-del`,title:e.by?`deleted by ${e.by}`:`deletion`,children:e.del},t):d===`original`?null:(0,l.jsx)(`span`,{className:`rl-ins`,title:e.by?`inserted by ${e.by}`:`insertion`,children:e.ins},t):(0,l.jsx)(`span`,{className:`rl-keep`,children:e.text},t))}),(0,l.jsxs)(`div`,{className:`rl-foot`,children:[d===`review`&&(0,l.jsxs)(`span`,{className:`rl-hint faint`,children:[g,` tracked change`,g===1?``:`s`,` — switch views to accept or reject`]}),d===`final`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--insight)`},children:`Accepted — showing final copy`}),d===`original`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--text-muted)`},children:`Rejected — showing original copy`})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var x={strong:{c:`var(--insight)`,t:`strong`},partial:{c:`var(--warning)`,t:`partial`},weak:{c:`var(--danger)`,t:`weak`}};function S({node:e,path:t,depth:n}){let r=!!(e.children&&e.children.length),[o,s]=(0,h.useState)(n<2),c=e.color||(n===0?`var(--presence)`:`var(--insight)`),u=e.strength?x[e.strength]:null;return(0,l.jsxs)(`div`,{className:`cc-node`,style:{"--rail":c},children:[(0,l.jsxs)(`button`,{className:`cc-row ${o?`open`:``} ${r?`has-kids`:`leaf`}`,onClick:()=>r&&s(e=>!e),children:[(0,l.jsx)(`span`,{className:`cc-bullet`,style:{background:c},...n===0?{"data-mark":`circle`}:{}}),r&&(0,l.jsx)(i.chevR,{className:`cc-chev ${o?`open`:``}`}),(0,l.jsx)(`span`,{className:`cc-label`,dangerouslySetInnerHTML:a(e.label)}),e.cite&&(0,l.jsxs)(`span`,{className:`cc-cite mono`,children:[(0,l.jsx)(i.link,{className:`cc-cite-ic`}),e.cite]}),u&&(0,l.jsx)(`span`,{className:`cc-strength`,style:{color:u.c,"--sc":u.c},children:u.t})]}),r&&(0,l.jsx)(`div`,{className:`cc-kids`,"data-open":o,children:o&&e.children.map((e,r)=>(0,l.jsx)(S,{node:e,path:`${t}-${r}`,depth:n+1},`${t}-${r}`))})]})}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,root:r,footer:o,delay:s}){let c=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cc-tree`,children:(0,l.jsx)(S,{node:r,path:`r`,depth:0})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var C={true:{c:`var(--insight)`,label:`Verified`,icon:`check`},partly:{c:`var(--warning)`,label:`Partly true`,icon:`alert`},false:{c:`var(--danger)`,label:`False`,icon:`x`},unverified:{c:`var(--text-muted)`,label:`Unverified`,icon:`eyeOff`}};function te({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,claims:r,footer:o,delay:s}){let c=i[t]||i.proof,[u,d]=(0,h.useState)(0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`fc-list`,children:r.map((e,t)=>{let n=C[e.verdict],r=i[n.icon],o=u===t;return(0,l.jsxs)(`div`,{className:`fc-item ${o?`on`:``}`,style:{"--vc":n.c},children:[(0,l.jsxs)(`button`,{className:`fc-head`,onClick:()=>d(o?null:t),children:[(0,l.jsx)(`span`,{className:`fc-verdict`,style:{color:n.c},children:(0,l.jsx)(r,{className:`fc-verdict-ic`})}),(0,l.jsx)(`span`,{className:`fc-claim`,dangerouslySetInnerHTML:a(e.claim)}),(0,l.jsxs)(`span`,{className:`fc-conf tab-num`,style:{color:n.c},children:[Math.round(e.confidence),`%`]}),(0,l.jsx)(i.chevR,{className:`fc-chev ${o?`open`:``}`})]}),(0,l.jsx)(`div`,{className:`fc-bar`,children:(0,l.jsx)(`span`,{className:`fc-bar-fill`,style:{width:e.confidence+`%`,background:n.c}})}),(0,l.jsx)(`div`,{className:`fc-detail`,"data-open":o,children:o&&(0,l.jsxs)(`div`,{className:`fc-detail-in`,children:[(0,l.jsx)(`span`,{className:`fc-tag`,style:{color:n.c,"--vc":n.c},children:n.label}),e.detail&&(0,l.jsx)(`div`,{className:`fc-expl`,dangerouslySetInnerHTML:a(e.detail)}),e.sources&&e.sources.length>0&&(0,l.jsx)(`div`,{className:`fc-sources`,children:e.sources.map((e,t)=>(0,l.jsxs)(`span`,{className:`fc-source mono`,children:[(0,l.jsx)(i.globe,{className:`fc-source-ic`}),` `,e]},t))})]})})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var w={strong:`var(--insight)`,partial:`var(--warning)`,weak:`var(--danger)`,none:`var(--text-muted)`},T={strong:1,partial:.6,weak:.3,none:0};function E({title:e,icon:t=`shield`,iconColor:n=`var(--insight)`,claim:r,overall:o,segments:s,footer:c,delay:u}){let d=i[t]||i.shield,f=s.reduce((e,t,n)=>{let r=(t.weight||0)*T[t.band||`partial`];return r>e.score?{i:n,score:r}:e},{i:0,score:-1}).i,[p,m]=(0,h.useState)(f),g=s.reduce((e,t)=>e+(t.weight||0),0)||1,_=o??Math.round(s.reduce((e,t)=>e+(t.weight||0)*T[t.band||`partial`],0)/g*100),v=_>=75?`var(--insight)`:_>=45?`var(--warning)`:`var(--danger)`,y=s[p];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cm-claim`,dangerouslySetInnerHTML:a(r)}),(0,l.jsxs)(`div`,{className:`insight-stat`,style:{margin:`8px 0 10px`},children:[(0,l.jsxs)(`span`,{className:`big tab-num`,"data-mark":`underline`,style:{color:v},children:[_,`%`]}),(0,l.jsx)(`span`,{className:`cm-conf-label faint`,children:`overall confidence`})]}),(0,l.jsx)(`div`,{className:`cm-track`,children:s.map((e,t)=>{let n=w[e.band||`partial`],r=(e.weight||0)/g*100;return(0,l.jsx)(`button`,{className:`cm-seg ${p===t?`on`:``}`,style:{width:r+`%`,"--c":n},onMouseEnter:()=>m(t)},t)})}),(0,l.jsx)(`div`,{className:`cm-legend`,children:s.map((e,t)=>{let n=w[e.band||`partial`];return(0,l.jsxs)(`button`,{className:`cm-leg ${p===t?`on`:``}`,onMouseEnter:()=>m(t),children:[(0,l.jsx)(`span`,{className:`cm-leg-dot`,style:{background:n}}),(0,l.jsx)(`span`,{className:`cm-leg-label`,children:e.label})]},t)})}),y&&(0,l.jsxs)(`div`,{className:`cm-basis`,style:{"--c":w[y.band||`partial`]},children:[(0,l.jsxs)(`div`,{className:`cm-basis-head`,children:[(0,l.jsx)(`span`,{className:`cm-basis-name`,children:y.label}),(0,l.jsxs)(`span`,{className:`cm-basis-band tab-num`,children:[Math.round(y.weight/g*100),`% weight`]})]}),y.basis&&(0,l.jsx)(`div`,{className:`cm-basis-body`,dangerouslySetInnerHTML:a(y.basis)})]},p),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function D({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,quote:r,phrase:o,source:s,locator:c,color:u=`var(--presence)`,footer:d,delay:f}){let p=i[t]||i.quote,[m,g]=(0,h.useState)(!0),_=o?r.indexOf(o):-1,v;return v=_>=0?(0,l.jsxs)(l.Fragment,{children:[r.slice(0,_),(0,l.jsx)(`mark`,{className:`hs-mark ${m?`on`:``}`,style:{"--hl":u},children:r.slice(_,_+o.length)}),r.slice(_+o.length)]}):r,(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`figure`,{className:`hs-fig`,style:{"--hl":u},children:[(0,l.jsx)(`span`,{className:`hs-quote-glyph`,children:`“`}),(0,l.jsx)(`blockquote`,{className:`hs-quote`,children:v})]}),(0,l.jsxs)(`div`,{className:`hs-foot`,children:[s&&(0,l.jsxs)(`span`,{className:`hs-chip mono`,children:[(0,l.jsx)(i.globe,{className:`hs-chip-ic`}),` `,s,c&&(0,l.jsxs)(`span`,{className:`hs-loc faint`,children:[` · `,c]})]}),(0,l.jsxs)(`button`,{className:`hs-toggle ${m?`on`:``}`,onClick:()=>g(e=>!e),style:{"--hl":u},children:[m?(0,l.jsx)(i.eye,{className:`hs-toggle-ic`}):(0,l.jsx)(i.eyeOff,{className:`hs-toggle-ic`}),m?`Highlighted`:`Plain`]})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function O({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,caption:r,ratio:o=16/9,callouts:s,footer:c,delay:u}){let d=i[t]||i.image,[f,p]=(0,h.useState)(0),m=s[f],g=m?.color||`var(--presence)`;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ac-surface`,style:{aspectRatio:String(o)},children:[(0,l.jsxs)(`svg`,{className:`ac-bg`,viewBox:`0 0 160 90`,preserveAspectRatio:`none`,"aria-hidden":!0,children:[(0,l.jsx)(`defs`,{children:(0,l.jsxs)(`linearGradient`,{id:`acg`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`0%`,stopColor:`var(--grid-strong)`}),(0,l.jsx)(`stop`,{offset:`100%`,stopColor:`var(--grid-line)`})]})}),(0,l.jsx)(`rect`,{x:`0`,y:`0`,width:`160`,height:`90`,fill:`url(#acg)`}),[18,36,54,72].map(e=>(0,l.jsx)(`line`,{x1:`10`,y1:e,x2:`150`,y2:e,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e)),[40,80,120].map(e=>(0,l.jsx)(`line`,{x1:e,y1:`8`,x2:e,y2:`82`,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e))]}),s.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,l.jsxs)(`button`,{className:`ac-pin ${f===t?`on`:``}`,style:{left:e.x+`%`,top:e.y+`%`,"--pc":n},onMouseEnter:()=>p(t),onClick:()=>p(t),"aria-label":e.label,"data-mark":t===0?`point`:void 0,children:[(0,l.jsx)(`span`,{className:`ac-pin-ring`}),(0,l.jsx)(`span`,{className:`ac-pin-num tab-num`,children:t+1})]},t)})]}),r&&(0,l.jsx)(`div`,{className:`ac-caption faint`,children:r}),m&&(0,l.jsxs)(`div`,{className:`ac-note`,style:{"--pc":g},children:[(0,l.jsx)(`span`,{className:`ac-note-num tab-num`,children:f+1}),(0,l.jsxs)(`div`,{className:`ac-note-text`,children:[(0,l.jsx)(`span`,{className:`ac-note-label`,children:m.label}),(0,l.jsx)(`span`,{className:`ac-note-body`,dangerouslySetInnerHTML:a(m.note)})]})]},f),(0,l.jsx)(`div`,{className:`ac-thumbs`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ac-thumb tab-num ${f===t?`on`:``}`,style:{"--pc":e.color||`var(--presence)`},onClick:()=>p(t),children:t+1},t))}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,sources:r,footer:o,delay:s}){let c=i[t]||i.globe,[u,d]=(0,h.useState)(`relevance`),[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>{let e=r.map((e,t)=>t);return e.sort((e,t)=>u===`relevance`?r[t].relevance-r[e].relevance:r[e].domain.localeCompare(r[t].domain)),e},[r,u]);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`sl-tabs`,children:[(0,l.jsxs)(`button`,{className:`sl-tab ${u===`relevance`?`on`:``}`,onClick:()=>d(`relevance`),children:[(0,l.jsx)(i.chart,{className:`ic`}),` Relevance`]}),(0,l.jsxs)(`button`,{className:`sl-tab ${u===`az`?`on`:``}`,onClick:()=>d(`az`),children:[(0,l.jsx)(i.doc,{className:`ic`}),` A–Z`]}),(0,l.jsxs)(`span`,{className:`sl-total faint tab-num`,children:[r.length,` sources`]})]}),(0,l.jsx)(`div`,{className:`sl-list`,children:m.map((e,t)=>{let n=r[e],o=n.color||`var(--presence)`,s=n.glyph||n.domain.replace(/^www\./,``).charAt(0).toUpperCase(),c=f===e;return(0,l.jsxs)(`div`,{className:`sl-row ${c?`on`:``}`,children:[(0,l.jsxs)(`button`,{className:`sl-head`,onClick:()=>p(c?null:e),children:[(0,l.jsx)(`span`,{className:`sl-rank tab-num`,children:t+1}),(0,l.jsx)(`span`,{className:`sl-fav`,style:{"--fc":o,background:`color-mix(in oklab, ${o} 22%, transparent)`,color:o},children:s}),(0,l.jsxs)(`span`,{className:`sl-main`,children:[(0,l.jsx)(`span`,{className:`sl-title`,children:n.titleText}),(0,l.jsxs)(`span`,{className:`sl-domain mono faint`,children:[n.domain,n.date&&(0,l.jsxs)(`span`,{className:`sl-date`,children:[` · `,n.date]})]})]}),(0,l.jsxs)(`span`,{className:`sl-rel`,children:[(0,l.jsx)(`span`,{className:`sl-rel-track`,children:(0,l.jsx)(`span`,{className:`sl-rel-fill`,style:{width:n.relevance+`%`,background:o}})}),(0,l.jsx)(`span`,{className:`sl-rel-num tab-num`,style:{color:o},children:Math.round(n.relevance)})]}),(0,l.jsx)(i.chevR,{className:`sl-chev ${c?`open`:``}`})]}),(0,l.jsxs)(`div`,{className:`sl-detail`,"data-open":c,children:[c&&n.snippet&&(0,l.jsx)(`div`,{className:`sl-snippet`,dangerouslySetInnerHTML:a(n.snippet)}),c&&(0,l.jsxs)(`span`,{className:`sl-open mono`,children:[(0,l.jsx)(i.external,{className:`sl-open-ic`}),` `,n.domain]})]})]},e)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var k={yes:{c:`var(--insight)`,icon:`check`,t:`Supported`},no:{c:`var(--danger)`,icon:`x`,t:`Contradicted`},partial:{c:`var(--warning)`,icon:`alert`,t:`Partial`},na:{c:`var(--text-muted)`,icon:null,t:`No data`}};function re({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,columns:r,rows:o,footer:s,delay:c}){let u=i[t]||i.table,[d,f]=(0,h.useState)({r:0,c:0}),p=d&&o[d.r]&&o[d.r].cells[d.c]?o[d.r].cells[d.c]:null,m=p?k[p.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cg-scroll`,children:(0,l.jsxs)(`table`,{className:`cg-table`,style:{"--cols":r.length},children:[(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-corner`}),r.map((e,t)=>(0,l.jsx)(`th`,{className:`cg-colh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:o.map((e,t)=>(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-rowh`,scope:`row`,children:e.claim}),r.map((n,r)=>{let a=e.cells[r]?.state??`na`,o=k[a],s=o.icon?i[o.icon]:null;return(0,l.jsx)(`td`,{className:`cg-cell ${a} ${d?.r===t&&d?.c===r?`on`:``}`,style:{"--cc":o.c},onMouseEnter:()=>f({r:t,c:r}),children:(0,l.jsx)(`span`,{className:`cg-mark`,children:s?(0,l.jsx)(s,{className:`cg-mark-ic`}):(0,l.jsx)(`span`,{className:`cg-dash`,children:`–`})})},r)})]},t))})]})}),p&&m&&(0,l.jsxs)(`div`,{className:`cg-tip`,style:{"--cc":m.c},children:[(0,l.jsx)(`span`,{className:`cg-tip-tag`,style:{color:m.c},children:m.t}),p.note?(0,l.jsx)(`span`,{className:`cg-tip-note`,dangerouslySetInnerHTML:a(p.note)}):(0,l.jsxs)(`span`,{className:`cg-tip-note faint`,children:[o[d.r].claim,` × `,r[d.c]]})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function A(e,t,n,r){e.forEach((e,i)=>{let a=`${n}-${i}`,o=!!(e.children&&e.children.length);r.push({node:e,depth:t,path:a,hasKids:o,index:r.length}),o&&A(e.children,t+1,a,r)})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,sections:o,activeIndex:s=0,footer:c,delay:u}){let d=i[t]||i.doc,f=(0,h.useMemo)(()=>{let e=[];return A(o,0,`o`,e),e},[o]),[p,m]=(0,h.useState)(Math.max(0,Math.min(s,f.length-1))),[g,_]=(0,h.useState)({}),v=Math.max(1,...f.map(e=>e.node.weight||0)),y=e=>Object.keys(g).some(t=>g[t]&&e!==t&&e.startsWith(t+`-`)),b=f.length,x=p+1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`do-head`,children:[r&&(0,l.jsx)(`span`,{className:`do-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`do-progress tab-num faint`,children:[(0,l.jsx)(`span`,{style:{color:`var(--presence)`},children:x}),`/`,b]})]}),(0,l.jsx)(`div`,{className:`do-list`,children:f.map(e=>{if(y(e.path))return null;let t=p===e.index,n=t?`var(--presence)`:`var(--text-muted)`,r=!!g[e.path],a=(e.node.weight||0)/v*100;return(0,l.jsxs)(`div`,{className:`do-row ${t?`on`:``}`,style:{"--depth":Math.min(e.depth,6)},children:[(0,l.jsx)(`span`,{className:`do-rail`}),e.hasKids?(0,l.jsx)(`button`,{className:`do-twist`,onClick:t=>{t.stopPropagation(),_(t=>({...t,[e.path]:!t[e.path]}))},"aria-label":r?`expand`:`collapse`,children:(0,l.jsx)(i.chevR,{className:`do-twist-ic ${r?``:`open`}`})}):(0,l.jsx)(`span`,{className:`do-dot`,style:{background:n},...t?{"data-mark":`point`}:{}}),(0,l.jsxs)(`button`,{className:`do-jump`,onClick:()=>m(e.index),children:[(0,l.jsx)(`span`,{className:`do-heading`,children:e.node.heading}),(e.node.weight??0)>0&&(0,l.jsx)(`span`,{className:`do-wbar`,children:(0,l.jsx)(`span`,{className:`do-wfill`,style:{width:a+`%`}})}),e.node.loc&&(0,l.jsx)(`span`,{className:`do-loc mono faint`,children:e.node.loc})]})]},e.path)})}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var ae={add:`+`,del:`−`,ctx:` `};function j({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,leftLabel:r=`before`,rightLabel:o=`after`,lines:s,split:c=!1,footer:u,delay:d}){let f=i[t]||i.doc,p=s.filter(e=>e.kind===`add`).length,m=s.filter(e=>e.kind===`del`).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dc-diff-head`,children:[(0,l.jsxs)(`span`,{className:`dc-diff-files`,children:[r,` `,(0,l.jsx)(i.chevR,{className:`dc-diff-arrow`}),` `,o]}),(0,l.jsxs)(`span`,{className:`dc-diff-stat`,children:[(0,l.jsxs)(`span`,{className:`add`,"data-mark":`underline`,children:[`+`,p]}),` `,(0,l.jsxs)(`span`,{className:`del`,children:[`−`,m]})]})]}),(0,l.jsx)(`div`,{className:`dc-diff`,children:c?(0,l.jsxs)(`div`,{className:`dc-diff-split`,children:[(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`add`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`del`?`del`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))}),(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`del`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`add`?`add`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})]}):(0,l.jsx)(`div`,{className:`dc-diff-body`,role:`table`,children:s.map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+e.kind,role:`row`,children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-sign`,children:ae[e.kind]}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(u)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,columns:r,rows:o,caption:s,footer:c,delay:u}){let d=i[t]||i.layers,f=r.length||1,p=`repeat(${f}, minmax(0, 1fr))`,m=o.filter(e=>e.diverge).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,l.jsx)(`div`,{className:`pt-caption`,children:s}),(0,l.jsx)(`div`,{className:`pt-scroll`,children:(0,l.jsxs)(`div`,{className:`pt-grid`,style:{"--pt-cols":p},children:[(0,l.jsx)(`div`,{className:`pt-headrow`,style:{gridTemplateColumns:p},children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-colh`+(t===0?` source`:``),children:[(0,l.jsx)(`span`,{className:`pt-colh-label`,children:e.label}),e.lang&&(0,l.jsx)(`span`,{className:`pt-colh-lang mono`,children:e.lang})]},t))}),o.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-line`+(e.diverge?` diverge`:``),children:[(0,l.jsx)(`div`,{className:`pt-cells`,style:{gridTemplateColumns:p},children:Array.from({length:f},(t,n)=>(0,l.jsx)(`div`,{className:`pt-cell`+(n===0?` source`:``),children:e.cells[n]??``},n))}),e.note&&(0,l.jsxs)(`div`,{className:`pt-note`,children:[(0,l.jsx)(`span`,{className:`pt-note-rail`,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:`pt-note-text`,children:e.note})]})]},t))]})}),(c||m>0)&&(0,l.jsxs)(`div`,{className:`pt-foot`,children:[m>0&&(0,l.jsxs)(`span`,{className:`pt-foot-tag`,children:[(0,l.jsx)(`span`,{className:`pt-foot-pip`,"aria-hidden":`true`}),m,` divergence`,m===1?``:`s`]}),c&&(0,l.jsx)(`span`,{className:`pt-foot-note`,dangerouslySetInnerHTML:a(c)})]})]})}var N={symptom:`var(--warning)`,diagnosis:`var(--presence)`,treatment:`var(--insight)`,test:`var(--text-secondary)`,result:`var(--text-primary)`,visit:`var(--text-muted)`},P={symptom:`alert`,diagnosis:`proof`,treatment:`sparkle`,test:`chart`,result:`check`,visit:`clock`};function F({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,events:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`ct-events`,children:r.map((e,t)=>{let n=N[e.type],a=i[P[e.type]]||i.clock;return(0,l.jsxs)(`div`,{className:`ct-event`,children:[(0,l.jsxs)(`div`,{className:`ct-rail`,children:[(0,l.jsx)(`div`,{className:`ct-dot`,style:{background:n,borderColor:n}}),t<r.length-1&&(0,l.jsx)(`div`,{className:`ct-line`})]}),(0,l.jsxs)(`div`,{className:`ct-body`,children:[(0,l.jsxs)(`div`,{className:`ct-header`,children:[(0,l.jsxs)(`span`,{className:`ct-type-chip`,style:{color:n,background:`color-mix(in oklab, ${n} 12%, transparent)`},children:[(0,l.jsx)(a,{className:`ic`,style:{width:10,height:10}}),e.type]}),(0,l.jsx)(`span`,{className:`ct-date`,children:e.date})]}),(0,l.jsx)(`div`,{className:`ct-label`,children:e.label}),e.note&&(0,l.jsx)(`div`,{className:`ct-note`,children:e.note})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function I({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,question:r,method:o,sampleSize:s,findings:c,conclusion:u,limitations:d,source:f,year:p,footer:m,delay:h}){let g=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`rs-question`,children:r}),(o||s)&&(0,l.jsxs)(`div`,{className:`rs-meta`,children:[o&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:o}),s&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:s}),p&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:p})]}),(0,l.jsxs)(`div`,{className:`rs-findings`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Key Findings`}),(0,l.jsx)(`ul`,{className:`rs-findings-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{className:`rs-finding`,children:e},t))})]}),(0,l.jsxs)(`div`,{className:`rs-conclusion`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Conclusion`}),(0,l.jsx)(`div`,{className:`rs-conclusion-body`,children:u})]}),d&&(0,l.jsxs)(`div`,{className:`rs-limitations`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Limitations`}),(0,l.jsx)(`div`,{className:`rs-limitations-body`,children:d})]}),f&&(0,l.jsx)(`div`,{className:`rs-source`,children:f}),m&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}var L={pass:{color:`var(--insight)`,label:`Met`,icon:`check`},fail:{color:`var(--danger)`,label:`Not met`,icon:`x`},"needs-info":{color:`var(--warning)`,label:`Needs info`,icon:`alert`}},R={likely:{color:`var(--insight)`,label:`Likely qualify`},"not-yet":{color:`var(--danger)`,label:`Do not qualify yet`},depends:{color:`var(--warning)`,label:`Depends`}};function z({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,requirements:r,overall:o,caveat:s,footer:c,delay:u}){let d=i[t]||i.proof,f=r??[],p=o?R[o]:void 0;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),p&&(0,l.jsxs)(`div`,{className:`ec-overall`,style:{"--eo":p.color},children:[(0,l.jsx)(`span`,{className:`ec-overall-label`,children:`Overall`}),(0,l.jsx)(`span`,{className:`ec-overall-verdict`,children:p.label})]}),(0,l.jsx)(`ul`,{className:`ec-list`,children:f.map((e,t)=>{let n=L[e.status]??L[`needs-info`],r=i[n.icon]||i.alert;return(0,l.jsxs)(`li`,{className:`ec-row`,style:{"--es":n.color},children:[(0,l.jsx)(`span`,{className:`ec-mark`,children:(0,l.jsx)(r,{className:`ec-mark-ic`})}),(0,l.jsxs)(`div`,{className:`ec-body`,children:[(0,l.jsxs)(`div`,{className:`ec-rule-line`,children:[(0,l.jsx)(`span`,{className:`ec-rule`,children:e.rule}),(0,l.jsx)(`span`,{className:`ec-badge`,children:n.label})]}),e.detail&&(0,l.jsx)(`div`,{className:`ec-detail`,children:e.detail}),e.fix&&(0,l.jsxs)(`div`,{className:`ec-fix`,children:[(0,l.jsx)(`span`,{className:`ec-fix-tag`,children:e.status===`fail`?`To qualify`:`Confirm`}),(0,l.jsx)(`span`,{children:e.fix})]})]})]},t)})}),s&&(0,l.jsxs)(`div`,{className:`ec-caveat`,children:[(0,l.jsx)(i.shield,{className:`ec-caveat-ic`}),(0,l.jsx)(`span`,{children:s})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var B=6;function V({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,claim:r,summary:o,items:s,caveat:c,footer:u,delay:d}){let f=i[t]||i.proof,p=s??[],[m,g]=(0,h.useState)(!1),_=p.length>B,v=m?p:p.slice(0,B),y=p.length-v.length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`et-claim`,children:[(0,l.jsx)(`span`,{className:`et-claim-rail`,style:{background:n}}),(0,l.jsxs)(`div`,{className:`et-claim-body`,children:[(0,l.jsx)(`div`,{className:`et-claim-text`,dangerouslySetInnerHTML:a(r)}),o&&(0,l.jsxs)(`span`,{className:`et-summary`,children:[(0,l.jsx)(i.chart,{className:`et-summary-ic`,style:{width:12,height:12}}),` `,o]})]})]}),(0,l.jsxs)(`div`,{className:`et-records-h`,children:[(0,l.jsx)(i.quote,{className:`et-records-h-ic`,style:{width:12,height:12}}),`Underlying records`,(0,l.jsx)(`span`,{className:`et-records-count tab-num`,children:p.length})]}),(0,l.jsx)(`ul`,{className:`et-records`,children:v.map((e,t)=>(0,l.jsxs)(`li`,{className:`et-record`,children:[(0,l.jsx)(`span`,{className:`et-marker`}),(0,l.jsxs)(`div`,{className:`et-record-body`,children:[(0,l.jsx)(`div`,{className:`et-record-text`,children:e.text}),(e.source||e.when)&&(0,l.jsxs)(`div`,{className:`et-record-meta`,children:[e.source&&(0,l.jsxs)(`span`,{className:`et-source mono`,children:[(0,l.jsx)(i.link,{className:`et-source-ic`,style:{width:11,height:11}}),e.source]}),e.when&&(0,l.jsx)(`span`,{className:`et-when`,children:e.when})]})]})]},t))}),_&&(0,l.jsxs)(`button`,{className:`et-more`,onClick:()=>g(e=>!e),children:[m?`Show fewer`:`Show all ${p.length} records`,!m&&(0,l.jsxs)(`span`,{className:`et-more-n tab-num`,children:[`+`,y]})]}),c&&(0,l.jsxs)(`div`,{className:`et-caveat`,children:[(0,l.jsx)(i.alert,{className:`et-caveat-ic`,style:{width:13,height:13}}),(0,l.jsx)(`span`,{children:c})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function H(e){return(Math.round(e*10)/10).toFixed(1)}function U({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,rating:r,count:o,distribution:s,loves:c,complaints:u,dealbreaker:d,footer:f,delay:p}){let m=i[t]||i.quote,h=c??[],g=u??[],_=s&&s.length===5?s:null,v=_?Math.max(..._,1):1,y=_?_.reduce((e,t)=>e+t,0):0,b=r??(_&&y>0?_.reduce((e,t,n)=>e+t*(5-n),0)/y:void 0),x=o??(y>0?y:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(b!==void 0||_)&&(0,l.jsxs)(`div`,{className:`rv-summary`,children:[b!==void 0&&(0,l.jsxs)(`div`,{className:`rv-score`,children:[(0,l.jsx)(`span`,{className:`rv-score-val tab-num`,children:H(b)}),(0,l.jsxs)(`span`,{className:`rv-stars`,"aria-hidden":`true`,children:[(0,l.jsx)(`span`,{className:`rv-stars-fill`,style:{width:Math.min(b,5)/5*100+`%`},children:`★★★★★`}),(0,l.jsx)(`span`,{className:`rv-stars-track`,children:`★★★★★`})]}),x!==void 0&&(0,l.jsxs)(`span`,{className:`rv-count`,children:[x.toLocaleString(),` reviews`]})]}),_&&(0,l.jsx)(`div`,{className:`rv-dist`,children:_.map((e,t)=>(0,l.jsxs)(`div`,{className:`rv-dist-row`,children:[(0,l.jsx)(`span`,{className:`rv-dist-star tab-num`,children:5-t}),(0,l.jsx)(i.spark,{className:`rv-dist-ic`}),(0,l.jsx)(`span`,{className:`rv-dist-track`,children:(0,l.jsx)(`span`,{className:`rv-dist-fill`,style:{width:e/v*100+`%`}})}),(0,l.jsx)(`span`,{className:`rv-dist-n tab-num`,children:e.toLocaleString()})]},t))})]}),(h.length>0||g.length>0)&&(0,l.jsxs)(`div`,{className:`rv-split`,children:[h.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--love`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.check,{className:`rv-col-ic`}),` People love`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:h.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]}),g.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--gripe`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.x,{className:`rv-col-ic`}),` Complaints`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:g.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]})]}),d&&(0,l.jsxs)(`div`,{className:`rv-dealbreaker`,children:[(0,l.jsx)(i.alert,{className:`rv-db-ic`}),(0,l.jsxs)(`span`,{children:[(0,l.jsx)(`b`,{children:`Biggest dealbreaker:`}),` `,d]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function W(e){let t=(0,f.c)(12),{theme:n}=e,r;t[0]===n.theme?r=t[1]:(r=(0,l.jsx)(`span`,{className:`rv-theme-name`,children:n.theme}),t[0]=n.theme,t[1]=r);let i;t[2]===n.freq?i=t[3]:(i=n.freq&&(0,l.jsx)(`span`,{className:`rv-theme-freq`,children:n.freq}),t[2]=n.freq,t[3]=i);let a;t[4]!==r||t[5]!==i?(a=(0,l.jsxs)(`div`,{className:`rv-theme-head`,children:[r,i]}),t[4]=r,t[5]=i,t[6]=a):a=t[6];let o;t[7]===n.quote?o=t[8]:(o=n.quote&&(0,l.jsx)(`blockquote`,{className:`rv-quote`,children:`“`+n.quote+`”`}),t[7]=n.quote,t[8]=o);let s;return t[9]!==a||t[10]!==o?(s=(0,l.jsxs)(`li`,{className:`rv-theme`,children:[a,o]}),t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function G({name:e,title:t,icon:n=`doc`,iconColor:r=`var(--presence)`,contact:o,summary:s,experience:c,education:u,skills:d,footer:f,delay:p}){let m=i[n]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:r}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rz-paper`,children:[(0,l.jsxs)(`div`,{className:`rz-head`,children:[(0,l.jsx)(`div`,{className:`rz-name`,children:e}),t&&(0,l.jsx)(`div`,{className:`rz-title`,children:t}),!!o?.length&&(0,l.jsx)(`div`,{className:`rz-contact`,children:o.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-contact-item`,children:e},t))})]}),s&&(0,l.jsx)(`p`,{className:`rz-summary`,children:s}),c.length>0&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Experience`}),(0,l.jsx)(`div`,{className:`rz-exp-list`,children:c.map((e,t)=>(0,l.jsx)(K,{exp:e,i:t},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Education`}),(0,l.jsx)(`div`,{className:`rz-edu-list`,children:u.map((e,t)=>(0,l.jsx)(q,{ed:e,i:t},t))})]}),!!d?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Skills`}),(0,l.jsx)(`div`,{className:`rz-skills`,children:d.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-skill m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function K({exp:e,i:t}){let n=[e.start,e.end||`Present`].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-exp m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.role}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.org})]}),(0,l.jsxs)(`div`,{className:`rz-exp-when`,children:[(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n}),e.location&&(0,l.jsx)(`span`,{className:`rz-exp-loc`,children:e.location})]})]}),!!e.bullets?.length&&(0,l.jsx)(`ul`,{className:`rz-bullets`,children:e.bullets.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]})}function q({ed:e,i:t}){let n=[e.start,e.end].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-edu m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.school}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.credential})]}),n&&(0,l.jsx)(`div`,{className:`rz-exp-when`,children:(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n})})]}),e.detail&&(0,l.jsx)(`div`,{className:`rz-edu-detail`,children:e.detail})]})}var J={added:`var(--insight)`,changed:`var(--presence)`,fixed:`var(--presence-soft)`,deprecated:`var(--warning-soft)`,removed:`var(--warning)`,security:`var(--danger)`},oe={added:`plus`,changed:`refresh`,fixed:`check`,deprecated:`clock`,removed:`x`,security:`shield`},Y=[`security`,`removed`,`deprecated`,`fixed`,`changed`,`added`];function se(e){let t=Y.length-1;for(let n of e){let e=Y.indexOf(n.kind);e!==-1&&e<t&&(t=e)}return Y[t]??`changed`}function ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,versions:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cl-versions`,children:r.map((e,t)=>{let n=t===r.length-1,a=e.entries.length?J[se(e.entries)]:`var(--text-muted)`;return(0,l.jsxs)(`div`,{className:`cl-version m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`cl-rail`,children:[(0,l.jsx)(`div`,{className:`cl-dot`,style:{borderColor:a,color:a}}),!n&&(0,l.jsx)(`div`,{className:`cl-line`})]}),(0,l.jsxs)(`div`,{className:`cl-body`,children:[(0,l.jsxs)(`div`,{className:`cl-version-head`,children:[(0,l.jsx)(`span`,{className:`cl-version-num`,children:e.version}),e.date&&(0,l.jsx)(`span`,{className:`cl-version-date`,children:e.date})]}),e.entries.length>0&&(0,l.jsx)(`div`,{className:`cl-entries`,children:e.entries.map((e,t)=>{let n=J[e.kind]??`var(--text-muted)`,r=i[oe[e.kind]]||i.doc;return(0,l.jsxs)(`div`,{className:`cl-entry`,children:[(0,l.jsxs)(`span`,{className:`cl-kind`,style:{color:n,background:`color-mix(in oklab, ${n} 14%, transparent)`},children:[(0,l.jsx)(r,{className:`ic`}),e.kind]}),(0,l.jsx)(`span`,{className:`cl-entry-text`,children:e.text})]},t)})})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function le({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,gradeLevel:o,duration:s,objectives:c,materials:u,procedure:d,assessment:f,footer:p,delay:m}){let h=i[t]||i.doc,g=d.reduce((e,t)=>e+(t.minutes||0),0),_=s||(g>0?`${g} min`:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`lp-paper`,children:[(r||o||_)&&(0,l.jsxs)(`div`,{className:`lp-meta`,children:[r&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:r}),o&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:o}),_&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:_})]}),c.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Objectives`}),(0,l.jsx)(`ul`,{className:`lp-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Materials`}),(0,l.jsx)(`div`,{className:`lp-materials`,children:u.map((e,t)=>(0,l.jsx)(`span`,{className:`lp-material`,children:e},t))})]}),d.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Procedure`}),(0,l.jsx)(`div`,{className:`lp-steps`,children:d.map((e,t)=>(0,l.jsxs)(`div`,{className:`lp-step m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`lp-step-num`,children:t+1}),(0,l.jsxs)(`div`,{className:`lp-step-body`,children:[(0,l.jsxs)(`div`,{className:`lp-step-top`,children:[(0,l.jsx)(`span`,{className:`lp-step-text`,children:e.step}),!!e.minutes&&(0,l.jsxs)(`span`,{className:`lp-step-min`,children:[e.minutes,` min`]})]}),e.detail&&(0,l.jsx)(`div`,{className:`lp-step-detail`,children:e.detail})]})]},t))})]}),f&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Assessment`}),(0,l.jsx)(`div`,{className:`lp-assessment`,children:f})]})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var ue=[{key:`facts`,label:`Facts`},{key:`issue`,label:`Issue`},{key:`holding`,label:`Holding`},{key:`reasoning`,label:`Reasoning`}];function de({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,citation:r,parties:o,facts:s,issue:c,holding:u,reasoning:d,footer:f,delay:p}){let m=i[t]||i.doc,h={facts:s,issue:c,holding:u,reasoning:d};return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cb-citation`,children:r}),(0,l.jsxs)(`div`,{className:`cb-parties`,children:[(0,l.jsx)(`span`,{className:`cb-party`,children:o.plaintiff}),(0,l.jsx)(`span`,{className:`cb-vs`,children:`v.`}),(0,l.jsx)(`span`,{className:`cb-party`,children:o.defendant})]}),ue.map((e,t)=>(0,l.jsxs)(`section`,{className:`cb-section cb-section--${e.key} m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`div`,{className:`cb-section-label`,children:e.label}),(0,l.jsx)(`div`,{className:`cb-section-body`,children:h[e.key]})]},e.key)),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var X={disclosed:{c:`var(--insight)`,icon:`check`,t:`Disclosed`},"not-disclosed":{c:`var(--text-muted)`,icon:null,t:`Not disclosed`},disputed:{c:`var(--warning)`,icon:`alert`,t:`Disputed`}},fe=new Set([`disclosed`,`not-disclosed`,`disputed`]);function Z(e,t,n){let r=Array.isArray(e)?e[t]:void 0,i=Array.isArray(r)?r[n]:void 0;if(!i||typeof i!=`object`||Array.isArray(i))return{state:`not-disclosed`};let a=i,o=typeof a.state==`string`&&fe.has(a.state)?a.state:`not-disclosed`,s=typeof a.quote==`string`&&a.quote.trim()?a.quote:void 0;return s?{state:o,quote:s}:{state:o}}function pe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,claimElements:r,references:s,cells:c,footer:u,delay:d}){let f=i[t]||i.table,p=Array.isArray(r)?r:[],m=Array.isArray(s)?s.filter(e=>typeof e==`string`):[],[g,_]=(0,h.useState)(p.length&&m.length?{r:0,c:0}:null);if(p.length===0||m.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No claim elements or references to chart`})]});let v=0,y=0;for(let e=0;e<p.length;e++)for(let t=0;t<m.length;t++){let n=Z(c,e,t).state;n===`disclosed`?v++:n===`disputed`&&y++}let b=g?Z(c,g.r,g.c):null,x=b?X[b.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`pcc-head`,children:[(0,l.jsxs)(`span`,{className:`pcc-count faint`,children:[p.length,` element`,p.length===1?``:`s`,` × `,m.length,` reference`,m.length===1?``:`s`]}),(0,l.jsxs)(`span`,{className:`pcc-tally tab-num faint`,children:[v,` disclosed`,y>0?` · ${y} disputed`:``]})]}),(0,l.jsx)(`div`,{className:`pcc-scroll`,children:(0,l.jsxs)(`table`,{className:`pcc-table`,children:[(0,l.jsxs)(`colgroup`,{children:[(0,l.jsx)(`col`,{className:`pcc-col-el`}),m.map((e,t)=>(0,l.jsx)(`col`,{className:`pcc-col-ref`},t))]}),(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`pcc-corner`}),m.map((e,t)=>(0,l.jsx)(`th`,{className:`pcc-refh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:p.map((e,t)=>{let n=typeof e?.id==`string`&&e.id.trim()?e.id:String(t+1),r=typeof e?.text==`string`?e.text:``;return(0,l.jsxs)(`tr`,{children:[(0,l.jsxs)(`th`,{className:`pcc-elh`,scope:`row`,children:[(0,l.jsx)(`span`,{className:`pcc-el-num`,children:n}),r&&(0,l.jsx)(`span`,{className:`pcc-el-text`,children:r})]}),m.map((e,n)=>{let r=Z(c,t,n),a=X[r.state],o=a.icon?i[a.icon]:null,s=g?.r===t&&g?.c===n;return(0,l.jsx)(`td`,{className:`pcc-cell ${r.state} ${s?`on`:``}`,style:{"--cc":a.c},onMouseEnter:()=>_({r:t,c:n}),children:(0,l.jsx)(`span`,{className:`pcc-mark`,children:o?(0,l.jsx)(o,{className:`pcc-mark-ic`}):(0,l.jsx)(`span`,{className:`pcc-dash`,children:`–`})})},n)})]},t)})})]})}),b&&x&&(0,l.jsxs)(`div`,{className:`pcc-tip`,style:{"--cc":x.c},children:[(0,l.jsx)(`span`,{className:`pcc-tip-tag`,style:{color:x.c},children:x.t}),b.quote?(0,l.jsx)(`span`,{className:`pcc-tip-note`,dangerouslySetInnerHTML:a(b.quote)}):(0,l.jsxs)(`span`,{className:`pcc-tip-note faint`,children:[p[g.r]?.id||String(g.r+1),` × `,m[g.c]]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function me(e){let t=e.trim();return t?t.split(/\s+/).length:0}function Q({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lede:r,nutGraf:s,body:c,background:u,wordCountBudget:d,wordCount:f,footer:p,delay:m}){let g=i[t]||i.doc,_=Array.isArray(c)?c.filter(e=>typeof e==`string`&&e):[],v=Array.isArray(u)?u.filter(e=>typeof e==`string`&&e):[],[y,b]=(0,h.useState)(!1);if(!r&&!s&&_.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No draft to show yet`})]});let x=typeof f==`number`&&Number.isFinite(f)?f:me([r,s,..._].filter(Boolean).join(` `)),S=typeof d==`number`&&Number.isFinite(d)&&x>d;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),x>0&&(0,l.jsxs)(`div`,{className:`ss-wordcount tab-num faint`,children:[x.toLocaleString(),typeof d==`number`&&Number.isFinite(d)?` / ${d.toLocaleString()} words`:` words`,S&&(0,l.jsx)(`span`,{className:`ss-wordcount-over`,children:` · over budget`})]}),(r||s)&&(0,l.jsxs)(`div`,{className:`ss-lede-block`,children:[r&&(0,l.jsx)(`p`,{className:`ss-lede`,children:r}),s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`div`,{className:`ss-nutgraf-label`,children:`Nut graf`}),(0,l.jsx)(`p`,{className:`ss-nutgraf`,children:s})]})]}),_.length>0&&(0,l.jsx)(`div`,{className:`ss-body`,children:_.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-para m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))}),v.length>0&&(0,l.jsxs)(`div`,{className:`ss-bg`,children:[(0,l.jsxs)(`button`,{className:`ss-bg-toggle`,onClick:()=>b(e=>!e),"aria-expanded":y,children:[(0,l.jsx)(i.chevR,{className:`ss-bg-toggle-ic${y?` open`:``}`}),y?`Hide background`:`Background (${v.length})`]}),y&&(0,l.jsx)(`div`,{className:`ss-bg-body`,children:v.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-bg-para`,children:e},t))})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function he(e){return typeof e==`number`?Number.isFinite(e)?e.toLocaleString():`—`:typeof e==`string`&&e.trim()?e:`—`}function ge({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,species:r,name:s,breed:c,sex:u,ageYears:d,weightKg:f,vitals:p,problems:m,footer:h,delay:g}){let _=i[t]||i.doc,v=Array.isArray(p)?p:[],y=Array.isArray(m)?m.filter(e=>typeof e==`string`&&e):[];if(!s&&!r)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No patient on file`})]});let b=[r,c,u,Number.isFinite(d)?`${d}y`:void 0,Number.isFinite(f)?`${f} kg`:void 0].filter(e=>!!e);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`vpc-signalment`,children:[s&&(0,l.jsx)(`div`,{className:`vpc-name`,children:s}),b.length>0&&(0,l.jsx)(`div`,{className:`vpc-chips`,children:b.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-chip`,children:e},t))})]}),v.length>0&&(0,l.jsx)(`div`,{className:`vpc-vitals`,children:v.map((e,t)=>(0,l.jsx)(_e,{v:e,i:t},t))}),y.length>0&&(0,l.jsxs)(`div`,{className:`vpc-problems`,children:[(0,l.jsx)(`div`,{className:`vpc-problems-label`,children:`Active problems`}),(0,l.jsx)(`div`,{className:`vpc-problem-list`,children:y.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-problem-chip m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function _e({v:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Reading`,r=he(e?.value),a=typeof e?.unit==`string`&&e.unit.trim()?e.unit:``,o=!!e?.abnormal;return(0,l.jsxs)(`div`,{className:`vpc-vital m-stagger-item m-fade-rise${o?` abnormal`:``}`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`vpc-vital-label`,children:n}),(0,l.jsxs)(`span`,{className:`vpc-vital-value tab-num`,children:[r,a&&(0,l.jsx)(`span`,{className:`vpc-vital-unit`,children:a})]}),o&&(0,l.jsx)(i.alert,{className:`vpc-vital-flag`})]})}function ve({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,opponent:r,tendencies:s,matchupNotes:c,keyPlayers:u,footer:d,delay:f}){let p=i[t]||i.chart,m=Array.isArray(s)?s.filter(e=>typeof e==`string`&&e):[],h=Array.isArray(c)?c:[],g=Array.isArray(u)?u:[];return!r&&m.length===0?(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No scouting notes yet`})]}):(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`scr-opponent`,children:[(0,l.jsx)(`span`,{className:`scr-opponent-label`,children:`Opponent`}),(0,l.jsx)(`span`,{className:`scr-opponent-name`,children:r})]}),m.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Tendencies`}),(0,l.jsx)(`ul`,{className:`scr-tendencies`,children:m.map((e,t)=>(0,l.jsx)(`li`,{className:`scr-tendency m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Matchup notes`}),(0,l.jsx)(`div`,{className:`scr-notes`,children:h.map((e,t)=>(0,l.jsx)(ye,{n:e,i:t},t))})]}),g.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Key players`}),(0,l.jsx)(`div`,{className:`scr-players`,children:g.map((e,t)=>(0,l.jsx)(be,{p:e,i:t},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function ye({n:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Note`,r=typeof e?.note==`string`?e.note:``;return r?(0,l.jsxs)(`div`,{className:`scr-note m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`scr-note-label`,children:n}),(0,l.jsx)(`span`,{className:`scr-note-text`,children:r})]}):null}function be({p:e,i:t}){let n=typeof e?.name==`string`&&e.name.trim()?e.name:`Player`,r=typeof e?.role==`string`&&e.role.trim()?e.role:``,i=typeof e?.note==`string`?e.note:``;return(0,l.jsxs)(`div`,{className:`scr-player m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`scr-player-top`,children:[(0,l.jsx)(`span`,{className:`scr-player-name`,children:n}),r&&(0,l.jsx)(`span`,{className:`scr-player-role`,children:r})]}),i&&(0,l.jsx)(`span`,{className:`scr-player-note`,children:i})]})}var xe=e({docsRegistry:()=>$}),$={hypothesiscard:s(d),docview:s(p),pdfreader:s(_),annotateddoc:s(y),redline:s(b),citationchain:s(ee),factcheck:s(te),confidencemeter:s(E),highlightsnippet:(e,t)=>(0,l.jsx)(D,{...e,delay:t.delay}),annotcallouts:s(O),sourcelist:s(ne),claimgrid:s(re),docoutline:s(ie),diffviewer:s(j),paralleltext:s(M),clinicaltimeline:s(F),researchsummary:s(I),eligibilitycheck:s(z),evidencetrace:s(V),reviewsynth:s(U),resume:s(G),changelog:s(ce),lessonplan:s(le),casebrief:s(de),patentclaimchart:s(pe),storystructure:s(Q),vetpatientchart:s(ge),scoutingreport:s(ve)};export{xe as n,$ as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-C7H7A1rW.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./BlockEmpty-B5Q0hgDJ.js";import"./lib-C7zXL8h0.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{r as c}from"./sourceHost-BV3t2XDb.js";var l=n(),u={"two-tailed":`two-tailed`,greater:`one-tailed · greater`,less:`one-tailed · less`};function d({title:e=`Hypothesis Test`,icon:t=`proof`,iconColor:n=`var(--presence)`,h0:r,h1:o,direction:s,alpha:c,variables:d,rejected:f,footer:p,delay:m}){let h=i[t]||i.proof,g=typeof f==`boolean`,_=d?.iv,v=d?.dv,y=typeof c==`number`&&Number.isFinite(c),b=s?u[s]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(_||v||y)&&(0,l.jsxs)(`div`,{className:`hyp-meta`,children:[_&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`IV · `,_]}),v&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`DV · `,v]}),y&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip hyp-alpha tab-num`,children:[`α = `,c]})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h0 m-fade-rise m-stagger-item`+(g?f?` rejected`:` retained`:``),style:{"--i":0},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsx)(`span`,{className:`hyp-stmt-tag`,children:`H₀ · Null hypothesis`}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}),f?`Rejected`:`Retained`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:r})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h1 m-fade-rise m-stagger-item`+(g?f?` supported`:` unsupported`:``),style:{"--i":1},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsxs)(`span`,{className:`hyp-stmt-tag`,children:[`H₁ · Alternative hypothesis`,b&&(0,l.jsx)(`span`,{className:`hyp-direction`,children:b})]}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}),f?`Supported`:`Not supported`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:o})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var f=r();function p({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,page:o,blocks:s,note:c,footer:u,delay:d}){let f=i[t]||i.doc,p=s.some(e=>e.spot);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`+(p?` has-spot`:``),children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),o&&(0,l.jsxs)(`span`,{className:`doc-view-page`,children:[`p. `,o.n,` / `,o.of]})]}),(0,l.jsxs)(`div`,{className:`doc-view-page-surface`,children:[s.map((e,t)=>(0,l.jsx)(m,{b:e,spotlit:p&&!!e.spot,dimmed:p&&!e.spot},t)),p&&c&&(0,l.jsxs)(`div`,{className:`doc-view-note`,children:[(0,l.jsx)(`span`,{className:`doc-view-note-pin`}),(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(c)})]})]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function m(e){let t=(0,f.c)(8),{b:n,spotlit:r,dimmed:i}=e,o=`doc-view-${n.kind}`+(r?` spotlit`:``)+(i?` dimmed`:``),s;t[0]===n.text?s=t[1]:(s=a(n.text),t[0]=n.text,t[1]=s);let c;t[2]===r?c=t[3]:(c=r?{"data-mark":`underline`}:{},t[2]=r,t[3]=c);let u;return t[4]!==o||t[5]!==s||t[6]!==c?(u=(0,l.jsx)(`div`,{className:o,dangerouslySetInnerHTML:s,...c}),t[4]=o,t[5]=s,t[6]=c,t[7]=u):u=t[7],u}var h=t();function g(e){if(!e||typeof window>`u`)return null;try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||t.protocol!==`http:`&&t.protocol!==`https:`||!t.pathname.toLowerCase().endsWith(`.pdf`)&&t.pathname!==`/pdf`?null:`${t.pathname}${t.search}${t.hash}`}catch{return null}}function _({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,file:o,embedSrc:s,pages:u=[],footer:d,delay:f}){let p=i[t]||i.doc,[m,_]=(0,h.useState)(1),y=(0,h.useRef)(null),b=(0,h.useRef)([]),x=g(s)??g(o),S=x?null:c(o??``);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`,children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),(0,l.jsx)(`span`,{className:`doc-view-page`,children:o?`PDF`:`p. ${m} / ${u.length}`})]}),x?(0,l.jsx)(`iframe`,{className:`pr-embed`,src:x,title:r||e,sandbox:``,referrerPolicy:`no-referrer`}):o?(0,l.jsx)(`div`,{className:`pr-file-fallback`,children:S?(0,l.jsx)(`a`,{href:S,target:`_blank`,rel:`noopener noreferrer`,children:`Open the PDF in a new tab ↗`}):(0,l.jsx)(`span`,{children:`This PDF link could not be verified.`})}):(0,l.jsx)(`div`,{className:`pr-scroll`,ref:y,onScroll:()=>{let e=y.current;if(!e)return;let t=e.scrollTop+48,n=1;for(let e=0;e<b.current.length;e++){let r=b.current[e];r&&r.offsetTop<=t&&(n=e+1)}n!==m&&_(n)},children:u.map((e,t)=>(0,l.jsxs)(`div`,{className:`pr-sheet`,ref:e=>{b.current[t]=e},children:[(0,l.jsx)(`span`,{className:`pr-sheet-no`,children:t+1}),e.blocks.map((e,t)=>(0,l.jsx)(v,{b:e},t))]},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function v(e){let t=(0,f.c)(5),{b:n}=e,r=`doc-view-${n.kind}`,i;t[0]===n.text?i=t[1]:(i=a(n.text),t[0]=n.text,t[1]=i);let o;return t[2]!==r||t[3]!==i?(o=(0,l.jsx)(`div`,{className:r,dangerouslySetInnerHTML:i}),t[2]=r,t[3]=i,t[4]=o):o=t[4],o}function y({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,paragraphs:o,highlights:s,footer:c,delay:u}){let d=i[t]||i.doc,[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>o.map((e,t)=>{let n=[];s.forEach((t,r)=>{let i=e.indexOf(t.phrase);i>=0&&n.push({s:i,e:i+t.phrase.length,h:r})}),n.sort((e,t)=>e.s-t.s);let r=[],i=0;return n.forEach((n,a)=>{n.s<i||(n.s>i&&r.push({key:`t${t}-${a}`,text:e.slice(i,n.s)}),r.push({key:`h${t}-${a}`,text:e.slice(n.s,n.e),h:n.h}),i=n.e)}),i<e.length&&r.push({key:`t${t}-end`,text:e.slice(i)}),r}),[o,s]),g=s[f];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ad-body`,children:[(0,l.jsxs)(`div`,{className:`ad-doc`,children:[r&&(0,l.jsx)(`div`,{className:`ad-docname mono faint`,children:r}),m.map((e,t)=>(0,l.jsx)(`p`,{className:`ad-para`,children:e.map(e=>{if(e.h===void 0)return(0,l.jsx)(`span`,{children:e.text},e.key);let t=e.h,n=f===t;return(0,l.jsxs)(`span`,{className:`ad-mark ${n?`on`:``}`,style:{"--hl":s[t].color||`var(--presence)`},role:`button`,tabIndex:0,"aria-label":`Show note ${t+1}`,onMouseEnter:()=>p(t),onClick:()=>p(t),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(t))},"data-mark":n?`underline`:void 0,children:[e.text,(0,l.jsx)(`sup`,{className:`ad-mark-num tab-num`,children:t+1})]},e.key)})},t))]}),(0,l.jsxs)(`div`,{className:`ad-margin`,children:[g&&(0,l.jsxs)(`div`,{className:`ad-note`,style:{"--hl":g.color||`var(--presence)`},children:[(0,l.jsxs)(`div`,{className:`ad-note-head`,children:[(0,l.jsx)(`span`,{className:`ad-note-num tab-num`,children:f+1}),g.author&&(0,l.jsx)(`span`,{className:`ad-note-author`,children:g.author})]}),(0,l.jsx)(`div`,{className:`ad-note-body`,dangerouslySetInnerHTML:a(g.note)})]},f),(0,l.jsx)(`div`,{className:`ad-dots`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ad-dot ${f===t?`on`:``}`,style:{"--hl":e.color||`var(--presence)`},onClick:()=>p(t),"aria-label":`Note ${t+1}`},t))})]})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function b({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,docName:r,tokens:o,footer:s,delay:c}){let u=i[t]||i.edit,[d,f]=(0,h.useState)(`review`),p=o.filter(e=>e.ins!=null).length,m=o.filter(e=>e.del!=null).length,g=p+m;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rl-head`,children:[r&&(0,l.jsx)(`span`,{className:`rl-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`rl-count tab-num`,children:[(0,l.jsx)(`span`,{className:`rl-pip ins`}),p,` `,(0,l.jsx)(`span`,{className:`rl-pip del`}),m]})]}),(0,l.jsx)(`div`,{className:`rl-tabs`,children:[{id:`review`,label:`Tracked`,icon:`eye`},{id:`final`,label:`Final`,icon:`check`},{id:`original`,label:`Original`,icon:`undo`}].map(e=>{let t=i[e.icon];return(0,l.jsxs)(`button`,{className:`rl-tab ${d===e.id?`on`:``}`,onClick:()=>f(e.id),children:[(0,l.jsx)(t,{className:`ic`}),` `,e.label]},e.id)})}),(0,l.jsx)(`div`,{className:`rl-doc mode-${d}`,children:o.map((e,t)=>e.text==null?e.ins==null?e.del==null||d===`final`?null:(0,l.jsx)(`span`,{className:`rl-del`,title:e.by?`deleted by ${e.by}`:`deletion`,children:e.del},t):d===`original`?null:(0,l.jsx)(`span`,{className:`rl-ins`,title:e.by?`inserted by ${e.by}`:`insertion`,children:e.ins},t):(0,l.jsx)(`span`,{className:`rl-keep`,children:e.text},t))}),(0,l.jsxs)(`div`,{className:`rl-foot`,children:[d===`review`&&(0,l.jsxs)(`span`,{className:`rl-hint faint`,children:[g,` tracked change`,g===1?``:`s`,` — switch views to accept or reject`]}),d===`final`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--insight)`},children:`Accepted — showing final copy`}),d===`original`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--text-muted)`},children:`Rejected — showing original copy`})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var x={strong:{c:`var(--insight)`,t:`strong`},partial:{c:`var(--warning)`,t:`partial`},weak:{c:`var(--danger)`,t:`weak`}};function S({node:e,path:t,depth:n}){let r=!!(e.children&&e.children.length),[o,s]=(0,h.useState)(n<2),c=e.color||(n===0?`var(--presence)`:`var(--insight)`),u=e.strength?x[e.strength]:null;return(0,l.jsxs)(`div`,{className:`cc-node`,style:{"--rail":c},children:[(0,l.jsxs)(`button`,{className:`cc-row ${o?`open`:``} ${r?`has-kids`:`leaf`}`,onClick:()=>r&&s(e=>!e),children:[(0,l.jsx)(`span`,{className:`cc-bullet`,style:{background:c},...n===0?{"data-mark":`circle`}:{}}),r&&(0,l.jsx)(i.chevR,{className:`cc-chev ${o?`open`:``}`}),(0,l.jsx)(`span`,{className:`cc-label`,dangerouslySetInnerHTML:a(e.label)}),e.cite&&(0,l.jsxs)(`span`,{className:`cc-cite mono`,children:[(0,l.jsx)(i.link,{className:`cc-cite-ic`}),e.cite]}),u&&(0,l.jsx)(`span`,{className:`cc-strength`,style:{color:u.c,"--sc":u.c},children:u.t})]}),r&&(0,l.jsx)(`div`,{className:`cc-kids`,"data-open":o,children:o&&e.children.map((e,r)=>(0,l.jsx)(S,{node:e,path:`${t}-${r}`,depth:n+1},`${t}-${r}`))})]})}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,root:r,footer:o,delay:s}){let c=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cc-tree`,children:(0,l.jsx)(S,{node:r,path:`r`,depth:0})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var C={true:{c:`var(--insight)`,label:`Verified`,icon:`check`},partly:{c:`var(--warning)`,label:`Partly true`,icon:`alert`},false:{c:`var(--danger)`,label:`False`,icon:`x`},unverified:{c:`var(--text-muted)`,label:`Unverified`,icon:`eyeOff`}};function te({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,claims:r,footer:o,delay:s}){let c=i[t]||i.proof,[u,d]=(0,h.useState)(0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`fc-list`,children:r.map((e,t)=>{let n=C[e.verdict],r=i[n.icon],o=u===t;return(0,l.jsxs)(`div`,{className:`fc-item ${o?`on`:``}`,style:{"--vc":n.c},children:[(0,l.jsxs)(`button`,{className:`fc-head`,onClick:()=>d(o?null:t),children:[(0,l.jsx)(`span`,{className:`fc-verdict`,style:{color:n.c},children:(0,l.jsx)(r,{className:`fc-verdict-ic`})}),(0,l.jsx)(`span`,{className:`fc-claim`,dangerouslySetInnerHTML:a(e.claim)}),(0,l.jsxs)(`span`,{className:`fc-conf tab-num`,style:{color:n.c},children:[Math.round(e.confidence),`%`]}),(0,l.jsx)(i.chevR,{className:`fc-chev ${o?`open`:``}`})]}),(0,l.jsx)(`div`,{className:`fc-bar`,children:(0,l.jsx)(`span`,{className:`fc-bar-fill`,style:{width:e.confidence+`%`,background:n.c}})}),(0,l.jsx)(`div`,{className:`fc-detail`,"data-open":o,children:o&&(0,l.jsxs)(`div`,{className:`fc-detail-in`,children:[(0,l.jsx)(`span`,{className:`fc-tag`,style:{color:n.c,"--vc":n.c},children:n.label}),e.detail&&(0,l.jsx)(`div`,{className:`fc-expl`,dangerouslySetInnerHTML:a(e.detail)}),e.sources&&e.sources.length>0&&(0,l.jsx)(`div`,{className:`fc-sources`,children:e.sources.map((e,t)=>(0,l.jsxs)(`span`,{className:`fc-source mono`,children:[(0,l.jsx)(i.globe,{className:`fc-source-ic`}),` `,e]},t))})]})})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var w={strong:`var(--insight)`,partial:`var(--warning)`,weak:`var(--danger)`,none:`var(--text-muted)`},T={strong:1,partial:.6,weak:.3,none:0};function E({title:e,icon:t=`shield`,iconColor:n=`var(--insight)`,claim:r,overall:o,segments:s,footer:c,delay:u}){let d=i[t]||i.shield,f=s.reduce((e,t,n)=>{let r=(t.weight||0)*T[t.band||`partial`];return r>e.score?{i:n,score:r}:e},{i:0,score:-1}).i,[p,m]=(0,h.useState)(f),g=s.reduce((e,t)=>e+(t.weight||0),0)||1,_=o??Math.round(s.reduce((e,t)=>e+(t.weight||0)*T[t.band||`partial`],0)/g*100),v=_>=75?`var(--insight)`:_>=45?`var(--warning)`:`var(--danger)`,y=s[p];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cm-claim`,dangerouslySetInnerHTML:a(r)}),(0,l.jsxs)(`div`,{className:`insight-stat`,style:{margin:`8px 0 10px`},children:[(0,l.jsxs)(`span`,{className:`big tab-num`,"data-mark":`underline`,style:{color:v},children:[_,`%`]}),(0,l.jsx)(`span`,{className:`cm-conf-label faint`,children:`overall confidence`})]}),(0,l.jsx)(`div`,{className:`cm-track`,children:s.map((e,t)=>{let n=w[e.band||`partial`],r=(e.weight||0)/g*100;return(0,l.jsx)(`button`,{className:`cm-seg ${p===t?`on`:``}`,style:{width:r+`%`,"--c":n},onMouseEnter:()=>m(t)},t)})}),(0,l.jsx)(`div`,{className:`cm-legend`,children:s.map((e,t)=>{let n=w[e.band||`partial`];return(0,l.jsxs)(`button`,{className:`cm-leg ${p===t?`on`:``}`,onMouseEnter:()=>m(t),children:[(0,l.jsx)(`span`,{className:`cm-leg-dot`,style:{background:n}}),(0,l.jsx)(`span`,{className:`cm-leg-label`,children:e.label})]},t)})}),y&&(0,l.jsxs)(`div`,{className:`cm-basis`,style:{"--c":w[y.band||`partial`]},children:[(0,l.jsxs)(`div`,{className:`cm-basis-head`,children:[(0,l.jsx)(`span`,{className:`cm-basis-name`,children:y.label}),(0,l.jsxs)(`span`,{className:`cm-basis-band tab-num`,children:[Math.round(y.weight/g*100),`% weight`]})]}),y.basis&&(0,l.jsx)(`div`,{className:`cm-basis-body`,dangerouslySetInnerHTML:a(y.basis)})]},p),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function D({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,quote:r,phrase:o,source:s,locator:c,color:u=`var(--presence)`,footer:d,delay:f}){let p=i[t]||i.quote,[m,g]=(0,h.useState)(!0),_=o?r.indexOf(o):-1,v;return v=_>=0?(0,l.jsxs)(l.Fragment,{children:[r.slice(0,_),(0,l.jsx)(`mark`,{className:`hs-mark ${m?`on`:``}`,style:{"--hl":u},children:r.slice(_,_+o.length)}),r.slice(_+o.length)]}):r,(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`figure`,{className:`hs-fig`,style:{"--hl":u},children:[(0,l.jsx)(`span`,{className:`hs-quote-glyph`,children:`“`}),(0,l.jsx)(`blockquote`,{className:`hs-quote`,children:v})]}),(0,l.jsxs)(`div`,{className:`hs-foot`,children:[s&&(0,l.jsxs)(`span`,{className:`hs-chip mono`,children:[(0,l.jsx)(i.globe,{className:`hs-chip-ic`}),` `,s,c&&(0,l.jsxs)(`span`,{className:`hs-loc faint`,children:[` · `,c]})]}),(0,l.jsxs)(`button`,{className:`hs-toggle ${m?`on`:``}`,onClick:()=>g(e=>!e),style:{"--hl":u},children:[m?(0,l.jsx)(i.eye,{className:`hs-toggle-ic`}):(0,l.jsx)(i.eyeOff,{className:`hs-toggle-ic`}),m?`Highlighted`:`Plain`]})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function O({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,caption:r,ratio:o=16/9,callouts:s,footer:c,delay:u}){let d=i[t]||i.image,[f,p]=(0,h.useState)(0),m=s[f],g=m?.color||`var(--presence)`;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ac-surface`,style:{aspectRatio:String(o)},children:[(0,l.jsxs)(`svg`,{className:`ac-bg`,viewBox:`0 0 160 90`,preserveAspectRatio:`none`,"aria-hidden":!0,children:[(0,l.jsx)(`defs`,{children:(0,l.jsxs)(`linearGradient`,{id:`acg`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`0%`,stopColor:`var(--grid-strong)`}),(0,l.jsx)(`stop`,{offset:`100%`,stopColor:`var(--grid-line)`})]})}),(0,l.jsx)(`rect`,{x:`0`,y:`0`,width:`160`,height:`90`,fill:`url(#acg)`}),[18,36,54,72].map(e=>(0,l.jsx)(`line`,{x1:`10`,y1:e,x2:`150`,y2:e,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e)),[40,80,120].map(e=>(0,l.jsx)(`line`,{x1:e,y1:`8`,x2:e,y2:`82`,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e))]}),s.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,l.jsxs)(`button`,{className:`ac-pin ${f===t?`on`:``}`,style:{left:e.x+`%`,top:e.y+`%`,"--pc":n},onMouseEnter:()=>p(t),onClick:()=>p(t),"aria-label":e.label,"data-mark":t===0?`point`:void 0,children:[(0,l.jsx)(`span`,{className:`ac-pin-ring`}),(0,l.jsx)(`span`,{className:`ac-pin-num tab-num`,children:t+1})]},t)})]}),r&&(0,l.jsx)(`div`,{className:`ac-caption faint`,children:r}),m&&(0,l.jsxs)(`div`,{className:`ac-note`,style:{"--pc":g},children:[(0,l.jsx)(`span`,{className:`ac-note-num tab-num`,children:f+1}),(0,l.jsxs)(`div`,{className:`ac-note-text`,children:[(0,l.jsx)(`span`,{className:`ac-note-label`,children:m.label}),(0,l.jsx)(`span`,{className:`ac-note-body`,dangerouslySetInnerHTML:a(m.note)})]})]},f),(0,l.jsx)(`div`,{className:`ac-thumbs`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ac-thumb tab-num ${f===t?`on`:``}`,style:{"--pc":e.color||`var(--presence)`},onClick:()=>p(t),children:t+1},t))}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,sources:r,footer:o,delay:s}){let c=i[t]||i.globe,[u,d]=(0,h.useState)(`relevance`),[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>{let e=r.map((e,t)=>t);return e.sort((e,t)=>u===`relevance`?r[t].relevance-r[e].relevance:r[e].domain.localeCompare(r[t].domain)),e},[r,u]);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`sl-tabs`,children:[(0,l.jsxs)(`button`,{className:`sl-tab ${u===`relevance`?`on`:``}`,onClick:()=>d(`relevance`),children:[(0,l.jsx)(i.chart,{className:`ic`}),` Relevance`]}),(0,l.jsxs)(`button`,{className:`sl-tab ${u===`az`?`on`:``}`,onClick:()=>d(`az`),children:[(0,l.jsx)(i.doc,{className:`ic`}),` A–Z`]}),(0,l.jsxs)(`span`,{className:`sl-total faint tab-num`,children:[r.length,` sources`]})]}),(0,l.jsx)(`div`,{className:`sl-list`,children:m.map((e,t)=>{let n=r[e],o=n.color||`var(--presence)`,s=n.glyph||n.domain.replace(/^www\./,``).charAt(0).toUpperCase(),c=f===e;return(0,l.jsxs)(`div`,{className:`sl-row ${c?`on`:``}`,children:[(0,l.jsxs)(`button`,{className:`sl-head`,onClick:()=>p(c?null:e),children:[(0,l.jsx)(`span`,{className:`sl-rank tab-num`,children:t+1}),(0,l.jsx)(`span`,{className:`sl-fav`,style:{"--fc":o,background:`color-mix(in oklab, ${o} 22%, transparent)`,color:o},children:s}),(0,l.jsxs)(`span`,{className:`sl-main`,children:[(0,l.jsx)(`span`,{className:`sl-title`,children:n.titleText}),(0,l.jsxs)(`span`,{className:`sl-domain mono faint`,children:[n.domain,n.date&&(0,l.jsxs)(`span`,{className:`sl-date`,children:[` · `,n.date]})]})]}),(0,l.jsxs)(`span`,{className:`sl-rel`,children:[(0,l.jsx)(`span`,{className:`sl-rel-track`,children:(0,l.jsx)(`span`,{className:`sl-rel-fill`,style:{width:n.relevance+`%`,background:o}})}),(0,l.jsx)(`span`,{className:`sl-rel-num tab-num`,style:{color:o},children:Math.round(n.relevance)})]}),(0,l.jsx)(i.chevR,{className:`sl-chev ${c?`open`:``}`})]}),(0,l.jsxs)(`div`,{className:`sl-detail`,"data-open":c,children:[c&&n.snippet&&(0,l.jsx)(`div`,{className:`sl-snippet`,dangerouslySetInnerHTML:a(n.snippet)}),c&&(0,l.jsxs)(`span`,{className:`sl-open mono`,children:[(0,l.jsx)(i.external,{className:`sl-open-ic`}),` `,n.domain]})]})]},e)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var k={yes:{c:`var(--insight)`,icon:`check`,t:`Supported`},no:{c:`var(--danger)`,icon:`x`,t:`Contradicted`},partial:{c:`var(--warning)`,icon:`alert`,t:`Partial`},na:{c:`var(--text-muted)`,icon:null,t:`No data`}};function re({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,columns:r,rows:o,footer:s,delay:c}){let u=i[t]||i.table,[d,f]=(0,h.useState)({r:0,c:0}),p=d&&o[d.r]&&o[d.r].cells[d.c]?o[d.r].cells[d.c]:null,m=p?k[p.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cg-scroll`,children:(0,l.jsxs)(`table`,{className:`cg-table`,style:{"--cols":r.length},children:[(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-corner`}),r.map((e,t)=>(0,l.jsx)(`th`,{className:`cg-colh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:o.map((e,t)=>(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-rowh`,scope:`row`,children:e.claim}),r.map((n,r)=>{let a=e.cells[r]?.state??`na`,o=k[a],s=o.icon?i[o.icon]:null;return(0,l.jsx)(`td`,{className:`cg-cell ${a} ${d?.r===t&&d?.c===r?`on`:``}`,style:{"--cc":o.c},onMouseEnter:()=>f({r:t,c:r}),children:(0,l.jsx)(`span`,{className:`cg-mark`,children:s?(0,l.jsx)(s,{className:`cg-mark-ic`}):(0,l.jsx)(`span`,{className:`cg-dash`,children:`–`})})},r)})]},t))})]})}),p&&m&&(0,l.jsxs)(`div`,{className:`cg-tip`,style:{"--cc":m.c},children:[(0,l.jsx)(`span`,{className:`cg-tip-tag`,style:{color:m.c},children:m.t}),p.note?(0,l.jsx)(`span`,{className:`cg-tip-note`,dangerouslySetInnerHTML:a(p.note)}):(0,l.jsxs)(`span`,{className:`cg-tip-note faint`,children:[o[d.r].claim,` × `,r[d.c]]})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function A(e,t,n,r){e.forEach((e,i)=>{let a=`${n}-${i}`,o=!!(e.children&&e.children.length);r.push({node:e,depth:t,path:a,hasKids:o,index:r.length}),o&&A(e.children,t+1,a,r)})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,sections:o,activeIndex:s=0,footer:c,delay:u}){let d=i[t]||i.doc,f=(0,h.useMemo)(()=>{let e=[];return A(o,0,`o`,e),e},[o]),[p,m]=(0,h.useState)(Math.max(0,Math.min(s,f.length-1))),[g,_]=(0,h.useState)({}),v=Math.max(1,...f.map(e=>e.node.weight||0)),y=e=>Object.keys(g).some(t=>g[t]&&e!==t&&e.startsWith(t+`-`)),b=f.length,x=p+1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`do-head`,children:[r&&(0,l.jsx)(`span`,{className:`do-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`do-progress tab-num faint`,children:[(0,l.jsx)(`span`,{style:{color:`var(--presence)`},children:x}),`/`,b]})]}),(0,l.jsx)(`div`,{className:`do-list`,children:f.map(e=>{if(y(e.path))return null;let t=p===e.index,n=t?`var(--presence)`:`var(--text-muted)`,r=!!g[e.path],a=(e.node.weight||0)/v*100;return(0,l.jsxs)(`div`,{className:`do-row ${t?`on`:``}`,style:{"--depth":Math.min(e.depth,6)},children:[(0,l.jsx)(`span`,{className:`do-rail`}),e.hasKids?(0,l.jsx)(`button`,{className:`do-twist`,onClick:t=>{t.stopPropagation(),_(t=>({...t,[e.path]:!t[e.path]}))},"aria-label":r?`expand`:`collapse`,children:(0,l.jsx)(i.chevR,{className:`do-twist-ic ${r?``:`open`}`})}):(0,l.jsx)(`span`,{className:`do-dot`,style:{background:n},...t?{"data-mark":`point`}:{}}),(0,l.jsxs)(`button`,{className:`do-jump`,onClick:()=>m(e.index),children:[(0,l.jsx)(`span`,{className:`do-heading`,children:e.node.heading}),(e.node.weight??0)>0&&(0,l.jsx)(`span`,{className:`do-wbar`,children:(0,l.jsx)(`span`,{className:`do-wfill`,style:{width:a+`%`}})}),e.node.loc&&(0,l.jsx)(`span`,{className:`do-loc mono faint`,children:e.node.loc})]})]},e.path)})}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var ae={add:`+`,del:`−`,ctx:` `};function j({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,leftLabel:r=`before`,rightLabel:o=`after`,lines:s,split:c=!1,footer:u,delay:d}){let f=i[t]||i.doc,p=s.filter(e=>e.kind===`add`).length,m=s.filter(e=>e.kind===`del`).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dc-diff-head`,children:[(0,l.jsxs)(`span`,{className:`dc-diff-files`,children:[r,` `,(0,l.jsx)(i.chevR,{className:`dc-diff-arrow`}),` `,o]}),(0,l.jsxs)(`span`,{className:`dc-diff-stat`,children:[(0,l.jsxs)(`span`,{className:`add`,"data-mark":`underline`,children:[`+`,p]}),` `,(0,l.jsxs)(`span`,{className:`del`,children:[`−`,m]})]})]}),(0,l.jsx)(`div`,{className:`dc-diff`,children:c?(0,l.jsxs)(`div`,{className:`dc-diff-split`,children:[(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`add`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`del`?`del`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))}),(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`del`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`add`?`add`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})]}):(0,l.jsx)(`div`,{className:`dc-diff-body`,role:`table`,children:s.map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+e.kind,role:`row`,children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-sign`,children:ae[e.kind]}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(u)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,columns:r,rows:o,caption:s,footer:c,delay:u}){let d=i[t]||i.layers,f=r.length||1,p=`repeat(${f}, minmax(0, 1fr))`,m=o.filter(e=>e.diverge).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,l.jsx)(`div`,{className:`pt-caption`,children:s}),(0,l.jsx)(`div`,{className:`pt-scroll`,children:(0,l.jsxs)(`div`,{className:`pt-grid`,style:{"--pt-cols":p},children:[(0,l.jsx)(`div`,{className:`pt-headrow`,style:{gridTemplateColumns:p},children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-colh`+(t===0?` source`:``),children:[(0,l.jsx)(`span`,{className:`pt-colh-label`,children:e.label}),e.lang&&(0,l.jsx)(`span`,{className:`pt-colh-lang mono`,children:e.lang})]},t))}),o.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-line`+(e.diverge?` diverge`:``),children:[(0,l.jsx)(`div`,{className:`pt-cells`,style:{gridTemplateColumns:p},children:Array.from({length:f},(t,n)=>(0,l.jsx)(`div`,{className:`pt-cell`+(n===0?` source`:``),children:e.cells[n]??``},n))}),e.note&&(0,l.jsxs)(`div`,{className:`pt-note`,children:[(0,l.jsx)(`span`,{className:`pt-note-rail`,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:`pt-note-text`,children:e.note})]})]},t))]})}),(c||m>0)&&(0,l.jsxs)(`div`,{className:`pt-foot`,children:[m>0&&(0,l.jsxs)(`span`,{className:`pt-foot-tag`,children:[(0,l.jsx)(`span`,{className:`pt-foot-pip`,"aria-hidden":`true`}),m,` divergence`,m===1?``:`s`]}),c&&(0,l.jsx)(`span`,{className:`pt-foot-note`,dangerouslySetInnerHTML:a(c)})]})]})}var N={symptom:`var(--warning)`,diagnosis:`var(--presence)`,treatment:`var(--insight)`,test:`var(--text-secondary)`,result:`var(--text-primary)`,visit:`var(--text-muted)`},P={symptom:`alert`,diagnosis:`proof`,treatment:`sparkle`,test:`chart`,result:`check`,visit:`clock`};function F({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,events:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`ct-events`,children:r.map((e,t)=>{let n=N[e.type],a=i[P[e.type]]||i.clock;return(0,l.jsxs)(`div`,{className:`ct-event`,children:[(0,l.jsxs)(`div`,{className:`ct-rail`,children:[(0,l.jsx)(`div`,{className:`ct-dot`,style:{background:n,borderColor:n}}),t<r.length-1&&(0,l.jsx)(`div`,{className:`ct-line`})]}),(0,l.jsxs)(`div`,{className:`ct-body`,children:[(0,l.jsxs)(`div`,{className:`ct-header`,children:[(0,l.jsxs)(`span`,{className:`ct-type-chip`,style:{color:n,background:`color-mix(in oklab, ${n} 12%, transparent)`},children:[(0,l.jsx)(a,{className:`ic`,style:{width:10,height:10}}),e.type]}),(0,l.jsx)(`span`,{className:`ct-date`,children:e.date})]}),(0,l.jsx)(`div`,{className:`ct-label`,children:e.label}),e.note&&(0,l.jsx)(`div`,{className:`ct-note`,children:e.note})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function I({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,question:r,method:o,sampleSize:s,findings:c,conclusion:u,limitations:d,source:f,year:p,footer:m,delay:h}){let g=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`rs-question`,children:r}),(o||s)&&(0,l.jsxs)(`div`,{className:`rs-meta`,children:[o&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:o}),s&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:s}),p&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:p})]}),(0,l.jsxs)(`div`,{className:`rs-findings`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Key Findings`}),(0,l.jsx)(`ul`,{className:`rs-findings-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{className:`rs-finding`,children:e},t))})]}),(0,l.jsxs)(`div`,{className:`rs-conclusion`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Conclusion`}),(0,l.jsx)(`div`,{className:`rs-conclusion-body`,children:u})]}),d&&(0,l.jsxs)(`div`,{className:`rs-limitations`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Limitations`}),(0,l.jsx)(`div`,{className:`rs-limitations-body`,children:d})]}),f&&(0,l.jsx)(`div`,{className:`rs-source`,children:f}),m&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}var L={pass:{color:`var(--insight)`,label:`Met`,icon:`check`},fail:{color:`var(--danger)`,label:`Not met`,icon:`x`},"needs-info":{color:`var(--warning)`,label:`Needs info`,icon:`alert`}},R={likely:{color:`var(--insight)`,label:`Likely qualify`},"not-yet":{color:`var(--danger)`,label:`Do not qualify yet`},depends:{color:`var(--warning)`,label:`Depends`}};function z({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,requirements:r,overall:o,caveat:s,footer:c,delay:u}){let d=i[t]||i.proof,f=r??[],p=o?R[o]:void 0;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),p&&(0,l.jsxs)(`div`,{className:`ec-overall`,style:{"--eo":p.color},children:[(0,l.jsx)(`span`,{className:`ec-overall-label`,children:`Overall`}),(0,l.jsx)(`span`,{className:`ec-overall-verdict`,children:p.label})]}),(0,l.jsx)(`ul`,{className:`ec-list`,children:f.map((e,t)=>{let n=L[e.status]??L[`needs-info`],r=i[n.icon]||i.alert;return(0,l.jsxs)(`li`,{className:`ec-row`,style:{"--es":n.color},children:[(0,l.jsx)(`span`,{className:`ec-mark`,children:(0,l.jsx)(r,{className:`ec-mark-ic`})}),(0,l.jsxs)(`div`,{className:`ec-body`,children:[(0,l.jsxs)(`div`,{className:`ec-rule-line`,children:[(0,l.jsx)(`span`,{className:`ec-rule`,children:e.rule}),(0,l.jsx)(`span`,{className:`ec-badge`,children:n.label})]}),e.detail&&(0,l.jsx)(`div`,{className:`ec-detail`,children:e.detail}),e.fix&&(0,l.jsxs)(`div`,{className:`ec-fix`,children:[(0,l.jsx)(`span`,{className:`ec-fix-tag`,children:e.status===`fail`?`To qualify`:`Confirm`}),(0,l.jsx)(`span`,{children:e.fix})]})]})]},t)})}),s&&(0,l.jsxs)(`div`,{className:`ec-caveat`,children:[(0,l.jsx)(i.shield,{className:`ec-caveat-ic`}),(0,l.jsx)(`span`,{children:s})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var B=6;function V({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,claim:r,summary:o,items:s,caveat:c,footer:u,delay:d}){let f=i[t]||i.proof,p=s??[],[m,g]=(0,h.useState)(!1),_=p.length>B,v=m?p:p.slice(0,B),y=p.length-v.length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`et-claim`,children:[(0,l.jsx)(`span`,{className:`et-claim-rail`,style:{background:n}}),(0,l.jsxs)(`div`,{className:`et-claim-body`,children:[(0,l.jsx)(`div`,{className:`et-claim-text`,dangerouslySetInnerHTML:a(r)}),o&&(0,l.jsxs)(`span`,{className:`et-summary`,children:[(0,l.jsx)(i.chart,{className:`et-summary-ic`,style:{width:12,height:12}}),` `,o]})]})]}),(0,l.jsxs)(`div`,{className:`et-records-h`,children:[(0,l.jsx)(i.quote,{className:`et-records-h-ic`,style:{width:12,height:12}}),`Underlying records`,(0,l.jsx)(`span`,{className:`et-records-count tab-num`,children:p.length})]}),(0,l.jsx)(`ul`,{className:`et-records`,children:v.map((e,t)=>(0,l.jsxs)(`li`,{className:`et-record`,children:[(0,l.jsx)(`span`,{className:`et-marker`}),(0,l.jsxs)(`div`,{className:`et-record-body`,children:[(0,l.jsx)(`div`,{className:`et-record-text`,children:e.text}),(e.source||e.when)&&(0,l.jsxs)(`div`,{className:`et-record-meta`,children:[e.source&&(0,l.jsxs)(`span`,{className:`et-source mono`,children:[(0,l.jsx)(i.link,{className:`et-source-ic`,style:{width:11,height:11}}),e.source]}),e.when&&(0,l.jsx)(`span`,{className:`et-when`,children:e.when})]})]})]},t))}),_&&(0,l.jsxs)(`button`,{className:`et-more`,onClick:()=>g(e=>!e),children:[m?`Show fewer`:`Show all ${p.length} records`,!m&&(0,l.jsxs)(`span`,{className:`et-more-n tab-num`,children:[`+`,y]})]}),c&&(0,l.jsxs)(`div`,{className:`et-caveat`,children:[(0,l.jsx)(i.alert,{className:`et-caveat-ic`,style:{width:13,height:13}}),(0,l.jsx)(`span`,{children:c})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function H(e){return(Math.round(e*10)/10).toFixed(1)}function U({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,rating:r,count:o,distribution:s,loves:c,complaints:u,dealbreaker:d,footer:f,delay:p}){let m=i[t]||i.quote,h=c??[],g=u??[],_=s&&s.length===5?s:null,v=_?Math.max(..._,1):1,y=_?_.reduce((e,t)=>e+t,0):0,b=r??(_&&y>0?_.reduce((e,t,n)=>e+t*(5-n),0)/y:void 0),x=o??(y>0?y:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(b!==void 0||_)&&(0,l.jsxs)(`div`,{className:`rv-summary`,children:[b!==void 0&&(0,l.jsxs)(`div`,{className:`rv-score`,children:[(0,l.jsx)(`span`,{className:`rv-score-val tab-num`,children:H(b)}),(0,l.jsxs)(`span`,{className:`rv-stars`,"aria-hidden":`true`,children:[(0,l.jsx)(`span`,{className:`rv-stars-fill`,style:{width:Math.min(b,5)/5*100+`%`},children:`★★★★★`}),(0,l.jsx)(`span`,{className:`rv-stars-track`,children:`★★★★★`})]}),x!==void 0&&(0,l.jsxs)(`span`,{className:`rv-count`,children:[x.toLocaleString(),` reviews`]})]}),_&&(0,l.jsx)(`div`,{className:`rv-dist`,children:_.map((e,t)=>(0,l.jsxs)(`div`,{className:`rv-dist-row`,children:[(0,l.jsx)(`span`,{className:`rv-dist-star tab-num`,children:5-t}),(0,l.jsx)(i.spark,{className:`rv-dist-ic`}),(0,l.jsx)(`span`,{className:`rv-dist-track`,children:(0,l.jsx)(`span`,{className:`rv-dist-fill`,style:{width:e/v*100+`%`}})}),(0,l.jsx)(`span`,{className:`rv-dist-n tab-num`,children:e.toLocaleString()})]},t))})]}),(h.length>0||g.length>0)&&(0,l.jsxs)(`div`,{className:`rv-split`,children:[h.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--love`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.check,{className:`rv-col-ic`}),` People love`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:h.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]}),g.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--gripe`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.x,{className:`rv-col-ic`}),` Complaints`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:g.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]})]}),d&&(0,l.jsxs)(`div`,{className:`rv-dealbreaker`,children:[(0,l.jsx)(i.alert,{className:`rv-db-ic`}),(0,l.jsxs)(`span`,{children:[(0,l.jsx)(`b`,{children:`Biggest dealbreaker:`}),` `,d]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function W(e){let t=(0,f.c)(12),{theme:n}=e,r;t[0]===n.theme?r=t[1]:(r=(0,l.jsx)(`span`,{className:`rv-theme-name`,children:n.theme}),t[0]=n.theme,t[1]=r);let i;t[2]===n.freq?i=t[3]:(i=n.freq&&(0,l.jsx)(`span`,{className:`rv-theme-freq`,children:n.freq}),t[2]=n.freq,t[3]=i);let a;t[4]!==r||t[5]!==i?(a=(0,l.jsxs)(`div`,{className:`rv-theme-head`,children:[r,i]}),t[4]=r,t[5]=i,t[6]=a):a=t[6];let o;t[7]===n.quote?o=t[8]:(o=n.quote&&(0,l.jsx)(`blockquote`,{className:`rv-quote`,children:`“`+n.quote+`”`}),t[7]=n.quote,t[8]=o);let s;return t[9]!==a||t[10]!==o?(s=(0,l.jsxs)(`li`,{className:`rv-theme`,children:[a,o]}),t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function G({name:e,title:t,icon:n=`doc`,iconColor:r=`var(--presence)`,contact:o,summary:s,experience:c,education:u,skills:d,footer:f,delay:p}){let m=i[n]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:r}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rz-paper`,children:[(0,l.jsxs)(`div`,{className:`rz-head`,children:[(0,l.jsx)(`div`,{className:`rz-name`,children:e}),t&&(0,l.jsx)(`div`,{className:`rz-title`,children:t}),!!o?.length&&(0,l.jsx)(`div`,{className:`rz-contact`,children:o.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-contact-item`,children:e},t))})]}),s&&(0,l.jsx)(`p`,{className:`rz-summary`,children:s}),c.length>0&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Experience`}),(0,l.jsx)(`div`,{className:`rz-exp-list`,children:c.map((e,t)=>(0,l.jsx)(K,{exp:e,i:t},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Education`}),(0,l.jsx)(`div`,{className:`rz-edu-list`,children:u.map((e,t)=>(0,l.jsx)(q,{ed:e,i:t},t))})]}),!!d?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Skills`}),(0,l.jsx)(`div`,{className:`rz-skills`,children:d.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-skill m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function K({exp:e,i:t}){let n=[e.start,e.end||`Present`].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-exp m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.role}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.org})]}),(0,l.jsxs)(`div`,{className:`rz-exp-when`,children:[(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n}),e.location&&(0,l.jsx)(`span`,{className:`rz-exp-loc`,children:e.location})]})]}),!!e.bullets?.length&&(0,l.jsx)(`ul`,{className:`rz-bullets`,children:e.bullets.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]})}function q({ed:e,i:t}){let n=[e.start,e.end].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-edu m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.school}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.credential})]}),n&&(0,l.jsx)(`div`,{className:`rz-exp-when`,children:(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n})})]}),e.detail&&(0,l.jsx)(`div`,{className:`rz-edu-detail`,children:e.detail})]})}var J={added:`var(--insight)`,changed:`var(--presence)`,fixed:`var(--presence-soft)`,deprecated:`var(--warning-soft)`,removed:`var(--warning)`,security:`var(--danger)`},oe={added:`plus`,changed:`refresh`,fixed:`check`,deprecated:`clock`,removed:`x`,security:`shield`},Y=[`security`,`removed`,`deprecated`,`fixed`,`changed`,`added`];function se(e){let t=Y.length-1;for(let n of e){let e=Y.indexOf(n.kind);e!==-1&&e<t&&(t=e)}return Y[t]??`changed`}function ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,versions:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cl-versions`,children:r.map((e,t)=>{let n=t===r.length-1,a=e.entries.length?J[se(e.entries)]:`var(--text-muted)`;return(0,l.jsxs)(`div`,{className:`cl-version m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`cl-rail`,children:[(0,l.jsx)(`div`,{className:`cl-dot`,style:{borderColor:a,color:a}}),!n&&(0,l.jsx)(`div`,{className:`cl-line`})]}),(0,l.jsxs)(`div`,{className:`cl-body`,children:[(0,l.jsxs)(`div`,{className:`cl-version-head`,children:[(0,l.jsx)(`span`,{className:`cl-version-num`,children:e.version}),e.date&&(0,l.jsx)(`span`,{className:`cl-version-date`,children:e.date})]}),e.entries.length>0&&(0,l.jsx)(`div`,{className:`cl-entries`,children:e.entries.map((e,t)=>{let n=J[e.kind]??`var(--text-muted)`,r=i[oe[e.kind]]||i.doc;return(0,l.jsxs)(`div`,{className:`cl-entry`,children:[(0,l.jsxs)(`span`,{className:`cl-kind`,style:{color:n,background:`color-mix(in oklab, ${n} 14%, transparent)`},children:[(0,l.jsx)(r,{className:`ic`}),e.kind]}),(0,l.jsx)(`span`,{className:`cl-entry-text`,children:e.text})]},t)})})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function le({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,gradeLevel:o,duration:s,objectives:c,materials:u,procedure:d,assessment:f,footer:p,delay:m}){let h=i[t]||i.doc,g=d.reduce((e,t)=>e+(t.minutes||0),0),_=s||(g>0?`${g} min`:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`lp-paper`,children:[(r||o||_)&&(0,l.jsxs)(`div`,{className:`lp-meta`,children:[r&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:r}),o&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:o}),_&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:_})]}),c.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Objectives`}),(0,l.jsx)(`ul`,{className:`lp-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Materials`}),(0,l.jsx)(`div`,{className:`lp-materials`,children:u.map((e,t)=>(0,l.jsx)(`span`,{className:`lp-material`,children:e},t))})]}),d.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Procedure`}),(0,l.jsx)(`div`,{className:`lp-steps`,children:d.map((e,t)=>(0,l.jsxs)(`div`,{className:`lp-step m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`lp-step-num`,children:t+1}),(0,l.jsxs)(`div`,{className:`lp-step-body`,children:[(0,l.jsxs)(`div`,{className:`lp-step-top`,children:[(0,l.jsx)(`span`,{className:`lp-step-text`,children:e.step}),!!e.minutes&&(0,l.jsxs)(`span`,{className:`lp-step-min`,children:[e.minutes,` min`]})]}),e.detail&&(0,l.jsx)(`div`,{className:`lp-step-detail`,children:e.detail})]})]},t))})]}),f&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Assessment`}),(0,l.jsx)(`div`,{className:`lp-assessment`,children:f})]})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var ue=[{key:`facts`,label:`Facts`},{key:`issue`,label:`Issue`},{key:`holding`,label:`Holding`},{key:`reasoning`,label:`Reasoning`}];function de({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,citation:r,parties:o,facts:s,issue:c,holding:u,reasoning:d,footer:f,delay:p}){let m=i[t]||i.doc,h={facts:s,issue:c,holding:u,reasoning:d};return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cb-citation`,children:r}),(0,l.jsxs)(`div`,{className:`cb-parties`,children:[(0,l.jsx)(`span`,{className:`cb-party`,children:o.plaintiff}),(0,l.jsx)(`span`,{className:`cb-vs`,children:`v.`}),(0,l.jsx)(`span`,{className:`cb-party`,children:o.defendant})]}),ue.map((e,t)=>(0,l.jsxs)(`section`,{className:`cb-section cb-section--${e.key} m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`div`,{className:`cb-section-label`,children:e.label}),(0,l.jsx)(`div`,{className:`cb-section-body`,children:h[e.key]})]},e.key)),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var X={disclosed:{c:`var(--insight)`,icon:`check`,t:`Disclosed`},"not-disclosed":{c:`var(--text-muted)`,icon:null,t:`Not disclosed`},disputed:{c:`var(--warning)`,icon:`alert`,t:`Disputed`}},fe=new Set([`disclosed`,`not-disclosed`,`disputed`]);function Z(e,t,n){let r=Array.isArray(e)?e[t]:void 0,i=Array.isArray(r)?r[n]:void 0;if(!i||typeof i!=`object`||Array.isArray(i))return{state:`not-disclosed`};let a=i,o=typeof a.state==`string`&&fe.has(a.state)?a.state:`not-disclosed`,s=typeof a.quote==`string`&&a.quote.trim()?a.quote:void 0;return s?{state:o,quote:s}:{state:o}}function pe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,claimElements:r,references:s,cells:c,footer:u,delay:d}){let f=i[t]||i.table,p=Array.isArray(r)?r:[],m=Array.isArray(s)?s.filter(e=>typeof e==`string`):[],[g,_]=(0,h.useState)(p.length&&m.length?{r:0,c:0}:null);if(p.length===0||m.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No claim elements or references to chart`})]});let v=0,y=0;for(let e=0;e<p.length;e++)for(let t=0;t<m.length;t++){let n=Z(c,e,t).state;n===`disclosed`?v++:n===`disputed`&&y++}let b=g?Z(c,g.r,g.c):null,x=b?X[b.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`pcc-head`,children:[(0,l.jsxs)(`span`,{className:`pcc-count faint`,children:[p.length,` element`,p.length===1?``:`s`,` × `,m.length,` reference`,m.length===1?``:`s`]}),(0,l.jsxs)(`span`,{className:`pcc-tally tab-num faint`,children:[v,` disclosed`,y>0?` · ${y} disputed`:``]})]}),(0,l.jsx)(`div`,{className:`pcc-scroll`,children:(0,l.jsxs)(`table`,{className:`pcc-table`,children:[(0,l.jsxs)(`colgroup`,{children:[(0,l.jsx)(`col`,{className:`pcc-col-el`}),m.map((e,t)=>(0,l.jsx)(`col`,{className:`pcc-col-ref`},t))]}),(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`pcc-corner`}),m.map((e,t)=>(0,l.jsx)(`th`,{className:`pcc-refh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:p.map((e,t)=>{let n=typeof e?.id==`string`&&e.id.trim()?e.id:String(t+1),r=typeof e?.text==`string`?e.text:``;return(0,l.jsxs)(`tr`,{children:[(0,l.jsxs)(`th`,{className:`pcc-elh`,scope:`row`,children:[(0,l.jsx)(`span`,{className:`pcc-el-num`,children:n}),r&&(0,l.jsx)(`span`,{className:`pcc-el-text`,children:r})]}),m.map((e,n)=>{let r=Z(c,t,n),a=X[r.state],o=a.icon?i[a.icon]:null,s=g?.r===t&&g?.c===n;return(0,l.jsx)(`td`,{className:`pcc-cell ${r.state} ${s?`on`:``}`,style:{"--cc":a.c},onMouseEnter:()=>_({r:t,c:n}),children:(0,l.jsx)(`span`,{className:`pcc-mark`,children:o?(0,l.jsx)(o,{className:`pcc-mark-ic`}):(0,l.jsx)(`span`,{className:`pcc-dash`,children:`–`})})},n)})]},t)})})]})}),b&&x&&(0,l.jsxs)(`div`,{className:`pcc-tip`,style:{"--cc":x.c},children:[(0,l.jsx)(`span`,{className:`pcc-tip-tag`,style:{color:x.c},children:x.t}),b.quote?(0,l.jsx)(`span`,{className:`pcc-tip-note`,dangerouslySetInnerHTML:a(b.quote)}):(0,l.jsxs)(`span`,{className:`pcc-tip-note faint`,children:[p[g.r]?.id||String(g.r+1),` × `,m[g.c]]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function me(e){let t=e.trim();return t?t.split(/\s+/).length:0}function Q({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lede:r,nutGraf:s,body:c,background:u,wordCountBudget:d,wordCount:f,footer:p,delay:m}){let g=i[t]||i.doc,_=Array.isArray(c)?c.filter(e=>typeof e==`string`&&e):[],v=Array.isArray(u)?u.filter(e=>typeof e==`string`&&e):[],[y,b]=(0,h.useState)(!1);if(!r&&!s&&_.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No draft to show yet`})]});let x=typeof f==`number`&&Number.isFinite(f)?f:me([r,s,..._].filter(Boolean).join(` `)),S=typeof d==`number`&&Number.isFinite(d)&&x>d;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),x>0&&(0,l.jsxs)(`div`,{className:`ss-wordcount tab-num faint`,children:[x.toLocaleString(),typeof d==`number`&&Number.isFinite(d)?` / ${d.toLocaleString()} words`:` words`,S&&(0,l.jsx)(`span`,{className:`ss-wordcount-over`,children:` · over budget`})]}),(r||s)&&(0,l.jsxs)(`div`,{className:`ss-lede-block`,children:[r&&(0,l.jsx)(`p`,{className:`ss-lede`,children:r}),s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`div`,{className:`ss-nutgraf-label`,children:`Nut graf`}),(0,l.jsx)(`p`,{className:`ss-nutgraf`,children:s})]})]}),_.length>0&&(0,l.jsx)(`div`,{className:`ss-body`,children:_.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-para m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))}),v.length>0&&(0,l.jsxs)(`div`,{className:`ss-bg`,children:[(0,l.jsxs)(`button`,{className:`ss-bg-toggle`,onClick:()=>b(e=>!e),"aria-expanded":y,children:[(0,l.jsx)(i.chevR,{className:`ss-bg-toggle-ic${y?` open`:``}`}),y?`Hide background`:`Background (${v.length})`]}),y&&(0,l.jsx)(`div`,{className:`ss-bg-body`,children:v.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-bg-para`,children:e},t))})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function he(e){return typeof e==`number`?Number.isFinite(e)?e.toLocaleString():`—`:typeof e==`string`&&e.trim()?e:`—`}function ge({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,species:r,name:s,breed:c,sex:u,ageYears:d,weightKg:f,vitals:p,problems:m,footer:h,delay:g}){let _=i[t]||i.doc,v=Array.isArray(p)?p:[],y=Array.isArray(m)?m.filter(e=>typeof e==`string`&&e):[];if(!s&&!r)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No patient on file`})]});let b=[r,c,u,Number.isFinite(d)?`${d}y`:void 0,Number.isFinite(f)?`${f} kg`:void 0].filter(e=>!!e);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`vpc-signalment`,children:[s&&(0,l.jsx)(`div`,{className:`vpc-name`,children:s}),b.length>0&&(0,l.jsx)(`div`,{className:`vpc-chips`,children:b.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-chip`,children:e},t))})]}),v.length>0&&(0,l.jsx)(`div`,{className:`vpc-vitals`,children:v.map((e,t)=>(0,l.jsx)(_e,{v:e,i:t},t))}),y.length>0&&(0,l.jsxs)(`div`,{className:`vpc-problems`,children:[(0,l.jsx)(`div`,{className:`vpc-problems-label`,children:`Active problems`}),(0,l.jsx)(`div`,{className:`vpc-problem-list`,children:y.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-problem-chip m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function _e({v:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Reading`,r=he(e?.value),a=typeof e?.unit==`string`&&e.unit.trim()?e.unit:``,o=!!e?.abnormal;return(0,l.jsxs)(`div`,{className:`vpc-vital m-stagger-item m-fade-rise${o?` abnormal`:``}`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`vpc-vital-label`,children:n}),(0,l.jsxs)(`span`,{className:`vpc-vital-value tab-num`,children:[r,a&&(0,l.jsx)(`span`,{className:`vpc-vital-unit`,children:a})]}),o&&(0,l.jsx)(i.alert,{className:`vpc-vital-flag`})]})}function ve({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,opponent:r,tendencies:s,matchupNotes:c,keyPlayers:u,footer:d,delay:f}){let p=i[t]||i.chart,m=Array.isArray(s)?s.filter(e=>typeof e==`string`&&e):[],h=Array.isArray(c)?c:[],g=Array.isArray(u)?u:[];return!r&&m.length===0?(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No scouting notes yet`})]}):(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`scr-opponent`,children:[(0,l.jsx)(`span`,{className:`scr-opponent-label`,children:`Opponent`}),(0,l.jsx)(`span`,{className:`scr-opponent-name`,children:r})]}),m.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Tendencies`}),(0,l.jsx)(`ul`,{className:`scr-tendencies`,children:m.map((e,t)=>(0,l.jsx)(`li`,{className:`scr-tendency m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Matchup notes`}),(0,l.jsx)(`div`,{className:`scr-notes`,children:h.map((e,t)=>(0,l.jsx)(ye,{n:e,i:t},t))})]}),g.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Key players`}),(0,l.jsx)(`div`,{className:`scr-players`,children:g.map((e,t)=>(0,l.jsx)(be,{p:e,i:t},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function ye({n:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Note`,r=typeof e?.note==`string`?e.note:``;return r?(0,l.jsxs)(`div`,{className:`scr-note m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`scr-note-label`,children:n}),(0,l.jsx)(`span`,{className:`scr-note-text`,children:r})]}):null}function be({p:e,i:t}){let n=typeof e?.name==`string`&&e.name.trim()?e.name:`Player`,r=typeof e?.role==`string`&&e.role.trim()?e.role:``,i=typeof e?.note==`string`?e.note:``;return(0,l.jsxs)(`div`,{className:`scr-player m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`scr-player-top`,children:[(0,l.jsx)(`span`,{className:`scr-player-name`,children:n}),r&&(0,l.jsx)(`span`,{className:`scr-player-role`,children:r})]}),i&&(0,l.jsx)(`span`,{className:`scr-player-note`,children:i})]})}var xe=e({docsRegistry:()=>$}),$={hypothesiscard:s(d),docview:s(p),pdfreader:s(_),annotateddoc:s(y),redline:s(b),citationchain:s(ee),factcheck:s(te),confidencemeter:s(E),highlightsnippet:(e,t)=>(0,l.jsx)(D,{...e,delay:t.delay}),annotcallouts:s(O),sourcelist:s(ne),claimgrid:s(re),docoutline:s(ie),diffviewer:s(j),paralleltext:s(M),clinicaltimeline:s(F),researchsummary:s(I),eligibilitycheck:s(z),evidencetrace:s(V),reviewsynth:s(U),resume:s(G),changelog:s(ce),lessonplan:s(le),casebrief:s(de),patentclaimchart:s(pe),storystructure:s(Q),vetpatientchart:s(ge),scoutingreport:s(ve)};export{xe as n,$ as t};
@@ -1,2 +1,2 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import"./lib-CwruVYU_.js";import{n as o}from"./motion-CURfDtdH.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{n as c,r as l,t as u}from"./CodeOutput-D7sVg1Nr.js";var d=n();function f({title:e,icon:t=`alert`,iconColor:n=`var(--warning)`,errorType:r,message:o,frames:s,cause:c,fix:l,footer:u,delay:f}){let p=i[t]??i.alert,m=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`st-error-block`,children:[(0,d.jsx)(`div`,{className:`st-error-type`,children:r}),(0,d.jsx)(`div`,{className:`st-error-msg`,children:o}),c&&(0,d.jsxs)(`div`,{className:`st-cause`,children:[`Caused by: `,c]})]}),m.length>0&&(0,d.jsxs)(`div`,{className:`st-frames`,children:[(0,d.jsx)(`div`,{className:`st-frames-label`,children:`Call stack`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`st-frame${e.isUser?` user-code`:``}`,children:[(0,d.jsx)(`div`,{className:`st-frame-num`,style:{minWidth:`max-content`},children:t+1}),(0,d.jsxs)(`div`,{className:`st-file-col`,children:[(0,d.jsxs)(`div`,{className:`st-file`,children:[e.file,e.line==null?``:`:${e.line}`,e.col==null?``:`:${e.col}`]}),e.fn&&(0,d.jsx)(`div`,{className:`st-fn`,children:e.fn}),e.context&&(0,d.jsx)(`div`,{className:`st-ctx`,children:e.context})]})]},t))]}),l&&(0,d.jsxs)(`div`,{className:`st-fix`,children:[(0,d.jsx)(`div`,{className:`st-fix-label`,children:`Suggested fix`}),(0,d.jsx)(`div`,{children:l})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var p=r(),m=t();function h(e){switch(e){case`keyword`:case`type`:return`var(--insight)`;case`value`:return`var(--presence)`;case`comment`:return`var(--text-muted)`;default:return`var(--text-primary)`}}function g(e){let t=(0,p.c)(4),{tokens:n}=e,r;t[0]===n?r=t[1]:(r=n.map(_),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,d.jsx)(`div`,{className:`sb-tokens`,children:r}),t[2]=r,t[3]=i),i}function _(e,t){return(0,d.jsxs)(`span`,{className:`sb-token`,children:[(0,d.jsx)(`span`,{className:`sb-token-code`,style:{color:h(e.kind)},children:e.code}),(0,d.jsx)(`span`,{className:`sb-token-label`,children:e.label})]},t)}function v({title:e,icon:t=`doc`,iconColor:n,lang:r,lines:o,summary:s,runnable:f=!1,footer:p,delay:h}){let _=i[t]??i.doc,v=n??`var(--insight)`,y=o??[],b=(r??``).toLowerCase(),x=f&&l(b),S=y.map(e=>e.code).join(`
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-C7H7A1rW.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import"./lib-C7zXL8h0.js";import{n as o}from"./motion-dfA87zbb.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{n as c,r as l,t as u}from"./CodeOutput-Bg64AyKu.js";var d=n();function f({title:e,icon:t=`alert`,iconColor:n=`var(--warning)`,errorType:r,message:o,frames:s,cause:c,fix:l,footer:u,delay:f}){let p=i[t]??i.alert,m=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`st-error-block`,children:[(0,d.jsx)(`div`,{className:`st-error-type`,children:r}),(0,d.jsx)(`div`,{className:`st-error-msg`,children:o}),c&&(0,d.jsxs)(`div`,{className:`st-cause`,children:[`Caused by: `,c]})]}),m.length>0&&(0,d.jsxs)(`div`,{className:`st-frames`,children:[(0,d.jsx)(`div`,{className:`st-frames-label`,children:`Call stack`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`st-frame${e.isUser?` user-code`:``}`,children:[(0,d.jsx)(`div`,{className:`st-frame-num`,style:{minWidth:`max-content`},children:t+1}),(0,d.jsxs)(`div`,{className:`st-file-col`,children:[(0,d.jsxs)(`div`,{className:`st-file`,children:[e.file,e.line==null?``:`:${e.line}`,e.col==null?``:`:${e.col}`]}),e.fn&&(0,d.jsx)(`div`,{className:`st-fn`,children:e.fn}),e.context&&(0,d.jsx)(`div`,{className:`st-ctx`,children:e.context})]})]},t))]}),l&&(0,d.jsxs)(`div`,{className:`st-fix`,children:[(0,d.jsx)(`div`,{className:`st-fix-label`,children:`Suggested fix`}),(0,d.jsx)(`div`,{children:l})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var p=r(),m=t();function h(e){switch(e){case`keyword`:case`type`:return`var(--insight)`;case`value`:return`var(--presence)`;case`comment`:return`var(--text-muted)`;default:return`var(--text-primary)`}}function g(e){let t=(0,p.c)(4),{tokens:n}=e,r;t[0]===n?r=t[1]:(r=n.map(_),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,d.jsx)(`div`,{className:`sb-tokens`,children:r}),t[2]=r,t[3]=i),i}function _(e,t){return(0,d.jsxs)(`span`,{className:`sb-token`,children:[(0,d.jsx)(`span`,{className:`sb-token-code`,style:{color:h(e.kind)},children:e.code}),(0,d.jsx)(`span`,{className:`sb-token-label`,children:e.label})]},t)}function v({title:e,icon:t=`doc`,iconColor:n,lang:r,lines:o,summary:s,runnable:f=!1,footer:p,delay:h}){let _=i[t]??i.doc,v=n??`var(--insight)`,y=o??[],b=(r??``).toLowerCase(),x=f&&l(b),S=y.map(e=>e.code).join(`
2
2
  `),[C,w]=(0,m.useState)(null),T=(0,m.useCallback)(()=>w(null),[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:v}}),e,r&&(0,d.jsx)(`span`,{style:{marginLeft:`auto`,fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontSize:`var(--fs-xs, 11px)`,color:`var(--text-muted)`,textTransform:`lowercase`,letterSpacing:`0.03em`},children:r})]}),s&&(0,d.jsx)(`p`,{className:`sb-summary`,children:s}),(0,d.jsx)(`div`,{className:`sb-lines`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`sb-line-row`,style:t%2==0?{background:`var(--surface-elevated)`,borderRadius:`var(--r-sm)`}:{},children:[(0,d.jsxs)(`div`,{className:`sb-code-col`,children:[(0,d.jsx)(`div`,{className:`sb-code`,children:e.code}),e.tokens&&e.tokens.length>0&&(0,d.jsx)(g,{tokens:e.tokens})]}),e.explanation&&(0,d.jsx)(`div`,{className:`sb-exp`,style:{flex:`1.2`,minWidth:0,paddingTop:4},children:e.explanation})]},t))}),p&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)}),x&&(0,d.jsxs)(`div`,{style:{marginTop:10},children:[(0,d.jsx)(c,{code:S,lang:b,onResult:w}),C&&(0,d.jsx)(u,{result:C,onDismiss:T})]})]})}function y(e){let t=(0,p.c)(2),{step:n}=e;if(!n.code)return null;let r;return t[0]===n.code?r=t[1]:(r=(0,d.jsx)(`pre`,{className:`cw-code`,children:n.code}),t[0]=n.code,t[1]=r),r}function b({title:e,icon:t=`doc`,iconColor:n,algorithm:r,steps:o,footer:s,delay:c}){let l=i[t]??i.doc,u=n??`var(--presence)`,f=o??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:u}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`cw-algo`,children:r}),(0,d.jsx)(`div`,{className:`cw-steps`,children:f.map(e=>(0,d.jsxs)(`div`,{className:`cw-step`,children:[(0,d.jsx)(`div`,{className:`cw-num`,children:e.step}),(0,d.jsxs)(`div`,{className:`cw-body`,children:[(0,d.jsx)(`div`,{className:`cw-step-title`,children:e.title}),(0,d.jsx)(y,{step:e}),(0,d.jsx)(`div`,{className:`cw-exp`,children:e.explanation})]})]},e.step))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`sliders`,iconColor:n,component:r,props:o,footer:s,delay:c}){let l=i[t]??i.sliders,u=n??`var(--insight)`,f=o??[],p=f.reduce((e,t)=>e+ +!!t.required,0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:u}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`cap-head`,children:[(0,d.jsx)(`span`,{className:`cap-sig`,children:r}),f.length>0&&(0,d.jsxs)(`span`,{className:`cap-count`,children:[f.length,` `,f.length===1?`prop`:`props`,p>0&&(0,d.jsxs)(`span`,{className:`cap-count-req`,children:[` · `,p,` required`]})]})]}),f.length>0?(0,d.jsx)(`div`,{className:`cap-scroll`,children:(0,d.jsxs)(`div`,{className:`cap-table`,role:`table`,children:[(0,d.jsxs)(`div`,{className:`cap-row cap-row--head`,role:`row`,children:[(0,d.jsx)(`span`,{className:`cap-th cap-c-name`,role:`columnheader`,children:`Prop`}),(0,d.jsx)(`span`,{className:`cap-th cap-c-type`,role:`columnheader`,children:`Type`}),(0,d.jsx)(`span`,{className:`cap-th cap-c-default`,role:`columnheader`,children:`Default`})]}),f.map((e,t)=>(0,d.jsxs)(`div`,{className:`cap-row`,role:`row`,children:[(0,d.jsxs)(`div`,{className:`cap-cell cap-c-name`,role:`cell`,children:[(0,d.jsx)(`span`,{className:`cap-name`,children:e.name}),e.required?(0,d.jsxs)(`span`,{className:`cap-req`,title:`Required`,children:[(0,d.jsx)(i.alert,{className:`ic cap-req-ic`,style:{width:11,height:11}}),`required`]}):(0,d.jsx)(`span`,{className:`cap-opt`,title:`Optional`,children:`optional`})]}),(0,d.jsx)(`div`,{className:`cap-cell cap-c-type`,role:`cell`,children:(0,d.jsx)(`span`,{className:`cap-type`,children:e.type})}),(0,d.jsx)(`div`,{className:`cap-cell cap-c-default`,role:`cell`,children:e.default!=null&&e.default!==``?(0,d.jsx)(`span`,{className:`cap-default`,children:e.default}):(0,d.jsx)(`span`,{className:`cap-dash`,children:`—`})}),e.desc&&(0,d.jsx)(`div`,{className:`cap-desc`,role:`cell`,children:e.desc})]},`${e.name}-${t}`))]})}):(0,d.jsx)(`p`,{className:`cap-empty`,children:`No props documented.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function S({title:e,icon:t=`chevR`,iconColor:n=`var(--presence)`,prompt:r=`$`,lines:o,exitCode:s,caption:c,footer:l,delay:u}){let f=i[t]??i.chevR,p=o??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`term`,role:`img`,"aria-label":e?`Terminal: ${e}`:`Terminal session`,children:[(0,d.jsxs)(`div`,{className:`term-bar`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{className:`term-dot term-dot-a`}),(0,d.jsx)(`span`,{className:`term-dot term-dot-b`}),(0,d.jsx)(`span`,{className:`term-dot term-dot-c`}),(0,d.jsx)(`span`,{className:`term-bar-label`,children:r})]}),(0,d.jsxs)(`div`,{className:`term-body`,children:[p.map((e,t)=>(0,d.jsx)(C,{line:e,prompt:r},t)),s!=null&&(0,d.jsxs)(`div`,{className:`term-exit${s===0?` ok`:` err`}`,children:[`exit `,s,s===0?` · ok`:` · failed`]})]})]}),c&&(0,d.jsx)(`div`,{className:`term-caption`,children:c}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(l)})]})}function C(e){let t=(0,p.c)(18),{line:n,prompt:r}=e,i=n.kind??`stdout`;if(i===`command`){let e=n.text??``,i,a;if(t[0]!==e){let n=e.indexOf(` `);i=n===-1?e:e.slice(0,n),a=n===-1?``:e.slice(n),t[0]=e,t[1]=i,t[2]=a}else i=t[1],a=t[2];let o=a,s=n.prompt??r,c;t[3]===s?c=t[4]:(c=(0,d.jsx)(`span`,{className:`term-prompt`,children:s}),t[3]=s,t[4]=c);let l;t[5]===i?l=t[6]:(l=(0,d.jsx)(`span`,{className:`term-cmd-head`,children:i}),t[5]=i,t[6]=l);let u;t[7]!==o||t[8]!==l?(u=(0,d.jsxs)(`span`,{className:`term-cmd-text`,children:[l,o]}),t[7]=o,t[8]=l,t[9]=u):u=t[9];let f;return t[10]!==c||t[11]!==u?(f=(0,d.jsxs)(`div`,{className:`term-line term-cmd`,children:[c,u]}),t[10]=c,t[11]=u,t[12]=f):f=t[12],f}if(i===`comment`){let e;return t[13]===n.text?e=t[14]:(e=(0,d.jsxs)(`div`,{className:`term-line term-comment`,children:[`# `,n.text]}),t[13]=n.text,t[14]=e),e}let a=`term-line term-${i===`stderr`?`err`:`out`}`,o;return t[15]!==n.text||t[16]!==a?(o=(0,d.jsx)(`div`,{className:a,children:n.text}),t[15]=n.text,t[16]=a,t[17]=o):o=t[17],o}var w=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];function T({title:e,icon:t=`layers`,iconColor:n=`var(--insight)`,entries:r,caption:o,footer:s,delay:c}){let l=i[t]??i.layers,u=(0,m.useMemo)(()=>r??[],[r]),[f,p]=(0,m.useState)(null),h=(0,m.useMemo)(()=>{let e={};for(let t of w)e[t]=0;for(let t of u)t?.level&&e[t.level]!=null&&(e[t.level]+=1);return e},[u]),g=f?u.filter(e=>e.level===f):u,_=w.filter(e=>h[e]>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),_.length>0&&(0,d.jsx)(`div`,{className:`log-vol`,role:`group`,"aria-label":`Filter by level`,children:_.map(e=>(0,d.jsxs)(`button`,{type:`button`,className:`log-chip log-${e}${f===e?` on`:``}`,"aria-pressed":f===e,onClick:()=>p(f===e?null:e),children:[(0,d.jsx)(`span`,{className:`log-chip-name`,children:e}),(0,d.jsx)(`span`,{className:`log-chip-count`,children:h[e]})]},e))}),(0,d.jsxs)(`div`,{className:`log-feed`,children:[g.map((e,t)=>(0,d.jsxs)(`div`,{className:`log-row log-${e.level}`,children:[e.time&&(0,d.jsx)(`span`,{className:`log-time`,children:e.time}),(0,d.jsx)(`span`,{className:`log-pill log-${e.level}`,children:e.level}),e.source&&(0,d.jsx)(`span`,{className:`log-src`,children:e.source}),(0,d.jsx)(`span`,{className:`log-msg`,children:e.message})]},t)),g.length===0&&(0,d.jsx)(`div`,{className:`log-empty`,children:`No entries`})]}),o&&(0,d.jsx)(`div`,{className:`term-caption`,children:o}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(s)})]})}function E(e){let t=(0,p.c)(5),{d:n,color:r,delay:i}=e,a=(0,m.useRef)(null),s;t[0]===i?s=t[1]:(s={delay:i},t[0]=i,t[1]=s),o(a,s);let c;return t[2]!==r||t[3]!==n?(c=(0,d.jsx)(`path`,{ref:a,d:n,fill:`none`,stroke:r,strokeWidth:2,strokeLinecap:`round`,opacity:.85}),t[2]=r,t[3]=n,t[4]=c):c=t[4],c}var D=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`,`var(--insight-soft)`],O=36,k=22,A=16,j=5.5,M=14;function N({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,branches:r,commits:o,caption:s,footer:c,delay:l}){let u=i[t]??i.share,f=o??[],p=f.slice(0,M),m=f.length-p.length,h=r?.length?r:p.reduce((e,t)=>e.includes(t.branch)?e:[...e,t.branch],[]),g=e=>Math.max(0,h.indexOf(e)),_=e=>D[g(e)%D.length],v=new Map(p.map((e,t)=>[e.id,t])),y=e=>A+e*k,b=e=>e*O+O/2,x=A*2+Math.max(0,h.length-1)*k,S=Math.max(O,p.length*O);return p.length===0?(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`log-empty`,children:`No commits`})]}):(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),h.length>1&&(0,d.jsx)(`div`,{className:`gg-legend`,children:h.map((e,t)=>(0,d.jsxs)(`span`,{className:`gg-leg`,children:[(0,d.jsx)(`span`,{className:`gg-leg-dot`,style:{background:D[t%D.length]}}),e]},e))}),(0,d.jsxs)(`div`,{className:`gg`,children:[(0,d.jsxs)(`svg`,{className:`gg-graph`,width:x,height:S,viewBox:`0 0 ${x} ${S}`,style:{flex:`0 0 ${x}px`},"aria-hidden":`true`,children:[p.map((e,t)=>{let n=y(g(e.branch)),r=b(t);return(e.parents??[]).map(t=>{let i=v.get(t);if(i==null)return null;let a=y(g(p[i].branch)),o=b(i);return(0,d.jsx)(E,{d:n===a?`M ${n} ${r} L ${a} ${o}`:`M ${n} ${r} C ${n} ${r+O*.6}, ${a} ${o-O*.6}, ${a} ${o}`,color:_(p[i].branch),delay:l},`${e.id}-${t}`)})}),p.map((e,t)=>{let n=y(g(e.branch)),r=b(t);return(0,d.jsxs)(`g`,{children:[e.head&&(0,d.jsx)(`circle`,{cx:n,cy:r,r:8.5,fill:`none`,stroke:_(e.branch),strokeWidth:1.5,opacity:.5}),(0,d.jsx)(`circle`,{cx:n,cy:r,r:j,fill:_(e.branch)})]},e.id)})]}),(0,d.jsx)(`div`,{className:`gg-rows`,children:p.map(e=>(0,d.jsxs)(`div`,{className:`gg-row`,style:{height:O},children:[(0,d.jsx)(`span`,{className:`gg-hash`,children:e.id}),(0,d.jsx)(`span`,{className:`gg-msg`,children:e.message}),e.tag&&(0,d.jsx)(`span`,{className:`gg-tag`,children:e.tag}),e.head&&(0,d.jsx)(`span`,{className:`gg-head`,children:`HEAD`})]},e.id))})]}),m>0&&(0,d.jsxs)(`div`,{className:`gg-more`,children:[`+`,m,` older commits`]}),s&&(0,d.jsx)(`div`,{className:`term-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(c)})]})}var P=18;function F({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,sql:r,nodes:o,caption:s,footer:c,delay:l}){let u=i[t]??i.layers,f=o??[],p=e=>e>=1e3?`${(e/1e3).toFixed(e>=1e4?0:1)}k`:String(e);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`pre`,{className:`qp-sql`,children:r}),(0,d.jsxs)(`div`,{className:`qp-tree`,children:[f.map((e,t)=>(0,d.jsxs)(`div`,{className:`qp-node${e.slow?` slow`:``}`,style:{marginLeft:Math.max(0,e.depth??0)*P},children:[(0,d.jsxs)(`div`,{className:`qp-node-main`,children:[(0,d.jsx)(`span`,{className:`qp-op`,children:e.op}),e.detail&&(0,d.jsx)(`span`,{className:`qp-detail`,children:e.detail})]}),(0,d.jsxs)(`div`,{className:`qp-metrics`,children:[e.rows!=null&&(0,d.jsxs)(`span`,{className:`qp-metric`,children:[p(e.rows),(0,d.jsx)(`i`,{children:` rows`})]}),e.cost!=null&&(0,d.jsxs)(`span`,{className:`qp-metric`,children:[e.cost,(0,d.jsx)(`i`,{children:` cost`})]}),e.timeMs!=null&&(0,d.jsxs)(`span`,{className:`qp-metric${e.slow?` qp-hot`:``}`,children:[e.timeMs,(0,d.jsx)(`i`,{children:` ms`})]})]})]},t)),f.length===0&&(0,d.jsx)(`div`,{className:`log-empty`,children:`No plan`})]}),s&&(0,d.jsx)(`div`,{className:`term-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(c)})]})}var I=22,L=80;function R(e){let t=[],n=[],r=0,i=0;for(let a of e){for(;n.length&&n[n.length-1].depth>=a.depth;)n.pop();let e=n[n.length-1],o=e?e.cursor:r,s=Math.max(0,a.value||0);t.push({f:a,x:o,w:s}),e?e.cursor+=s:r+=s,n.push({depth:a.depth,cursor:o}),a.depth>i&&(i=a.depth)}return{placed:t,total:r||1,maxDepth:i}}function z({title:e,icon:t=`layers`,iconColor:n=`var(--warning)`,frames:r,unit:o,caption:s,footer:c,delay:l}){let u=i[t]??i.layers,f=(r??[]).slice(0,L);if(f.length===0)return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`log-empty`,children:`No samples`})]});let{placed:p,total:m,maxDepth:h}=R(f),g=(h+1)*I,_=e=>`${e}${o?` ${o}`:``}`;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`flame`,style:{height:g},children:p.map(({f:e,x:t,w:n},r)=>{let i=t/m*100,a=Math.min(100-i,n/m*100);if(a<=0)return null;let o=Math.round(n/m*100);return(0,d.jsx)(`div`,{className:`flame-cell${e.hot?` hot`:``}`,style:{left:`${i}%`,width:`${a}%`,top:e.depth*I,"--d":String(e.depth)},title:`${e.name} — ${_(n)} (${o}%)`,"aria-label":`${e.name} — ${_(n)} (${o}%)`,children:(0,d.jsx)(`span`,{className:`flame-label`,children:e.name})},r)})}),(0,d.jsxs)(`div`,{className:`flame-foot`,children:[(0,d.jsxs)(`span`,{children:[`total `,_(m),` · `,f.length,` frames`]}),p.some(e=>e.f.hot)&&(0,d.jsx)(`span`,{className:`flame-hot-key`,children:`hot path`})]}),s&&(0,d.jsx)(`div`,{className:`term-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(c)})]})}function B({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,pattern:r,flags:o,parts:s,samples:c,caption:l,footer:u,delay:f}){let p=i[t]??i.spark,m=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`rx-pattern`,children:[(0,d.jsx)(`span`,{className:`rx-slash`,children:`/`}),(0,d.jsx)(`span`,{className:`rx-src`,children:r}),(0,d.jsx)(`span`,{className:`rx-slash`,children:`/`}),o&&(0,d.jsx)(`span`,{className:`rx-flags`,children:o})]}),(0,d.jsx)(`div`,{className:`rx-parts`,children:m.map((e,t)=>(0,d.jsxs)(`div`,{className:`rx-part`,children:[(0,d.jsx)(`code`,{className:`rx-token rx-${e.kind??`other`}`,children:e.token}),(0,d.jsx)(`span`,{className:`rx-label`,children:e.label})]},t))}),c&&c.length>0&&(0,d.jsx)(`div`,{className:`rx-samples`,children:c.map((e,t)=>(0,d.jsxs)(`div`,{className:`rx-sample`,children:[e.label&&(0,d.jsx)(`span`,{className:`rx-sample-label`,children:e.label}),(0,d.jsx)(`code`,{className:`rx-sample-text`,children:e.segments.map((e,t)=>e.match?(0,d.jsx)(`mark`,{className:`rx-hit`,style:e.group==null?void 0:{"--g":String(e.group%4)},children:e.text},t):(0,d.jsx)(`span`,{children:e.text},t))})]},t))}),l&&(0,d.jsx)(`div`,{className:`term-caption`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(u)})]})}var V=`-`,H={dna:`DNA`,rna:`RNA`,protein:`Protein`};function U(e,t){let n=e?e[t]:void 0;return n===void 0?V:n}function W(e){let t=0;for(let n of e)t=Math.max(t,n?.chars?.length??0);return t}function G(e,t){let n=Array(t).fill(!0);for(let r=0;r<t;r++){let t=null;for(let i of e){let e=U(i?.chars,r);if(t===null)t=e;else if(e!==t){n[r]=!1;break}}}return n}function K(e,t){let n=``;for(let r=0;r<t;r++){let t=new Map;for(let n of e){let e=U(n?.chars,r);e!==V&&t.set(e,(t.get(e)??0)+1)}if(t.size===0){n+=V;continue}let i=V,a=0,o=!1;for(let[e,n]of t)n>a?(i=e,a=n,o=!1):n===a&&(o=!0);n+=o?`.`:i}return n}function q({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,kind:r,sequences:o,consensus:s,highlightMismatches:c=!1,footer:l,delay:u}){let f=i[t]??i.layers,p=(0,m.useMemo)(()=>Array.isArray(o)?o.filter(e=>!!e):[],[o]),h=(0,m.useMemo)(()=>W(p),[p]),g=(0,m.useMemo)(()=>c&&h>0?G(p,h):null,[c,p,h]),_=s?.trim(),v=(0,m.useMemo)(()=>_&&p.length>0&&h>0?K(p,h):null,[_,p,h]),y=H[r]??`Sequence`;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sq-head`,children:[(0,d.jsx)(`span`,{className:`sq-kind`,children:y}),(0,d.jsxs)(`span`,{className:`sq-stat`,children:[p.length,` read`,p.length===1?``:`s`,` · `,h,` col`,h===1?``:`s`]})]}),p.length===0||h===0?(0,d.jsx)(`div`,{className:`sq-empty`,children:`No sequence data to align.`}):(0,d.jsx)(`div`,{className:`sq-scroll`,role:`table`,"aria-label":`${y} alignment: ${p.length} reads, ${h} columns`,children:(0,d.jsxs)(`div`,{className:`sq-rows`,children:[p.map((e,t)=>(0,d.jsx)(J,{index:t,label:e?.label,chars:e?.chars,width:h,conserved:g},t)),v&&(0,d.jsxs)(`div`,{className:`sq-row sq-consensus`,role:`row`,children:[(0,d.jsx)(`span`,{className:`sq-label`,children:_}),(0,d.jsx)(`span`,{className:`sq-chars`,children:Array.from({length:h},(e,t)=>{let n=v[t];return(0,d.jsx)(`span`,{className:`sq-char${n===V?` gap`:n===`.`?` ambiguous`:``}`,children:n},t)})})]})]})}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(l)})]})}function J({index:e,label:t,chars:n,width:r,conserved:i}){let a=t?.trim()||`Sequence ${e+1}`;return(0,d.jsxs)(`div`,{className:`sq-row m-stagger-item m-fade-rise`,role:`row`,style:{"--i":e},children:[(0,d.jsx)(`span`,{className:`sq-label`,title:a,children:a}),(0,d.jsx)(`span`,{className:`sq-chars`,children:Array.from({length:r},(e,t)=>{let r=U(n,t),a=r===V,o=!a&&i!==null&&i[t]===!1;return(0,d.jsx)(`span`,{className:`sq-char${a?` gap`:``}${o?` mismatch`:``}`,children:r},t)})})]})}var Y=e({codeRegistry:()=>X}),X={stacktrace:s(f),syntaxbreakdown:s(v),codewalk:s(b),componentapi:s(x),terminal:s(S),logstream:s(T),gitgraph:s(N),queryplan:s(F),flamegraph:s(z),regexscope:s(B),sequencealign:s(q)};export{Y as n,X as t};