@mavea/mavea 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +4 -3
- package/dist/.vite/manifest.json +605 -623
- package/dist/assets/{AppCommandPalette-D_g8-7C0.js → AppCommandPalette-Dzl_DbDd.js} +1 -1
- package/dist/assets/{BlockEmpty-Ddhgr5pu.js → BlockEmpty-B5Q0hgDJ.js} +1 -1
- package/dist/assets/{BriefingPlayer-D-QhLgXI.js → BriefingPlayer-Dy7JCGm-.js} +1 -1
- package/dist/assets/{CanvasSkeleton-BIiOmCMG.js → CanvasSkeleton-CJwPWnFG.js} +2 -2
- package/dist/assets/{CheckLogRail-ZrDqyjQ7.js → CheckLogRail-DNtXlkcR.js} +1 -1
- package/dist/assets/{CodeOutput-D7sVg1Nr.js → CodeOutput-Bg64AyKu.js} +1 -1
- package/dist/assets/{CommandPalette-DNa2q8E_.js → CommandPalette-mO1FEvlx.js} +1 -1
- package/dist/assets/{CourseLessonReader-BIpGjcJk.js → CourseLessonReader-CKfvBMtL.js} +2 -2
- package/dist/assets/{CourseRail-CQaotzN0.js → CourseRail-CRcB319H.js} +1 -1
- package/dist/assets/{CoursesApp-q3kZJmu1.js → CoursesApp-BbCGxAav.js} +2 -2
- package/dist/assets/{CrossExamPanel-BIJslibV.js → CrossExamPanel-Deywo95y.js} +1 -1
- package/dist/assets/{DashPresent-DGSE0vYM.js → DashPresent-BEm1tGse.js} +1 -1
- package/dist/assets/{DashboardDetail-BpaLNg8R.js → DashboardDetail-tK6FpgtH.js} +2 -2
- package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +1 -0
- package/dist/assets/{DashboardOverview-8x3OxX2i.js → DashboardOverview-DrdqBgds.js} +1 -1
- package/dist/assets/{DashboardSettings-f_zxcs5j.js → DashboardSettings-CBhzLW0P.js} +1 -1
- package/dist/assets/DashboardsApp-Dc43FBIi.js +2 -0
- package/dist/assets/{DeepZoomApp-E7bDmzuL.js → DeepZoomApp-Chz6laKc.js} +1 -1
- package/dist/assets/{DelegatePanel-_9RZiLHM.css → DelegatePanel-Cf85-0qE.css} +1 -1
- package/dist/assets/DelegatePanel-DmtTY_lE.js +33 -0
- package/dist/assets/{DemoGallery-DDzX8Z7I.js → DemoGallery-zw3d7ap9.js} +1 -1
- package/dist/assets/{DropSelect-BMZYAX6q.js → DropSelect-Bo2Oyi-2.js} +1 -1
- package/dist/assets/{ExportModal-CTMJaU1l.js → ExportModal-DICXavg9.js} +2 -2
- package/dist/assets/{ExtractionPreview-C9wq7CrK.js → ExtractionPreview-C636AVw-.js} +1 -1
- package/dist/assets/{FlagshipCTA-DPNSflKv.js → FlagshipCTA-B-7nH43r.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-55zqyPFm.js → FlagshipCommandPalette-DgTL_Kjj.js} +1 -1
- package/dist/assets/{FlagshipShowcase-BWpoPWOn.js → FlagshipShowcase-CbAC2s4X.js} +1 -1
- package/dist/assets/{FlashcardsApp-apCj3I17.js → FlashcardsApp-CatYcaJJ.js} +1 -1
- package/dist/assets/{ForecastPanel-CMRD-UKn.js → ForecastPanel-BOG361kr.js} +1 -1
- package/dist/assets/{GalleryApp-CcsbirLT.js → GalleryApp-uW6b1Y0d.js} +1 -1
- package/dist/assets/{HonestByDesign-DU4qmc61.js → HonestByDesign-hCxc0A7b.js} +1 -1
- package/dist/assets/{HowItWorks-CkZXftN-.js → HowItWorks-BlbQcUxx.js} +1 -1
- package/dist/assets/{LegalApp-BmZpqH-6.js → LegalApp-sCZjJYWx.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-CcbAfubz.js → LegalMarkdownDocument-Bk3U7ChN.js} +1 -1
- package/dist/assets/{LegalPageShell-raMATqhx.js → LegalPageShell-BsgRV7aL.js} +1 -1
- package/dist/assets/{LeverPanel-DVUgGcYW.js → LeverPanel-CP32QcIf.js} +1 -1
- package/dist/assets/{Library-D725dNcx.js → Library-CJTnp1pC.js} +1 -1
- package/dist/assets/{LibraryOverlay-D7PzQIpH.js → LibraryOverlay-geQRGAzG.js} +1 -1
- package/dist/assets/LiveApp-C0BN0o3_.js +61 -0
- package/dist/assets/LiveApp-Dj_6EQuL.css +1 -0
- package/dist/assets/LiveSettings-CzSXXMoo.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-CIMuABKE.js → MindMapViewerDrawer-7HLErRQF.js} +1 -1
- package/dist/assets/{MindShape-0KPrv0CF.js → MindShape-Bhu4yoIj.js} +1 -1
- package/dist/assets/MindShape-DjHtMW_5.css +1 -0
- package/dist/assets/{PinToDashboard-ML4NFCAU.js → PinToDashboard-Cj8S9XKC.js} +1 -1
- package/dist/assets/{PlanReview-CbJ_7Ld1.js → PlanReview-3NxZD9wt.js} +1 -1
- package/dist/assets/{Presence-B_zDfiE7.js → Presence-DDxb6yE5.js} +1 -1
- package/dist/assets/{PresentationDeck-Tm3PUdh5.js → PresentationDeck-B6AHRYEA.js} +1 -1
- package/dist/assets/{PrismApp-Bc-6PO_P.js → PrismApp-BlPpWxao.js} +2 -2
- package/dist/assets/{PrismAskController-OwqFx5Pk.js → PrismAskController-DUvOTeW9.js} +1 -1
- package/dist/assets/{PrismBriefingPlayer-Bu_ZxYdh.js → PrismBriefingPlayer-Bmo9tOGX.js} +2 -2
- package/dist/assets/{PrismOverlay-UTsJ8R5d.js → PrismOverlay-9Q_14eEO.js} +4 -4
- package/dist/assets/{PrivacyApp-BLXan6dm.js → PrivacyApp-CatB3OpJ.js} +1 -1
- package/dist/assets/{Recap-5rYrcMCC.js → Recap-DkKrrqi5.js} +1 -1
- package/dist/assets/{ReelJelly-Dg3XGB0c.js → ReelJelly-DCD4bG10.js} +1 -1
- package/dist/assets/{ReplayCard-wMIMlorH.js → ReplayCard-Bz69tOST.js} +2 -2
- package/dist/assets/{ReplayOverlay-BomkTonB.js → ReplayOverlay-DbJX08Kr.js} +1 -1
- package/dist/assets/{RewindOverlay-Izf89nG9.js → RewindOverlay-Bop4a63b.js} +1 -1
- package/dist/assets/{RippleApp-8QSIEjTX.js → RippleApp-u3hCfb5b.js} +2 -2
- package/dist/assets/{RippleAskController-Cd86GrKs.js → RippleAskController-CK4iSwT0.js} +1 -1
- package/dist/assets/{RippleOverlay-SCrXZTqz.js → RippleOverlay-BM_B9JEc.js} +2 -2
- package/dist/assets/{SeeDontRead-Bp8qsF20.js → SeeDontRead-CGGKmvBV.js} +1 -1
- package/dist/assets/{ShareModal-C-sD-aia.js → ShareModal-D4En6Y3L.js} +1 -1
- package/dist/assets/{ShipCascade-Cq_I4c_v.js → ShipCascade-k_GWrcau.js} +1 -1
- package/dist/assets/{ShipCourse-CzsJyMnT.js → ShipCourse-BQOY4MyI.js} +1 -1
- package/dist/assets/{ShipHotspots-OMjPhQWP.js → ShipHotspots-vLRK0w_b.js} +1 -1
- package/dist/assets/{ShipIncident-Cqn6ZmKz.js → ShipIncident-BWxerYtX.js} +1 -1
- package/dist/assets/{ShipMigration-5_ZWn7K9.js → ShipMigration-OgAGEbjm.js} +1 -1
- package/dist/assets/{ShipOnboarding-Yr8oKgmQ.js → ShipOnboarding-B_2IEq3N.js} +1 -1
- package/dist/assets/{ShipRead-Bnw7mnv3.js → ShipRead--gGqg2SE.js} +1 -1
- package/dist/assets/{ShipRollout-ECsDrqAd.js → ShipRollout-B_U2P8Yw.js} +1 -1
- package/dist/assets/{ShipSuggestions-C6oDw2F8.js → ShipSuggestions-D9coTmgw.js} +1 -1
- package/dist/assets/{ShipWorkspace-BT6gZrqd.js → ShipWorkspace-BmdcHZXa.js} +1 -1
- package/dist/assets/{SignatureLoop-D7sibSnc.js → SignatureLoop-KA6Cf93g.js} +1 -1
- package/dist/assets/{SynthesisApp-B768x2r_.js → SynthesisApp-BCBhCJhx.js} +2 -2
- package/dist/assets/{SynthesisOverlay-Ds0MhZLQ.js → SynthesisOverlay-BuGIeaKq.js} +1 -1
- package/dist/assets/{TermsApp-Da8FeMj3.js → TermsApp-CleIlDtR.js} +1 -1
- package/dist/assets/{TopicCanvas-D64O3lvD.js → TopicCanvas-BRu3xVL8.js} +2 -2
- package/dist/assets/{TopicCanvas-D2Nax9II.css → TopicCanvas-uRuHi99s.css} +1 -1
- package/dist/assets/{TourPrism-CTf1G-Vv.js → TourPrism-zbVLe2ag.js} +1 -1
- package/dist/assets/{TrackerTile-DeujTCk-.js → TrackerTile-D9Wa3CSq.js} +2 -2
- package/dist/assets/{TwoSurfaces-kyK2yqm0.js → TwoSurfaces-TyWXgAdq.js} +1 -1
- package/dist/assets/{UnderstoodPanel-Dgwk_Cuj.js → UnderstoodPanel-BS9OhgLJ.js} +1 -1
- package/dist/assets/{WhyMachineOverlay-C4eQC0lg.js → WhyMachineOverlay-B-KJhCjr.js} +1 -1
- package/dist/assets/{WowFeatures-CaBZ5WPM.js → WowFeatures-Bv1-PmXF.js} +1 -1
- package/dist/assets/{ZoomDeck-DnCtbhx1.js → ZoomDeck-C2Q6xbgX.js} +1 -1
- package/dist/assets/{alternateFinishes-FSV_gA1A.js → alternateFinishes-BG6svkXG.js} +1 -1
- package/dist/assets/{annotationAuto-x_dV8z65.js → annotationAuto-BpBsjbDQ.js} +1 -1
- package/dist/assets/{annotationReel-SeXzv0P-.js → annotationReel-yzysA-Gr.js} +1 -1
- package/dist/assets/{backup-0zODkqi-.js → backup-BdeBr3wq.js} +1 -1
- package/dist/assets/canvas-Ep2Kfupo.js +1 -0
- package/dist/assets/{catalog-Car_1ocN.js → catalog-DF7YTNju.js} +1 -1
- package/dist/assets/{dashboardEvents-BqcPN-K8.js → dashboardEvents-C_XvGVLJ.js} +1 -1
- package/dist/assets/{dist-BTg4yEWr.js → dist-CBEt6Q8V.js} +1 -1
- package/dist/assets/{fit-I3tuibfX.js → fit-B1LJWvMO.js} +1 -1
- package/dist/assets/{generateLive-Dk24OxVt.js → generateLive-ChhSWKbq.js} +1 -1
- package/dist/assets/gesture-Bouqjr3g.js +2 -0
- package/dist/assets/{index-CWqRe4-B.js → index-C7H7A1rW.js} +3 -3
- package/dist/assets/{jspdf.es.min-wkD3BzGZ.js → jspdf.es.min-DutJi91O.js} +1 -1
- package/dist/assets/{kokoro-B-3GqktX.js → kokoro-kGWf7M0e.js} +1 -1
- package/dist/assets/{lib-CwruVYU_.js → lib-C7zXL8h0.js} +1 -1
- package/dist/assets/{liveSchema-CCpVMy0H.js → liveSchema-DCL21WdS.js} +2 -2
- package/dist/assets/{motion-CURfDtdH.js → motion-dfA87zbb.js} +1 -1
- package/dist/assets/{notes-BG5QP-Dj.js → notes-DblI4Ko_.js} +1 -1
- package/dist/assets/{pdf-x4qTBJIZ.js → pdf-DFYCstCC.js} +1 -1
- package/dist/assets/{penStrokes-9Q_l7NTt.js → penStrokes-DlHnO9xE.js} +1 -1
- package/dist/assets/{perfProbe-BFwfpxJt.js → perfProbe-CCSPF3EA.js} +1 -1
- package/dist/assets/{pin-DRN5H7py.js → pin-D5_Ebl_s.js} +1 -1
- package/dist/assets/{portal-BYHo9LOD.js → portal-BndazODr.js} +1 -1
- package/dist/assets/{pptxgen.es-DGywGiaX.js → pptxgen.es-CwCkoJdp.js} +1 -1
- package/dist/assets/{prewarm-CQNCE4Uq.js → prewarm--KODwuMi.js} +1 -1
- package/dist/assets/{quietHours-CKjQ2pGY.js → quietHours-DVPplPtM.js} +1 -1
- package/dist/assets/{registry-CfTTYQrE.js → registry-0E1uKPCI.js} +1 -1
- package/dist/assets/{registry-Bpx4VBWb.js → registry-B3V5-8v0.js} +1 -1
- package/dist/assets/{registry-_T6pLDPG.js → registry-B51MhOLx.js} +2 -2
- package/dist/assets/{registry-DrqQbf_n.js → registry-BH6FfyZk.js} +1 -1
- package/dist/assets/{registry-CqfjqOX5.js → registry-Ba9xMFO4.js} +2 -2
- package/dist/assets/{registry-CNr6L-3z.js → registry-BlB0FYf0.js} +1 -1
- package/dist/assets/{registry-DFmFBfRz.js → registry-C30HGS2G.js} +1 -1
- package/dist/assets/{registry-1BWL6SXY.js → registry-CIa1EU-G.js} +1 -1
- package/dist/assets/{registry-DEgW3zel.js → registry-COxprhRN.js} +1 -1
- package/dist/assets/{registry-Dw42uggW.js → registry-CWkBxxsI.js} +1 -1
- package/dist/assets/{registry-9S6KiKjR.js → registry-D-qEhm1d.js} +1 -1
- package/dist/assets/registry-D5oMqeSa.js +1 -0
- package/dist/assets/{registry-BZQeYzgv.js → registry-D7rspCZr.js} +1 -1
- package/dist/assets/{registry-Bl3NkU-0.js → registry-DNzF-nvu.js} +1 -1
- package/dist/assets/{registry-aUZZeh27.js → registry-DQIm_hbI.js} +1 -1
- package/dist/assets/{registry-cPmSqaRu.js → registry-Dphh5ADP.js} +1 -1
- package/dist/assets/{registry-GLjcQX0n.js → registry-DrNMbrA_.js} +1 -1
- package/dist/assets/{registry-DBsjgIxw.js → registry-Dvv84L9K.js} +1 -1
- package/dist/assets/{registry-D84Bs-bD.js → registry-M3VgAiQv.js} +1 -1
- package/dist/assets/{registry-BueBIP-N.js → registry-Pr5IKqro.js} +1 -1
- package/dist/assets/{registry-BpBiRe-o.js → registry-WJE8Z0T1.js} +1 -1
- package/dist/assets/registry-hsSlT6pi.js +1 -0
- package/dist/assets/{registry-Bc6_RQ8l.js → registry-nG70-amx.js} +1 -1
- package/dist/assets/{registry-BklPTZre.js → registry-wJhGGVuP.js} +1 -1
- package/dist/assets/{relate-yq30L3hZ.js → relate-DxAi8xpo.js} +1 -1
- package/dist/assets/{shikiHighlight-BgZoQAHs.js → shikiHighlight-B_TEagaE.js} +1 -1
- package/dist/assets/{useDashboardLoop-mGmJwv27.js → useDashboardLoop-DzbRz-V9.js} +3 -3
- package/dist/assets/{useLiveConfig-vMyjo2gV.js → useLiveConfig-Lm0cYTcu.js} +1 -1
- package/dist/assets/{useSpatialCanvas-CEXy6ZC2.js → useSpatialCanvas-D_C8VoCy.js} +1 -1
- package/dist/assets/{useSpotlightWalk-B9XJ6OLK.js → useSpotlightWalk-CCQT0-_g.js} +1 -1
- package/dist/assets/{useSrsCards-Vc6B2_he.js → useSrsCards-BKCPBPYw.js} +1 -1
- package/dist/assets/{useStudy-6QnY-Fw_.js → useStudy-Diy4ITBm.js} +1 -1
- package/dist/assets/{useZoomGesture-BONUz5cE.js → useZoomGesture-B82XnSfi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/DashboardLoopRuntime-14yzj-xx.js +0 -1
- package/dist/assets/DashboardsApp-mvMbGmp0.js +0 -2
- package/dist/assets/DelegatePanel-pwRk9pFf.js +0 -26
- package/dist/assets/LiveApp-B8Jw1Q0h.js +0 -61
- package/dist/assets/LiveApp-DQhDk2ma.css +0 -1
- package/dist/assets/LiveSettings-BQ06gZB7.js +0 -6
- package/dist/assets/MindShape-Bel2yDqO.css +0 -1
- package/dist/assets/RehearsalPanel-BCU615wg.css +0 -1
- package/dist/assets/RehearsalPanel-CM4466Os.js +0 -6
- package/dist/assets/canvas-uhcwigAL.js +0 -1
- package/dist/assets/gesture-DabMpPcq.js +0 -2
- package/dist/assets/registry-BffpZK5w.js +0 -1
- package/dist/assets/registry-Z3TIPbYJ.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ReplayCard-
|
|
2
|
-
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{J as r,ht as i,mt as a,q as o}from"./index-CWqRe4-B.js";import{n as s}from"./icons-CHVz6kv_.js";import{t as c}from"./toast-BBNs2h3L.js";import{a as l,c as u,d,i as f,l as p,o as m,r as h,s as g,t as _,u as v}from"./CanvasSkeleton-BIiOmCMG.js";import{n as y,t as b}from"./FallbackCard-B489rTd9.js";import{n as x,t as S}from"./blockLabel-DAqaHKy3.js";import{n as C,r as w,t as T}from"./useSpatialCanvas-CEXy6ZC2.js";import{t as E}from"./richText-BkxJhl9N.js";import{i as D,r as O}from"./format-DlZTyeMy.js";import{t as k}from"./safeImageUrl-CUkucDUu.js";import{t as A}from"./useValidatedImage-D2fhA198.js";import{n as j,t as M}from"./layout-BFQOzXtG.js";import{i as N,r as P,t as F}from"./catalog-BHjl-1uH.js";import{n as I}from"./http-CJCtjYpA.js";import{n as L}from"./lib-CwruVYU_.js";var R=t();function ee(e){let t=p(e),n=Array.from(t).sort().join(`,`),[r,i]=(0,R.useState)(()=>v(t));return(0,R.useEffect)(()=>{if(v(t)){i(!0);return}i(!1);let e=!0;return d(n.split(`,`)).then(()=>{e&&i(!0)}),()=>{e=!1}},[n]),r}var z=i(),te=null,ne=new WeakMap;function re(){return typeof ResizeObserver>`u`?null:(te||=new ResizeObserver(e=>{for(let t of e)ne.get(t.target)?.()}),te)}function B(e,t){let n=re();return n?(ne.set(e,t),n.observe(e),()=>{n.unobserve(e),ne.delete(e)}):()=>{}}var V=n(),H=new Set([`hidden`,`clip`,`auto`,`scroll`]);function U(e){let t=(0,z.c)(14),{children:n,maxAspect:r,className:i}=e,a=(0,R.useRef)(null),o=(0,R.useRef)(null),[s,c]=(0,R.useState)(1),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=a.current,t=o.current;if(!e||!t)return;let n=()=>{let n=e.clientWidth;if(!n)return;let r=t.querySelectorAll(`*`),i=t.style.transform;t.style.transform=`none`;let a=[];for(let e of r){let t=getComputedStyle(e);(H.has(t.overflowX)||H.has(t.overflowY)||t.webkitLineClamp!==`none`)&&a.push(e)}let o=[];for(let e of a)o.push({el:e,o:e.style.overflow,c:e.style.webkitLineClamp}),e.style.overflow=`visible`,e.style.webkitLineClamp=`unset`;let s=t.scrollWidth;for(let e of r)e.scrollWidth>s&&(s=e.scrollWidth);for(let e of o)e.el.style.overflow=e.o,e.el.style.webkitLineClamp=e.c;if(t.style.transform=i,!s||s<=n+1){c(W);return}let l=n/s,u=Math.max(.4,Math.floor(l*1e3)/1e3);c(e=>Math.abs(e-u)>.002?u:e)};return n(),B(e,n)},t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=[n],t[1]=n,t[2]=u),(0,R.useLayoutEffect)(l,u);let d=s<1,f=`fit-box`+(i?` `+i:``),p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p={contentVisibility:`auto`,containIntrinsicSize:`auto 200px`},t[3]=p):p=t[3];let m;t[4]!==s||t[5]!==r||t[6]!==d?(m=d?{transformOrigin:`top left`,transform:`scale(${s})`,width:`${100/s}%`,marginBottom:`calc(${s-1} * 100%)`,...r?{maxHeight:`calc(${r} * 100cqw)`,overflow:`hidden`}:{}}:void 0,t[4]=s,t[5]=r,t[6]=d,t[7]=m):m=t[7];let h;t[8]!==n||t[9]!==m?(h=(0,V.jsx)(`div`,{ref:o,style:m,children:n}),t[8]=n,t[9]=m,t[10]=h):h=t[10];let g;return t[11]!==f||t[12]!==h?(g=(0,V.jsx)(`div`,{ref:a,className:f,style:p,children:h}),t[11]=f,t[12]=h,t[13]=g):g=t[13],g}function W(e){return e===1?e:1}var ie=new Set([`gridtrace`,`chronologicaltimeline`,`roadmap`,`matrix`,`sparktable`,`gantt`]),G=`mavea-bloom-mode`,ae=G,oe=!0,K=null;function se(){try{if(typeof localStorage>`u`)return oe;let e=localStorage.getItem(G);return e===`on`?!0:e===`off`?!1:oe}catch{return oe}}function q(){return K===null&&(K=se()),K}function ce(e){K=e;try{typeof localStorage<`u`&&localStorage.setItem(G,e?`on`:`off`)}catch{}try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(ae))}catch{}}function le(){let[e,t]=(0,R.useState)(()=>q());return(0,R.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(q());return window.addEventListener(ae,e),()=>window.removeEventListener(ae,e)},[]),[e,(0,R.useCallback)(ce,[])]}var J=a(),Y=260,X=56,Z={min:.2,max:3};function ue(e){return e.col>=10?640:e.col>=7?500:360}function Q(e){return Math.max(1,Math.min(e,Math.round(Math.sqrt(e*1.3))))}function de(e,t,n){let r=Math.max(1,Math.ceil(e.length/n)),i=[];for(let a=0;a<r;a++){let r=Y;for(let i=0;i<n;i++){let o=a*n+i;o<e.length&&(r=Math.max(r,t[o]||Y))}i[a]=r}let a=[],o=0;for(let e=0;e<r;e++)a[e]=o,o+=i[e]+X;let s=[];for(let t=0;t<r;t++){let r=[];for(let i=0;i<n;i++){let a=t*n+i;a<e.length&&r.push(a)}t%2==1&&r.reverse(),s[t]=r}let c=s.map(t=>t.reduce((t,n)=>t+ue(e[n]),0)+Math.max(0,t.length-1)*X),l=Math.max(...c,1),u=Array(e.length);return s.forEach((t,n)=>{let r=(l-c[n])/2;for(let n of t){let t=ue(e[n]);u[n]={x:r,w:t},r+=t+X}}),{placed:e.map((e,r)=>{let o=Math.floor(r/n),s=t[r]||Y,{x:c,w:l}=u[r];return{block:e,x:c,y:a[o]+(i[o]-s)/2,w:l,h:s,cx:c+l/2,cy:a[o]+i[o]/2}}),w:l,h:Math.max(Y,o-X)}}function fe(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=0;n<e.length-1;n++){let r=e[n-1]??e[n],i=e[n],a=e[n+1],o=e[n+2]??a,s=i.x+(a.x-r.x)/6,c=i.y+(a.y-r.y)/6,l=a.x-(o.x-i.x)/6,u=a.y-(o.y-i.y)/6;t+=` C ${s} ${c} ${l} ${u} ${a.x} ${a.y}`}return t}function $(e){let t=e.props?.title;return typeof t==`string`&&t.trim()?t.trim():x(e)}function pe(e){let t=(0,z.c)(24),{data:n,onExit:r,selectedBlockIds:i}=e,a=(0,R.useRef)(null),o=i?.size??0,s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=document.activeElement;return a.current?.querySelector(`.cv-viewport`)?.focus(),()=>e?.focus?.()},c=[],t[0]=s,t[1]=c):(s=t[0],c=t[1]),(0,R.useEffect)(s,c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=[],t[2]=l):l=t[2],(0,R.useEffect)(me,l);let u=`${n.title} — canvas`,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`span`,{className:`cv-takeover-glyph`,"aria-hidden":`true`,children:`◇`}),t[3]=d):d=t[3];let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsx)(`span`,{className:`cv-takeover-eyebrow`,children:`Canvas`}),t[4]=f):f=t[4];let p;t[5]===n.title?p=t[6]:(p=(0,V.jsxs)(`div`,{className:`cv-takeover-id`,children:[d,(0,V.jsxs)(`div`,{className:`cv-takeover-titles`,children:[f,(0,V.jsx)(`span`,{className:`cv-takeover-title`,children:n.title})]})]}),t[5]=n.title,t[6]=p);let m;t[7]===o?m=t[8]:(m=o>0&&(0,V.jsxs)(`span`,{className:`cv-takeover-selection`,"aria-live":`polite`,children:[o,` selected`]}),t[7]=o,t[8]=m);let h;t[9]!==r||t[10]!==o?(h=r&&(0,V.jsxs)(`button`,{type:`button`,className:`cv-takeover-close`,onClick:r,children:[o>0?(0,V.jsxs)(V.Fragment,{children:[`Ask about `,o,` →`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`←`}),` Back to answer`]}),(0,V.jsx)(`kbd`,{"aria-hidden":`true`,children:`esc`})]}),t[9]=r,t[10]=o,t[11]=h):h=t[11];let g;t[12]!==m||t[13]!==h?(g=(0,V.jsxs)(`div`,{className:`cv-takeover-actions`,children:[m,h]}),t[12]=m,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==p||t[16]!==g?(_=(0,V.jsxs)(`header`,{className:`cv-takeover-head`,children:[p,g]}),t[15]=p,t[16]=g,t[17]=_):_=t[17];let v;t[18]===e?v=t[19]:(v=(0,V.jsx)(he,{...e}),t[18]=e,t[19]=v);let y;return t[20]!==_||t[21]!==v||t[22]!==u?(y=(0,J.createPortal)((0,V.jsxs)(`div`,{ref:a,className:`cv-takeover`,role:`dialog`,"aria-modal":`true`,"aria-label":u,children:[_,v]}),document.body),t[20]=_,t[21]=v,t[22]=u,t[23]=y):y=t[23],y}function me(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function he({blocks:e,spot:t,renderBlock:n,onAskBlock:r,selectedBlockIds:i,onExit:a}){let o=(0,R.useMemo)(()=>e.filter(e=>!!e.id),[e]),s=(0,R.useMemo)(()=>Q(o.length),[o.length]),c=(0,R.useRef)([]),[l,u]=(0,R.useState)([]),d=(0,R.useCallback)(()=>{let e=o.map((e,t)=>c.current[t]?.offsetHeight||Y);u(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)},[o]);(0,R.useLayoutEffect)(()=>{d()},[d]),(0,R.useEffect)(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>d());return c.current.forEach(t=>t&&e.observe(t)),()=>e.disconnect()},[d,o]);let{placed:f,w:p,h:m}=(0,R.useMemo)(()=>de(o,l,s),[o,l,s]),h=(0,R.useMemo)(()=>({x:-56/2,y:-56/2,w:p+X,h:m+X}),[p,m]),_=(0,R.useMemo)(()=>fe(f.map(e=>({x:e.cx,y:e.cy}))),[f]),{camera:v,transform:x,viewportRef:S,fitTo:E,zoomAtClient:D,pan:O,setCamera:k}=T({clamp:Z,margin:40}),A=g(),j=(0,R.useRef)(v);j.current=v;let M=(0,R.useRef)(0);(0,R.useEffect)(()=>{let e=0,t=0;e=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>E(h))});let n=setTimeout(()=>E(h),360);return()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),clearTimeout(n)}},[h,E]);let N=(0,R.useCallback)(e=>{let t=S.current,n=f[e];if(!t||!n)return;M.current=e;let r=t.getBoundingClientRect(),i=Math.min(Math.max(j.current.scale,.85),Z.max);k(C(n.cx,n.cy,i,{w:r.width,h:r.height},Z))},[f,S,k]),P=(0,R.useRef)(!1);(0,R.useEffect)(()=>{if(!t){P.current&&E(h),P.current=!1;return}let e=f.findIndex(e=>e.block.id===t);e>=0&&(P.current=!0,N(e))},[t,f,N,E,h]);let[F,I]=(0,R.useState)(!1),L=(0,R.useRef)(!1),ee=(0,R.useRef)(!1),z=(0,R.useRef)({x:0,y:0}),te=(0,R.useCallback)(e=>{e.target.closest(`.cv-node-ask, .cv-controls, a, button, input, select, textarea, [contenteditable="true"]`)||(L.current=!0,ee.current=!1,I(!0),z.current={x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture(e.pointerId))},[]),ne=(0,R.useCallback)(e=>{if(!L.current)return;let t=e.clientX-z.current.x,n=e.clientY-z.current.y;Math.abs(t)+Math.abs(n)>3&&(ee.current=!0),z.current={x:e.clientX,y:e.clientY},O(t,n)},[O]),re=(0,R.useCallback)(e=>{let t=L.current;L.current=!1,I(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(!t||ee.current)return;let n=S.current;if(!n||f.length===0)return;let r=n.getBoundingClientRect(),i=w(j.current,e.clientX-r.left,e.clientY-r.top),a=f.findIndex(e=>i.x>=e.x&&i.x<=e.x+e.w&&i.y>=e.y&&i.y<=e.y+e.h);a>=0&&N(a)},[f,S,N]);(0,R.useEffect)(()=>{let e=S.current;if(!e)return;let t=e=>{e.preventDefault(),D(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[S,D]);let B=(0,R.useCallback)(e=>{let t=S.current;if(!t)return;let n=t.getBoundingClientRect();D(e,n.left+n.width/2,n.top+n.height/2)},[S,D]),H=(0,R.useCallback)(e=>{e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),N(Math.min(f.length-1,M.current+1))):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),N(Math.max(0,M.current-1))):e.key===`Home`?(e.preventDefault(),E(h)):e.key===`Escape`&&a&&(e.preventDefault(),a())},[N,E,h,f.length,a]),U=v.scale>=.6;return(0,V.jsxs)(`div`,{className:`cv-viewport`+(F?` is-panning`:``),ref:S,role:`group`,"aria-label":`Answer canvas — this answer's cards as a board you can pan and zoom`,tabIndex:0,onPointerDown:te,onPointerMove:ne,onPointerUp:re,onPointerCancel:re,onKeyDown:H,children:[(0,V.jsxs)(`div`,{className:`cv-controls`,children:[(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1.25),title:`Zoom in`,"aria-label":`Zoom in`,children:`+`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1/1.25),title:`Zoom out`,"aria-label":`Zoom out`,children:`−`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>E(h),title:`Fit the whole canvas`,"aria-label":`Fit the whole canvas`,children:`⤢`})]}),(0,V.jsxs)(`div`,{className:`cv-world`,style:{width:p,height:m,transform:x},children:[(0,V.jsx)(`svg`,{className:`cv-thread-svg`,width:p,height:m,viewBox:`0 0 ${p} ${m}`,"aria-hidden":`true`,children:(0,V.jsx)(`path`,{className:`cv-thread`+(A?``:` cv-draw`),d:_,pathLength:1})}),f.map((e,a)=>{let o=e.block.id,s=i?.has(o)??!1;return(0,V.jsxs)(`div`,{ref:e=>{c.current[a]=e},className:`cv-node`+(s?` is-selected`:``)+(t===o?` is-spot`:``),style:{left:e.x,top:e.y,width:e.w},"data-kind":e.block.type,children:[(0,V.jsxs)(`div`,{className:`cv-node-label`,title:$(e.block),children:[(0,V.jsx)(`span`,{className:`cv-node-step`,children:a+1}),(0,V.jsx)(`span`,{className:`cv-node-title`,children:$(e.block)})]}),(0,V.jsx)(`div`,{className:`cv-node-inner`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e.block}),children:n(e.block)})}),r&&U&&(0,V.jsx)(`button`,{type:`button`,className:`cv-node-ask`,onClick:t=>{t.stopPropagation(),r(e.block)},children:s?`Selected`:`Ask`})]},o)})]})]})}function ge(e){let t=(0,z.c)(35),{num:n,title:r,summary:i,stat:a,delta:o,deltaDir:c,conf:l,sources:u,spotlight:d,dimmed:f,onProve:p,delay:m,children:g}=e,_=`card reveal`+(d?` spotlight`:``)+(f?` dimmed`:``),v=(m||0)+`ms`,y;t[0]===v?y=t[1]:(y={"--delay":v},t[0]=v,t[1]=y);let b=y,x;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),t[2]=x):x=t[2];let S;t[3]===n?S=t[4]:(S=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[x,`Finding `,n]}),t[3]=n,t[4]=S);let C;t[5]===r?C=t[6]:(C=(0,V.jsx)(`div`,{className:`insight-title`,children:r}),t[5]=r,t[6]=C);let w;t[7]!==o||t[8]!==c||t[9]!==a?(w=a&&(0,V.jsxs)(`div`,{className:`insight-stat`,children:[(0,V.jsx)(`span`,{className:`big tab-num`,"data-mark":`underline`,children:a}),o&&(0,V.jsxs)(`span`,{className:`delta `+(c||`up`),children:[c===`good`||c===`down`?(0,V.jsx)(s.arrowDown,{style:{width:13,height:13}}):(0,V.jsx)(s.arrowUp,{style:{width:13,height:13}}),o]})]}),t[7]=o,t[8]=c,t[9]=a,t[10]=w):w=t[10];let T;t[11]===i?T=t[12]:(T=(0,V.jsx)(`div`,{className:`insight-summary`,children:i}),t[11]=i,t[12]=T);let E;t[13]===u?E=t[14]:(E=u&&u.map(_e),t[13]=u,t[14]=E);let D;t[15]===E?D=t[16]:(D=(0,V.jsx)(`div`,{className:`card-foot-l`,children:E}),t[15]=E,t[16]=D);let O;t[17]!==l||t[18]!==u?.length?(O=l&&(0,V.jsx)(h,{level:l,title:u?.length?void 0:`Best estimate from the model's knowledge — not verified`}),t[17]=l,t[18]=u?.length,t[19]=O):O=t[19];let k;t[20]!==D||t[21]!==O?(k=(0,V.jsxs)(`div`,{className:`card-foot`,children:[D,O]}),t[20]=D,t[21]=O,t[22]=k):k=t[22];let A;t[23]===p?A=t[24]:(A=p&&(0,V.jsx)(`div`,{style:{marginTop:14},children:(0,V.jsxs)(`button`,{className:`mini-btn accent`,onClick:p,children:[(0,V.jsx)(s.proof,{}),` Prove it`]})}),t[23]=p,t[24]=A);let j;return t[25]!==g||t[26]!==_||t[27]!==k||t[28]!==A||t[29]!==b||t[30]!==S||t[31]!==C||t[32]!==w||t[33]!==T?(j=(0,V.jsxs)(`div`,{className:_,style:b,children:[S,C,w,T,g,k,A]}),t[25]=g,t[26]=_,t[27]=k,t[28]=A,t[29]=b,t[30]=S,t[31]=C,t[32]=w,t[33]=T,t[34]=j):j=t[34],j}function _e(e,t){return(0,V.jsx)(l,{file:e.file,loc:e.loc},t)}function ve({title:e,series:t,labels:n,unit:r=`$`,delay:i,footer:a,conf:o}){let[c,l]=(0,R.useState)(null),u={l:50,r:50,t:14,b:26},d=t.flatMap(e=>e.data),f=(d.length?Math.max(...d):1)*1.12,p=Math.min(0,...d),m=f-p||1,g=n.length,_=e=>u.l+(g>1?e/(g-1):0)*(560-u.l-u.r),v=e=>u.t+(1-(e-p)/m)*(220-u.t-u.b),y=(()=>{let e=0,n=-1/0;for(let r of t)r.data.forEach((t,r)=>{t>n&&(n=t,e=r)});return e})(),b=e=>e.map((e,t)=>`${t?`L`:`M`}${_(t).toFixed(1)} ${v(e).toFixed(1)}`).join(` `),x=e=>`${b(e)} L${_(g-1)} ${v(p)} L${_(0)} ${v(p)} Z`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.chart,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsxs)(`div`,{className:`chart-wrap`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 560 220`,width:`100%`,style:{display:`block`,overflow:`visible`},onMouseLeave:()=>l(null),children:[(0,V.jsx)(`defs`,{children:t.map((e,t)=>(0,V.jsxs)(`linearGradient`,{id:`g${t}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:e.color,stopOpacity:`0`})]},t))}),[.25,.5,.75].map((e,t)=>(0,V.jsx)(`line`,{x1:u.l,x2:560-u.r,y1:u.t+e*(220-u.t-u.b),y2:u.t+e*(220-u.t-u.b),stroke:`var(--grid-line)`},t)),t.map((e,t)=>(0,V.jsxs)(`g`,{children:[e.area!==!1&&(0,V.jsx)(`path`,{className:`tc-area`,d:x(e.data),fill:`url(#g${t})`}),(0,V.jsx)(`path`,{className:`tc-line`,d:b(e.data),pathLength:1,fill:`none`,stroke:e.color,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]},t)),n.map((e,t)=>(0,V.jsx)(`rect`,{x:_(t)-560/g/2,y:0,width:560/g,height:220,fill:`transparent`,"data-mark":t===y?`circle`:void 0,onMouseEnter:()=>l(t)},t)),c!=null&&(0,V.jsxs)(`g`,{children:[(0,V.jsx)(`line`,{x1:_(c),x2:_(c),y1:u.t,y2:220-u.b,stroke:`var(--hover-line)`}),t.map((e,t)=>(0,V.jsx)(`circle`,{cx:_(c),cy:v(e.data[c]),r:`4.5`,fill:e.color,stroke:`var(--surface-default)`,strokeWidth:`2`},t))]}),n.map((e,t)=>(0,V.jsx)(`text`,{x:_(t),y:214,fontSize:`11`,textAnchor:`middle`,fill:`var(--text-muted)`,children:e},t))]}),c!=null&&(0,V.jsxs)(`div`,{className:`chart-tip`,style:{opacity:1,left:`${_(c)/560*100}%`,top:`${v(Math.max(...t.map(e=>e.data[c])))/220*100}%`},children:[(0,V.jsx)(`strong`,{children:n[c]}),t.map((e,n)=>(0,V.jsxs)(`div`,{style:{color:e.color,fontVariantNumeric:`tabular-nums`},children:[e.name,`: `,r,t[n].data[c].toLocaleString()]},n))]})]}),(0,V.jsx)(`div`,{className:`chart-legend`,children:t.map((e,t)=>(0,V.jsxs)(`span`,{className:`legend-item`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),e.name]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function ye({title:e,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,conf:i,delay:a}){let o=s[t]||s.table,c=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.pct>r[t].pct&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`cat-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`cat-row`,children:[(0,V.jsxs)(`div`,{className:`cat-top`,children:[(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`span`,{className:`cat-name`,children:e.name}),e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:e.tagColor?{color:e.tagColor,background:`transparent`,border:`1px solid currentColor`}:void 0,children:e.tag})]}),(0,V.jsx)(`span`,{className:`tab-num`,children:e.val})]}),(0,V.jsx)(`div`,{className:`cat-bar`,children:(0,V.jsx)(`i`,{"data-mark":t===c?`circle`:void 0,style:{width:e.pct+`%`,background:e.hot?`var(--warning)`:`var(--presence)`}})})]},e.name))}),i&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:i,title:`Best estimate from the model's knowledge — not verified`})]})]})}function be(e){let t=(0,z.c)(13),{title:n,events:r,delay:i,eyebrow:a}=e,o=(i||0)+`ms`,c;t[0]===o?c=t[1]:(c={"--delay":o},t[0]=o,t[1]=c);let l=c,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(s.clock,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=u):u=t[2];let d=a||n,f;t[3]===d?f=t[4]:(f=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[u,` `,d]}),t[3]=d,t[4]=f);let p;t[5]===r?p=t[6]:(p=r.map(xe),t[5]=r,t[6]=p);let m;t[7]===p?m=t[8]:(m=(0,V.jsx)(`div`,{className:`timeline`,children:p}),t[7]=p,t[8]=m);let h;return t[9]!==l||t[10]!==f||t[11]!==m?(h=(0,V.jsxs)(`div`,{className:`card reveal`,style:l,children:[f,m]}),t[9]=l,t[10]=f,t[11]=m,t[12]=h):h=t[12],h}function xe(e,t){return(0,V.jsxs)(`div`,{className:`tl-row`,children:[(0,V.jsx)(`div`,{className:`tl-rail`,children:(0,V.jsx)(`span`,{className:`tl-dot`,"data-mark":t===0?`point`:void 0,style:{background:e.color||`var(--presence)`}})}),(0,V.jsxs)(`div`,{className:`tl-body`,children:[(0,V.jsx)(`div`,{className:`tl-time`,children:e.time}),(0,V.jsxs)(`div`,{className:`tl-title`,children:[e.title,e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:{marginLeft:8},children:e.tag})]}),e.detail&&(0,V.jsx)(`div`,{className:`tl-detail`,children:e.detail})]})]},t)}function Se({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,items:r,delay:i}){let a=s[t]||s.layers;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(a,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`check-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`check-row`,children:[(0,V.jsx)(`span`,{className:`check-ic`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e)})]},t))})]})}function Ce(e){let t=(0,z.c)(26),{eyebrow:n,options:r,criteria:i,recommendation:a,delay:o}=e,c=(o||0)+`ms`,l;t[0]===c?l=t[1]:(l={"--delay":c},t[0]=c,t[1]=l);let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=d):d=t[2];let f=n||`Side by side`,p;t[3]===f?p=t[4]:(p=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[d,` `,f]}),t[3]=f,t[4]=p);let m=`minmax(0, 1.1fr) repeat(${r.length}, minmax(0, 1fr))`,h;t[5]===m?h=t[6]:(h={gridTemplateColumns:m},t[5]=m,t[6]=h);let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(`div`,{className:`cmp-corner`}),t[7]=g):g=t[7];let _;t[8]===r?_=t[9]:(_=r.map(we),t[8]=r,t[9]=_);let v;if(t[10]!==i||t[11]!==r){let e;t[13]===r?e=t[14]:(e=(e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsx)(`div`,{className:`cmp-crit`,children:e.label}),e.cells.map((e,t)=>(0,V.jsxs)(`div`,{className:`cmp-val`+(e.win?` win`:``)+(r[t]&&r[t].pick?` in-pick`:``),children:[e.win&&(0,V.jsx)(`span`,{className:`cmp-tick`,children:(0,V.jsx)(s.check,{style:{width:11,height:11}})}),(0,V.jsx)(`span`,{children:e.v})]},t))]},t),t[13]=r,t[14]=e),v=i.map(e),t[10]=i,t[11]=r,t[12]=v}else v=t[12];let y;t[15]!==_||t[16]!==v||t[17]!==h?(y=(0,V.jsxs)(`div`,{className:`cmp`,style:h,children:[g,_,v]}),t[15]=_,t[16]=v,t[17]=h,t[18]=y):y=t[18];let b;t[19]===a?b=t[20]:(b=a&&(0,V.jsxs)(`div`,{className:`cmp-rec`,children:[(0,V.jsx)(s.sparkle,{style:{width:16,height:16,color:`var(--insight)`,flexShrink:0}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(a)})]}),t[19]=a,t[20]=b);let x;return t[21]!==y||t[22]!==b||t[23]!==u||t[24]!==p?(x=(0,V.jsxs)(`div`,{className:`card reveal`,style:u,children:[p,y,b]}),t[21]=y,t[22]=b,t[23]=u,t[24]=p,t[25]=x):x=t[25],x}function we(e,t){return(0,V.jsxs)(`div`,{className:`cmp-opt`+(e.pick?` pick`:``),"data-mark":e.pick?`circle`:void 0,children:[(0,V.jsx)(`div`,{className:`cmp-opt-name`,children:e.name}),e.sub&&(0,V.jsx)(`div`,{className:`cmp-opt-sub`,children:e.sub}),e.pick&&(0,V.jsxs)(`div`,{className:`cmp-pick`,children:[(0,V.jsx)(s.check,{style:{width:12,height:12}}),` Mavéa's pick`]})]},t)}function Te({kicker:e,head:t,bullets:n,foot:r,eyebrow:i=`One-pager · ready to share`,delay:a}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,i]}),(0,V.jsxs)(`div`,{className:`slide-card`,children:[(0,V.jsx)(`div`,{className:`slide-kicker`,children:e}),(0,V.jsx)(`div`,{className:`slide-head`,children:t}),(0,V.jsx)(`div`,{className:`slide-bullets`,children:n.map((e,t)=>(0,V.jsxs)(`div`,{className:`slide-bullet`,children:[(0,V.jsx)(`span`,{className:`bdot`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(e.text)})]},t))}),(0,V.jsxs)(`div`,{className:`slide-foot`,children:[(0,V.jsx)(`span`,{children:r||`Made by Mavéa · from your files`}),(0,V.jsx)(`span`,{children:`June 2026`})]})]}),(0,V.jsxs)(`div`,{className:`action-btns`,style:{marginTop:16},children:[(0,V.jsxs)(`button`,{className:`btn-ghost`,onClick:()=>c(`Tell Mavéa what to change — it'll redo the one-pager`,`info`),children:[(0,V.jsx)(s.edit,{style:{width:15,height:15}}),` Edit`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>c(`Simplified — fewer words, bigger takeaways`,`good`),children:`Make it simpler`}),(0,V.jsxs)(`button`,{className:`btn-primary`,style:{flex:`0 0 auto`,padding:`0 20px`},onClick:()=>window.print(),title:`Export this canvas to PDF`,children:[(0,V.jsx)(s.export,{style:{width:16,height:16}}),` Export`]})]})]})}function Ee(e,t){return t||(e?e.startsWith(`calendar.`)?`Adds one event to your calendar. No invites are sent.`:e.startsWith(`github.`)?`Opens a draft PR. It won't merge until you review and approve it on GitHub.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`)}function De({delay:e,onConfirm:t,eyebrow:n=`Action`,icon:r=`mail`,title:i=`Run this action`,lines:a,perm:o,cta:c=`Confirm`,doneText:l=`Done`,mcpId:u,fields:d}){let[f,p]=(0,R.useState)(`idle`),[m,h]=(0,R.useState)(()=>Object.fromEntries((d??[]).map(e=>[e.param,e.value]))),[g,_]=(0,R.useState)(``),v=(0,R.useRef)(void 0);(0,R.useEffect)(()=>()=>clearTimeout(v.current),[]);let y=s[r]||s.mail,b=Ee(u,o),x=async()=>{p(`running`),await new Promise(e=>{v.current=setTimeout(e,1400)}),p(`done`),t?.()};return(0,V.jsxs)(`div`,{className:`card action-card reveal`,style:{"--delay":(e||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(y,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,n]}),(0,V.jsx)(`div`,{className:`insight-title`,style:{fontSize:17},children:i}),f!==`editing`&&a&&a.length>0&&(0,V.jsx)(`div`,{className:`action-preview`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{style:{marginTop:t?6:0},children:[(0,V.jsx)(`span`,{className:`to`,children:e.k}),` · `,e.v]},t))}),f===`editing`&&d&&d.length>0&&(0,V.jsx)(`div`,{className:`action-edit-fields`,children:d.map(e=>(0,V.jsxs)(`div`,{className:`action-edit-field`,children:[(0,V.jsx)(`label`,{className:`action-edit-label`,children:e.label}),e.multiline?(0,V.jsx)(`textarea`,{className:`action-edit-input action-edit-textarea`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value})),rows:4}):(0,V.jsx)(`input`,{className:`action-edit-input`,type:`text`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value}))})]},e.param))}),f!==`editing`&&(0,V.jsxs)(`div`,{className:`perm`,children:[(0,V.jsx)(s.lock,{}),` `,b]}),f===`done`&&(0,V.jsxs)(`button`,{type:`button`,onClick:t,disabled:!t,style:{display:`flex`,alignItems:`center`,gap:8,color:`var(--insight)`,fontWeight:600,fontSize:14,marginTop:6,background:`none`,border:0,padding:0,textAlign:`left`,cursor:t?`pointer`:`default`},children:[(0,V.jsx)(s.check,{style:{width:18,height:18}}),` `,l,t&&(0,V.jsx)(`span`,{className:`open-app-hint`,children:`· open ↗`})]}),f===`error`&&(0,V.jsxs)(`div`,{className:`action-error`,children:[(0,V.jsx)(`span`,{className:`action-error-msg`,children:g}),(0,V.jsx)(`button`,{className:`btn-ghost`,style:{marginLeft:12},onClick:()=>{p(`idle`),_(``)},children:`Retry`})]}),f===`idle`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:x,children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` `,c]}),d&&d.length>0&&(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`editing`),children:`Edit first`})]}),f===`editing`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:()=>x(),children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` Confirm`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`idle`),children:`Cancel`})]}),f===`running`&&(0,V.jsx)(`div`,{className:`action-btns`,children:(0,V.jsxs)(`button`,{className:`btn-primary`,disabled:!0,children:[(0,V.jsx)(`span`,{className:`tiny-spin`}),` Working…`]})})]})}function Oe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,rings:r,footer:i,delay:a}){let o=s[t]||s.spark,c=`rs`+(0,R.useId)().replace(/:/g,``),l=2*Math.PI*52;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`ring-row`,children:r.map((e,t)=>{let n=Math.max(0,Math.min(1,e.pct)),r=e.color||`var(--presence)`;return(0,V.jsxs)(`div`,{className:`ring-item`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 130 130`,className:`ring-svg`,children:[(0,V.jsxs)(`defs`,{children:[(0,V.jsxs)(`linearGradient`,{id:`${c}g${t}`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.65`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:r})]}),(0,V.jsxs)(`filter`,{id:`${c}f${t}`,x:`-40%`,y:`-40%`,width:`180%`,height:`180%`,children:[(0,V.jsx)(`feGaussianBlur`,{stdDeviation:`3`,result:`b`}),(0,V.jsxs)(`feMerge`,{children:[(0,V.jsx)(`feMergeNode`,{in:`b`}),(0,V.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`var(--track)`,strokeWidth:`11`}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`url(#${c}g${t})`,strokeWidth:`11`,strokeLinecap:`round`,strokeDasharray:l,strokeDashoffset:l*(1-n),filter:`url(#${c}f${t})`,transform:`rotate(-90 65 65)`,className:`ring-arc`,"data-mark":t===0?`circle`:void 0}),(()=>{let t=String(e.display??``),n=t.length,r=Math.max(9,Math.min(25,Math.round(155/Math.max(1,n)))),i=n>10;return(0,V.jsx)(`text`,{x:`65`,y:e.unit?61:70,textAnchor:`middle`,className:`ring-val`,style:{fontSize:r},...i?{textLength:92,lengthAdjust:`spacingAndGlyphs`}:{},children:t})})(),e.unit&&(0,V.jsx)(`text`,{x:`65`,y:`80`,textAnchor:`middle`,className:`ring-unit`,children:e.unit})]}),(0,V.jsx)(`div`,{className:`ring-label`,children:e.label}),e.hint&&(0,V.jsx)(`div`,{className:`ring-hint`,children:e.hint})]},t)})}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:6},children:i})]})}function ke({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,bars:r,unit:i=``,goal:a,goalLabel:o,footer:c,conf:l,delay:u}){let d=s[t]||s.chart,f=Math.max(...r.map(e=>e.value),a||0)*1.05||1,p=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.value>r[t].value&&(t=n)}),t})(),m=i.trim(),g=m!==``&&(/^[$€£¥₹]/.test(m)||m===`%`||m.length<=2),_=g?``:m;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),_&&(0,V.jsx)(`div`,{className:`bars-unit`,children:_}),(0,V.jsxs)(`div`,{className:`bars-chart`,children:[(0,V.jsxs)(`div`,{className:`bars-plot`,children:[a!=null&&(0,V.jsx)(`div`,{className:`bars-goal`,style:{bottom:`${a/f*100}%`},children:(0,V.jsx)(`span`,{className:`bars-goal-label`,children:o||`Goal`})}),r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-col`,children:(0,V.jsx)(`div`,{className:`bar-fill`,"data-mark":t===p?`circle`:void 0,style:{height:`${e.value/f*100}%`,background:e.hot?`var(--warning)`:e.color||`var(--presence)`},children:(0,V.jsx)(`span`,{className:`bar-val tab-num`,children:e.label2||(g?D(e.value,i):O(e.value))})})},t))]}),(0,V.jsx)(`div`,{className:`bars-axis`,children:r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-label`,children:e.label},t))})]}),c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:c}),l&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:l,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ae({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,total:r,segments:i,footer:a,conf:o,delay:c}){let l=s[t]||s.layers,u=i.reduce((e,t)=>e+t.value,0)||1,d=i.reduce((e,t,n)=>t.value>i[e].value?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,V.jsx)(`div`,{className:`stack-total tab-num`,children:r}),(0,V.jsx)(`div`,{className:`stack-bar`,children:i.map((e,t)=>(0,V.jsx)(`div`,{className:`stack-seg`,title:`${e.label} · ${e.display}`,"data-mark":t===d?`circle`:void 0,style:{width:`${e.value/u*100}%`,background:e.color}},t))}),(0,V.jsx)(`div`,{className:`stack-legend`,children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`stack-leg`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`stack-leg-name`,children:e.label}),(0,V.jsx)(`span`,{className:`stack-leg-val tab-num`,children:e.display})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function je({title:e,icon:t=`chart`,iconColor:n=`var(--warning)`,points:r,xLabel:i,yLabel:a,xDomain:o,yDomain:c,trend:l,footer:u,delay:d}){let f=s[t]||s.chart,p={l:54,r:14,t:14,b:38},m=1/0,h=-1/0,g=1/0,_=-1/0;for(let e of r)e.x<m&&(m=e.x),e.x>h&&(h=e.x),e.y<g&&(g=e.y),e.y>_&&(_=e.y);let v=o||[m,h],y=c||[g,_],b=v[1]-v[0]||1,x=y[1]-y[0]||1,S=e=>p.l+(e-v[0])/b*(540-p.l-p.r),C=e=>p.t+(1-(e-y[0])/x)*(240-p.t-p.b),w=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.y>r[t].y&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`svg`,{viewBox:`0 0 540 240`,width:`100%`,style:{display:`block`,overflow:`visible`},children:[[0,.5,1].map((e,t)=>{let n=p.t+e*(240-p.t-p.b);return(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:n,y2:n,stroke:`var(--grid-line)`},t)}),(0,V.jsx)(`line`,{x1:p.l,x2:p.l,y1:p.t,y2:240-p.b,stroke:`var(--grid-strong)`}),(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:240-p.b,y2:240-p.b,stroke:`var(--grid-strong)`}),l&&(0,V.jsx)(`line`,{x1:S(l[0][0]),y1:C(l[0][1]),x2:S(l[1][0]),y2:C(l[1][1]),stroke:`var(--warning)`,strokeWidth:`2`,strokeDasharray:`5 5`,opacity:`0.7`}),r.map((e,t)=>(0,V.jsx)(`circle`,{cx:S(e.x),cy:C(e.y),r:e.hot?7:5.5,fill:e.hot?`var(--warning)`:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`,opacity:e.hot?1:.8,"data-mark":t===w?`circle`:void 0},t)),(0,V.jsx)(`text`,{x:540/2,y:234,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:i}),(0,V.jsx)(`text`,{x:0,y:0,transform:`translate(13, ${(p.t+240-p.b)/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:a})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:u})]})}function Me({title:e,icon:t=`clock`,iconColor:n=`var(--insight)`,cols:r,rows:i,levelColor:a,footer:o,legend:c,delay:l}){let u=s[t]||s.clock,d=0,f=0,p=-1;i.forEach((e,t)=>{e.cells.forEach((e,n)=>{let r=typeof e==`object`&&e?e.lvl??0:e??0;r!=null&&r>p&&(p=r,d=t,f=n)})});let m=e=>e==null?`var(--cell-empty)`:`color-mix(in oklab, ${a||`var(--presence)`} ${[.14,.34,.6,.92][Math.max(0,Math.min(3,e))]*100}%, transparent)`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`heat-wrap`,children:[r&&(0,V.jsxs)(`div`,{className:`heat-cols`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`}),r.map((e,t)=>(0,V.jsx)(`span`,{className:`heat-col-label`,children:e},t))]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`heat-row`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`,children:e.label}),e.cells.map((e,n)=>(0,V.jsx)(`span`,{className:`heat-cell`,title:e&&typeof e==`object`&&e.note?e.note:``,"data-mark":t===d&&n===f?`circle`:void 0,style:{background:m(typeof e==`object`&&e?e.lvl:e)},children:typeof e==`object`&&e&&e.mark?(0,V.jsx)(`span`,{className:`heat-mark`,children:e.mark}):null},n))]},t))]}),c&&(0,V.jsxs)(`div`,{className:`heat-legend`,children:[(0,V.jsx)(`span`,{className:`faint`,children:c[0]}),[0,1,2,3].map(e=>(0,V.jsx)(`span`,{className:`heat-cell sm`,style:{background:m(e)}},e)),(0,V.jsx)(`span`,{className:`faint`,children:c[1]})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function Ne({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence-soft)`,steps:r,footer:i,delay:a}){let o=s[t]||s.sparkle;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`flow`,children:r.map((e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flow-step`,style:{"--sc":e.color||`var(--presence)`},children:[(0,V.jsx)(`div`,{className:`flow-num`,"data-mark":t===0?`circle`:void 0,children:t+1}),(0,V.jsx)(`div`,{className:`flow-title`,children:e.title}),(0,V.jsx)(`div`,{className:`flow-sub`,children:e.sub})]}),t<r.length-1&&(0,V.jsx)(`div`,{className:`flow-arrow`,children:(0,V.jsx)(s.chevR,{})})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:i})]})}function Pe({title:e=`From the web`,live:t=!0,results:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.globe,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e,t&&(0,V.jsxs)(`span`,{className:`web-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`live`]})]}),(0,V.jsx)(`div`,{className:`web-list`,children:n.map((e,t)=>(0,V.jsxs)(`button`,{type:`button`,className:`web-result`,onClick:()=>c(`Opening `+e.domain+` →`),children:[(0,V.jsx)(`span`,{className:`web-fav`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`},children:(e.domain||`?`)[0].toUpperCase()}),(0,V.jsxs)(`span`,{className:`web-body`,children:[(0,V.jsx)(`span`,{className:`web-title`,children:e.title}),(0,V.jsxs)(`span`,{className:`web-url`,children:[e.domain,e.path||``]}),(0,V.jsx)(`span`,{className:`web-excerpt`,dangerouslySetInnerHTML:E(e.excerpt)})]}),(0,V.jsx)(s.external,{className:`web-ext`})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function Fe(e){let t=(0,z.c)(12),{item:n}=e,r=n.src??``,i;t[0]!==n.candidates||t[1]!==r?(i=[r,...n.candidates??[]].map(Le).filter(Ie),t[0]=n.candidates,t[1]=r,t[2]=i):i=t[2];let a=i,o;t[3]===n.fallbackSrc?o=t[4]:(o=k(n.fallbackSrc),t[3]=n.fallbackSrc,t[4]=o);let c=o,l=A(a),u=l.src??(a.length&&l.state===`none`?c:void 0);if(!u){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsx)(s.image,{className:`img-ph-ic`}),t[5]=e):e=t[5],e}let d;t[6]===c?d=t[7]:(d=e=>{let t=e.currentTarget;c&&t.src!==c&&(t.src=c)},t[6]=c,t[7]=d);let f;return t[8]!==n.label||t[9]!==u||t[10]!==d?(f=(0,V.jsx)(`img`,{className:`img-real`,src:u,alt:n.label,loading:`lazy`,referrerPolicy:`no-referrer`,onError:d}),t[8]=n.label,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}function Ie(e){return!!e}function Le(e){return k(e)}function Re({eyebrow:e=`From the web`,items:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.image,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`gallery`,children:t.map((e,t)=>{let n=()=>c(`Saved “`+e.label+`” to your notes`);return(0,V.jsxs)(`div`,{className:`img-tile`,role:`button`,tabIndex:0,"aria-label":`Save ${e.label} to your notes`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},style:{"--h1":e.h1||`#3a4a6e`,"--h2":e.h2||`#1a2236`,cursor:`pointer`},children:[(0,V.jsxs)(`span`,{className:`img-ph`,children:[(0,V.jsx)(Fe,{item:e}),e.tag&&(0,V.jsx)(`span`,{className:`img-tag`,children:e.tag}),e.source&&(0,V.jsx)(`span`,{className:`img-src`,children:e.source})]}),(0,V.jsx)(`span`,{className:`img-cap`,children:e.label})]},e.label+t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function ze({title:e=`What this change touches`,center:t,nodes:n,footer:r,delay:i}){let a=n.map((e,t)=>{let r=(-90+360/n.length*t)*Math.PI/180;return{...e,x:180+Math.cos(r)*74,y:125+Math.sin(r)*74*.86}}),o=Math.max(0,a.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`codemap`,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 360 250`,width:`100%`,style:{display:`block`},children:[a.map((e,t)=>(0,V.jsx)(`line`,{x1:180,y1:125,x2:e.x,y2:e.y,stroke:e.hot?`var(--warning)`:`var(--grid-strong)`,strokeWidth:e.hot?1.6:1,strokeDasharray:e.hot?`0`:`3 3`},t)),a.map((e,t)=>(0,V.jsxs)(`g`,{transform:`translate(${e.x} ${e.y})`,children:[(0,V.jsx)(`circle`,{r:`6`,fill:e.hot?`var(--warning)`:`var(--surface-elevated-2)`,stroke:e.hot?`var(--warning)`:`var(--line-strong)`,strokeWidth:`1.5`,"data-mark":t===o?`circle`:void 0}),(0,V.jsx)(`text`,{x:`0`,y:e.y>125?20:-12,textAnchor:`middle`,fontSize:`10.5`,fill:`var(--text-secondary)`,className:`mono`,children:e.label}),e.note&&(0,V.jsx)(`text`,{x:`0`,y:e.y>125?32:-24,textAnchor:`middle`,fontSize:`9`,fill:`var(--text-muted)`,children:e.note})]},t)),(0,V.jsxs)(`g`,{transform:`translate(180 125)`,children:[(0,V.jsx)(`circle`,{r:`11`,fill:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`}),(0,V.jsx)(`circle`,{r:`11`,fill:`none`,stroke:`var(--presence)`,strokeWidth:`1`,opacity:`0.4`,className:`codemap-pulse`}),(0,V.jsx)(`text`,{x:`0`,y:`28`,textAnchor:`middle`,fontSize:`11`,fontWeight:`600`,fill:`var(--text-primary)`,className:`mono`,children:t})]})]})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:r})]})}function Be(e){let t=(0,z.c)(32),{title:n,file:r,add:i,del:a,lines:o,footer:c,delay:l}=e,u=(l||0)+`ms`,d;t[0]===u?d=t[1]:(d={"--delay":u},t[0]=u,t[1]=d);let f=d,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,V.jsx)(s.edit,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=p):p=t[2];let m=n||`The change`,h;t[3]===m?h=t[4]:(h=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[p,` `,m]}),t[3]=m,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(s.doc,{style:{width:13,height:13}}),t[5]=g):g=t[5];let _;t[6]===r?_=t[7]:(_=(0,V.jsxs)(`span`,{className:`diff-file mono`,children:[g,` `,r]}),t[6]=r,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,V.jsxs)(`span`,{className:`add`,children:[`+`,i]}),t[8]=i,t[9]=v);let y;t[10]===a?y=t[11]:(y=(0,V.jsxs)(`span`,{className:`del`,children:[`−`,a]}),t[10]=a,t[11]=y);let b;t[12]!==y||t[13]!==v?(b=(0,V.jsxs)(`span`,{className:`diff-stat`,children:[v,` `,y]}),t[12]=y,t[13]=v,t[14]=b):b=t[14];let x;t[15]!==b||t[16]!==_?(x=(0,V.jsxs)(`div`,{className:`diff-head`,children:[_,b]}),t[15]=b,t[16]=_,t[17]=x):x=t[17];let S;t[18]===o?S=t[19]:(S=o.map(Ve),t[18]=o,t[19]=S);let C;t[20]===S?C=t[21]:(C=(0,V.jsx)(`div`,{className:`diff-body mono`,children:S}),t[20]=S,t[21]=C);let w;t[22]!==x||t[23]!==C?(w=(0,V.jsxs)(`div`,{className:`diff`,children:[x,C]}),t[22]=x,t[23]=C,t[24]=w):w=t[24];let T;t[25]===c?T=t[26]:(T=c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c}),t[25]=c,t[26]=T);let E;return t[27]!==w||t[28]!==T||t[29]!==f||t[30]!==h?(E=(0,V.jsxs)(`div`,{className:`card reveal`,style:f,children:[h,w,T]}),t[27]=w,t[28]=T,t[29]=f,t[30]=h,t[31]=E):E=t[31],E}function Ve(e,t){return(0,V.jsxs)(`div`,{className:`diff-line `+(e.t||`ctx`),children:[(0,V.jsx)(`span`,{className:`diff-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,V.jsx)(`span`,{className:`diff-code`,dangerouslySetInnerHTML:E(e.c)})]},t)}var He={pass:s.check,fail:s.x,skip:s.clock};function Ue({title:e=`Tests after the change`,summary:t,items:n,footer:r,delay:i}){let a=n.findIndex(e=>e.status===`fail`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.proof,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),t&&(0,V.jsx)(`div`,{className:`checks-summary`,children:t}),(0,V.jsx)(`div`,{className:`checks-list`,children:n.map((e,t)=>{let n=He[e.status]||s.check;return(0,V.jsxs)(`div`,{className:`check2-row `+e.status,children:[(0,V.jsx)(`span`,{className:`check2-ic`,"data-mark":t===a?`circle`:void 0,children:(0,V.jsx)(n,{})}),(0,V.jsx)(`span`,{className:`check2-name mono`,children:e.name}),e.note&&(0,V.jsx)(`span`,{className:`check2-note`,children:e.note})]},t)})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function We({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,size:r=132,thickness:i=18,rows:a,footer:o,conf:c,delay:l}){let u=s[t]||s.chart,d=r/2-i/2,f=2*Math.PI*d,p=0,m=a.map(e=>{let t=f*e.pct/100,n={len:t,off:-p,color:e.color};return p+=t,n}),g=a.reduce((e,t,n)=>t.pct>a[e].pct?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`donut-wrap`,children:[(0,V.jsx)(`svg`,{className:`donut`,viewBox:`0 0 ${r} ${r}`,width:r,height:r,children:(0,V.jsxs)(`g`,{transform:`rotate(-90 ${r/2} ${r/2})`,children:[(0,V.jsx)(`circle`,{cx:r/2,cy:r/2,r:d,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:i}),m.map((e,t)=>(0,V.jsx)(`circle`,{className:`donut-seg`,cx:r/2,cy:r/2,r:d,fill:`none`,stroke:e.color,strokeWidth:i,strokeLinecap:`butt`,strokeDasharray:`${Math.max(0,e.len-1.5)} ${f-Math.max(0,e.len-1.5)}`,strokeDashoffset:e.off,"data-mark":t===g?`circle`:void 0},t))]})}),(0,V.jsx)(`ul`,{className:`donut-legend`,children:a.map((e,t)=>(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`i`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`dl-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`dl-pct tab-num`,children:[e.pct,`%`]})]},t))})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o}),c&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:c,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ge({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,value:r,max:i=100,size:a=116,color:o,band:c,driver:l,footer:u,conf:d,delay:f}){let p=s[t]||s.spark,m=a/2-10,g=Math.max(0,Math.min(1,r/i)),_=o||(r>=40?`var(--warning)`:`var(--insight)`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`risk-wrap`,children:[(0,V.jsxs)(`div`,{className:`gauge-host`,children:[(0,V.jsxs)(`svg`,{className:`gauge`,viewBox:`0 0 ${a} ${a}`,width:a,height:a,children:[(0,V.jsx)(`circle`,{cx:a/2,cy:a/2,r:m,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:`9`}),(0,V.jsx)(`circle`,{className:`gauge-arc`,cx:a/2,cy:a/2,r:m,fill:`none`,stroke:_,strokeWidth:`9`,strokeLinecap:`round`,pathLength:1,strokeDasharray:1,strokeDashoffset:1-g,transform:`rotate(-90 ${a/2} ${a/2})`})]}),(0,V.jsxs)(`div`,{className:`gauge-center`,children:[(0,V.jsx)(`div`,{className:`gauge-num tab-num`,"data-mark":`underline`,style:{color:_},children:r}),c&&(0,V.jsx)(`div`,{className:`gauge-band`,children:c})]})]}),l&&(0,V.jsx)(`p`,{className:`risk-driver`,dangerouslySetInnerHTML:E(l)})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u}),d&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:d,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ke({title:e=`Around the league`,icon:t=`bell`,iconColor:n=`var(--presence-soft)`,games:r,footer:i,delay:a}){let o=s[t]||s.bell,c=Math.max(0,r.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`score-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`game`+(e.hot?` hot`:``),"data-mark":t===c?`circle`:void 0,style:{"--ti":t},children:[(0,V.jsxs)(`div`,{className:`g-rows`,children:[(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.away}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.as})]}),(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.home}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.hs})]})]}),(0,V.jsxs)(`span`,{className:`g-status`+(e.hot?` live`:``),children:[e.hot&&(0,V.jsx)(`span`,{className:`live-dot`}),e.status]})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function qe({title:e=`Standings`,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.table;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`stand-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`stand`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`stand-rank`,children:t+1}),(0,V.jsx)(`span`,{className:`stand-team`,"data-mark":t===0?`underline`:void 0,children:e.team}),(0,V.jsx)(`span`,{className:`stand-rec tab-num`,children:e.rec}),(0,V.jsx)(`span`,{className:`stand-gb tab-num`,children:e.gb})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Je({title:e=`By stage`,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,headline:r,sub:i,unit:a=`$`,suffix:o=`M`,stages:c,footer:l,delay:u}){let d=s[t]||s.layers,f=Math.max(1,...c.map(e=>e.v)),p=c.reduce((e,t,n)=>t.v>c[e].v?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,V.jsxs)(`div`,{className:`stat-row`,children:[r&&(0,V.jsx)(`div`,{className:`big-stat tab-num`,style:{color:`var(--presence)`},children:r}),i&&(0,V.jsx)(`span`,{className:`delta accent`,children:i})]}),(0,V.jsx)(`ul`,{className:`funnel`,children:c.map((e,t)=>(0,V.jsxs)(`li`,{className:`funnel-row`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`funnel-label`,children:e.k}),(0,V.jsx)(`span`,{className:`funnel-track`,children:(0,V.jsx)(`span`,{className:`funnel-fill`,"data-mark":t===p?`circle`:void 0,style:{width:e.v/f*100+`%`}})}),(0,V.jsxs)(`span`,{className:`funnel-val tab-num`,children:[a,e.v,o]})]},t))}),l&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:l})]})}function Ye(e){return e===4?2:Math.min(Math.max(e,1),3)}function Xe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,cols:r,kpis:i,footer:a,conf:o,delay:c}){let l=s[t]||s.spark;return(0,V.jsxs)(`div`,{className:`card reveal kpi-card`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`kpi-grid`,style:{"--kpi-cols":r??Ye(i.length)},children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`kpi`,children:[(0,V.jsx)(`div`,{className:`kpi-val tab-num`,"data-mark":t===0?`underline`:void 0,style:e.color?{color:e.color}:void 0,children:e.val}),(0,V.jsx)(`div`,{className:`kpi-label`,children:e.label})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ze({title:e=`What customers are saying`,icon:t=`quote`,iconColor:n=`var(--presence-soft)`,quotes:r,footer:i,delay:a}){let o=s[t]||s.quote;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`quote-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`quote-item q-`+(e.tone||`neutral`),style:{"--ti":t},children:[(0,V.jsxs)(`p`,{className:`quote-text`,children:[`“`,e.text,`”`]}),(0,V.jsx)(`span`,{className:`quote-who`,children:e.who})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Qe({title:e=`Plan`,icon:t=`check`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.check,c=(()=>{let e=r.findIndex(e=>e.st===`doing`);return e>=0?e:r.findIndex(e=>e.st===`todo`)})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`plan-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`plan-row st-`+e.st,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`plan-check`,"data-mark":t===c?`circle`:void 0,children:e.st===`done`?(0,V.jsx)(s.check,{style:{width:12,height:12}}):e.st===`doing`?(0,V.jsx)(`span`,{className:`plan-dot`}):null}),(0,V.jsx)(`span`,{className:`plan-t`,children:e.t})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function $e({title:e=`What I learned about you`,items:t,conf:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.sparkle,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`understand-list`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`understand-row`,children:[(0,V.jsx)(`span`,{className:`understand-check`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{className:`understand-text`,"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e.text)}),(0,V.jsxs)(`span`,{className:`understand-meta`,children:[e.source&&(0,V.jsx)(l,{file:e.source}),(0,V.jsx)(`button`,{className:`understand-edit`,title:`Fix this`,type:`button`,onClick:()=>c(`Tell Mavéa what's off — it'll adjust`,`info`),children:(0,V.jsx)(s.edit,{})})]})]},t))}),(0,V.jsxs)(`div`,{className:`card-foot`,style:{marginTop:14},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5},children:`Read straight from your site — correct anything.`}),n&&(0,V.jsx)(h,{level:n,title:t.some(e=>e.source)?void 0:`Best estimate from the model's knowledge — not verified`})]})]})}function et({title:e=`The data model`,entities:t,relations:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`schema`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity`,style:{"--ec":e.color||`var(--presence)`},children:[(0,V.jsxs)(`div`,{className:`entity-head`,children:[(0,V.jsx)(s.table,{style:{width:13,height:13}}),` `,e.name,e.badge&&(0,V.jsx)(`span`,{className:`entity-badge`,children:e.badge})]}),(0,V.jsx)(`div`,{className:`entity-fields`,children:e.fields.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity-field`,children:[(0,V.jsx)(`span`,{className:`ef-key`+(e.key?` is-key`:``),children:e.name}),(0,V.jsx)(`span`,{className:`ef-type`,children:e.type})]},t))})]},t))}),n&&(0,V.jsx)(`div`,{className:`relations`,children:n.map((e,t)=>(0,V.jsxs)(`span`,{className:`relation`,children:[(0,V.jsx)(`b`,{children:e.from}),` `,e.label,` `,(0,V.jsx)(`b`,{children:e.to})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}var tt={dashboard:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w60`}),(0,V.jsxs)(`div`,{className:`wgrid`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]}),(0,V.jsx)(`span`,{className:`wbar`})]}),table:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]}),board:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsxs)(`div`,{className:`wcols`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]})]}),detail:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w50`}),(0,V.jsx)(`span`,{className:`wblock`}),(0,V.jsx)(`span`,{className:`wl w70`}),(0,V.jsx)(`span`,{className:`wl w50`})]}),list:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]})};function nt({title:e=`The screens you'll get`,screens:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`screenmap`,children:t.map((e,t)=>{let n=()=>c(`Opening `+e.name+` — you can rename or reorder`,`info`);return(0,V.jsxs)(`div`,{className:`screen-thumb`,role:`button`,tabIndex:0,"aria-label":`Open ${e.name}`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},children:[(0,V.jsx)(`div`,{className:`screen-wire`,children:tt[e.kind]||tt.table}),(0,V.jsx)(`figcaption`,{children:e.name})]},t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function rt({title:e=`Building it`,steps:t,footer:n,delay:r}){let[i,a]=(0,R.useState)(0),o=t.filter(e=>e.status===`active`).length;(0,R.useEffect)(()=>{if(o===0)return;let e=(r||0)+1400,t=Array.from({length:o},(t,n)=>setTimeout(()=>a(e=>Math.max(e,n+1)),e+n*900));return()=>t.forEach(clearTimeout)},[o,r]);let c=0,l=t.map(e=>{if(e.status!==`active`)return e;let t=c<i;return c+=1,t?{...e,status:`done`}:e}),u=l.findIndex(e=>e.status===`active`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`buildsteps`,children:l.map((e,t)=>(0,V.jsxs)(`div`,{className:`buildstep `+(e.status||`done`),children:[(0,V.jsx)(`span`,{className:`buildstep-ic`,"data-mark":t===u?`circle`:void 0,children:e.status===`active`?(0,V.jsx)(`span`,{className:`tiny-spin`}):e.status===`todo`?(0,V.jsx)(`span`,{className:`bs-dot`}):(0,V.jsx)(s.check,{})}),(0,V.jsxs)(`span`,{className:`buildstep-body`,children:[(0,V.jsx)(`span`,{className:`buildstep-label`,children:e.label}),e.sub&&(0,V.jsx)(`span`,{className:`buildstep-sub`,children:e.sub})]})]},t))}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function it({app:e,seededFrom:t,nav:n,stages:r,rows:i,kpis:a,columns:o,groupColumns:c=[`Group`,`Items`,`Total`],pipelineLabel:l=`Pipeline by stage`,agg:u=`money`,createdNote:d=`created this with Mavéa`,activities:f,footer:p,delay:m}){let[h,g]=(0,R.useState)(n[0]?.label||``),_=n.find(e=>e.label===h)||n[0],v=e=>u===`money`?`$`+Math.round(e/1e3)+`k`:e.toLocaleString(),y=i.reduce((e,t)=>e+(t.amt||0),0),b=new Map,x=new Map;for(let e of i){let t=b.get(e.group)??{count:0,value:0,color:e.color};t.count+=1,t.value+=e.amt||0,b.set(e.group,t),x.set(e.stage,(x.get(e.stage)??0)+1)}let S=Array.from(b,([e,t])=>({name:e,...t})),C=r.reduce((e,t)=>Math.max(e,x.get(t.key)??0),1),w=f||[],T=({s:e})=>(0,V.jsx)(`span`,{className:`at-stage `+(r.find(t=>t.key===e)||r[0]).kind,children:e});return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.external,{className:`ic`,style:{color:`var(--insight)`}}),` Live preview · your app`,(0,V.jsxs)(`span`,{className:`preview-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`working`]})]}),(0,V.jsxs)(`div`,{className:`appframe`,children:[(0,V.jsxs)(`div`,{className:`appframe-bar`,children:[(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsxs)(`span`,{className:`afurl mono`,children:[e.toLowerCase().replace(/\s+/g,`-`),`.mavea.app`]})]}),(0,V.jsxs)(`div`,{className:`appframe-body`,children:[(0,V.jsxs)(`div`,{className:`appnav`,children:[(0,V.jsx)(`div`,{className:`appnav-brand`,children:e}),n.map((e,t)=>(0,V.jsx)(`button`,{className:`appnav-item`+(h===e.label?` on`:``),type:`button`,onClick:()=>g(e.label),children:e.label},t))]}),(0,V.jsxs)(`div`,{className:`appmain`,children:[(0,V.jsxs)(`div`,{className:`appmain-top`,children:[(0,V.jsx)(`span`,{className:`appmain-title`,children:_?.label}),_?.view===`dashboard`&&t&&(0,V.jsx)(`span`,{className:`appmain-sub`,children:t})]}),_?.view===`dashboard`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`appkpis`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{className:`appkpi`,children:[(0,V.jsx)(`span`,{className:`appkpi-v tab-num`,children:e.v}),(0,V.jsx)(`span`,{className:`appkpi-k`,children:e.k})]},t))}),(0,V.jsxs)(`div`,{className:`appdash`,children:[(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:l}),r.map((e,t)=>{let n=i.filter(t=>t.stage===e.key),r=n.reduce((e,t)=>e+(t.amt||0),0),a=Math.round(y?r/y*100:n.length/C*100);return(0,V.jsxs)(`div`,{className:`apppipe`,children:[(0,V.jsxs)(`span`,{className:`apppipe-l`,children:[e.key,` `,(0,V.jsxs)(`span`,{className:`faint`,children:[`· `,n.length]})]}),(0,V.jsx)(`span`,{className:`apppipe-bar`,children:(0,V.jsx)(`i`,{style:{width:Math.max(6,a)+`%`,background:e.color}})}),(0,V.jsx)(`span`,{className:`apppipe-v tab-num`,children:y?v(r):n.length})]},t)})]}),(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:`Recent activity`}),w.map((e,t)=>(0,V.jsxs)(`div`,{className:`appact`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))]})]})]}),_?.view===`table`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head`,children:[(0,V.jsx)(`span`,{children:o[0]}),(0,V.jsx)(`span`,{children:o[1]}),(0,V.jsx)(`span`,{children:o[2]}),(0,V.jsx)(`span`,{className:`ta-r`,children:o[3]})]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.group}),(0,V.jsx)(`span`,{children:(0,V.jsx)(T,{s:e.stage})}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:e.value})]},t))]}),_?.view===`board`&&(0,V.jsx)(`div`,{className:`appboard`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`appcol`,children:[(0,V.jsxs)(`div`,{className:`appcol-h`,children:[(0,V.jsx)(`span`,{className:`appcol-dot`,style:{background:e.color}}),e.key,(0,V.jsx)(`span`,{className:`faint`,children:i.filter(t=>t.stage===e.key).length})]}),i.filter(t=>t.stage===e.key).map((e,t)=>(0,V.jsxs)(`div`,{className:`appdeal`,children:[(0,V.jsx)(`div`,{className:`appdeal-n`,children:e.name}),(0,V.jsxs)(`div`,{className:`appdeal-m`,children:[e.group,` · `,(0,V.jsx)(`span`,{className:`tab-num`,children:e.value})]})]},t))]},t))}),_?.view===`group`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head threecol`,children:[(0,V.jsx)(`span`,{children:c[0]}),(0,V.jsx)(`span`,{children:c[1]}),(0,V.jsx)(`span`,{className:`ta-r`,children:c[2]})]}),S.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row threecol`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.count}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:v(e.value)})]},t))]}),_?.view===`activity`&&(0,V.jsx)(`div`,{className:`appactivity`,children:w.concat([{who:`You`,what:d,when:`just now`,color:`var(--presence-deep)`}]).map((e,t)=>(0,V.jsxs)(`div`,{className:`appact row`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))})]})]})]}),p&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function at(e){return e>=1100?12:e>=820?9:e>=580?6:4}var ot=e=>{let t=M[e.type??``],n=e.col;return n===void 0?t:t?{...t,pref:n}:{pref:n}};function st(e,t){if(e.length===0)return e;try{return j(e,ot,t)}catch{return e}}function ct(e,t){let n=(0,z.c)(9),[r,i]=(0,R.useState)(lt),a,o;n[0]===t?(a=n[1],o=n[2]):(a=()=>{let e=t.current;if(!e||typeof ResizeObserver>`u`)return;let n=0,r=new ResizeObserver(t=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let n=t[0]?.contentRect.width??e.offsetWidth;i(e=>{let t=at(n);return e===t?e:t})})});r.observe(e);let a=at(e.offsetWidth);return i(e=>e===a?e:a),()=>{cancelAnimationFrame(n),r.disconnect()}},o=[t],n[0]=t,n[1]=a,n[2]=o),(0,R.useLayoutEffect)(a,o);let s;try{let t;n[3]!==e||n[4]!==r?(t=j(e,ot,r),n[3]=e,n[4]=r,n[5]=t):t=n[5],s=t}catch{s=e}let c=s,l;return n[6]!==r||n[7]!==c?(l={displayBlocks:c,budget:r},n[6]=r,n[7]=c,n[8]=l):l=n[8],l}function lt(){return typeof window<`u`?at(window.innerWidth):12}var ut=new Set([`auto`,`scroll`]);function dt(e){let t=(e.closest(`.card`)?.querySelector(`.card-eyebrow, h1, h2, h3, [role="heading"]`)?.textContent)?.trim().replace(/\s+/g,` `).slice(0,100);return t?`Scrollable content: ${t}`:`Scrollable card content`}function ft(e,t){let n=(0,z.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t)return;let n=new Map,r=0,i=e=>n.has(e)||e.scrollWidth<=e.clientWidth+8?!1:ut.has(getComputedStyle(e).overflowX),a=e=>{let t=e.hasAttribute(`tabindex`),r=e.hasAttribute(`role`),i=e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`);t||(e.tabIndex=0),r||e.setAttribute(`role`,`region`),i||e.setAttribute(`aria-label`,dt(e)),e.classList.add(`canvas-hscroll`);let a=()=>{let t=e.scrollLeft+e.clientWidth>=e.scrollWidth-2;e.classList.toggle(`canvas-hscroll--end`,t)};a(),e.addEventListener(`scroll`,a,{passive:!0}),n.set(e,()=>{e.removeEventListener(`scroll`,a),e.classList.remove(`canvas-hscroll`,`canvas-hscroll--end`),t||e.removeAttribute(`tabindex`),r||e.removeAttribute(`role`),i||e.removeAttribute(`aria-label`)})},o=()=>{r=0;let e=[];for(let n of t.querySelectorAll(`*`))i(n)&&e.push(n);for(let t of e)a(t)},s=()=>{r||=requestAnimationFrame(o)};s();let c=window.setTimeout(s,700),l=typeof MutationObserver>`u`?null:new MutationObserver(s);l?.observe(t,{childList:!0,subtree:!0});let u=typeof ResizeObserver>`u`?null:new ResizeObserver(s);return u?.observe(t),()=>{r&&cancelAnimationFrame(r),clearTimeout(c),l?.disconnect(),u?.disconnect();for(let e of n.values())e()}},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,R.useEffect)(r,i)}var pt=/…\s*$/u,mt=0;function ht(e){return(e??``).replace(/\s+/g,` `).trim()}var gt=/\S/u;function _t(e){let t=new Map,n=e=>{if(e.tagName.toLowerCase()===`title`)return t.set(e,``),``;let r=``;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE?r+=`${t.textContent??``} `:t instanceof Element&&(r+=`${n(t)} `);return t.set(e,r),r};return n(e),t}function vt(e,t){let n=t.textOverflow===`ellipsis`&&t.whiteSpace.includes(`nowrap`)&&e.scrollWidth>e.clientWidth+1,r=t.webkitLineClamp||t.getPropertyValue(`-webkit-line-clamp`),i=Number.parseInt(r,10),a=Number.isFinite(i)&&i>0&&e.scrollHeight>e.clientHeight+2;return n||a}function yt(e){let t=[...e.children].find(e=>e.tagName.toLowerCase()===`title`);return ht(e.getAttribute(`data-full-text`)||e.getAttribute(`title`)||t?.textContent||e.getAttribute(`aria-label`))}function bt(e,t,n){let r=yt(e)||(n?t:``),i=e;if(!r||r===t){let n=e.parentElement,a=n?yt(n):``;a&&a!==t&&(r=a,i=n)}return!r||!n&&(r===t||r.length<=t.replace(pt,``).length)||!(i instanceof HTMLElement)&&!(i instanceof SVGElement)?null:{target:i,full:r}}function xt(e){return e.matches(`button, a[href], input, select, textarea, summary, [contenteditable="true"]`)}function St(e,t){if(e.hasAttribute(`data-semantic-ellipsis`))return null;let n=t.get(e)??``;if(!gt.test(n))return null;let r=getComputedStyle(e);if(r.visibility===`hidden`||parseFloat(r.opacity)===0)return null;let i=ht(n),a=e instanceof HTMLElement&&vt(e,r);if(!pt.test(i)&&!a)return null;let o=bt(e,i,a);return o?{source:e,...o}:null}function Ct(e,t){(0,R.useEffect)(()=>{let t=e.current;if(!t)return;let n=`canvas-text-disclosure-${++mt}`,r=document.createElement(`div`);r.id=n,r.className=`canvas-text-popover`,r.setAttribute(`role`,`tooltip`),r.hidden=!0,document.body.appendChild(r);let i=new Map,a=new Set,o=null,s=0,c=0,l=e=>{let t=e.getBoundingClientRect();r.style.maxWidth=`${Math.max(180,Math.min(420,window.innerWidth-24))}px`,r.style.left=`0px`,r.style.top=`0px`;let n=r.getBoundingClientRect(),i=Math.min(window.innerWidth-n.width-12,Math.max(12,t.left)),a=t.top-n.height-8,o=a>=12?a:Math.min(window.innerHeight-n.height-12,t.bottom+8);r.style.left=`${Math.round(i)}px`,r.style.top=`${Math.round(Math.max(12,o))}px`},u=()=>{c&&window.clearTimeout(c),c=0,o?.removeAttribute(`data-text-disclosure-active`),o=null,r.hidden=!0},d=(e,t)=>{c&&window.clearTimeout(c),o?.removeAttribute(`data-text-disclosure-active`),o=e,e.setAttribute(`data-text-disclosure-active`,`true`),r.textContent=t,r.hidden=!1,l(e)},f=({source:e,target:t,full:r})=>{if(e.setAttribute(`data-text-disclosure`,`true`),a.add(e),i.has(t))return;let s=t.hasAttribute(`tabindex`),l=t.hasAttribute(`role`),f=t.getAttribute(`aria-label`),p=t.getAttribute(`aria-describedby`);s||t.setAttribute(`tabindex`,`0`),!l&&!xt(t)&&t.setAttribute(`role`,`button`),f||t.setAttribute(`aria-label`,r);let m=new Set(ht(p).split(` `).filter(Boolean));m.add(n),t.setAttribute(`aria-describedby`,[...m].join(` `)),t.setAttribute(`data-text-disclosure`,`true`);let h=()=>d(t,r),g=()=>{c=window.setTimeout(u,120)},_=()=>o===t?u():d(t,r),v=e=>{let n=e.key;n===`Escape`&&u(),(n===`Enter`||n===` `)&&!xt(t)&&(e.preventDefault(),d(t,r))};t.addEventListener(`pointerenter`,h),t.addEventListener(`pointerleave`,g),t.addEventListener(`focus`,h),t.addEventListener(`blur`,g),t.addEventListener(`click`,_),t.addEventListener(`keydown`,v),i.set(t,()=>{t.removeEventListener(`pointerenter`,h),t.removeEventListener(`pointerleave`,g),t.removeEventListener(`focus`,h),t.removeEventListener(`blur`,g),t.removeEventListener(`click`,_),t.removeEventListener(`keydown`,v),t.removeAttribute(`data-text-disclosure`),t.removeAttribute(`data-text-disclosure-active`),s||t.removeAttribute(`tabindex`),l||t.removeAttribute(`role`),f||t.removeAttribute(`aria-label`),p===null?t.removeAttribute(`aria-describedby`):t.setAttribute(`aria-describedby`,p)})},p=()=>{s=0;let e=_t(t),n=[];for(let r of t.querySelectorAll(`*`)){let t=St(r,e);t&&n.push(t)}for(let e of n)f(e)},m=()=>{s||=requestAnimationFrame(p)},h=e=>{o&&!o.contains(e.target)&&u()},g=()=>{o&&!r.hidden&&l(o)};m();let _=window.setTimeout(m,700),v=typeof MutationObserver>`u`?null:new MutationObserver(m);v?.observe(t,{childList:!0,subtree:!0});let y=typeof ResizeObserver>`u`?null:new ResizeObserver(m);return y?.observe(t),document.addEventListener(`pointerdown`,h,!0),window.addEventListener(`resize`,g,{passive:!0}),window.addEventListener(`scroll`,g,{passive:!0,capture:!0}),()=>{s&&cancelAnimationFrame(s),c&&window.clearTimeout(c),clearTimeout(_),v?.disconnect(),y?.disconnect(),document.removeEventListener(`pointerdown`,h,!0),window.removeEventListener(`resize`,g),window.removeEventListener(`scroll`,g,!0);for(let e of i.values())e();for(let e of a)e.removeAttribute(`data-text-disclosure`);r.remove()}},[e,t])}function wt(e){if(!e)return;let t=e.parentElement;if(!t)return;let n=()=>{let n=Math.ceil(e.getBoundingClientRect().width);n>0&&t.style.setProperty(`--block-actions-w`,`${n+18}px`)};return n(),B(e,n)}function Tt(e){return e.some(e=>typeof e.section==`string`&&e.section.trim()!==``)}function Et(e){if(!Tt(e))return[{label:``,order:0,standard:e.slice(),deeper:[]}];let t=0,n=new Map;for(let r of e){let e=r.section,i=(typeof e==`string`?e.trim():``)||`__ungrouped__`;if(!n.has(i)){let e=typeof r.order==`number`?r.order:0;n.set(i,{ord:e||++t,standard:[],deeper:[]})}let a=n.get(i),o=r.depth;(typeof o==`number`?o:1)>=2?a.deeper.push(r):a.standard.push(r)}let r=[];for(let[e,t]of n)t.standard.length===0&&t.deeper.length>0&&t.standard.push(t.deeper.shift()),r.push({label:e===`__ungrouped__`?``:e,order:t.ord,standard:t.standard,deeper:t.deeper});return r.sort((e,t)=>e.order-t.order),r}function Dt(e){let t=(0,z.c)(25),{section:n,renderCard:r,readingMode:i}=e,[a,o]=(0,R.useState)(!1),c=i||a,l=n.deeper.length>0,u=`depth-drawer-${n.order}`,d;t[0]!==u||t[1]!==l||t[2]!==c||t[3]!==n.deeper.length||t[4]!==n.label||t[5]!==n.order?(d=n.label&&(0,V.jsxs)(`div`,{className:`depth-section-header`,children:[n.order>0&&(0,V.jsx)(`span`,{className:`depth-section-num`,"aria-hidden":`true`,children:n.order}),(0,V.jsx)(`span`,{className:`depth-section-label`,children:n.label}),l&&(0,V.jsxs)(`button`,{type:`button`,className:`depth-go-deeper`+(c?` is-open`:``),"aria-expanded":c,"aria-controls":u,onClick:()=>o(Ot),children:[(0,V.jsx)(s.arrowDown,{className:`depth-deeper-icon`,"aria-hidden":`true`}),`Go deeper`,(0,V.jsxs)(`span`,{className:`depth-deeper-count`,children:[`(`,n.deeper.length,`)`]})]})]}),t[0]=u,t[1]=l,t[2]=c,t[3]=n.deeper.length,t[4]=n.label,t[5]=n.order,t[6]=d):d=t[6];let f;if(t[7]!==r||t[8]!==n.standard){let e;t[10]===r?e=t[11]:(e=(e,t)=>r(e,t),t[10]=r,t[11]=e),f=n.standard.map(e),t[7]=r,t[8]=n.standard,t[9]=f}else f=t[9];let p;t[12]===f?p=t[13]:(p=(0,V.jsx)(`div`,{className:`card-grid`,children:f}),t[12]=f,t[13]=p);let m;t[14]!==u||t[15]!==l||t[16]!==c||t[17]!==r||t[18]!==n.deeper||t[19]!==n.standard.length?(m=l&&(0,V.jsx)(`div`,{className:`depth-drawer`+(c?` is-open`:``),id:u,"aria-hidden":!c,children:(0,V.jsx)(`div`,{className:`depth-drawer-inner`,children:(0,V.jsx)(`div`,{className:`card-grid depth-drawer-grid`,children:n.deeper.map((e,t)=>r(e,n.standard.length+t))})})}),t[14]=u,t[15]=l,t[16]=c,t[17]=r,t[18]=n.deeper,t[19]=n.standard.length,t[20]=m):m=t[20];let h;return t[21]!==d||t[22]!==p||t[23]!==m?(h=(0,V.jsxs)(`div`,{className:`depth-section`,children:[d,p,m]}),t[21]=d,t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function Ot(e){return!e}function kt(e){let t=(0,z.c)(33),{bend:n}=e,[r,i]=(0,R.useState)(n.param.value),a=n.param.unit??``,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(`span`,{className:`bend-kicker`,children:`BEND IT`}),t[0]=o):o=t[0];let s;t[1]===n.label?s=t[2]:(s=(0,V.jsx)(`span`,{className:`bend-label`,children:n.label}),t[1]=n.label,t[2]=s);let c;t[3]===r?c=t[4]:(c=N(r),t[3]=r,t[4]=c);let l;t[5]===a?l=t[6]:(l=a&&(0,V.jsx)(`em`,{children:a}),t[5]=a,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,V.jsxs)(`span`,{className:`bend-value`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]!==s||t[11]!==u?(d=(0,V.jsxs)(`div`,{className:`bend-head`,children:[o,s,u]}),t[10]=s,t[11]=u,t[12]=d):d=t[12];let f;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>i(Number(e.target.value)),t[13]=f):f=t[13];let p=`Bend ${n.label}`,m;t[14]!==n.param.max||t[15]!==n.param.min||t[16]!==n.param.step||t[17]!==p||t[18]!==r?(m=(0,V.jsx)(`input`,{className:`bend-slider`,type:`range`,min:n.param.min,max:n.param.max,step:n.param.step,value:r,onChange:f,"aria-label":p}),t[14]=n.param.max,t[15]=n.param.min,t[16]=n.param.step,t[17]=p,t[18]=r,t[19]=m):m=t[19];let h;if(t[20]!==n.label||t[21]!==n.outputs||t[22]!==r){let e;t[24]!==n.label||t[25]!==r?(e=e=>{let t=P(e.formula,r);return t===null?null:(0,V.jsxs)(`li`,{title:`= ${e.formula.replaceAll(`x`,`(${n.label})`)}`,children:[(0,V.jsx)(`span`,{className:`bend-out-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`bend-out-value`,children:[N(t),e.unit&&(0,V.jsx)(`em`,{children:e.unit})]})]},e.label)},t[24]=n.label,t[25]=r,t[26]=e):e=t[26],h=n.outputs.map(e),t[20]=n.label,t[21]=n.outputs,t[22]=r,t[23]=h}else h=t[23];let g;t[27]===h?g=t[28]:(g=(0,V.jsx)(`ul`,{className:`bend-outputs`,children:h}),t[27]=h,t[28]=g);let _;return t[29]!==g||t[30]!==d||t[31]!==m?(_=(0,V.jsxs)(`div`,{className:`bend-strip`,"data-bend":!0,children:[d,m,g]}),t[29]=g,t[30]=d,t[31]=m,t[32]=_):_=t[32],_}var At=15e3,jt=5e3;async function Mt(e,t){let n=F(e);if(!n)return{ok:!1,detail:`Unknown action: ${e}`};for(let e of n.params)if(e.required&&!(t[e.name]??``).trim())return{ok:!1,detail:`Missing required field: ${e.name}`};try{let r=JSON.stringify({args:t}),i=await I(`/actions/confirm`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({id:e,args:t})},jt),a=await i.json().catch(()=>({}));if(!i.ok||!a.confirmationToken)return{ok:!1,detail:a.detail||`The action confirmation expired. Please try again.`};let o=await I(`/actions/${encodeURIComponent(e)}`,{method:`POST`,headers:{"content-type":`application/json`,"x-action-confirmation":a.confirmationToken},body:r},At),s=await o.json().catch(()=>({}));return o.ok?{ok:!0,detail:s.detail||`${n.label} — done.`}:{ok:!1,detail:s.detail||`The ${n.mcp} action didn't go through (${o.status}).`}}catch{return{ok:!1,detail:`Couldn't reach the ${n.mcp} connector — is it set up in this deployment?`}}}function Nt({id:e,label:t,args:n={},delay:r=0}){let i=F(e),[a,o]=(0,R.useState)(`idle`),[s,c]=(0,R.useState)(``);if(!i)return null;let l={};for(let[e,t]of Object.entries(n))l[e]=typeof t==`string`?t:t==null?``:String(t);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{animationDelay:`${r}ms`},children:[(0,V.jsx)(`div`,{className:`card-eyebrow`,children:i.label}),(0,V.jsx)(`div`,{style:{fontWeight:600,fontSize:15,marginBottom:10},children:t||i.desc}),(0,V.jsx)(`dl`,{style:{margin:`0 0 12px`,display:`grid`,gap:4},children:i.params.map(e=>{let t=l[e.name];return t?(0,V.jsxs)(`div`,{style:{display:`flex`,gap:8,fontSize:13},children:[(0,V.jsx)(`dt`,{className:`faint`,style:{minWidth:84},children:e.name}),(0,V.jsx)(`dd`,{style:{margin:0},children:t})]},e.name):null})}),a===`done`?(0,V.jsxs)(`div`,{style:{fontSize:13,color:`var(--insight)`},children:[`✓ `,s]}):a===`error`?(0,V.jsx)(`div`,{style:{fontSize:13,color:`var(--warning)`},children:s}):(0,V.jsx)(`button`,{className:`entry-action`,onClick:async()=>{o(`running`);let t=await Mt(e,l);c(t.detail),o(t.ok?`done`:`error`)},disabled:a===`running`,style:{fontSize:13},children:a===`running`?`Working…`:i.cta}),(0,V.jsx)(`div`,{className:`faint`,style:{fontSize:11.5,marginTop:8},children:`Review before confirming. You are responsible for recipients, account changes, irreversible effects, provider terms, charges, and other consequences.`})]})}var Pt=6;function Ft(e,t){return e?.find(e=>e.key===t)}function It(e,t){return!e||e.kind!==`card`?!1:!e.accepts||e.accepts.includes(t)}function Lt(e,t,n){let[r,i]=(0,R.useState)(null),a=(0,R.useRef)(null),o=(0,R.useRef)(null),s=(0,R.useRef)(e);s.current=e;let c=(0,R.useRef)(t);c.current=t;let l=(0,R.useRef)(n);l.current=n;let u=()=>{o.current?.classList.remove(`is-drop-target`),o.current=null},d=(e,t,n)=>{let r=document.elementFromPoint(e,t)?.closest(`[data-blank-key]`)??null,i=r?.getAttribute(`data-blank-key`)??``;return r&&It(Ft(s.current,i),n)?{el:r,key:i}:null};return{handleProps:(0,R.useCallback)(e=>({onPointerDown:t=>{t.button===0&&(a.current={block:e,startX:t.clientX,startY:t.clientY,armed:!1},t.currentTarget.setPointerCapture(t.pointerId))},onPointerMove:e=>{let t=a.current;if(!t)return;if(!t.armed){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<Pt)return;t.armed=!0}i({label:x(t.block),x:e.clientX,y:e.clientY});let n=d(e.clientX,e.clientY,t.block.type);if(o.current&&o.current!==n?.el&&u(),n){let e=n.el.querySelector(`.blank-drop`)??n.el;e.classList.add(`is-drop-target`),o.current=e}},onPointerUp:e=>{let t=a.current;if(a.current=null,i(null),u(),t)if(t.armed){let n=d(e.clientX,e.clientY,t.block.type);n&&c.current(n.key,t.block)}else l.current?.(t.block)}}),[]),ghost:r?(0,V.jsx)(`div`,{className:`card-drag-ghost`,style:{left:r.x,top:r.y},"aria-hidden":!0,children:r.label}):null}}function Rt(e){let t=e.find(e=>e.type===`insight`&&!!e.id);return t?.id?t.id:e.find(e=>!!e.id)?.id??null}var zt=340;function Bt(e){let t=(0,z.c)(9),{block:n,renderBlock:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={width:zt},t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,V.jsx)(b,{block:n}),t[1]=n,t[2]=a);let o;t[3]!==n||t[4]!==r?(o=r(n),t[3]=n,t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==a||t[7]!==o?(s=(0,V.jsx)(`span`,{className:`filmstrip-thumb`,"aria-hidden":`true`,inert:!0,children:(0,V.jsx)(`span`,{className:`filmstrip-thumb-design`,style:i,children:(0,V.jsx)(y,{fallback:a,children:o})})}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}var Vt=(0,R.memo)(Bt,(e,t)=>e.block===t.block),Ht=24;function Ut(e){let t=(0,z.c)(21),{blocks:n,activeId:r,narratingId:i,onPick:a,renderBlock:o}=e,s=n.slice(0,Ht),c=n.length-s.length,l=(0,R.useRef)(null),u;t[0]===r?u=t[1]:(u=e=>e.id===r,t[0]=r,t[1]=u);let d=Math.max(0,s.findIndex(u)),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=window.setTimeout(()=>{let e=l.current?.querySelector(`.filmstrip-entry.active`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:g()?`auto`:`smooth`})},60);return()=>window.clearTimeout(e)},t[2]=f):f=t[2];let p;t[3]===r?p=t[4]:(p=[r],t[3]=r,t[4]=p),(0,R.useEffect)(f,p);let m=e=>{let t=s.length;if(!t)return;let n=document.activeElement,r=n instanceof HTMLElement?n.dataset.idx:void 0,i=r===void 0?d:Number(r),o;bb37:switch(e.key){case`ArrowDown`:case`ArrowRight`:o=Math.min(t-1,i+1);break bb37;case`ArrowUp`:case`ArrowLeft`:o=Math.max(0,i-1);break bb37;case`Home`:o=0;break bb37;case`End`:o=t-1;break bb37;default:return}e.preventDefault(),l.current?.querySelector(`[data-idx="${o}"]`)?.focus();let c=s[o].id;c&&a(c)},h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,V.jsx)(`div`,{className:`filmstrip-eyebrow`,children:`In this view`}),t[5]=h):h=t[5];let _;t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==o||t[10]!==d?(_=(e,t)=>{let n=e.id===r,s=!!e.id&&e.id===i;return(0,V.jsxs)(`div`,{role:`button`,"data-idx":t,tabIndex:t===d?0:-1,className:`filmstrip-entry`+(n?` active`:``)+(s?` speaking`:``),"aria-current":n?`true`:void 0,"aria-label":`${S(e)} — ${x(e)}`,onClick:()=>a(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e.id))},children:[(0,V.jsx)(Vt,{block:e,renderBlock:o}),s&&(0,V.jsx)(`span`,{className:`filmstrip-speaking`,"aria-hidden":`true`}),(0,V.jsxs)(`span`,{className:`filmstrip-meta`,children:[(0,V.jsx)(`span`,{className:`filmstrip-kind`,children:S(e)}),(0,V.jsx)(`span`,{className:`filmstrip-title`,children:x(e)})]})]},e.id)},t[6]=r,t[7]=i,t[8]=a,t[9]=o,t[10]=d,t[11]=_):_=t[11];let v=s.map(_),y;t[12]===c?y=t[13]:(y=c>0&&(0,V.jsxs)(`div`,{className:`filmstrip-more`,children:[`+`,c,` more card`,c===1?``:`s`]}),t[12]=c,t[13]=y);let b;t[14]!==m||t[15]!==v||t[16]!==y?(b=(0,V.jsxs)(`div`,{className:`filmstrip-list`,ref:l,role:`toolbar`,onKeyDown:m,children:[v,y]}),t[14]=m,t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;return t[18]!==b||t[19]!==h?(C=(0,V.jsxs)(`aside`,{className:`filmstrip-rail`,"aria-label":`All cards in this view`,children:[h,b]}),t[18]=b,t[19]=h,t[20]=C):C=t[20],C}var Wt=560;function Gt(e){let t=(0,z.c)(93),{data:n,blocks:r,spot:i,renderBlock:a,onAskBlock:o,selectedBlockIds:c,onNarrate:l,narratingId:u,muted:d,walkNotes:f,presenting:p}=e,m;t[0]===r?m=t[1]:(m=r.filter(Kt),t[0]=r,t[1]=m);let h=m,[_,v]=(0,R.useState)(null),S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>v(null),t[2]=S):S=t[2];let C;t[3]===n.id?C=t[4]:(C=[n.id],t[3]=n.id,t[4]=C),(0,R.useEffect)(S,C);let w;t[5]!==l||t[6]!==h?(w=e=>{v(e);let t=h.find(t=>t.id===e);t&&l?.(t)},t[5]=l,t[6]=h,t[7]=w):w=t[7];let T=w,E;t[8]!==_||t[9]!==h||t[10]!==i?(E=(_&&h.some(e=>e.id===_)?_:null)??(i&&h.some(e=>e.id===i)?i:null)??Rt(h),t[8]=_,t[9]=h,t[10]=i,t[11]=E):E=t[11];let D=E,O;t[12]!==D||t[13]!==h?(O=h.find(e=>e.id===D)??h[0],t[12]=D,t[13]=h,t[14]=O):O=t[14];let k=O,[A,j]=(0,R.useState)(null),M=(0,R.useRef)(k?.id??null),N;t[15]===k?.id?N=t[16]:(N=()=>{let e=k?.id??null;if(e===M.current)return;let t=M.current;if(M.current=e,!t||g()){j(null);return}j(t);let n=window.setTimeout(()=>j(null),Wt);return()=>window.clearTimeout(n)},t[15]=k?.id,t[16]=N);let P=k?.id,F;t[17]===P?F=t[18]:(F=[P],t[17]=P,t[18]=F),(0,R.useEffect)(N,F);let I;t[19]!==k||t[20]!==c?(I=!!k?.id&&!!c?.has(k.id),t[19]=k,t[20]=c,t[21]=I):I=t[21];let L=I,ee=!d&&!!k?.id&&u===k.id,te=k?.note||null,ne;t[22]!==k?.id||t[23]!==A||t[24]!==h?(ne=A&&A!==k?.id?h.find(e=>e.id===A):void 0,t[22]=k?.id,t[23]=A,t[24]=h,t[25]=ne):ne=t[25];let re=ne,B;t[26]===k?.id?B=t[27]:(B=e=>e.id===k?.id,t[26]=k?.id,t[27]=B);let H=h.findIndex(B),U;t[28]!==H||t[29]!==T||t[30]!==h?(U=()=>{H>0&&T(h[H-1].id)},t[28]=H,t[29]=T,t[30]=h,t[31]=U):U=t[31];let W=U,ie;t[32]!==H||t[33]!==T||t[34]!==h?(ie=()=>{H<h.length-1&&T(h[H+1].id)},t[32]=H,t[33]=T,t[34]=h,t[35]=ie):ie=t[35];let G=ie,ae,oe;if(t[36]!==G||t[37]!==W||t[38]!==p?(ae=()=>{if(!p)return;let e=e=>{e.key===`ArrowRight`||e.key===`ArrowDown`||e.key===` `?(e.preventDefault(),G()):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),W())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},oe=[p,W,G],t[36]=G,t[37]=W,t[38]=p,t[39]=ae,t[40]=oe):(ae=t[39],oe=t[40]),(0,R.useEffect)(ae,oe),!k)return null;let K,se;if(t[41]!==T||t[42]!==k.id||t[43]!==p||t[44]!==f){let e=!p&&f&&f.length>0?[...f].reverse():null;K=`focus-stage`+(e?` has-notes`:``),se=e&&(0,V.jsxs)(`aside`,{className:`focus-notes`,"aria-label":`Mavéa's notes`,children:[(0,V.jsx)(`div`,{className:`focus-notes-eyebrow`,children:`Mavéa’s notes`}),(0,V.jsx)(`ol`,{className:`focus-notes-list`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsx)(`button`,{type:`button`,className:`focus-note`+(e.spot===k?.id?` active`:``),onClick:()=>T(e.spot),title:`Bring this card back on stage`,children:e.text})},e.spot))})]}),t[41]=T,t[42]=k.id,t[43]=p,t[44]=f,t[45]=K,t[46]=se}else K=t[45],se=t[46];let q;t[47]!==re||t[48]!==a?(q=re&&(0,V.jsx)(`div`,{className:`focus-hero-card focus-out`,"aria-hidden":`true`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:re}),children:a(re)})},`out-`+re.id),t[47]=re,t[48]=a,t[49]=q):q=t[49];let ce=k.id,le=k.id,J;t[50]===ee?J=t[51]:(J=ee&&(0,V.jsxs)(`div`,{className:`focus-speaking`,"aria-hidden":`true`,children:[(0,V.jsxs)(`span`,{className:`focus-speaking-bars`,children:[(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{})]}),`Speaking`]}),t[50]=ee,t[51]=J);let Y;t[52]===k?Y=t[53]:(Y=(0,V.jsx)(b,{block:k}),t[52]=k,t[53]=Y);let X;t[54]!==k||t[55]!==a?(X=a(k),t[54]=k,t[55]=a,t[56]=X):X=t[56];let Z;t[57]!==Y||t[58]!==X?(Z=(0,V.jsx)(y,{fallback:Y,children:X}),t[57]=Y,t[58]=X,t[59]=Z):Z=t[59];let ue;t[60]!==k||t[61]!==L||t[62]!==o?(ue=o&&k.id&&(0,V.jsx)(`div`,{className:`block-actions`,children:(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`+(L?` picked`:``),"aria-pressed":L,"aria-label":L?`Unpin ${x(k)}`:`Ask about ${x(k)}`,onClick:e=>{e.stopPropagation(),o(k)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:L?`Selected`:`Ask`})]})}),t[60]=k,t[61]=L,t[62]=o,t[63]=ue):ue=t[63];let Q;t[64]!==k.id||t[65]!==J||t[66]!==Z||t[67]!==ue?(Q=(0,V.jsxs)(`div`,{className:`focus-hero-card focus-in askable`,"data-spot-id":le,children:[J,Z,ue]},ce),t[64]=k.id,t[65]=J,t[66]=Z,t[67]=ue,t[68]=Q):Q=t[68];let de;t[69]!==q||t[70]!==Q?(de=(0,V.jsxs)(`div`,{className:`focus-hero`,children:[q,Q]}),t[69]=q,t[70]=Q,t[71]=de):de=t[71];let fe;t[72]!==k.id||t[73]!==te?(fe=te&&(0,V.jsx)(`p`,{className:`focus-caption`,"aria-live":`polite`,children:te},`cap-`+k.id),t[72]=k.id,t[73]=te,t[74]=fe):fe=t[74];let $;t[75]!==de||t[76]!==fe?($=(0,V.jsxs)(`div`,{className:`focus-main`,children:[de,fe]}),t[75]=de,t[76]=fe,t[77]=$):$=t[77];let pe;t[78]!==H||t[79]!==G||t[80]!==T||t[81]!==W||t[82]!==k.id||t[83]!==u||t[84]!==p||t[85]!==h||t[86]!==a?(pe=p?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-prev`,onClick:W,disabled:H<=0,"aria-label":`Previous slide`,children:(0,V.jsx)(s.chevL,{})}),(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-next`,onClick:G,disabled:H>=h.length-1,"aria-label":`Next slide`,children:(0,V.jsx)(s.chevR,{})}),(0,V.jsx)(`div`,{className:`present-nav`,"aria-label":`Slide navigation`,children:(0,V.jsxs)(`span`,{className:`present-nav-count`,"aria-live":`polite`,"aria-atomic":`true`,children:[H+1,` `,(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),` `,h.length]})})]}):(0,V.jsx)(Ut,{blocks:h,activeId:k.id??null,narratingId:u??null,onPick:T,renderBlock:a}),t[78]=H,t[79]=G,t[80]=T,t[81]=W,t[82]=k.id,t[83]=u,t[84]=p,t[85]=h,t[86]=a,t[87]=pe):pe=t[87];let me;return t[88]!==K||t[89]!==se||t[90]!==$||t[91]!==pe?(me=(0,V.jsxs)(`div`,{className:K,children:[se,$,pe]}),t[88]=K,t[89]=se,t[90]=$,t[91]=pe,t[92]=me):me=t[92],me}function Kt(e){return!!e.id}var qt=[{mode:`focus`,label:`Focus`},{mode:`everything`,label:`Everything`}];function Jt(e){let t=(0,z.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=qt.map(e=>{let t=n===e.mode;return(0,V.jsx)(`button`,{type:`button`,className:`focus-toggle-opt`+(t?` active`:``),"aria-pressed":t,onClick:()=>r(e.mode),children:e.label},e.mode)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`focus-toggle`,role:`group`,"aria-label":`Canvas view`,children:i}),t[3]=i,t[4]=a),a}var Yt=e({TopicCanvas:()=>on});r();var Xt=(0,R.lazy)(()=>o(()=>import(`./ReplayCard-wMIMlorH.js`).then(e=>e.t).then(e=>({default:e.ReplayCard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),Zt=1,Qt=1.75,$t=.15,en=1.15;function tn(e){return typeof e!=`number`||!Number.isFinite(e)?6:Math.min(12,Math.max(1,Math.round(e)))}function nn(e,t){return(0,V.jsx)(s[e]||s.layers,{className:`ic`,style:{color:t||`var(--presence)`}})}function rn({block:e,nest:t,spotlight:n,dimmed:r,spot:i,onProve:a,onUnrenderable:o}){let s={delay:e.delay};if(e.type===`composite`){if(t>=2)return null;let n=e.props;return(0,V.jsxs)(`div`,{className:`card reveal cmp-card`,style:{"--delay":(e.delay||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[n.icon&&nn(n.icon,n.iconColor),` `,n.title]}),(0,V.jsx)(`div`,{className:`cmp-grid`,children:n.regions.map((e,n)=>(0,V.jsx)(`div`,{className:`cmp-cell`,"data-spot-id":e.block.id,"data-kind":e.block.type,style:{"--cmp-span":tn(e.span)},children:(0,V.jsx)(an,{block:e.block,nest:t+1,spotlight:!!e.block.id&&i===e.block.id,dimmed:!!e.block.id&&!!i&&i!==e.block.id,spot:e.block.type===`composite`?i:null,onProve:a,onUnrenderable:o})},n))}),n.footer&&(0,V.jsx)(`div`,{className:`cmp-foot`,children:n.footer})]})}if(e.type===`insight`)return(0,V.jsx)(ge,{num:e.num,...e.props,...s,spotlight:n,dimmed:r,onProve:e.prove?a:void 0});if(e.type===`chart`)return(0,V.jsx)(ve,{...e.props,...s});if(e.type===`breakdown`)return(0,V.jsx)(ye,{...e.props,...s});if(e.type===`timeline`)return(0,V.jsx)(be,{...e.props,...s});if(e.type===`list`)return(0,V.jsx)(Se,{...e.props,...s});if(e.type===`compare`)return(0,V.jsx)(Ce,{...e.props,...s});if(e.type===`ring`)return(0,V.jsx)(Oe,{...e.props,...s});if(e.type===`bars`)return(0,V.jsx)(ke,{...e.props,...s});if(e.type===`stack`)return(0,V.jsx)(Ae,{...e.props,...s});if(e.type===`scatter`)return(0,V.jsx)(je,{...e.props,...s});if(e.type===`heat`)return(0,V.jsx)(Me,{...e.props,...s});if(e.type===`flow`)return(0,V.jsx)(Ne,{...e.props,...s});if(e.type===`web`)return(0,V.jsx)(Pe,{...e.props,...s});if(e.type===`gallery`)return(0,V.jsx)(Re,{...e.props,...s});if(e.type===`codemap`)return(0,V.jsx)(ze,{...e.props,...s});if(e.type===`diff`)return(0,V.jsx)(Be,{...e.props,...s});if(e.type===`checks`)return(0,V.jsx)(Ue,{...e.props,...s});if(e.type===`donut`)return(0,V.jsx)(We,{...e.props,...s});if(e.type===`gauge`)return(0,V.jsx)(Ge,{...e.props,...s});if(e.type===`scoreboard`)return(0,V.jsx)(Ke,{...e.props,...s});if(e.type===`standings`)return(0,V.jsx)(qe,{...e.props,...s});if(e.type===`pipeline`)return(0,V.jsx)(Je,{...e.props,...s});if(e.type===`kpi`)return(0,V.jsx)(Xe,{...e.props,...s});if(e.type===`quotes`)return(0,V.jsx)(Ze,{...e.props,...s});if(e.type===`checklist`)return(0,V.jsx)(Qe,{...e.props,...s});if(e.type===`understand`)return(0,V.jsx)($e,{...e.props,...s});if(e.type===`schema`)return(0,V.jsx)(et,{...e.props,...s});if(e.type===`screenmap`)return(0,V.jsx)(nt,{...e.props,...s});if(e.type===`buildprog`)return(0,V.jsx)(rt,{...e.props,...s});if(e.type===`preview`)return(0,V.jsx)(it,{...e.props,...s});if(e.type===`action`){let t=e.props;return(0,V.jsx)(Nt,{...t,...s})}let c=e,l=u(c.type);if(l){let e=l(c.props,{delay:c.delay,spotlight:n,dimmed:r,blockId:c.id,onUnrenderable:o});return ie.has(c.type)?(0,V.jsx)(U,{children:e}):e}return(0,V.jsx)(b,{block:e})}var an=(0,R.memo)(rn);function on({data:e,spot:t,built:n,onProve:r,onAskBlock:i,onAddToDashboard:a,selectedBlockIds:o,viewMode:c,onViewMode:l,onNarrate:u,narratingId:d,muted:p,noteGutter:h,walkNotes:g,bend:v,onAddToFlashcard:S,flashedIds:C,headerSlot:w,belowHeaderSlot:T,presenting:E,blankFill:D}){let[O,k]=(0,R.useState)(null),[A,j]=(0,R.useState)(!1),[M,N]=(0,R.useState)(null),[P,F]=(0,R.useState)(en);(0,R.useEffect)(()=>{if(!M)return;let e=e=>{e.key===`Escape`&&N(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[M]);let I=(0,R.useRef)(null),[z]=le(),[te,ne]=(0,R.useState)(()=>new Set);(0,R.useEffect)(()=>{ne(e=>e.size?new Set:e)},[e.id]);let re=(0,R.useCallback)(e=>{ne(t=>t.has(e)?t:new Set(t).add(e))},[]),B=(0,R.useMemo)(()=>te.size?e.blocks.filter(e=>!e.id||!te.has(e.id)):e.blocks,[e.blocks,te]),{displayBlocks:H=B,budget:U}=ct(B,I),W=ee(e.blocks),ie=`${e.id}:${W}:${U}`;ft(I,ie),Ct(I,ie);let G=e.blocks.find(e=>e.type===`preview`),ae=G?G.props:null,oe=c!==void 0&&H.filter(e=>!!e.id).length>=2,K=oe&&c===`focus`,se=c!==void 0&&m(e),q=se&&c===`canvas`,ce=(0,R.useRef)(c);ce.current=c,(0,R.useEffect)(()=>{ce.current===`canvas`&&l?.(`everything`)},[e.id,l]);let J=e.blanks?.filter(e=>e.kind===`card`)??[],Y=!!D&&J.length>0,X=Lt(e.blanks,(e,t)=>D?.fill({kind:`card`,key:e,label:x(t),block:t}),e=>{let t=J.find(e=>e.key===D?.activeKey)??J[0];t&&D?.fill({kind:`card`,key:t.key,label:x(e),block:e})}),Z=(0,R.useRef)(r);Z.current=r;let ue=(0,R.useCallback)(()=>Z.current(),[]),Q=e=>(0,V.jsx)(an,{block:e,nest:0,spotlight:!!e.id&&t===e.id,dimmed:!!e.id&&!!t&&t!==e.id,spot:e.type===`composite`?t:null,onProve:ue,onUnrenderable:re}),de=t=>t.kind===`slide`?(0,V.jsx)(Te,{...t.props}):t.kind===`action`?(0,V.jsx)(De,{...t.props,onConfirm:ae?()=>k(ae):void 0}):t.kind===`replay`?(0,V.jsx)(R.Suspense,{fallback:null,children:(0,V.jsx)(Xt,{...t.props,spec:e})}):null,fe=(0,R.useMemo)(()=>Et(H).map(e=>({...e,standard:st(e.standard,U),deeper:st(e.deeper,U)})),[H,U]),$=Tt(H),me=fe.some(e=>e.deeper.length>0),he=(e,n)=>{let r=!!e.id,c=r&&t===e.id,l=r&&!!t&&t!==e.id,u=r&&!!i,d=r&&!!a,f=r&&!!S,p=f&&!!C?.has(e.id),m=u&&!!o?.has(e.id),h=r&&(u||d||f),g=Y&&r&&e.type!==`blanks`;return(0,V.jsxs)(`div`,{className:`col-`+e.col+(c?` spotlit`:``)+(l?` dimmed`:``)+(u?` askable`:``)+(d?` addable`:``)+(f?` flashcardable`:``)+(h?` zoomable`:``)+(m?` picked`:``),"data-spot-id":e.id,"data-kind":e.type,children:[(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e}),children:Q(e)}),v&&v.blockId===e.id&&(0,V.jsx)(kt,{bend:v}),(u||d||f||h||g)&&(0,V.jsxs)(`div`,{className:`block-actions`,ref:wt,children:[g&&(0,V.jsx)(`button`,{type:`button`,className:`card-drag-handle`,title:`Drag ${x(e)} into a slot`,"aria-label":`Use ${x(e)} to fill a slot`,...X.handleProps(e),children:(0,V.jsx)(`span`,{"aria-hidden":!0,children:`⠿`})}),u&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`,"aria-pressed":m,title:m?`Selected — ask about it below`:`Ask about ${x(e)}`,"aria-label":m?`Unpin ${x(e)}`:`Ask about ${x(e)}`,onClick:t=>{t.stopPropagation(),i(e)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:m?`Selected`:`Ask`})]}),d&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask block-add`,title:`Add ${x(e)} to a dashboard`,"aria-label":`Add ${x(e)} to a dashboard`,onClick:t=>{t.stopPropagation(),a(e)},children:[(0,V.jsx)(s.plus,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Dashboard`})]}),f&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-cards`+(p?` is-flashed`:``),"aria-pressed":p,title:p?`${x(e)} is in your flashcards`:`Make flashcards from ${x(e)}`,"aria-label":`Make flashcards from ${x(e)}`,onClick:t=>{t.stopPropagation(),S(e)},children:[p?(0,V.jsx)(s.check,{}):(0,V.jsx)(s.layers,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:p?`Added`:`Cards`})]}),h&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-zoom`,title:`Zoom into ${x(e)}`,"aria-label":`Zoom into ${x(e)}`,onClick:t=>{t.stopPropagation(),N(e),F(en)},children:[(0,V.jsx)(s.zoomIn,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Zoom`})]})]})]},e.id||n)};return(0,V.jsxs)(L.Provider,{value:D??null,children:[X.ghost,(0,V.jsxs)(`div`,{className:`canvas-header`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`div`,{className:`canvas-title`,children:e.title}),(0,V.jsx)(`div`,{className:`canvas-sub`,children:e.sub})]}),(0,V.jsxs)(`div`,{className:`canvas-header-actions`,children:[w,q?(0,V.jsxs)(`button`,{type:`button`,className:`canvas-exit`,onClick:()=>l?.(`everything`),children:[(0,V.jsx)(`span`,{"aria-hidden":!0,children:`←`}),` Back to answer`]}):(0,V.jsxs)(V.Fragment,{children:[$&&me&&!K&&(0,V.jsx)(`button`,{type:`button`,className:`depth-reading-toggle`+(A?` is-reading`:``),"aria-pressed":A,title:A?`Collapse all deeper sections`:`Expand all deeper sections`,onClick:()=>j(e=>!e),children:A?`Collapse sections`:`Expand sections`}),oe&&l&&(0,V.jsx)(Jt,{value:K?`focus`:`everything`,onChange:l}),se&&l&&(0,V.jsxs)(`button`,{type:`button`,className:`canvas-open`,onClick:()=>l(`canvas`),title:`Spread this answer's cards on a board you can wander`,children:[(0,V.jsx)(`span`,{className:`canvas-open-glyph`,"aria-hidden":!0,children:`◇`}),` `,`View as canvas`]})]})]})]}),T,e.context.length>0&&(0,V.jsxs)(`div`,{className:`context-row`,style:{marginBottom:18},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5,marginRight:2},children:`Reading`}),e.context.map((e,t)=>(0,V.jsx)(f,{name:e.name,color:e.color},t))]}),W?q?(0,V.jsx)(pe,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onExit:()=>l?.(`everything`)}):K?(0,V.jsx)(Gt,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onNarrate:u,narratingId:d,muted:p,walkNotes:g,presenting:E}):(0,V.jsxs)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,children:[$?fe.map((e,t)=>(0,V.jsx)(Dt,{section:e,renderCard:he,readingMode:A},e.label||t)):H.map((e,t)=>he(e,t)),Object.keys(n).filter(t=>n[t]&&e.extras&&e.extras[t]).map(t=>{let n=e.extras[t],r=Math.min(12,Math.max(1,n.col||6));return(0,V.jsx)(`div`,{className:`col-`+(U<9?12:r),children:de(n)},t)})]}):(0,V.jsx)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,role:`status`,"aria-busy":`true`,"aria-label":`Loading visuals`,children:(0,V.jsx)(_,{blocks:H,budget:U})}),e.awaiting&&D?.complete&&(()=>{let t=Object.keys(D.values).length,n=e.blanks?.length??0,r=n>0&&t===n,i=D.busy?`Completing your answer…`:r?`All filled — finish when ready`:t===0?`Fill the blanks above to finish`:`${t} of ${n} filled`;return(0,V.jsxs)(`div`,{className:`blank-complete-bar${D.busy?` is-busy`:``}${r&&!D.busy?` is-ready`:``}`,role:`status`,"aria-live":`polite`,children:[(0,V.jsxs)(`span`,{className:`blank-complete-count`,children:[D.busy&&(0,V.jsx)(`span`,{className:`blank-complete-spinner`,"aria-hidden":`true`}),i]}),(0,V.jsx)(`button`,{type:`button`,className:`blank-complete-btn`,disabled:D.busy||t===0,onClick:D.complete,children:`Complete the answer`})]})})(),O&&(0,V.jsx)(`div`,{className:`app-scrim`,role:`button`,tabIndex:0,"aria-label":`Close app preview`,onClick:()=>k(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),k(null))},children:(0,V.jsxs)(`div`,{className:`app-launch`,role:`button`,tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`app-launch-head`,children:[(0,V.jsxs)(`span`,{className:`app-launch-title`,children:[O.app,(0,V.jsxs)(`span`,{className:`app-launch-pill`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),` Live on your workspace`]})]}),(0,V.jsx)(`button`,{className:`drawer-x`,onClick:()=>k(null),"aria-label":`Close app`,children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`app-launch-body`,children:(0,V.jsx)(it,{...O})})]})}),M&&(0,V.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close zoomed view`,onClick:()=>N(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N(null))},children:(0,V.jsxs)(`div`,{className:`zoom-sheet`,role:`button`,tabIndex:0,"aria-label":x(M),onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`zoom-sheet-toolbar`,children:[(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom out`,disabled:P<=Zt,onClick:()=>F(e=>Math.max(Zt,+(e-$t).toFixed(2))),children:(0,V.jsx)(s.zoomOut,{})}),(0,V.jsxs)(`span`,{className:`zoom-sheet-zoom-level`,children:[Math.round(P*100),`%`]}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom in`,disabled:P>=Qt,onClick:()=>F(e=>Math.min(Qt,+(e+$t).toFixed(2))),children:(0,V.jsx)(s.zoomIn,{})}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-x`,"aria-label":`Close`,onClick:()=>N(null),children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`zoom-sheet-body`,style:{zoom:P},children:Q(M)})]})})]})}export{Yt as n,on as t};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ReplayCard-Bz69tOST.js","assets/chunk-BVpWp9h4.js","assets/index-C7H7A1rW.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/ShareModal-D4En6Y3L.js","assets/ReelJelly-DCD4bG10.js","assets/geometry-DXAbnb0J.js","assets/registry-B51MhOLx.js","assets/fit-B1LJWvMO.js","assets/share-QHGHNDhQ.js","assets/icons-CHVz6kv_.js","assets/FeatureUseNotice-CoK5HkbR.js","assets/FeatureUseNotice-CsCxxfOl.css","assets/spokenText-D4zPX9JY.js","assets/toast-BBNs2h3L.js","assets/threads-CkMgrSDP.js","assets/useFocusTrap-DbfG6zbM.js","assets/kokoro-kGWf7M0e.js","assets/ShareModal-PobtP7AJ.css","assets/annotationReel-yzysA-Gr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{J as r,ht as i,mt as a,q as o}from"./index-C7H7A1rW.js";import{n as s}from"./icons-CHVz6kv_.js";import{t as c}from"./toast-BBNs2h3L.js";import{a as l,c as u,d,i as f,l as p,o as m,r as h,s as g,t as _,u as v}from"./CanvasSkeleton-CJwPWnFG.js";import{n as y,t as b}from"./FallbackCard-B489rTd9.js";import{n as x,t as S}from"./blockLabel-DAqaHKy3.js";import{n as C,r as w,t as T}from"./useSpatialCanvas-D_C8VoCy.js";import{t as E}from"./richText-BkxJhl9N.js";import{i as D,r as O}from"./format-DlZTyeMy.js";import{t as k}from"./safeImageUrl-CUkucDUu.js";import{t as A}from"./useValidatedImage-D2fhA198.js";import{n as j,t as M}from"./layout-BFQOzXtG.js";import{i as N,r as P,t as F}from"./catalog-BHjl-1uH.js";import{n as I}from"./http-CJCtjYpA.js";import{n as L}from"./lib-C7zXL8h0.js";var R=t();function ee(e){let t=p(e),n=Array.from(t).sort().join(`,`),[r,i]=(0,R.useState)(()=>v(t));return(0,R.useEffect)(()=>{if(v(t)){i(!0);return}i(!1);let e=!0;return d(n.split(`,`)).then(()=>{e&&i(!0)}),()=>{e=!1}},[n]),r}var z=i(),te=null,ne=new WeakMap;function re(){return typeof ResizeObserver>`u`?null:(te||=new ResizeObserver(e=>{for(let t of e)ne.get(t.target)?.()}),te)}function B(e,t){let n=re();return n?(ne.set(e,t),n.observe(e),()=>{n.unobserve(e),ne.delete(e)}):()=>{}}var V=n(),H=new Set([`hidden`,`clip`,`auto`,`scroll`]);function U(e){let t=(0,z.c)(14),{children:n,maxAspect:r,className:i}=e,a=(0,R.useRef)(null),o=(0,R.useRef)(null),[s,c]=(0,R.useState)(1),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{let e=a.current,t=o.current;if(!e||!t)return;let n=()=>{let n=e.clientWidth;if(!n)return;let r=t.querySelectorAll(`*`),i=t.style.transform;t.style.transform=`none`;let a=[];for(let e of r){let t=getComputedStyle(e);(H.has(t.overflowX)||H.has(t.overflowY)||t.webkitLineClamp!==`none`)&&a.push(e)}let o=[];for(let e of a)o.push({el:e,o:e.style.overflow,c:e.style.webkitLineClamp}),e.style.overflow=`visible`,e.style.webkitLineClamp=`unset`;let s=t.scrollWidth;for(let e of r)e.scrollWidth>s&&(s=e.scrollWidth);for(let e of o)e.el.style.overflow=e.o,e.el.style.webkitLineClamp=e.c;if(t.style.transform=i,!s||s<=n+1){c(W);return}let l=n/s,u=Math.max(.4,Math.floor(l*1e3)/1e3);c(e=>Math.abs(e-u)>.002?u:e)};return n(),B(e,n)},t[0]=l):l=t[0];let u;t[1]===n?u=t[2]:(u=[n],t[1]=n,t[2]=u),(0,R.useLayoutEffect)(l,u);let d=s<1,f=`fit-box`+(i?` `+i:``),p;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p={contentVisibility:`auto`,containIntrinsicSize:`auto 200px`},t[3]=p):p=t[3];let m;t[4]!==s||t[5]!==r||t[6]!==d?(m=d?{transformOrigin:`top left`,transform:`scale(${s})`,width:`${100/s}%`,marginBottom:`calc(${s-1} * 100%)`,...r?{maxHeight:`calc(${r} * 100cqw)`,overflow:`hidden`}:{}}:void 0,t[4]=s,t[5]=r,t[6]=d,t[7]=m):m=t[7];let h;t[8]!==n||t[9]!==m?(h=(0,V.jsx)(`div`,{ref:o,style:m,children:n}),t[8]=n,t[9]=m,t[10]=h):h=t[10];let g;return t[11]!==f||t[12]!==h?(g=(0,V.jsx)(`div`,{ref:a,className:f,style:p,children:h}),t[11]=f,t[12]=h,t[13]=g):g=t[13],g}function W(e){return e===1?e:1}var ie=new Set([`gridtrace`,`chronologicaltimeline`,`roadmap`,`matrix`,`sparktable`,`gantt`]),G=`mavea-bloom-mode`,ae=G,oe=!0,K=null;function se(){try{if(typeof localStorage>`u`)return oe;let e=localStorage.getItem(G);return e===`on`?!0:e===`off`?!1:oe}catch{return oe}}function q(){return K===null&&(K=se()),K}function ce(e){K=e;try{typeof localStorage<`u`&&localStorage.setItem(G,e?`on`:`off`)}catch{}try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(ae))}catch{}}function le(){let[e,t]=(0,R.useState)(()=>q());return(0,R.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(q());return window.addEventListener(ae,e),()=>window.removeEventListener(ae,e)},[]),[e,(0,R.useCallback)(ce,[])]}var J=a(),Y=260,X=56,Z={min:.2,max:3};function ue(e){return e.col>=10?640:e.col>=7?500:360}function Q(e){return Math.max(1,Math.min(e,Math.round(Math.sqrt(e*1.3))))}function de(e,t,n){let r=Math.max(1,Math.ceil(e.length/n)),i=[];for(let a=0;a<r;a++){let r=Y;for(let i=0;i<n;i++){let o=a*n+i;o<e.length&&(r=Math.max(r,t[o]||Y))}i[a]=r}let a=[],o=0;for(let e=0;e<r;e++)a[e]=o,o+=i[e]+X;let s=[];for(let t=0;t<r;t++){let r=[];for(let i=0;i<n;i++){let a=t*n+i;a<e.length&&r.push(a)}t%2==1&&r.reverse(),s[t]=r}let c=s.map(t=>t.reduce((t,n)=>t+ue(e[n]),0)+Math.max(0,t.length-1)*X),l=Math.max(...c,1),u=Array(e.length);return s.forEach((t,n)=>{let r=(l-c[n])/2;for(let n of t){let t=ue(e[n]);u[n]={x:r,w:t},r+=t+X}}),{placed:e.map((e,r)=>{let o=Math.floor(r/n),s=t[r]||Y,{x:c,w:l}=u[r];return{block:e,x:c,y:a[o]+(i[o]-s)/2,w:l,h:s,cx:c+l/2,cy:a[o]+i[o]/2}}),w:l,h:Math.max(Y,o-X)}}function fe(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=0;n<e.length-1;n++){let r=e[n-1]??e[n],i=e[n],a=e[n+1],o=e[n+2]??a,s=i.x+(a.x-r.x)/6,c=i.y+(a.y-r.y)/6,l=a.x-(o.x-i.x)/6,u=a.y-(o.y-i.y)/6;t+=` C ${s} ${c} ${l} ${u} ${a.x} ${a.y}`}return t}function $(e){let t=e.props?.title;return typeof t==`string`&&t.trim()?t.trim():x(e)}function pe(e){let t=(0,z.c)(24),{data:n,onExit:r,selectedBlockIds:i}=e,a=(0,R.useRef)(null),o=i?.size??0,s,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=document.activeElement;return a.current?.querySelector(`.cv-viewport`)?.focus(),()=>e?.focus?.()},c=[],t[0]=s,t[1]=c):(s=t[0],c=t[1]),(0,R.useEffect)(s,c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=[],t[2]=l):l=t[2],(0,R.useEffect)(me,l);let u=`${n.title} — canvas`,d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(`span`,{className:`cv-takeover-glyph`,"aria-hidden":`true`,children:`◇`}),t[3]=d):d=t[3];let f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsx)(`span`,{className:`cv-takeover-eyebrow`,children:`Canvas`}),t[4]=f):f=t[4];let p;t[5]===n.title?p=t[6]:(p=(0,V.jsxs)(`div`,{className:`cv-takeover-id`,children:[d,(0,V.jsxs)(`div`,{className:`cv-takeover-titles`,children:[f,(0,V.jsx)(`span`,{className:`cv-takeover-title`,children:n.title})]})]}),t[5]=n.title,t[6]=p);let m;t[7]===o?m=t[8]:(m=o>0&&(0,V.jsxs)(`span`,{className:`cv-takeover-selection`,"aria-live":`polite`,children:[o,` selected`]}),t[7]=o,t[8]=m);let h;t[9]!==r||t[10]!==o?(h=r&&(0,V.jsxs)(`button`,{type:`button`,className:`cv-takeover-close`,onClick:r,children:[o>0?(0,V.jsxs)(V.Fragment,{children:[`Ask about `,o,` →`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`←`}),` Back to answer`]}),(0,V.jsx)(`kbd`,{"aria-hidden":`true`,children:`esc`})]}),t[9]=r,t[10]=o,t[11]=h):h=t[11];let g;t[12]!==m||t[13]!==h?(g=(0,V.jsxs)(`div`,{className:`cv-takeover-actions`,children:[m,h]}),t[12]=m,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==p||t[16]!==g?(_=(0,V.jsxs)(`header`,{className:`cv-takeover-head`,children:[p,g]}),t[15]=p,t[16]=g,t[17]=_):_=t[17];let v;t[18]===e?v=t[19]:(v=(0,V.jsx)(he,{...e}),t[18]=e,t[19]=v);let y;return t[20]!==_||t[21]!==v||t[22]!==u?(y=(0,J.createPortal)((0,V.jsxs)(`div`,{ref:a,className:`cv-takeover`,role:`dialog`,"aria-modal":`true`,"aria-label":u,children:[_,v]}),document.body),t[20]=_,t[21]=v,t[22]=u,t[23]=y):y=t[23],y}function me(){let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}}function he({blocks:e,spot:t,renderBlock:n,onAskBlock:r,selectedBlockIds:i,onExit:a}){let o=(0,R.useMemo)(()=>e.filter(e=>!!e.id),[e]),s=(0,R.useMemo)(()=>Q(o.length),[o.length]),c=(0,R.useRef)([]),[l,u]=(0,R.useState)([]),d=(0,R.useCallback)(()=>{let e=o.map((e,t)=>c.current[t]?.offsetHeight||Y);u(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)},[o]);(0,R.useLayoutEffect)(()=>{d()},[d]),(0,R.useEffect)(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>d());return c.current.forEach(t=>t&&e.observe(t)),()=>e.disconnect()},[d,o]);let{placed:f,w:p,h:m}=(0,R.useMemo)(()=>de(o,l,s),[o,l,s]),h=(0,R.useMemo)(()=>({x:-56/2,y:-56/2,w:p+X,h:m+X}),[p,m]),_=(0,R.useMemo)(()=>fe(f.map(e=>({x:e.cx,y:e.cy}))),[f]),{camera:v,transform:x,viewportRef:S,fitTo:E,zoomAtClient:D,pan:O,setCamera:k}=T({clamp:Z,margin:40}),A=g(),j=(0,R.useRef)(v);j.current=v;let M=(0,R.useRef)(0);(0,R.useEffect)(()=>{let e=0,t=0;e=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>E(h))});let n=setTimeout(()=>E(h),360);return()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),clearTimeout(n)}},[h,E]);let N=(0,R.useCallback)(e=>{let t=S.current,n=f[e];if(!t||!n)return;M.current=e;let r=t.getBoundingClientRect(),i=Math.min(Math.max(j.current.scale,.85),Z.max);k(C(n.cx,n.cy,i,{w:r.width,h:r.height},Z))},[f,S,k]),P=(0,R.useRef)(!1);(0,R.useEffect)(()=>{if(!t){P.current&&E(h),P.current=!1;return}let e=f.findIndex(e=>e.block.id===t);e>=0&&(P.current=!0,N(e))},[t,f,N,E,h]);let[F,I]=(0,R.useState)(!1),L=(0,R.useRef)(!1),ee=(0,R.useRef)(!1),z=(0,R.useRef)({x:0,y:0}),te=(0,R.useCallback)(e=>{e.target.closest(`.cv-node-ask, .cv-controls, a, button, input, select, textarea, [contenteditable="true"]`)||(L.current=!0,ee.current=!1,I(!0),z.current={x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture(e.pointerId))},[]),ne=(0,R.useCallback)(e=>{if(!L.current)return;let t=e.clientX-z.current.x,n=e.clientY-z.current.y;Math.abs(t)+Math.abs(n)>3&&(ee.current=!0),z.current={x:e.clientX,y:e.clientY},O(t,n)},[O]),re=(0,R.useCallback)(e=>{let t=L.current;L.current=!1,I(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(!t||ee.current)return;let n=S.current;if(!n||f.length===0)return;let r=n.getBoundingClientRect(),i=w(j.current,e.clientX-r.left,e.clientY-r.top),a=f.findIndex(e=>i.x>=e.x&&i.x<=e.x+e.w&&i.y>=e.y&&i.y<=e.y+e.h);a>=0&&N(a)},[f,S,N]);(0,R.useEffect)(()=>{let e=S.current;if(!e)return;let t=e=>{e.preventDefault(),D(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[S,D]);let B=(0,R.useCallback)(e=>{let t=S.current;if(!t)return;let n=t.getBoundingClientRect();D(e,n.left+n.width/2,n.top+n.height/2)},[S,D]),H=(0,R.useCallback)(e=>{e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),N(Math.min(f.length-1,M.current+1))):e.key===`ArrowLeft`||e.key===`ArrowUp`?(e.preventDefault(),N(Math.max(0,M.current-1))):e.key===`Home`?(e.preventDefault(),E(h)):e.key===`Escape`&&a&&(e.preventDefault(),a())},[N,E,h,f.length,a]),U=v.scale>=.6;return(0,V.jsxs)(`div`,{className:`cv-viewport`+(F?` is-panning`:``),ref:S,role:`group`,"aria-label":`Answer canvas — this answer's cards as a board you can pan and zoom`,tabIndex:0,onPointerDown:te,onPointerMove:ne,onPointerUp:re,onPointerCancel:re,onKeyDown:H,children:[(0,V.jsxs)(`div`,{className:`cv-controls`,children:[(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1.25),title:`Zoom in`,"aria-label":`Zoom in`,children:`+`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>B(1/1.25),title:`Zoom out`,"aria-label":`Zoom out`,children:`−`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>E(h),title:`Fit the whole canvas`,"aria-label":`Fit the whole canvas`,children:`⤢`})]}),(0,V.jsxs)(`div`,{className:`cv-world`,style:{width:p,height:m,transform:x},children:[(0,V.jsx)(`svg`,{className:`cv-thread-svg`,width:p,height:m,viewBox:`0 0 ${p} ${m}`,"aria-hidden":`true`,children:(0,V.jsx)(`path`,{className:`cv-thread`+(A?``:` cv-draw`),d:_,pathLength:1})}),f.map((e,a)=>{let o=e.block.id,s=i?.has(o)??!1;return(0,V.jsxs)(`div`,{ref:e=>{c.current[a]=e},className:`cv-node`+(s?` is-selected`:``)+(t===o?` is-spot`:``),style:{left:e.x,top:e.y,width:e.w},"data-kind":e.block.type,children:[(0,V.jsxs)(`div`,{className:`cv-node-label`,title:$(e.block),children:[(0,V.jsx)(`span`,{className:`cv-node-step`,children:a+1}),(0,V.jsx)(`span`,{className:`cv-node-title`,children:$(e.block)})]}),(0,V.jsx)(`div`,{className:`cv-node-inner`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e.block}),children:n(e.block)})}),r&&U&&(0,V.jsx)(`button`,{type:`button`,className:`cv-node-ask`,onClick:t=>{t.stopPropagation(),r(e.block)},children:s?`Selected`:`Ask`})]},o)})]})]})}function ge(e){let t=(0,z.c)(35),{num:n,title:r,summary:i,stat:a,delta:o,deltaDir:c,conf:l,sources:u,spotlight:d,dimmed:f,onProve:p,delay:m,children:g}=e,_=`card reveal`+(d?` spotlight`:``)+(f?` dimmed`:``),v=(m||0)+`ms`,y;t[0]===v?y=t[1]:(y={"--delay":v},t[0]=v,t[1]=y);let b=y,x;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),t[2]=x):x=t[2];let S;t[3]===n?S=t[4]:(S=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[x,`Finding `,n]}),t[3]=n,t[4]=S);let C;t[5]===r?C=t[6]:(C=(0,V.jsx)(`div`,{className:`insight-title`,children:r}),t[5]=r,t[6]=C);let w;t[7]!==o||t[8]!==c||t[9]!==a?(w=a&&(0,V.jsxs)(`div`,{className:`insight-stat`,children:[(0,V.jsx)(`span`,{className:`big tab-num`,"data-mark":`underline`,children:a}),o&&(0,V.jsxs)(`span`,{className:`delta `+(c||`up`),children:[c===`good`||c===`down`?(0,V.jsx)(s.arrowDown,{style:{width:13,height:13}}):(0,V.jsx)(s.arrowUp,{style:{width:13,height:13}}),o]})]}),t[7]=o,t[8]=c,t[9]=a,t[10]=w):w=t[10];let T;t[11]===i?T=t[12]:(T=(0,V.jsx)(`div`,{className:`insight-summary`,children:i}),t[11]=i,t[12]=T);let E;t[13]===u?E=t[14]:(E=u&&u.map(_e),t[13]=u,t[14]=E);let D;t[15]===E?D=t[16]:(D=(0,V.jsx)(`div`,{className:`card-foot-l`,children:E}),t[15]=E,t[16]=D);let O;t[17]!==l||t[18]!==u?.length?(O=l&&(0,V.jsx)(h,{level:l,title:u?.length?void 0:`Best estimate from the model's knowledge — not verified`}),t[17]=l,t[18]=u?.length,t[19]=O):O=t[19];let k;t[20]!==D||t[21]!==O?(k=(0,V.jsxs)(`div`,{className:`card-foot`,children:[D,O]}),t[20]=D,t[21]=O,t[22]=k):k=t[22];let A;t[23]===p?A=t[24]:(A=p&&(0,V.jsx)(`div`,{style:{marginTop:14},children:(0,V.jsxs)(`button`,{className:`mini-btn accent`,onClick:p,children:[(0,V.jsx)(s.proof,{}),` Prove it`]})}),t[23]=p,t[24]=A);let j;return t[25]!==g||t[26]!==_||t[27]!==k||t[28]!==A||t[29]!==b||t[30]!==S||t[31]!==C||t[32]!==w||t[33]!==T?(j=(0,V.jsxs)(`div`,{className:_,style:b,children:[S,C,w,T,g,k,A]}),t[25]=g,t[26]=_,t[27]=k,t[28]=A,t[29]=b,t[30]=S,t[31]=C,t[32]=w,t[33]=T,t[34]=j):j=t[34],j}function _e(e,t){return(0,V.jsx)(l,{file:e.file,loc:e.loc},t)}function ve({title:e,series:t,labels:n,unit:r=`$`,delay:i,footer:a,conf:o}){let[c,l]=(0,R.useState)(null),u={l:50,r:50,t:14,b:26},d=t.flatMap(e=>e.data),f=(d.length?Math.max(...d):1)*1.12,p=Math.min(0,...d),m=f-p||1,g=n.length,_=e=>u.l+(g>1?e/(g-1):0)*(560-u.l-u.r),v=e=>u.t+(1-(e-p)/m)*(220-u.t-u.b),y=(()=>{let e=0,n=-1/0;for(let r of t)r.data.forEach((t,r)=>{t>n&&(n=t,e=r)});return e})(),b=e=>e.map((e,t)=>`${t?`L`:`M`}${_(t).toFixed(1)} ${v(e).toFixed(1)}`).join(` `),x=e=>`${b(e)} L${_(g-1)} ${v(p)} L${_(0)} ${v(p)} Z`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.chart,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsxs)(`div`,{className:`chart-wrap`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 560 220`,width:`100%`,style:{display:`block`,overflow:`visible`},onMouseLeave:()=>l(null),children:[(0,V.jsx)(`defs`,{children:t.map((e,t)=>(0,V.jsxs)(`linearGradient`,{id:`g${t}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:e.color,stopOpacity:`0`})]},t))}),[.25,.5,.75].map((e,t)=>(0,V.jsx)(`line`,{x1:u.l,x2:560-u.r,y1:u.t+e*(220-u.t-u.b),y2:u.t+e*(220-u.t-u.b),stroke:`var(--grid-line)`},t)),t.map((e,t)=>(0,V.jsxs)(`g`,{children:[e.area!==!1&&(0,V.jsx)(`path`,{className:`tc-area`,d:x(e.data),fill:`url(#g${t})`}),(0,V.jsx)(`path`,{className:`tc-line`,d:b(e.data),pathLength:1,fill:`none`,stroke:e.color,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]},t)),n.map((e,t)=>(0,V.jsx)(`rect`,{x:_(t)-560/g/2,y:0,width:560/g,height:220,fill:`transparent`,"data-mark":t===y?`circle`:void 0,onMouseEnter:()=>l(t)},t)),c!=null&&(0,V.jsxs)(`g`,{children:[(0,V.jsx)(`line`,{x1:_(c),x2:_(c),y1:u.t,y2:220-u.b,stroke:`var(--hover-line)`}),t.map((e,t)=>(0,V.jsx)(`circle`,{cx:_(c),cy:v(e.data[c]),r:`4.5`,fill:e.color,stroke:`var(--surface-default)`,strokeWidth:`2`},t))]}),n.map((e,t)=>(0,V.jsx)(`text`,{x:_(t),y:214,fontSize:`11`,textAnchor:`middle`,fill:`var(--text-muted)`,children:e},t))]}),c!=null&&(0,V.jsxs)(`div`,{className:`chart-tip`,style:{opacity:1,left:`${_(c)/560*100}%`,top:`${v(Math.max(...t.map(e=>e.data[c])))/220*100}%`},children:[(0,V.jsx)(`strong`,{children:n[c]}),t.map((e,n)=>(0,V.jsxs)(`div`,{style:{color:e.color,fontVariantNumeric:`tabular-nums`},children:[e.name,`: `,r,t[n].data[c].toLocaleString()]},n))]})]}),(0,V.jsx)(`div`,{className:`chart-legend`,children:t.map((e,t)=>(0,V.jsxs)(`span`,{className:`legend-item`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),e.name]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function ye({title:e,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,conf:i,delay:a}){let o=s[t]||s.table,c=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.pct>r[t].pct&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`cat-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`cat-row`,children:[(0,V.jsxs)(`div`,{className:`cat-top`,children:[(0,V.jsxs)(`span`,{children:[(0,V.jsx)(`span`,{className:`cat-name`,children:e.name}),e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:e.tagColor?{color:e.tagColor,background:`transparent`,border:`1px solid currentColor`}:void 0,children:e.tag})]}),(0,V.jsx)(`span`,{className:`tab-num`,children:e.val})]}),(0,V.jsx)(`div`,{className:`cat-bar`,children:(0,V.jsx)(`i`,{"data-mark":t===c?`circle`:void 0,style:{width:e.pct+`%`,background:e.hot?`var(--warning)`:`var(--presence)`}})})]},e.name))}),i&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:i,title:`Best estimate from the model's knowledge — not verified`})]})]})}function be(e){let t=(0,z.c)(13),{title:n,events:r,delay:i,eyebrow:a}=e,o=(i||0)+`ms`,c;t[0]===o?c=t[1]:(c={"--delay":o},t[0]=o,t[1]=c);let l=c,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(s.clock,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=u):u=t[2];let d=a||n,f;t[3]===d?f=t[4]:(f=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[u,` `,d]}),t[3]=d,t[4]=f);let p;t[5]===r?p=t[6]:(p=r.map(xe),t[5]=r,t[6]=p);let m;t[7]===p?m=t[8]:(m=(0,V.jsx)(`div`,{className:`timeline`,children:p}),t[7]=p,t[8]=m);let h;return t[9]!==l||t[10]!==f||t[11]!==m?(h=(0,V.jsxs)(`div`,{className:`card reveal`,style:l,children:[f,m]}),t[9]=l,t[10]=f,t[11]=m,t[12]=h):h=t[12],h}function xe(e,t){return(0,V.jsxs)(`div`,{className:`tl-row`,children:[(0,V.jsx)(`div`,{className:`tl-rail`,children:(0,V.jsx)(`span`,{className:`tl-dot`,"data-mark":t===0?`point`:void 0,style:{background:e.color||`var(--presence)`}})}),(0,V.jsxs)(`div`,{className:`tl-body`,children:[(0,V.jsx)(`div`,{className:`tl-time`,children:e.time}),(0,V.jsxs)(`div`,{className:`tl-title`,children:[e.title,e.tag&&(0,V.jsx)(`span`,{className:`cat-tag`,style:{marginLeft:8},children:e.tag})]}),e.detail&&(0,V.jsx)(`div`,{className:`tl-detail`,children:e.detail})]})]},t)}function Se({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,items:r,delay:i}){let a=s[t]||s.layers;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(a,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`check-list`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`check-row`,children:[(0,V.jsx)(`span`,{className:`check-ic`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e)})]},t))})]})}function Ce(e){let t=(0,z.c)(26),{eyebrow:n,options:r,criteria:i,recommendation:a,delay:o}=e,c=(o||0)+`ms`,l;t[0]===c?l=t[1]:(l={"--delay":c},t[0]=c,t[1]=l);let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=d):d=t[2];let f=n||`Side by side`,p;t[3]===f?p=t[4]:(p=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[d,` `,f]}),t[3]=f,t[4]=p);let m=`minmax(0, 1.1fr) repeat(${r.length}, minmax(0, 1fr))`,h;t[5]===m?h=t[6]:(h={gridTemplateColumns:m},t[5]=m,t[6]=h);let g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(`div`,{className:`cmp-corner`}),t[7]=g):g=t[7];let _;t[8]===r?_=t[9]:(_=r.map(we),t[8]=r,t[9]=_);let v;if(t[10]!==i||t[11]!==r){let e;t[13]===r?e=t[14]:(e=(e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsx)(`div`,{className:`cmp-crit`,children:e.label}),e.cells.map((e,t)=>(0,V.jsxs)(`div`,{className:`cmp-val`+(e.win?` win`:``)+(r[t]&&r[t].pick?` in-pick`:``),children:[e.win&&(0,V.jsx)(`span`,{className:`cmp-tick`,children:(0,V.jsx)(s.check,{style:{width:11,height:11}})}),(0,V.jsx)(`span`,{children:e.v})]},t))]},t),t[13]=r,t[14]=e),v=i.map(e),t[10]=i,t[11]=r,t[12]=v}else v=t[12];let y;t[15]!==_||t[16]!==v||t[17]!==h?(y=(0,V.jsxs)(`div`,{className:`cmp`,style:h,children:[g,_,v]}),t[15]=_,t[16]=v,t[17]=h,t[18]=y):y=t[18];let b;t[19]===a?b=t[20]:(b=a&&(0,V.jsxs)(`div`,{className:`cmp-rec`,children:[(0,V.jsx)(s.sparkle,{style:{width:16,height:16,color:`var(--insight)`,flexShrink:0}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(a)})]}),t[19]=a,t[20]=b);let x;return t[21]!==y||t[22]!==b||t[23]!==u||t[24]!==p?(x=(0,V.jsxs)(`div`,{className:`card reveal`,style:u,children:[p,y,b]}),t[21]=y,t[22]=b,t[23]=u,t[24]=p,t[25]=x):x=t[25],x}function we(e,t){return(0,V.jsxs)(`div`,{className:`cmp-opt`+(e.pick?` pick`:``),"data-mark":e.pick?`circle`:void 0,children:[(0,V.jsx)(`div`,{className:`cmp-opt-name`,children:e.name}),e.sub&&(0,V.jsx)(`div`,{className:`cmp-opt-sub`,children:e.sub}),e.pick&&(0,V.jsxs)(`div`,{className:`cmp-pick`,children:[(0,V.jsx)(s.check,{style:{width:12,height:12}}),` Mavéa's pick`]})]},t)}function Te({kicker:e,head:t,bullets:n,foot:r,eyebrow:i=`One-pager · ready to share`,delay:a}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,i]}),(0,V.jsxs)(`div`,{className:`slide-card`,children:[(0,V.jsx)(`div`,{className:`slide-kicker`,children:e}),(0,V.jsx)(`div`,{className:`slide-head`,children:t}),(0,V.jsx)(`div`,{className:`slide-bullets`,children:n.map((e,t)=>(0,V.jsxs)(`div`,{className:`slide-bullet`,children:[(0,V.jsx)(`span`,{className:`bdot`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`}}),(0,V.jsx)(`span`,{dangerouslySetInnerHTML:E(e.text)})]},t))}),(0,V.jsxs)(`div`,{className:`slide-foot`,children:[(0,V.jsx)(`span`,{children:r||`Made by Mavéa · from your files`}),(0,V.jsx)(`span`,{children:`June 2026`})]})]}),(0,V.jsxs)(`div`,{className:`action-btns`,style:{marginTop:16},children:[(0,V.jsxs)(`button`,{className:`btn-ghost`,onClick:()=>c(`Tell Mavéa what to change — it'll redo the one-pager`,`info`),children:[(0,V.jsx)(s.edit,{style:{width:15,height:15}}),` Edit`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>c(`Simplified — fewer words, bigger takeaways`,`good`),children:`Make it simpler`}),(0,V.jsxs)(`button`,{className:`btn-primary`,style:{flex:`0 0 auto`,padding:`0 20px`},onClick:()=>window.print(),title:`Export this canvas to PDF`,children:[(0,V.jsx)(s.export,{style:{width:16,height:16}}),` Export`]})]})]})}function Ee(e,t){return t||(e?e.startsWith(`calendar.`)?`Adds one event to your calendar. No invites are sent.`:e.startsWith(`github.`)?`Opens a draft PR. It won't merge until you review and approve it on GitHub.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`:`Mavéa needs your OK before it does anything. Nothing happens until you confirm.`)}function De({delay:e,onConfirm:t,eyebrow:n=`Action`,icon:r=`mail`,title:i=`Run this action`,lines:a,perm:o,cta:c=`Confirm`,doneText:l=`Done`,mcpId:u,fields:d}){let[f,p]=(0,R.useState)(`idle`),[m,h]=(0,R.useState)(()=>Object.fromEntries((d??[]).map(e=>[e.param,e.value]))),[g,_]=(0,R.useState)(``),v=(0,R.useRef)(void 0);(0,R.useEffect)(()=>()=>clearTimeout(v.current),[]);let y=s[r]||s.mail,b=Ee(u,o),x=async()=>{p(`running`),await new Promise(e=>{v.current=setTimeout(e,1400)}),p(`done`),t?.()};return(0,V.jsxs)(`div`,{className:`card action-card reveal`,style:{"--delay":(e||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(y,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,n]}),(0,V.jsx)(`div`,{className:`insight-title`,style:{fontSize:17},children:i}),f!==`editing`&&a&&a.length>0&&(0,V.jsx)(`div`,{className:`action-preview`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{style:{marginTop:t?6:0},children:[(0,V.jsx)(`span`,{className:`to`,children:e.k}),` · `,e.v]},t))}),f===`editing`&&d&&d.length>0&&(0,V.jsx)(`div`,{className:`action-edit-fields`,children:d.map(e=>(0,V.jsxs)(`div`,{className:`action-edit-field`,children:[(0,V.jsx)(`label`,{className:`action-edit-label`,children:e.label}),e.multiline?(0,V.jsx)(`textarea`,{className:`action-edit-input action-edit-textarea`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value})),rows:4}):(0,V.jsx)(`input`,{className:`action-edit-input`,type:`text`,value:m[e.param]??``,onChange:t=>h(n=>({...n,[e.param]:t.target.value}))})]},e.param))}),f!==`editing`&&(0,V.jsxs)(`div`,{className:`perm`,children:[(0,V.jsx)(s.lock,{}),` `,b]}),f===`done`&&(0,V.jsxs)(`button`,{type:`button`,onClick:t,disabled:!t,style:{display:`flex`,alignItems:`center`,gap:8,color:`var(--insight)`,fontWeight:600,fontSize:14,marginTop:6,background:`none`,border:0,padding:0,textAlign:`left`,cursor:t?`pointer`:`default`},children:[(0,V.jsx)(s.check,{style:{width:18,height:18}}),` `,l,t&&(0,V.jsx)(`span`,{className:`open-app-hint`,children:`· open ↗`})]}),f===`error`&&(0,V.jsxs)(`div`,{className:`action-error`,children:[(0,V.jsx)(`span`,{className:`action-error-msg`,children:g}),(0,V.jsx)(`button`,{className:`btn-ghost`,style:{marginLeft:12},onClick:()=>{p(`idle`),_(``)},children:`Retry`})]}),f===`idle`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:x,children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` `,c]}),d&&d.length>0&&(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`editing`),children:`Edit first`})]}),f===`editing`&&(0,V.jsxs)(`div`,{className:`action-btns`,children:[(0,V.jsxs)(`button`,{className:`btn-primary`,onClick:()=>x(),children:[(0,V.jsx)(s.check,{style:{width:16,height:16}}),` Confirm`]}),(0,V.jsx)(`button`,{className:`btn-ghost`,onClick:()=>p(`idle`),children:`Cancel`})]}),f===`running`&&(0,V.jsx)(`div`,{className:`action-btns`,children:(0,V.jsxs)(`button`,{className:`btn-primary`,disabled:!0,children:[(0,V.jsx)(`span`,{className:`tiny-spin`}),` Working…`]})})]})}function Oe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,rings:r,footer:i,delay:a}){let o=s[t]||s.spark,c=`rs`+(0,R.useId)().replace(/:/g,``),l=2*Math.PI*52;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`ring-row`,children:r.map((e,t)=>{let n=Math.max(0,Math.min(1,e.pct)),r=e.color||`var(--presence)`;return(0,V.jsxs)(`div`,{className:`ring-item`,children:[(0,V.jsxs)(`svg`,{viewBox:`0 0 130 130`,className:`ring-svg`,children:[(0,V.jsxs)(`defs`,{children:[(0,V.jsxs)(`linearGradient`,{id:`${c}g${t}`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,V.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.65`}),(0,V.jsx)(`stop`,{offset:`100%`,stopColor:r})]}),(0,V.jsxs)(`filter`,{id:`${c}f${t}`,x:`-40%`,y:`-40%`,width:`180%`,height:`180%`,children:[(0,V.jsx)(`feGaussianBlur`,{stdDeviation:`3`,result:`b`}),(0,V.jsxs)(`feMerge`,{children:[(0,V.jsx)(`feMergeNode`,{in:`b`}),(0,V.jsx)(`feMergeNode`,{in:`SourceGraphic`})]})]})]}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`var(--track)`,strokeWidth:`11`}),(0,V.jsx)(`circle`,{cx:`65`,cy:`65`,r:52,fill:`none`,stroke:`url(#${c}g${t})`,strokeWidth:`11`,strokeLinecap:`round`,strokeDasharray:l,strokeDashoffset:l*(1-n),filter:`url(#${c}f${t})`,transform:`rotate(-90 65 65)`,className:`ring-arc`,"data-mark":t===0?`circle`:void 0}),(()=>{let t=String(e.display??``),n=t.length,r=Math.max(9,Math.min(25,Math.round(155/Math.max(1,n)))),i=n>10;return(0,V.jsx)(`text`,{x:`65`,y:e.unit?61:70,textAnchor:`middle`,className:`ring-val`,style:{fontSize:r},...i?{textLength:92,lengthAdjust:`spacingAndGlyphs`}:{},children:t})})(),e.unit&&(0,V.jsx)(`text`,{x:`65`,y:`80`,textAnchor:`middle`,className:`ring-unit`,children:e.unit})]}),(0,V.jsx)(`div`,{className:`ring-label`,children:e.label}),e.hint&&(0,V.jsx)(`div`,{className:`ring-hint`,children:e.hint})]},t)})}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:6},children:i})]})}function ke({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,bars:r,unit:i=``,goal:a,goalLabel:o,footer:c,conf:l,delay:u}){let d=s[t]||s.chart,f=Math.max(...r.map(e=>e.value),a||0)*1.05||1,p=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.value>r[t].value&&(t=n)}),t})(),m=i.trim(),g=m!==``&&(/^[$€£¥₹]/.test(m)||m===`%`||m.length<=2),_=g?``:m;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),_&&(0,V.jsx)(`div`,{className:`bars-unit`,children:_}),(0,V.jsxs)(`div`,{className:`bars-chart`,children:[(0,V.jsxs)(`div`,{className:`bars-plot`,children:[a!=null&&(0,V.jsx)(`div`,{className:`bars-goal`,style:{bottom:`${a/f*100}%`},children:(0,V.jsx)(`span`,{className:`bars-goal-label`,children:o||`Goal`})}),r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-col`,children:(0,V.jsx)(`div`,{className:`bar-fill`,"data-mark":t===p?`circle`:void 0,style:{height:`${e.value/f*100}%`,background:e.hot?`var(--warning)`:e.color||`var(--presence)`},children:(0,V.jsx)(`span`,{className:`bar-val tab-num`,children:e.label2||(g?D(e.value,i):O(e.value))})})},t))]}),(0,V.jsx)(`div`,{className:`bars-axis`,children:r.map((e,t)=>(0,V.jsx)(`div`,{className:`bar-label`,children:e.label},t))})]}),c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:c}),l&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:l,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ae({title:e,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,total:r,segments:i,footer:a,conf:o,delay:c}){let l=s[t]||s.layers,u=i.reduce((e,t)=>e+t.value,0)||1,d=i.reduce((e,t,n)=>t.value>i[e].value?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,V.jsx)(`div`,{className:`stack-total tab-num`,children:r}),(0,V.jsx)(`div`,{className:`stack-bar`,children:i.map((e,t)=>(0,V.jsx)(`div`,{className:`stack-seg`,title:`${e.label} · ${e.display}`,"data-mark":t===d?`circle`:void 0,style:{width:`${e.value/u*100}%`,background:e.color}},t))}),(0,V.jsx)(`div`,{className:`stack-legend`,children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`stack-leg`,children:[(0,V.jsx)(`span`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`stack-leg-name`,children:e.label}),(0,V.jsx)(`span`,{className:`stack-leg-val tab-num`,children:e.display})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function je({title:e,icon:t=`chart`,iconColor:n=`var(--warning)`,points:r,xLabel:i,yLabel:a,xDomain:o,yDomain:c,trend:l,footer:u,delay:d}){let f=s[t]||s.chart,p={l:54,r:14,t:14,b:38},m=1/0,h=-1/0,g=1/0,_=-1/0;for(let e of r)e.x<m&&(m=e.x),e.x>h&&(h=e.x),e.y<g&&(g=e.y),e.y>_&&(_=e.y);let v=o||[m,h],y=c||[g,_],b=v[1]-v[0]||1,x=y[1]-y[0]||1,S=e=>p.l+(e-v[0])/b*(540-p.l-p.r),C=e=>p.t+(1-(e-y[0])/x)*(240-p.t-p.b),w=(()=>{let e=r.findIndex(e=>e.hot);if(e>=0)return e;let t=0;return r.forEach((e,n)=>{e.y>r[t].y&&(t=n)}),t})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`svg`,{viewBox:`0 0 540 240`,width:`100%`,style:{display:`block`,overflow:`visible`},children:[[0,.5,1].map((e,t)=>{let n=p.t+e*(240-p.t-p.b);return(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:n,y2:n,stroke:`var(--grid-line)`},t)}),(0,V.jsx)(`line`,{x1:p.l,x2:p.l,y1:p.t,y2:240-p.b,stroke:`var(--grid-strong)`}),(0,V.jsx)(`line`,{x1:p.l,x2:540-p.r,y1:240-p.b,y2:240-p.b,stroke:`var(--grid-strong)`}),l&&(0,V.jsx)(`line`,{x1:S(l[0][0]),y1:C(l[0][1]),x2:S(l[1][0]),y2:C(l[1][1]),stroke:`var(--warning)`,strokeWidth:`2`,strokeDasharray:`5 5`,opacity:`0.7`}),r.map((e,t)=>(0,V.jsx)(`circle`,{cx:S(e.x),cy:C(e.y),r:e.hot?7:5.5,fill:e.hot?`var(--warning)`:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`,opacity:e.hot?1:.8,"data-mark":t===w?`circle`:void 0},t)),(0,V.jsx)(`text`,{x:540/2,y:234,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:i}),(0,V.jsx)(`text`,{x:0,y:0,transform:`translate(13, ${(p.t+240-p.b)/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:a})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:u})]})}function Me({title:e,icon:t=`clock`,iconColor:n=`var(--insight)`,cols:r,rows:i,levelColor:a,footer:o,legend:c,delay:l}){let u=s[t]||s.clock,d=0,f=0,p=-1;i.forEach((e,t)=>{e.cells.forEach((e,n)=>{let r=typeof e==`object`&&e?e.lvl??0:e??0;r!=null&&r>p&&(p=r,d=t,f=n)})});let m=e=>e==null?`var(--cell-empty)`:`color-mix(in oklab, ${a||`var(--presence)`} ${[.14,.34,.6,.92][Math.max(0,Math.min(3,e))]*100}%, transparent)`;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`heat-wrap`,children:[r&&(0,V.jsxs)(`div`,{className:`heat-cols`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`}),r.map((e,t)=>(0,V.jsx)(`span`,{className:`heat-col-label`,children:e},t))]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`heat-row`,children:[(0,V.jsx)(`span`,{className:`heat-rowhead`,children:e.label}),e.cells.map((e,n)=>(0,V.jsx)(`span`,{className:`heat-cell`,title:e&&typeof e==`object`&&e.note?e.note:``,"data-mark":t===d&&n===f?`circle`:void 0,style:{background:m(typeof e==`object`&&e?e.lvl:e)},children:typeof e==`object`&&e&&e.mark?(0,V.jsx)(`span`,{className:`heat-mark`,children:e.mark}):null},n))]},t))]}),c&&(0,V.jsxs)(`div`,{className:`heat-legend`,children:[(0,V.jsx)(`span`,{className:`faint`,children:c[0]}),[0,1,2,3].map(e=>(0,V.jsx)(`span`,{className:`heat-cell sm`,style:{background:m(e)}},e)),(0,V.jsx)(`span`,{className:`faint`,children:c[1]})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function Ne({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence-soft)`,steps:r,footer:i,delay:a}){let o=s[t]||s.sparkle;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`flow`,children:r.map((e,t)=>(0,V.jsxs)(R.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flow-step`,style:{"--sc":e.color||`var(--presence)`},children:[(0,V.jsx)(`div`,{className:`flow-num`,"data-mark":t===0?`circle`:void 0,children:t+1}),(0,V.jsx)(`div`,{className:`flow-title`,children:e.title}),(0,V.jsx)(`div`,{className:`flow-sub`,children:e.sub})]}),t<r.length-1&&(0,V.jsx)(`div`,{className:`flow-arrow`,children:(0,V.jsx)(s.chevR,{})})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},children:i})]})}function Pe({title:e=`From the web`,live:t=!0,results:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.globe,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e,t&&(0,V.jsxs)(`span`,{className:`web-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`live`]})]}),(0,V.jsx)(`div`,{className:`web-list`,children:n.map((e,t)=>(0,V.jsxs)(`button`,{type:`button`,className:`web-result`,onClick:()=>c(`Opening `+e.domain+` →`),children:[(0,V.jsx)(`span`,{className:`web-fav`,"data-mark":t===0?`circle`:void 0,style:{background:e.color||`var(--presence)`},children:(e.domain||`?`)[0].toUpperCase()}),(0,V.jsxs)(`span`,{className:`web-body`,children:[(0,V.jsx)(`span`,{className:`web-title`,children:e.title}),(0,V.jsxs)(`span`,{className:`web-url`,children:[e.domain,e.path||``]}),(0,V.jsx)(`span`,{className:`web-excerpt`,dangerouslySetInnerHTML:E(e.excerpt)})]}),(0,V.jsx)(s.external,{className:`web-ext`})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function Fe(e){let t=(0,z.c)(12),{item:n}=e,r=n.src??``,i;t[0]!==n.candidates||t[1]!==r?(i=[r,...n.candidates??[]].map(Le).filter(Ie),t[0]=n.candidates,t[1]=r,t[2]=i):i=t[2];let a=i,o;t[3]===n.fallbackSrc?o=t[4]:(o=k(n.fallbackSrc),t[3]=n.fallbackSrc,t[4]=o);let c=o,l=A(a),u=l.src??(a.length&&l.state===`none`?c:void 0);if(!u){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsx)(s.image,{className:`img-ph-ic`}),t[5]=e):e=t[5],e}let d;t[6]===c?d=t[7]:(d=e=>{let t=e.currentTarget;c&&t.src!==c&&(t.src=c)},t[6]=c,t[7]=d);let f;return t[8]!==n.label||t[9]!==u||t[10]!==d?(f=(0,V.jsx)(`img`,{className:`img-real`,src:u,alt:n.label,loading:`lazy`,referrerPolicy:`no-referrer`,onError:d}),t[8]=n.label,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}function Ie(e){return!!e}function Le(e){return k(e)}function Re({eyebrow:e=`From the web`,items:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.image,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`gallery`,children:t.map((e,t)=>{let n=()=>c(`Saved “`+e.label+`” to your notes`);return(0,V.jsxs)(`div`,{className:`img-tile`,role:`button`,tabIndex:0,"aria-label":`Save ${e.label} to your notes`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},style:{"--h1":e.h1||`#3a4a6e`,"--h2":e.h2||`#1a2236`,cursor:`pointer`},children:[(0,V.jsxs)(`span`,{className:`img-ph`,children:[(0,V.jsx)(Fe,{item:e}),e.tag&&(0,V.jsx)(`span`,{className:`img-tag`,children:e.tag}),e.source&&(0,V.jsx)(`span`,{className:`img-src`,children:e.source})]}),(0,V.jsx)(`span`,{className:`img-cap`,children:e.label})]},e.label+t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function ze({title:e=`What this change touches`,center:t,nodes:n,footer:r,delay:i}){let a=n.map((e,t)=>{let r=(-90+360/n.length*t)*Math.PI/180;return{...e,x:180+Math.cos(r)*74,y:125+Math.sin(r)*74*.86}}),o=Math.max(0,a.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`codemap`,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 360 250`,width:`100%`,style:{display:`block`},children:[a.map((e,t)=>(0,V.jsx)(`line`,{x1:180,y1:125,x2:e.x,y2:e.y,stroke:e.hot?`var(--warning)`:`var(--grid-strong)`,strokeWidth:e.hot?1.6:1,strokeDasharray:e.hot?`0`:`3 3`},t)),a.map((e,t)=>(0,V.jsxs)(`g`,{transform:`translate(${e.x} ${e.y})`,children:[(0,V.jsx)(`circle`,{r:`6`,fill:e.hot?`var(--warning)`:`var(--surface-elevated-2)`,stroke:e.hot?`var(--warning)`:`var(--line-strong)`,strokeWidth:`1.5`,"data-mark":t===o?`circle`:void 0}),(0,V.jsx)(`text`,{x:`0`,y:e.y>125?20:-12,textAnchor:`middle`,fontSize:`10.5`,fill:`var(--text-secondary)`,className:`mono`,children:e.label}),e.note&&(0,V.jsx)(`text`,{x:`0`,y:e.y>125?32:-24,textAnchor:`middle`,fontSize:`9`,fill:`var(--text-muted)`,children:e.note})]},t)),(0,V.jsxs)(`g`,{transform:`translate(180 125)`,children:[(0,V.jsx)(`circle`,{r:`11`,fill:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:`2`}),(0,V.jsx)(`circle`,{r:`11`,fill:`none`,stroke:`var(--presence)`,strokeWidth:`1`,opacity:`0.4`,className:`codemap-pulse`}),(0,V.jsx)(`text`,{x:`0`,y:`28`,textAnchor:`middle`,fontSize:`11`,fontWeight:`600`,fill:`var(--text-primary)`,className:`mono`,children:t})]})]})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:r})]})}function Be(e){let t=(0,z.c)(32),{title:n,file:r,add:i,del:a,lines:o,footer:c,delay:l}=e,u=(l||0)+`ms`,d;t[0]===u?d=t[1]:(d={"--delay":u},t[0]=u,t[1]=d);let f=d,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,V.jsx)(s.edit,{className:`ic`,style:{color:`var(--presence-soft)`}}),t[2]=p):p=t[2];let m=n||`The change`,h;t[3]===m?h=t[4]:(h=(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[p,` `,m]}),t[3]=m,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsx)(s.doc,{style:{width:13,height:13}}),t[5]=g):g=t[5];let _;t[6]===r?_=t[7]:(_=(0,V.jsxs)(`span`,{className:`diff-file mono`,children:[g,` `,r]}),t[6]=r,t[7]=_);let v;t[8]===i?v=t[9]:(v=(0,V.jsxs)(`span`,{className:`add`,children:[`+`,i]}),t[8]=i,t[9]=v);let y;t[10]===a?y=t[11]:(y=(0,V.jsxs)(`span`,{className:`del`,children:[`−`,a]}),t[10]=a,t[11]=y);let b;t[12]!==y||t[13]!==v?(b=(0,V.jsxs)(`span`,{className:`diff-stat`,children:[v,` `,y]}),t[12]=y,t[13]=v,t[14]=b):b=t[14];let x;t[15]!==b||t[16]!==_?(x=(0,V.jsxs)(`div`,{className:`diff-head`,children:[_,b]}),t[15]=b,t[16]=_,t[17]=x):x=t[17];let S;t[18]===o?S=t[19]:(S=o.map(Ve),t[18]=o,t[19]=S);let C;t[20]===S?C=t[21]:(C=(0,V.jsx)(`div`,{className:`diff-body mono`,children:S}),t[20]=S,t[21]=C);let w;t[22]!==x||t[23]!==C?(w=(0,V.jsxs)(`div`,{className:`diff`,children:[x,C]}),t[22]=x,t[23]=C,t[24]=w):w=t[24];let T;t[25]===c?T=t[26]:(T=c&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c}),t[25]=c,t[26]=T);let E;return t[27]!==w||t[28]!==T||t[29]!==f||t[30]!==h?(E=(0,V.jsxs)(`div`,{className:`card reveal`,style:f,children:[h,w,T]}),t[27]=w,t[28]=T,t[29]=f,t[30]=h,t[31]=E):E=t[31],E}function Ve(e,t){return(0,V.jsxs)(`div`,{className:`diff-line `+(e.t||`ctx`),children:[(0,V.jsx)(`span`,{className:`diff-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,V.jsx)(`span`,{className:`diff-code`,dangerouslySetInnerHTML:E(e.c)})]},t)}var He={pass:s.check,fail:s.x,skip:s.clock};function Ue({title:e=`Tests after the change`,summary:t,items:n,footer:r,delay:i}){let a=n.findIndex(e=>e.status===`fail`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.proof,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),t&&(0,V.jsx)(`div`,{className:`checks-summary`,children:t}),(0,V.jsx)(`div`,{className:`checks-list`,children:n.map((e,t)=>{let n=He[e.status]||s.check;return(0,V.jsxs)(`div`,{className:`check2-row `+e.status,children:[(0,V.jsx)(`span`,{className:`check2-ic`,"data-mark":t===a?`circle`:void 0,children:(0,V.jsx)(n,{})}),(0,V.jsx)(`span`,{className:`check2-name mono`,children:e.name}),e.note&&(0,V.jsx)(`span`,{className:`check2-note`,children:e.note})]},t)})}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}function We({title:e,icon:t=`chart`,iconColor:n=`var(--presence-soft)`,size:r=132,thickness:i=18,rows:a,footer:o,conf:c,delay:l}){let u=s[t]||s.chart,d=r/2-i/2,f=2*Math.PI*d,p=0,m=a.map(e=>{let t=f*e.pct/100,n={len:t,off:-p,color:e.color};return p+=t,n}),g=a.reduce((e,t,n)=>t.pct>a[e].pct?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`donut-wrap`,children:[(0,V.jsx)(`svg`,{className:`donut`,viewBox:`0 0 ${r} ${r}`,width:r,height:r,children:(0,V.jsxs)(`g`,{transform:`rotate(-90 ${r/2} ${r/2})`,children:[(0,V.jsx)(`circle`,{cx:r/2,cy:r/2,r:d,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:i}),m.map((e,t)=>(0,V.jsx)(`circle`,{className:`donut-seg`,cx:r/2,cy:r/2,r:d,fill:`none`,stroke:e.color,strokeWidth:i,strokeLinecap:`butt`,strokeDasharray:`${Math.max(0,e.len-1.5)} ${f-Math.max(0,e.len-1.5)}`,strokeDashoffset:e.off,"data-mark":t===g?`circle`:void 0},t))]})}),(0,V.jsx)(`ul`,{className:`donut-legend`,children:a.map((e,t)=>(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`i`,{className:`sw`,style:{background:e.color}}),(0,V.jsx)(`span`,{className:`dl-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`dl-pct tab-num`,children:[e.pct,`%`]})]},t))})]}),o&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o}),c&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:c,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ge({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,value:r,max:i=100,size:a=116,color:o,band:c,driver:l,footer:u,conf:d,delay:f}){let p=s[t]||s.spark,m=a/2-10,g=Math.max(0,Math.min(1,r/i)),_=o||(r>=40?`var(--warning)`:`var(--insight)`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsxs)(`div`,{className:`risk-wrap`,children:[(0,V.jsxs)(`div`,{className:`gauge-host`,children:[(0,V.jsxs)(`svg`,{className:`gauge`,viewBox:`0 0 ${a} ${a}`,width:a,height:a,children:[(0,V.jsx)(`circle`,{cx:a/2,cy:a/2,r:m,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:`9`}),(0,V.jsx)(`circle`,{className:`gauge-arc`,cx:a/2,cy:a/2,r:m,fill:`none`,stroke:_,strokeWidth:`9`,strokeLinecap:`round`,pathLength:1,strokeDasharray:1,strokeDashoffset:1-g,transform:`rotate(-90 ${a/2} ${a/2})`})]}),(0,V.jsxs)(`div`,{className:`gauge-center`,children:[(0,V.jsx)(`div`,{className:`gauge-num tab-num`,"data-mark":`underline`,style:{color:_},children:r}),c&&(0,V.jsx)(`div`,{className:`gauge-band`,children:c})]})]}),l&&(0,V.jsx)(`p`,{className:`risk-driver`,dangerouslySetInnerHTML:E(l)})]}),u&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u}),d&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:d,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ke({title:e=`Around the league`,icon:t=`bell`,iconColor:n=`var(--presence-soft)`,games:r,footer:i,delay:a}){let o=s[t]||s.bell,c=Math.max(0,r.findIndex(e=>e.hot));return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`score-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`game`+(e.hot?` hot`:``),"data-mark":t===c?`circle`:void 0,style:{"--ti":t},children:[(0,V.jsxs)(`div`,{className:`g-rows`,children:[(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.away}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.as})]}),(0,V.jsxs)(`div`,{className:`g-team`,children:[(0,V.jsx)(`span`,{className:`g-name`,children:e.home}),(0,V.jsx)(`span`,{className:`g-score tab-num`,children:e.hs})]})]}),(0,V.jsxs)(`span`,{className:`g-status`+(e.hot?` live`:``),children:[e.hot&&(0,V.jsx)(`span`,{className:`live-dot`}),e.status]})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function qe({title:e=`Standings`,icon:t=`table`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.table;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`stand-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`stand`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`stand-rank`,children:t+1}),(0,V.jsx)(`span`,{className:`stand-team`,"data-mark":t===0?`underline`:void 0,children:e.team}),(0,V.jsx)(`span`,{className:`stand-rec tab-num`,children:e.rec}),(0,V.jsx)(`span`,{className:`stand-gb tab-num`,children:e.gb})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Je({title:e=`By stage`,icon:t=`layers`,iconColor:n=`var(--presence-soft)`,headline:r,sub:i,unit:a=`$`,suffix:o=`M`,stages:c,footer:l,delay:u}){let d=s[t]||s.layers,f=Math.max(1,...c.map(e=>e.v)),p=c.reduce((e,t,n)=>t.v>c[e].v?n:e,0);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,V.jsxs)(`div`,{className:`stat-row`,children:[r&&(0,V.jsx)(`div`,{className:`big-stat tab-num`,style:{color:`var(--presence)`},children:r}),i&&(0,V.jsx)(`span`,{className:`delta accent`,children:i})]}),(0,V.jsx)(`ul`,{className:`funnel`,children:c.map((e,t)=>(0,V.jsxs)(`li`,{className:`funnel-row`,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`funnel-label`,children:e.k}),(0,V.jsx)(`span`,{className:`funnel-track`,children:(0,V.jsx)(`span`,{className:`funnel-fill`,"data-mark":t===p?`circle`:void 0,style:{width:e.v/f*100+`%`}})}),(0,V.jsxs)(`span`,{className:`funnel-val tab-num`,children:[a,e.v,o]})]},t))}),l&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:l})]})}function Ye(e){return e===4?2:Math.min(Math.max(e,1),3)}function Xe({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,cols:r,kpis:i,footer:a,conf:o,delay:c}){let l=s[t]||s.spark;return(0,V.jsxs)(`div`,{className:`card reveal kpi-card`,style:{"--delay":(c||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`div`,{className:`kpi-grid`,style:{"--kpi-cols":r??Ye(i.length)},children:i.map((e,t)=>(0,V.jsxs)(`div`,{className:`kpi`,children:[(0,V.jsx)(`div`,{className:`kpi-val tab-num`,"data-mark":t===0?`underline`:void 0,style:e.color?{color:e.color}:void 0,children:e.val}),(0,V.jsx)(`div`,{className:`kpi-label`,children:e.label})]},t))}),a&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:a}),o&&(0,V.jsxs)(`div`,{className:`card-foot`,children:[(0,V.jsx)(`div`,{className:`card-foot-l`}),(0,V.jsx)(h,{level:o,title:`Best estimate from the model's knowledge — not verified`})]})]})}function Ze({title:e=`What customers are saying`,icon:t=`quote`,iconColor:n=`var(--presence-soft)`,quotes:r,footer:i,delay:a}){let o=s[t]||s.quote;return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`quote-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`quote-item q-`+(e.tone||`neutral`),style:{"--ti":t},children:[(0,V.jsxs)(`p`,{className:`quote-text`,children:[`“`,e.text,`”`]}),(0,V.jsx)(`span`,{className:`quote-who`,children:e.who})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function Qe({title:e=`Plan`,icon:t=`check`,iconColor:n=`var(--insight)`,rows:r,footer:i,delay:a}){let o=s[t]||s.check,c=(()=>{let e=r.findIndex(e=>e.st===`doing`);return e>=0?e:r.findIndex(e=>e.st===`todo`)})();return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(o,{className:`ic`,style:{color:n}}),` `,e]}),(0,V.jsx)(`ul`,{className:`plan-list`,children:r.map((e,t)=>(0,V.jsxs)(`li`,{className:`plan-row st-`+e.st,style:{"--ti":t},children:[(0,V.jsx)(`span`,{className:`plan-check`,"data-mark":t===c?`circle`:void 0,children:e.st===`done`?(0,V.jsx)(s.check,{style:{width:12,height:12}}):e.st===`doing`?(0,V.jsx)(`span`,{className:`plan-dot`}):null}),(0,V.jsx)(`span`,{className:`plan-t`,children:e.t})]},t))}),i&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:i})]})}function $e({title:e=`What I learned about you`,items:t,conf:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.sparkle,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`understand-list`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`understand-row`,children:[(0,V.jsx)(`span`,{className:`understand-check`,children:(0,V.jsx)(s.check,{})}),(0,V.jsx)(`span`,{className:`understand-text`,"data-mark":t===0?`underline`:void 0,dangerouslySetInnerHTML:E(e.text)}),(0,V.jsxs)(`span`,{className:`understand-meta`,children:[e.source&&(0,V.jsx)(l,{file:e.source}),(0,V.jsx)(`button`,{className:`understand-edit`,title:`Fix this`,type:`button`,onClick:()=>c(`Tell Mavéa what's off — it'll adjust`,`info`),children:(0,V.jsx)(s.edit,{})})]})]},t))}),(0,V.jsxs)(`div`,{className:`card-foot`,style:{marginTop:14},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5},children:`Read straight from your site — correct anything.`}),n&&(0,V.jsx)(h,{level:n,title:t.some(e=>e.source)?void 0:`Best estimate from the model's knowledge — not verified`})]})]})}function et({title:e=`The data model`,entities:t,relations:n,footer:r,delay:i}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(i||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.layers,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`schema`,children:t.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity`,style:{"--ec":e.color||`var(--presence)`},children:[(0,V.jsxs)(`div`,{className:`entity-head`,children:[(0,V.jsx)(s.table,{style:{width:13,height:13}}),` `,e.name,e.badge&&(0,V.jsx)(`span`,{className:`entity-badge`,children:e.badge})]}),(0,V.jsx)(`div`,{className:`entity-fields`,children:e.fields.map((e,t)=>(0,V.jsxs)(`div`,{className:`entity-field`,children:[(0,V.jsx)(`span`,{className:`ef-key`+(e.key?` is-key`:``),children:e.name}),(0,V.jsx)(`span`,{className:`ef-type`,children:e.type})]},t))})]},t))}),n&&(0,V.jsx)(`div`,{className:`relations`,children:n.map((e,t)=>(0,V.jsxs)(`span`,{className:`relation`,children:[(0,V.jsx)(`b`,{children:e.from}),` `,e.label,` `,(0,V.jsx)(`b`,{children:e.to})]},t))}),r&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:r})]})}var tt={dashboard:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w60`}),(0,V.jsxs)(`div`,{className:`wgrid`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]}),(0,V.jsx)(`span`,{className:`wbar`})]}),table:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]}),board:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsxs)(`div`,{className:`wcols`,children:[(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{}),(0,V.jsx)(`span`,{})]})]}),detail:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w50`}),(0,V.jsx)(`span`,{className:`wblock`}),(0,V.jsx)(`span`,{className:`wl w70`}),(0,V.jsx)(`span`,{className:`wl w50`})]}),list:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`wl w40`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`}),(0,V.jsx)(`span`,{className:`wrow`})]})};function nt({title:e=`The screens you'll get`,screens:t,footer:n,delay:r}){return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.slides,{className:`ic`,style:{color:`var(--presence-soft)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`screenmap`,children:t.map((e,t)=>{let n=()=>c(`Opening `+e.name+` — you can rename or reorder`,`info`);return(0,V.jsxs)(`div`,{className:`screen-thumb`,role:`button`,tabIndex:0,"aria-label":`Open ${e.name}`,onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},children:[(0,V.jsx)(`div`,{className:`screen-wire`,children:tt[e.kind]||tt.table}),(0,V.jsx)(`figcaption`,{children:e.name})]},t)})}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function rt({title:e=`Building it`,steps:t,footer:n,delay:r}){let[i,a]=(0,R.useState)(0),o=t.filter(e=>e.status===`active`).length;(0,R.useEffect)(()=>{if(o===0)return;let e=(r||0)+1400,t=Array.from({length:o},(t,n)=>setTimeout(()=>a(e=>Math.max(e,n+1)),e+n*900));return()=>t.forEach(clearTimeout)},[o,r]);let c=0,l=t.map(e=>{if(e.status!==`active`)return e;let t=c<i;return c+=1,t?{...e,status:`done`}:e}),u=l.findIndex(e=>e.status===`active`);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(r||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.spark,{className:`ic`,style:{color:`var(--insight)`}}),` `,e]}),(0,V.jsx)(`div`,{className:`buildsteps`,children:l.map((e,t)=>(0,V.jsxs)(`div`,{className:`buildstep `+(e.status||`done`),children:[(0,V.jsx)(`span`,{className:`buildstep-ic`,"data-mark":t===u?`circle`:void 0,children:e.status===`active`?(0,V.jsx)(`span`,{className:`tiny-spin`}):e.status===`todo`?(0,V.jsx)(`span`,{className:`bs-dot`}):(0,V.jsx)(s.check,{})}),(0,V.jsxs)(`span`,{className:`buildstep-body`,children:[(0,V.jsx)(`span`,{className:`buildstep-label`,children:e.label}),e.sub&&(0,V.jsx)(`span`,{className:`buildstep-sub`,children:e.sub})]})]},t))}),n&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:n})]})}function it({app:e,seededFrom:t,nav:n,stages:r,rows:i,kpis:a,columns:o,groupColumns:c=[`Group`,`Items`,`Total`],pipelineLabel:l=`Pipeline by stage`,agg:u=`money`,createdNote:d=`created this with Mavéa`,activities:f,footer:p,delay:m}){let[h,g]=(0,R.useState)(n[0]?.label||``),_=n.find(e=>e.label===h)||n[0],v=e=>u===`money`?`$`+Math.round(e/1e3)+`k`:e.toLocaleString(),y=i.reduce((e,t)=>e+(t.amt||0),0),b=new Map,x=new Map;for(let e of i){let t=b.get(e.group)??{count:0,value:0,color:e.color};t.count+=1,t.value+=e.amt||0,b.set(e.group,t),x.set(e.stage,(x.get(e.stage)??0)+1)}let S=Array.from(b,([e,t])=>({name:e,...t})),C=r.reduce((e,t)=>Math.max(e,x.get(t.key)??0),1),w=f||[],T=({s:e})=>(0,V.jsx)(`span`,{className:`at-stage `+(r.find(t=>t.key===e)||r[0]).kind,children:e});return(0,V.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,V.jsx)(s.external,{className:`ic`,style:{color:`var(--insight)`}}),` Live preview · your app`,(0,V.jsxs)(`span`,{className:`preview-live`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),`working`]})]}),(0,V.jsxs)(`div`,{className:`appframe`,children:[(0,V.jsxs)(`div`,{className:`appframe-bar`,children:[(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsx)(`span`,{className:`aflight`}),(0,V.jsxs)(`span`,{className:`afurl mono`,children:[e.toLowerCase().replace(/\s+/g,`-`),`.mavea.app`]})]}),(0,V.jsxs)(`div`,{className:`appframe-body`,children:[(0,V.jsxs)(`div`,{className:`appnav`,children:[(0,V.jsx)(`div`,{className:`appnav-brand`,children:e}),n.map((e,t)=>(0,V.jsx)(`button`,{className:`appnav-item`+(h===e.label?` on`:``),type:`button`,onClick:()=>g(e.label),children:e.label},t))]}),(0,V.jsxs)(`div`,{className:`appmain`,children:[(0,V.jsxs)(`div`,{className:`appmain-top`,children:[(0,V.jsx)(`span`,{className:`appmain-title`,children:_?.label}),_?.view===`dashboard`&&t&&(0,V.jsx)(`span`,{className:`appmain-sub`,children:t})]}),_?.view===`dashboard`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`appkpis`,children:a.map((e,t)=>(0,V.jsxs)(`div`,{className:`appkpi`,children:[(0,V.jsx)(`span`,{className:`appkpi-v tab-num`,children:e.v}),(0,V.jsx)(`span`,{className:`appkpi-k`,children:e.k})]},t))}),(0,V.jsxs)(`div`,{className:`appdash`,children:[(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:l}),r.map((e,t)=>{let n=i.filter(t=>t.stage===e.key),r=n.reduce((e,t)=>e+(t.amt||0),0),a=Math.round(y?r/y*100:n.length/C*100);return(0,V.jsxs)(`div`,{className:`apppipe`,children:[(0,V.jsxs)(`span`,{className:`apppipe-l`,children:[e.key,` `,(0,V.jsxs)(`span`,{className:`faint`,children:[`· `,n.length]})]}),(0,V.jsx)(`span`,{className:`apppipe-bar`,children:(0,V.jsx)(`i`,{style:{width:Math.max(6,a)+`%`,background:e.color}})}),(0,V.jsx)(`span`,{className:`apppipe-v tab-num`,children:y?v(r):n.length})]},t)})]}),(0,V.jsxs)(`div`,{className:`apppanel`,children:[(0,V.jsx)(`div`,{className:`apppanel-h`,children:`Recent activity`}),w.map((e,t)=>(0,V.jsxs)(`div`,{className:`appact`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))]})]})]}),_?.view===`table`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head`,children:[(0,V.jsx)(`span`,{children:o[0]}),(0,V.jsx)(`span`,{children:o[1]}),(0,V.jsx)(`span`,{children:o[2]}),(0,V.jsx)(`span`,{className:`ta-r`,children:o[3]})]}),i.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.group}),(0,V.jsx)(`span`,{children:(0,V.jsx)(T,{s:e.stage})}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:e.value})]},t))]}),_?.view===`board`&&(0,V.jsx)(`div`,{className:`appboard`,children:r.map((e,t)=>(0,V.jsxs)(`div`,{className:`appcol`,children:[(0,V.jsxs)(`div`,{className:`appcol-h`,children:[(0,V.jsx)(`span`,{className:`appcol-dot`,style:{background:e.color}}),e.key,(0,V.jsx)(`span`,{className:`faint`,children:i.filter(t=>t.stage===e.key).length})]}),i.filter(t=>t.stage===e.key).map((e,t)=>(0,V.jsxs)(`div`,{className:`appdeal`,children:[(0,V.jsx)(`div`,{className:`appdeal-n`,children:e.name}),(0,V.jsxs)(`div`,{className:`appdeal-m`,children:[e.group,` · `,(0,V.jsx)(`span`,{className:`tab-num`,children:e.value})]})]},t))]},t))}),_?.view===`group`&&(0,V.jsxs)(`div`,{className:`apptable`,children:[(0,V.jsxs)(`div`,{className:`apptable-head threecol`,children:[(0,V.jsx)(`span`,{children:c[0]}),(0,V.jsx)(`span`,{children:c[1]}),(0,V.jsx)(`span`,{className:`ta-r`,children:c[2]})]}),S.map((e,t)=>(0,V.jsxs)(`div`,{className:`apptable-row threecol`,children:[(0,V.jsxs)(`span`,{className:`at-name`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.name[0]}),e.name]}),(0,V.jsx)(`span`,{children:e.count}),(0,V.jsx)(`span`,{className:`ta-r tab-num`,children:v(e.value)})]},t))]}),_?.view===`activity`&&(0,V.jsx)(`div`,{className:`appactivity`,children:w.concat([{who:`You`,what:d,when:`just now`,color:`var(--presence-deep)`}]).map((e,t)=>(0,V.jsxs)(`div`,{className:`appact row`,children:[(0,V.jsx)(`span`,{className:`at-ava`,style:{background:e.color},children:e.who[0]}),(0,V.jsxs)(`span`,{className:`appact-t`,children:[(0,V.jsx)(`b`,{children:e.who}),` `,e.what]}),(0,V.jsx)(`span`,{className:`appact-when`,children:e.when})]},t))})]})]})]}),p&&(0,V.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function at(e){return e>=1100?12:e>=820?9:e>=580?6:4}var ot=e=>{let t=M[e.type??``],n=e.col;return n===void 0?t:t?{...t,pref:n}:{pref:n}};function st(e,t){if(e.length===0)return e;try{return j(e,ot,t)}catch{return e}}function ct(e,t){let n=(0,z.c)(9),[r,i]=(0,R.useState)(lt),a,o;n[0]===t?(a=n[1],o=n[2]):(a=()=>{let e=t.current;if(!e||typeof ResizeObserver>`u`)return;let n=0,r=new ResizeObserver(t=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{let n=t[0]?.contentRect.width??e.offsetWidth;i(e=>{let t=at(n);return e===t?e:t})})});r.observe(e);let a=at(e.offsetWidth);return i(e=>e===a?e:a),()=>{cancelAnimationFrame(n),r.disconnect()}},o=[t],n[0]=t,n[1]=a,n[2]=o),(0,R.useLayoutEffect)(a,o);let s;try{let t;n[3]!==e||n[4]!==r?(t=j(e,ot,r),n[3]=e,n[4]=r,n[5]=t):t=n[5],s=t}catch{s=e}let c=s,l;return n[6]!==r||n[7]!==c?(l={displayBlocks:c,budget:r},n[6]=r,n[7]=c,n[8]=l):l=n[8],l}function lt(){return typeof window<`u`?at(window.innerWidth):12}var ut=new Set([`auto`,`scroll`]);function dt(e){let t=(e.closest(`.card`)?.querySelector(`.card-eyebrow, h1, h2, h3, [role="heading"]`)?.textContent)?.trim().replace(/\s+/g,` `).slice(0,100);return t?`Scrollable content: ${t}`:`Scrollable card content`}function ft(e,t){let n=(0,z.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t)return;let n=new Map,r=0,i=e=>n.has(e)||e.scrollWidth<=e.clientWidth+8?!1:ut.has(getComputedStyle(e).overflowX),a=e=>{let t=e.hasAttribute(`tabindex`),r=e.hasAttribute(`role`),i=e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`);t||(e.tabIndex=0),r||e.setAttribute(`role`,`region`),i||e.setAttribute(`aria-label`,dt(e)),e.classList.add(`canvas-hscroll`);let a=()=>{let t=e.scrollLeft+e.clientWidth>=e.scrollWidth-2;e.classList.toggle(`canvas-hscroll--end`,t)};a(),e.addEventListener(`scroll`,a,{passive:!0}),n.set(e,()=>{e.removeEventListener(`scroll`,a),e.classList.remove(`canvas-hscroll`,`canvas-hscroll--end`),t||e.removeAttribute(`tabindex`),r||e.removeAttribute(`role`),i||e.removeAttribute(`aria-label`)})},o=()=>{r=0;let e=[];for(let n of t.querySelectorAll(`*`))i(n)&&e.push(n);for(let t of e)a(t)},s=()=>{r||=requestAnimationFrame(o)};s();let c=window.setTimeout(s,700),l=typeof MutationObserver>`u`?null:new MutationObserver(s);l?.observe(t,{childList:!0,subtree:!0});let u=typeof ResizeObserver>`u`?null:new ResizeObserver(s);return u?.observe(t),()=>{r&&cancelAnimationFrame(r),clearTimeout(c),l?.disconnect(),u?.disconnect();for(let e of n.values())e()}},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,R.useEffect)(r,i)}var pt=/…\s*$/u,mt=0;function ht(e){return(e??``).replace(/\s+/g,` `).trim()}var gt=/\S/u;function _t(e){let t=new Map,n=e=>{if(e.tagName.toLowerCase()===`title`)return t.set(e,``),``;let r=``;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE?r+=`${t.textContent??``} `:t instanceof Element&&(r+=`${n(t)} `);return t.set(e,r),r};return n(e),t}function vt(e,t){let n=t.textOverflow===`ellipsis`&&t.whiteSpace.includes(`nowrap`)&&e.scrollWidth>e.clientWidth+1,r=t.webkitLineClamp||t.getPropertyValue(`-webkit-line-clamp`),i=Number.parseInt(r,10),a=Number.isFinite(i)&&i>0&&e.scrollHeight>e.clientHeight+2;return n||a}function yt(e){let t=[...e.children].find(e=>e.tagName.toLowerCase()===`title`);return ht(e.getAttribute(`data-full-text`)||e.getAttribute(`title`)||t?.textContent||e.getAttribute(`aria-label`))}function bt(e,t,n){let r=yt(e)||(n?t:``),i=e;if(!r||r===t){let n=e.parentElement,a=n?yt(n):``;a&&a!==t&&(r=a,i=n)}return!r||!n&&(r===t||r.length<=t.replace(pt,``).length)||!(i instanceof HTMLElement)&&!(i instanceof SVGElement)?null:{target:i,full:r}}function xt(e){return e.matches(`button, a[href], input, select, textarea, summary, [contenteditable="true"]`)}function St(e,t){if(e.hasAttribute(`data-semantic-ellipsis`))return null;let n=t.get(e)??``;if(!gt.test(n))return null;let r=getComputedStyle(e);if(r.visibility===`hidden`||parseFloat(r.opacity)===0)return null;let i=ht(n),a=e instanceof HTMLElement&&vt(e,r);if(!pt.test(i)&&!a)return null;let o=bt(e,i,a);return o?{source:e,...o}:null}function Ct(e,t){(0,R.useEffect)(()=>{let t=e.current;if(!t)return;let n=`canvas-text-disclosure-${++mt}`,r=document.createElement(`div`);r.id=n,r.className=`canvas-text-popover`,r.setAttribute(`role`,`tooltip`),r.hidden=!0,document.body.appendChild(r);let i=new Map,a=new Set,o=null,s=0,c=0,l=e=>{let t=e.getBoundingClientRect();r.style.maxWidth=`${Math.max(180,Math.min(420,window.innerWidth-24))}px`,r.style.left=`0px`,r.style.top=`0px`;let n=r.getBoundingClientRect(),i=Math.min(window.innerWidth-n.width-12,Math.max(12,t.left)),a=t.top-n.height-8,o=a>=12?a:Math.min(window.innerHeight-n.height-12,t.bottom+8);r.style.left=`${Math.round(i)}px`,r.style.top=`${Math.round(Math.max(12,o))}px`},u=()=>{c&&window.clearTimeout(c),c=0,o?.removeAttribute(`data-text-disclosure-active`),o=null,r.hidden=!0},d=(e,t)=>{c&&window.clearTimeout(c),o?.removeAttribute(`data-text-disclosure-active`),o=e,e.setAttribute(`data-text-disclosure-active`,`true`),r.textContent=t,r.hidden=!1,l(e)},f=({source:e,target:t,full:r})=>{if(e.setAttribute(`data-text-disclosure`,`true`),a.add(e),i.has(t))return;let s=t.hasAttribute(`tabindex`),l=t.hasAttribute(`role`),f=t.getAttribute(`aria-label`),p=t.getAttribute(`aria-describedby`);s||t.setAttribute(`tabindex`,`0`),!l&&!xt(t)&&t.setAttribute(`role`,`button`),f||t.setAttribute(`aria-label`,r);let m=new Set(ht(p).split(` `).filter(Boolean));m.add(n),t.setAttribute(`aria-describedby`,[...m].join(` `)),t.setAttribute(`data-text-disclosure`,`true`);let h=()=>d(t,r),g=()=>{c=window.setTimeout(u,120)},_=()=>o===t?u():d(t,r),v=e=>{let n=e.key;n===`Escape`&&u(),(n===`Enter`||n===` `)&&!xt(t)&&(e.preventDefault(),d(t,r))};t.addEventListener(`pointerenter`,h),t.addEventListener(`pointerleave`,g),t.addEventListener(`focus`,h),t.addEventListener(`blur`,g),t.addEventListener(`click`,_),t.addEventListener(`keydown`,v),i.set(t,()=>{t.removeEventListener(`pointerenter`,h),t.removeEventListener(`pointerleave`,g),t.removeEventListener(`focus`,h),t.removeEventListener(`blur`,g),t.removeEventListener(`click`,_),t.removeEventListener(`keydown`,v),t.removeAttribute(`data-text-disclosure`),t.removeAttribute(`data-text-disclosure-active`),s||t.removeAttribute(`tabindex`),l||t.removeAttribute(`role`),f||t.removeAttribute(`aria-label`),p===null?t.removeAttribute(`aria-describedby`):t.setAttribute(`aria-describedby`,p)})},p=()=>{s=0;let e=_t(t),n=[];for(let r of t.querySelectorAll(`*`)){let t=St(r,e);t&&n.push(t)}for(let e of n)f(e)},m=()=>{s||=requestAnimationFrame(p)},h=e=>{o&&!o.contains(e.target)&&u()},g=()=>{o&&!r.hidden&&l(o)};m();let _=window.setTimeout(m,700),v=typeof MutationObserver>`u`?null:new MutationObserver(m);v?.observe(t,{childList:!0,subtree:!0});let y=typeof ResizeObserver>`u`?null:new ResizeObserver(m);return y?.observe(t),document.addEventListener(`pointerdown`,h,!0),window.addEventListener(`resize`,g,{passive:!0}),window.addEventListener(`scroll`,g,{passive:!0,capture:!0}),()=>{s&&cancelAnimationFrame(s),c&&window.clearTimeout(c),clearTimeout(_),v?.disconnect(),y?.disconnect(),document.removeEventListener(`pointerdown`,h,!0),window.removeEventListener(`resize`,g),window.removeEventListener(`scroll`,g,!0);for(let e of i.values())e();for(let e of a)e.removeAttribute(`data-text-disclosure`);r.remove()}},[e,t])}function wt(e){if(!e)return;let t=e.parentElement;if(!t)return;let n=()=>{let n=Math.ceil(e.getBoundingClientRect().width);n>0&&t.style.setProperty(`--block-actions-w`,`${n+18}px`)};return n(),B(e,n)}function Tt(e){return e.some(e=>typeof e.section==`string`&&e.section.trim()!==``)}function Et(e){if(!Tt(e))return[{label:``,order:0,standard:e.slice(),deeper:[]}];let t=0,n=new Map;for(let r of e){let e=r.section,i=(typeof e==`string`?e.trim():``)||`__ungrouped__`;if(!n.has(i)){let e=typeof r.order==`number`?r.order:0;n.set(i,{ord:e||++t,standard:[],deeper:[]})}let a=n.get(i),o=r.depth;(typeof o==`number`?o:1)>=2?a.deeper.push(r):a.standard.push(r)}let r=[];for(let[e,t]of n)t.standard.length===0&&t.deeper.length>0&&t.standard.push(t.deeper.shift()),r.push({label:e===`__ungrouped__`?``:e,order:t.ord,standard:t.standard,deeper:t.deeper});return r.sort((e,t)=>e.order-t.order),r}function Dt(e){let t=(0,z.c)(25),{section:n,renderCard:r,readingMode:i}=e,[a,o]=(0,R.useState)(!1),c=i||a,l=n.deeper.length>0,u=`depth-drawer-${n.order}`,d;t[0]!==u||t[1]!==l||t[2]!==c||t[3]!==n.deeper.length||t[4]!==n.label||t[5]!==n.order?(d=n.label&&(0,V.jsxs)(`div`,{className:`depth-section-header`,children:[n.order>0&&(0,V.jsx)(`span`,{className:`depth-section-num`,"aria-hidden":`true`,children:n.order}),(0,V.jsx)(`span`,{className:`depth-section-label`,children:n.label}),l&&(0,V.jsxs)(`button`,{type:`button`,className:`depth-go-deeper`+(c?` is-open`:``),"aria-expanded":c,"aria-controls":u,onClick:()=>o(Ot),children:[(0,V.jsx)(s.arrowDown,{className:`depth-deeper-icon`,"aria-hidden":`true`}),`Go deeper`,(0,V.jsxs)(`span`,{className:`depth-deeper-count`,children:[`(`,n.deeper.length,`)`]})]})]}),t[0]=u,t[1]=l,t[2]=c,t[3]=n.deeper.length,t[4]=n.label,t[5]=n.order,t[6]=d):d=t[6];let f;if(t[7]!==r||t[8]!==n.standard){let e;t[10]===r?e=t[11]:(e=(e,t)=>r(e,t),t[10]=r,t[11]=e),f=n.standard.map(e),t[7]=r,t[8]=n.standard,t[9]=f}else f=t[9];let p;t[12]===f?p=t[13]:(p=(0,V.jsx)(`div`,{className:`card-grid`,children:f}),t[12]=f,t[13]=p);let m;t[14]!==u||t[15]!==l||t[16]!==c||t[17]!==r||t[18]!==n.deeper||t[19]!==n.standard.length?(m=l&&(0,V.jsx)(`div`,{className:`depth-drawer`+(c?` is-open`:``),id:u,"aria-hidden":!c,children:(0,V.jsx)(`div`,{className:`depth-drawer-inner`,children:(0,V.jsx)(`div`,{className:`card-grid depth-drawer-grid`,children:n.deeper.map((e,t)=>r(e,n.standard.length+t))})})}),t[14]=u,t[15]=l,t[16]=c,t[17]=r,t[18]=n.deeper,t[19]=n.standard.length,t[20]=m):m=t[20];let h;return t[21]!==d||t[22]!==p||t[23]!==m?(h=(0,V.jsxs)(`div`,{className:`depth-section`,children:[d,p,m]}),t[21]=d,t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function Ot(e){return!e}function kt(e){let t=(0,z.c)(33),{bend:n}=e,[r,i]=(0,R.useState)(n.param.value),a=n.param.unit??``,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(`span`,{className:`bend-kicker`,children:`BEND IT`}),t[0]=o):o=t[0];let s;t[1]===n.label?s=t[2]:(s=(0,V.jsx)(`span`,{className:`bend-label`,children:n.label}),t[1]=n.label,t[2]=s);let c;t[3]===r?c=t[4]:(c=N(r),t[3]=r,t[4]=c);let l;t[5]===a?l=t[6]:(l=a&&(0,V.jsx)(`em`,{children:a}),t[5]=a,t[6]=l);let u;t[7]!==c||t[8]!==l?(u=(0,V.jsxs)(`span`,{className:`bend-value`,children:[c,l]}),t[7]=c,t[8]=l,t[9]=u):u=t[9];let d;t[10]!==s||t[11]!==u?(d=(0,V.jsxs)(`div`,{className:`bend-head`,children:[o,s,u]}),t[10]=s,t[11]=u,t[12]=d):d=t[12];let f;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>i(Number(e.target.value)),t[13]=f):f=t[13];let p=`Bend ${n.label}`,m;t[14]!==n.param.max||t[15]!==n.param.min||t[16]!==n.param.step||t[17]!==p||t[18]!==r?(m=(0,V.jsx)(`input`,{className:`bend-slider`,type:`range`,min:n.param.min,max:n.param.max,step:n.param.step,value:r,onChange:f,"aria-label":p}),t[14]=n.param.max,t[15]=n.param.min,t[16]=n.param.step,t[17]=p,t[18]=r,t[19]=m):m=t[19];let h;if(t[20]!==n.label||t[21]!==n.outputs||t[22]!==r){let e;t[24]!==n.label||t[25]!==r?(e=e=>{let t=P(e.formula,r);return t===null?null:(0,V.jsxs)(`li`,{title:`= ${e.formula.replaceAll(`x`,`(${n.label})`)}`,children:[(0,V.jsx)(`span`,{className:`bend-out-label`,children:e.label}),(0,V.jsxs)(`span`,{className:`bend-out-value`,children:[N(t),e.unit&&(0,V.jsx)(`em`,{children:e.unit})]})]},e.label)},t[24]=n.label,t[25]=r,t[26]=e):e=t[26],h=n.outputs.map(e),t[20]=n.label,t[21]=n.outputs,t[22]=r,t[23]=h}else h=t[23];let g;t[27]===h?g=t[28]:(g=(0,V.jsx)(`ul`,{className:`bend-outputs`,children:h}),t[27]=h,t[28]=g);let _;return t[29]!==g||t[30]!==d||t[31]!==m?(_=(0,V.jsxs)(`div`,{className:`bend-strip`,"data-bend":!0,children:[d,m,g]}),t[29]=g,t[30]=d,t[31]=m,t[32]=_):_=t[32],_}var At=15e3,jt=5e3;async function Mt(e,t){let n=F(e);if(!n)return{ok:!1,detail:`Unknown action: ${e}`};for(let e of n.params)if(e.required&&!(t[e.name]??``).trim())return{ok:!1,detail:`Missing required field: ${e.name}`};try{let r=JSON.stringify({args:t}),i=await I(`/actions/confirm`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({id:e,args:t})},jt),a=await i.json().catch(()=>({}));if(!i.ok||!a.confirmationToken)return{ok:!1,detail:a.detail||`The action confirmation expired. Please try again.`};let o=await I(`/actions/${encodeURIComponent(e)}`,{method:`POST`,headers:{"content-type":`application/json`,"x-action-confirmation":a.confirmationToken},body:r},At),s=await o.json().catch(()=>({}));return o.ok?{ok:!0,detail:s.detail||`${n.label} — done.`}:{ok:!1,detail:s.detail||`The ${n.mcp} action didn't go through (${o.status}).`}}catch{return{ok:!1,detail:`Couldn't reach the ${n.mcp} connector — is it set up in this deployment?`}}}function Nt({id:e,label:t,args:n={},delay:r=0}){let i=F(e),[a,o]=(0,R.useState)(`idle`),[s,c]=(0,R.useState)(``);if(!i)return null;let l={};for(let[e,t]of Object.entries(n))l[e]=typeof t==`string`?t:t==null?``:String(t);return(0,V.jsxs)(`div`,{className:`card reveal`,style:{animationDelay:`${r}ms`},children:[(0,V.jsx)(`div`,{className:`card-eyebrow`,children:i.label}),(0,V.jsx)(`div`,{style:{fontWeight:600,fontSize:15,marginBottom:10},children:t||i.desc}),(0,V.jsx)(`dl`,{style:{margin:`0 0 12px`,display:`grid`,gap:4},children:i.params.map(e=>{let t=l[e.name];return t?(0,V.jsxs)(`div`,{style:{display:`flex`,gap:8,fontSize:13},children:[(0,V.jsx)(`dt`,{className:`faint`,style:{minWidth:84},children:e.name}),(0,V.jsx)(`dd`,{style:{margin:0},children:t})]},e.name):null})}),a===`done`?(0,V.jsxs)(`div`,{style:{fontSize:13,color:`var(--insight)`},children:[`✓ `,s]}):a===`error`?(0,V.jsx)(`div`,{style:{fontSize:13,color:`var(--warning)`},children:s}):(0,V.jsx)(`button`,{className:`entry-action`,onClick:async()=>{o(`running`);let t=await Mt(e,l);c(t.detail),o(t.ok?`done`:`error`)},disabled:a===`running`,style:{fontSize:13},children:a===`running`?`Working…`:i.cta}),(0,V.jsx)(`div`,{className:`faint`,style:{fontSize:11.5,marginTop:8},children:`Review before confirming. You are responsible for recipients, account changes, irreversible effects, provider terms, charges, and other consequences.`})]})}var Pt=6;function Ft(e,t){return e?.find(e=>e.key===t)}function It(e,t){return!e||e.kind!==`card`?!1:!e.accepts||e.accepts.includes(t)}function Lt(e,t,n){let[r,i]=(0,R.useState)(null),a=(0,R.useRef)(null),o=(0,R.useRef)(null),s=(0,R.useRef)(e);s.current=e;let c=(0,R.useRef)(t);c.current=t;let l=(0,R.useRef)(n);l.current=n;let u=()=>{o.current?.classList.remove(`is-drop-target`),o.current=null},d=(e,t,n)=>{let r=document.elementFromPoint(e,t)?.closest(`[data-blank-key]`)??null,i=r?.getAttribute(`data-blank-key`)??``;return r&&It(Ft(s.current,i),n)?{el:r,key:i}:null};return{handleProps:(0,R.useCallback)(e=>({onPointerDown:t=>{t.button===0&&(a.current={block:e,startX:t.clientX,startY:t.clientY,armed:!1},t.currentTarget.setPointerCapture(t.pointerId))},onPointerMove:e=>{let t=a.current;if(!t)return;if(!t.armed){if(Math.hypot(e.clientX-t.startX,e.clientY-t.startY)<Pt)return;t.armed=!0}i({label:x(t.block),x:e.clientX,y:e.clientY});let n=d(e.clientX,e.clientY,t.block.type);if(o.current&&o.current!==n?.el&&u(),n){let e=n.el.querySelector(`.blank-drop`)??n.el;e.classList.add(`is-drop-target`),o.current=e}},onPointerUp:e=>{let t=a.current;if(a.current=null,i(null),u(),t)if(t.armed){let n=d(e.clientX,e.clientY,t.block.type);n&&c.current(n.key,t.block)}else l.current?.(t.block)}}),[]),ghost:r?(0,V.jsx)(`div`,{className:`card-drag-ghost`,style:{left:r.x,top:r.y},"aria-hidden":!0,children:r.label}):null}}function Rt(e){let t=e.find(e=>e.type===`insight`&&!!e.id);return t?.id?t.id:e.find(e=>!!e.id)?.id??null}var zt=340;function Bt(e){let t=(0,z.c)(9),{block:n,renderBlock:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={width:zt},t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=(0,V.jsx)(b,{block:n}),t[1]=n,t[2]=a);let o;t[3]!==n||t[4]!==r?(o=r(n),t[3]=n,t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==a||t[7]!==o?(s=(0,V.jsx)(`span`,{className:`filmstrip-thumb`,"aria-hidden":`true`,inert:!0,children:(0,V.jsx)(`span`,{className:`filmstrip-thumb-design`,style:i,children:(0,V.jsx)(y,{fallback:a,children:o})})}),t[6]=a,t[7]=o,t[8]=s):s=t[8],s}var Vt=(0,R.memo)(Bt,(e,t)=>e.block===t.block),Ht=24;function Ut(e){let t=(0,z.c)(21),{blocks:n,activeId:r,narratingId:i,onPick:a,renderBlock:o}=e,s=n.slice(0,Ht),c=n.length-s.length,l=(0,R.useRef)(null),u;t[0]===r?u=t[1]:(u=e=>e.id===r,t[0]=r,t[1]=u);let d=Math.max(0,s.findIndex(u)),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=window.setTimeout(()=>{let e=l.current?.querySelector(`.filmstrip-entry.active`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:g()?`auto`:`smooth`})},60);return()=>window.clearTimeout(e)},t[2]=f):f=t[2];let p;t[3]===r?p=t[4]:(p=[r],t[3]=r,t[4]=p),(0,R.useEffect)(f,p);let m=e=>{let t=s.length;if(!t)return;let n=document.activeElement,r=n instanceof HTMLElement?n.dataset.idx:void 0,i=r===void 0?d:Number(r),o;bb37:switch(e.key){case`ArrowDown`:case`ArrowRight`:o=Math.min(t-1,i+1);break bb37;case`ArrowUp`:case`ArrowLeft`:o=Math.max(0,i-1);break bb37;case`Home`:o=0;break bb37;case`End`:o=t-1;break bb37;default:return}e.preventDefault(),l.current?.querySelector(`[data-idx="${o}"]`)?.focus();let c=s[o].id;c&&a(c)},h;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,V.jsx)(`div`,{className:`filmstrip-eyebrow`,children:`In this view`}),t[5]=h):h=t[5];let _;t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==o||t[10]!==d?(_=(e,t)=>{let n=e.id===r,s=!!e.id&&e.id===i;return(0,V.jsxs)(`div`,{role:`button`,"data-idx":t,tabIndex:t===d?0:-1,className:`filmstrip-entry`+(n?` active`:``)+(s?` speaking`:``),"aria-current":n?`true`:void 0,"aria-label":`${S(e)} — ${x(e)}`,onClick:()=>a(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e.id))},children:[(0,V.jsx)(Vt,{block:e,renderBlock:o}),s&&(0,V.jsx)(`span`,{className:`filmstrip-speaking`,"aria-hidden":`true`}),(0,V.jsxs)(`span`,{className:`filmstrip-meta`,children:[(0,V.jsx)(`span`,{className:`filmstrip-kind`,children:S(e)}),(0,V.jsx)(`span`,{className:`filmstrip-title`,children:x(e)})]})]},e.id)},t[6]=r,t[7]=i,t[8]=a,t[9]=o,t[10]=d,t[11]=_):_=t[11];let v=s.map(_),y;t[12]===c?y=t[13]:(y=c>0&&(0,V.jsxs)(`div`,{className:`filmstrip-more`,children:[`+`,c,` more card`,c===1?``:`s`]}),t[12]=c,t[13]=y);let b;t[14]!==m||t[15]!==v||t[16]!==y?(b=(0,V.jsxs)(`div`,{className:`filmstrip-list`,ref:l,role:`toolbar`,onKeyDown:m,children:[v,y]}),t[14]=m,t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;return t[18]!==b||t[19]!==h?(C=(0,V.jsxs)(`aside`,{className:`filmstrip-rail`,"aria-label":`All cards in this view`,children:[h,b]}),t[18]=b,t[19]=h,t[20]=C):C=t[20],C}var Wt=560;function Gt(e){let t=(0,z.c)(93),{data:n,blocks:r,spot:i,renderBlock:a,onAskBlock:o,selectedBlockIds:c,onNarrate:l,narratingId:u,muted:d,walkNotes:f,presenting:p}=e,m;t[0]===r?m=t[1]:(m=r.filter(Kt),t[0]=r,t[1]=m);let h=m,[_,v]=(0,R.useState)(null),S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>v(null),t[2]=S):S=t[2];let C;t[3]===n.id?C=t[4]:(C=[n.id],t[3]=n.id,t[4]=C),(0,R.useEffect)(S,C);let w;t[5]!==l||t[6]!==h?(w=e=>{v(e);let t=h.find(t=>t.id===e);t&&l?.(t)},t[5]=l,t[6]=h,t[7]=w):w=t[7];let T=w,E;t[8]!==_||t[9]!==h||t[10]!==i?(E=(_&&h.some(e=>e.id===_)?_:null)??(i&&h.some(e=>e.id===i)?i:null)??Rt(h),t[8]=_,t[9]=h,t[10]=i,t[11]=E):E=t[11];let D=E,O;t[12]!==D||t[13]!==h?(O=h.find(e=>e.id===D)??h[0],t[12]=D,t[13]=h,t[14]=O):O=t[14];let k=O,[A,j]=(0,R.useState)(null),M=(0,R.useRef)(k?.id??null),N;t[15]===k?.id?N=t[16]:(N=()=>{let e=k?.id??null;if(e===M.current)return;let t=M.current;if(M.current=e,!t||g()){j(null);return}j(t);let n=window.setTimeout(()=>j(null),Wt);return()=>window.clearTimeout(n)},t[15]=k?.id,t[16]=N);let P=k?.id,F;t[17]===P?F=t[18]:(F=[P],t[17]=P,t[18]=F),(0,R.useEffect)(N,F);let I;t[19]!==k||t[20]!==c?(I=!!k?.id&&!!c?.has(k.id),t[19]=k,t[20]=c,t[21]=I):I=t[21];let L=I,ee=!d&&!!k?.id&&u===k.id,te=k?.note||null,ne;t[22]!==k?.id||t[23]!==A||t[24]!==h?(ne=A&&A!==k?.id?h.find(e=>e.id===A):void 0,t[22]=k?.id,t[23]=A,t[24]=h,t[25]=ne):ne=t[25];let re=ne,B;t[26]===k?.id?B=t[27]:(B=e=>e.id===k?.id,t[26]=k?.id,t[27]=B);let H=h.findIndex(B),U;t[28]!==H||t[29]!==T||t[30]!==h?(U=()=>{H>0&&T(h[H-1].id)},t[28]=H,t[29]=T,t[30]=h,t[31]=U):U=t[31];let W=U,ie;t[32]!==H||t[33]!==T||t[34]!==h?(ie=()=>{H<h.length-1&&T(h[H+1].id)},t[32]=H,t[33]=T,t[34]=h,t[35]=ie):ie=t[35];let G=ie,ae,oe;if(t[36]!==G||t[37]!==W||t[38]!==p?(ae=()=>{if(!p)return;let e=e=>{e.key===`ArrowRight`||e.key===`ArrowDown`||e.key===` `?(e.preventDefault(),G()):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),W())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},oe=[p,W,G],t[36]=G,t[37]=W,t[38]=p,t[39]=ae,t[40]=oe):(ae=t[39],oe=t[40]),(0,R.useEffect)(ae,oe),!k)return null;let K,se;if(t[41]!==T||t[42]!==k.id||t[43]!==p||t[44]!==f){let e=!p&&f&&f.length>0?[...f].reverse():null;K=`focus-stage`+(e?` has-notes`:``),se=e&&(0,V.jsxs)(`aside`,{className:`focus-notes`,"aria-label":`Mavéa's notes`,children:[(0,V.jsx)(`div`,{className:`focus-notes-eyebrow`,children:`Mavéa’s notes`}),(0,V.jsx)(`ol`,{className:`focus-notes-list`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsx)(`button`,{type:`button`,className:`focus-note`+(e.spot===k?.id?` active`:``),onClick:()=>T(e.spot),title:`Bring this card back on stage`,children:e.text})},e.spot))})]}),t[41]=T,t[42]=k.id,t[43]=p,t[44]=f,t[45]=K,t[46]=se}else K=t[45],se=t[46];let q;t[47]!==re||t[48]!==a?(q=re&&(0,V.jsx)(`div`,{className:`focus-hero-card focus-out`,"aria-hidden":`true`,children:(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:re}),children:a(re)})},`out-`+re.id),t[47]=re,t[48]=a,t[49]=q):q=t[49];let ce=k.id,le=k.id,J;t[50]===ee?J=t[51]:(J=ee&&(0,V.jsxs)(`div`,{className:`focus-speaking`,"aria-hidden":`true`,children:[(0,V.jsxs)(`span`,{className:`focus-speaking-bars`,children:[(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{}),(0,V.jsx)(`i`,{})]}),`Speaking`]}),t[50]=ee,t[51]=J);let Y;t[52]===k?Y=t[53]:(Y=(0,V.jsx)(b,{block:k}),t[52]=k,t[53]=Y);let X;t[54]!==k||t[55]!==a?(X=a(k),t[54]=k,t[55]=a,t[56]=X):X=t[56];let Z;t[57]!==Y||t[58]!==X?(Z=(0,V.jsx)(y,{fallback:Y,children:X}),t[57]=Y,t[58]=X,t[59]=Z):Z=t[59];let ue;t[60]!==k||t[61]!==L||t[62]!==o?(ue=o&&k.id&&(0,V.jsx)(`div`,{className:`block-actions`,children:(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`+(L?` picked`:``),"aria-pressed":L,"aria-label":L?`Unpin ${x(k)}`:`Ask about ${x(k)}`,onClick:e=>{e.stopPropagation(),o(k)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:L?`Selected`:`Ask`})]})}),t[60]=k,t[61]=L,t[62]=o,t[63]=ue):ue=t[63];let Q;t[64]!==k.id||t[65]!==J||t[66]!==Z||t[67]!==ue?(Q=(0,V.jsxs)(`div`,{className:`focus-hero-card focus-in askable`,"data-spot-id":le,children:[J,Z,ue]},ce),t[64]=k.id,t[65]=J,t[66]=Z,t[67]=ue,t[68]=Q):Q=t[68];let de;t[69]!==q||t[70]!==Q?(de=(0,V.jsxs)(`div`,{className:`focus-hero`,children:[q,Q]}),t[69]=q,t[70]=Q,t[71]=de):de=t[71];let fe;t[72]!==k.id||t[73]!==te?(fe=te&&(0,V.jsx)(`p`,{className:`focus-caption`,"aria-live":`polite`,children:te},`cap-`+k.id),t[72]=k.id,t[73]=te,t[74]=fe):fe=t[74];let $;t[75]!==de||t[76]!==fe?($=(0,V.jsxs)(`div`,{className:`focus-main`,children:[de,fe]}),t[75]=de,t[76]=fe,t[77]=$):$=t[77];let pe;t[78]!==H||t[79]!==G||t[80]!==T||t[81]!==W||t[82]!==k.id||t[83]!==u||t[84]!==p||t[85]!==h||t[86]!==a?(pe=p?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-prev`,onClick:W,disabled:H<=0,"aria-label":`Previous slide`,children:(0,V.jsx)(s.chevL,{})}),(0,V.jsx)(`button`,{type:`button`,className:`present-arrow present-arrow-next`,onClick:G,disabled:H>=h.length-1,"aria-label":`Next slide`,children:(0,V.jsx)(s.chevR,{})}),(0,V.jsx)(`div`,{className:`present-nav`,"aria-label":`Slide navigation`,children:(0,V.jsxs)(`span`,{className:`present-nav-count`,"aria-live":`polite`,"aria-atomic":`true`,children:[H+1,` `,(0,V.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),` `,h.length]})})]}):(0,V.jsx)(Ut,{blocks:h,activeId:k.id??null,narratingId:u??null,onPick:T,renderBlock:a}),t[78]=H,t[79]=G,t[80]=T,t[81]=W,t[82]=k.id,t[83]=u,t[84]=p,t[85]=h,t[86]=a,t[87]=pe):pe=t[87];let me;return t[88]!==K||t[89]!==se||t[90]!==$||t[91]!==pe?(me=(0,V.jsxs)(`div`,{className:K,children:[se,$,pe]}),t[88]=K,t[89]=se,t[90]=$,t[91]=pe,t[92]=me):me=t[92],me}function Kt(e){return!!e.id}var qt=[{mode:`focus`,label:`Focus`},{mode:`everything`,label:`Everything`}];function Jt(e){let t=(0,z.c)(5),{value:n,onChange:r}=e,i;t[0]!==r||t[1]!==n?(i=qt.map(e=>{let t=n===e.mode;return(0,V.jsx)(`button`,{type:`button`,className:`focus-toggle-opt`+(t?` active`:``),"aria-pressed":t,onClick:()=>r(e.mode),children:e.label},e.mode)}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`focus-toggle`,role:`group`,"aria-label":`Canvas view`,children:i}),t[3]=i,t[4]=a),a}var Yt=e({TopicCanvas:()=>on});r();var Xt=(0,R.lazy)(()=>o(()=>import(`./ReplayCard-Bz69tOST.js`).then(e=>e.t).then(e=>({default:e.ReplayCard})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),Zt=1,Qt=1.75,$t=.15,en=1.15;function tn(e){return typeof e!=`number`||!Number.isFinite(e)?6:Math.min(12,Math.max(1,Math.round(e)))}function nn(e,t){return(0,V.jsx)(s[e]||s.layers,{className:`ic`,style:{color:t||`var(--presence)`}})}function rn({block:e,nest:t,spotlight:n,dimmed:r,spot:i,onProve:a,onUnrenderable:o}){let s={delay:e.delay};if(e.type===`composite`){if(t>=2)return null;let n=e.props;return(0,V.jsxs)(`div`,{className:`card reveal cmp-card`,style:{"--delay":(e.delay||0)+`ms`},children:[(0,V.jsxs)(`div`,{className:`card-eyebrow`,children:[n.icon&&nn(n.icon,n.iconColor),` `,n.title]}),(0,V.jsx)(`div`,{className:`cmp-grid`,children:n.regions.map((e,n)=>(0,V.jsx)(`div`,{className:`cmp-cell`,"data-spot-id":e.block.id,"data-kind":e.block.type,style:{"--cmp-span":tn(e.span)},children:(0,V.jsx)(an,{block:e.block,nest:t+1,spotlight:!!e.block.id&&i===e.block.id,dimmed:!!e.block.id&&!!i&&i!==e.block.id,spot:e.block.type===`composite`?i:null,onProve:a,onUnrenderable:o})},n))}),n.footer&&(0,V.jsx)(`div`,{className:`cmp-foot`,children:n.footer})]})}if(e.type===`insight`)return(0,V.jsx)(ge,{num:e.num,...e.props,...s,spotlight:n,dimmed:r,onProve:e.prove?a:void 0});if(e.type===`chart`)return(0,V.jsx)(ve,{...e.props,...s});if(e.type===`breakdown`)return(0,V.jsx)(ye,{...e.props,...s});if(e.type===`timeline`)return(0,V.jsx)(be,{...e.props,...s});if(e.type===`list`)return(0,V.jsx)(Se,{...e.props,...s});if(e.type===`compare`)return(0,V.jsx)(Ce,{...e.props,...s});if(e.type===`ring`)return(0,V.jsx)(Oe,{...e.props,...s});if(e.type===`bars`)return(0,V.jsx)(ke,{...e.props,...s});if(e.type===`stack`)return(0,V.jsx)(Ae,{...e.props,...s});if(e.type===`scatter`)return(0,V.jsx)(je,{...e.props,...s});if(e.type===`heat`)return(0,V.jsx)(Me,{...e.props,...s});if(e.type===`flow`)return(0,V.jsx)(Ne,{...e.props,...s});if(e.type===`web`)return(0,V.jsx)(Pe,{...e.props,...s});if(e.type===`gallery`)return(0,V.jsx)(Re,{...e.props,...s});if(e.type===`codemap`)return(0,V.jsx)(ze,{...e.props,...s});if(e.type===`diff`)return(0,V.jsx)(Be,{...e.props,...s});if(e.type===`checks`)return(0,V.jsx)(Ue,{...e.props,...s});if(e.type===`donut`)return(0,V.jsx)(We,{...e.props,...s});if(e.type===`gauge`)return(0,V.jsx)(Ge,{...e.props,...s});if(e.type===`scoreboard`)return(0,V.jsx)(Ke,{...e.props,...s});if(e.type===`standings`)return(0,V.jsx)(qe,{...e.props,...s});if(e.type===`pipeline`)return(0,V.jsx)(Je,{...e.props,...s});if(e.type===`kpi`)return(0,V.jsx)(Xe,{...e.props,...s});if(e.type===`quotes`)return(0,V.jsx)(Ze,{...e.props,...s});if(e.type===`checklist`)return(0,V.jsx)(Qe,{...e.props,...s});if(e.type===`understand`)return(0,V.jsx)($e,{...e.props,...s});if(e.type===`schema`)return(0,V.jsx)(et,{...e.props,...s});if(e.type===`screenmap`)return(0,V.jsx)(nt,{...e.props,...s});if(e.type===`buildprog`)return(0,V.jsx)(rt,{...e.props,...s});if(e.type===`preview`)return(0,V.jsx)(it,{...e.props,...s});if(e.type===`action`){let t=e.props;return(0,V.jsx)(Nt,{...t,...s})}let c=e,l=u(c.type);if(l){let e=l(c.props,{delay:c.delay,spotlight:n,dimmed:r,blockId:c.id,onUnrenderable:o});return ie.has(c.type)?(0,V.jsx)(U,{children:e}):e}return(0,V.jsx)(b,{block:e})}var an=(0,R.memo)(rn);function on({data:e,spot:t,built:n,onProve:r,onAskBlock:i,onAddToDashboard:a,selectedBlockIds:o,viewMode:c,onViewMode:l,onNarrate:u,narratingId:d,muted:p,noteGutter:h,walkNotes:g,bend:v,onAddToFlashcard:S,flashedIds:C,headerSlot:w,belowHeaderSlot:T,presenting:E,blankFill:D}){let[O,k]=(0,R.useState)(null),[A,j]=(0,R.useState)(!1),[M,N]=(0,R.useState)(null),[P,F]=(0,R.useState)(en);(0,R.useEffect)(()=>{if(!M)return;let e=e=>{e.key===`Escape`&&N(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[M]);let I=(0,R.useRef)(null),[z]=le(),[te,ne]=(0,R.useState)(()=>new Set);(0,R.useEffect)(()=>{ne(e=>e.size?new Set:e)},[e.id]);let re=(0,R.useCallback)(e=>{ne(t=>t.has(e)?t:new Set(t).add(e))},[]),B=(0,R.useMemo)(()=>te.size?e.blocks.filter(e=>!e.id||!te.has(e.id)):e.blocks,[e.blocks,te]),{displayBlocks:H=B,budget:U}=ct(B,I),W=ee(e.blocks),ie=`${e.id}:${W}:${U}`;ft(I,ie),Ct(I,ie);let G=e.blocks.find(e=>e.type===`preview`),ae=G?G.props:null,oe=c!==void 0&&H.filter(e=>!!e.id).length>=2,K=oe&&c===`focus`,se=c!==void 0&&m(e),q=se&&c===`canvas`,ce=(0,R.useRef)(c);ce.current=c,(0,R.useEffect)(()=>{ce.current===`canvas`&&l?.(`everything`)},[e.id,l]);let J=e.blanks?.filter(e=>e.kind===`card`)??[],Y=!!D&&J.length>0,X=Lt(e.blanks,(e,t)=>D?.fill({kind:`card`,key:e,label:x(t),block:t}),e=>{let t=J.find(e=>e.key===D?.activeKey)??J[0];t&&D?.fill({kind:`card`,key:t.key,label:x(e),block:e})}),Z=(0,R.useRef)(r);Z.current=r;let ue=(0,R.useCallback)(()=>Z.current(),[]),Q=e=>(0,V.jsx)(an,{block:e,nest:0,spotlight:!!e.id&&t===e.id,dimmed:!!e.id&&!!t&&t!==e.id,spot:e.type===`composite`?t:null,onProve:ue,onUnrenderable:re}),de=t=>t.kind===`slide`?(0,V.jsx)(Te,{...t.props}):t.kind===`action`?(0,V.jsx)(De,{...t.props,onConfirm:ae?()=>k(ae):void 0}):t.kind===`replay`?(0,V.jsx)(R.Suspense,{fallback:null,children:(0,V.jsx)(Xt,{...t.props,spec:e})}):null,fe=(0,R.useMemo)(()=>Et(H).map(e=>({...e,standard:st(e.standard,U),deeper:st(e.deeper,U)})),[H,U]),$=Tt(H),me=fe.some(e=>e.deeper.length>0),he=(e,n)=>{let r=!!e.id,c=r&&t===e.id,l=r&&!!t&&t!==e.id,u=r&&!!i,d=r&&!!a,f=r&&!!S,p=f&&!!C?.has(e.id),m=u&&!!o?.has(e.id),h=r&&(u||d||f),g=Y&&r&&e.type!==`blanks`;return(0,V.jsxs)(`div`,{className:`col-`+e.col+(c?` spotlit`:``)+(l?` dimmed`:``)+(u?` askable`:``)+(d?` addable`:``)+(f?` flashcardable`:``)+(h?` zoomable`:``)+(m?` picked`:``),"data-spot-id":e.id,"data-kind":e.type,children:[(0,V.jsx)(y,{fallback:(0,V.jsx)(b,{block:e}),children:Q(e)}),v&&v.blockId===e.id&&(0,V.jsx)(kt,{bend:v}),(u||d||f||h||g)&&(0,V.jsxs)(`div`,{className:`block-actions`,ref:wt,children:[g&&(0,V.jsx)(`button`,{type:`button`,className:`card-drag-handle`,title:`Drag ${x(e)} into a slot`,"aria-label":`Use ${x(e)} to fill a slot`,...X.handleProps(e),children:(0,V.jsx)(`span`,{"aria-hidden":!0,children:`⠿`})}),u&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask`,"aria-pressed":m,title:m?`Selected — ask about it below`:`Ask about ${x(e)}`,"aria-label":m?`Unpin ${x(e)}`:`Ask about ${x(e)}`,onClick:t=>{t.stopPropagation(),i(e)},children:[(0,V.jsx)(s.chat,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:m?`Selected`:`Ask`})]}),d&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-ask block-add`,title:`Add ${x(e)} to a dashboard`,"aria-label":`Add ${x(e)} to a dashboard`,onClick:t=>{t.stopPropagation(),a(e)},children:[(0,V.jsx)(s.plus,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Dashboard`})]}),f&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-cards`+(p?` is-flashed`:``),"aria-pressed":p,title:p?`${x(e)} is in your flashcards`:`Make flashcards from ${x(e)}`,"aria-label":`Make flashcards from ${x(e)}`,onClick:t=>{t.stopPropagation(),S(e)},children:[p?(0,V.jsx)(s.check,{}):(0,V.jsx)(s.layers,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:p?`Added`:`Cards`})]}),h&&(0,V.jsxs)(`button`,{type:`button`,className:`block-action-pill block-zoom`,title:`Zoom into ${x(e)}`,"aria-label":`Zoom into ${x(e)}`,onClick:t=>{t.stopPropagation(),N(e),F(en)},children:[(0,V.jsx)(s.zoomIn,{}),(0,V.jsx)(`span`,{className:`block-pill-label`,children:`Zoom`})]})]})]},e.id||n)};return(0,V.jsxs)(L.Provider,{value:D??null,children:[X.ghost,(0,V.jsxs)(`div`,{className:`canvas-header`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`div`,{className:`canvas-title`,children:e.title}),(0,V.jsx)(`div`,{className:`canvas-sub`,children:e.sub})]}),(0,V.jsxs)(`div`,{className:`canvas-header-actions`,children:[w,q?(0,V.jsxs)(`button`,{type:`button`,className:`canvas-exit`,onClick:()=>l?.(`everything`),children:[(0,V.jsx)(`span`,{"aria-hidden":!0,children:`←`}),` Back to answer`]}):(0,V.jsxs)(V.Fragment,{children:[$&&me&&!K&&(0,V.jsx)(`button`,{type:`button`,className:`depth-reading-toggle`+(A?` is-reading`:``),"aria-pressed":A,title:A?`Collapse all deeper sections`:`Expand all deeper sections`,onClick:()=>j(e=>!e),children:A?`Collapse sections`:`Expand sections`}),oe&&l&&(0,V.jsx)(Jt,{value:K?`focus`:`everything`,onChange:l}),se&&l&&(0,V.jsxs)(`button`,{type:`button`,className:`canvas-open`,onClick:()=>l(`canvas`),title:`Spread this answer's cards on a board you can wander`,children:[(0,V.jsx)(`span`,{className:`canvas-open-glyph`,"aria-hidden":!0,children:`◇`}),` `,`View as canvas`]})]})]})]}),T,e.context.length>0&&(0,V.jsxs)(`div`,{className:`context-row`,style:{marginBottom:18},children:[(0,V.jsx)(`span`,{className:`faint`,style:{fontSize:12.5,marginRight:2},children:`Reading`}),e.context.map((e,t)=>(0,V.jsx)(f,{name:e.name,color:e.color},t))]}),W?q?(0,V.jsx)(pe,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onExit:()=>l?.(`everything`)}):K?(0,V.jsx)(Gt,{data:e,blocks:H,spot:t,renderBlock:Q,onAskBlock:i,selectedBlockIds:o,onNarrate:u,narratingId:d,muted:p,walkNotes:g,presenting:E}):(0,V.jsxs)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,children:[$?fe.map((e,t)=>(0,V.jsx)(Dt,{section:e,renderCard:he,readingMode:A},e.label||t)):H.map((e,t)=>he(e,t)),Object.keys(n).filter(t=>n[t]&&e.extras&&e.extras[t]).map(t=>{let n=e.extras[t],r=Math.min(12,Math.max(1,n.col||6));return(0,V.jsx)(`div`,{className:`col-`+(U<9?12:r),children:de(n)},t)})]}):(0,V.jsx)(`div`,{className:`card-grid`+(z?` bloom-on`:``)+(h?` note-gutter`:``),ref:I,role:`status`,"aria-busy":`true`,"aria-label":`Loading visuals`,children:(0,V.jsx)(_,{blocks:H,budget:U})}),e.awaiting&&D?.complete&&(()=>{let t=Object.keys(D.values).length,n=e.blanks?.length??0,r=n>0&&t===n,i=D.busy?`Completing your answer…`:r?`All filled — finish when ready`:t===0?`Fill the blanks above to finish`:`${t} of ${n} filled`;return(0,V.jsxs)(`div`,{className:`blank-complete-bar${D.busy?` is-busy`:``}${r&&!D.busy?` is-ready`:``}`,role:`status`,"aria-live":`polite`,children:[(0,V.jsxs)(`span`,{className:`blank-complete-count`,children:[D.busy&&(0,V.jsx)(`span`,{className:`blank-complete-spinner`,"aria-hidden":`true`}),i]}),(0,V.jsx)(`button`,{type:`button`,className:`blank-complete-btn`,disabled:D.busy||t===0,onClick:D.complete,children:`Complete the answer`})]})})(),O&&(0,V.jsx)(`div`,{className:`app-scrim`,role:`button`,tabIndex:0,"aria-label":`Close app preview`,onClick:()=>k(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),k(null))},children:(0,V.jsxs)(`div`,{className:`app-launch`,role:`button`,tabIndex:0,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`app-launch-head`,children:[(0,V.jsxs)(`span`,{className:`app-launch-title`,children:[O.app,(0,V.jsxs)(`span`,{className:`app-launch-pill`,children:[(0,V.jsx)(`span`,{className:`web-live-dot`}),` Live on your workspace`]})]}),(0,V.jsx)(`button`,{className:`drawer-x`,onClick:()=>k(null),"aria-label":`Close app`,children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`app-launch-body`,children:(0,V.jsx)(it,{...O})})]})}),M&&(0,V.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close zoomed view`,onClick:()=>N(null),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N(null))},children:(0,V.jsxs)(`div`,{className:`zoom-sheet`,role:`button`,tabIndex:0,"aria-label":x(M),onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,V.jsxs)(`div`,{className:`zoom-sheet-toolbar`,children:[(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom out`,disabled:P<=Zt,onClick:()=>F(e=>Math.max(Zt,+(e-$t).toFixed(2))),children:(0,V.jsx)(s.zoomOut,{})}),(0,V.jsxs)(`span`,{className:`zoom-sheet-zoom-level`,children:[Math.round(P*100),`%`]}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-zoom-btn`,"aria-label":`Zoom in`,disabled:P>=Qt,onClick:()=>F(e=>Math.min(Qt,+(e+$t).toFixed(2))),children:(0,V.jsx)(s.zoomIn,{})}),(0,V.jsx)(`button`,{type:`button`,className:`zoom-sheet-x`,"aria-label":`Close`,onClick:()=>N(null),children:(0,V.jsx)(s.x,{})})]}),(0,V.jsx)(`div`,{className:`zoom-sheet-body`,style:{zoom:P},children:Q(M)})]})})]})}export{Yt as n,on as t};
|