@mavea/mavea 2.0.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/PRIVACY.md +9 -2
- package/README.md +7 -1
- package/SECURITY.md +1 -1
- package/TERMS.md +12 -4
- package/TRADEMARKS.md +3 -1
- package/dist/.vite/manifest.json +878 -838
- package/dist/assets/AnnotationLayer-0YQgrjN3.js +2 -0
- package/dist/assets/AnnotationLayer-BRYhJ1LB.css +1 -0
- package/dist/assets/{AppCommandPalette-Cucwjk5N.js → AppCommandPalette-CeNtZzhG.js} +1 -1
- package/dist/assets/{AtlasView-DO_p0TdZ.js → AtlasView-CYZ9sfXb.js} +1 -1
- package/dist/assets/BlockEmpty-B-giiUPy.js +1 -0
- package/dist/assets/{CadenceCard-DxceyiPA.js → CadenceCard-j1V7XOxX.js} +1 -1
- package/dist/assets/{CheckLogRail-vq2lZ7a5.js → CheckLogRail-CPKGKw7i.js} +1 -1
- package/dist/assets/{CommandPalette-Bs6tpdZl.js → CommandPalette-Cz8h94Jd.js} +1 -1
- package/dist/assets/ConversationVideoStudio-BLU1b2u_.js +1 -0
- package/dist/assets/CourseLessonReader-Ci4BguIU.js +2 -0
- package/dist/assets/CourseLessonReader-DNHFQOkX.css +1 -0
- package/dist/assets/{CourseRail-CUa7uIGG.css → CourseRail-BDQIWara.css} +1 -1
- package/dist/assets/{CourseRail-BQmUsG6v.js → CourseRail-DD8gtAn4.js} +1 -1
- package/dist/assets/CoursesApp-CErXxpH-.js +2 -0
- package/dist/assets/{DashPresent-DZcRdu6R.js → DashPresent-w5oqKZpo.js} +1 -1
- package/dist/assets/DashboardDetail-Dej7CPf7.js +2 -0
- package/dist/assets/DashboardLoopGate-DzJol3Os.js +2 -0
- package/dist/assets/DashboardLoopRuntime-CX63-Gn4.js +1 -0
- package/dist/assets/{DashboardSettings-DJon1Q4o.js → DashboardSettings-5tn-dw6G.js} +1 -1
- package/dist/assets/DashboardsApp-BQtz_4UA.js +2 -0
- package/dist/assets/DeepZoomApp-STtNq9C3.js +37 -0
- package/dist/assets/DelegatePanel-C2_s1eW9.js +33 -0
- package/dist/assets/{DemoGallery-BcQ9yz2u.js → DemoGallery-CXoaPF9b.js} +1 -1
- package/dist/assets/{DropSelect-GKioj__f.js → DropSelect-rrPFJVkl.js} +1 -1
- package/dist/assets/{ExportModal-1pWr-c7I.js → ExportModal-BS3He6V7.js} +1 -1
- package/dist/assets/ExportModal-sX8MPVPW.css +1 -0
- package/dist/assets/{ExtractionPreview-TKyfEqwM.js → ExtractionPreview-CQ73RXM8.js} +2 -2
- package/dist/assets/FeatureUseNotice-lFcApjaS.js +1 -0
- package/dist/assets/{FlagshipCommandPalette-D1pv3hfZ.js → FlagshipCommandPalette-D6gjWvTe.js} +1 -1
- package/dist/assets/{FlagshipShowcase-CCFFcaL7.js → FlagshipShowcase-mZDqHQtE.js} +1 -1
- package/dist/assets/{FlashcardsApp-Dbe-8UkQ.js → FlashcardsApp-C8gRaBO8.js} +1 -1
- package/dist/assets/GalleryApp-ChsuVZqR.js +1 -0
- package/dist/assets/{HonestByDesign-ByOR1sRQ.js → HonestByDesign-Czur9n6R.js} +1 -1
- package/dist/assets/{HowItWorks-Dllc30ph.js → HowItWorks-CA9WdZQ6.js} +1 -1
- package/dist/assets/LegalApp-BCnZfHNq.js +1 -0
- package/dist/assets/{LegalMarkdownDocument-CmxHsXlb.js → LegalMarkdownDocument-CNsihJ1F.js} +1 -1
- package/dist/assets/{LegalPageShell-CDD6D6T_.js → LegalPageShell-8HHhJAPo.js} +1 -1
- package/dist/assets/Library-CDgWdTiF.js +1 -0
- package/dist/assets/{LibraryOverlay-CHmubwG3.js → LibraryOverlay-CGDPmvnX.js} +1 -1
- package/dist/assets/LiveApp-CEaISHEZ.css +1 -0
- package/dist/assets/LiveApp-CnTYFYf1.js +79 -0
- package/dist/assets/LiveSettings-Bx7Uu6Fl.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-BLRBWsTz.js → MindMapViewerDrawer-CBLaSq-i.js} +1 -1
- package/dist/assets/{MindShape-CaDuLyGa.js → MindShape-QuVL_EXi.js} +1 -1
- package/dist/assets/{PinToDashboard-ChK2Ou73.js → PinToDashboard-CddhBx85.js} +1 -1
- package/dist/assets/{PlanReview-Dg6VE0xF.js → PlanReview-DCPDkqLj.js} +1 -1
- package/dist/assets/PresentationDeck-DV8AeOrh.js +1 -0
- package/dist/assets/PrismApp-BHcClSEQ.js +2 -0
- package/dist/assets/{PrismAskController-C4MuB8om.js → PrismAskController-BgwijoI2.js} +1 -1
- package/dist/assets/PrismBriefingPlayer-CDkaBWup.js +2 -0
- package/dist/assets/PrismOverlay-5ZVXu4WL.css +1 -0
- package/dist/assets/PrismOverlay-DRWAI9Mh.js +105 -0
- package/dist/assets/PrismWorkbench-B2uSg63W.js +1 -0
- package/dist/assets/{PrivacyApp-CBPMqUEA.js → PrivacyApp-CoFgfPwJ.js} +10 -3
- package/dist/assets/ReplayCard-CLlaKpWg.js +2 -0
- package/dist/assets/ReplayOverlay-W3KwhRaQ.js +1 -0
- package/dist/assets/{RewindOverlay-BO7YgDsW.js → RewindOverlay-okltPbfw.js} +1 -1
- package/dist/assets/{RippleApp-BnIUhIA0.js → RippleApp-CEJvJl-c.js} +2 -2
- package/dist/assets/{RippleAskController-BzdwYcYY.js → RippleAskController-BqnazbZ7.js} +1 -1
- package/dist/assets/{RippleOverlay-C9W7uVOp.js → RippleOverlay-DHnHEYoS.js} +2 -2
- package/dist/assets/{SeeDontRead-ByW9HnOj.js → SeeDontRead-tA-fTWQW.js} +1 -1
- package/dist/assets/ShareModal-Ys5NYDZR.js +2 -0
- package/dist/assets/{ShipCourse-CT_F9oJH.js → ShipCourse-C3pjBELa.js} +1 -1
- package/dist/assets/{SignatureLoop-DejFTZ-Y.js → SignatureLoop-BNjDbepH.js} +1 -1
- package/dist/assets/SynthesisApp-BCsFms4h.js +2 -0
- package/dist/assets/SynthesisOverlay-iqXO09rf.js +66 -0
- package/dist/assets/TemplatePicker-PWw_xyWb.js +1 -0
- package/dist/assets/{TermsApp-ZzlhrXhd.js → TermsApp-B1D2SwN7.js} +13 -5
- package/dist/assets/TopicCanvas-xwDjwqxn.js +2 -0
- package/dist/assets/{TourPrism-Cng4h9Ly.js → TourPrism-Do4evVOo.js} +1 -1
- package/dist/assets/{TrackerTile-DuUsFQTj.js → TrackerTile-Dp7fvG4P.js} +2 -2
- package/dist/assets/{TwoSurfaces-BeYMvVuX.js → TwoSurfaces-CZA6zuue.js} +1 -1
- package/dist/assets/WorldOverlay-CLWtwuSl.css +1 -0
- package/dist/assets/WorldOverlay-EwAFBDvq.js +2 -0
- package/dist/assets/{WowFeatures-D58JgpLg.js → WowFeatures-DRKs2UGb.js} +1 -1
- package/dist/assets/{ZoomDeck-CPG2XQhr.js → ZoomDeck-qJqKFxkc.js} +1 -1
- package/dist/assets/{alternateFinishes-Cgks49KV.js → alternateFinishes-BHcX08Hs.js} +2 -2
- package/dist/assets/annotationAuto-B8_I3PNS.js +1 -0
- package/dist/assets/annotationReel-BA8Fv9Or.js +1 -0
- package/dist/assets/audioTrack-myyVq6Sp.js +1 -0
- package/dist/assets/{BlockEmpty-B82uCse8.js → axis-DHAV38YM.js} +1 -1
- package/dist/assets/backup-DkCsHNEE.js +1 -0
- package/dist/assets/cache-7UEbF3S6.js +1 -0
- package/dist/assets/canvas-OSBUSYbY.js +1 -0
- package/dist/assets/capture-MMxmbgt1.js +2 -0
- package/dist/assets/{catalog-DfIYAG3v.js → catalog-CRekRbKO.js} +1 -1
- package/dist/assets/chapters-DcdG3Lu8.js +1 -0
- package/dist/assets/{codeContext-goNoLAIr.js → codeContext-CFnI3GLf.js} +1 -1
- package/dist/assets/{confirmAdd-CxWIORcu.js → confirmAdd-VLwpBNf_.js} +1 -1
- package/dist/assets/contentVault-XKWjF2FB.js +1 -0
- package/dist/assets/{dashboardEvents-D1OP4ARB.js → dashboardEvents-CiE91_oj.js} +1 -1
- package/dist/assets/{deepen-BhP9OmH3.js → deepen-FZiVqiEc.js} +1 -1
- package/dist/assets/effort-CQY4uJMS.js +39 -0
- package/dist/assets/empty-D51uhW0E.js +1 -0
- package/dist/assets/explode-niun7Zqc.js +15 -0
- package/dist/assets/{format-g3dP8OI3.js → format-BkvssSOr.js} +1 -1
- package/dist/assets/{generate-COfYQFmT.js → generate-BZobrQPX.js} +1 -1
- package/dist/assets/{generateBeats-CtffeoEa.js → generateBeats-Ci99Isyk.js} +1 -1
- package/dist/assets/generateCourse-DPL0bO3L.js +28 -0
- package/dist/assets/generateLive-DzBVo6Yg.js +24 -0
- package/dist/assets/{gesture-Bouqjr3g.js → gesture-BBS5nQEi.js} +2 -2
- package/dist/assets/{githubBrowser-BDiuD9dz.js → githubBrowser-CErQprLW.js} +1 -1
- package/dist/assets/homeTarget-CDc-r2mj.js +1 -0
- package/dist/assets/http-Bqk6nJiH.js +2 -0
- package/dist/assets/index-CFE0vqqO.css +1 -0
- package/dist/assets/{index-CdUH6Eo9.js → index-yJfYsjAB.js} +4 -4
- package/dist/assets/json-J4Y32_i9.js +1 -0
- package/dist/assets/kokoro-DogSQaQB.js +1 -0
- package/dist/assets/{ledger-Cv0LBflx.js → ledger-DHS2di3l.js} +1 -1
- package/dist/assets/lens-DyGK7Owa.js +1 -0
- package/dist/assets/{lib-u95BsX_B.js → lib-Dkb5WBRc.js} +1 -1
- package/dist/assets/liveSchema-Z_39HuDI.js +125 -0
- package/dist/assets/{loader-ChcXMM9W.js → loader-BPVv7hEn.js} +2 -2
- package/dist/assets/{model-CAewjw45.js → model-FR-9md4s.js} +1 -1
- package/dist/assets/{neighborhoods-CqECCmo8.js → neighborhoods-B56WegJs.js} +1 -1
- package/dist/assets/notes-C-RNIoXo.js +1 -0
- package/dist/assets/offers-eBNj_lSP.js +1 -0
- package/dist/assets/{openWorld-BHTJM39n.js → openWorld-B4VY6xO7.js} +1 -1
- package/dist/assets/{owners-HRBX7JN_.js → owners-CP-4Q59L.js} +1 -1
- package/dist/assets/{pen-DtEW1xf4.js → pen-UKrUHlDA.js} +1 -1
- package/dist/assets/{penStrokes-DlHnO9xE.js → penStrokes-CTC3AYiz.js} +1 -1
- package/dist/assets/{perfProbe-DaLsQQBb.js → perfProbe-q5Gt55We.js} +1 -1
- package/dist/assets/{pin-BcKMUOiV.js → pin-BReqt-Wx.js} +1 -1
- package/dist/assets/{planTracker-BwoKEftp.js → planTracker-BA-x4jbw.js} +1 -1
- package/dist/assets/{portal-BIN_aqvw.js → portal-XWyi6FIz.js} +1 -1
- package/dist/assets/prewarm-DOqg5zPk.js +1 -0
- package/dist/assets/providers-CPhoN8j0.js +1 -0
- package/dist/assets/quietHours-kEvnJP2S.js +1 -0
- package/dist/assets/{ready-yBSGJubb.js → ready-_sg3IJkE.js} +1 -1
- package/dist/assets/{registry-DdgeK4fY.js → registry-B7zPuTCI.js} +1 -1
- package/dist/assets/{registry-BFQQpjO2.js → registry-BB0UFcJi.js} +1 -1
- package/dist/assets/registry-BQuygaKz.js +1 -0
- package/dist/assets/{registry-Bl2qfp5V.js → registry-Bjf2Ggs6.js} +1 -1
- package/dist/assets/{registry-CE1T0z9x.js → registry-BmjYillB.js} +1 -1
- package/dist/assets/{registry-DGNSqTxE.js → registry-BodYWiga.js} +1 -1
- package/dist/assets/{registry-Dt0wu9rC.js → registry-BvtWVDCw.js} +1 -1
- package/dist/assets/{registry-BdHj_oIs.js → registry-C3bIc5Kp.js} +1 -1
- package/dist/assets/{registry-C8FuGbOr.js → registry-CQ0bMOV_.js} +1 -1
- package/dist/assets/{registry-CvylL2BN.css → registry-CmWPyj7Q.css} +1 -1
- package/dist/assets/{registry-CcHxIYQN.js → registry-CnDAxBcl.js} +1 -1
- package/dist/assets/{registry-BDXwUn3i.js → registry-CvtHBjkb.js} +1 -1
- package/dist/assets/{registry-Dd1lcXrO.js → registry-Cz5cZREW.js} +2 -2
- package/dist/assets/registry-DTNUXJuV.js +1 -0
- package/dist/assets/{registry-DdVZGvkL.js → registry-Di1fTdpi.js} +1 -1
- package/dist/assets/registry-GxnzELw0.js +1 -0
- package/dist/assets/{registry-Cgo4C0ux.js → registry-JRteQJcE.js} +1 -1
- package/dist/assets/registry-MwJlqlFZ.js +1 -0
- package/dist/assets/{registry-B53EEn8S.js → registry-YrewlFlo.js} +1 -1
- package/dist/assets/{registry-qRfnKTt4.js → registry-uiAoJKXu.js} +1 -1
- package/dist/assets/{relate-CqYpFpsO.js → relate-CsRMEWBw.js} +1 -1
- package/dist/assets/{replay-NognvQfM.js → replay-BlrkSDMO.js} +1 -1
- package/dist/assets/{run-CwMSPOps.js → run-BVgCc5Xi.js} +1 -1
- package/dist/assets/{run-DCQrxgHA.js → run-CW67JOGe.js} +1 -1
- package/dist/assets/{run-CuHaB8wF.js → run-DqsfL9JC.js} +1 -1
- package/dist/assets/{select-Dp-OeZfq.js → select-BuqyXI8k.js} +1 -1
- package/dist/assets/sentenceCase-CLDiNB0f.js +1 -0
- package/dist/assets/shard070-BmNyRhxw.js +1 -0
- package/dist/assets/spokenText-Dy-GZvZV.js +1 -0
- package/dist/assets/store-C9s8Bfz0.js +1 -0
- package/dist/assets/store-CgA7mKy1.js +1 -0
- package/dist/assets/store-D16dGt7I.js +1 -0
- package/dist/assets/{store-BWLbFXiY.js → store-DqOaVRLn.js} +1 -1
- package/dist/assets/store-gfPI5TVE.js +1 -0
- package/dist/assets/useDashboardLoop-CA3LNVME.js +5 -0
- package/dist/assets/{useDashboards-lgQnk2Al.js → useDashboards-B-EjE8FH.js} +1 -1
- package/dist/assets/{useLedger-1WVXef68.js → useLedger-D4cXEwI0.js} +1 -1
- package/dist/assets/useLiveConfig-CvOQTr0s.js +1 -0
- package/dist/assets/useStudy-70Iz4ZVn.js +1 -0
- package/dist/assets/validate-MQG0EcTD.js +4 -0
- package/dist/assets/walkSync-BfK0U5vB.js +1 -0
- package/dist/fonts/LICENSE.txt +2 -0
- package/dist/fonts/PROVENANCE.md +1 -0
- package/dist/fonts/caveat-var-latin.woff2 +0 -0
- package/dist/fonts/fonts.css +10 -0
- package/dist/index.html +6 -2
- package/dist/legal/PRIVACY.md +9 -2
- package/dist/legal/SECURITY.md +1 -1
- package/dist/legal/TERMS.md +12 -4
- package/dist/legal/TRADEMARKS.md +3 -1
- package/docs/media/living-answer.jpg +0 -0
- package/package.json +1 -1
- package/dist/assets/AnnotationLayer-BsAcAd59.js +0 -0
- package/dist/assets/AnnotationLayer-ClU-e6qL.css +0 -1
- package/dist/assets/BriefingPlayer-74mRKyjl.js +0 -1
- package/dist/assets/ConversationVideoStudio-Df892wqs.js +0 -1
- package/dist/assets/CourseLessonReader-COmTQdSK.css +0 -1
- package/dist/assets/CourseLessonReader-DKQimh2S.js +0 -2
- package/dist/assets/CoursesApp-LeqL6dWT.js +0 -2
- package/dist/assets/DashboardDetail-2XL-J4rS.js +0 -2
- package/dist/assets/DashboardLoopGate-B95S4oKR.js +0 -2
- package/dist/assets/DashboardLoopRuntime-Wzk85QXi.js +0 -1
- package/dist/assets/DashboardsApp-ZGuT2QBi.js +0 -2
- package/dist/assets/DeepZoomApp-CPOsar8c.js +0 -37
- package/dist/assets/DelegatePanel-BkTtUMSl.js +0 -33
- package/dist/assets/ExportModal-D4WpAg2c.css +0 -1
- package/dist/assets/FeatureUseNotice-pQe4YHgJ.js +0 -1
- package/dist/assets/GalleryApp-CCLYcEqn.js +0 -1
- package/dist/assets/LegalApp-CpblxmmB.js +0 -1
- package/dist/assets/Library-CVj7R6F4.js +0 -1
- package/dist/assets/LiveApp-CSbjhgzM.js +0 -79
- package/dist/assets/LiveApp-CziqEsOb.css +0 -1
- package/dist/assets/LiveSettings-B4T6x41n.js +0 -6
- package/dist/assets/PresentationDeck-oEd6TXdN.js +0 -1
- package/dist/assets/PrismApp-Bju264hL.js +0 -2
- package/dist/assets/PrismBriefingPlayer-BY0RREUu.js +0 -2
- package/dist/assets/PrismOverlay-BwnF4BEn.css +0 -1
- package/dist/assets/PrismOverlay-DOWyOUVW.js +0 -105
- package/dist/assets/PrismWorkbench-9RonO2uv.js +0 -1
- package/dist/assets/ReplayCard-BnX73r9n.js +0 -2
- package/dist/assets/ReplayOverlay-B-Ok0mEs.js +0 -1
- package/dist/assets/ShareModal-Mo-dkgAZ.js +0 -2
- package/dist/assets/SynthesisApp-6W04mrMU.js +0 -2
- package/dist/assets/SynthesisOverlay-DDyFFiO8.js +0 -66
- package/dist/assets/TopicCanvas-CkqP92SC.js +0 -2
- package/dist/assets/WorldOverlay-D7ay5y4D.css +0 -1
- package/dist/assets/WorldOverlay-DeVpS8HE.js +0 -2
- package/dist/assets/annotationAuto-B2UdfJNj.js +0 -1
- package/dist/assets/annotationReel-K2FYv-3B.js +0 -1
- package/dist/assets/backup-CtEvuZoL.js +0 -1
- package/dist/assets/cache-CvbSI-pr.js +0 -1
- package/dist/assets/canvas-Ct-O9Jok.js +0 -1
- package/dist/assets/capture-CgaD86-q.js +0 -2
- package/dist/assets/chapters-CIvdCeBC.js +0 -1
- package/dist/assets/contentVault-xfUwSJ3i.js +0 -1
- package/dist/assets/effort-Bqti44UZ.js +0 -39
- package/dist/assets/empty-BO1NC9qY.js +0 -1
- package/dist/assets/explode-CPnvJiTg.js +0 -15
- package/dist/assets/friendlyAsk-BBdRZIar.js +0 -1
- package/dist/assets/generateCourse-BldPpgdh.js +0 -28
- package/dist/assets/generateLive-D5M8v38b.js +0 -24
- package/dist/assets/homeTarget-CwFsJYwb.js +0 -1
- package/dist/assets/http-Lar_UMKb.js +0 -2
- package/dist/assets/index-BIUYTk1W.css +0 -1
- package/dist/assets/json-B0N3XRZU.js +0 -1
- package/dist/assets/kokoro-D15HDMcP.js +0 -1
- package/dist/assets/lens-ChFJD9il.js +0 -1
- package/dist/assets/liveSchema-B8Y9HZxd.js +0 -100
- package/dist/assets/notes-BG5pIVAJ.js +0 -1
- package/dist/assets/prewarm-CyvSJKv4.js +0 -1
- package/dist/assets/providers-0DthJW_I.js +0 -1
- package/dist/assets/quietHours-D1nboK5q.js +0 -1
- package/dist/assets/registry-BQzvA61G.js +0 -1
- package/dist/assets/registry-CPImC7mO.js +0 -1
- package/dist/assets/registry-DPBJYRmC.js +0 -1
- package/dist/assets/registry-QbArAJKB.js +0 -1
- package/dist/assets/shard070-Dm9m2a5U.js +0 -1
- package/dist/assets/spokenText-C88IQJ0M.js +0 -1
- package/dist/assets/store-Ba9vzL4H.js +0 -1
- package/dist/assets/store-BwyOArJl.js +0 -1
- package/dist/assets/store-D-f8ZuaK.js +0 -1
- package/dist/assets/store-ruEsXJjU.js +0 -1
- package/dist/assets/useDashboardLoop-C3iCNS8X.js +0 -5
- package/dist/assets/useLiveConfig-B4CmBiAK.js +0 -1
- package/dist/assets/useStudy-CwCIyiTb.js +0 -1
- package/dist/assets/validate-sGUCmPAs.js +0 -4
- package/dist/assets/walkSync-DC9iE0BX.js +0 -1
- /package/dist/assets/{BriefingPlayer-DHV4vMga.css → PrismBriefingPlayer-DHV4vMga.css} +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{h as n,v as r}from"./attachments-BW-vki-E.js";import{t as i}from"./providers-CPhoN8j0.js";import{i as a,n as o}from"./verbatim-DBTj9sPD.js";import{a as s,c,d as l,i as u,l as d,o as f,r as p,s as m,t as h,u as g}from"./PrismOverlay-DRWAI9Mh.js";import{f as _}from"./pen-UKrUHlDA.js";var v=e(),y=/[a-z0-9]{4,}/g;function b(e){return new Set(e.toLowerCase().match(y)??[])}function x(e,t){if(e.size===0||t.size===0)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function S(e,t=12){let n=new Map;for(let t of e.toLowerCase().match(y)??[])n.set(t,(n.get(t)??0)+1);return[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).slice(0,t).map(([e])=>e)}function C(e,t=2){return e.replace(/\s+/g,` `).split(/(?<=[.!?])\s+/).map(e=>e.trim()).filter(Boolean).slice(0,t)}var w={thousand:1e3,k:1e3,million:1e6,m:1e6,billion:1e9,bn:1e9,b:1e9,trillion:0xe8d4a51000};function T(e){let t=e.toLowerCase();return t===`%`||t===`percent`||t===`pct`?`pct`:/^(week|wk|month|mo|year|yr|day)s?$/.test(t)?`time`:/^(mg|kg|µg|mcg|g|ml|l)$/.test(t)?`dose`:`count`}var E=/(\$|€|£|¥)?\s?(\d{1,3}(?:,\d{3})+|\d+)(?:\.(\d+))?\s?(thousand|million|billion|trillion|bn)?\s?(%|percent|pct|mg|kg|µg|mcg|ml|weeks?|wks?|months?|mos?|years?|yrs?|days?)?/gi;function D(e){let t=[];for(let n of e.matchAll(E)){let[e,r,i,a,o,s]=n;if(!i)continue;let c=Number(`${i.replace(/,/g,``)}${a?`.${a}`:``}`);if(!Number.isFinite(c))continue;o&&(c*=w[o.toLowerCase()]??1);let l=(r??s??``).trim(),u=r?`money`:s?T(s):`count`;t.push({value:c,unit:l,family:u,raw:e.trim()})}return t}function O(e,t){for(let n of D(e))if(!t||n.family===t)return n;return null}function k(e){let t=` ${e.toLowerCase()} `;return/\b(p[ae]diatric|children|child|adolescents?|infants?|neonat|under[\s-]?18|aged? \d{1,2})\b/.test(t)?`pediatric`:/\b(elderly|geriatric|older adults?|aged 65)\b/.test(t)?`elderly`:/\b(adults?|grown[\s-]?ups?)\b/.test(t)?`adult`:null}function A(e){let t=e.toLowerCase(),n=t.match(/\b(\d{1,3})\s?(week|wk|month|mo|year|yr|day)s?\b/);if(n)return`${n[1]}${n[2].replace(/s$/,``)}`;let r=t.match(/\bphase\s?([1-4]|i{1,3}|iv)\b/);if(r)return`phase${r[1]}`;let i=t.match(/\bby\s(20\d{2})\b/);return i?`by${i[1]}`:null}function j(e,t){let n=k(e),r=k(t);if(n&&r&&n!==r)return`population`;let i=A(e),a=A(t);return i&&a&&i!==a?`timeframe`:null}function ee(e){let t=e.slice(0,1200),n=t.match(/\b([A-Z][a-zà-ÿ]+)\s+et al\.?,?\s*(\d{4})/);if(n)return`${n[1]} et al. ${n[2]}`;let r=t.match(/\b([A-Z][a-zà-ÿ]+)\s*\(?(19|20)\d{2}\)?/);return r?`${r[1]} ${r[0].match(/\d{4}/)?.[0]??``}`.trim():``}function te(e,t={}){let{minOverlap:n=.12,topK:r=120,maxDocFraction:i=.35,crossSourceOnly:a=!0}=t,o=e.length;if(o<2)return[];let s=e.map(e=>b(e.text)),c=e.map(e=>e.source),l=new Map;s.forEach((e,t)=>{for(let n of e){let e=l.get(n);e?e.push(t):l.set(n,[t])}});let u=Math.max(6,Math.floor(o*i)),d=new Set,f=[];for(let t of l.values())if(!(t.length<2||t.length>u))for(let r=0;r<t.length;r+=1)for(let i=r+1;i<t.length;i+=1){let o=t[r],l=t[i];if(a&&c[o]===c[l])continue;let u=o<l?`${o}|${l}`:`${l}|${o}`;if(d.has(u))continue;d.add(u);let p=x(s[o],s[l]);if(p>=n){let t=e[o],n=e[l];f.push(t.id<n.id?{a:t.id,b:n.id,overlap:p}:{a:n.id,b:t.id,overlap:p})}}return f.sort((e,t)=>t.overlap-e.overlap||(e.a<t.a?-1:e.a>t.a?1:e.b<t.b?-1:1)),f.slice(0,r)}function M(e){let t=new Map,n=e=>{let n=e;for(;t.get(n)!==n;)n=t.get(n);let r=e;for(;t.get(r)!==n;){let e=t.get(r);t.set(r,n),r=e}return n},r=e=>{t.has(e)||t.set(e,e)};for(let{a:i,b:a}of e)r(i),r(a),t.set(n(i),n(a));let i=new Map;for(let e of t.keys()){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}return[...i.values()].map(e=>e.slice().sort())}var N=[`pct`,`money`,`dose`,`count`];function P(e,t){let n=Math.max(1,Math.abs(e),Math.abs(t));return Math.abs(e-t)<=.005*n}function F(e,t){return t.some(t=>o(e,t))}function I(e,t,n,r,i){if(t.source===n.source)return null;let a=String(e.relation).toLowerCase();if(a!==`contradicts`&&a!==`in-tension`)return null;let o=j(t.quote,n.quote),s=(e.matchPhrase??``).trim(),c=s.length>0&&F(s,r)&&F(s,i),l,u=!1;for(let e of N){let r=O(t.quote,e),i=O(n.quote,e);if(r&&i){P(r.value,i.value)?u=!0:l={aValue:r.value,bValue:i.value,unit:r.unit||i.unit};break}}let d=!!e.comparable&&c&&!o&&!u,f=a===`contradicts`&&d?`contradicts`:`in-tension`,p;return o?p=o:!d&&!u&&a===`contradicts`&&(p=`scope`),{relation:f,comparable:d,...c?{matchPhrase:s}:{},...p?{caveat:p}:{},...l?{delta:l}:{}}}function L(e,t,n,r={}){let{minCorpus:i=3,minSurfaceForms:a=3,minCorpusForThin:o=10,thinFraction:s=.1}=r;return t<i||n<a?null:e<=0?`absent`:t>=o&&e<=Math.max(1,Math.ceil(t*s))?`thin`:null}function R(e,t){let n=new Set;for(let r of e){let e=t.get(r);e!==void 0&&n.add(e)}return n.size}function z(e,t=2){return e>=t}function B(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function V(e){return typeof e==`string`?e:``}function H(e,t){if(!e)return[];let n=e[t];return Array.isArray(n)?n:[]}var ne=`You compare pairs of grounded claims from different sources and return strict JSON only. You never invent a quote; a shared "matchPhrase" must be copied verbatim from the claims. When two claims measure different endpoints, populations, or timeframes you mark them "not-comparable".`;function re(e){return`These are candidate claim pairs, each from two DIFFERENT sources in a large corpus. For each
|
|
2
|
+
pair, decide how the two claims relate on the ONE quantity they share.
|
|
3
|
+
|
|
4
|
+
Pairs:
|
|
5
|
+
${e.map((e,t)=>`[p${t}]\n A (${e.a.id}): "${e.a.quote}"\n B (${e.b.id}): "${e.b.quote}"`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
|
|
8
|
+
Return ONLY a JSON object (no prose, no fences):
|
|
9
|
+
{ "pairs": [ { "id": "p0", "relation": "contradicts|in-tension|agrees|not-comparable",
|
|
10
|
+
"sharedQuantity": "the one thing both measure, e.g. 'drug efficacy'", "comparable": true,
|
|
11
|
+
"matchPhrase": "a short phrase copied VERBATIM that appears in BOTH claims' text, proving same scope",
|
|
12
|
+
"point": "for agrees only: the shared point in one sentence" } ] }
|
|
13
|
+
|
|
14
|
+
Rules:
|
|
15
|
+
- "agrees" (be generous — this is how consensus is found): the two claims make the same or a mutually
|
|
16
|
+
SUPPORTING point — e.g. both report a benefit on the same outcome, or point the same direction on a
|
|
17
|
+
shared measure — even if the specifics differ. Give the shared "point" in one sentence.
|
|
18
|
+
- "contradicts" (be strict — a false one is worse than a missed one): they DIRECTLY conflict on the
|
|
19
|
+
SAME measured quantity, same population, same timeframe. When a contradiction is at all doubtful,
|
|
20
|
+
use "in-tension" (related but pulling different ways) or "not-comparable" instead.
|
|
21
|
+
- "not-comparable": they are about genuinely different things with no shared outcome or measure.
|
|
22
|
+
- "comparable": true ONLY when the two truly measure the same thing on the same scope.
|
|
23
|
+
- "matchPhrase": copy a phrase that is present, word-for-word, in BOTH claims above (proving they talk
|
|
24
|
+
about the same scope). Omit it if there is no shared verbatim phrase.
|
|
25
|
+
- Every "id" MUST be one of the [p#] ids above.`}function U(e){let t=[k(e),A(e)].filter(Boolean);return t.length?t.join(`, `):`unspecified scope`}function W(e,t){return`Are these comparable? "${e.title}" (${U(e.quote)}) vs "${t.title}" (${U(t.quote)}) — do they measure the same endpoint, population, and timeframe?`}function G(e,t){let n=t.trim();return e===`contradicts`?n?`Sources disagree on ${n}`:`Two sources disagree`:n?`Tension over ${n}`:`Sources in tension`}async function K(e,t){let n=[];for(let r of e){let e=t.claimById.get(r.a),i=t.claimById.get(r.b);e&&i&&e.source!==i.source&&n.push({a:e,b:i,pair:r})}if(n.length===0)return{contradictions:[],agreements:[]};let r=Math.min(8192,Math.max(2048,300+n.length*100)),a;try{a=(await i(t.cfg.provider).generate({system:ne,history:[],user:re(n),maxTokens:r,temperature:0,format:null,...t.signal?{signal:t.signal}:{}},t.cfg)).raw}catch{return{contradictions:[],agreements:[]}}let o=B(a),s=o&&Array.isArray(o.pairs)?o.pairs:[],c=[],l=[],u=0,d=new Set;for(let e of s){if(!e||typeof e!=`object`)continue;let r=e,i=Number(String(r.id).replace(/^p/,``)),a=Number.isInteger(i)?n[i]:void 0;if(!a)continue;let o=[a.a.id,a.b.id].sort().join(`|`);if(d.has(o))continue;d.add(o);let s=V(r.relation).toLowerCase();if(s===`agrees`){l.push({a:a.a.id,b:a.b.id,point:V(r.point).trim()});continue}let f=I({relation:s,sharedQuantity:V(r.sharedQuantity),comparable:!!r.comparable,matchPhrase:V(r.matchPhrase)},a.a,a.b,t.corpus[a.a.source]??[],t.corpus[a.b.source]??[]);if(!f)continue;let p=V(r.sharedQuantity).trim();c.push({id:`x${u}`,theme:a.a.region,a:a.a.id,b:a.b.id,relation:f.relation,sharedQuantity:p,comparable:f.comparable,label:G(f.relation,p),seedQuestion:W(a.a,a.b),...f.matchPhrase?{matchPhrase:f.matchPhrase}:{},...f.caveat?{caveat:f.caveat}:{},...f.delta?{delta:f.delta}:{}}),u+=1}return{contradictions:c,agreements:l}}function q(e){let t=a(e);if(!t)return null;let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`(?:^|[^a-z0-9])${n}(?:[^a-z0-9]|$)`)}function J(e,t){for(let n of t.surfaceForms){let t=q(n);if(t&&t.test(e))return!0}return!1}function Y(e,t){let n=[];return t.forEach((t,r)=>{J(t,e)&&n.push(r)}),{coveredCount:n.length,coveringSources:n}}function X(e,t){return t===`absent`?`No coverage — ${e.label}`:`Thin coverage — ${e.label}`}function ie(e,t,n,r={}){let i=t.length,a=[];return e.forEach((e,o)=>{let{coveredCount:s}=Y(e,t),c=L(s,i,e.surfaceForms.length,r);c&&a.push({id:`g${o}`,theme:n(e),facet:e,sourcesScanned:i,coveredCount:s,kind:c,searchedForms:e.surfaceForms.slice(),label:X(e,c)})}),a}function ae(e){let t=Array.isArray(e)?e:[],n=[];return t.forEach((e,t)=>{if(!e||typeof e!=`object`)return;let r=e,i=typeof r.label==`string`?r.label.trim():``,a=Array.isArray(r.surfaceForms)?Array.from(new Set(r.surfaceForms.filter(e=>typeof e==`string`).map(e=>e.trim()).filter(e=>e.length>=3))):[];!i||a.length===0||n.push({id:`f${t}`,label:i,surfaceForms:a,...typeof r.rationale==`string`&&r.rationale.trim()?{rationale:r.rationale.trim()}:{}})}),n}var oe=8,se=5e3,ce=6;function le(e){let t=e.replace(/\.[a-z0-9]+$/i,``).trim();return t.length>40?`${t.slice(0,39).trimEnd()}…`:t||`Source`}async function ue(e,t){if(t)return{att:e,pages:t.slice(),kind:`text`};try{if(n(e)){let t=await d(e);return t.pages&&t.pages.length>0?{att:e,pages:t.pages,kind:`office`}:{att:e,pages:[],kind:`image-deck`}}return r(e)?{att:e,pages:await g(e)??[],kind:`text`}:{att:e,pages:await _(e)??[],kind:`pdf`}}catch{return{att:e,pages:[],kind:`pdf`}}}async function de(e,t,n){let r=Array(e.length),i=0;return await Promise.all(Array.from({length:Math.min(t,e.length)},async()=>{for(;;){let t=i;if(i+=1,t>=e.length)return;r[t]=await n(e[t],t)}})),r}async function fe(e,t,n,r,a){try{return B((await i(e.provider).generate({system:t,history:[],user:n,maxTokens:r,temperature:0,format:null,...a?{signal:a}:{}},e)).raw)}catch{return null}}async function pe(e,t,n,r,a){try{let o=await i(e.provider).generate({system:t,history:[],user:n,maxTokens:r,temperature:0,format:null,...a?{signal:a}:{}},e);return typeof o.raw==`string`?o.raw:JSON.stringify(o.raw)}catch{return``}}var me=`You organize a corpus of sources into a small set of themes and list the facets a complete treatment would cover, returning strict JSON only. You never claim a facet is present or absent — you only name what to expect and the words it would appear under.`;function he(e){let t=e.map((e,t)=>`[${t}] ${e.label}\n terms: ${e.terms.join(`, `)}\n "${e.lead.join(` `)}"`).join(`
|
|
26
|
+
`);return`Below are short digests of ${e.length} sources in one corpus (top terms + a lead line each).
|
|
27
|
+
|
|
28
|
+
${t}
|
|
29
|
+
|
|
30
|
+
Return ONLY a JSON object (no prose, no fences):
|
|
31
|
+
{
|
|
32
|
+
"themes": ["Efficacy", "Safety", "Cost", "Adoption"],
|
|
33
|
+
"facets": [ { "label": "Pediatric population", "theme": "Safety",
|
|
34
|
+
"surfaceForms": ["pediatric","paediatric","children","under 18"], "rationale": "why a full treatment would cover it" } ]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
Rules:
|
|
38
|
+
- "themes": 3-7 broad topics that span the corpus (NOT one per source) — the map's regions.
|
|
39
|
+
- "facets": the sub-topics a COMPLETE treatment of these themes would address. For each, give 3-8
|
|
40
|
+
surface forms — the exact words/synonyms it would appear under IF a source covered it (so absence can
|
|
41
|
+
be checked literally). "theme" must be one of "themes". Do NOT say whether any source covers it.
|
|
42
|
+
- Base everything on the digests above — do not invent facets unrelated to this corpus.`}var ge=`You extract grounded, verbatim-quoted claims from sources and tag each with a theme, returning strict JSON only. Every quote must be copied character-for-character from the source text.`;function _e(e,t,n){let r=e.reduce((e,t)=>e+t.length,0),i=e.map((e,n)=>({i:n,t:e,s:ve(e,t)})),a=r<=n?i:i.slice().sort((e,t)=>t.s-e.s||e.i-t.i),o=[],s=0;for(let e of a)if(o.push({i:e.i,t:e.t}),s+=e.t.length,s>=n&&o.length>=2)break;return o.sort((e,t)=>e.i-t.i).map(e=>`[p.${e.i+1}]\n${e.t.slice(0,Math.max(400,Math.round(n/o.length)))}`).join(`
|
|
43
|
+
|
|
44
|
+
`)}function ve(e,t){let n=e.toLowerCase(),r=0;for(let e of t)n.includes(e)&&(r+=1);return r}function ye(e,t){let n=e.map(e=>`=== source ${e.source} — ${e.label} ===\n${e.slice}`).join(`
|
|
45
|
+
|
|
46
|
+
`);return`Themes for this corpus (tag every claim with exactly one): ${t.join(` | `)}
|
|
47
|
+
|
|
48
|
+
Extract the most important claims from each source below. Copy each "quote" VERBATIM from that source's
|
|
49
|
+
text (it is verified word-for-word — anything not found is dropped). Cite the "page" from its [p.N]
|
|
50
|
+
marker, and the "source" number from its heading.
|
|
51
|
+
|
|
52
|
+
${n}
|
|
53
|
+
|
|
54
|
+
Return ONLY a JSON object (no prose, no fences):
|
|
55
|
+
{ "claims": [ { "source": 0, "quote": "verbatim phrase (6-160 chars)", "page": 3,
|
|
56
|
+
"theme": "one of the themes above", "kind": "forecast|stat|finding|risk|definition|method|diagram",
|
|
57
|
+
"title": "a 3-7 word headline", "role": "load-bearing|supporting|context",
|
|
58
|
+
"ask": "a short follow-up question" } ] }
|
|
59
|
+
|
|
60
|
+
Rules:
|
|
61
|
+
- Copy quotes character-for-character from the text above; never paraphrase or round.
|
|
62
|
+
- "theme" MUST be one of: ${t.join(`, `)}.
|
|
63
|
+
- Extract 6-12 DISTINCT claims from EACH source — cover its different facets (definition, mechanism,
|
|
64
|
+
specific findings and numbers, health effects, risks, evidence quality), not just the opening lines.
|
|
65
|
+
Favor specific, checkable statements — especially ones with a number, a finding, or a direct claim
|
|
66
|
+
another source might agree or disagree with. Mark only a few "load-bearing".`}var be=new Set([`forecast`,`stat`,`finding`,`risk`,`definition`,`method`,`diagram`]),xe=new Set([`load-bearing`,`supporting`,`context`]);function Se(e){let t=V(e).toLowerCase();return be.has(t)?t:`finding`}function Ce(e){let t=V(e).toLowerCase().trim();return xe.has(t)?t:`supporting`}function Z(e){let t=V(e.quote),n=Number(e.page),r=Number(e.source);return!t||!Number.isInteger(n)||!Number.isInteger(r)?null:{source:r,quote:t,page:n,theme:V(e.theme).trim(),kind:Se(e.kind),title:V(e.title).trim()||t.slice(0,40),role:Ce(e.role),ask:V(e.ask).trim()||`What does this mean?`}}function we(e){let t=B(e),n=t&&Array.isArray(t.claims)?t.claims:null;if(n&&n.length){let e=n.filter(e=>!!e&&typeof e==`object`).map(Z).filter(e=>e!==null);if(e.length)return e}return Te(e)}function Te(e){let t=[];for(let n=0;n<e.length;n+=1){if(e[n]!==`{`)continue;let r=0,i=!1,a=!1,o=-1;for(let t=n;t<e.length;t+=1){let n=e[t];if(i){a?a=!1:n===`\\`?a=!0:n===`"`&&(i=!1);continue}if(n===`"`)i=!0;else if(n===`{`)r+=1;else if(n===`}`&&(--r,r===0)){o=t;break}}if(o<0)break;let s=e.slice(n,o+1);if(s.includes(`"quote"`))try{let e=Z(JSON.parse(s));e&&(t.push(e),n=o)}catch{}}return t}function Ee(e,t){let n=[];for(let r=0;r<e.length;r+=Math.max(1,t))n.push(e.slice(r,r+t));return n}async function De(e,t,n,r={}){let{pagesOverride:i,onProgress:o,batchSize:s=oe}=r,c=0;o?.(`Reading ${e.length} sources…`);let u=(await de(e,ce,(e,t)=>ue(e,i?.[t]))).filter(e=>e.pages.length>0);if(u.length===0)return{spec:null,error:`No readable text could be extracted from these sources.`,callCount:c,proposed:0};let d=u.map((e,t)=>({id:`s${t}`,fileName:e.att.name,kind:e.kind,pageCount:e.pages.length,label:ee(e.pages.join(` `))||le(e.att.name),...e.slideImages?{slideImages:e.slideImages}:{}})),f=u.map(e=>e.pages),p=u.map((e,t)=>{let n=e.pages.join(` `);return{label:d[t].label,terms:S(n,12),lead:C(n,2)}});o?.(`Finding themes…`);let m=Math.min(4096,Math.max(1600,900+p.length*45)),h=await fe(t,me,he(p),m,n);c+=1;let g=Oe(H(h,`themes`).map(V)),_=new Set(g),v=ae(H(h,`facets`)),y=new Map;for(let e of H(h,`facets`))if(e&&typeof e==`object`){let t=e,n=V(t.label).trim(),r=V(t.theme).trim();n&&_.has(r)&&y.set(n,r)}let x=g[0]??`Findings`;g.length===0&&g.push(x),o?.(`Mapping claims…`);let w=b(g.join(` `)),T=u.map((e,t)=>({source:t,label:d[t].label,slice:_e(e.pages,w,se)})),E=[],D=0;for(let e of Ee(T,s)){let r=await pe(t,ge,ye(e,g),Math.min(8192,1500+e.length*850),n);c+=1;let i=we(r);D+=i.length;for(let t of e){let e=i.filter(e=>e.source===t.source);(await l(e,f[t.source])).forEach((e,n)=>{let r=_.has(e.theme)?e.theme:x;E.push({id:`s${t.source}c${n}`,quote:e.quote,page:e.page,kind:e.kind,title:e.title,ask:e.ask,role:e.role,region:r,source:t.source})})}}if(E.length===0)return{spec:null,error:`No claims could be grounded across these sources.`,callCount:c,corpus:f,proposed:D};o?.(`Finding contradictions…`);let O=new Map(E.map(e=>[e.id,e])),k=new Map(E.map(e=>[e.id,e.source])),A=te(E.map(e=>({id:e.id,source:e.source,text:`${e.title}. ${e.quote}`}))),{contradictions:j,agreements:M}=await K(A,{claimById:O,corpus:f,cfg:t,signal:n});A.length>0&&(c+=1);let N=ke(M,O,k,u.length),P=ie(v,f.map(e=>a(e.join(` `))),e=>y.get(e.label)??``),F=Q(g,E),I=[...j.map(e=>({a:e.a,b:e.b,relation:e.relation,crossDoc:!0})),...M.map(e=>({a:e.a,b:e.b,relation:`agrees`,crossDoc:!0}))],L=new Set;for(let e of N)for(let t of e.memberClaimIds){let e=k.get(t);e!==void 0&&L.add(e)}let R={sources:d,themes:F,claims:E,threads:I,contradictions:j,gaps:P,consensus:N,counts:{contradictions:j.length,gaps:P.length,consensus:L.size},pageCount:d.reduce((e,t)=>e+t.pageCount,0)},z=d.map(()=>0);for(let e of E)z[e.source]!==void 0&&(z[e.source]+=1);return{spec:R,corpus:f,sourcesAtt:u.map(e=>e.att),callCount:c,proposed:D,debug:{facetCount:v.length,candidatePairs:A.length,agreements:M.length,claimsBySource:z}}}function Oe(e){let t=new Set,n=[];for(let r of e){let e=r.trim();if(!e)continue;let i=e.toLowerCase();if(!t.has(i)&&(t.add(i),n.push(e),n.length>=8))break}return n}function Q(e,t){let n=new Map;for(let e of t){let t=n.get(e.region)??{sources:new Set,count:0};t.sources.add(e.source),t.count+=1,n.set(e.region,t)}let r=[...e,...[...n.keys()].filter(t=>!e.includes(t))],i=[];for(let e of r){let t=n.get(e);t&&i.push({id:e,name:e,sourceCount:t.sources.size,claimCount:t.count})}return i}function ke(e,t,n,r){let i=M(e.map(e=>({a:e.a,b:e.b}))),a=[],o=0;for(let s of i){let i=R(s,n);if(!z(i))continue;let c=new Set(s),l=e.find(e=>c.has(e.a)&&c.has(e.b)&&e.point),u=t.get(s[0]);a.push({id:`c${o}`,theme:u?.region??``,proposition:l?.point||u?.title||`Sources agree`,memberClaimIds:s,sourceCount:i,corpusSize:r,...Ae(s,t)}),o+=1}return a}function Ae(e,t){for(let n of[`pct`,`money`,`dose`,`count`]){let r=[],i=``;for(let a of e){let e=t.get(a),o=e&&O(e.quote,n);o&&(r.push(o.value),i||=o.unit)}if(r.length>=2)return{band:{unit:i,min:Math.min(...r),max:Math.max(...r)}}}return{}}var je=900;function Me(e){let[t,n]=(0,v.useState)(`idle`),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),[d,p]=(0,v.useState)(0),[h,g]=(0,v.useState)(``),[_,y]=(0,v.useState)(null),b=(0,v.useRef)(null),x=(0,v.useRef)(null),S=(0,v.useRef)(0),C=(0,v.useCallback)(()=>{b.current?.abort(),b.current=null,x.current!==null&&(clearTimeout(x.current),x.current=null)},[]);(0,v.useEffect)(()=>C,[C]);let w=(0,v.useCallback)(()=>{C(),S.current+=1,n(`idle`),i(null),o(null),u(null),p(0),g(``),y(null)},[C]);return{phase:t,spec:r,corpus:a,sourcesAtt:l,proposed:d,stage:h,error:_,synthesize:(0,v.useCallback)((t,r)=>{if(!e){y(`Connect a model to synthesize a corpus.`),n(`error`);return}C();let a=S.current+=1,l=new AbortController;b.current=l,i(null),o(null),p(0),y(null),g(`Reading ${t.length} sources…`),n(`igniting`),x.current=setTimeout(()=>{S.current===a&&n(e=>e===`igniting`?`blooming`:e)},je);let d=m(t,e),h=e=>{i(e.spec),o(e.corpus),u(f(e.sourcesAtt,t)),p(e.proposed),n(`settled`)};(async()=>{try{if(!r?.fresh){let e=await s(d);if(S.current!==a)return;if(e){h(e);return}}let i=await De(t,e,l.signal,{onProgress:e=>{S.current===a&&g(e)}});if(S.current!==a)return;if(i.spec){let e={spec:i.spec,corpus:i.corpus??null,sourcesAtt:i.sourcesAtt??null,proposed:i.proposed};h(e),c(d,e)}else y(i.error??`This corpus could not be synthesized.`),n(`error`)}catch(e){if(S.current!==a||l.signal.aborted)return;y(e instanceof Error?e.message:`Synthesis failed.`),n(`error`)}})()},[e,C]),reset:w}}function Ne(e){return{documents:e.sources.map(e=>({fileName:e.fileName,pageCount:e.pageCount,...e.slideImages?{slideImages:e.slideImages}:{}})),fileName:e.sources[0]?.fileName??`corpus`,pageCount:e.pageCount,claims:e.claims,regions:e.themes.map(e=>e.name),threads:e.threads}}var Pe=t(),$=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-deep)`,`var(--insight-soft)`,`var(--danger)`];function Fe({sources:e,cfg:t,search:n,onClose:r,demo:i}){let a=Me(t),o=i?`settled`:a.phase,s=i?i.spec:a.spec,c=i?i.corpus:a.corpus;(0,v.useEffect)(()=>{if(!i)return e&&e.length>0&&a.synthesize(e),()=>a.reset()},[e]);let[l,d]=(0,v.useState)(`all`),[f,m]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(!s||s.claims.length<48)return;let e=!0;return p(s,$).then(t=>{e&&m({spec:s,result:t})}),()=>{e=!1}},[s]);let g=(0,v.useMemo)(()=>s?s.claims.length<48?u(s,$):f?.spec===s?f.result:null:null,[s,f]),_=(0,v.useMemo)(()=>s?Ne(s):null,[s]),y=(0,v.useCallback)(e=>s?.sources[e]?.label??`Source ${e+1}`,[s]),b=(0,v.useMemo)(()=>i?(i.spec.sources??[]).map(e=>({name:e.fileName,mime:`text/plain`,data:``,size:0})):(a.sourcesAtt??e??[]).slice(),[i,a.sourcesAtt,e]),x={phase:o,spec:_,corpus:c,proposed:i?s?.claims.length??0:a.proposed,error:a.error,stage:a.stage},S=s&&g?{lens:l,setLens:d,counts:s.counts,contradictions:g.contradictions,gaps:g.gaps,consensus:g.consensus,sourceLabel:y}:void 0;return(0,Pe.jsx)(h,{pdf:b,onReplay:!i&&e&&e.length>0?()=>a.synthesize(e,{fresh:!0}):void 0,cfg:i?null:t,...n?{search:n}:{},onClose:r,world:x,...S?{corpusChrome:S}:{}})}export{Fe as SynthesisOverlay};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,r as a,t as o}from"./theme-D5D55hZi.js";import{C as s,S as c,T as l,b as u,w as d,x as f}from"./index-yJfYsjAB.js";import{d as p}from"./useLiveConfig-CvOQTr0s.js";var m=e({AppearanceSettings:()=>O,TemplatePicker:()=>D}),h=n(),g=t(),_=r(),v=[`smaller`,`normal`,`larger`],y={smaller:`Smaller`,normal:`Normal`,larger:`Larger`},b=`mavea:appearancechange`;function x(e){window.dispatchEvent(new CustomEvent(b,{detail:e}))}function S(){let e=(0,h.c)(11),[t,n]=(0,g.useState)(w),[r,c]=(0,g.useState)(C),[u,m]=p(),_,v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{let e=e=>{let t=e.detail;t&&(n(t.template),c(t.theme))};return window.addEventListener(b,e),()=>window.removeEventListener(b,e)},v=[],e[0]=_,e[1]=v):(_=e[0],v=e[1]),(0,g.useEffect)(_,v);let y;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{d(document,e),f(document,e),s(e);let t={template:e,theme:i()};n(e),c(t.theme),x(t)},e[2]=y):y=e[2];let S=y,T;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>{o(e),a(e);let t={template:l(),theme:e};n(t.template),c(e),x(t)},e[3]=T):T=e[3];let E=T,D;e[4]===m?D=e[5]:(D=e=>m({fontScale:e}),e[4]=m,e[5]=D);let O=D,k;return e[6]!==t||e[7]!==u.fontScale||e[8]!==O||e[9]!==r?(k={active:t,theme:r,fontScale:u.fontScale,pickTemplate:S,pickTheme:E,pickFontScale:O},e[6]=t,e[7]=u.fontScale,e[8]=O,e[9]=r,e[10]=k):k=e[10],k}function C(){return i()}function w(){return l()}function T(e){let t=(0,h.c)(13),{templateId:n}=e,r;t[0]===n?r=t[1]:(r=u.find(e=>e.id===n)??u[0],t[0]=n,t[1]=r);let i=r,a;t[2]!==i.preview.accent||t[3]!==i.preview.background||t[4]!==i.preview.ink||t[5]!==i.preview.surface?(a={"--preview-bg":i.preview.background,"--preview-surface":i.preview.surface,"--preview-ink":i.preview.ink,"--preview-accent":i.preview.accent},t[2]=i.preview.accent,t[3]=i.preview.background,t[4]=i.preview.ink,t[5]=i.preview.surface,t[6]=a):a=t[6];let o=a,s=`appearance-preview appearance-preview--${i.preview.geometry}`,c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,_.jsx)(`span`,{className:`appearance-preview-aa`,children:`Aa`}),t[7]=c):c=t[7];let l,d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,_.jsxs)(`span`,{className:`appearance-preview-copy`,children:[(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{})]}),d=(0,_.jsx)(`span`,{className:`appearance-preview-data`,children:`08`}),t[8]=l,t[9]=d):(l=t[8],d=t[9]);let f;return t[10]!==o||t[11]!==s?(f=(0,_.jsxs)(`span`,{className:s,style:o,"aria-hidden":`true`,children:[c,l,d]}),t[10]=o,t[11]=s,t[12]=f):f=t[12],f}function E({active:e,theme:t,fontScale:n,embedded:r=!1,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:s,optionRefs:c}){let l=(0,g.useId)(),f=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%u.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+u.length)%u.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=u.length-1;else return;e.preventDefault(),c?.current[n]?.focus()};return(0,_.jsxs)(`div`,{className:`appearance-panel${r?` is-embedded`:``}`,role:r?void 0:`dialog`,"aria-modal":!r||void 0,"aria-labelledby":l,children:[(0,_.jsxs)(`div`,{className:`appearance-head`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h2`,{id:l,children:r?`Appearance`:`Choose your workspace`}),(0,_.jsx)(`p`,{children:`A visual identity for how you think.`})]}),s&&(0,_.jsx)(`button`,{type:`button`,className:`appearance-close`,onClick:s,"aria-label":`Close appearance`,children:`×`})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Color mode`,children:[(0,_.jsx)(`span`,{children:`Color mode`}),(0,_.jsx)(`div`,{className:`appearance-segmented`,children:[`light`,`dark`].map(e=>(0,_.jsxs)(`button`,{type:`button`,"aria-pressed":t===e,className:t===e?`is-active`:``,onClick:()=>a(e),children:[(0,_.jsx)(`span`,{className:`appearance-mode-icon is-${e}`,"aria-hidden":`true`}),e===`light`?`Light`:`Dark`]},e))})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Text size`,children:[(0,_.jsx)(`span`,{children:`Text size`}),(0,_.jsx)(`div`,{className:`appearance-segmented is-triple`,children:v.map(e=>(0,_.jsx)(`button`,{type:`button`,"aria-pressed":n===e,className:n===e?`is-active`:``,onClick:()=>o(e),children:y[e]},e))})]}),(0,_.jsx)(`div`,{className:`appearance-grid`,role:`radiogroup`,"aria-label":`Workspace themes`,children:u.map((t,n)=>(0,_.jsxs)(`button`,{ref:e=>{c&&(c.current[n]=e)},type:`button`,role:`radio`,"aria-label":`${t.label}, ${t.persona}. ${t.tagline} Best for ${t.bestFor}.`,"aria-checked":t.id===e,tabIndex:t.id===e?0:-1,className:`appearance-option${t.id===e?` is-active`:``}`,onClick:()=>i(t.id),onKeyDown:e=>f(e,n),onPointerEnter:()=>d(document,t.id),onFocus:()=>d(document,t.id),children:[(0,_.jsx)(T,{templateId:t.id}),(0,_.jsxs)(`span`,{className:`appearance-option-copy`,children:[(0,_.jsxs)(`span`,{className:`appearance-option-title`,children:[(0,_.jsx)(`strong`,{children:t.label}),(0,_.jsx)(`em`,{children:t.persona})]}),(0,_.jsx)(`span`,{className:`appearance-option-tagline`,children:t.tagline}),(0,_.jsxs)(`span`,{className:`appearance-option-best`,children:[`Best for `,t.bestFor.toLowerCase()]}),(0,_.jsx)(`span`,{className:`appearance-option-font`,children:t.preview.fontRole})]}),(0,_.jsx)(`span`,{className:`appearance-check`,"aria-hidden":`true`,children:`✓`})]},t.id))})]})}function D({triggerClassName:e=`topbar-icon-btn`}={}){let{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),[s,l]=(0,g.useState)(!1),d=(0,g.useRef)(null),f=(0,g.useRef)(null),p=(0,g.useRef)([]);(0,g.useEffect)(()=>c(document),[]);let m=(0,g.useCallback)(()=>{l(!1),requestAnimationFrame(()=>f.current?.focus())},[]);(0,g.useEffect)(()=>{if(!s)return;let e=u.findIndex(e=>e.id===t);requestAnimationFrame(()=>{if(window.matchMedia?.(`(max-width: 720px)`).matches??!1){d.current?.querySelector(`.appearance-close`)?.focus({preventScroll:!0});return}p.current[Math.max(0,e)]?.focus({preventScroll:!0})});let n=e=>{d.current&&!d.current.contains(e.target)&&m()},r=e=>{if(e.key===`Escape`){e.preventDefault(),m();return}if(e.key!==`Tab`||!d.current)return;let t=Array.from(d.current.querySelectorAll(`button:not([disabled])`));if(!t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())};return window.addEventListener(`pointerdown`,n),window.addEventListener(`keydown`,r),()=>{window.removeEventListener(`pointerdown`,n),window.removeEventListener(`keydown`,r)}},[t,m,s]);let h=u.find(e=>e.id===t)??u[0];return(0,_.jsxs)(`div`,{className:`tpl-picker appearance-picker`,ref:d,children:[(0,_.jsx)(`button`,{ref:f,type:`button`,className:`${e} tpl-btn appearance-trigger`,onClick:()=>l(e=>!e),title:`Appearance: ${h.label} · ${h.persona} · ${n===`light`?`Light`:`Dark`}`,"aria-label":`Choose appearance (current: ${h.label}, ${h.persona}, ${n} mode)`,"aria-expanded":s,"aria-haspopup":`dialog`,children:(0,_.jsxs)(`span`,{className:`appearance-mark`,"aria-hidden":`true`,children:[(0,_.jsx)(`i`,{style:{background:h.preview.accent}}),(0,_.jsx)(`i`,{style:{background:h.preview.surface}})]})}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`appearance-backdrop`,type:`button`,onClick:m,"aria-label":`Close appearance`}),(0,_.jsx)(E,{active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:m,optionRefs:p})]})]})}function O(){let e=(0,h.c)(7),{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),s;return e[0]!==t||e[1]!==r||e[2]!==o||e[3]!==i||e[4]!==a||e[5]!==n?(s=(0,_.jsx)(E,{embedded:!0,active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o}),e[0]=t,e[1]=r,e[2]=o,e[3]=i,e[4]=a,e[5]=n,e[6]=s):s=e[6],s}export{D as n,m as r,O as t};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{t as n}from"./LegalMarkdownDocument-
|
|
1
|
+
import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{t as n}from"./LegalMarkdownDocument-CNsihJ1F.js";var r=e(),i=`# Mavéa Terms of Use
|
|
2
2
|
|
|
3
|
-
Effective: August
|
|
3
|
+
Effective: August 23, 2026
|
|
4
4
|
|
|
5
5
|
These Terms of Use (the **Terms**) govern your use of the Mavéa application, command-line package, demos, documentation, and related materials (collectively, the **Service**). **Licensor** means each applicable copyright holder offering software under the PolyForm license. **Maintainers** means the people who publish or contribute to Mavéa; a Maintainer is not necessarily a Licensor. **Deployment operator** means the person or organization hosting the copy you use. **Responsible Party** means the applicable Licensor, Maintainer, or deployment operator responsible for a statement, obligation, service, or claim. In these Terms, **we**, **us**, or **our** means the relevant Responsible Party or Parties in context. A separately operated deployment remains independent from the Licensors and Maintainers unless the same person or organization serves both roles.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ The [PolyForm Noncommercial License 1.0.0](./LICENSE) separately governs copyrig
|
|
|
8
8
|
|
|
9
9
|
## 1. Acceptance and eligibility
|
|
10
10
|
|
|
11
|
-
By downloading, installing, accessing, or using the Service,
|
|
11
|
+
By downloading, installing, accessing, or using the Service, by selecting the in-product acceptance checkbox, or by submitting an issue, a discussion post, a message to a published Mavéa contact address, or any other feedback through a Mavéa project channel, you agree to these Terms and the PolyForm license and acknowledge the [Privacy Notice](./PRIVACY.md) and [Disclaimer](./DISCLAIMER.md). Submitting feedback is enough on its own: Section 9 is written to bind whoever sends it, including someone who has never installed or run Mavéa. If you use Mavéa for an organization, you represent that you have authority to accept these Terms for it. If you do not agree, do not use the Service.
|
|
12
12
|
|
|
13
13
|
You must be at least 18 years old, legally capable of entering this agreement, and permitted to use the Service under applicable law. The Service is not directed to children. A parent or guardian should not provide a child access to connected model, upload, microphone, or action features.
|
|
14
14
|
|
|
@@ -38,6 +38,8 @@ You must independently review and verify important output against qualified prof
|
|
|
38
38
|
|
|
39
39
|
Mavéa can communicate with model, search, speech, media, hosting, OAuth, and action providers that you select. Those services are independent third parties and are governed by their own contracts, privacy policies, acceptable-use rules, retention practices, availability, and pricing.
|
|
40
40
|
|
|
41
|
+
Connecting a code host or other content account authorizes Mavéa to read what that credential can reach and to include the relevant parts in requests to the provider you select. This applies to private repositories exactly as it does to public ones: if the scope you grant can read private source, internal documentation, diffs, or issues, that material can be sent to a third party under that party's own terms. You are responsible for having the right to disclose it, for granting the narrowest scope that works, and for revoking connections you no longer use.
|
|
42
|
+
|
|
41
43
|
You provide and control your own accounts, API keys, OAuth grants, and other credentials. Requests send relevant credentials and content through the deployment's same-origin proxy before reaching the selected third party. The proxy operator can access that material in transit. You must use a deployment operator you trust.
|
|
42
44
|
|
|
43
45
|
All costs of using the Service are your responsibility, including hardware, electricity, network access, hosting, domains, model tokens, search requests, speech services, storage, OAuth applications, connected-account activity, taxes, and any other third-party charges. Labels such as "fast", "balanced", or "thorough" are relative product descriptions, not price quotes or spending limits. Any token counts or usage figures the Service displays are informational only: they report what a provider stated for the current session in this browser, are not a billing record, and may be incomplete, unavailable, or wrong — your provider's own account is the authoritative measure of what you were charged. You are responsible for provider budgets, quotas, and billing alerts.
|
|
@@ -89,7 +91,13 @@ As between you and the Responsible Parties, the Responsible Parties do not claim
|
|
|
89
91
|
|
|
90
92
|
Bundled and linked third-party materials can carry copyright licences, attribution requirements, personality or publicity rights, privacy interests, trademark rights, property restrictions, or other limitations. A copyright licence or public-domain label does not necessarily clear every depicted person, place, object, logo, or use. Preserve the notices in \`THIRD-PARTY.txt\` and \`public/demo-assets/CREDITS.md\`, follow their source terms, and obtain any additional releases or permissions your use requires.
|
|
91
93
|
|
|
92
|
-
You may submit issue reports and feature suggestions without including code, patches, documentation changes, confidential information, or trade secrets.
|
|
94
|
+
You may submit issue reports and feature suggestions without including code, patches, documentation changes, confidential information, or trade secrets. Mavéa does not accept external code: material of that kind posted in any channel is not reviewed, not incorporated, and creates no contribution, no authorship, and no rights in Mavéa. The only authorized code maintainers are named in [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
95
|
+
|
|
96
|
+
You grant the applicable Licensors and Maintainers, and their successors and assigns, a worldwide, perpetual, irrevocable, transferable, sublicensable, royalty-free right to use, modify, publish, and commercialize ideas and feedback you voluntarily submit, without restriction, attribution, accounting, or compensation. This grant applies however the feedback reaches us — an issue, a discussion, an email, or any other project channel — and whether or not you have installed, accessed, or used the Service. It survives any assignment or transfer of these Terms and runs to the benefit of a successor in a financing, merger, acquisition, or sale of assets, on the same terms.
|
|
97
|
+
|
|
98
|
+
Feedback is not confidential and creates no confidential or fiduciary relationship. We may already be working on, or may independently develop, anything your feedback describes, and nothing in it obliges us to use it, keep it, respond to it, or refrain from developing something similar. To the maximum extent permitted by law, you waive any moral rights and any right to be identified in relation to feedback you submit. You represent that you are entitled to submit what you send and that it infringes no one else's rights.
|
|
99
|
+
|
|
100
|
+
This does not transfer ownership of inventions or copyrighted materials that are not included in your feedback.
|
|
93
101
|
|
|
94
102
|
## 10. Availability, changes, and support
|
|
95
103
|
|
|
@@ -131,5 +139,5 @@ No governing-law, arbitration, venue, or class-action-waiver clause is included
|
|
|
131
139
|
|
|
132
140
|
## 16. Contact
|
|
133
141
|
|
|
134
|
-
For a hosted copy, contact the person or organization that gave you access. For the public repository, use the Mavéa GitHub issue tracker for non-sensitive questions. Do not put confidential information in a public issue. Security reports must follow [SECURITY.md](./SECURITY.md).
|
|
142
|
+
For a hosted copy, contact the person or organization that gave you access. For the public repository, use the Mavéa GitHub issue tracker for non-sensitive questions. Do not put confidential information in a public issue. Security reports must follow [SECURITY.md](./SECURITY.md). Commercial licensing, trademark permission, and other business inquiries may be sent to trymavea@gmail.com. Correspondence does not create a license, warranty, support obligation, or commercial right; see Section 2.
|
|
135
143
|
`,a=t();function o(){let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(n,{markdown:i,page:`terms`,kicker:`Project terms`}),e[0]=t):t=e[0],t}export{o as TermsApp};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/deepen-FZiVqiEc.js","assets/deepenStore-BWLLzLCY.js","assets/catalog-CRekRbKO.js","assets/preload-helper-CiWYd9n-.js","assets/rolldown-runtime-DkW27tQK.js","assets/facts-BUGuVUIc.js","assets/blockTypes-DUDdP3pB.js","assets/liveSchema-Z_39HuDI.js","assets/icons-gLFQTv74.js","assets/jsx-runtime-DeHZSEgm.js","assets/safeImageUrl-BINWXOTz.js","assets/empty-D51uhW0E.js","assets/catalog-BHjl-1uH.js","assets/sourceHost-BV3t2XDb.js","assets/spokenText-Dy-GZvZV.js","assets/annotations-CftUUB13.js","assets/streamParse-BX0bAppQ.js","assets/providers-CPhoN8j0.js","assets/http-Bqk6nJiH.js","assets/info-CiqHR5cs.js","assets/attachments-BW-vki-E.js","assets/route-CMdTFx0P.js","assets/cache-7UEbF3S6.js","assets/ledger-BssK9Pv2.js","assets/select-BuqyXI8k.js","assets/shapes-BwoDrn09.js","assets/ReplayCard-CLlaKpWg.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/preloadableLazy-MIX1ApBW.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/index-yJfYsjAB.js","assets/useInView-DsTvv7L_.js","assets/coreIcons-DDTChE1H.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css","assets/ReplayCard-Cs6mzTRa.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,t as a}from"./preload-helper-CiWYd9n-.js";import{lt as o}from"./index-yJfYsjAB.js";import{n as s}from"./icons-gLFQTv74.js";import{i as c,n as l,r as u,t as d}from"./loader-BPVv7hEn.js";import{n as f,t as p}from"./FallbackCard-ap_4wOfj.js";import{n as m,t as h}from"./blockLabel-FogyzEQY.js";import{t as g}from"./useFocusTrap-CJmpNZv2.js";import{t as _}from"./motion-BY_Egaxm.js";import{i as v,n as y,t as b}from"./useSpatialCanvas-CfmZOXXP.js";import{a as x,i as S,n as C,o as w,s as T,t as E}from"./CanvasSkeleton-BmGjJHUQ.js";import{t as D}from"./richText-BkxJhl9N.js";import{t as O}from"./toast-BBNs2h3L.js";import{i as k,r as A}from"./format-q0LwBjID.js";import{t as j}from"./safeImageUrl-BINWXOTz.js";import{t as M}from"./useValidatedImage-BQi2c66o.js";import{r as N}from"./empty-D51uhW0E.js";import{a as P,n as F,o as I}from"./deepenStore-BWLLzLCY.js";import{i as L,r as ee,t as R}from"./catalog-BHjl-1uH.js";import{a as te}from"./http-Bqk6nJiH.js";import{n as ne}from"./lib-Dkb5WBRc.js";var z=t();function re(e,t){let n=l(e),r=Array.from(n).sort().join(`,`),[i,a]=(0,z.useState)(()=>u(n)),o=(0,z.useRef)(null);return(0,z.useEffect)(()=>{if(u(n)){o.current=t,a(!0);return}o.current!==t&&(o.current=null,a(!1));let e=!0;return c(r.split(`,`)).then(()=>{e&&(o.current=t,a(!0))}),()=>{e=!1}},[r,t]),i}var B=n(),V=null,H=new WeakMap;function U(){return typeof ResizeObserver>`u`?null:(V||=new ResizeObserver(e=>{for(let t of e)H.get(t.target)?.()}),V)}function W(e,t){let n=U();return n?(H.set(e,t),n.observe(e),()=>{n.unobserve(e),H.delete(e)}):()=>{}}var G=r(),K=new Set([`hidden`,`clip`,`auto`,`scroll`]);function ie(e){let t=(0,B.c)(14),{children:n,maxAspect:r,className:i}=e,a=(0,z.useRef)(null),o=(0,z.useRef)(null),[s,c]=(0,z.useState)(1),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=a.current,t=o.current;if(!e||!t)return;let n=()=>{let n=e.clientWidth;if(!n)return;let r=t.querySelectorAll(`*`),i=t.style.transform;t.style.transform=`none`;let a=[];for(let e of r){let t=getComputedStyle(e);(K.has(t.overflowX)||K.has(t.overflowY)||t.webkitLineClamp!==`none`)&&a.push(e)}let o=[];for(let e of a)o.push({el:e,o:e.style.overflow,c:e.style.webkitLineClamp}),e.style.overflow=`visible`,e.style.webkitLineClamp=`unset`;let s=t.scrollWidth;for(let e of r)e.scrollWidth>s&&(s=e.scrollWidth);for(let e of o)e.el.style.overflow=e.o,e.el.style.webkitLineClamp=e.c;if(t.style.transform=i,!s||s<=n+1){c(ae);return}let l=n/s,u=Math.max(.4,Math.floor(l*1e3)/1e3);c(e=>Math.abs(e-u)>.002?u:e)};return n(),W(e,n)},t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=[n],t[1]=n,t[2]=u),(0,z.useLayoutEffect)(l,u);let d=s<1,f=`fit-box`+(i?` `+i:``),p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p={contentVisibility:`auto`,containIntrinsicSize:`auto 200px`},t[3]=p):p=t[3];let m;t[4]!==s||t[5]!==r||t[6]!==d?(m=d?{transformOrigin:`top left`,transform:`scale(${s})`,width:`${100/s}%`,marginBottom:`calc(${s-1} * 100%)`,...r?{maxHeight:`calc(${r} * 100cqw)`,overflow:`hidden`}:{}}:void 0,t[4]=s,t[5]=r,t[6]=d,t[7]=m):m=t[7];let h;t[8]!==n||t[9]!==m?(h=(0,G.jsx)(`div`,{ref:o,style:m,children:n}),t[8]=n,t[9]=m,t[10]=h):h=t[10];let g;return t[11]!==f||t[12]!==h?(g=(0,G.jsx)(`div`,{ref:a,className:f,style:p,children:h}),t[11]=f,t[12]=h,t[13]=g):g=t[13],g}function ae(e){return e===1?e:1}var oe=new Set([`gridtrace`,`chronologicaltimeline`,`roadmap`,`matrix`,`sparktable`,`gantt`]),q=`mavea-bloom-mode`,J=q,se=!0,ce=null;function Y(){try{if(typeof localStorage>`u`)return se;let e=localStorage.getItem(q);return e===`on`||e!==`off`&&se}catch{return se}}function le(){return ce===null&&(ce=Y()),ce}function ue(e){ce=e;try{typeof localStorage<`u`&&localStorage.setItem(q,e?`on`:`off`)}catch{}try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(J))}catch{}}function de(){let[e,t]=(0,z.useState)(()=>le());return(0,z.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(le());return window.addEventListener(J,e),()=>window.removeEventListener(J,e)},[]),[e,(0,z.useCallback)(ue,[])]}var fe=o(),X=260,Z=56,Q={min:.2,max:3};function $(e){return e.col>=10?640:e.col>=7?500:360}function pe(e){return Math.max(1,Math.min(e,Math.round(Math.sqrt(e*1.3))))}function me(e,t,n){let r=Math.max(1,Math.ceil(e.length/n)),i=[];for(let a=0;a<r;a++){let r=X;for(let i=0;i<n;i++){let o=a*n+i;o<e.length&&(r=Math.max(r,t[o]||X))}i[a]=r}let a=[],o=0;for(let e=0;e<r;e++)a[e]=o,o+=i[e]+Z;let s=[];for(let t=0;t<r;t++){let r=[];for(let i=0;i<n;i++){let a=t*n+i;a<e.length&&r.push(a)}t%2==1&&r.reverse(),s[t]=r}let c=s.map(t=>t.reduce((t,n)=>t+$(e[n]),0)+Math.max(0,t.length-1)*Z),l=Math.max(...c,1),u=Array(e.length);return s.forEach((t,n)=>{let r=(l-c[n])/2;for(let n of t){let t=$(e[n]);u[n]={x:r,w:t},r+=t+Z}}),{placed:e.map((e,r)=>{let o=Math.floor(r/n),s=t[r]||X,{x:c,w:l}=u[r];return{block:e,x:c,y:a[o]+(i[o]-s)/2,w:l,h:s,cx:c+l/2,cy:a[o]+i[o]/2}}),w:l,h:Math.max(X,o-Z)}}function he(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=0;n<e.length-1;n++){let r=e[n-1]??e[n],i=e[n],a=e[n+1],o=e[n+2]??a,s=i.x+(a.x-r.x)/6,c=i.y+(a.y-r.y)/6,l=a.x-(o.x-i.x)/6,u=a.y-(o.y-i.y)/6;t+=` C ${s} ${c} ${l} ${u} ${a.x} ${a.y}`}return t}function ge(e){let t=e.props?.title;return typeof t==`string`&&t.trim()?t.trim():m(e)}function _e(e){let t=(0,B.c)(26),{data:n,onExit:r,selectedBlockIds:i}=e,a=(0,z.useRef)(null),o=i?.size??0,s=(0,z.useRef)(null),c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{s.current=a.current?.querySelector(`.cv-viewport`)??null},l=[],t[0]=c,t[1]=l):(c=t[0],l=t[1]),(0,z.useLayoutEffect)(c,l);let u;t[2]===r?u=t[3]:(u={onEscape:r,initialFocus:s},t[2]=r,t[3]=u),g(a,u);let d;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=[],t[4]=d):d=t[4],(0,z.useEffect)(ve,d);let f=`${n.title} — canvas`,p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,G.jsx)(`span`,{className:`cv-takeover-glyph`,"aria-hidden":`true`,children:`◇`}),t[5]=p):p=t[5];let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,G.jsx)(`span`,{className:`cv-takeover-eyebrow`,children:`Canvas`}),t[6]=m):m=t[6];let h;t[7]===n.title?h=t[8]:(h=(0,G.jsxs)(`div`,{className:`cv-takeover-id`,children:[p,(0,G.jsxs)(`div`,{className:`cv-takeover-titles`,children:[m,(0,G.jsx)(`span`,{className:`cv-takeover-title`,children:n.title})]})]}),t[7]=n.title,t[8]=h);let _;t[9]===o?_=t[10]:(_=o>0&&(0,G.jsxs)(`span`,{className:`cv-takeover-selection`,"aria-live":`polite`,children:[o,` selected`]}),t[9]=o,t[10]=_);let v;t[11]!==r||t[12]!==o?(v=r&&(0,G.jsxs)(`button`,{type:`button`,className:`cv-takeover-close`,onClick:r,children:[o>0?(0,G.jsxs)(G.Fragment,{children:[`Ask about `,o,` →`]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`←`}),` Back to answer`]}),(0,G.jsx)(`kbd`,{"aria-hidden":`true`,children:`esc`})]}),t[11]=r,t[12]=o,t[13]=v):v=t[13];let y;t[14]!==_||t[15]!==v?(y=(0,G.jsxs)(`div`,{className:`cv-takeover-actions`,children:[_,v]}),t[14]=_,t[15]=v,t[16]=y):y=t[16];let b;t[17]!==y||t[18]!==h?(b=(0,G.jsxs)(`header`,{className:`cv-takeover-head`,children:[h,y]}),t[17]=y,t[18]=h,t[19]=b):b=t[19];let x;t[20]===e?x=t[21]:(x=(0,G.jsx)(ye,{...e}),t[20]=e,t[21]=x);let S;return t[22]!==b||t[23]!==x||t[24]!==f?(S=(0,fe.createPortal)((0,G.jsxs)(`div`,{ref:a,className:`cv-takeover`,role:`dialog`,"aria-modal":`true`,"aria-label":f,children:[b,x]}),document.body),t[22]=b,t[23]=x,t[24]=f,t[25]=S):S=t[25],S}function ve(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function ye({blocks:e,spot:t,renderBlock:n,onAskBlock:r,selectedBlockIds:i}){let a=(0,z.useMemo)(()=>e.filter(e=>!!e.id),[e]),o=(0,z.useMemo)(()=>pe(a.length),[a.length]),s=(0,z.useRef)([]),[c,l]=(0,z.useState)([]),u=(0,z.useCallback)(()=>{let e=a.map((e,t)=>s.current[t]?.offsetHeight||X);l(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)},[a]);(0,z.useLayoutEffect)(()=>{u()},[u]),(0,z.useEffect)(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>u());return s.current.forEach(t=>t&&e.observe(t)),()=>e.disconnect()},[u,a]);let{placed:d,w:m,h}=(0,z.useMemo)(()=>me(a,c,o),[a,c,o]),g=(0,z.useMemo)(()=>({x:-28,y:-28,w:m+Z,h:h+Z}),[m,h]),x=(0,z.useMemo)(()=>he(d.map(e=>({x:e.cx,y:e.cy}))),[d]),{camera:S,transform:C,viewportRef:w,fitTo:T,zoomAtClient:E,pan:D,setCamera:O}=b({clamp:Q,margin:40}),k=_(),A=(0,z.useRef)(S);A.current=S;let j=(0,z.useRef)(0),M=(0,z.useRef)(!1);(0,z.useEffect)(()=>{if(M.current)return;let e=0,t=0;e=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>T(g))});let n=setTimeout(()=>T(g),360);return()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),clearTimeout(n)}},[g,T]);let N=(0,z.useCallback)(e=>{let t=w.current,n=d[e];if(!t||!n)return;M.current=!0,j.current=e;let r=t.getBoundingClientRect(),i=Math.min(Math.max(A.current.scale,.85),Q.max);O(y(n.cx,n.cy,i,{w:r.width,h:r.height},Q))},[d,w,O]),P=(0,z.useRef)(!1);(0,z.useEffect)(()=>{if(!t){P.current&&(M.current=!1,T(g)),P.current=!1;return}let e=d.findIndex(e=>e.block.id===t);e>=0&&(P.current=!0,N(e))},[t,d,N,T,g]);let[F,I]=(0,z.useState)(!1),L=(0,z.useRef)(!1),ee=(0,z.useRef)(!1),R=(0,z.useRef)({x:0,y:0}),te=(0,z.useCallback)(e=>{e.button===0&&(e.target.closest(`.cv-node-ask, .cv-controls, a, button, input, select, textarea, [contenteditable="true"]`)||(L.current=!0,M.current=!0,ee.current=!1,I(!0),R.current={x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture(e.pointerId)))},[]),ne=(0,z.useCallback)(e=>{if(!L.current)return;let t=e.clientX-R.current.x,n=e.clientY-R.current.y;Math.abs(t)+Math.abs(n)>3&&(ee.current=!0),R.current={x:e.clientX,y:e.clientY},D(t,n)},[D]),re=(0,z.useCallback)(e=>{let t=L.current;L.current=!1,I(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(!t||ee.current)return;let n=w.current;if(!n||d.length===0)return;let r=n.getBoundingClientRect(),i=v(A.current,e.clientX-r.left,e.clientY-r.top),a=d.findIndex(e=>i.x>=e.x&&i.x<=e.x+e.w&&i.y>=e.y&&i.y<=e.y+e.h);a>=0&&N(a)},[d,w,N]);(0,z.useEffect)(()=>{let e=w.current;if(!e)return;let t=e=>{e.preventDefault(),M.current=!0,E(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[w,E]);let B=(0,z.useCallback)(e=>{let t=w.current;if(!t)return;let n=t.getBoundingClientRect();M.current=!0,E(e,n.left+n.width/2,n.top+n.height/2)},[w,E]),V=(0,z.useCallback)(e=>{e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),N(Math.min(d.length-1,j.current+1))):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),N(Math.max(0,j.current-1))):e.key===`Home`&&(e.preventDefault(),T(g))},[N,T,g,d.length]),H=S.scale>=.6;return(0,G.jsxs)(`div`,{className:`cv-viewport`+(F?` is-panning`:``),ref:w,role:`group`,"aria-label":`Answer canvas — this answer's cards as a board you can pan and zoom`,tabIndex:0,onPointerDown:te,onPointerMove:ne,onPointerUp:re,onPointerCancel:re,onKeyDown:V,children:[(0,G.jsxs)(`div`,{className:`cv-controls`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:()=>B(1.25),title:`Zoom in`,"aria-label":`Zoom in`,children:`+`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>B(1/1.25),title:`Zoom out`,"aria-label":`Zoom out`,children:`−`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>T(g),title:`Fit the whole canvas`,"aria-label":`Fit the whole canvas`,children:`⊡`})]}),(0,G.jsxs)(`div`,{className:`cv-world`,style:{width:m,height:h,transform:C},children:[(0,G.jsx)(`svg`,{className:`cv-thread-svg`,width:m,height:h,viewBox:`0 0 ${m} ${h}`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{className:`cv-thread`+(k?``:` cv-draw`),d:x,pathLength:1})}),d.map((e,a)=>{let o=e.block.id,c=i?.has(o)??!1;return(0,G.jsxs)(`div`,{ref:e=>{s.current[a]=e},className:`cv-node`+(c?` is-selected`:``)+(t===o?` is-spot`:``),style:{left:e.x,top:e.y,width:e.w},"data-kind":e.block.type,children:[(0,G.jsxs)(`div`,{className:`cv-node-label`,title:ge(e.block),children:[(0,G.jsx)(`span`,{className:`cv-node-step`,children:a+1}),(0,G.jsx)(`span`,{className:`cv-node-title`,children:ge(e.block)})]}),(0,G.jsx)(`div`,{className:`cv-node-inner`,children:(0,G.jsx)(f,{fallback:(0,G.jsx)(p,{block:e.block}),children:n(e.block)})}),r&&H&&(0,G.jsx)(`button`,{type:`button`,className:`cv-node-ask`,onClick:t=>{t.stopPropagation(),r(e.block)},children:c?`Selected`:`Ask`})]},o)})]})]})}function be(e){let t=(0,B.c)(35),{num:n,title:r,summary:i,stat:a,delta:o,deltaDir:c,conf:l,sources:u,spotlight:d,dimmed:f,onProve:p,delay:m,children:h}=e,g=`card reveal`+(d?` spotlight`:``)+(f?` dimmed`:``),_=(m||0)+`ms`,v;t[0]===_?v=t[1]:(v={"--delay":_},t[0]=_,t[1]=v);let y=v,b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,G.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),t[2]=b):b=t[2];let x;t[3]===n?x=t[4]:(x=(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[b,`Finding `,n]}),t[3]=n,t[4]=x);let C;t[5]===r?C=t[6]:(C=(0,G.jsx)(`div`,{className:`insight-title`,children:r}),t[5]=r,t[6]=C);let w;t[7]!==o||t[8]!==c||t[9]!==a?(w=a&&(0,G.jsxs)(`div`,{className:`insight-stat`,children:[(0,G.jsx)(`span`,{className:`big tab-num`,"data-mark":`underline`,children:a}),o&&(0,G.jsxs)(`span`,{className:`delta `+(c||`up`),children:[c===`good`||c===`down`?(0,G.jsx)(s.arrowDown,{style:{width:13,height:13}}):(0,G.jsx)(s.arrowUp,{style:{width:13,height:13}}),o]})]}),t[7]=o,t[8]=c,t[9]=a,t[10]=w):w=t[10];let T;t[11]===i?T=t[12]:(T=(0,G.jsx)(`div`,{className:`insight-summary`,children:i}),t[11]=i,t[12]=T);let E;t[13]===u?E=t[14]:(E=u&&u.map(xe),t[13]=u,t[14]=E);let D;t[15]===E?D=t[16]:(D=(0,G.jsx)(`div`,{className:`card-foot-l`,children:E}),t[15]=E,t[16]=D);let O;t[17]!==l||t[18]!==u?.length?(O=l&&(0,G.jsx)(S,{level:l,title:u?.length?void 0:`Best estimate from the model's knowledge — not verified`}),t[17]=l,t[18]=u?.length,t[19]=O):O=t[19];let k;t[20]!==D||t[21]!==O?(k=(0,G.jsxs)(`div`,{className:`card-foot`,children:[D,O]}),t[20]=D,t[21]=O,t[22]=k):k=t[22];let A;t[23]===p?A=t[24]:(A=p&&(0,G.jsx)(`div`,{style:{marginTop:14},children:(0,G.jsxs)(`button`,{className:`mini-btn accent`,onClick:p,children:[(0,G.jsx)(s.proof,{}),` Prove it`]})}),t[23]=p,t[24]=A);let j;return t[25]!==h||t[26]!==g||t[27]!==k||t[28]!==A||t[29]!==y||t[30]!==x||t[31]!==C||t[32]!==w||t[33]!==T?(j=(0,G.jsxs)(`div`,{className:g,style:y,children:[x,C,w,T,h,k,A]}),t[25]=h,t[26]=g,t[27]=k,t[28]=A,t[29]=y,t[30]=x,t[31]=C,t[32]=w,t[33]=T,t[34]=j):j=t[34],j}function xe(e,t){return(0,G.jsx)(w,{file:e.file,loc:e.loc},t)}function Se({title:e,series:t,labels:n,unit:r=`$`,delay:i,footer:a,conf:o}){let[c,l]=(0,z.useState)(null),u={l:50,r:50,t:14,b:26},d=t.flatMap(e=>e.data),f=(d.length?Math.max(...d):1)*1.12,p=Math.min(0,...d),m=f-p||1,h=n.length,g=e=>u.l+(h>1?e/(h-1):0)*(560-u.l-u.r),_=e=>u.t+(1-(e-p)/m)*(220-u.t-u.b),v=(()=>{let e=0,n=-1/0;for(let r of t)r.data.forEach((t,r)=>{t>n&&(n=t,e=r)});return e})(),y=e=>e.map((e,t)=>`${t?`L`:`M`}${g(t).toFixed(1)} ${_(e).toFixed(1)}`).join(` `),b=e=>`${y(e)} L${g(h-1)} ${_(p)} L${g(0)} ${_(p)} Z`;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.chart,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsxs)(`div`,{className:`chart-wrap`,children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 560 220`,width:`100%`,style:{display:`block`,overflow:`visible`},onMouseLeave:()=>l(null),children:[(0,G.jsx)(`defs`,{children:t.map((e,t)=>(0,G.jsxs)(`linearGradient`,{id:`g${t}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:e.color,stopOpacity:`0`})]},t))}),[.25,.5,.75].map((e,t)=>(0,G.jsx)(`line`,{x1:u.l,x2:560-u.r,y1:u.t+e*(220-u.t-u.b),y2:u.t+e*(220-u.t-u.b),stroke:`var(--grid-line)`},t)),t.map((e,t)=>(0,G.jsxs)(`g`,{children:[e.area!==!1&&(0,G.jsx)(`path`,{className:`tc-area`,d:b(e.data),fill:`url(#g${t})`}),(0,G.jsx)(`path`,{className:`tc-line`,d:y(e.data),pathLength:1,fill:`none`,stroke:e.color,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]},t)),n.map((e,t)=>(0,G.jsx)(`rect`,{x:g(t)-560/h/2,y:0,width:560/h,height:220,fill:`transparent`,"data-mark":t===v?`circle`:void 0,onMouseEnter:()=>l(t)},t)),c!=null&&(0,G.jsxs)(`g`,{children:[(0,G.jsx)(`line`,{x1:g(c),x2:g(c),y1:u.t,y2:220-u.b,stroke:`var(--hover-line)`}),t.map((e,t)=>(0,G.jsx)(`circle`,{cx:g(c),cy:_(e.data[c]),r:`4.5`,fill:e.color,stroke:`var(--surface-default)`,strokeWidth:`2`},t))]}),n.map((e,t)=>(0,G.jsx)(`text`,{x:g(t),y:214,fontSize:`11`,textAnchor:`middle`,fill:`var(--text-muted)`,children:e},t))]}),c!=null&&(0,G.jsxs)(`div`,{className:`chart-tip`,style:{opacity:1,left:`${g(c)/560*100}%`,top:`${_(Math.max(...t.map(e=>e.data[c])))/220*100}%`},children:[(0,G.jsx)(`strong`,{children:n[c]}),t.map((e,n)=>(0,G.jsxs)(`div`,{style:{color:e.color,fontVariantNumeric:`tabular-nums`},children:[e.name,`: `,r,t[n].data[c].toLocaleString()]},n))]})]}),(0,G.jsx)(`div`,{className:`chart-legend`,children:t.map((e,t)=>(0,G.jsxs)(`span`,{className:`legend-item`,children:[(0,G.jsx)(`span`,{className:`sw`,style:{background:e.color}}),e.name]},t))}),a&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ce({title:e,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,conf:i,delay:a}){let o=s[t]||s.table,c=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.pct>r[t].pct&&(t=n)}),t})();return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`div`,{className:`cat-list`,children:r.map((e,t)=>(0,G.jsxs)(`div`,{className:`cat-row`,children:[(0,G.jsxs)(`div`,{className:`cat-top`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`span`,{className:`cat-name`,children:e.name}),e.tag&&(0,G.jsx)(`span`,{className:`cat-tag`,style:e.tagColor?{color:e.tagColor,background:`transparent`,border:`1px solid currentColor`}:void 0,children:e.tag})]}),(0,G.jsx)(`span`,{className:`tab-num`,children:e.val})]}),(0,G.jsx)(`div`,{className:`cat-bar`,children:(0,G.jsx)(`i`,{"data-mark":t===c?`circle`:void 0,style:{width:e.pct+`%`,background:e.hot?`var(--warning)`:`var(--presence)`}})})]},e.name))}),i&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:i,title:`Best estimate from the model's knowledge — not verified`})]})]})}function we(e){let t=(0,B.c)(13),{title:n,events:r,delay:i,eyebrow:a}=e,o=(i||0)+`ms`,c;t[0]===o?c=t[1]:(c={"--delay":o},t[0]=o,t[1]=c);let l=c,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,G.jsx)(s.clock,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=u):u=t[2];let d=a||n,f;t[3]===d?f=t[4]:(f=(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[u,` `,d]}),t[3]=d,t[4]=f);let p;t[5]===r?p=t[6]:(p=r.map(Te),t[5]=r,t[6]=p);let m;t[7]===p?m=t[8]:(m=(0,G.jsx)(`div`,{className:`timeline`,children:p}),t[7]=p,t[8]=m);let h;return t[9]!==l||t[10]!==f||t[11]!==m?(h=(0,G.jsxs)(`div`,{className:`card reveal`,style:l,children:[f,m]}),t[9]=l,t[10]=f,t[11]=m,t[12]=h):h=t[12],h}function Te(e,t){return(0,G.jsxs)(`div`,{className:`tl-row`,children:[(0,G.jsx)(`div`,{className:`tl-rail`,children:(0,G.jsx)(`span`,{className:`tl-dot`,"data-mark":t===0?`point`:void 0,style:{background:e.color||`var(--presence)`}})}),(0,G.jsxs)(`div`,{className:`tl-body`,children:[(0,G.jsx)(`div`,{className:`tl-time`,children:e.time}),(0,G.jsxs)(`div`,{className:`tl-title`,children:[e.title,e.tag&&(0,G.jsx)(`span`,{className:`cat-tag`,style:{marginLeft:8},children:e.tag})]}),e.detail&&(0,G.jsx)(`div`,{className:`tl-detail`,children:e.detail})]})]},t)}function Ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,items:r,delay:i}){let a=s[t]||s.layers;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(a,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`div`,{className:`check-list`,children:r.map((e,t)=>(0,G.jsxs)(`div`,{className:`check-row`,children:[(0,G.jsx)(`span`,{className:`check-ic`,children:(0,G.jsx)(s.check,{})}),(0,G.jsx)(`span`,{"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:D(e)})]},t))})]})}function De(e){let t=(0,B.c)(26),{eyebrow:n,options:r,criteria:i,recommendation:a,delay:o}=e,c=(o||0)+`ms`,l;t[0]===c?l=t[1]:(l={"--delay":c},t[0]=c,t[1]=l);let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=d):d=t[2];let f=n||`Side by side`,p;t[3]===f?p=t[4]:(p=(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[d,` `,f]}),t[3]=f,t[4]=p);let m=`minmax(0, 1.1fr) repeat(${r.length}, minmax(0, 1fr))`,h;t[5]===m?h=t[6]:(h={gridTemplateColumns:m},t[5]=m,t[6]=h);let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,G.jsx)(`div`,{className:`cmp-corner`}),t[7]=g):g=t[7];let _;t[8]===r?_=t[9]:(_=r.map(Oe),t[8]=r,t[9]=_);let v;if(t[10]!==i||t[11]!==r){let e;t[13]===r?e=t[14]:(e=(e,t)=>(0,G.jsxs)(z.Fragment,{children:[(0,G.jsx)(`div`,{className:`cmp-crit`,children:e.label}),e.cells.map((e,t)=>(0,G.jsxs)(`div`,{className:`cmp-val`+(e.win?` win`:``)+(r[t]&&r[t].pick?` in-pick`:``),children:[e.win&&(0,G.jsx)(`span`,{className:`cmp-tick`,children:(0,G.jsx)(s.check,{style:{width:11,height:11}})}),(0,G.jsx)(`span`,{children:e.v})]},t))]},t),t[13]=r,t[14]=e),v=i.map(e),t[10]=i,t[11]=r,t[12]=v}else v=t[12];let y;t[15]!==_||t[16]!==v||t[17]!==h?(y=(0,G.jsxs)(`div`,{className:`cmp`,style:h,children:[g,_,v]}),t[15]=_,t[16]=v,t[17]=h,t[18]=y):y=t[18];let b;t[19]===a?b=t[20]:(b=a&&(0,G.jsxs)(`div`,{className:`cmp-rec`,children:[(0,G.jsx)(s.sparkle,{style:{width:16,height:16,color:`var(--insight)`,flexShrink:0}}),(0,G.jsx)(`span`,{dangerouslySetInnerHTML:D(a)})]}),t[19]=a,t[20]=b);let x;return t[21]!==y||t[22]!==b||t[23]!==u||t[24]!==p?(x=(0,G.jsxs)(`div`,{className:`card reveal`,style:u,children:[p,y,b]}),t[21]=y,t[22]=b,t[23]=u,t[24]=p,t[25]=x):x=t[25],x}function Oe(e,t){return(0,G.jsxs)(`div`,{className:`cmp-opt`+(e.pick?` pick`:``),"data-mark":e.pick?`circle`:void 0,children:[(0,G.jsx)(`div`,{className:`cmp-opt-name`,children:e.name}),e.sub&&(0,G.jsx)(`div`,{className:`cmp-opt-sub`,children:e.sub}),e.pick&&(0,G.jsxs)(`div`,{className:`cmp-pick`,children:[(0,G.jsx)(s.check,{style:{width:12,height:12}}),` Mavéa's pick`]})]},t)}function ke({kicker:e,head:t,bullets:n,foot:r,eyebrow:i=`One-pager · ready to share`,delay:a}){return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,i]}),(0,G.jsxs)(`div`,{className:`slide-card`,children:[(0,G.jsx)(`div`,{className:`slide-kicker`,children:e}),(0,G.jsx)(`div`,{className:`slide-head`,children:t}),(0,G.jsx)(`div`,{className:`slide-bullets`,children:n.map((e,t)=>(0,G.jsxs)(`div`,{className:`slide-bullet`,children:[(0,G.jsx)(`span`,{className:`bdot`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`}}),(0,G.jsx)(`span`,{dangerouslySetInnerHTML:D(e.text)})]},t))}),(0,G.jsxs)(`div`,{className:`slide-foot`,children:[(0,G.jsx)(`span`,{children:r||`Made by Mavéa · from your files`}),(0,G.jsx)(`span`,{children:`June 2026`})]})]}),(0,G.jsxs)(`div`,{className:`action-btns`,style:{marginTop:16},children:[(0,G.jsxs)(`button`,{className:`btn-ghost`,onClick:()=>O(`Tell Mavéa what to change — it'll redo the one-pager`,`info`),children:[(0,G.jsx)(s.edit,{style:{width:15,height:15}}),` Edit`]}),(0,G.jsx)(`button`,{className:`btn-ghost`,onClick:()=>O(`Simplified — fewer words, bigger takeaways`,`good`),children:`Make it simpler`}),(0,G.jsxs)(`button`,{className:`btn-primary`,style:{flex:`0 0 auto`,padding:`0 20px`},onClick:()=>window.print(),title:`Export this canvas to PDF`,children:[(0,G.jsx)(s.export,{style:{width:16,height:16}}),` Export`]})]})]})}function Ae(e,t){return t||(e?e.startsWith(`calendar.`)?`Adds one event to your calendar. No invites are sent.`:e.startsWith(`github.`)?`Opens a draft PR. It won't merge until you review and approve it on GitHub.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`)}function je({delay:e,onConfirm:t,eyebrow:n=`Action`,icon:r=`mail`,title:i=`Run this action`,lines:a,perm:o,cta:c=`Confirm`,doneText:l=`Done`,mcpId:u,fields:d}){let[f,p]=(0,z.useState)(`idle`),[m,h]=(0,z.useState)(()=>Object.fromEntries((d??[]).map(e=>[e.param,e.value]))),[g,_]=(0,z.useState)(``),v=(0,z.useRef)(void 0);(0,z.useEffect)(()=>()=>clearTimeout(v.current),[]);let y=s[r]||s.mail,b=Ae(u,o),x=async()=>{p(`running`),await new Promise(e=>{v.current=setTimeout(e,1400)}),p(`done`),t?.()};return(0,G.jsxs)(`div`,{className:`card action-card reveal`,style:{"--delay":(e||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(y,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,n]}),(0,G.jsx)(`div`,{className:`insight-title`,style:{fontSize:17},children:i}),f!==`editing`&&a&&a.length>0&&(0,G.jsx)(`div`,{className:`action-preview`,children:a.map((e,t)=>(0,G.jsxs)(`div`,{style:{marginTop:t?6:0},children:[(0,G.jsx)(`span`,{className:`to`,children:e.k}),` · `,e.v]},t))}),f===`editing`&&d&&d.length>0&&(0,G.jsx)(`div`,{className:`action-edit-fields`,children:d.map(e=>(0,G.jsxs)(`div`,{className:`action-edit-field`,children:[(0,G.jsx)(`label`,{className:`action-edit-label`,children:e.label}),e.multiline?(0,G.jsx)(`textarea`,{className:`action-edit-input action-edit-textarea`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value})),rows:4}):(0,G.jsx)(`input`,{className:`action-edit-input`,type:`text`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value}))})]},e.param))}),f!==`editing`&&(0,G.jsxs)(`div`,{className:`perm`,children:[(0,G.jsx)(s.lock,{}),` `,b]}),f===`done`&&(0,G.jsxs)(`button`,{type:`button`,onClick:t,disabled:!t,style:{display:`flex`,alignItems:`center`,gap:8,color:`var(--insight)`,fontWeight:600,fontSize:14,marginTop:6,background:`none`,border:0,padding:0,textAlign:`left`,cursor:t?`pointer`:`default`},children:[(0,G.jsx)(s.check,{style:{width:18,height:18}}),` `,l,t&&(0,G.jsx)(`span`,{className:`open-app-hint`,children:`· open ↗`})]}),f===`error`&&(0,G.jsxs)(`div`,{className:`action-error`,children:[(0,G.jsx)(`span`,{className:`action-error-msg`,children:g}),(0,G.jsx)(`button`,{className:`btn-ghost`,style:{marginLeft:12},onClick:()=>{p(`idle`),_(``)},children:`Retry`})]}),f===`idle`&&(0,G.jsxs)(`div`,{className:`action-btns`,children:[(0,G.jsxs)(`button`,{className:`btn-primary`,onClick:x,children:[(0,G.jsx)(s.check,{style:{width:16,height:16}}),` `,c]}),d&&d.length>0&&(0,G.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`editing`),children:`Edit first`})]}),f===`editing`&&(0,G.jsxs)(`div`,{className:`action-btns`,children:[(0,G.jsxs)(`button`,{className:`btn-primary`,onClick:()=>x(),children:[(0,G.jsx)(s.check,{style:{width:16,height:16}}),` Confirm`]}),(0,G.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`idle`),children:`Cancel`})]}),f===`running`&&(0,G.jsx)(`div`,{className:`action-btns`,children:(0,G.jsxs)(`button`,{className:`btn-primary`,disabled:!0,children:[(0,G.jsx)(`span`,{className:`tiny-spin`}),` Working…`]})})]})}function Me({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,rings:r,footer:i,delay:a}){let o=s[t]||s.spark,c=`rs`+(0,z.useId)().replace(/:/g,``),l=2*Math.PI*52;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`div`,{className:`ring-row`,children:r.map((e,t)=>{let n=Math.max(0,Math.min(1,e.pct)),r=e.color||`var(--presence)`;return(0,G.jsxs)(`div`,{className:`ring-item`,children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 130 130`,className:`ring-svg`,children:[(0,G.jsxs)(`defs`,{children:[(0,G.jsxs)(`linearGradient`,{id:`${c}g${t}`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.65`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:r})]}),(0,G.jsxs)(`filter`,{id:`${c}f${t}`,x:`-40%`,y:`-40%`,width:`180%`,height:`180%`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`3`,result:`b`}),(0,G.jsxs)(`feMerge`,{children:[(0,G.jsx)(`feMergeNode`,{in:`b`}),(0,G.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,G.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`var(--track)`,strokeWidth:`11`}),(0,G.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`url(#${c}g${t})`,strokeWidth:`11`,strokeLinecap:`round`,strokeDasharray:l,strokeDashoffset:l*(1-n),filter:`url(#${c}f${t})`,transform:`rotate(-90 65 65)`,className:`ring-arc`,"data-mark":t===0?`circle`:void 0}),(()=>{let t=String(e.display??``),n=t.length,r=Math.max(9,Math.min(25,Math.round(155/Math.max(1,n)))),i=n>10;return(0,G.jsx)(`text`,{x:`65`,y:e.unit?61:70,textAnchor:`middle`,className:`ring-val`,style:{fontSize:r},...i?{textLength:92,lengthAdjust:`spacingAndGlyphs`}:{},children:t})})(),e.unit&&(0,G.jsx)(`text`,{x:`65`,y:`80`,textAnchor:`middle`,className:`ring-unit`,children:e.unit})]}),(0,G.jsx)(`div`,{className:`ring-label`,children:e.label}),e.hint&&(0,G.jsx)(`div`,{className:`ring-hint`,children:e.hint})]},t)})}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:6},children:i})]})}function Ne({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,bars:r,unit:i=``,goal:a,goalLabel:o,footer:c,conf:l,delay:u}){let d=s[t]||s.chart,f=Math.max(...r.map(e=>e.value),a||0)*1.05||1,p=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.value>r[t].value&&(t=n)}),t})(),m=i.trim(),h=m!==``&&(/^[$€£¥₹]/.test(m)||m===`%`||m.length<=2),g=h?``:m;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),g&&(0,G.jsx)(`div`,{className:`bars-unit`,children:g}),(0,G.jsxs)(`div`,{className:`bars-chart`,children:[(0,G.jsxs)(`div`,{className:`bars-plot`,children:[a!=null&&(0,G.jsx)(`div`,{className:`bars-goal`,style:{bottom:`${a/f*100}%`},children:(0,G.jsx)(`span`,{className:`bars-goal-label`,children:o||`Goal`})}),r.map((e,t)=>(0,G.jsx)(`div`,{className:`bar-col`,children:(0,G.jsx)(`div`,{className:`bar-fill`,"data-mark":t===p?`circle`:void 0,style:{height:`${e.value/f*100}%`,background:e.hot?`var(--warning)`:e.color||`var(--presence)`},children:(0,G.jsx)(`span`,{className:`bar-val tab-num`,children:e.label2||(h?k(e.value,i):A(e.value))})})},t))]}),(0,G.jsx)(`div`,{className:`bars-axis`,children:r.map((e,t)=>(0,G.jsx)(`div`,{className:`bar-label`,children:e.label},t))})]}),c&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:c}),l&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:l,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Pe({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,total:r,segments:i,footer:a,conf:o,delay:c}){let l=s[t]||s.layers,u=i.reduce((e,t)=>e+t.value,0)||1,d=i.reduce((e,t,n)=>t.value>i[e].value?n:e,0);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,G.jsx)(`div`,{className:`stack-total tab-num`,children:r}),(0,G.jsx)(`div`,{className:`stack-bar`,children:i.map((e,t)=>(0,G.jsx)(`div`,{className:`stack-seg`,title:`${e.label} · ${e.display}`,"data-mark":t===d?`circle`:void 0,style:{width:`${e.value/u*100}%`,background:e.color}},t))}),(0,G.jsx)(`div`,{className:`stack-legend`,children:i.map((e,t)=>(0,G.jsxs)(`div`,{className:`stack-leg`,children:[(0,G.jsx)(`span`,{className:`sw`,style:{background:e.color}}),(0,G.jsx)(`span`,{className:`stack-leg-name`,children:e.label}),(0,G.jsx)(`span`,{className:`stack-leg-val tab-num`,children:e.display})]},t))}),a&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Fe({title:e,icon:t=`chart`,iconColor:n=`var(--warning)`,points:r,xLabel:i,yLabel:a,xDomain:o,yDomain:c,trend:l,footer:u,delay:d}){let f=s[t]||s.chart,p={l:54,r:14,t:14,b:38},m=1/0,h=-1/0,g=1/0,_=-1/0;for(let e of r)e.x<m&&(m=e.x),e.x>h&&(h=e.x),e.y<g&&(g=e.y),e.y>_&&(_=e.y);let v=o||[m,h],y=c||[g,_],b=v[1]-v[0]||1,x=y[1]-y[0]||1,S=e=>p.l+(e-v[0])/b*(540-p.l-p.r),C=e=>p.t+(1-(e-y[0])/x)*(240-p.t-p.b),w=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.y>r[t].y&&(t=n)}),t})();return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsxs)(`svg`,{viewBox:`0 0 540 240`,width:`100%`,style:{display:`block`,overflow:`visible`},children:[[0,.5,1].map((e,t)=>{let n=p.t+e*(240-p.t-p.b);return(0,G.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:n,y2:n,stroke:`var(--grid-line)`},t)}),(0,G.jsx)(`line`,{x1:p.l,x2:p.l,y1:p.t,y2:240-p.b,stroke:`var(--grid-strong)`}),(0,G.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:240-p.b,y2:240-p.b,stroke:`var(--grid-strong)`}),l&&(0,G.jsx)(`line`,{x1:S(l[0][0]),y1:C(l[0][1]),x2:S(l[1][0]),y2:C(l[1][1]),stroke:`var(--warning)`,strokeWidth:`2`,strokeDasharray:`5 5`,opacity:`0.7`}),r.map((e,t)=>(0,G.jsx)(`circle`,{cx:S(e.x),cy:C(e.y),r:e.hot?7:5.5,fill:e.hot?`var(--warning)`:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`,opacity:e.hot?1:.8,"data-mark":t===w?`circle`:void 0},t)),(0,G.jsx)(`text`,{x:270,y:234,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:i}),(0,G.jsx)(`text`,{x:0,y:0,transform:`translate(13, ${(p.t+240-p.b)/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:a})]}),u&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:u})]})}function Ie({title:e,icon:t=`clock`,iconColor:n=`var(--insight)`,cols:r,rows:i,levelColor:a,footer:o,legend:c,delay:l}){let u=s[t]||s.clock,d=0,f=0,p=-1;i.forEach((e,t)=>{e.cells.forEach((e,n)=>{let r=typeof e==`object`&&e?e.lvl??0:e??0;r!=null&&r>p&&(p=r,d=t,f=n)})});let m=e=>e==null?`var(--cell-empty)`:`color-mix(in oklab, ${a||`var(--presence)`} ${[.14,.34,.6,.92][Math.max(0,Math.min(3,e))]*100}%, transparent)`;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsxs)(`div`,{className:`heat-wrap`,children:[r&&(0,G.jsxs)(`div`,{className:`heat-cols`,children:[(0,G.jsx)(`span`,{className:`heat-rowhead`}),r.map((e,t)=>(0,G.jsx)(`span`,{className:`heat-col-label`,children:e},t))]}),i.map((e,t)=>(0,G.jsxs)(`div`,{className:`heat-row`,children:[(0,G.jsx)(`span`,{className:`heat-rowhead`,children:e.label}),e.cells.map((e,n)=>(0,G.jsx)(`span`,{className:`heat-cell`,title:e&&typeof e==`object`&&e.note?e.note:``,"data-mark":t===d&&n===f?`circle`:void 0,style:{background:m(typeof e==`object`&&e?e.lvl:e)},children:typeof e==`object`&&e&&e.mark?(0,G.jsx)(`span`,{className:`heat-mark`,children:e.mark}):null},n))]},t))]}),c&&(0,G.jsxs)(`div`,{className:`heat-legend`,children:[(0,G.jsx)(`span`,{className:`faint`,children:c[0]}),[0,1,2,3].map(e=>(0,G.jsx)(`span`,{className:`heat-cell sm`,style:{background:m(e)}},e)),(0,G.jsx)(`span`,{className:`faint`,children:c[1]})]}),o&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function Le({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence-soft)`,steps:r,footer:i,delay:a}){let o=s[t]||s.sparkle;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`div`,{className:`flow`,children:r.map((e,t)=>(0,G.jsxs)(z.Fragment,{children:[(0,G.jsxs)(`div`,{className:`flow-step`,style:{"--sc":e.color||`var(--presence)`},children:[(0,G.jsx)(`div`,{className:`flow-num`,"data-mark":t===0?`circle`:void 0,children:t+1}),(0,G.jsx)(`div`,{className:`flow-title`,children:e.title}),(0,G.jsx)(`div`,{className:`flow-sub`,children:e.sub})]}),t<r.length-1&&(0,G.jsx)(`div`,{className:`flow-arrow`,children:(0,G.jsx)(s.chevR,{})})]},t))}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:i})]})}function Re({title:e=`From the web`,live:t=!0,results:n,footer:r,delay:i}){return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.globe,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e,t&&(0,G.jsxs)(`span`,{className:`web-live`,children:[(0,G.jsx)(`span`,{className:`web-live-dot`}),`live`]})]}),(0,G.jsx)(`div`,{className:`web-list`,children:n.map((e,t)=>(0,G.jsxs)(`button`,{type:`button`,className:`web-result`,onClick:()=>O(`Opening `+e.domain+` →`),children:[(0,G.jsx)(`span`,{className:`web-fav`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`},children:(e.domain||`?`)[0].toUpperCase()}),(0,G.jsxs)(`span`,{className:`web-body`,children:[(0,G.jsx)(`span`,{className:`web-title`,children:e.title}),(0,G.jsxs)(`span`,{className:`web-url`,children:[e.domain,e.path||``]}),(0,G.jsx)(`span`,{className:`web-excerpt`,dangerouslySetInnerHTML:D(e.excerpt)})]}),(0,G.jsx)(s.external,{className:`web-ext`})]},t))}),r&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function ze(e){let t=(0,B.c)(12),{item:n}=e,r=n.src??``,i;t[0]!==n.candidates||t[1]!==r?(i=[r,...n.candidates??[]].map(Ve).filter(Be),t[0]=n.candidates,t[1]=r,t[2]=i):i=t[2];let a=i,o;t[3]===n.fallbackSrc?o=t[4]:(o=j(n.fallbackSrc),t[3]=n.fallbackSrc,t[4]=o);let c=o,l=M(a),u=l.src??(a.length&&l.state===`none`?c:void 0);if(!u){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(s.image,{className:`img-ph-ic`}),t[5]=e):e=t[5],e}let d;t[6]===c?d=t[7]:(d=e=>{let t=e.currentTarget;c&&t.src!==c&&(t.src=c)},t[6]=c,t[7]=d);let f;return t[8]!==n.label||t[9]!==u||t[10]!==d?(f=(0,G.jsx)(`img`,{className:`img-real`,src:u,alt:n.label,loading:`lazy`,referrerPolicy:`no-referrer`,onError:d}),t[8]=n.label,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}function Be(e){return!!e}function Ve(e){return j(e)}function He({eyebrow:e=`From the web`,items:t,footer:n,delay:r}){return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.image,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`gallery`,children:t.map((e,t)=>{let n=()=>O(`Saved “`+e.label+`” to your notes`);return(0,G.jsxs)(`div`,{className:`img-tile`,role:`button`,tabIndex:0,"aria-label":`Save ${e.label} to your notes`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},style:{"--h1":e.h1||`#3a4a6e`,"--h2":e.h2||`#1a2236`,cursor:`pointer`},children:[(0,G.jsxs)(`span`,{className:`img-ph`,children:[(0,G.jsx)(ze,{item:e}),e.tag&&(0,G.jsx)(`span`,{className:`img-tag`,children:e.tag}),e.source&&(0,G.jsx)(`span`,{className:`img-src`,children:e.source})]}),(0,G.jsx)(`span`,{className:`img-cap`,children:e.label})]},e.label+t)})}),n&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function Ue({title:e=`What this change touches`,center:t,nodes:n,footer:r,delay:i}){let a=n.map((e,t)=>{let r=(-90+360/n.length*t)*Math.PI/180;return{...e,x:180+Math.cos(r)*74,y:125+Math.sin(r)*74*.86}}),o=Math.max(0,a.findIndex(e=>e.hot));return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`codemap`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 360 250`,width:`100%`,style:{display:`block`},children:[a.map((e,t)=>(0,G.jsx)(`line`,{x1:180,y1:125,x2:e.x,y2:e.y,stroke:e.hot?`var(--warning)`:`var(--grid-strong)`,strokeWidth:e.hot?1.6:1,strokeDasharray:e.hot?`0`:`3 3`},t)),a.map((e,t)=>(0,G.jsxs)(`g`,{transform:`translate(${e.x} ${e.y})`,children:[(0,G.jsx)(`circle`,{r:`6`,fill:e.hot?`var(--warning)`:`var(--surface-elevated-2)`,stroke:e.hot?`var(--warning)`:`var(--line-strong)`,strokeWidth:`1.5`,"data-mark":t===o?`circle`:void 0}),(0,G.jsx)(`text`,{x:`0`,y:e.y>125?20:-12,textAnchor:`middle`,fontSize:`10.5`,fill:`var(--text-secondary)`,className:`mono`,children:e.label}),e.note&&(0,G.jsx)(`text`,{x:`0`,y:e.y>125?32:-24,textAnchor:`middle`,fontSize:`9`,fill:`var(--text-muted)`,children:e.note})]},t)),(0,G.jsxs)(`g`,{transform:`translate(180 125)`,children:[(0,G.jsx)(`circle`,{r:`11`,fill:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`}),(0,G.jsx)(`circle`,{r:`11`,fill:`none`,stroke:`var(--presence)`,strokeWidth:`1`,opacity:`0.4`,className:`codemap-pulse`}),(0,G.jsx)(`text`,{x:`0`,y:`28`,textAnchor:`middle`,fontSize:`11`,fontWeight:`600`,fill:`var(--text-primary)`,className:`mono`,children:t})]})]})}),r&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:r})]})}function We(e){let t=(0,B.c)(32),{title:n,file:r,add:i,del:a,lines:o,footer:c,delay:l}=e,u=(l||0)+`ms`,d;t[0]===u?d=t[1]:(d={"--delay":u},t[0]=u,t[1]=d);let f=d,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,G.jsx)(s.edit,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=p):p=t[2];let m=n||`The change`,h;t[3]===m?h=t[4]:(h=(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[p,` `,m]}),t[3]=m,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,G.jsx)(s.doc,{style:{width:13,height:13}}),t[5]=g):g=t[5];let _;t[6]===r?_=t[7]:(_=(0,G.jsxs)(`span`,{className:`diff-file mono`,children:[g,` `,r]}),t[6]=r,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,G.jsxs)(`span`,{className:`add`,children:[`+`,i]}),t[8]=i,t[9]=v);let y;t[10]===a?y=t[11]:(y=(0,G.jsxs)(`span`,{className:`del`,children:[`−`,a]}),t[10]=a,t[11]=y);let b;t[12]!==y||t[13]!==v?(b=(0,G.jsxs)(`span`,{className:`diff-stat`,children:[v,` `,y]}),t[12]=y,t[13]=v,t[14]=b):b=t[14];let x;t[15]!==b||t[16]!==_?(x=(0,G.jsxs)(`div`,{className:`diff-head`,children:[_,b]}),t[15]=b,t[16]=_,t[17]=x):x=t[17];let S;t[18]===o?S=t[19]:(S=o.map(Ge),t[18]=o,t[19]=S);let C;t[20]===S?C=t[21]:(C=(0,G.jsx)(`div`,{className:`diff-body mono`,children:S}),t[20]=S,t[21]=C);let w;t[22]!==x||t[23]!==C?(w=(0,G.jsxs)(`div`,{className:`diff`,children:[x,C]}),t[22]=x,t[23]=C,t[24]=w):w=t[24];let T;t[25]===c?T=t[26]:(T=c&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c}),t[25]=c,t[26]=T);let E;return t[27]!==w||t[28]!==T||t[29]!==f||t[30]!==h?(E=(0,G.jsxs)(`div`,{className:`card reveal`,style:f,children:[h,w,T]}),t[27]=w,t[28]=T,t[29]=f,t[30]=h,t[31]=E):E=t[31],E}function Ge(e,t){return(0,G.jsxs)(`div`,{className:`diff-line `+(e.t||`ctx`),children:[(0,G.jsx)(`span`,{className:`diff-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,G.jsx)(`span`,{className:`diff-code`,dangerouslySetInnerHTML:D(e.c)})]},t)}var Ke={pass:s.check,fail:s.x,skip:s.clock};function qe({title:e=`Tests after the change`,summary:t,items:n,footer:r,delay:i}){let a=n.findIndex(e=>e.status===`fail`);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.proof,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),t&&(0,G.jsx)(`div`,{className:`checks-summary`,children:t}),(0,G.jsx)(`div`,{className:`checks-list`,children:n.map((e,t)=>{let n=Ke[e.status]||s.check;return(0,G.jsxs)(`div`,{className:`check2-row `+e.status,children:[(0,G.jsx)(`span`,{className:`check2-ic`,"data-mark":t===a?`circle`:void 0,children:(0,G.jsx)(n,{})}),(0,G.jsx)(`span`,{className:`check2-name mono`,children:e.name}),e.note&&(0,G.jsx)(`span`,{className:`check2-note`,children:e.note})]},t)})}),r&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function Je({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,size:r=132,thickness:i=18,rows:a,footer:o,conf:c,delay:l}){let u=s[t]||s.chart,d=r/2-i/2,f=2*Math.PI*d,p=0,m=a.map(e=>{let t=f*e.pct/100,n={len:t,off:-p,color:e.color};return p+=t,n}),h=a.reduce((e,t,n)=>t.pct>a[e].pct?n:e,0);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsxs)(`div`,{className:`donut-wrap`,children:[(0,G.jsx)(`svg`,{className:`donut`,viewBox:`0 0 ${r} ${r}`,width:r,height:r,children:(0,G.jsxs)(`g`,{transform:`rotate(-90 ${r/2} ${r/2})`,children:[(0,G.jsx)(`circle`,{cx:r/2,cy:r/2,r:d,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:i}),m.map((e,t)=>(0,G.jsx)(`circle`,{className:`donut-seg`,cx:r/2,cy:r/2,r:d,fill:`none`,stroke:e.color,strokeWidth:i,strokeLinecap:`butt`,strokeDasharray:`${Math.max(0,e.len-1.5)} ${f-Math.max(0,e.len-1.5)}`,strokeDashoffset:e.off,"data-mark":t===h?`circle`:void 0},t))]})}),(0,G.jsx)(`ul`,{className:`donut-legend`,children:a.map((e,t)=>(0,G.jsxs)(`li`,{children:[(0,G.jsx)(`i`,{className:`sw`,style:{background:e.color}}),(0,G.jsx)(`span`,{className:`dl-label`,children:e.label}),(0,G.jsxs)(`span`,{className:`dl-pct tab-num`,children:[e.pct,`%`]})]},t))})]}),o&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o}),c&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:c,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ye({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,value:r,max:i=100,size:a=116,color:o,band:c,driver:l,footer:u,conf:d,delay:f}){let p=s[t]||s.spark,m=a/2-10,h=Math.max(0,Math.min(1,r/i)),g=o||(r>=40?`var(--warning)`:`var(--insight)`);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsxs)(`div`,{className:`risk-wrap`,children:[(0,G.jsxs)(`div`,{className:`gauge-host`,children:[(0,G.jsxs)(`svg`,{className:`gauge`,viewBox:`0 0 ${a} ${a}`,width:a,height:a,children:[(0,G.jsx)(`circle`,{cx:a/2,cy:a/2,r:m,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:`9`}),(0,G.jsx)(`circle`,{className:`gauge-arc`,cx:a/2,cy:a/2,r:m,fill:`none`,stroke:g,strokeWidth:`9`,strokeLinecap:`round`,pathLength:1,strokeDasharray:1,strokeDashoffset:1-h,transform:`rotate(-90 ${a/2} ${a/2})`})]}),(0,G.jsxs)(`div`,{className:`gauge-center`,children:[(0,G.jsx)(`div`,{className:`gauge-num tab-num`,"data-mark":`underline`,style:{color:g},children:r}),c&&(0,G.jsx)(`div`,{className:`gauge-band`,children:c})]})]}),l&&(0,G.jsx)(`p`,{className:`risk-driver`,dangerouslySetInnerHTML:D(l)})]}),u&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u}),d&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:d,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Xe({title:e=`Around the league`,icon:t=`bell`,iconColor:n=`var(--presence-soft)`,games:r,footer:i,delay:a}){let o=s[t]||s.bell,c=Math.max(0,r.findIndex(e=>e.hot));return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`ul`,{className:`score-list`,children:r.map((e,t)=>(0,G.jsxs)(`li`,{className:`game`+(e.hot?` hot`:``),"data-mark":t===c?`circle`:void 0,style:{"--ti":t},children:[(0,G.jsxs)(`div`,{className:`g-rows`,children:[(0,G.jsxs)(`div`,{className:`g-team`,children:[(0,G.jsx)(`span`,{className:`g-name`,children:e.away}),(0,G.jsx)(`span`,{className:`g-score tab-num`,children:e.as})]}),(0,G.jsxs)(`div`,{className:`g-team`,children:[(0,G.jsx)(`span`,{className:`g-name`,children:e.home}),(0,G.jsx)(`span`,{className:`g-score tab-num`,children:e.hs})]})]}),(0,G.jsxs)(`span`,{className:`g-status`+(e.hot?` live`:``),children:[e.hot&&(0,G.jsx)(`span`,{className:`live-dot`}),e.status]})]},t))}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Ze({title:e=`Standings`,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.table;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`ul`,{className:`stand-list`,children:r.map((e,t)=>(0,G.jsxs)(`li`,{className:`stand`,style:{"--ti":t},children:[(0,G.jsx)(`span`,{className:`stand-rank`,children:t+1}),(0,G.jsx)(`span`,{className:`stand-team`,"data-mark":t===0?`underline`:void 0,children:e.team}),(0,G.jsx)(`span`,{className:`stand-rec tab-num`,children:e.rec}),(0,G.jsx)(`span`,{className:`stand-gb tab-num`,children:e.gb})]},t))}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Qe({title:e=`By stage`,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,headline:r,sub:i,unit:a=`$`,suffix:o=`M`,stages:c,footer:l,delay:u}){let d=s[t]||s.layers,f=Math.max(1,...c.map(e=>e.v)),p=c.reduce((e,t,n)=>t.v>c[e].v?n:e,0);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,G.jsxs)(`div`,{className:`stat-row`,children:[r&&(0,G.jsx)(`div`,{className:`big-stat tab-num`,style:{color:`var(--presence)`},children:r}),i&&(0,G.jsx)(`span`,{className:`delta accent`,children:i})]}),(0,G.jsx)(`ul`,{className:`funnel`,children:c.map((e,t)=>(0,G.jsxs)(`li`,{className:`funnel-row`,style:{"--ti":t},children:[(0,G.jsx)(`span`,{className:`funnel-label`,children:e.k}),(0,G.jsx)(`span`,{className:`funnel-track`,children:(0,G.jsx)(`span`,{className:`funnel-fill`,"data-mark":t===p?`circle`:void 0,style:{width:e.v/f*100+`%`}})}),(0,G.jsxs)(`span`,{className:`funnel-val tab-num`,children:[a,e.v,o]})]},t))}),l&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:l})]})}function $e(e){return e===4?2:Math.min(Math.max(e,1),3)}function et({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,cols:r,kpis:i,footer:a,conf:o,delay:c}){let l=s[t]||s.spark;return(0,G.jsxs)(`div`,{className:`card reveal kpi-card`,style:{"--delay":(c||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`div`,{className:`kpi-grid`,style:{"--kpi-cols":r??$e(i.length)},children:i.map((e,t)=>(0,G.jsxs)(`div`,{className:`kpi`,children:[(0,G.jsx)(`div`,{className:`kpi-val tab-num`,"data-mark":t===0?`underline`:void 0,style:e.color?{color:e.color}:void 0,children:e.val}),(0,G.jsx)(`div`,{className:`kpi-label`,children:e.label})]},t))}),a&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,G.jsxs)(`div`,{className:`card-foot`,children:[(0,G.jsx)(`div`,{className:`card-foot-l`}),(0,G.jsx)(S,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function tt({title:e=`What customers are saying`,icon:t=`quote`,iconColor:n=`var(--presence-soft)`,quotes:r,footer:i,delay:a}){let o=s[t]||s.quote;return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`ul`,{className:`quote-list`,children:r.map((e,t)=>(0,G.jsxs)(`li`,{className:`quote-item q-`+(e.tone||`neutral`),style:{"--ti":t},children:[(0,G.jsxs)(`p`,{className:`quote-text`,children:[`“`,e.text,`”`]}),(0,G.jsx)(`span`,{className:`quote-who`,children:e.who})]},t))}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function nt({title:e=`Plan`,icon:t=`check`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.check,c=(()=>{let e=r.findIndex(e=>e.st===`doing`);return e>=0?e:r.findIndex(e=>e.st===`todo`)})();return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,G.jsx)(`ul`,{className:`plan-list`,children:r.map((e,t)=>(0,G.jsxs)(`li`,{className:`plan-row st-`+e.st,style:{"--ti":t},children:[(0,G.jsx)(`span`,{className:`plan-check`,"data-mark":t===c?`circle`:void 0,children:e.st===`done`?(0,G.jsx)(s.check,{style:{width:12,height:12}}):e.st===`doing`?(0,G.jsx)(`span`,{className:`plan-dot`}):null}),(0,G.jsx)(`span`,{className:`plan-t`,children:e.t})]},t))}),i&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function rt({title:e=`What I learned about you`,items:t,conf:n,delay:r}){let i=t.filter(e=>N(e.text));return i.length===0?null:(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.sparkle,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`understand-list`,children:i.map((e,t)=>(0,G.jsxs)(`div`,{className:`understand-row`,children:[(0,G.jsx)(`span`,{className:`understand-check`,children:(0,G.jsx)(s.check,{})}),(0,G.jsx)(`span`,{className:`understand-text`,"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:D(e.text)}),(0,G.jsxs)(`span`,{className:`understand-meta`,children:[e.source&&(0,G.jsx)(w,{file:e.source}),(0,G.jsx)(`button`,{className:`understand-edit`,title:`Fix this`,type:`button`,onClick:()=>O(`Tell Mavéa what's off — it'll adjust`,`info`),children:(0,G.jsx)(s.edit,{})})]})]},t))}),(0,G.jsxs)(`div`,{className:`card-foot`,style:{marginTop:14},children:[(0,G.jsx)(`span`,{className:`faint`,style:{fontSize:12.5},children:`Read straight from your site — correct anything.`}),n&&(0,G.jsx)(S,{level:n,title:i.some(e=>e.source)?void 0:`Best estimate from the model's knowledge — not verified`})]})]})}function it({title:e=`The data model`,entities:t,relations:n,footer:r,delay:i}){return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`schema`,children:t.map((e,t)=>(0,G.jsxs)(`div`,{className:`entity`,style:{"--ec":e.color||`var(--presence)`},children:[(0,G.jsxs)(`div`,{className:`entity-head`,children:[(0,G.jsx)(s.table,{style:{width:13,height:13}}),` `,e.name,e.badge&&(0,G.jsx)(`span`,{className:`entity-badge`,children:e.badge})]}),(0,G.jsx)(`div`,{className:`entity-fields`,children:e.fields.map((e,t)=>(0,G.jsxs)(`div`,{className:`entity-field`,children:[(0,G.jsx)(`span`,{className:`ef-key`+(e.key?` is-key`:``),children:e.name}),(0,G.jsx)(`span`,{className:`ef-type`,children:e.type})]},t))})]},t))}),n&&(0,G.jsx)(`div`,{className:`relations`,children:n.map((e,t)=>(0,G.jsxs)(`span`,{className:`relation`,children:[(0,G.jsx)(`b`,{children:e.from}),` `,e.label,` `,(0,G.jsx)(`b`,{children:e.to})]},t))}),r&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}var at={dashboard:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`wl w60`}),(0,G.jsxs)(`div`,{className:`wgrid`,children:[(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{})]}),(0,G.jsx)(`span`,{className:`wbar`})]}),table:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`wl w40`}),(0,G.jsx)(`span`,{className:`wrow`}),(0,G.jsx)(`span`,{className:`wrow`}),(0,G.jsx)(`span`,{className:`wrow`}),(0,G.jsx)(`span`,{className:`wrow`})]}),board:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`wl w40`}),(0,G.jsxs)(`div`,{className:`wcols`,children:[(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{})]})]}),detail:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`wl w50`}),(0,G.jsx)(`span`,{className:`wblock`}),(0,G.jsx)(`span`,{className:`wl w70`}),(0,G.jsx)(`span`,{className:`wl w50`})]}),list:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`wl w40`}),(0,G.jsx)(`span`,{className:`wrow`}),(0,G.jsx)(`span`,{className:`wrow`}),(0,G.jsx)(`span`,{className:`wrow`})]})};function ot({title:e=`The screens you'll get`,screens:t,footer:n,delay:r}){return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`screenmap`,children:t.map((e,t)=>{let n=()=>O(`Opening `+e.name+` — you can rename or reorder`,`info`);return(0,G.jsxs)(`div`,{className:`screen-thumb`,role:`button`,tabIndex:0,"aria-label":`Open ${e.name}`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},children:[(0,G.jsx)(`div`,{className:`screen-wire`,children:at[e.kind]||at.table}),(0,G.jsx)(`figcaption`,{children:e.name})]},t)})}),n&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function st({title:e=`Building it`,steps:t,footer:n,delay:r}){let[i,a]=(0,z.useState)(0),o=t.filter(e=>e.status===`active`).length;(0,z.useEffect)(()=>{if(o===0)return;let e=(r||0)+1400,t=Array.from({length:o},(t,n)=>setTimeout(()=>a(e=>Math.max(e,n+1)),e+n*900));return()=>t.forEach(clearTimeout)},[o,r]);let c=0,l=t.map(e=>{if(e.status!==`active`)return e;let t=c<i;return c+=1,t?{...e,status:`done`}:e}),u=l.findIndex(e=>e.status===`active`);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),(0,G.jsx)(`div`,{className:`buildsteps`,children:l.map((e,t)=>(0,G.jsxs)(`div`,{className:`buildstep `+(e.status||`done`),children:[(0,G.jsx)(`span`,{className:`buildstep-ic`,"data-mark":t===u?`circle`:void 0,children:e.status===`active`?(0,G.jsx)(`span`,{className:`tiny-spin`}):e.status===`todo`?(0,G.jsx)(`span`,{className:`bs-dot`}):(0,G.jsx)(s.check,{})}),(0,G.jsxs)(`span`,{className:`buildstep-body`,children:[(0,G.jsx)(`span`,{className:`buildstep-label`,children:e.label}),e.sub&&(0,G.jsx)(`span`,{className:`buildstep-sub`,children:e.sub})]})]},t))}),n&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function ct({app:e,seededFrom:t,nav:n,stages:r,rows:i,kpis:a,columns:o,groupColumns:c=[`Group`,`Items`,`Total`],pipelineLabel:l=`Pipeline by stage`,agg:u=`money`,createdNote:d=`created this with Mavéa`,activities:f,footer:p,delay:m}){let[h,g]=(0,z.useState)(n[0]?.label||``),_=n.find(e=>e.label===h)||n[0],v=e=>u===`money`?`$`+Math.round(e/1e3)+`k`:e.toLocaleString(),y=i.reduce((e,t)=>e+(t.amt||0),0),b=new Map,x=new Map;for(let e of i){let t=b.get(e.group)??{count:0,value:0,color:e.color};t.count+=1,t.value+=e.amt||0,b.set(e.group,t),x.set(e.stage,(x.get(e.stage)??0)+1)}let S=Array.from(b,([e,t])=>({name:e,...t})),C=r.reduce((e,t)=>Math.max(e,x.get(t.key)??0),1),w=f||[],T=({s:e})=>{let t=r.find(t=>t.key===e)||r[0];return(0,G.jsx)(`span`,{className:`at-stage `+t.kind,children:e})};return(0,G.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,G.jsx)(s.external,{className:`ic`,style:{color:`var(--insight)`}}),` Live preview · your app`,(0,G.jsxs)(`span`,{className:`preview-live`,children:[(0,G.jsx)(`span`,{className:`web-live-dot`}),`working`]})]}),(0,G.jsxs)(`div`,{className:`appframe`,children:[(0,G.jsxs)(`div`,{className:`appframe-bar`,children:[(0,G.jsx)(`span`,{className:`aflight`}),(0,G.jsx)(`span`,{className:`aflight`}),(0,G.jsx)(`span`,{className:`aflight`}),(0,G.jsxs)(`span`,{className:`afurl mono`,children:[e.toLowerCase().replace(/\s+/g,`-`),`.mavea.app`]})]}),(0,G.jsxs)(`div`,{className:`appframe-body`,children:[(0,G.jsxs)(`div`,{className:`appnav`,children:[(0,G.jsx)(`div`,{className:`appnav-brand`,children:e}),n.map((e,t)=>(0,G.jsx)(`button`,{className:`appnav-item`+(h===e.label?` on`:``),type:`button`,onClick:()=>g(e.label),children:e.label},t))]}),(0,G.jsxs)(`div`,{className:`appmain`,children:[(0,G.jsxs)(`div`,{className:`appmain-top`,children:[(0,G.jsx)(`span`,{className:`appmain-title`,children:_?.label}),_?.view===`dashboard`&&t&&(0,G.jsx)(`span`,{className:`appmain-sub`,children:t})]}),_?.view===`dashboard`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`appkpis`,children:a.map((e,t)=>(0,G.jsxs)(`div`,{className:`appkpi`,children:[(0,G.jsx)(`span`,{className:`appkpi-v tab-num`,children:e.v}),(0,G.jsx)(`span`,{className:`appkpi-k`,children:e.k})]},t))}),(0,G.jsxs)(`div`,{className:`appdash`,children:[(0,G.jsxs)(`div`,{className:`apppanel`,children:[(0,G.jsx)(`div`,{className:`apppanel-h`,children:l}),r.map((e,t)=>{let n=i.filter(t=>t.stage===e.key),r=n.reduce((e,t)=>e+(t.amt||0),0),a=Math.round(y?r/y*100:n.length/C*100);return(0,G.jsxs)(`div`,{className:`apppipe`,children:[(0,G.jsxs)(`span`,{className:`apppipe-l`,children:[e.key,` `,(0,G.jsxs)(`span`,{className:`faint`,children:[`· `,n.length]})]}),(0,G.jsx)(`span`,{className:`apppipe-bar`,children:(0,G.jsx)(`i`,{style:{width:Math.max(6,a)+`%`,background:e.color}})}),(0,G.jsx)(`span`,{className:`apppipe-v tab-num`,children:y?v(r):n.length})]},t)})]}),(0,G.jsxs)(`div`,{className:`apppanel`,children:[(0,G.jsx)(`div`,{className:`apppanel-h`,children:`Recent activity`}),w.map((e,t)=>(0,G.jsxs)(`div`,{className:`appact`,children:[(0,G.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,G.jsxs)(`span`,{className:`appact-t`,children:[(0,G.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,G.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))]})]})]}),_?.view===`table`&&(0,G.jsxs)(`div`,{className:`apptable`,children:[(0,G.jsxs)(`div`,{className:`apptable-head`,children:[(0,G.jsx)(`span`,{children:o[0]}),(0,G.jsx)(`span`,{children:o[1]}),(0,G.jsx)(`span`,{children:o[2]}),(0,G.jsx)(`span`,{className:`ta-r`,children:o[3]})]}),i.map((e,t)=>(0,G.jsxs)(`div`,{className:`apptable-row`,children:[(0,G.jsxs)(`span`,{className:`at-name`,children:[(0,G.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,G.jsx)(`span`,{children:e.group}),(0,G.jsx)(`span`,{children:(0,G.jsx)(T,{s:e.stage})}),(0,G.jsx)(`span`,{className:`ta-r tab-num`,children:e.value})]},t))]}),_?.view===`board`&&(0,G.jsx)(`div`,{className:`appboard`,children:r.map((e,t)=>(0,G.jsxs)(`div`,{className:`appcol`,children:[(0,G.jsxs)(`div`,{className:`appcol-h`,children:[(0,G.jsx)(`span`,{className:`appcol-dot`,style:{background:e.color}}),e.key,(0,G.jsx)(`span`,{className:`faint`,children:i.filter(t=>t.stage===e.key).length})]}),i.filter(t=>t.stage===e.key).map((e,t)=>(0,G.jsxs)(`div`,{className:`appdeal`,children:[(0,G.jsx)(`div`,{className:`appdeal-n`,children:e.name}),(0,G.jsxs)(`div`,{className:`appdeal-m`,children:[e.group,` · `,(0,G.jsx)(`span`,{className:`tab-num`,children:e.value})]})]},t))]},t))}),_?.view===`group`&&(0,G.jsxs)(`div`,{className:`apptable`,children:[(0,G.jsxs)(`div`,{className:`apptable-head threecol`,children:[(0,G.jsx)(`span`,{children:c[0]}),(0,G.jsx)(`span`,{children:c[1]}),(0,G.jsx)(`span`,{className:`ta-r`,children:c[2]})]}),S.map((e,t)=>(0,G.jsxs)(`div`,{className:`apptable-row threecol`,children:[(0,G.jsxs)(`span`,{className:`at-name`,children:[(0,G.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,G.jsx)(`span`,{children:e.count}),(0,G.jsx)(`span`,{className:`ta-r tab-num`,children:v(e.value)})]},t))]}),_?.view===`activity`&&(0,G.jsx)(`div`,{className:`appactivity`,children:w.concat([{who:`You`,what:d,when:`just now`,color:`var(--presence-deep)`}]).map((e,t)=>(0,G.jsxs)(`div`,{className:`appact row`,children:[(0,G.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,G.jsxs)(`span`,{className:`appact-t`,children:[(0,G.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,G.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))})]})]})]}),p&&(0,G.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function lt(e){return e>=1100?12:e>=820?9:e>=580?6:4}var ut=e=>{let t=e.type??``,n=P[t],r=e.col;return r===void 0?n:n?{...n,pref:r}:{pref:r}};function dt(e,t){if(e.length===0)return e;try{return I(e,ut,t)}catch{return e}}function ft(e,t){let[n,r]=(0,z.useState)(()=>typeof window<`u`?lt(window.innerWidth):12),i=(0,z.useRef)(null),a=(0,z.useRef)(null),o=(0,z.useRef)(0);return(0,z.useLayoutEffect)(()=>{let e=t.current;if(e===i.current||(i.current=e,a.current?.disconnect(),cancelAnimationFrame(o.current),!e||typeof ResizeObserver>`u`))return;a.current||=new ResizeObserver(e=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let t=e[0],n=t?.contentRect.width??t?.target?.offsetWidth;n!==void 0&&r(e=>{let t=lt(n);return e===t?e:t})})}),a.current.observe(e);let n=lt(e.offsetWidth);r(e=>e===n?e:n)}),(0,z.useLayoutEffect)(()=>()=>{cancelAnimationFrame(o.current),a.current?.disconnect(),a.current=null},[]),{displayBlocks:(0,z.useMemo)(()=>{try{return I(e,ut,n)}catch{return e}},[e,n]),budget:n}}var pt=new Set([`auto`,`scroll`]);function mt(e){let t=(e.closest(`.card`)?.querySelector(`.card-eyebrow, h1, h2, h3, [role="heading"]`)?.textContent)?.trim().replace(/\s+/g,` `).slice(0,100);return t?`Scrollable content: ${t}`:`Scrollable card content`}function ht(e,t){let n=(0,B.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t)return;let n=new Map,r=new Set,i=!1,a=!1,o=0,s=e=>n.has(e)||e.scrollWidth<=e.clientWidth+8?!1:pt.has(getComputedStyle(e).overflowX),c=e=>{if(n.has(e))return;let t=e.hasAttribute(`tabindex`),r=e.hasAttribute(`role`),i=e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`);t||(e.tabIndex=0),r||e.setAttribute(`role`,`region`),i||e.setAttribute(`aria-label`,mt(e)),e.classList.add(`canvas-hscroll`);let a=()=>{let t=e.scrollLeft+e.clientWidth>=e.scrollWidth-2;e.classList.toggle(`canvas-hscroll--end`,t)};a(),e.addEventListener(`scroll`,a,{passive:!0}),n.set(e,()=>{e.removeEventListener(`scroll`,a),e.classList.remove(`canvas-hscroll`,`canvas-hscroll--end`),t||e.removeAttribute(`tabindex`),r||e.removeAttribute(`role`),i||e.removeAttribute(`aria-label`)})},l=e=>{let n=e instanceof HTMLElement?e:e.parentElement;for(;n&&n.parentElement!==t;)n=n.parentElement;return n},u=()=>{if(o=0,a){a=!1;for(let[e,t]of n)e.isConnected||(t(),n.delete(e))}let e=i?[t]:[...r].filter(e=>t.contains(e));i=!1,r.clear();let l=[];for(let n of e){n!==t&&s(n)&&l.push(n);for(let e of n.querySelectorAll(`*`))s(e)&&l.push(e)}for(let e of l)c(e)},d=()=>{o||=requestAnimationFrame(u)},f=()=>{i=!0,d()};f();let p=window.setTimeout(f,700),m=typeof MutationObserver>`u`?null:new MutationObserver(e=>{for(let t of e){if(t.removedNodes.length){a=!0;let e=l(t.target);e&&r.add(e)}for(let e of t.addedNodes){let t=l(e);t&&r.add(t)}}(r.size||a)&&d()});m?.observe(t,{childList:!0,subtree:!0});let h=-1,g=typeof ResizeObserver>`u`?null:new ResizeObserver(e=>{let t=e.at(-1)?.contentRect.width??h;t!==h&&(h=t,f())});return g?.observe(t),()=>{o&&cancelAnimationFrame(o),clearTimeout(p),m?.disconnect(),g?.disconnect();for(let e of n.values())e()}},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,z.useEffect)(r,i)}var gt=/…\s*$/u,_t=0;function vt(e){return(e??``).replace(/\s+/g,` `).trim()}var yt=/\S/u;function bt(e){let t=new Map,n=e=>{if(e.tagName.toLowerCase()===`title`)return t.set(e,``),``;let r=``;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE?r+=`${t.textContent??``} `:t instanceof Element&&(r+=`${n(t)} `);return t.set(e,r),r};return n(e),t}function xt(e,t){let n=t.textOverflow===`ellipsis`&&t.whiteSpace.includes(`nowrap`)&&e.scrollWidth>e.clientWidth+1,r=t.webkitLineClamp||t.getPropertyValue(`-webkit-line-clamp`),i=Number.parseInt(r,10),a=Number.isFinite(i)&&i>0&&e.scrollHeight>e.clientHeight+2;return n||a}function St(e){let t=[...e.children].find(e=>e.tagName.toLowerCase()===`title`);return vt(e.getAttribute(`data-full-text`)||e.getAttribute(`title`)||t?.textContent||e.getAttribute(`aria-label`))}function Ct(e,t,n){let r=St(e)||(n?t:``),i=e;if(!r||r===t){let n=e.parentElement,a=n?St(n):``;a&&a!==t&&(r=a,i=n)}return!r||!n&&(r===t||r.length<=t.replace(gt,``).length)||!(i instanceof HTMLElement)&&!(i instanceof SVGElement)?null:{target:i,full:r}}function wt(e){return e.matches(`button, a[href], input, select, textarea, summary, [contenteditable="true"]`)}function Tt(e,t){if(e.hasAttribute(`data-semantic-ellipsis`))return null;let n=t.get(e)??``;if(!yt.test(n))return null;let r=getComputedStyle(e);if(r.visibility===`hidden`||parseFloat(r.opacity)===0)return null;let i=vt(n),a=e instanceof HTMLElement&&xt(e,r);if(!gt.test(i)&&!a)return null;let o=Ct(e,i,a);return o?{source:e,...o}:null}function Et(e,t){(0,z.useEffect)(()=>{let t=e.current;if(!t)return;let n=`canvas-text-disclosure-${++_t}`,r=document.createElement(`div`);r.id=n,r.className=`canvas-text-popover`,r.setAttribute(`role`,`tooltip`),r.hidden=!0,document.body.appendChild(r);let i=new Map,a=new Set,o=new Set,s=!1,c=!1,l=null,u=0,d=0,f=e=>{let t=e.getBoundingClientRect();r.style.maxWidth=`${Math.max(180,Math.min(420,window.innerWidth-24))}px`,r.style.left=`0px`,r.style.top=`0px`;let n=r.getBoundingClientRect(),i=Math.min(window.innerWidth-n.width-12,Math.max(12,t.left)),a=t.top-n.height-8,o=a>=12?a:Math.min(window.innerHeight-n.height-12,t.bottom+8);r.style.left=`${Math.round(i)}px`,r.style.top=`${Math.round(Math.max(12,o))}px`},p=()=>{d&&window.clearTimeout(d),d=0,l?.removeAttribute(`data-text-disclosure-active`),l=null,r.hidden=!0},m=(e,t)=>{d&&window.clearTimeout(d),l?.removeAttribute(`data-text-disclosure-active`),l=e,e.setAttribute(`data-text-disclosure-active`,`true`),r.textContent=t,r.hidden=!1,f(e)},h=({source:e,target:t,full:r})=>{if(e.setAttribute(`data-text-disclosure`,`true`),a.add(e),i.has(t))return;let o=t.hasAttribute(`tabindex`),s=t.hasAttribute(`role`),c=t.getAttribute(`aria-label`),u=t.getAttribute(`aria-describedby`);o||t.setAttribute(`tabindex`,`0`),!s&&!wt(t)&&t.setAttribute(`role`,`button`),c||t.setAttribute(`aria-label`,r);let f=new Set(vt(u).split(` `).filter(Boolean));f.add(n),t.setAttribute(`aria-describedby`,[...f].join(` `)),t.setAttribute(`data-text-disclosure`,`true`);let h=()=>m(t,r),g=()=>{d=window.setTimeout(p,120)},_=()=>l===t?p():m(t,r),v=e=>{let n=e.key;n===`Escape`&&p(),(n===`Enter`||n===` `)&&!wt(t)&&(e.preventDefault(),m(t,r))};t.addEventListener(`pointerenter`,h),t.addEventListener(`pointerleave`,g),t.addEventListener(`focus`,h),t.addEventListener(`blur`,g),t.addEventListener(`click`,_),t.addEventListener(`keydown`,v),i.set(t,()=>{t.removeEventListener(`pointerenter`,h),t.removeEventListener(`pointerleave`,g),t.removeEventListener(`focus`,h),t.removeEventListener(`blur`,g),t.removeEventListener(`click`,_),t.removeEventListener(`keydown`,v),t.removeAttribute(`data-text-disclosure`),t.removeAttribute(`data-text-disclosure-active`),o||t.removeAttribute(`tabindex`),s||t.removeAttribute(`role`),c||t.removeAttribute(`aria-label`),u===null?t.removeAttribute(`aria-describedby`):t.setAttribute(`aria-describedby`,u)})},g=e=>{let n=e instanceof HTMLElement?e:e.parentElement;for(;n&&n.parentElement!==t;)n=n.parentElement;return n},_=()=>{if(u=0,c){c=!1;for(let[e,t]of i)e.isConnected||(t(),i.delete(e));for(let e of a)e.isConnected||(e.removeAttribute(`data-text-disclosure`),a.delete(e))}let e=s?[t]:[...o].filter(e=>t.contains(e));s=!1,o.clear();let n=[];for(let r of e){let e=bt(r);if(r!==t){let t=Tt(r,e);t&&n.push(t)}for(let t of r.querySelectorAll(`*`)){let r=Tt(t,e);r&&n.push(r)}}for(let e of n)h(e)},v=()=>{u||=requestAnimationFrame(_)},y=()=>{s=!0,v()},b=e=>{l&&!l.contains(e.target)&&p()},x=()=>{l&&!r.hidden&&f(l)};y();let S=window.setTimeout(y,700),C=typeof MutationObserver>`u`?null:new MutationObserver(e=>{for(let t of e){if(t.removedNodes.length){c=!0;let e=g(t.target);e&&o.add(e)}for(let e of t.addedNodes){let t=g(e);t&&o.add(t)}}(o.size||c)&&v()});C?.observe(t,{childList:!0,subtree:!0});let w=-1,T=typeof ResizeObserver>`u`?null:new ResizeObserver(e=>{let t=e.at(-1)?.contentRect.width??w;t!==w&&(w=t,y())});return T?.observe(t),document.addEventListener(`pointerdown`,b,!0),window.addEventListener(`resize`,x,{passive:!0}),window.addEventListener(`scroll`,x,{passive:!0,capture:!0}),()=>{u&&cancelAnimationFrame(u),d&&window.clearTimeout(d),clearTimeout(S),C?.disconnect(),T?.disconnect(),document.removeEventListener(`pointerdown`,b,!0),window.removeEventListener(`resize`,x),window.removeEventListener(`scroll`,x,!0);for(let e of i.values())e();for(let e of a)e.removeAttribute(`data-text-disclosure`);r.remove()}},[e,t])}function Dt(e){if(!e)return;let t=e.parentElement;if(!t)return;let n=()=>{let n=Math.ceil(e.getBoundingClientRect().width);n>0&&t.style.setProperty(`--block-actions-w`,`${n+18}px`)};return n(),W(e,n)}function Ot(e){return e.some(e=>typeof e.section==`string`&&e.section.trim()!==``)}function kt(e){if(!Ot(e))return[{label:``,order:0,standard:e.slice(),deeper:[]}];let t=0,n=new Map;for(let r of e){let e=r.section,i=(typeof e==`string`?e.trim():``)||`__ungrouped__`;if(!n.has(i)){let e=typeof r.order==`number`?r.order:0;n.set(i,{ord:e||++t,standard:[],deeper:[]})}let a=n.get(i),o=r.depth;(typeof o==`number`?o:1)>=2?a.deeper.push(r):a.standard.push(r)}let r=[];for(let[e,t]of n)t.standard.length===0&&t.deeper.length>0&&t.standard.push(t.deeper.shift()),r.push({label:e===`__ungrouped__`?``:e,order:t.ord,standard:t.standard,deeper:t.deeper});return r.sort((e,t)=>e.order-t.order),r}i();var At=[{col:6},{col:6}];function jt({section:e,renderCard:t,readingMode:n}){let[r,i]=(0,z.useState)(!1),[o,c]=(0,z.useState)(null),[l,u]=(0,z.useState)(!1),d=(0,z.useRef)(!0);(0,z.useEffect)(()=>(d.current=!0,()=>{d.current=!1}),[]);let f=e.deeper.length>0?e.deeper:o??[],p=e.deeper.length===0&&o===null&&F(e.label,e.standard),m=f.length>0||p,h=n&&f.length>0||r,g=`depth-drawer-${e.order}`;return(0,G.jsxs)(`div`,{className:`depth-section`,children:[e.label&&(0,G.jsxs)(`div`,{className:`depth-section-header`,children:[e.order>0&&(0,G.jsx)(`span`,{className:`depth-section-num`,"aria-hidden":`true`,children:e.order}),(0,G.jsx)(`span`,{className:`depth-section-label`,children:e.label}),m&&(0,G.jsxs)(`button`,{type:`button`,className:`depth-go-deeper`+(h?` is-open`:``),"aria-expanded":h,"aria-controls":g,"aria-busy":l||void 0,onClick:()=>{let t=!r;i(t),!(!t||!p||l)&&(u(!0),a(async()=>{let{deepenSection:e}=await import(`./deepen-FZiVqiEc.js`);return{deepenSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(({deepenSection:t})=>t(e.label,e.standard)).then(e=>{d.current&&(u(!1),e&&e.length>0?c(e):i(!1))}).catch(()=>{d.current&&(u(!1),i(!1))}))},children:[(0,G.jsx)(s.arrowDown,{className:`depth-deeper-icon`,"aria-hidden":`true`}),`Go deeper`,f.length>0&&(0,G.jsxs)(`span`,{className:`depth-deeper-count`,children:[`(`,f.length,`)`]})]})]}),(0,G.jsx)(`div`,{className:`card-grid`,children:e.standard.map((e,n)=>t(e,n))}),m&&(0,G.jsx)(`div`,{className:`depth-drawer`+(h?` is-open`:``),id:g,"aria-hidden":!h,children:(0,G.jsx)(`div`,{className:`depth-drawer-inner`,children:(0,G.jsx)(`div`,{className:`card-grid depth-drawer-grid`,"aria-busy":l||void 0,children:l&&f.length===0?(0,G.jsx)(E,{blocks:At}):f.map((n,r)=>t(n,e.standard.length+r))})})})]})}function Mt(e){let t=(0,B.c)(33),{bend:n}=e,[r,i]=(0,z.useState)(n.param.value),a=n.param.unit??``,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(`span`,{className:`bend-kicker`,children:`BEND IT`}),t[0]=o):o=t[0];let s;t[1]===n.label?s=t[2]:(s=(0,G.jsx)(`span`,{className:`bend-label`,children:n.label}),t[1]=n.label,t[2]=s);let c;t[3]===r?c=t[4]:(c=L(r),t[3]=r,t[4]=c);let l;t[5]===a?l=t[6]:(l=a&&(0,G.jsx)(`em`,{children:a}),t[5]=a,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,G.jsxs)(`span`,{className:`bend-value`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]!==s||t[11]!==u?(d=(0,G.jsxs)(`div`,{className:`bend-head`,children:[o,s,u]}),t[10]=s,t[11]=u,t[12]=d):d=t[12];let f;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>i(Number(e.target.value)),t[13]=f):f=t[13];let p=`Bend ${n.label}`,m;t[14]!==n.param.max||t[15]!==n.param.min||t[16]!==n.param.step||t[17]!==p||t[18]!==r?(m=(0,G.jsx)(`input`,{className:`bend-slider`,type:`range`,min:n.param.min,max:n.param.max,step:n.param.step,value:r,onChange:f,"aria-label":p}),t[14]=n.param.max,t[15]=n.param.min,t[16]=n.param.step,t[17]=p,t[18]=r,t[19]=m):m=t[19];let h;if(t[20]!==n.label||t[21]!==n.outputs||t[22]!==r){let e;t[24]!==n.label||t[25]!==r?(e=e=>{let t=ee(e.formula,r);return t===null?null:(0,G.jsxs)(`li`,{title:`= ${e.formula.replaceAll(`x`,`(${n.label})`)}`,children:[(0,G.jsx)(`span`,{className:`bend-out-label`,children:e.label}),(0,G.jsxs)(`span`,{className:`bend-out-value`,children:[L(t),e.unit&&(0,G.jsx)(`em`,{children:e.unit})]})]},e.label)},t[24]=n.label,t[25]=r,t[26]=e):e=t[26],h=n.outputs.map(e),t[20]=n.label,t[21]=n.outputs,t[22]=r,t[23]=h}else h=t[23];let g;t[27]===h?g=t[28]:(g=(0,G.jsx)(`ul`,{className:`bend-outputs`,children:h}),t[27]=h,t[28]=g);let _;return t[29]!==g||t[30]!==d||t[31]!==m?(_=(0,G.jsxs)(`div`,{className:`bend-strip`,"data-bend":!0,children:[d,m,g]}),t[29]=g,t[30]=d,t[31]=m,t[32]=_):_=t[32],_}var Nt=15e3,Pt=5e3;async function Ft(e,t){let n=R(e);if(!n)return{ok:!1,detail:`Unknown action: ${e}`};for(let e of n.params)if(e.required&&!(t[e.name]??``).trim())return{ok:!1,detail:`Missing required field: ${e.name}`};try{let r=JSON.stringify({args:t}),i=await te(`/actions/confirm`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({id:e,args:t})},Pt),a=await i.json().catch(()=>({}));if(!i.ok||!a.confirmationToken)return{ok:!1,detail:a.detail||`The action confirmation expired. Please try again.`};let o=await te(`/actions/${encodeURIComponent(e)}`,{method:`POST`,headers:{"content-type":`application/json`,"x-action-confirmation":a.confirmationToken},body:r},Nt),s=await o.json().catch(()=>({}));return o.ok?{ok:!0,detail:s.detail||`${n.label} — done.`}:{ok:!1,detail:s.detail||`The ${n.mcp} action didn't go through (${o.status}).`}}catch{return{ok:!1,detail:`Couldn't reach the ${n.mcp} connector — is it set up in this deployment?`}}}function It({id:e,label:t,args:n={},delay:r=0}){let i=R(e),[a,o]=(0,z.useState)(`idle`),[s,c]=(0,z.useState)(``);if(!i)return null;let l={};for(let[e,t]of Object.entries(n))l[e]=typeof t==`string`?t:t==null?``:String(t);return(0,G.jsxs)(`div`,{className:`card reveal`,style:{animationDelay:`${r}ms`},children:[(0,G.jsx)(`div`,{className:`card-eyebrow`,children:i.label}),(0,G.jsx)(`div`,{style:{fontWeight:600,fontSize:15,marginBottom:10},children:t||i.desc}),(0,G.jsx)(`dl`,{style:{margin:`0 0 12px`,display:`grid`,gap:4},children:i.params.map(e=>{let t=l[e.name];return t?(0,G.jsxs)(`div`,{style:{display:`flex`,gap:8,fontSize:13},children:[(0,G.jsx)(`dt`,{className:`faint`,style:{minWidth:84},children:e.name}),(0,G.jsx)(`dd`,{style:{margin:0},children:t})]},e.name):null})}),a===`done`?(0,G.jsxs)(`div`,{style:{fontSize:13,color:`var(--insight)`},children:[`✓ `,s]}):a===`error`?(0,G.jsx)(`div`,{style:{fontSize:13,color:`var(--warning)`},children:s}):(0,G.jsx)(`button`,{className:`entry-action`,onClick:async()=>{o(`running`);let t=await Ft(e,l);c(t.detail),o(t.ok?`done`:`error`)},disabled:a===`running`,style:{fontSize:13},children:a===`running`?`Working…`:i.cta}),(0,G.jsx)(`div`,{className:`faint`,style:{fontSize:11.5,marginTop:8},children:`Review before confirming. You are responsible for recipients, account changes, irreversible effects, provider terms, charges, and other consequences.`})]})}var Lt=6;function Rt(e,t){return e?.find(e=>e.key===t)}function zt(e,t){return!e||e.kind!==`card`?!1:!e.accepts||e.accepts.includes(t)}function Bt(e,t,n){let[r,i]=(0,z.useState)(null),a=(0,z.useRef)(null),o=(0,z.useRef)(null),s=(0,z.useRef)(e);s.current=e;let c=(0,z.useRef)(t);c.current=t;let l=(0,z.useRef)(n);l.current=n;let u=()=>{o.current?.classList.remove(`is-drop-target`),o.current=null},d=(e,t,n)=>{let r=document.elementFromPoint(e,t)?.closest(`[data-blank-key]`)??null,i=r?.getAttribute(`data-blank-key`)??``;return r&&zt(Rt(s.current,i),n)?{el:r,key:i}:null};return{handleProps:(0,z.useCallback)(e=>({onPointerDown:t=>{t.button===0&&(a.current={block:e,startX:t.clientX,startY:t.clientY,armed:!1},t.currentTarget.setPointerCapture(t.pointerId))},onPointerMove:e=>{let t=a.current;if(!t)return;if(!t.armed){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<Lt)return;t.armed=!0}i({label:m(t.block),x:e.clientX,y:e.clientY});let n=d(e.clientX,e.clientY,t.block.type);if(o.current&&o.current!==n?.el&&u(),n){let e=n.el.querySelector(`.blank-drop`)??n.el;e.classList.add(`is-drop-target`),o.current=e}},onPointerUp:e=>{let t=a.current;if(a.current=null,i(null),u(),t){if(t.armed){let n=d(e.clientX,e.clientY,t.block.type);n&&c.current(n.key,t.block)}else l.current?.(t.block)}}}),[]),ghost:r?(0,G.jsx)(`div`,{className:`card-drag-ghost`,style:{left:r.x,top:r.y},"aria-hidden":!0,children:r.label}):null}}function Vt(e){let t=e.find(e=>e.type===`insight`&&!!e.id);return t?.id?t.id:e.find(e=>!!e.id)?.id??null}var Ht=340;function Ut(e){let t=(0,B.c)(9),{block:n,renderBlock:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={width:Ht},t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,G.jsx)(p,{block:n}),t[1]=n,t[2]=a);let o;t[3]!==n||t[4]!==r?(o=r(n),t[3]=n,t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==a||t[7]!==o?(s=(0,G.jsx)(`span`,{className:`filmstrip-thumb`,"aria-hidden":`true`,inert:!0,children:(0,G.jsx)(`span`,{className:`filmstrip-thumb-design`,style:i,children:(0,G.jsx)(f,{fallback:a,children:o})})}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}var Wt=(0,z.memo)(Ut,(e,t)=>e.block===t.block),Gt=24;function Kt(e){let t=(0,B.c)(21),{blocks:n,activeId:r,narratingId:i,onPick:a,renderBlock:o}=e,s=n.slice(0,Gt),c=n.length-s.length,l=(0,z.useRef)(null),u;t[0]===r?u=t[1]:(u=e=>e.id===r,t[0]=r,t[1]=u);let d=Math.max(0,s.findIndex(u)),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=window.setTimeout(()=>{let e=l.current?.querySelector(`.filmstrip-entry.active`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:_()?`auto`:`smooth`})},60);return()=>window.clearTimeout(e)},t[2]=f):f=t[2];let p;t[3]===r?p=t[4]:(p=[r],t[3]=r,t[4]=p),(0,z.useEffect)(f,p);let g=e=>{let t=s.length;if(!t)return;let n=document.activeElement,r=n instanceof HTMLElement?n.dataset.idx:void 0,i=r===void 0?d:Number(r),o;bb37:switch(e.key){case`ArrowDown`:case`ArrowRight`:o=Math.min(t-1,i+1);break bb37;case`ArrowUp`:case`ArrowLeft`:o=Math.max(0,i-1);break bb37;case`Home`:o=0;break bb37;case`End`:o=t-1;break bb37;default:return}e.preventDefault(),l.current?.querySelector(`[data-idx="${o}"]`)?.focus();let c=s[o].id;c&&a(c)},v;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,G.jsx)(`div`,{className:`filmstrip-eyebrow`,children:`In this view`}),t[5]=v):v=t[5];let y;t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==o||t[10]!==d?(y=(e,t)=>{let n=e.id===r,s=!!e.id&&e.id===i;return(0,G.jsxs)(`div`,{role:`button`,"data-idx":t,tabIndex:t===d?0:-1,className:`filmstrip-entry`+(n?` active`:``)+(s?` speaking`:``),"aria-current":n?`true`:void 0,"aria-label":`${h(e)} — ${m(e)}`,onClick:()=>a(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e.id))},children:[(0,G.jsx)(Wt,{block:e,renderBlock:o}),s&&(0,G.jsx)(`span`,{className:`filmstrip-speaking`,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`filmstrip-meta`,children:[(0,G.jsx)(`span`,{className:`filmstrip-kind`,children:h(e)}),(0,G.jsx)(`span`,{className:`filmstrip-title`,children:m(e)})]})]},e.id)},t[6]=r,t[7]=i,t[8]=a,t[9]=o,t[10]=d,t[11]=y):y=t[11];let b=s.map(y),x;t[12]===c?x=t[13]:(x=c>0&&(0,G.jsxs)(`div`,{className:`filmstrip-more`,children:[`+`,c,` more card`,c===1?``:`s`]}),t[12]=c,t[13]=x);let S;t[14]!==g||t[15]!==b||t[16]!==x?(S=(0,G.jsxs)(`div`,{className:`filmstrip-list`,ref:l,role:`toolbar`,onKeyDown:g,children:[b,x]}),t[14]=g,t[15]=b,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==S||t[19]!==v?(C=(0,G.jsxs)(`aside`,{className:`filmstrip-rail`,"aria-label":`All cards in this view`,children:[v,S]}),t[18]=S,t[19]=v,t[20]=C):C=t[20],C}var qt=560;function Jt(e){let t=(0,B.c)(93),{data:n,blocks:r,spot:i,renderBlock:a,onAskBlock:o,selectedBlockIds:c,onNarrate:l,narratingId:u,muted:d,walkNotes:h,presenting:g}=e,v;t[0]===r?v=t[1]:(v=r.filter(Yt),t[0]=r,t[1]=v);let y=v,[b,x]=(0,z.useState)(null),S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>x(null),t[2]=S):S=t[2];let C;t[3]===n.id?C=t[4]:(C=[n.id],t[3]=n.id,t[4]=C),(0,z.useEffect)(S,C);let w;t[5]!==l||t[6]!==y?(w=e=>{x(e);let t=y.find(t=>t.id===e);t&&l?.(t)},t[5]=l,t[6]=y,t[7]=w):w=t[7];let T=w,E;t[8]!==b||t[9]!==y||t[10]!==i?(E=(b&&y.some(e=>e.id===b)?b:null)??(i&&y.some(e=>e.id===i)?i:null)??Vt(y),t[8]=b,t[9]=y,t[10]=i,t[11]=E):E=t[11];let D=E,O;t[12]!==D||t[13]!==y?(O=y.find(e=>e.id===D)??y[0],t[12]=D,t[13]=y,t[14]=O):O=t[14];let k=O,[A,j]=(0,z.useState)(null),M=(0,z.useRef)(k?.id??null),N;t[15]===k?.id?N=t[16]:(N=()=>{let e=k?.id??null;if(e===M.current)return;let t=M.current;if(M.current=e,!t||_()){j(null);return}j(t);let n=window.setTimeout(()=>j(null),qt);return()=>window.clearTimeout(n)},t[15]=k?.id,t[16]=N);let P=k?.id,F;t[17]===P?F=t[18]:(F=[P],t[17]=P,t[18]=F),(0,z.useEffect)(N,F);let I;t[19]!==k||t[20]!==c?(I=!!k?.id&&!!c?.has(k.id),t[19]=k,t[20]=c,t[21]=I):I=t[21];let L=I,ee=!d&&!!k?.id&&u===k.id,R=k?.note||null,te;t[22]!==k?.id||t[23]!==A||t[24]!==y?(te=A&&A!==k?.id?y.find(e=>e.id===A):void 0,t[22]=k?.id,t[23]=A,t[24]=y,t[25]=te):te=t[25];let ne=te,re;t[26]===k?.id?re=t[27]:(re=e=>e.id===k?.id,t[26]=k?.id,t[27]=re);let V=y.findIndex(re),H;t[28]!==V||t[29]!==T||t[30]!==y?(H=()=>{V>0&&T(y[V-1].id)},t[28]=V,t[29]=T,t[30]=y,t[31]=H):H=t[31];let U=H,W;t[32]!==V||t[33]!==T||t[34]!==y?(W=()=>{V<y.length-1&&T(y[V+1].id)},t[32]=V,t[33]=T,t[34]=y,t[35]=W):W=t[35];let K=W,ie,ae;if(t[36]!==K||t[37]!==U||t[38]!==g?(ie=()=>{if(!g)return;let e=e=>{e.key===`ArrowRight`||e.key===`ArrowDown`||e.key===` `?(e.preventDefault(),K()):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),U())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},ae=[g,U,K],t[36]=K,t[37]=U,t[38]=g,t[39]=ie,t[40]=ae):(ie=t[39],ae=t[40]),(0,z.useEffect)(ie,ae),!k)return null;let oe,q;if(t[41]!==T||t[42]!==k.id||t[43]!==g||t[44]!==h){let e=!g&&h&&h.length>0?[...h].reverse():null;oe=`focus-stage`+(e?` has-notes`:``),q=e&&(0,G.jsxs)(`aside`,{className:`focus-notes`,"aria-label":`Mavéa's notes`,children:[(0,G.jsx)(`div`,{className:`focus-notes-eyebrow`,children:`Mavéa’s notes`}),(0,G.jsx)(`ol`,{className:`focus-notes-list`,children:e.map(e=>(0,G.jsx)(`li`,{children:(0,G.jsx)(`button`,{type:`button`,className:`focus-note`+(e.spot===k?.id?` active`:``),onClick:()=>T(e.spot),title:`Bring this card back on stage`,children:e.text})},e.spot))})]}),t[41]=T,t[42]=k.id,t[43]=g,t[44]=h,t[45]=oe,t[46]=q}else oe=t[45],q=t[46];let J;t[47]!==ne||t[48]!==a?(J=ne&&(0,G.jsx)(`div`,{className:`focus-hero-card focus-out`,"aria-hidden":`true`,children:(0,G.jsx)(f,{fallback:(0,G.jsx)(p,{block:ne}),children:a(ne)})},`out-`+ne.id),t[47]=ne,t[48]=a,t[49]=J):J=t[49];let se=k.id,ce=k.id,Y;t[50]===ee?Y=t[51]:(Y=ee&&(0,G.jsxs)(`div`,{className:`focus-speaking`,"aria-hidden":`true`,children:[(0,G.jsxs)(`span`,{className:`focus-speaking-bars`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}),`Speaking`]}),t[50]=ee,t[51]=Y);let le;t[52]===k?le=t[53]:(le=(0,G.jsx)(p,{block:k}),t[52]=k,t[53]=le);let ue;t[54]!==k||t[55]!==a?(ue=a(k),t[54]=k,t[55]=a,t[56]=ue):ue=t[56];let de;t[57]!==le||t[58]!==ue?(de=(0,G.jsx)(f,{fallback:le,children:ue}),t[57]=le,t[58]=ue,t[59]=de):de=t[59];let fe;t[60]!==k||t[61]!==L||t[62]!==o?(fe=o&&k.id&&(0,G.jsx)(`div`,{className:`block-actions`,children:(0,G.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`+(L?` picked`:``),"aria-pressed":L,"aria-label":L?`Unpin ${m(k)}`:`Ask about ${m(k)}`,onClick:e=>{e.stopPropagation(),o(k)},children:[(0,G.jsx)(s.chat,{}),(0,G.jsx)(`span`,{className:`block-pill-label`,children:L?`Selected`:`Ask`})]})}),t[60]=k,t[61]=L,t[62]=o,t[63]=fe):fe=t[63];let X;t[64]!==k.id||t[65]!==Y||t[66]!==de||t[67]!==fe?(X=(0,G.jsxs)(`div`,{className:`focus-hero-card focus-in askable`,"data-spot-id":ce,children:[Y,de,fe]},se),t[64]=k.id,t[65]=Y,t[66]=de,t[67]=fe,t[68]=X):X=t[68];let Z;t[69]!==J||t[70]!==X?(Z=(0,G.jsxs)(`div`,{className:`focus-hero`,children:[J,X]}),t[69]=J,t[70]=X,t[71]=Z):Z=t[71];let Q;t[72]!==k.id||t[73]!==R?(Q=R&&(0,G.jsx)(`p`,{className:`focus-caption`,"aria-live":`polite`,children:R},`cap-`+k.id),t[72]=k.id,t[73]=R,t[74]=Q):Q=t[74];let $;t[75]!==Z||t[76]!==Q?($=(0,G.jsxs)(`div`,{className:`focus-main`,children:[Z,Q]}),t[75]=Z,t[76]=Q,t[77]=$):$=t[77];let pe;t[78]!==V||t[79]!==K||t[80]!==T||t[81]!==U||t[82]!==k.id||t[83]!==u||t[84]!==g||t[85]!==y||t[86]!==a?(pe=g?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-prev`,onClick:U,disabled:V<=0,"aria-label":`Previous slide`,children:(0,G.jsx)(s.chevL,{})}),(0,G.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-next`,onClick:K,disabled:V>=y.length-1,"aria-label":`Next slide`,children:(0,G.jsx)(s.chevR,{})}),(0,G.jsx)(`div`,{className:`present-nav`,"aria-label":`Slide navigation`,children:(0,G.jsxs)(`span`,{className:`present-nav-count`,"aria-live":`polite`,"aria-atomic":`true`,children:[V+1,` `,(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),` `,y.length]})})]}):(0,G.jsx)(Kt,{blocks:y,activeId:k.id??null,narratingId:u??null,onPick:T,renderBlock:a}),t[78]=V,t[79]=K,t[80]=T,t[81]=U,t[82]=k.id,t[83]=u,t[84]=g,t[85]=y,t[86]=a,t[87]=pe):pe=t[87];let me;return t[88]!==oe||t[89]!==q||t[90]!==$||t[91]!==pe?(me=(0,G.jsxs)(`div`,{className:oe,children:[q,$,pe]}),t[88]=oe,t[89]=q,t[90]=$,t[91]=pe,t[92]=me):me=t[92],me}function Yt(e){return!!e.id}var Xt=[{mode:`focus`,label:`Focus`},{mode:`everything`,label:`Everything`}];function Zt(e){let t=(0,B.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=Xt.map(e=>{let t=n===e.mode;return(0,G.jsx)(`button`,{type:`button`,className:`focus-toggle-opt`+(t?` active`:``),"aria-pressed":t,onClick:()=>r(e.mode),children:e.label},e.mode)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,G.jsx)(`div`,{className:`focus-toggle`,role:`group`,"aria-label":`Canvas view`,children:i}),t[3]=i,t[4]=a),a}var Qt=e({TopicCanvas:()=>ln});i();var $t=(0,z.lazy)(()=>a(()=>import(`./ReplayCard-CLlaKpWg.js`).then(e=>({default:e.ReplayCard})),__vite__mapDeps([26,27,4,28,9,3,29,30,31,32,33,34,35,36,8,37]))),en=1,tn=1.75,nn=.15,rn=1.15;function an(e){return typeof e!=`number`||!Number.isFinite(e)?6:Math.min(12,Math.max(1,Math.round(e)))}function on(e,t){let n=s[e]||s.layers;return(0,G.jsx)(n,{className:`ic`,style:{color:t||`var(--presence)`}})}function sn({block:e,nest:t,spotlight:n,dimmed:r,spot:i,onProve:a,onUnrenderable:o}){let s={delay:e.delay};if(e.type===`composite`){if(t>=2)return null;let n=e.props;return(0,G.jsxs)(`div`,{className:`card reveal cmp-card`,style:{"--delay":(e.delay||0)+`ms`},children:[(0,G.jsxs)(`div`,{className:`card-eyebrow`,children:[n.icon&&on(n.icon,n.iconColor),` `,n.title]}),(0,G.jsx)(`div`,{className:`cmp-grid`,children:n.regions.map((e,n)=>(0,G.jsx)(`div`,{className:`cmp-cell`,"data-spot-id":e.block.id,"data-kind":e.block.type,style:{"--cmp-span":an(e.span)},children:(0,G.jsx)(cn,{block:e.block,nest:t+1,spotlight:!!e.block.id&&i===e.block.id,dimmed:!!e.block.id&&!!i&&i!==e.block.id,spot:e.block.type===`composite`?i:null,onProve:a,onUnrenderable:o})},n))}),n.footer&&(0,G.jsx)(`div`,{className:`cmp-foot`,children:n.footer})]})}if(e.type===`insight`)return(0,G.jsx)(be,{num:e.num,...e.props,...s,spotlight:n,dimmed:r,onProve:e.prove?a:void 0});if(e.type===`chart`)return(0,G.jsx)(Se,{...e.props,...s});if(e.type===`breakdown`)return(0,G.jsx)(Ce,{...e.props,...s});if(e.type===`timeline`)return(0,G.jsx)(we,{...e.props,...s});if(e.type===`list`)return(0,G.jsx)(Ee,{...e.props,...s});if(e.type===`compare`)return(0,G.jsx)(De,{...e.props,...s});if(e.type===`ring`)return(0,G.jsx)(Me,{...e.props,...s});if(e.type===`bars`)return(0,G.jsx)(Ne,{...e.props,...s});if(e.type===`stack`)return(0,G.jsx)(Pe,{...e.props,...s});if(e.type===`scatter`)return(0,G.jsx)(Fe,{...e.props,...s});if(e.type===`heat`)return(0,G.jsx)(Ie,{...e.props,...s});if(e.type===`flow`)return(0,G.jsx)(Le,{...e.props,...s});if(e.type===`web`)return(0,G.jsx)(Re,{...e.props,...s});if(e.type===`gallery`)return(0,G.jsx)(He,{...e.props,...s});if(e.type===`codemap`)return(0,G.jsx)(Ue,{...e.props,...s});if(e.type===`diff`)return(0,G.jsx)(We,{...e.props,...s});if(e.type===`checks`)return(0,G.jsx)(qe,{...e.props,...s});if(e.type===`donut`)return(0,G.jsx)(Je,{...e.props,...s});if(e.type===`gauge`)return(0,G.jsx)(Ye,{...e.props,...s});if(e.type===`scoreboard`)return(0,G.jsx)(Xe,{...e.props,...s});if(e.type===`standings`)return(0,G.jsx)(Ze,{...e.props,...s});if(e.type===`pipeline`)return(0,G.jsx)(Qe,{...e.props,...s});if(e.type===`kpi`)return(0,G.jsx)(et,{...e.props,...s});if(e.type===`quotes`)return(0,G.jsx)(tt,{...e.props,...s});if(e.type===`checklist`)return(0,G.jsx)(nt,{...e.props,...s});if(e.type===`understand`)return(0,G.jsx)(rt,{...e.props,...s});if(e.type===`schema`)return(0,G.jsx)(it,{...e.props,...s});if(e.type===`screenmap`)return(0,G.jsx)(ot,{...e.props,...s});if(e.type===`buildprog`)return(0,G.jsx)(st,{...e.props,...s});if(e.type===`preview`)return(0,G.jsx)(ct,{...e.props,...s});if(e.type===`action`){let t=e.props;return(0,G.jsx)(It,{...t,...s})}let c=e,l=d(c.type);if(l){let e=l(c.props,{delay:c.delay,spotlight:n,dimmed:r,blockId:c.id,onUnrenderable:o});return oe.has(c.type)?(0,G.jsx)(ie,{children:e}):e}return(0,G.jsx)(p,{block:e})}var cn=(0,z.memo)(sn);function ln({data:e,spot:t,built:n,onProve:r,onAskBlock:i,onAddToDashboard:a,selectedBlockIds:o,viewMode:c,onViewMode:l,onNarrate:u,narratingId:d,muted:h,noteGutter:g,walkNotes:_,bend:v,onAddToFlashcard:y,flashedIds:b,headerSlot:S,viewSlot:w,belowHeaderSlot:E,presenting:D,blankFill:O}){let[k,A]=(0,z.useState)(null),[j,M]=(0,z.useState)(!1),[N,P]=(0,z.useState)(null),[F,I]=(0,z.useState)(rn);(0,z.useEffect)(()=>{if(!N)return;let e=e=>{e.key===`Escape`&&P(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[N]);let L=(0,z.useRef)(null),[ee]=de(),[R,te]=(0,z.useState)(()=>new Set);(0,z.useEffect)(()=>{te(e=>e.size?new Set:e)},[e.id]);let B=(0,z.useCallback)(e=>{te(t=>t.has(e)?t:new Set(t).add(e))},[]),V=(0,z.useMemo)(()=>R.size?e.blocks.filter(e=>!e.id||!R.has(e.id)):e.blocks,[e.blocks,R]),{displayBlocks:H=V,budget:U}=ft(V,L),W=re(e.blocks,e.id),K=`${e.id}:${W}:${U}`;ht(L,K),Et(L,K);let ie=e.blocks.find(e=>e.type===`preview`),ae=ie?ie.props:null,oe=c!==void 0&&H.filter(e=>!!e.id).length>=2,q=oe&&c===`focus`,J=c!==void 0&&T(e),se=J&&c===`canvas`,ce=(0,z.useRef)(c);ce.current=c,(0,z.useEffect)(()=>{ce.current===`canvas`&&l?.(`everything`)},[e.id,l]);let Y=e.blanks?.filter(e=>e.kind===`card`)??[],le=!!O&&Y.length>0,ue=Bt(e.blanks,(e,t)=>O?.fill({kind:`card`,key:e,label:m(t),block:t}),e=>{let t=Y.find(e=>e.key===O?.activeKey)??Y[0];t&&O?.fill({kind:`card`,key:t.key,label:m(e),block:e})}),fe=(0,z.useRef)(r);fe.current=r;let X=(0,z.useCallback)(()=>fe.current(),[]),Z=e=>(0,G.jsx)(cn,{block:e,nest:0,spotlight:!!e.id&&t===e.id,dimmed:!!e.id&&!!t&&t!==e.id,spot:e.type===`composite`?t:null,onProve:X,onUnrenderable:B}),Q=t=>t.kind===`slide`?(0,G.jsx)(ke,{...t.props}):t.kind===`action`?(0,G.jsx)(je,{...t.props,onConfirm:ae?()=>A(ae):void 0}):t.kind===`replay`?(0,G.jsx)(z.Suspense,{fallback:null,children:(0,G.jsx)($t,{...t.props,spec:e})}):null,$=(0,z.useMemo)(()=>kt(H).map(e=>({...e,standard:dt(e.standard,U),deeper:dt(e.deeper,U)})),[H,U]),[pe,me]=(0,z.useState)(null);pe!==e.id&&Ot(H)&&me(e.id);let he=pe===e.id,ge=$.some(e=>e.deeper.length>0),ve=(e,n)=>{let r=!!e.id,c=r&&t===e.id,l=r&&!!t&&t!==e.id,u=r&&!!i,d=r&&!!a,h=r&&!!y,g=h&&!!b?.has(e.id),_=u&&!!o?.has(e.id),x=r&&(u||d||h),S=le&&r&&e.type!==`blanks`;return(0,G.jsxs)(`div`,{className:`col-`+e.col+(c?` spotlit`:``)+(l?` dimmed`:``)+(u?` askable`:``)+(d?` addable`:``)+(h?` flashcardable`:``)+(x?` zoomable`:``)+(_?` picked`:``),"data-spot-id":e.id,"data-kind":e.type,children:[(0,G.jsx)(f,{fallback:(0,G.jsx)(p,{block:e}),children:Z(e)}),v&&v.blockId===e.id&&(0,G.jsx)(Mt,{bend:v}),(u||d||h||x||S)&&(0,G.jsxs)(`div`,{className:`block-actions`,ref:Dt,children:[S&&(0,G.jsx)(`button`,{type:`button`,className:`card-drag-handle`,title:`Drag ${m(e)} into a slot`,"aria-label":`Use ${m(e)} to fill a slot`,...ue.handleProps(e),children:(0,G.jsx)(`span`,{"aria-hidden":!0,children:`⠿`})}),u&&(0,G.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`,"aria-pressed":_,title:_?`Selected — ask about it below`:`Ask about ${m(e)}`,"aria-label":_?`Unpin ${m(e)}`:`Ask about ${m(e)}`,onClick:t=>{t.stopPropagation(),i(e)},children:[(0,G.jsx)(s.chat,{}),(0,G.jsx)(`span`,{className:`block-pill-label`,children:_?`Selected`:`Ask`})]}),d&&(0,G.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask block-add`,title:`Add ${m(e)} to a dashboard`,"aria-label":`Add ${m(e)} to a dashboard`,onClick:t=>{t.stopPropagation(),a(e)},children:[(0,G.jsx)(s.plus,{}),(0,G.jsx)(`span`,{className:`block-pill-label`,children:`Dashboard`})]}),h&&(0,G.jsxs)(`button`,{type:`button`,className:`block-action-pill block-cards`+(g?` is-flashed`:``),"aria-pressed":g,title:g?`${m(e)} is in your flashcards`:`Make flashcards from ${m(e)}`,"aria-label":`Make flashcards from ${m(e)}`,onClick:t=>{t.stopPropagation(),y(e)},children:[g?(0,G.jsx)(s.check,{}):(0,G.jsx)(s.layers,{}),(0,G.jsx)(`span`,{className:`block-pill-label`,children:g?`Added`:`Cards`})]}),x&&(0,G.jsxs)(`button`,{type:`button`,className:`block-action-pill block-zoom`,title:`Zoom into ${m(e)}`,"aria-label":`Zoom into ${m(e)}`,onClick:t=>{t.stopPropagation(),P(e),I(rn)},children:[(0,G.jsx)(s.zoomIn,{}),(0,G.jsx)(`span`,{className:`block-pill-label`,children:`Zoom`})]})]})]},e.id||n)};return(0,G.jsxs)(ne.Provider,{value:O??null,children:[ue.ghost,(0,G.jsxs)(`div`,{className:`canvas-header`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`canvas-title`,children:e.title}),(0,G.jsx)(`div`,{className:`canvas-sub`,children:e.sub})]}),(0,G.jsxs)(`div`,{className:`canvas-header-actions`,children:[S,se?(0,G.jsxs)(`button`,{type:`button`,className:`canvas-exit`,onClick:()=>l?.(`everything`),children:[(0,G.jsx)(`span`,{"aria-hidden":!0,children:`←`}),` Back to answer`]}):(0,G.jsxs)(G.Fragment,{children:[he&&ge&&!q&&(0,G.jsx)(`button`,{type:`button`,className:`depth-reading-toggle`+(j?` is-reading`:``),"aria-pressed":j,title:j?`Collapse all deeper sections`:`Expand all deeper sections`,onClick:()=>M(e=>!e),children:j?`Collapse sections`:`Expand sections`}),oe&&l&&(0,G.jsx)(Zt,{value:q?`focus`:`everything`,onChange:l}),w,J&&l&&(0,G.jsxs)(`button`,{type:`button`,className:`canvas-open`,onClick:()=>l(`canvas`),title:`Spread this answer's cards on a board you can wander`,children:[(0,G.jsx)(`span`,{className:`canvas-open-glyph`,"aria-hidden":!0,children:`◇`}),` `,`View as canvas`]})]})]})]}),E,e.context.length>0&&(0,G.jsxs)(`div`,{className:`context-row`,style:{marginBottom:18},children:[(0,G.jsx)(`span`,{className:`faint`,style:{fontSize:12.5,marginRight:2},children:`Reading`}),e.context.map((e,t)=>(0,G.jsx)(x,{name:e.name,color:e.color},t))]}),W&&se?(0,G.jsx)(_e,{data:e,blocks:H,spot:t,renderBlock:Z,onAskBlock:i,selectedBlockIds:o,onExit:()=>l?.(`everything`)}):W&&q?(0,G.jsx)(Jt,{data:e,blocks:H,spot:t,renderBlock:Z,onAskBlock:i,selectedBlockIds:o,onNarrate:u,narratingId:d,muted:h,walkNotes:_,presenting:D}):(0,G.jsx)(`div`,{className:`card-grid`+(ee?` bloom-on`:``)+(g?` note-gutter`:``),ref:L,role:W?void 0:`status`,"aria-busy":!W||void 0,"aria-label":W?void 0:`Loading visuals`,children:!W&&he?H.map((e,t)=>C(e,t,U)):(0,G.jsxs)(G.Fragment,{children:[he?$.map((e,t)=>(0,G.jsx)(jt,{section:e,renderCard:ve,readingMode:j},e.label||t)):H.map((e,t)=>W?ve(e,t):C(e,t,U)),Object.keys(n).filter(t=>W&&n[t]&&e.extras&&e.extras[t]).map(t=>{let n=e.extras[t],r=Math.min(12,Math.max(1,n.col||6));return(0,G.jsx)(`div`,{className:`col-`+(U<9?12:r),children:Q(n)},t)})]})}),e.awaiting&&O?.complete&&(()=>{let t=Object.keys(O.values).length,n=e.blanks?.length??0,r=n>0&&t===n,i=O.busy?`Completing your answer…`:r?`All filled — finish when ready`:t===0?`Fill the blanks above to finish`:`${t} of ${n} filled`;return(0,G.jsxs)(`div`,{className:`blank-complete-bar${O.busy?` is-busy`:``}${r&&!O.busy?` is-ready`:``}`,role:`status`,"aria-live":`polite`,children:[(0,G.jsxs)(`span`,{className:`blank-complete-count`,children:[O.busy&&(0,G.jsx)(`span`,{className:`blank-complete-spinner`,"aria-hidden":`true`}),i]}),(0,G.jsx)(`button`,{type:`button`,className:`blank-complete-btn`,disabled:O.busy||t===0,onClick:O.complete,children:`Complete the answer`})]})})(),k&&(0,G.jsx)(`div`,{className:`app-scrim`,role:`button`,tabIndex:0,"aria-label":`Close app preview`,onClick:()=>A(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),A(null))},children:(0,G.jsxs)(`div`,{className:`app-launch`,role:`button`,tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,G.jsxs)(`div`,{className:`app-launch-head`,children:[(0,G.jsxs)(`span`,{className:`app-launch-title`,children:[k.app,(0,G.jsxs)(`span`,{className:`app-launch-pill`,children:[(0,G.jsx)(`span`,{className:`web-live-dot`}),` Live on your workspace`]})]}),(0,G.jsx)(`button`,{className:`drawer-x`,onClick:()=>A(null),"aria-label":`Close app`,children:(0,G.jsx)(s.x,{})})]}),(0,G.jsx)(`div`,{className:`app-launch-body`,children:(0,G.jsx)(ct,{...k})})]})}),N&&(0,G.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close zoomed view`,onClick:()=>P(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),P(null))},children:(0,G.jsxs)(`div`,{className:`zoom-sheet`,role:`button`,tabIndex:0,"aria-label":m(N),onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,G.jsxs)(`div`,{className:`zoom-sheet-toolbar`,children:[(0,G.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom out`,disabled:F<=en,onClick:()=>I(e=>Math.max(en,+(e-nn).toFixed(2))),children:(0,G.jsx)(s.zoomOut,{})}),(0,G.jsxs)(`span`,{className:`zoom-sheet-zoom-level`,children:[Math.round(F*100),`%`]}),(0,G.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom in`,disabled:F>=tn,onClick:()=>I(e=>Math.min(tn,+(e+nn).toFixed(2))),children:(0,G.jsx)(s.zoomIn,{})}),(0,G.jsx)(`button`,{type:`button`,className:`zoom-sheet-x`,"aria-label":`Close`,onClick:()=>P(null),children:(0,G.jsx)(s.x,{})})]}),(0,G.jsx)(`div`,{className:`zoom-sheet-body`,style:{zoom:F},children:Z(N)})]})})]})}export{Qt as n,ln as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{t as r}from"./PrismOverlay-
|
|
1
|
+
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{t as r}from"./PrismOverlay-DRWAI9Mh.js";var i=t(),a=e(),o=n(),s=900;function c(e){let t=(0,i.c)(11),{doc:n,cfg:c,onClose:l}=e,[u,d]=(0,a.useState)(`igniting`),f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=setTimeout(()=>d(`blooming`),s),t=setTimeout(()=>d(`settled`),2300);return()=>{clearTimeout(e),clearTimeout(t)}},p=[],t[0]=f,t[1]=p):(f=t[0],p=t[1]),(0,a.useEffect)(f,p);let m=u===`settled`?n.spec:null,h;t[2]!==n.proposed||t[3]!==u||t[4]!==m?(h={phase:u,spec:m,corpus:null,proposed:n.proposed,error:null},t[2]=n.proposed,t[3]=u,t[4]=m,t[5]=h):h=t[5];let g=h,_;return t[6]!==c||t[7]!==n.doc||t[8]!==l||t[9]!==g?(_=(0,o.jsx)(r,{pdf:n.doc,world:g,cfg:c,autoBriefing:!0,onClose:l}),t[6]=c,t[7]=n.doc,t[8]=l,t[9]=g,t[10]=_):_=t[10],_}export{c as TourPrism};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useDashboardLoop-
|
|
2
|
-
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{n as a}from"./icons-gLFQTv74.js";import{L as o,R as s}from"./store-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useDashboardLoop-CA3LNVME.js","assets/rolldown-runtime-DkW27tQK.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/preload-helper-CiWYd9n-.js","assets/http-Bqk6nJiH.js","assets/number-zqlPMliA.js","assets/store-D16dGt7I.js","assets/contentVault-XKWjF2FB.js","assets/keyVault-Aw5Y2PjT.js","assets/localBudget-CxLP6bjE.js","assets/providers-CPhoN8j0.js","assets/blockTypes-DUDdP3pB.js","assets/info-CiqHR5cs.js","assets/attachments-BW-vki-E.js","assets/route-CMdTFx0P.js","assets/useLiveConfig-CvOQTr0s.js","assets/json-J4Y32_i9.js","assets/ledger-DHS2di3l.js","assets/format-BkvssSOr.js","assets/dataPending-DGdCvY5Y.js","assets/now-C9-UAzTC.js","assets/predictions-CkVKHq-5.js","assets/notify-Bz4wuE4T.js","assets/dashboardEvents-CiE91_oj.js","assets/spokenText-Dy-GZvZV.js","assets/kokoro-DogSQaQB.js","assets/index-yJfYsjAB.js","assets/useInView-DsTvv7L_.js","assets/jsx-runtime-DeHZSEgm.js","assets/coreIcons-DDTChE1H.js","assets/preloadableLazy-MIX1ApBW.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{n as a}from"./icons-gLFQTv74.js";import{L as o,R as s}from"./store-D16dGt7I.js";import{t as c}from"./route-D4kd-D3B.js";import{a as l,s as u,t as d}from"./format-BkvssSOr.js";import{n as f}from"./dataPending-DGdCvY5Y.js";import{t as p}from"./AreaChart-DZGCSEwt.js";import{t as m}from"./tiles-D-s6v-mA.js";var h=e(),g={"15min":`15M`,hourly:`1H`,"6h":`6H`,daily:`DAILY`,manual:`MANUAL`};function _(e){return e.metrics.find(e=>e.lastValue!==null)??e.metrics[0]}function v(e,t){for(let n of e.widgets)if(n.block.type===t)return n.block}function y(e){if(!e.history||e.history.length<2)return!1;let t=e.unit?.trim();return t===`$`||t?.startsWith(`$`)?!0:/price/i.test(e.label)}function b(e){return e.metrics.length!==1||e.metrics[0].unit!==`%`?!1:!e.widgets.some(e=>e.block.type===`scoreboard`)}function x(e,t){if(e.oneShotAt!==void 0&&e.oneShotAt>t)return`scheduled`;if(e.cadence.window)return`live-event`;if(e.widgets.some(e=>e.block.type===`scoreboard`||e.block.type===`standings`))return`sports`;if(e.widgets.some(e=>e.block.type===`forecast`))return`weather`;if(b(e))return`probability`;let n=_(e);return n&&y(n)?`price`:`generic`}function S(e){if(!e?.history||e.history.length<2)return null;let t=e.history[e.history.length-2].value,n=e.history[e.history.length-1].value;if(n===t)return null;let r=n>t?`up`:`down`,i=Math.round(Math.abs(n-t)*100)/100;if(i===0)return null;let a=Number.isInteger(i)?String(i):i.toFixed(2),o=e.unit;return{direction:r,text:`${r===`up`?`+`:`-`}${o===`$`?`$`:``}${a}${o&&o!==`$`?o:``}`}}function C(e){return typeof e==`number`?Number.isFinite(e):typeof e==`string`&&e.trim()!==``}function w(e){let t=v(e,`scoreboard`);if(t)return t.props.games.filter(e=>C(e.as)&&C(e.hs)).slice(0,5).map(e=>({label:`${e.as}-${e.hs}`,tone:e.hot?`accent`:`flat`,title:`${e.away} @ ${e.home} · ${e.status}`}));let n=v(e,`standings`);return n?n.props.rows.filter(e=>!!e.rec?.trim()).slice(0,5).map((e,t)=>({label:e.rec,tone:t===0?`accent`:`flat`,title:e.team})):[]}function T(e){let t=v(e,`forecast`);return t?t.props.days.slice(0,4).map(e=>({label:e.label,hi:e.hi,lo:e.lo,icon:e.icon})):[]}function E(e){return e.replace(/^(updated|checked)\s+/,``)}var D={scheduled:`countdown`,"live-event":`livescore`,sports:`formchips`,weather:`forecast`,probability:`probability`};function O(e,t){let n=x(e,t),r=_(e),i=l(e),a=u(e),c=e.lastDataOutcome===`unverified`,f=s(e),p,m;i?(p=i.value,m=i.label):a>0?(p=String(a),m=a===1?`live card`:`live cards`):(p=`—`,m=f.status===`pending`&&f.failure?o(f.failure):c?`Couldn't verify with sources — check again`:`Not yet checked`);let h=i?r?.history??null:null,v=i?S(r):null,y;y=n===`price`?h&&h.length>=2?`area`:`none`:n===`generic`?h&&h.length>=2?`sparkline`:`none`:D[n];let b=e.cadence.window??null,C=b!==null&&t>=b.startAt&&t<=b.endAt,O=e.lastRefreshedAt!==null&&e.lastRefreshedAt>0,k=E(d(e.lastRefreshedAt,t,e.lastDataOutcome));return{id:e.id,name:e.title,kind:n,vizKind:y,cadenceLabel:g[e.cadence.data],pauseEligible:e.cadence.data!==`manual`,isLiveWindow:C,liveWindow:b,value:p,context:m,delta:v,history:h,probabilityPct:n===`probability`?e.metrics[0].lastValue:null,formChips:n===`sports`?w(e):[],forecastDays:n===`weather`?T(e):[],oneShotAt:e.oneShotAt??null,oneShotLabel:e.oneShotLabel??null,everChecked:O,asOf:k,unverified:c}}var k=t(),A=n();function j(e){let t=(0,k.c)(4),{days:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(M),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-forecast`,children:r}),t[2]=r,t[3]=i),i}function M(e,t){let n=e.icon?a[e.icon]:null;return(0,A.jsxs)(`div`,{className:`tile-forecast-day`,children:[(0,A.jsx)(`span`,{className:`tile-forecast-label`,children:e.label}),n&&(0,A.jsx)(n,{className:`tile-forecast-glyph`,"aria-hidden":`true`}),(0,A.jsxs)(`span`,{className:`tile-forecast-temp`,children:[e.hi??`—`,e.lo&&(0,A.jsxs)(`span`,{className:`tile-forecast-lo`,children:[`/`,e.lo]})]})]},`${e.label}-${t}`)}function N(e){let t=(0,k.c)(4),{items:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(P),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-chips`,children:r}),t[2]=r,t[3]=i),i}function P(e,t){return(0,A.jsx)(`span`,{className:`tile-chip tile-chip--${e.tone}`,title:e.title,children:e.label},`${e.label}-${t}`)}function F(e){let t=(0,k.c)(15),{liveWindow:n,now:r}=e,i=n.endAt-n.startAt||1,a=Math.min(1,Math.max(0,(r-n.startAt)/i)),o=r>=n.startAt,s;t[0]===o?s=t[1]:(s=o&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),t[0]=o,t[1]=s);let c;t[2]===n.label?c=t[3]:(c=(0,A.jsx)(`span`,{className:`tile-live-label`,children:n.label}),t[2]=n.label,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-live-head`,children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]!==a||t[8]!==o?(u=o&&(0,A.jsx)(`div`,{className:`tile-live-fill`,style:{width:`${a*100}%`}}),t[7]=a,t[8]=o,t[9]=u):u=t[9];let d;t[10]===u?d=t[11]:(d=(0,A.jsx)(`div`,{className:`tile-live-track`,children:u}),t[10]=u,t[11]=d);let f;return t[12]!==l||t[13]!==d?(f=(0,A.jsxs)(`div`,{className:`tile-live`,children:[l,d]}),t[12]=l,t[13]=d,t[14]=f):f=t[14],f}function I(e){let t=(0,k.c)(10),{pct:n}=e,r;t[0]===n?r=t[1]:(r=Math.round(Math.min(100,Math.max(0,n))),t[0]=n,t[1]=r);let i=r,a=`${i}% likely`,o=`${i}%`,s;t[2]===o?s=t[3]:(s=(0,A.jsx)(`div`,{className:`tile-prob-track`,children:(0,A.jsx)(`div`,{className:`tile-prob-fill`,style:{width:o}})}),t[2]=o,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,A.jsxs)(`span`,{className:`tile-prob-pct`,children:[i,`%`]}),t[4]=i,t[5]=c);let l;return t[6]!==a||t[7]!==s||t[8]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-prob`,role:`img`,"aria-label":a,children:[s,c]}),t[6]=a,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}var L=200,R=40,z=3;function B(e){let t=(0,k.c)(14),{points:n}=e;if(n.length<2)return null;let r,i;if(t[0]!==n){let e=n.map(V);r=Math.min(...e),i=Math.max(...e),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a=i-r||1,o=194/(n.length-1),s;if(t[3]!==r||t[4]!==n||t[5]!==a||t[6]!==o){let e;t[8]!==r||t[9]!==a||t[10]!==o?(e=(e,t)=>{let n=z+t*o,i=z+(1-(e.value-r)/a)*34;return`${t===0?`M`:`L`}${n.toFixed(1)},${i.toFixed(1)}`},t[8]=r,t[9]=a,t[10]=o,t[11]=e):e=t[11],s=n.map(e).join(` `),t[3]=r,t[4]=n,t[5]=a,t[6]=o,t[7]=s}else s=t[7];let c=s,l;return t[12]===c?l=t[13]:(l=(0,A.jsx)(`svg`,{className:`tile-viz-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,role:`presentation`,children:(0,A.jsx)(`path`,{d:c,fill:`none`,stroke:`var(--text-secondary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})}),t[12]=c,t[13]=l),l}function V(e){return e.value}r();function H(e,t){switch(e.vizKind){case`area`:return e.history?(0,A.jsx)(p,{points:e.history,tone:e.delta?.direction??`flat`}):null;case`sparkline`:return e.history?(0,A.jsx)(B,{points:e.history}):null;case`probability`:return e.probabilityPct===null?null:(0,A.jsx)(I,{pct:e.probabilityPct});case`countdown`:return e.oneShotAt===null?null:(0,A.jsx)(m,{targetAt:e.oneShotAt,now:t,label:e.oneShotLabel??void 0});case`formchips`:return(0,A.jsx)(N,{items:e.formChips});case`forecast`:return(0,A.jsx)(j,{days:e.forecastDays});case`livescore`:return e.liveWindow?(0,A.jsx)(F,{liveWindow:e.liveWindow,now:t}):null;case`none`:return null}}var U={failed:`Couldn’t reach your model — check its key or quota, then try again.`,unverified:`Checked, but no source could verify new values — keeping the last real ones.`},W=8e3;function G({dashboard:e,now:t,paused:n=!1}){let r=(0,h.useMemo)(()=>O(e,t),[e,t]),o=f(e.id),[s,l]=(0,h.useState)(!1),u=o||s,[d,p]=(0,h.useState)(null),m=(0,h.useRef)(void 0);(0,h.useEffect)(()=>()=>window.clearTimeout(m.current),[]);let g=n&&r.pauseEligible,_=g?`paused`:r.isLiveWindow?`live`:`plain`,v=e=>{p(e),m.current=window.setTimeout(()=>p(null),W)},y=t=>{t.preventDefault(),t.stopPropagation(),!u&&(window.clearTimeout(m.current),p(null),l(!0),i(async()=>{let{refreshDashboardNow:e}=await import(`./useDashboardLoop-CA3LNVME.js`).then(e=>e.i);return{refreshDashboardNow:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35])).then(({refreshDashboardNow:t})=>t(e.id)).then(e=>{(e===`failed`||e===`unverified`)&&v(e)}).catch(()=>v(`failed`)).finally(()=>l(!1)))};return(0,A.jsxs)(`a`,{className:`tile-frame`,href:c.detail(e.id),"data-tile-state":_===`plain`?void 0:_,children:[(0,A.jsxs)(`div`,{className:`tile-top`,children:[(0,A.jsx)(`span`,{className:`tile-name`,title:r.name,children:r.name}),(0,A.jsxs)(`span`,{className:`tile-cadence tile-cadence--${_}`,children:[_===`live`&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),g?`PAUSED`:r.cadenceLabel]})]}),(0,A.jsxs)(`div`,{className:`tile-value-row`,children:[(0,A.jsx)(`span`,{className:`tile-value${u?` tile-value--checking`:``}`,children:r.value}),r.delta&&(0,A.jsx)(`span`,{className:`tile-delta tile-delta--${r.delta.direction}`,children:r.delta.text})]}),(0,A.jsx)(`p`,{className:`tile-context${!u&&d?` tile-context--note`:``}`,children:u?`Checking for live data…`:d?U[d]:r.context}),(0,A.jsx)(`div`,{className:`tile-viz`,children:H(r,t)}),(0,A.jsxs)(`div`,{className:`tile-foot`,children:[(0,A.jsx)(`span`,{className:`tile-asof`,children:r.everChecked?`AS OF ${r.asOf}`:r.asOf}),(0,A.jsx)(`span`,{role:`button`,tabIndex:0,className:`tile-check${u?` is-checking`:``}`,"aria-label":`Check ${r.name} now`,"aria-disabled":u,title:`Check now`,onClick:y,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&y(e)},children:(0,A.jsx)(a.refresh,{className:u?`dash-refresh-spin`:void 0})})]})]})}export{F as n,O as r,G as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-
|
|
1
|
+
import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-yJfYsjAB.js";import{r}from"./info-CiqHR5cs.js";var i=e(),a=t(),o=[`No sign-up`,`No install`,`Key-free tour`,`Keys session-only`];function s(e){let t=(0,i.c)(16),{onEnterLive:s}=e,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,a.jsxs)(n,{eyebrow:`Yours in seconds`,children:[`No account. `,(0,a.jsx)(`em`,{children:`Your engine.`})]}),t[0]=u):u=t[0];let d,f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(`div`,{className:`fl-surface-tag insight`,children:`Instant · no sign-up`}),f=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Nothing to sign up for`}),p=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`No account, no waitlist, no install. The tour and demos run key-free; Live starts the moment you paste a key.`}),t[1]=d,t[2]=f,t[3]=p):(d=t[1],f=t[2],p=t[3]);let m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:o.map(l)}),t[4]=m):m=t[4];let h;t[5]===s?h=t[6]:(h=(0,a.jsxs)(`div`,{className:`fl-surface`,children:[d,f,p,m,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn`,onClick:()=>s(),children:`Open Mavéa →`})]}),t[5]=s,t[6]=h);let g,_,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,a.jsx)(`div`,{className:`fl-surface-tag live`,children:`Live · your model`}),_=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Bring your own keys`}),v=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`Anthropic, OpenAI, Gemini, Grok, OpenRouter. Same beautiful canvas, your engine.`}),t[7]=g,t[8]=_,t[9]=v):(g=t[7],_=t[8],v=t[9]);let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:r.map(c)}),t[10]=y):y=t[10];let b;t[11]===s?b=t[12]:(b=(0,a.jsxs)(`div`,{className:`fl-surface live`,children:[g,_,v,y,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn live`,onClick:()=>s(),children:`Open Live →`})]}),t[11]=s,t[12]=b);let x;return t[13]!==b||t[14]!==h?(x=(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(`div`,{className:`fl-surfaces`,children:[h,b]})]}),t[13]=b,t[14]=h,t[15]=x):x=t[15],x}function c(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip fl-model-chip`,children:e.label},e.id)}function l(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip`,children:e},e)}export{s as TwoSurfaces};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mv-viewport{touch-action:none;cursor:grab;width:100%;height:100%;font-family:var(--font);color:var(--text-primary);position:relative;overflow:hidden}.mv-viewport[data-panning=true]{cursor:grabbing}.mv-world{transform-origin:0 0;--mv-flight:0s;transition:transform var(--mv-flight) cubic-bezier(.22, .9, .3, 1);--mv-counter:clamp(1, calc(1 / var(--mv-cam-scale,1)), 1.4);position:absolute;top:0;left:0}.mv-world[data-morphing]{--mv-flight:var(--m-cinematic,1.1s)}.mv-viewport[data-panning=true] .mv-world{will-change:transform}@media (prefers-reduced-motion:no-preference){.mv-world[data-morphing]{will-change:transform}}.mv-node{width:0;height:0;transform:translate(var(--nx), var(--ny)) scale(var(--mv-counter));transition:transform var(--mv-flight,0s) cubic-bezier(.22, .9, .3, 1), opacity var(--m-expressive,.42s) var(--ease-out,ease) calc(min(var(--mv-i,0), 14) * 26ms);position:absolute;top:0;left:0}@starting-style{.mv-node{opacity:0}}.mv-face{opacity:0;pointer-events:none;transition:opacity var(--m-expressive,.42s) ease, filter var(--m-expressive,.42s) ease;position:absolute;transform:translate(-50%,-50%)}.mv-node[data-face=card] .mv-face-card,.mv-node[data-face=entry] .mv-face-entry,.mv-node[data-face=mark] .mv-face-mark{opacity:1;pointer-events:auto}.mv-face-card{border:1px solid var(--line);border-radius:var(--r-md);background:linear-gradient(180deg, var(--surface-elevated-2), var(--surface-elevated));width:200px;min-height:64px;box-shadow:var(--shadow-raised);transition:opacity var(--m-expressive,.42s) ease, border-color var(--m-fast,.16s) var(--ease-out,ease), box-shadow var(--m-normal,.28s) var(--ease-out,ease), background var(--m-fast,.16s) var(--ease-out,ease);flex-direction:column;gap:4px;padding:10px 14px;display:flex}@starting-style{.mv-face-card{box-shadow:0 0 0 7px color-mix(in oklab, var(--presence) 26%, transparent)}}.mv-face-entry{border:1px solid var(--line-soft);border-radius:var(--r-sm);background:color-mix(in oklab, var(--surface-elevated) 82%, transparent);width:160px;min-height:44px;box-shadow:var(--shadow-raised);align-content:center;padding:6px 12px;display:grid}.mv-face-mark{place-items:center;width:30px;height:30px;display:grid}.mv-face-mark:after{content:"";border-radius:var(--r-full);background:var(--presence);width:14px;height:14px;box-shadow:0 0 0 3px color-mix(in oklab, var(--presence) 22%, transparent);grid-area:1/1}.mv-viewport:not([data-panning=true]) .mv-node[role=button] .mv-face-card,.mv-viewport:not([data-panning=true]) .mv-node[role=button] .mv-face-entry{cursor:pointer}.mv-node[role=button]:hover .mv-face-card{border-color:var(--line-strong);background:linear-gradient(180deg, var(--surface-elevated-2), color-mix(in oklab, var(--surface-elevated-2) 82%, var(--surface-elevated)));box-shadow:var(--shadow-floating)}.mv-node[data-selected] .mv-face-card{outline:2px solid color-mix(in oklab, var(--presence) 55%, transparent);outline-offset:2px}.mv-node[data-shift=weaker][data-face=card] .mv-face-card,.mv-node[data-shift=weaker][data-face=entry] .mv-face-entry,.mv-node[data-shift=weaker][data-face=mark] .mv-face-mark{opacity:clamp(.42, calc(.42 + .58 * var(--mv-shift,1)), 1);filter:saturate(clamp(.25, var(--mv-shift,1), 1))}.mv-node[data-shift=stronger] .mv-face-card{border-color:color-mix(in oklab, var(--insight) 55%, var(--line-soft));box-shadow:0 0 0 1px color-mix(in oklab, var(--insight) 30%, transparent)}.mv-edge-g[data-shift] .morph-edge{transition:opacity var(--m-expressive,.42s) var(--ease-out,ease), stroke-width var(--m-expressive,.42s) var(--ease-out,ease)}.mv-edge-g[data-shift=weaker] .morph-edge{opacity:clamp(.28, calc(.28 + .72 * var(--mv-shift,1)), 1);stroke-width:calc(var(--mv-edge-w,1.5) * clamp(.35, var(--mv-shift,1), 1))}.morph-ribbon{stroke-linecap:round;opacity:.5}.mv-edge-g:hover .morph-ribbon{opacity:.72}.mv-node:focus{outline:none}.mv-node:focus-visible .mv-face-card,.mv-node:focus-visible .mv-face-entry,.mv-node:focus-visible .mv-face-mark{outline:2px solid var(--presence);outline-offset:3px}.mv-label{letter-spacing:-.005em;color:var(--text-primary);-webkit-line-clamp:2;line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:13.5px;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.mv-face-entry .mv-label{color:var(--text-secondary);-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-width:0;font-size:12px;font-weight:500;display:-webkit-box;overflow:hidden}.mv-card-foot{align-items:center;gap:8px;min-width:0;min-height:18px;display:flex;overflow:hidden}.mv-card-foot:empty{display:none}.mv-value{color:var(--insight);font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:600}.mv-tier{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);border:1px solid var(--line-soft);border-radius:var(--r-full);background:var(--surface-glass);flex:none;margin-left:auto;padding:2px 6px;font-size:9.5px;font-weight:600}.mv-node[data-role=outcome] .mv-face-card{border-color:color-mix(in oklab, var(--presence) 42%, var(--line));background:linear-gradient(180deg, color-mix(in oklab, var(--presence) 9%, var(--surface-elevated-2)), color-mix(in oklab, var(--presence) 5%, var(--surface-elevated)))}.mv-node[data-role=root] .mv-face-card{box-shadow:inset 3px 0 0 color-mix(in oklab, var(--insight) 55%, transparent), var(--shadow-raised)}.mv-node[data-tier=T1] .mv-tier{color:var(--insight);border-color:color-mix(in oklab, var(--insight) 45%, transparent);background:color-mix(in oklab, var(--insight) 14%, transparent)}.mv-node[data-tier=T2] .mv-tier{color:var(--presence);border-color:color-mix(in oklab, var(--presence) 45%, transparent);background:color-mix(in oklab, var(--presence) 14%, transparent)}.mv-node[data-tier=T3] .mv-tier{color:var(--warning);border-color:color-mix(in oklab, var(--warning) 45%, transparent);background:color-mix(in oklab, var(--warning) 14%, transparent)}.mv-node[data-tier=T0] .mv-face-card{border-color:var(--line-soft)}.mv-node[data-tier=T0] .mv-label{color:var(--text-secondary)}.mv-domain{border-radius:var(--r-full);background:var(--mv-domain,var(--text-faint));flex:none;width:8px;height:8px}.mv-node[data-domain=economy]{--mv-domain:var(--domain-economy)}.mv-node[data-domain=policy]{--mv-domain:var(--domain-policy)}.mv-node[data-domain=technology]{--mv-domain:var(--domain-technology)}.mv-node[data-domain=science]{--mv-domain:var(--domain-science)}.mv-node[data-domain=environment]{--mv-domain:var(--domain-environment)}.mv-node[data-domain=society]{--mv-domain:var(--domain-society)}.mv-node[data-domain=health]{--mv-domain:var(--domain-health)}.mv-node[data-domain=conflict]{--mv-domain:var(--domain-conflict)}.mv-node[data-domain] .mv-face-card:before{content:"";border-radius:var(--r-md) var(--r-md) 0 0;background:var(--mv-domain);opacity:.5;pointer-events:none;height:3px;position:absolute;inset:0 0 auto}.mv-node[data-domain] .mv-face-mark:after{background:var(--mv-domain);box-shadow:0 0 0 3px color-mix(in oklab, var(--mv-domain) 22%, transparent)}.mv-node[data-lod=far] .mv-value,.mv-node[data-lod=far] .mv-tier{display:none}.mv-node[data-shelved] .mv-face-entry{border-color:color-mix(in oklab, var(--warning) 32%, transparent);width:116px}.mv-node[data-folded],.mv-node[data-folded] .mv-face{opacity:0;pointer-events:none}.mv-chrome{opacity:1;pointer-events:none;transition:opacity var(--m-expressive,.42s) ease;position:absolute;top:0;left:0}@starting-style{.mv-chrome{opacity:0}}.mv-chrome[data-exiting]{opacity:0}.mv-chrome-svg,.mv-edges{position:absolute;top:0;left:0;overflow:visible}.mv-edges{pointer-events:none}.mv-band{fill:var(--surface-glass);stroke:var(--line-soft);vector-effect:non-scaling-stroke}.mv-band.morph-shelf{fill:color-mix(in oklab, var(--warning) 7%, transparent);stroke:color-mix(in oklab, var(--warning) 26%, transparent)}.mv-band.morph-sphere{fill:color-mix(in srgb, var(--mv-lane,var(--text-faint)) 7%, transparent);stroke:none;rx:14px}.mv-band.morph-sphere-economy{--mv-lane:var(--domain-economy)}.mv-band.morph-sphere-policy{--mv-lane:var(--domain-policy)}.mv-band.morph-sphere-technology{--mv-lane:var(--domain-technology)}.mv-band.morph-sphere-science{--mv-lane:var(--domain-science)}.mv-band.morph-sphere-environment{--mv-lane:var(--domain-environment)}.mv-band.morph-sphere-society{--mv-lane:var(--domain-society)}.mv-band.morph-sphere-health{--mv-lane:var(--domain-health)}.mv-band.morph-sphere-conflict{--mv-lane:var(--domain-conflict)}.morph-crossing{stroke-opacity:.9}.mv-band.morph-causal-ground.mv-band.morph-causal-ground{fill:color-mix(in srgb, var(--wo-air-2,var(--insight)) 4%, transparent);stroke:none;rx:18px}.mv-band.morph-reading-band{fill:color-mix(in oklab, var(--presence) 4%, transparent);stroke:none}.morph-gridline{stroke:var(--grid-line);stroke-width:1px;vector-effect:non-scaling-stroke}.morph-axis,.morph-tick{stroke:var(--line-strong);stroke-width:1px;vector-effect:non-scaling-stroke}.morph-series{stroke:var(--mv-series-ink,var(--presence));stroke-width:2px;vector-effect:non-scaling-stroke}.morph-edge{stroke:var(--insight);stroke-width:var(--mv-edge-w,2);stroke-opacity:.85;stroke-linecap:round;vector-effect:non-scaling-stroke;marker-end:url(#mv-arrow);pointer-events:none;transition:stroke-opacity var(--m-fast,.16s) var(--ease-out,ease), stroke-width var(--m-fast,.16s) var(--ease-out,ease)}.morph-edge--rel-causes{marker-end:url(#mv-arrow)}.morph-edge--rel-contributes{marker-end:url(#mv-arrow-open)}.morph-edge--rel-enables{marker-end:url(#mv-arrow-ring)}.morph-edge--rel-correlates{marker-start:url(#mv-dot);marker-end:url(#mv-dot);stroke-dasharray:1 5}.morph-edge--damp{stroke:var(--warning);marker-end:url(#mv-arrow-damp)}.morph-edge--provisional{stroke-dasharray:2.5 4.5;stroke-opacity:.55}.morph-edge--provisional,.morph-edge--provisional.morph-edge--rel-causes{marker-end:url(#mv-arrow-soft)}.morph-edge--provisional.morph-edge--rel-contributes{marker-end:url(#mv-arrow-open-soft)}.morph-edge--provisional.morph-edge--rel-enables{marker-end:url(#mv-arrow-ring-soft)}.morph-edge--provisional.morph-edge--rel-correlates{marker-start:url(#mv-dot-soft);marker-end:url(#mv-dot-soft)}.morph-edge--provisional.morph-edge--damp{marker-end:url(#mv-arrow-damp-soft)}.mv-marker.mv-marker-soft :is(path,circle){fill:none;stroke:var(--insight);stroke-width:1.4px;opacity:.66}.mv-marker.mv-marker-down.mv-marker-soft path{stroke:var(--warning)}.mv-marker-up path{fill:var(--insight)}.mv-marker-down path{fill:none;stroke:var(--warning);stroke-width:2.4px;stroke-linecap:round}.mv-marker-open path,.mv-marker-ring circle{fill:none;stroke:var(--insight);stroke-width:1.6px}.mv-marker-dot circle{fill:var(--insight)}.mv-edge-hit{stroke:#0000;stroke-width:18px;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}.mv-edge-g:hover .morph-edge{stroke-opacity:1;stroke-width:calc(var(--mv-edge-w,2) + 1.6)}.mv-chrome-labels{position:absolute;top:0;left:0}.mv-chrome-label{white-space:nowrap;color:var(--text-muted);transform:translate(0, -50%) scale(var(--mv-counter));transform-origin:0;font-size:11px;position:absolute}.mv-chrome-label[data-anchor=middle]{transform:translate(-50%, -50%) scale(var(--mv-counter));transform-origin:50%}.mv-chrome-label[data-anchor=end]{transform:translate(-100%, -50%) scale(var(--mv-counter));transform-origin:100%}.mv-chrome-label.morph-series-label{color:var(--text-secondary);font-size:12px}.mv-shelf-label{white-space:nowrap;letter-spacing:.04em;color:color-mix(in oklab, var(--warning) 78%, var(--text-secondary));transform-origin:0 0;transform:scale(var(--mv-counter));font-size:12px;position:absolute}@media (prefers-reduced-motion:reduce){.mv-world,.mv-node,.mv-face,.mv-chrome{transition:none}}.wo-scrim{z-index:60;background:color-mix(in srgb, var(--surface-deep) 68%, transparent);justify-content:center;align-items:center;padding:clamp(0px,1.2vw,20px);display:flex;position:fixed;inset:0}.wo-panel{width:100%;max-width:1800px;height:100%;font-family:var(--font);color:var(--text-primary);background:var(--surface-default);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-floating);flex-direction:column;display:flex;overflow:hidden}.wo-head{justify-content:space-between;align-items:flex-start;gap:var(--s-md);padding:var(--s-md) var(--s-lg);border-bottom:1px solid var(--line-soft);display:flex}.wo-kicker,.wo-rail-kicker{font:600 11px/1.4 var(--font-data,var(--font));letter-spacing:.12em;color:var(--text-muted)}.wo-title h2{font:600 clamp(17px, 2vw, 22px) / 1.25 var(--font);color:var(--text-primary);max-width:62ch;margin:2px 0 0}.wo-head-actions{align-items:center;gap:var(--s-sm);flex-wrap:wrap;flex-shrink:0;display:flex}.wo-views{border:1px solid var(--line);border-radius:var(--r-full);background:var(--surface-elevated);gap:2px;padding:2px;display:flex}.wo-chip{font:500 12px/1 var(--font);color:var(--text-secondary);border-radius:var(--r-full);cursor:pointer;transition:background var(--m-fast,.12s) var(--ease-out,ease), color var(--m-fast,.12s) var(--ease-out,ease);background:0 0;border:0;padding:6px 12px}.wo-chip:hover{color:var(--text-primary)}.wo-chip[aria-selected=true]{background:var(--presence);color:var(--surface-default)}.wo-when,.wo-parts-count{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wo-parts-count{font:500 11px/1 var(--font);letter-spacing:.04em;text-transform:uppercase;color:var(--text-faint);white-space:nowrap}.wo-chip-sole{cursor:default;color:var(--text-muted)}.wo-btn{font:500 13px/1 var(--font);color:var(--text-secondary);background:var(--surface-elevated);border:1px solid var(--line);border-radius:var(--r-sm);cursor:pointer;transition:background var(--m-fast,.12s) var(--ease-out,ease);padding:7px 12px}.wo-btn:hover:not(:disabled){background:var(--surface-elevated-2,var(--surface-elevated))}.wo-btn:disabled{opacity:.45;cursor:default}.wo-btn-close{padding:7px 10px}.wo-banner{padding:8px var(--s-lg);font:500 12.5px/1.4 var(--font);border-bottom:1px solid var(--line-soft)}.wo-banner-illustrative{color:color-mix(in oklab, var(--warning) 58%, var(--text-primary));background:color-mix(in srgb, var(--warning) 10%, transparent)}.wo-shell{justify-content:center;align-items:center;gap:var(--s-sm);padding:var(--s-lg);text-align:center;background:var(--surface-deep,var(--surface-default));flex-direction:column;flex:1;display:flex}.wo-shell-pulse{background:var(--presence);border-radius:50%;width:10px;height:10px;animation:2s ease-in-out infinite wo-shell-breathe}.wo-shell-line{font:600 15px/1.4 var(--font);color:var(--text-primary);margin:0}.wo-shell-note{max-width:46ch;font:400 13px/1.55 var(--font);color:var(--text-muted);margin:0}.wo-shell .wo-btn{margin-top:var(--s-sm)}@keyframes wo-shell-breathe{0%,to{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.wo-shell-pulse{opacity:.8;animation:none}}.wo-legend{padding:7px var(--s-lg) 9px;font:400 12px/1.45 var(--font);color:var(--text-muted);border-bottom:1px solid var(--line-soft);margin:0}.wo-body{flex:1;min-height:0;display:flex}.wo-stage{background:radial-gradient(70% 60% at 22% 18%, color-mix(in srgb, var(--wo-air-1,var(--presence)) 10%, transparent), transparent 70%), radial-gradient(62% 58% at 84% 52%, color-mix(in srgb, var(--wo-air-2,var(--insight)) 7%, transparent), transparent 70%), var(--surface-deep,var(--surface-default));flex:1;min-width:0;position:relative;overflow:hidden}.wo-num,.wo-expand{justify-content:center;align-items:center;min-width:24px;min-height:24px;display:inline-flex}.wo-part-list{gap:4px;margin:0;padding:0;list-style:none;display:grid}.wo-part-list li{color:var(--text-primary);border-left:2px solid var(--line);padding-left:10px;font-size:13px;line-height:1.4}.wo-parts{margin-top:var(--s-md);padding-top:var(--s-md);border-top:1px solid var(--line-soft);flex-direction:column;gap:6px;display:flex}.wo-parts .card{margin:0}.wo-parts .card-eyebrow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.wo-parts .card-eyebrow .ic{flex:none;width:15px;height:15px}.wo-when{font:500 11.5px/1.3 var(--font);letter-spacing:.02em;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.72;font-style:italic}.wo-when[data-said]{opacity:1;color:var(--text-secondary);font-style:normal}.wo-num{color:var(--insight);font-variant-numeric:tabular-nums;text-align:center;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12.5px;font-weight:600;line-height:24px;display:inline-block;overflow:hidden}.wo-stage[data-illustrative]{--mv-series-ink:var(--warning)}.wo-shell-ground{background:linear-gradient(90deg, color-mix(in srgb, var(--insight) 7%, transparent), transparent 88%);border-radius:18px;width:min(560px,70%);height:96px}.wo-play[data-inviting]{color:var(--surface-default);background:var(--presence);border-color:#0000}.wo-play-aside{font:400 11.5px/1 var(--font);color:var(--text-muted);white-space:nowrap}.wo-legend-view{color:var(--text-secondary);font-weight:500}.wo-invite{font:400 13px/1.45 var(--font);color:var(--text-primary);margin:0 0 6px}.wo-invite strong{font-weight:600}.wo-trace{opacity:.16;pointer-events:none;height:22px;position:absolute;inset:auto 0 0}.wo-trace path{stroke:var(--mv-series-ink,var(--insight));stroke-width:1.5px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.wo-num[data-status=illustrative]{color:color-mix(in oklab, var(--warning) 78%, var(--text-primary));font-style:italic}.wo-stage[data-uniform-tier] .mv-tier{display:none}.wo-expand{font:500 9.5px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--text-faint);border-radius:var(--r-full);cursor:pointer;transition:color var(--m-fast,.12s) var(--ease-out,ease), border-color var(--m-fast,.12s) var(--ease-out,ease);background:0 0;border:1px solid #0000;flex:none;padding:4px 8px}.mv-node:hover .wo-expand,.mv-node:focus-within .wo-expand,.mv-node[data-selected] .wo-expand,.wo-expand[aria-busy=true]{color:var(--text-secondary);background:var(--surface-glass);border-color:var(--line-soft)}.wo-expand:hover:not(:disabled){color:var(--text-primary);border-color:var(--line-strong)}.wo-expand[aria-busy=true]{color:var(--presence);border-color:color-mix(in oklab, var(--presence) 45%, transparent);cursor:default}@media (prefers-reduced-motion:no-preference){.wo-expand[aria-busy=true]{animation:1.5s ease-in-out infinite wo-expand-wait}@keyframes wo-expand-wait{50%{opacity:.55}}}.wo-expand:disabled{cursor:default;opacity:.55}.mv-node[data-lod=far] .wo-num,.mv-node[data-lod=far] .wo-expand{display:none}.wo-rail{gap:var(--s-lg);width:clamp(300px,24vw,380px);padding:var(--s-md) var(--s-lg) var(--s-lg);border-left:1px solid var(--line-soft);background:var(--surface-default);flex-direction:column;flex-shrink:0;display:flex;overflow-y:auto}.wo-rail .viz-ctl{align-items:baseline;column-gap:var(--s-sm);border-top:1px solid color-mix(in oklab, var(--line-soft) 70%, transparent);grid-template-columns:minmax(0,1fr) auto;row-gap:6px;padding:8px 0;display:grid}.wo-rail .viz-ctl-label{min-width:0;color:var(--text-primary);overflow-wrap:anywhere;grid-area:1/1;font-size:12.5px}.wo-rail .viz-ctl-val{font-variant-numeric:tabular-nums;grid-area:1/2}.wo-rail .viz-ctl-range{grid-area:2/1/3/3;align-self:center;max-width:none}.wo-detail{flex-direction:column;gap:6px;display:flex}.wo-standing{gap:var(--s-md);flex-direction:column;display:flex}.wo-facts{gap:var(--s-md) var(--s-lg);flex-wrap:wrap;margin:0;display:flex}.wo-facts div{flex-direction:column;gap:2px;display:flex}.wo-facts dt{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);font-size:9.5px;font-weight:600}.wo-facts dd{font:600 17px/1.1 var(--font);color:var(--text-primary);font-variant-numeric:tabular-nums;margin:0}.wo-standing-outcome{font:500 13.5px/1.45 var(--font);color:var(--text-primary);margin:0}.wo-standing-lead{color:var(--text-muted)}.wo-standing-note{font:400 12.5px/1.5 var(--font);color:var(--text-secondary);margin-top:4px;display:block}.wo-hint{padding:var(--s-2) var(--s-md);border:1px dashed var(--line);border-radius:var(--r-sm);background:var(--surface-glass)}.wo-detail-title{font:600 14px/1.3 var(--font);color:var(--text-primary);margin:2px 0 0}.wo-detail-note,.wo-hint{font:400 12.5px/1.5 var(--font);color:var(--text-secondary);margin:0}.wo-hint{color:var(--text-muted)}.wo-detail-figure{font:600 18px/1.2 var(--font);color:var(--text-primary);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0}.wo-series{flex-direction:column;gap:2px;margin:4px 0 0;padding:0;list-style:none;display:flex}.wo-series li{justify-content:space-between;gap:var(--s-sm);font:400 12px/1.6 var(--font-data,var(--font));font-variant-numeric:tabular-nums;border-bottom:1px solid color-mix(in oklab, var(--line-soft) 60%, transparent);display:flex}.wo-series-t{color:var(--text-muted)}@media (width<=960px){.wo-body{flex-direction:column}.wo-rail{border-left:0;border-top:1px solid var(--line-soft);width:auto;max-height:46%}}.wo-shift{letter-spacing:.01em;white-space:nowrap;color:var(--text-muted);font-size:10.5px;font-weight:600;position:absolute;top:calc(100% + 3px);left:2px}.wo-shift[data-dir=down]{color:color-mix(in oklab, var(--warning) 78%, var(--text-muted))}.wo-shift[data-dir=up]{color:color-mix(in oklab, var(--insight) 78%, var(--text-muted))}.mv-node[data-lod=far] .wo-shift{display:none}.wo-transport{height:var(--wo-transport-h);background:linear-gradient(to top, var(--surface-deep,var(--surface-default)) 62%, color-mix(in oklab, var(--surface-deep,var(--surface-default)) 82%, transparent) 88%, transparent);pointer-events:none;flex-direction:column;justify-content:center;gap:8px;padding:12px 20px;display:flex;position:absolute;inset:auto 0 0}.wo-transport>*{pointer-events:auto}.wo-transport-row{align-items:center;gap:12px;display:flex}.wo-transport:not([data-open]) .wo-transport-row{width:max-content}.wo-play{border:1px solid color-mix(in oklab, var(--presence) 42%, transparent);background:color-mix(in oklab, var(--presence) 12%, transparent);min-height:34px;color:var(--text-strong,inherit);font:inherit;letter-spacing:.01em;cursor:pointer;transition:background var(--m-quick,.16s) var(--ease-out,ease);border-radius:999px;align-items:center;gap:8px;padding:6px 14px;font-size:.82rem;font-weight:600;display:inline-flex}.wo-play:hover{background:color-mix(in oklab, var(--presence) 20%, transparent)}.wo-play-glyph{color:var(--presence);font-size:.7rem;line-height:1}.wo-track{flex:1;align-items:center;gap:3px;min-width:0;display:flex}.wo-tick{cursor:pointer;background:0 0;border:0;flex:1;min-width:0;height:24px;padding:10px 0}.wo-tick:before{content:"";background:var(--track);height:4px;transition:background var(--m-quick,.16s) var(--ease-out,ease);border-radius:2px;display:block}.wo-tick[data-state=past]:before{background:color-mix(in oklab, var(--presence) 55%, transparent)}.wo-tick[data-state=now]:before{background:var(--presence)}.wo-tick:hover:before{background:color-mix(in oklab, var(--presence) 75%, transparent)}.wo-transport-count{font-variant-numeric:tabular-nums;color:var(--text-muted);flex:none;font-size:.7rem}.wo-caption{min-height:2.6em;color:var(--text-default);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.86rem;line-height:1.3;display:-webkit-box;overflow:hidden}.mv-edge-g[data-lit] .morph-edge{--mv-edge-w:3.2;opacity:1;filter:drop-shadow(0 0 6px color-mix(in oklab, var(--presence) 55%, transparent))}@media (prefers-reduced-motion:reduce){.wo-chip,.wo-btn,.wo-expand,.wo-play,.wo-tick:before{transition:none}}
|