@mavea/mavea 1.0.7 → 1.0.9
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/README.md +5 -3
- package/bin/mavea.mjs +42 -17
- package/dist/.vite/manifest.json +675 -670
- package/dist/assets/{AppCommandPalette-DUMSp3rd.js → AppCommandPalette-D5E8xhEf.js} +1 -1
- package/dist/assets/{AtlasView-Dl2fssaG.js → AtlasView-Q4dqhS4v.js} +1 -1
- package/dist/assets/{BlockEmpty-CLtVQf6c.js → BlockEmpty-JoKwTRb0.js} +1 -1
- package/dist/assets/{BriefingPlayer-DO205Qkh.js → BriefingPlayer-BaC5XjsP.js} +1 -1
- package/dist/assets/{CanvasSkeleton-BZZPCuRZ.js → CanvasSkeleton-DgF1b-bW.js} +2 -2
- package/dist/assets/{CheckLogRail-wUfby67Z.js → CheckLogRail-DldWYeVr.js} +1 -1
- package/dist/assets/{CodeOutput-Kh6ldxQz.js → CodeOutput-B9_a0vjD.js} +1 -1
- package/dist/assets/{CommandPalette-Kl00mMZm.js → CommandPalette-C1eiRrMP.js} +1 -1
- package/dist/assets/{CourseLessonReader-MBHoknUz.js → CourseLessonReader-DA3t9SUe.js} +2 -2
- package/dist/assets/{CourseRail-q6x5cCpW.js → CourseRail-BaP1uB0B.js} +1 -1
- package/dist/assets/{CoursesApp-v89OVJvg.js → CoursesApp-MSK1JzqU.js} +2 -2
- package/dist/assets/{CrossExamPanel-DH04p6VS.js → CrossExamPanel-jJu-Mqvs.js} +1 -1
- package/dist/assets/{DashPresent-BYXbPuGj.js → DashPresent-Coj1b9Bp.js} +1 -1
- package/dist/assets/{DashboardDetail-B50ZkeVK.js → DashboardDetail-CHw4HfHp.js} +2 -2
- package/dist/assets/DashboardLoopRuntime-bSH-LDQM.js +1 -0
- package/dist/assets/{DashboardOverview-C-FdGWM5.js → DashboardOverview-CfsSZAgN.js} +1 -1
- package/dist/assets/{DashboardSettings-Dmw6JTbI.js → DashboardSettings-BkSQvDt6.js} +1 -1
- package/dist/assets/{DashboardsApp-JSY_bVfi.js → DashboardsApp-BmcjQZqP.js} +2 -2
- package/dist/assets/{DeepZoomApp-BFNwli7l.js → DeepZoomApp-BKhVz2w1.js} +1 -1
- package/dist/assets/{DelegatePanel-BK7rEhIc.js → DelegatePanel-BFKvKzB-.js} +1 -1
- package/dist/assets/{DemoGallery-BPtVG7_y.js → DemoGallery-0cgMcGir.js} +1 -1
- package/dist/assets/{DropSelect-DUhdQSta.js → DropSelect-CJnpoHtR.js} +1 -1
- package/dist/assets/{ExportModal-D65cGyj_.js → ExportModal-DbWt9b6v.js} +2 -2
- package/dist/assets/{ExtractionPreview-Iwfg2Ogl.js → ExtractionPreview-DTAyeKIx.js} +1 -1
- package/dist/assets/{FeatureUseNotice-DPtQ0OGb.js → FeatureUseNotice-CoK5HkbR.js} +1 -1
- package/dist/assets/FeatureUseNotice-CsCxxfOl.css +1 -0
- package/dist/assets/{FlagshipCTA-BXntKhxb.js → FlagshipCTA-EfqXfhO2.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-BDJfasI-.js → FlagshipCommandPalette-CUgzggi1.js} +1 -1
- package/dist/assets/{FlagshipShowcase-DJ8Gxk_G.js → FlagshipShowcase-BHe-31yE.js} +1 -1
- package/dist/assets/{FlashcardsApp-CLNo4WX7.js → FlashcardsApp-Cs7PORkH.js} +1 -1
- package/dist/assets/{ForecastPanel-PBO2-dgS.js → ForecastPanel-BrfHS_Dm.js} +1 -1
- package/dist/assets/{GalleryApp-DM03CMRy.js → GalleryApp-VEc5loz4.js} +1 -1
- package/dist/assets/{HonestByDesign-Dqyth6nW.js → HonestByDesign-DsAzveYU.js} +1 -1
- package/dist/assets/{HowItWorks-C0zosIvq.js → HowItWorks-_ek4B7ia.js} +1 -1
- package/dist/assets/{LegalApp-DZBdExTy.js → LegalApp-jexr9Ljt.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-CSZhRG5r.js → LegalMarkdownDocument-01Tz7Pp4.js} +1 -1
- package/dist/assets/{LegalPageShell-DTeXqWyc.js → LegalPageShell-DsgBihfP.js} +1 -1
- package/dist/assets/{LeverPanel-aZfhtVJX.js → LeverPanel-IONjaat2.js} +1 -1
- package/dist/assets/{Library-D2XGNXz7.js → Library-gY4a_JKb.js} +1 -1
- package/dist/assets/{LibraryOverlay-B2WQSgwr.js → LibraryOverlay-DdOW7ypW.js} +1 -1
- package/dist/assets/LiveApp-CvgisDd0.js +61 -0
- package/dist/assets/{LiveApp-BVZGpJ1S.css → LiveApp-D2QFBykD.css} +1 -1
- package/dist/assets/LiveSettings-sWIu-zl5.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-YYyZqmAd.js → MindMapViewerDrawer--AOShADD.js} +1 -1
- package/dist/assets/{MindShape-mTlN5mPZ.js → MindShape-DDL4X-e5.js} +1 -1
- package/dist/assets/{PinToDashboard-_kIOHs0k.js → PinToDashboard-DBZjKpiA.js} +1 -1
- package/dist/assets/{PlanReview-33V8GTNB.js → PlanReview-D0KjJqji.js} +1 -1
- package/dist/assets/{Presence-CzLJIeSD.js → Presence-DZC81_y4.js} +1 -1
- package/dist/assets/{PresentationDeck-BDoGecxr.js → PresentationDeck-DHtbOg0G.js} +1 -1
- package/dist/assets/{PrismApp-PfBTFhMF.js → PrismApp-DQ5p9pDb.js} +2 -2
- package/dist/assets/{PrismAskController-DbQDrlU9.js → PrismAskController-KVoYxV_d.js} +1 -1
- package/dist/assets/{PrismBriefingPlayer-1fvlfLR8.js → PrismBriefingPlayer-X4nTg2tZ.js} +2 -2
- package/dist/assets/{PrismOverlay-B7lEspdu.js → PrismOverlay-DJ-JBI6j.js} +4 -4
- package/dist/assets/{PrivacyApp-CR4lRs0L.js → PrivacyApp-Df8FcjKa.js} +1 -1
- package/dist/assets/{Recap-H5fhj5Tc.js → Recap-D3nAqmLK.js} +1 -1
- package/dist/assets/{ReelJelly-3jSVsJsy.js → ReelJelly-BCMS6a1u.js} +1 -1
- package/dist/assets/{RehearsalPanel-BVgjrOPg.js → RehearsalPanel-CThmKYOO.js} +1 -1
- package/dist/assets/ReplayCard-B5njgafT.js +2 -0
- package/dist/assets/{ReplayOverlay-DXmVdeIr.js → ReplayOverlay-CKTMSGuA.js} +1 -1
- package/dist/assets/{RewindOverlay-BusfWeFq.js → RewindOverlay-D6TQvplO.js} +1 -1
- package/dist/assets/{RippleApp-9KrJPYgN.js → RippleApp-DCAveryn.js} +2 -2
- package/dist/assets/{RippleAskController-CO9wE7hU.js → RippleAskController-DQVRFV30.js} +1 -1
- package/dist/assets/{RippleOverlay-DMHLbfh8.js → RippleOverlay-DmC4C72P.js} +2 -2
- package/dist/assets/{SeeDontRead-C389viue.js → SeeDontRead-CzIEW_Y7.js} +1 -1
- package/dist/assets/ShareModal-DtXKAwWu.js +32 -0
- package/dist/assets/{ShipCascade-BUtwvQoW.js → ShipCascade-B71VnE85.js} +1 -1
- package/dist/assets/{ShipCourse-B7lG6DYW.js → ShipCourse-BS4lT6xe.js} +1 -1
- package/dist/assets/{ShipHotspots-Bj2CovtT.js → ShipHotspots-CGQN_uoM.js} +1 -1
- package/dist/assets/{ShipIncident-DcmindmE.js → ShipIncident-C--FrQ1N.js} +1 -1
- package/dist/assets/{ShipMigration-s0hVjDQl.js → ShipMigration-C4fE3pL7.js} +1 -1
- package/dist/assets/{ShipOnboarding-ekbHL7OH.js → ShipOnboarding-BR3iwj8v.js} +1 -1
- package/dist/assets/{ShipRead-BVNgQT6L.js → ShipRead-DYHgvWuI.js} +1 -1
- package/dist/assets/{ShipRollout-BdUQzMyP.js → ShipRollout-D-vQsNmF.js} +1 -1
- package/dist/assets/{ShipSuggestions-B6fKYh8L.js → ShipSuggestions-BICGN1lD.js} +1 -1
- package/dist/assets/{ShipWorkspace-3D3Rrs1p.js → ShipWorkspace-CVkhvrlm.js} +1 -1
- package/dist/assets/{SignatureLoop-C60r8Wm5.js → SignatureLoop-BwCgKOcz.js} +1 -1
- package/dist/assets/{SynthesisApp-vJ2Jq0Qe.js → SynthesisApp-DHKlVoSg.js} +2 -2
- package/dist/assets/{SynthesisOverlay-CkERphvG.js → SynthesisOverlay-ezT4gd3q.js} +1 -1
- package/dist/assets/{TermsApp-C70tW6m6.js → TermsApp-uGgQFz8d.js} +1 -1
- package/dist/assets/{TopicCanvas-CT0eSj2M.js → TopicCanvas-CTTBp5sg.js} +2 -2
- package/dist/assets/{TourPrism-BvucSkcs.js → TourPrism-dXsE-USz.js} +1 -1
- package/dist/assets/{TrackerTile-CasZNmt4.js → TrackerTile-bEni07HA.js} +2 -2
- package/dist/assets/{TwoSurfaces-C90X7Aj5.js → TwoSurfaces-CjFg-pUQ.js} +1 -1
- package/dist/assets/{UnderstoodPanel-CHPD2Ttj.js → UnderstoodPanel-DFKf9Y3r.js} +1 -1
- package/dist/assets/{WhyMachineOverlay-CB0_n6Sy.js → WhyMachineOverlay-DYG-WIjA.js} +1 -1
- package/dist/assets/{WowFeatures-Ci_H5QYX.js → WowFeatures-lLtU2gPc.js} +1 -1
- package/dist/assets/{ZoomDeck-BQHO79ZU.js → ZoomDeck-D_PnwGAY.js} +1 -1
- package/dist/assets/{alternateFinishes-DZ-rkpkX.js → alternateFinishes-CPbjDTTL.js} +1 -1
- package/dist/assets/{annotationAuto-B0nihA4F.js → annotationAuto-Dq2Ae6Co.js} +1 -1
- package/dist/assets/{annotationReel-BcU9Q0Sw.js → annotationReel-5OHglRgk.js} +1 -1
- package/dist/assets/backup-DnPfX6cD.js +1 -0
- package/dist/assets/canvas-DBaJcTKZ.js +1 -0
- package/dist/assets/{catalog-Dqaq2YFd.js → catalog-C_g3qPPQ.js} +1 -1
- package/dist/assets/chapters-BX_F_H3C.js +1 -0
- package/dist/assets/{dashboardEvents-DR9d_c74.js → dashboardEvents-DCQLIdy6.js} +2 -2
- package/dist/assets/{dist-BFx3nZg4.js → dist-DrPlQeYR.js} +1 -1
- package/dist/assets/{fit-0HxU-rtB.js → fit-DqcemO7k.js} +1 -1
- package/dist/assets/{generateLive-D4B30fnF.js → generateLive-CflgZ7Wt.js} +18 -18
- package/dist/assets/homeTarget-BcZYH3DY.js +1 -0
- package/dist/assets/{index-y8GL67bB.js → index-BlCH2LG4.js} +3 -3
- package/dist/assets/{jspdf.es.min-C-Pf79px.js → jspdf.es.min-C9encxHf.js} +1 -1
- package/dist/assets/kokoro-BCXTWbLb.js +1 -0
- package/dist/assets/{lib-VFqp6Y3w.js → lib-3J_9keOc.js} +1 -1
- package/dist/assets/{liveSchema-CJ49PX5R.js → liveSchema-DNg9x7Wk.js} +3 -2
- package/dist/assets/{mastery-BPjxP0fN.js → mastery-D7xYf5D7.js} +1 -1
- package/dist/assets/{motion-S0NRruNj.js → motion-BYK1NIl0.js} +1 -1
- package/dist/assets/{neighborhoods-C-1Tjr1r.js → neighborhoods-B0woY8Ah.js} +1 -1
- package/dist/assets/{notes-lROPCorS.js → notes-0ZgJ597y.js} +1 -1
- package/dist/assets/{pdf-Df7PCH7q.js → pdf-DuD2LFXS.js} +1 -1
- package/dist/assets/{perfProbe-COAp9PAa.js → perfProbe-CTSVS7u0.js} +1 -1
- package/dist/assets/{pin-CXSuPJYL.js → pin-zUYIWzGr.js} +1 -1
- package/dist/assets/{portal-DMw7C32j.js → portal-deBu1VaC.js} +1 -1
- package/dist/assets/{pptxgen.es-CvTILmV9.js → pptxgen.es-JvVtQi0_.js} +1 -1
- package/dist/assets/{prewarm--whjQhWJ.js → prewarm-DSFwU9lQ.js} +1 -1
- package/dist/assets/{quietHours-BvcsBKKK.js → quietHours-BJAGhffA.js} +1 -1
- package/dist/assets/{registry-BPvIPLke.js → registry-45IskpHI.js} +1 -1
- package/dist/assets/{registry-2v0jlh5Q.js → registry-BGptAE_J.js} +2 -2
- package/dist/assets/{registry-D_URPoL4.js → registry-BJ_F0mH5.js} +1 -1
- package/dist/assets/{registry-B8DStMJk.js → registry-BSewKzG5.js} +1 -1
- package/dist/assets/{registry-DUvXX_d0.js → registry-Bo9A1rtO.js} +1 -1
- package/dist/assets/{registry-CKjKq6ct.js → registry-BpXS6B5V.js} +1 -1
- package/dist/assets/{registry-aazwkBJp.js → registry-BvJYizNq.js} +1 -1
- package/dist/assets/{registry-DCI_BeFJ.js → registry-C1y9zCwl.js} +1 -1
- package/dist/assets/{registry-Buq5uuCv.js → registry-CS0QdcT2.js} +1 -1
- package/dist/assets/{registry-B940W2j5.js → registry-Caz06xkK.js} +1 -1
- package/dist/assets/{registry-Cg7qUZPS.js → registry-CmEE2X59.js} +1 -1
- package/dist/assets/{registry-DujBAgn_.js → registry-D5sMUiCn.js} +1 -1
- package/dist/assets/{registry-Cix-yqch.js → registry-DLnp7IOd.js} +1 -1
- package/dist/assets/{registry-DDLSYDVA.js → registry-DOsi_pfu.js} +1 -1
- package/dist/assets/{registry-BgGeRiDA.js → registry-DWpOzObR.js} +1 -1
- package/dist/assets/{registry-Dpb8EXHn.js → registry-DilxWEq7.js} +1 -1
- package/dist/assets/{registry-DJinB5ye.js → registry-Dn10bL9p.js} +1 -1
- package/dist/assets/{registry-zRPjWNl5.js → registry-DtJTiMeL.js} +1 -1
- package/dist/assets/{registry-CEVrY72Z.js → registry-FPqHPyMt.js} +1 -1
- package/dist/assets/{registry-DI1wSG1Y.js → registry-PAcF90vq.js} +1 -1
- package/dist/assets/{registry-CAusoyBh.js → registry-eoPQWB7M.js} +1 -1
- package/dist/assets/{registry-1GuPBfQK.js → registry-k5Lqb0OP.js} +1 -1
- package/dist/assets/{registry-QcULZpdE.js → registry-yQqBxBwc.js} +2 -2
- package/dist/assets/{relate-A9ZeaaAI.js → relate-B23jli7z.js} +1 -1
- package/dist/assets/{run-C_0B_41W.js → run-Dc2ZJz6n.js} +1 -1
- package/dist/assets/search-Be63DJkp.js +1 -0
- package/dist/assets/shapes-Cw7tCHIp.js +1 -0
- package/dist/assets/{shikiHighlight-DUCYbsJ2.js → shikiHighlight-ZFDUBGQi.js} +1 -1
- package/dist/assets/{store-DgG0C1Qx.js → store-BMRQiV1z.js} +1 -1
- package/dist/assets/{store-BFC7DZcg.js → store-Dn23_Ymr.js} +1 -1
- package/dist/assets/{store-BFrJaSxJ.js → store-DoJn3lBF.js} +1 -1
- package/dist/assets/{store-4JNNn732.js → store-DrBDvqXF.js} +1 -1
- package/dist/assets/threads-DxSb3F0U.js +1 -0
- package/dist/assets/{useDashboardLoop-B6ByHWoE.js → useDashboardLoop-8emjL6b-.js} +3 -3
- package/dist/assets/useLiveConfig-BhFHwoy3.js +1 -0
- package/dist/assets/{useSpatialCanvas-DogK9457.js → useSpatialCanvas-DZhSpnC6.js} +1 -1
- package/dist/assets/{useSpotlightWalk-rMbmNBKK.js → useSpotlightWalk-sP3ePKv0.js} +1 -1
- package/dist/assets/{useSrsCards-CagZefwX.js → useSrsCards-BHQHQ7hm.js} +1 -1
- package/dist/assets/{useStudy-Bflreq2a.js → useStudy-Dh598Dw8.js} +1 -1
- package/dist/assets/{useZoomGesture-CYc3tf2z.js → useZoomGesture-CQdTOGD2.js} +1 -1
- package/dist/index.html +1 -1
- package/docs/media/mascot-dark.svg +53 -0
- package/docs/media/mascot-light.svg +53 -0
- package/package.json +2 -1
- package/dist/assets/DashboardLoopRuntime-CFXPx3v_.js +0 -1
- package/dist/assets/FeatureUseNotice-CWt7gOwS.css +0 -1
- package/dist/assets/LiveApp-B9zwXlGC.js +0 -61
- package/dist/assets/LiveSettings-D9OcWlm6.js +0 -6
- package/dist/assets/ReplayCard-BpYO5vX-.js +0 -2
- package/dist/assets/ShareModal-ClnEkudw.js +0 -32
- package/dist/assets/backup-c-Btapzp.js +0 -1
- package/dist/assets/canvas-QTEIiK23.js +0 -1
- package/dist/assets/chapters-BiUsDClQ.js +0 -1
- package/dist/assets/homeTarget-BgWKI_E1.js +0 -1
- package/dist/assets/kokoro-D4GKpSL0.js +0 -1
- package/dist/assets/search-DnjHupRf.js +0 -1
- package/dist/assets/shapes-RqjqC0ay.js +0 -1
- package/dist/assets/useLiveConfig-X9Wxh90k.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./richText-BkxJhl9N.js";import{i as a}from"./scale-Bcgfo6Hp.js";import{r as o}from"./lib-VFqp6Y3w.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{n as c}from"./sourceHost-BV3t2XDb.js";var l=t(),u=n(),d=480,f=200,p=20,m=d-p*2,h=f-p*2-24,g=[`Exposition`,`Rising Action`,`Climax`,`Falling Action`,`Dénouement`],_=[0,.2,.5,.8,1],v=[.08,.45,1,.5,.1],y=[{label:`Act I — Setup`,x0:0,x1:.25},{label:`Act II — Confrontation`,x0:.25,x1:.75},{label:`Act III — Resolution`,x0:.75,x1:1}],b=[{x:.25,label:`Plot Point I`},{x:.75,label:`Plot Point II`}],x=[`Ordinary World`,`Call`,`Refusal`,`Mentor`,`Crossing`,`Tests`,`Innermost Cave`,`Ordeal`,`Reward`,`Road Back`,`Resurrection`,`Return`],S=[{label:`Opening Image`,pct:1},{label:`Theme Stated`,pct:5},{label:`Set-up`,pct:10},{label:`Catalyst`,pct:12},{label:`Debate`,pct:20},{label:`Break into 2`,pct:25},{label:`B Story`,pct:30},{label:`Fun & Games`,pct:50},{label:`Midpoint`,pct:50},{label:`Bad Guys Close In`,pct:62.5},{label:`All Is Lost`,pct:75},{label:`Dark Night`,pct:80},{label:`Break into 3`,pct:87},{label:`Finale`,pct:95},{label:`Final Image`,pct:99}],C=e=>p+e*m,w=e=>p+(1-e)*h,T=22;function E(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function D(e,t){let n=e.trim().toLowerCase(),r=t.findIndex(e=>e.toLowerCase()===n);return r>=0?r:t.findIndex(e=>e.toLowerCase().includes(n)||n.includes(e.toLowerCase()))}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,framework:a,beats:o,caption:s,footer:c,delay:p}){let m=r[t]??r.layers,h=(0,l.useMemo)(()=>{let e=o??[];return a===`freytag`?te(e):a===`threeact`?ne(e):a===`herojourney`?re(e):a===`savethecat`?ie(e):null},[a,o]),g={freytag:`Freytag Pyramid`,threeact:`Three-Act Structure`,herojourney:`Hero's Journey`,savethecat:`Save the Cat`};return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`sa-framework-label`,children:g[a]??a}),(0,u.jsx)(`div`,{className:`sa-wrap`,children:(0,u.jsx)(`svg`,{className:`sa-svg`,viewBox:`0 0 ${d} ${f}`,role:`img`,"aria-label":`${g[a]??a} story structure`,preserveAspectRatio:`xMidYMid meet`,children:h})}),s&&(0,u.jsx)(`div`,{className:`block-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}function te(e){let t=_.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`).join(` `),n=[`${C(0).toFixed(1)},${w(0).toFixed(1)}`,..._.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`),`${C(1).toFixed(1)},${w(0).toFixed(1)}`].join(` `),r=e.map((e,t)=>{let n=D(e.stage,g);if(n<0)return null;let r=_[n],i=v[n],a=C(r),o=w(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:a,cy:o,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:a,y:o-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),i=f-6;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`polygon`,{points:n,className:`sa-fill`}),(0,u.jsx)(`polyline`,{points:t,fill:`none`,className:`sa-curve`}),(0,u.jsx)(`line`,{x1:C(0),y1:w(0),x2:C(1),y2:w(0),className:`sa-baseline`}),g.map((e,t)=>{let n=t===0?`start`:t===g.length-1?`end`:`middle`;return(0,u.jsx)(`text`,{x:C(_[t]),y:i,textAnchor:n,className:`sa-stage-lbl`,children:e},t)}),r]})}function ne(e){let t=[`color-mix(in oklab, var(--presence) 12%, transparent)`,`color-mix(in oklab, var(--warning) 12%, transparent)`,`color-mix(in oklab, var(--insight) 12%, transparent)`],n=f-6,r=e.map((e,t)=>{let n=D(e.stage,y.map(e=>e.label));if(n<0)return null;let r=y[n],i=C((r.x0+r.x1)/2),a=w(.5);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:i,cy:a,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:i,y:a-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[y.map((e,n)=>(0,u.jsx)(`rect`,{x:C(e.x0),y:p,width:m*(e.x1-e.x0),height:h,fill:t[n],className:`sa-act-rect`},n)),b.map((e,t)=>(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:C(e.x),y1:p,x2:C(e.x),y2:w(0),className:`sa-transition`}),(0,u.jsx)(`text`,{x:C(e.x),y:32,textAnchor:`middle`,className:`sa-transition-lbl`,children:e.label})]},t)),y.map((e,t)=>(0,u.jsx)(`text`,{x:C((e.x0+e.x1)/2),y:n,textAnchor:`middle`,className:`sa-stage-lbl`,children:e.label},t)),r]})}function re(e){let t=x.length,n=h*.42,r=d/2,i=x.map((e,i)=>{let a=2*Math.PI*i/t-Math.PI/2;return{x:r+n*Math.cos(a),y:110+n*Math.sin(a),lx:r+83.12*Math.cos(a),ly:110+83.12*Math.sin(a),angle:a}}),a=e.map((e,t)=>{let n=D(e.stage,x);if(n<0)return null;let r=i[n];return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:r.x,cy:r.y,r:5,className:`sa-beat-dot-hero`}),(0,u.jsxs)(`text`,{x:r.lx,y:r.ly,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),o=i.map((e,t)=>t===0?`M ${e.x.toFixed(1)},${e.y.toFixed(1)}`:`L ${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)+` Z`;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`circle`,{cx:r,cy:110,r:n,fill:`none`,className:`sa-circle-guide`}),(0,u.jsx)(`path`,{d:o,fill:`none`,className:`sa-circle-path`}),i.map((e,t)=>{let n=e.lx<r-10?`end`:e.lx>250?`start`:`middle`;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:3.5,className:`sa-stage-dot`}),(0,u.jsx)(`text`,{x:e.lx,y:e.ly+4,textAnchor:n,className:`sa-hj-lbl`,children:x[t]})]},t)}),a,(0,u.jsx)(`text`,{x:r-n-18,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(-90 ${r-n-18} 110)`,children:`DEPARTURE`}),(0,u.jsx)(`text`,{x:r,y:28,textAnchor:`middle`,className:`sa-arc-lbl`,children:`INITIATION`}),(0,u.jsx)(`text`,{x:315.12,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(90 315.12 110)`,children:`RETURN`})]})}function ie(e){let t=w(.5),n=e.map((e,n)=>{let r=D(e.stage,S.map(e=>e.label)),i=r>=0?S[r].pct/100:-1;if(i<0)return null;let a=C(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:a,y1:t-16,x2:a,y2:t+6,className:`sa-stc-pin`}),(0,u.jsxs)(`text`,{x:a,y:t-22,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},n)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`rect`,{x:p,y:t-4,width:m,height:8,rx:4,className:`sa-stc-bar`}),[25,75].map((e,n)=>(0,u.jsx)(`line`,{x1:C(e/100),y1:t-20,x2:C(e/100),y2:t+20,className:`sa-stc-break`},n)),S.map((e,n)=>{let r=C(e.pct/100),i=n%2==0;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:r,y1:t-4,x2:r,y2:i?t-10:t+10,className:`sa-stc-tick`}),(0,u.jsx)(`text`,{x:r,y:i?t-16:t+22,textAnchor:`middle`,className:`sa-stc-lbl`,children:e.label})]},n)}),[0,25,50,75,100].map(e=>(0,u.jsxs)(`text`,{x:C(e/100),y:f-4,textAnchor:`middle`,className:`sa-pct-lbl`,children:[e,`%`]},e)),n]})}var O={metaphor:`color-mix(in oklab, var(--presence) 25%, transparent)`,simile:`color-mix(in oklab, var(--insight) 25%, transparent)`,alliteration:`color-mix(in oklab, var(--warning) 22%, transparent)`,irony:`color-mix(in oklab, var(--danger) 20%, transparent)`,anaphora:`color-mix(in oklab, var(--presence) 35%, transparent)`,hyperbole:`color-mix(in oklab, var(--warning) 32%, transparent)`,personification:`color-mix(in oklab, var(--insight) 30%, transparent)`,allusion:`color-mix(in oklab, var(--presence) 18%, transparent)`,parallelism:`color-mix(in oklab, var(--insight) 22%, transparent)`,antithesis:`color-mix(in oklab, var(--danger) 25%, transparent)`,oxymoron:`color-mix(in oklab, var(--warning) 28%, transparent)`,repetition:`color-mix(in oklab, var(--presence) 20%, transparent)`,chiasmus:`color-mix(in oklab, var(--insight) 28%, transparent)`,assonance:`color-mix(in oklab, var(--warning) 18%, transparent)`,other:`color-mix(in oklab, var(--text-muted) 22%, transparent)`},k={metaphor:`var(--presence)`,simile:`var(--insight)`,alliteration:`var(--warning)`,irony:`var(--danger)`,anaphora:`var(--presence)`,hyperbole:`var(--warning)`,personification:`var(--insight)`,allusion:`var(--presence)`,parallelism:`var(--insight)`,antithesis:`var(--danger)`,oxymoron:`var(--warning)`,repetition:`var(--presence)`,chiasmus:`var(--insight)`,assonance:`var(--warning)`,other:`var(--text-muted)`};function ae(e,t){let n=[...t].sort((e,t)=>t.phrase.length-e.phrase.length),r=[];for(let t of n){let n=e.toLowerCase(),i=t.phrase.toLowerCase(),a=0;for(;a<n.length;){let o=n.indexOf(i,a);if(o<0)break;r.some(e=>o<e.end&&o+t.phrase.length>e.start)||r.push({start:o,end:o+t.phrase.length,device:t.device,phrase:e.slice(o,o+t.phrase.length),note:t.note}),a=o+1}}r.sort((e,t)=>e.start-t.start);let i=[],a=0;for(let t of r)t.start>a&&i.push({kind:`plain`,text:e.slice(a,t.start)}),i.push({kind:`marked`,text:t.phrase,device:t.device,note:t.note}),a=t.end;return a<e.length&&i.push({kind:`plain`,text:e.slice(a)}),i.length?i:[{kind:`plain`,text:e}]}function oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,text:a,marks:o,caption:s,footer:c,delay:d}){let f=r[t]??r.doc,p=(0,l.useMemo)(()=>o??[],[o]),m=(0,l.useMemo)(()=>ae(a,p),[a,p]),h=(0,l.useMemo)(()=>[...new Set(p.map(e=>e.device))],[p]);return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`p`,{className:`dm-passage`,children:m.map((e,t)=>e.kind===`plain`?e.text:(0,u.jsx)(`span`,{className:`dm-mark`,style:{"--dm-bg":O[e.device]??O.other,"--dm-border":k[e.device]??k.other},title:e.note?`${e.device}: ${e.note}`:e.device,"aria-label":`${e.text} [${e.device}${e.note?`: `+e.note:``}]`,children:e.text},t))}),h.length>0&&(0,u.jsx)(`div`,{className:`dm-legend`,children:h.map(e=>{let t=O[e]??O.other,n=k[e]??k.other,r=p.find(t=>t.device===e&&t.note);return(0,u.jsxs)(`span`,{className:`dm-legend-item`,children:[(0,u.jsx)(`span`,{className:`dm-legend-swatch`,style:{"--dm-bg":t,"--dm-border":n}}),(0,u.jsxs)(`span`,{className:`dm-legend-label`,children:[e[0].toUpperCase()+e.slice(1),r&&(0,u.jsxs)(`span`,{className:`dm-legend-note`,children:[` — `,r.note]})]})]},e)})}),s&&(0,u.jsx)(`div`,{className:`block-caption dm-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}var se={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`},ce={info:`spark`,success:`check`,warn:`alert`,danger:`shield`,neutral:`doc`};function le({title:e,icon:t,iconColor:n,tone:a=`info`,kicker:o,body:s,points:c,collapsed:d=!1,footer:f,delay:p}){let[m,h]=(0,l.useState)(!d),g=se[a],_=r[t??ce[a]]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal lay-callout`,style:{"--delay":(p||0)+`ms`,"--lc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n||g}}),` `,e]}),(0,u.jsxs)(`button`,{className:`lay-co-band`,type:`button`,onClick:()=>h(e=>!e),"aria-expanded":m,children:[(0,u.jsx)(`span`,{className:`lay-co-bar`}),(0,u.jsx)(_,{className:`ic lay-co-kic-ic`,style:{color:g}}),(0,u.jsx)(`span`,{className:`lay-co-kicker`,children:o||a}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:m?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-co-body ${m?`open`:``}`,children:(0,u.jsxs)(`div`,{className:`lay-co-inner`,children:[(0,u.jsx)(`div`,{className:`lay-co-text`,dangerouslySetInnerHTML:i(s)}),c&&c.length>0&&(0,u.jsx)(`ul`,{className:`lay-co-points`,children:c.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.chevR,{className:`ic lay-co-pt-ic`,style:{color:g}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]})}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var A={yes:{color:`var(--insight)`,label:`Yes`,icon:`check`},no:{color:`var(--danger)`,label:`No`,icon:`x`},maybe:{color:`var(--warning)`,label:`Maybe`,icon:`alert`},caution:{color:`var(--warning)`,label:`Be careful`,icon:`alert`}},ue={high:`High confidence`,medium:`Medium confidence`,low:`Low confidence`},de={high:3,medium:2,low:1};function fe({title:e,icon:t,iconColor:n,verdict:a,stance:o=`maybe`,label:s,reason:c,caveat:l,confidence:d,footer:f,delay:p}){let m=A[o]??A.maybe,h=r[t??m.icon]||r.spark,g=r[m.icon]||r.check;return(0,u.jsxs)(`div`,{className:`card reveal lay-verdict`,style:{"--delay":(p||0)+`ms`,"--vc":m.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n||m.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-vd-head`,children:[(0,u.jsxs)(`span`,{className:`lay-vd-badge`,children:[(0,u.jsx)(g,{className:`ic lay-vd-badge-ic`}),s||m.label]}),d&&(0,u.jsxs)(`span`,{className:`lay-vd-conf`,children:[(0,u.jsx)(`span`,{className:`lay-vd-dots`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,u.jsx)(`span`,{className:`lay-vd-dot ${e<de[d]?`on`:``}`},e))}),ue[d]]})]}),(0,u.jsx)(`div`,{className:`lay-vd-verdict`,dangerouslySetInnerHTML:i(a)}),c&&(0,u.jsxs)(`div`,{className:`lay-vd-reason`,children:[(0,u.jsx)(`span`,{className:`lay-vd-tag`,children:`Why`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(c)})]}),l&&(0,u.jsxs)(`div`,{className:`lay-vd-caveat`,children:[(0,u.jsx)(r.alert,{className:`ic lay-vd-caveat-ic`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(l)})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var pe={best:{color:`var(--insight)`,label:`Best case`},likely:{color:`var(--presence)`,label:`Likely`},worst:{color:`var(--danger)`,label:`Worst case`}};function me({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:a,scenarios:o,highlight:s,footer:c,delay:l}){let d=r[t]||r.chart,f=s??o.findIndex(e=>e.kind===`likely`);return(0,u.jsxs)(`div`,{className:`card reveal lay-scenarios`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-sc-metric faint`,children:a}),(0,u.jsx)(`div`,{className:`lay-sc-grid`,children:o.map((e,t)=>{let n=(e.kind?pe[e.kind]:void 0)??{color:`var(--text-muted)`,label:e.label||`Scenario`};return(0,u.jsxs)(`div`,{className:`lay-sc-panel ${t===f?`hi`:``}`,style:{"--sc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-sc-bar`}),(0,u.jsx)(`span`,{className:`lay-sc-label`,children:e.label||n.label}),(0,u.jsx)(`span`,{className:`lay-sc-value`,children:e.value}),e.detail&&(0,u.jsx)(`span`,{className:`lay-sc-detail faint`,dangerouslySetInnerHTML:i(e.detail)}),e.points&&e.points.length>0&&(0,u.jsx)(`ul`,{className:`lay-sc-points`,children:e.points.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`span`,{className:`lay-sc-pt-dot`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function he({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,sections:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-acc-list`,children:a.map((e,t)=>{let a=p.has(t),o=e.icon?r[e.icon]:null;return(0,u.jsxs)(`div`,{className:`lay-acc-item ${a?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-acc-head`,onClick:()=>h(t),"aria-expanded":a,children:[o&&(0,u.jsx)(o,{className:`ic lay-acc-lead`,style:{color:e.tagColor||n}}),(0,u.jsx)(`span`,{className:`lay-acc-label`,children:e.label}),e.tag&&(0,u.jsx)(`span`,{className:`lay-acc-tag`,style:e.tagColor?{color:e.tagColor,borderColor:`currentColor`}:void 0,children:e.tag}),e.meta&&(0,u.jsx)(`span`,{className:`lay-acc-meta`,children:e.meta}),(0,u.jsx)(r.arrowDown,{className:`ic lay-acc-chev`,style:{transform:a?`rotate(180deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-acc-body ${a?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-acc-body-inner`,dangerouslySetInnerHTML:i(e.body)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function j({side:e,label:t,items:n,accent:a,hover:o,setHover:s}){let c=e===`pro`?r.check:r.x;return(0,u.jsxs)(`div`,{className:`lay-pc-col`,style:{"--pc":a},children:[(0,u.jsxs)(`div`,{className:`lay-pc-head`,children:[(0,u.jsx)(c,{className:`ic`,style:{color:a}}),(0,u.jsx)(`span`,{children:t}),(0,u.jsx)(`span`,{className:`lay-pc-count tab-num`,children:n.length})]}),(0,u.jsx)(`ul`,{className:`lay-pc-list`,children:n.map((t,n)=>{let r=o?.side===e&&o.i===n,l=Math.max(1,Math.min(5,t.weight??3));return(0,u.jsxs)(`li`,{className:`lay-pc-item ${r?`on`:``}`,onMouseEnter:()=>s({side:e,i:n}),onMouseLeave:()=>s(null),children:[(0,u.jsx)(c,{className:`ic lay-pc-mark`,style:{color:a}}),(0,u.jsxs)(`div`,{className:`lay-pc-body`,children:[(0,u.jsx)(`span`,{className:`lay-pc-text`,dangerouslySetInnerHTML:i(t.text)}),(0,u.jsx)(`span`,{className:`lay-pc-pips`,"aria-label":`weight ${l} of 5`,children:[0,1,2,3,4].map(e=>(0,u.jsx)(`span`,{className:`lay-pc-pip ${e<l?`fill`:``}`,style:{background:e<l?a:void 0}},e))}),t.note&&r&&(0,u.jsx)(`span`,{className:`lay-pc-note faint`,dangerouslySetInnerHTML:i(t.note)})]})]},n)})})]})}function ge({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prosLabel:a=`Pros`,consLabel:o=`Cons`,pros:s,cons:c,verdict:d,footer:f,delay:p}){let m=r[t]||r.layers,[h,g]=(0,l.useState)(null),_=s.reduce((e,t)=>e+(t.weight??3),0),v=c.reduce((e,t)=>e+(t.weight??3),0),y=_/(_+v||1)*100;return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-pc-grid`,children:[(0,u.jsx)(j,{side:`pro`,label:a,items:s,accent:`var(--insight)`,hover:h,setHover:g}),(0,u.jsx)(`div`,{className:`lay-pc-divider`}),(0,u.jsx)(j,{side:`con`,label:o,items:c,accent:`var(--danger)`,hover:h,setHover:g})]}),(0,u.jsxs)(`div`,{className:`lay-pc-verdict`,children:[(0,u.jsxs)(`div`,{className:`lay-pc-vbar`,children:[(0,u.jsx)(`span`,{className:`lay-pc-vbar-l`,style:{width:y+`%`}}),(0,u.jsx)(`span`,{className:`lay-pc-vbar-r`,style:{width:100-y+`%`}})]}),(0,u.jsxs)(`div`,{className:`lay-pc-vrow`,children:[(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--insight)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:_}),` for`]}),d?(0,u.jsx)(`span`,{className:`lay-pc-vtext`,dangerouslySetInnerHTML:i(d)}):(0,u.jsx)(`span`,{className:`lay-pc-vtext faint`,children:y>=50?`Leans for`:`Leans against`}),(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--danger)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:v}),` against`]})]})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function _e({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,heading:a,items:o,footer:s,delay:c}){let d=r[t]||r.spark,[f,p]=(0,l.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),h=o.length?Math.round(f.size/o.length*100):0;return(0,u.jsxs)(`div`,{className:`card reveal lay-ta`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-ta-heading`,children:a}),(0,u.jsx)(`ol`,{className:`lay-ta-list`,children:o.map((e,t)=>{let n=e.color||`var(--presence)`,a=f.has(t);return(0,u.jsxs)(`li`,{className:`lay-ta-item ${a?`done`:``}`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-ta-num`,style:{"--tc":n},onClick:()=>m(t),"aria-pressed":a,children:a?(0,u.jsx)(r.check,{className:`ic`}):(0,u.jsx)(`span`,{className:`tab-num`,children:t+1})}),(0,u.jsxs)(`div`,{className:`lay-ta-body`,children:[(0,u.jsx)(`span`,{className:`lay-ta-text`,dangerouslySetInnerHTML:i(e.text)}),e.detail&&(0,u.jsx)(`span`,{className:`lay-ta-detail faint`,dangerouslySetInnerHTML:i(e.detail)})]})]},t)})}),(0,u.jsxs)(`div`,{className:`lay-ta-foot`,children:[(0,u.jsx)(`div`,{className:`lay-ta-track`,children:(0,u.jsx)(`span`,{className:`lay-ta-fill`,style:{width:h+`%`}})}),(0,u.jsxs)(`span`,{className:`lay-ta-pct tab-num faint`,children:[f.size,`/`,o.length]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function ve({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,items:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.chat,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-faq-list`,children:a.map((e,t)=>{let n=p.has(t);return(0,u.jsxs)(`div`,{className:`lay-faq-item ${n?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-faq-q`,onClick:()=>h(t),"aria-expanded":n,children:[(0,u.jsx)(r.plus,{className:`ic lay-faq-sign`,style:{transform:n?`rotate(45deg)`:`none`}}),(0,u.jsx)(`span`,{className:`lay-faq-q-text`,dangerouslySetInnerHTML:i(e.q)}),e.tag&&(0,u.jsx)(`span`,{className:`lay-faq-tag`,children:e.tag})]}),(0,u.jsx)(`div`,{className:`lay-faq-a ${n?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-faq-a-inner`,dangerouslySetInnerHTML:i(e.a)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ye({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tabs:a,defaultTab:o=0,accent:s=`var(--presence)`,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(Math.max(0,Math.min(o,a.length-1))),h=a[p],g=(0,l.useRef)([]),_=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%a.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+a.length)%a.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=a.length-1;else return;e.preventDefault(),m(n),g.current[n]?.focus()},v=Math.max(1,a.length);return(0,u.jsxs)(`div`,{className:`card reveal lay-tabs`,style:{"--delay":(d||0)+`ms`,"--tab-acc":s},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-tab-bar`,role:`tablist`,children:[a.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,u.jsxs)(`button`,{ref:e=>{g.current[t]=e},role:`tab`,type:`button`,className:`lay-tab ${t===p?`on`:``}`,"aria-selected":t===p,tabIndex:t===p?0:-1,onClick:()=>m(t),onKeyDown:e=>_(e,t),children:[n&&(0,u.jsx)(n,{className:`ic lay-tab-ic`}),(0,u.jsx)(`span`,{children:e.label}),e.badge!=null&&(0,u.jsx)(`span`,{className:`lay-tab-badge tab-num`,children:e.badge})]},t)}),(0,u.jsx)(`span`,{className:`lay-tab-underline`,style:{width:`${100/v}%`,transform:`translateX(${p*100}%)`}})]}),(0,u.jsx)(`div`,{className:`lay-tab-panel`,role:`tabpanel`,children:h&&(0,u.jsx)(`div`,{className:`lay-tab-body`,dangerouslySetInnerHTML:i(h.body)})},p),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,eyebrow:a,heading:o,sub:s,badge:c,badgeColor:d=`var(--presence)`,chips:f,footer:p,delay:m}){let h=r[t]||r.layers,[g,_]=(0,l.useState)(0);return(0,u.jsxs)(`div`,{className:`card reveal lay-div`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-div-main`,children:[(0,u.jsxs)(`div`,{className:`lay-div-head`,children:[a&&(0,u.jsx)(`div`,{className:`lay-div-eyebrow`,children:a}),(0,u.jsx)(`div`,{className:`lay-div-heading`,children:o})]}),c&&(0,u.jsx)(`span`,{className:`lay-div-badge tab-num`,style:{"--bc":d},children:c})]}),(0,u.jsxs)(`div`,{className:`lay-div-rule`,children:[(0,u.jsx)(`span`,{className:`lay-div-rule-line`}),(0,u.jsx)(`span`,{className:`lay-div-rule-dot`,style:{background:d}}),(0,u.jsx)(`span`,{className:`lay-div-rule-line`})]}),s&&(0,u.jsx)(`div`,{className:`lay-div-sub`,dangerouslySetInnerHTML:i(s)}),f&&f.length>0&&(0,u.jsx)(`div`,{className:`lay-div-chips`,children:f.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,u.jsx)(`button`,{type:`button`,className:`lay-div-chip ${t===g?`on`:``}`,style:{"--cc":n},onClick:()=>_(t),children:e.label},t)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}var N={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`};function P({title:e,icon:t=`quote`,iconColor:n,quote:a,author:o,role:s,tone:c=`info`,variants:d,footer:f,delay:p}){let m=r[t]||r.quote,h=N[c],g=[{quote:a,author:o,role:s},...d||[]],[_,v]=(0,l.useState)(0),y=g[_];return(0,u.jsxs)(`div`,{className:`card reveal lay-pq`,style:{"--delay":(p||0)+`ms`,"--pq":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`lay-pq-fig`,children:[(0,u.jsx)(`span`,{className:`lay-pq-bar`}),(0,u.jsx)(r.quote,{className:`ic lay-pq-mark`,style:{color:h}}),(0,u.jsx)(`blockquote`,{className:`lay-pq-quote`,dangerouslySetInnerHTML:i(y.quote)},_),(y.author||y.role)&&(0,u.jsxs)(`figcaption`,{className:`lay-pq-cap`,children:[y.author&&(0,u.jsx)(`span`,{className:`lay-pq-author`,children:y.author}),y.role&&(0,u.jsx)(`span`,{className:`lay-pq-role faint`,children:y.role})]})]}),g.length>1&&(0,u.jsxs)(`div`,{className:`lay-pq-nav`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e-1+g.length)%g.length),"aria-label":`previous quote`,children:(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}})}),(0,u.jsx)(`span`,{className:`lay-pq-dots`,children:g.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-dot ${t===_?`on`:``}`,onClick:()=>v(t),"aria-label":`quote ${t+1}`},t))}),(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e+1)%g.length),"aria-label":`next quote`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function be({title:e,icon:t=`slides`,iconColor:n=`var(--presence)`,panels:a,start:o=0,footer:s,delay:c}){let d=r[t]||r.slides,f=Math.max(0,a.length-1),[p,m]=(0,l.useState)(Math.max(0,Math.min(o,f))),h=a[p],g=h?.color||`var(--presence)`,_=h?.icon?r[h.icon]:r.spark,v=Math.max(1,a.length),y=e=>m(t=>Math.max(0,Math.min(f,t+e)));return(0,u.jsxs)(`div`,{className:`card reveal lay-story`,style:{"--delay":(c||0)+`ms`,"--sc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-story-stage`,children:(0,u.jsxs)(`div`,{className:`lay-story-panel`,children:[(0,u.jsx)(`div`,{className:`lay-story-badge`,style:{background:g},children:(0,u.jsx)(_,{className:`ic`})}),(0,u.jsxs)(`div`,{className:`lay-story-num tab-num`,children:[p+1,(0,u.jsxs)(`span`,{className:`lay-story-of`,children:[`/ `,v]})]}),(0,u.jsx)(`div`,{className:`lay-story-heading`,children:h?.heading}),h?.caption&&(0,u.jsx)(`div`,{className:`lay-story-caption faint`,children:h.caption}),(0,u.jsx)(`div`,{className:`lay-story-body`,dangerouslySetInnerHTML:i(h?.body||``)})]})},p),(0,u.jsx)(`div`,{className:`lay-story-track`,children:a.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-story-tick ${t===p?`on`:``} ${t<p?`past`:``}`,style:{"--tk":e.color||`var(--presence)`},onClick:()=>m(t),"aria-label":`panel ${t+1}`},t))}),(0,u.jsxs)(`div`,{className:`lay-story-nav`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn`,onClick:()=>y(-1),disabled:p===0,children:[(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}}),` Back`]}),(0,u.jsxs)(`span`,{className:`lay-story-pos faint tab-num`,children:[p+1,` of `,v]}),(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn accent`,onClick:()=>y(1),disabled:p===f,children:[`Next `,(0,u.jsx)(r.chevR,{className:`ic`})]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var F=[{key:`setup`,label:`Setup`,icon:`doc`,color:`var(--text-muted)`},{key:`action`,label:`Action`,icon:`play`,color:`var(--presence)`},{key:`result`,label:`Result`,icon:`chart`,color:`var(--insight)`},{key:`lesson`,label:`Lesson`,icon:`spark`,color:`var(--warning)`}];function xe({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,subject:a,setup:o,action:s,result:c,lesson:d,defaultStage:f=`result`,footer:p,delay:m}){let h=r[t]||r.proof,g={setup:o,action:s,result:c,lesson:d},[_,v]=(0,l.useState)(f);return(0,u.jsxs)(`div`,{className:`card reveal lay-cs`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-cs-subject`,children:a}),(0,u.jsx)(`div`,{className:`lay-cs-stages`,children:F.map((e,t)=>{let n=g[e.key],a=r[e.icon],o=_===e.key;return(0,u.jsxs)(`div`,{className:`lay-cs-stage ${o?`open`:``}`,style:{"--st":e.color},children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-cs-head`,onClick:()=>v(e.key),"aria-expanded":o,children:[(0,u.jsxs)(`span`,{className:`lay-cs-rail`,children:[(0,u.jsx)(`span`,{className:`lay-cs-node`,children:(0,u.jsx)(a,{className:`ic`})}),t<F.length-1&&(0,u.jsx)(`span`,{className:`lay-cs-line`})]}),(0,u.jsx)(`span`,{className:`lay-cs-label`,children:e.label}),n.metric&&(0,u.jsx)(`span`,{className:`lay-cs-metric tab-num`,children:n.metric}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:o?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-cs-body ${o?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-cs-body-inner`,dangerouslySetInnerHTML:i(n.body)})})]},e.key)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}function Se(e){return e.replace(/<[^>]*>/g,``)}function Ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,placeholder:a=`Filter terms…`,items:o,footer:s,delay:c}){let d=r[t]||r.doc,[f,p]=(0,l.useState)(``),m=(0,l.useMemo)(()=>{let e=f.trim().toLowerCase();return e?o.map((e,t)=>({it:e,i:t})).filter(({it:t})=>(t.term+` `+Se(t.def)+` `+(t.tag||``)).toLowerCase().includes(e)):o.map((e,t)=>({it:e,i:t}))},[f,o]);return(0,u.jsxs)(`div`,{className:`card reveal lay-dl`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`label`,{className:`lay-dl-search`,children:[(0,u.jsx)(r.eye,{className:`ic lay-dl-search-ic`}),(0,u.jsx)(`input`,{className:`lay-dl-input`,type:`text`,value:f,placeholder:a,onChange:e=>p(e.target.value)}),f&&(0,u.jsx)(`button`,{type:`button`,className:`lay-dl-clear`,onClick:()=>p(``),"aria-label":`clear`,children:(0,u.jsx)(r.x,{className:`ic`})}),(0,u.jsx)(`span`,{className:`lay-dl-count tab-num faint`,children:m.length})]}),(0,u.jsxs)(`dl`,{className:`lay-dl-list`,children:[m.map(({it:e,i:t})=>(0,u.jsxs)(`div`,{className:`lay-dl-item`,children:[(0,u.jsxs)(`dt`,{className:`lay-dl-term`,children:[(0,u.jsx)(`span`,{className:`lay-dl-dot`,style:{background:e.color||`var(--presence)`}}),(0,u.jsx)(`span`,{className:`lay-dl-term-text`,children:e.term}),e.tag&&(0,u.jsx)(`span`,{className:`lay-dl-tag`,children:e.tag})]}),(0,u.jsx)(`dd`,{className:`lay-dl-def`,dangerouslySetInnerHTML:i(e.def)})]},t)),m.length===0&&(0,u.jsxs)(`div`,{className:`lay-dl-empty faint`,children:[(0,u.jsx)(r.eyeOff,{className:`ic`}),` No terms match “`,f,`”.`]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var I={"worth-it":{color:`var(--insight)`,label:`Worth it`,icon:`check`},skip:{color:`var(--danger)`,label:`Skip it`,icon:`x`},depends:{color:`var(--warning)`,label:`Depends`,icon:`alert`}};function we({title:e,icon:t,iconColor:n,product:a,verdict:o,price:s,priceNote:c,worthItIf:l,skipIf:d,dealBreaker:f,forWho:p,bottomLine:m,footer:h,delay:g}){let _=I[o]??I.depends,v=r[t??`cart`]||r.cart,y=r[_.icon]||r.check,b=l??[],x=d??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--wi":_.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(v,{className:`ic`,style:{color:n||_.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`wi-head`,children:[(0,u.jsxs)(`div`,{className:`wi-head-l`,children:[a&&(0,u.jsx)(`div`,{className:`wi-product`,children:a}),s&&(0,u.jsxs)(`div`,{className:`wi-price`,children:[(0,u.jsx)(`span`,{className:`wi-price-val`,children:s}),c&&(0,u.jsx)(`span`,{className:`wi-price-note`,children:c})]})]}),(0,u.jsxs)(`span`,{className:`wi-badge`,children:[(0,u.jsx)(y,{className:`ic wi-badge-ic`}),` `,_.label]})]}),(b.length>0||x.length>0)&&(0,u.jsxs)(`div`,{className:`wi-split`,children:[b.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--yes`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Worth it if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:b.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.check,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]}),x.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--no`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Skip if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:x.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.x,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]})]}),f&&(0,u.jsxs)(`div`,{className:`wi-dealbreaker`,children:[(0,u.jsx)(r.alert,{className:`ic`}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`b`,{children:`Deal-breaker:`}),` `,f]})]}),(p||m)&&(0,u.jsxs)(`div`,{className:`wi-bottom`,children:[p&&(0,u.jsxs)(`div`,{className:`wi-forwho`,children:[(0,u.jsx)(`span`,{className:`wi-forwho-tag`,children:`For`}),` `,p]}),m&&(0,u.jsx)(`div`,{className:`wi-bottomline`,dangerouslySetInnerHTML:i(m)})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}function Te({reflection:e,follow:t,chip:n,delay:r}){return(0,u.jsxs)(`div`,{className:`card reveal cn-card`,style:{"--delay":(r||0)+`ms`},children:[(0,u.jsx)(`p`,{className:`cn-reflection`,children:e}),t&&(0,u.jsx)(`p`,{className:`cn-follow`,children:t}),n&&(0,u.jsx)(`span`,{className:`cn-chip`,children:n})]})}var L={good:`var(--insight)`,caution:`var(--warning)`,bad:`var(--danger)`};function Ee({title:e,icon:t=`alert`,iconColor:n,levels:a,atLevel:o,marker:s,reason:c,watchFor:l,caveat:d,footer:f,delay:p}){let m=r[t]||r.alert,h=a??[],g=typeof o==`number`?Math.max(0,Math.min(h.length-1,o)):-1,_=g>=0?h[g]:void 0,v=_?.tone?L[_.tone]:`var(--presence)`,y=l??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||v}}),` `,e]}),(0,u.jsx)(`div`,{className:`pc-track`,children:h.map((e,t)=>(0,u.jsx)(`div`,{className:`pc-seg`+(t===g?` on`:``),style:{"--pc":e.tone?L[e.tone]:`var(--text-muted)`}},t))}),(0,u.jsx)(`div`,{className:`pc-labels`,children:h.map((e,t)=>(0,u.jsx)(`span`,{className:`pc-label`+(t===g?` on`:``),children:e.label},t))}),_&&(0,u.jsxs)(`div`,{className:`pc-current`,style:{"--pc":v},children:[(0,u.jsx)(`span`,{className:`pc-marker`,children:s||`Where this falls`}),(0,u.jsx)(`div`,{className:`pc-cur-label`,children:_.label}),_.detail&&(0,u.jsx)(`div`,{className:`pc-cur-detail`,children:_.detail})]}),c&&(0,u.jsx)(`div`,{className:`pc-reason`,children:c}),y.length>0&&(0,u.jsxs)(`div`,{className:`pc-watch`,children:[(0,u.jsxs)(`div`,{className:`pc-watch-h`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` Get it checked if`]}),(0,u.jsx)(`ul`,{className:`pc-watch-list`,children:y.map((e,t)=>(0,u.jsx)(`li`,{children:e},t))})]}),d&&(0,u.jsx)(`div`,{className:`pc-caveat`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var De={common:{label:`Common`,color:`var(--insight)`},"less-common":{label:`Less common`,color:`var(--warning)`},rare:{label:`Rare`,color:`var(--text-muted)`}};function Oe({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,causes:a,prompt:o,caveat:s,footer:c,delay:l}){let d=r[t]||r.eye,f=a??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`df-list`,children:f.map((e,t)=>{let n=e.likelihood?De[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`df-cause`,children:[(0,u.jsxs)(`div`,{className:`df-head`,children:[(0,u.jsx)(`span`,{className:`df-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`df-name`,children:e.name}),n&&(0,u.jsx)(`span`,{className:`df-band`,style:{"--db":n.color},children:n.label}),e.serious&&(0,u.jsxs)(`span`,{className:`df-serious`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` serious`]})]}),e.tell&&(0,u.jsxs)(`div`,{className:`df-tell`,children:[(0,u.jsx)(`span`,{className:`df-tag df-tag--fit`,children:`Fits if`}),` `,e.tell]}),e.pointsAway&&(0,u.jsxs)(`div`,{className:`df-away`,children:[(0,u.jsx)(`span`,{className:`df-tag`,children:`Points away`}),` `,e.pointsAway]})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`df-prompt`,children:[(0,u.jsx)(r.check,{className:`ic`}),(0,u.jsx)(`span`,{children:o})]}),s&&(0,u.jsx)(`div`,{className:`df-caveat`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ke({title:e=`A gentler take`,icon:t=`spark`,iconColor:n=`var(--presence)`,thought:a,distortion:o,reframe:s,footer:c,delay:l}){let d=r[t]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal rf-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rf-thought`,children:[(0,u.jsx)(`div`,{className:`rf-tag`,children:`What you're telling yourself`}),(0,u.jsxs)(`p`,{className:`rf-quote`,children:[(0,u.jsx)(r.quote,{className:`ic rf-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(a)})]}),o&&(0,u.jsx)(`span`,{className:`rf-distortion`,children:o})]}),(0,u.jsxs)(`div`,{className:`rf-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`rf-shift-line`}),(0,u.jsx)(r.spark,{className:`ic rf-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rf-shift-line`})]}),(0,u.jsxs)(`div`,{className:`rf-reframe`,children:[(0,u.jsx)(`div`,{className:`rf-tag rf-tag--true`,children:`What's also true`}),(0,u.jsx)(`p`,{className:`rf-counter`,dangerouslySetInnerHTML:i(s)})]}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var R={478:{inhale:4,hold:7,exhale:8},box:{inhale:4,hold:4,exhale:4},calm:{inhale:4,hold:0,exhale:6}};function Ae({title:e=`Breathe with me`,icon:t=`wind`,iconColor:n=`var(--presence)`,pattern:i=`calm`,inhale:a,hold:o,exhale:s,note:c,delay:l}){let d=r[t]||r.wind,f=R[i]??R.calm,p=z(a??f.inhale,2,12),m=z(o??f.hold,0,12),h=z(s??f.exhale,2,14),g=p+m+h,_=m>0,v=p/g,y=(p+m)/g;return(0,u.jsxs)(`div`,{className:`card reveal bp-card`,style:{"--delay":(l||0)+`ms`,"--bp-cycle":g+`s`,"--bp-in-end":B(v),"--bp-hold-end":B(y),"--bp-accent":n},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`bp-stage`,role:`img`,"aria-label":`Breathing pacer: ${je(p,m,h)}`,children:[(0,u.jsx)(`div`,{className:`bp-ring`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`bp-orb`})}),(0,u.jsxs)(`div`,{className:`bp-caption`,"aria-hidden":`true`,children:[(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--in`,children:[`Breathe in`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[p,`s`]})]}),_&&(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--hold`,children:[`Hold`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[m,`s`]})]}),(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--out`,children:[`Breathe out`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[h,`s`]})]})]})]}),(0,u.jsx)(`p`,{className:`bp-still`,children:Me(p,m,h)}),c&&(0,u.jsx)(`div`,{className:`bp-note`,children:c})]})}function z(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function B(e){return(e*100).toFixed(2)+`%`}function je(e,t,n){return t>0?`in ${e} seconds, hold ${t}, out ${n}`:`in ${e} seconds, out ${n}`}function Me(e,t,n){return t>0?`In through your nose for ${e}, hold for ${t}, out slowly for ${n}. Repeat a few times at your own pace.`:`In through your nose for ${e}, then out slowly for ${n}. Repeat a few times at your own pace.`}var Ne={low:{label:`Easy`,color:`var(--insight)`},medium:{label:`Some effort`,color:`var(--presence)`},high:{label:`A reach`,color:`var(--warning)`}};function Pe({title:e=`Things you could try`,icon:t=`spark`,iconColor:n=`var(--presence)`,intro:a=`Pick whatever feels possible — you don't have to do all of them.`,options:o,footer:s,delay:c}){let l=r[t]||r.spark,d=o??[];return(0,u.jsxs)(`div`,{className:`card reveal cpm-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`cpm-intro`,children:a}),(0,u.jsx)(`ul`,{className:`cpm-list`,children:d.map((e,t)=>{let n=e.effort?Ne[e.effort]:void 0,i=e.icon?r[e.icon]:void 0;return(0,u.jsxs)(`li`,{className:`cpm-opt`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-mark`,"aria-hidden":`true`,children:i?(0,u.jsx)(i,{className:`ic cpm-opt-ic`,style:{width:15,height:15}}):(0,u.jsx)(`span`,{className:`cpm-dot`})}),(0,u.jsxs)(`div`,{className:`cpm-opt-body`,children:[(0,u.jsxs)(`div`,{className:`cpm-opt-head`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-label`,children:e.label}),e.time&&(0,u.jsxs)(`span`,{className:`cpm-tag cpm-tag--time`,children:[(0,u.jsx)(r.clock,{className:`ic cpm-tag-ic`,style:{width:11,height:11}}),e.time]}),n&&(0,u.jsx)(`span`,{className:`cpm-tag cpm-tag--effort`,style:{"--cm":n.color},children:n.label})]}),e.detail&&(0,u.jsx)(`p`,{className:`cpm-opt-detail`,children:e.detail})]})]},t)})}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var Fe={"most likely":{label:`Most likely`,color:`var(--insight)`},possible:{label:`Possible`,color:`var(--warning)`},"less likely":{label:`Less likely`,color:`var(--text-muted)`}};function Ie({title:e,icon:t,iconColor:n,flavor:a=`tone`,message:o,readings:s,cantKnow:c,reply:l,footer:d,delay:f}){let p=a===`caution`,m=r[t??(p?`shield`:`chat`)]||r.chat,h=n||(p?`var(--warning)`:`var(--presence)`),g=s??[];return(0,u.jsxs)(`div`,{className:`card reveal sbd-card`,style:{"--delay":(f||0)+`ms`,"--sd":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`sbd-msg`,children:[(0,u.jsx)(`span`,{className:`sbd-msg-bar`}),(0,u.jsx)(r.quote,{className:`ic sbd-msg-mark`,style:{width:22,height:22}}),(0,u.jsx)(`blockquote`,{className:`sbd-msg-text`,children:o})]}),g.length>0&&(0,u.jsx)(`ol`,{className:`sbd-readings`,children:g.map((e,t)=>{let n=e.likelihood?Fe[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`sbd-reading`,children:[(0,u.jsxs)(`div`,{className:`sbd-reading-head`,children:[(0,u.jsx)(`span`,{className:`sbd-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`sbd-interp`,children:e.interpretation}),n&&(0,u.jsx)(`span`,{className:`sbd-band`,style:{"--sb":n.color},children:n.label})]}),e.cue&&(0,u.jsxs)(`div`,{className:`sbd-cue`,children:[(0,u.jsx)(`span`,{className:`sbd-cue-tag`,children:p?`Red flag`:`Rests on`}),(0,u.jsx)(`span`,{children:e.cue})]})]},t)})}),c&&(0,u.jsxs)(`div`,{className:`sbd-cantknow`,children:[(0,u.jsx)(r.eye,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:c})]}),l&&(0,u.jsxs)(`div`,{className:`sbd-reply`,children:[(0,u.jsxs)(`div`,{className:`sbd-reply-tag`,children:[(0,u.jsx)(r.send,{className:`ic`,style:{width:13,height:13}}),p?`If you respond`:`You could ask`]}),(0,u.jsx)(`p`,{className:`sbd-reply-text`,children:l})]}),d&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(d)})]})}function V({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,opener:a,branches:o,exit:s,footer:c,delay:l}){let d=r[t]||r.chat,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal rh-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rh-opener`,children:[(0,u.jsx)(`span`,{className:`rh-open-tag`,children:`Open with`}),(0,u.jsx)(`p`,{className:`rh-open-line`,dangerouslySetInnerHTML:i(a)})]}),f.length>0&&(0,u.jsx)(`ol`,{className:`rh-branches`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`rh-branch`,children:[(0,u.jsxs)(`div`,{className:`rh-reaction`,children:[(0,u.jsx)(r.undo,{className:`ic rh-reaction-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rh-if`,children:`If they`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.reaction)})]}),(0,u.jsxs)(`div`,{className:`rh-say`,children:[(0,u.jsx)(`span`,{className:`rh-say-tag`,children:`Say`}),(0,u.jsx)(`span`,{className:`rh-say-line`,dangerouslySetInnerHTML:i(e.say)})]}),e.why&&(0,u.jsxs)(`div`,{className:`rh-why`,children:[(0,u.jsx)(r.spark,{className:`ic rh-why-ic`,style:{width:11,height:11}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.why)})]})]},t))}),s&&(0,u.jsxs)(`div`,{className:`rh-exit`,children:[(0,u.jsx)(r.check,{className:`ic rh-exit-ic`,style:{width:14,height:14}}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`span`,{className:`rh-exit-tag`,children:`If you need to wrap it up`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(s)})]})]}),(0,u.jsx)(`p`,{className:`rh-note`,children:`A rehearsal, not a prediction — say it your way.`}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Le={email:{label:`Email`,icon:`mail`},phone:{label:`Call`,icon:`speaker`},"in-app":{label:`In-app`,icon:`sliders`},chat:{label:`Chat`,icon:`chat`}};function Re({title:e,icon:t=`send`,iconColor:n=`var(--presence)`,intro:a,scripts:s,footer:c,delay:l}){let d=r[t]||r.send,f=s??[];return(0,u.jsxs)(`div`,{className:`card reveal mss-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`mss-intro`,children:a}),(0,u.jsx)(`ul`,{className:`mss-list`,children:f.map((e,t)=>{let n=e.channel?Le[e.channel]:void 0,i=n?r[n.icon]||r.send:void 0;return(0,u.jsxs)(`li`,{className:`mss-item`,children:[(0,u.jsxs)(`div`,{className:`mss-head`,children:[(0,u.jsx)(`span`,{className:`mss-target`,children:e.target}),n&&i&&(0,u.jsxs)(`span`,{className:`mss-chan`,children:[(0,u.jsx)(i,{className:`ic mss-chan-ic`}),` `,n.label]})]}),(0,u.jsxs)(`div`,{className:`mss-msg`,children:[(0,u.jsx)(`p`,{className:`mss-msg-text`,children:e.message}),(0,u.jsx)(o,{text:e.message,label:`Copy message`,className:`mss-copy`})]}),e.rebuttal&&(0,u.jsxs)(`div`,{className:`mss-rebuttal`,children:[(0,u.jsx)(`span`,{className:`mss-rebuttal-tag`,children:`If they push back`}),(0,u.jsx)(`span`,{children:e.rebuttal})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ze({title:e,icon:t=`mic`,iconColor:n=`var(--presence)`,lines:a,totalTime:o,footer:s,delay:c}){let l=r[t]||r.mic,d=a??[];return(0,u.jsxs)(`div`,{className:`card reveal tlk-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,o&&(0,u.jsxs)(`span`,{className:`tlk-total`,children:[(0,u.jsx)(r.clock,{className:`ic tlk-total-ic`}),` `,o]})]}),(0,u.jsx)(`ol`,{className:`tlk-list`,children:d.map((e,t)=>(0,u.jsxs)(`li`,{className:`tlk-line`,children:[(0,u.jsx)(`span`,{className:`tlk-rail`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`tlk-dot`})}),(0,u.jsxs)(`div`,{className:`tlk-body`,children:[(0,u.jsx)(`p`,{className:`tlk-say`,children:e.say}),(e.beat||e.note)&&(0,u.jsxs)(`div`,{className:`tlk-meta`,children:[e.beat&&(0,u.jsxs)(`span`,{className:`tlk-beat`,children:[(0,u.jsx)(r.play,{className:`ic tlk-beat-ic`}),` `,e.beat]}),e.note&&(0,u.jsx)(`span`,{className:`tlk-note`,children:e.note})]})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Be({title:e=`You deserve support right now`,message:t,safetyQuestion:n,resources:i,grounding:a,reassurance:o,delay:s}){let l=i??[];return(0,u.jsxs)(`div`,{className:`card reveal lfl-card`,style:{"--delay":(s||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(r.shield,{className:`ic`,style:{color:`var(--presence)`}}),` `,e]}),t&&(0,u.jsx)(`p`,{className:`lfl-message`,children:t}),n&&(0,u.jsx)(`p`,{className:`lfl-safety`,children:n}),(0,u.jsx)(`div`,{className:`lfl-resources`,children:l.map((e,t)=>{let n=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`lfl-res-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lfl-res-contact`,children:e.contact}),e.note&&(0,u.jsx)(`span`,{className:`lfl-res-note`,children:e.note})]}),r=e.href?c(e.href):null;return r?(0,u.jsx)(`a`,{className:`lfl-res lfl-res--link`,href:r,children:n},t):(0,u.jsx)(`div`,{className:`lfl-res`,children:n},t)})}),a&&(0,u.jsxs)(`div`,{className:`lfl-grounding`,children:[(0,u.jsx)(r.spark,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:a})]}),o&&(0,u.jsx)(`p`,{className:`lfl-reassurance`,children:o})]})}var H={stressed:`´`,unstressed:`˘`},U=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`];function Ve({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,lines:a,meter:o,caption:s,footer:c,delay:l}){let d=r[t]||r.proof,f=new Map;for(let e of a){let t=e.rhyme?.trim().toLowerCase();t&&!f.has(t)&&f.set(t,U[f.size%U.length])}return(0,u.jsxs)(`div`,{className:`card reveal lay-scan`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-scan-meter`,children:[(0,u.jsxs)(`span`,{className:`lay-scan-meter-key`,children:[(0,u.jsx)(`span`,{className:`lay-scan-glyph`,children:H.stressed}),` stressed`,(0,u.jsx)(`span`,{className:`lay-scan-glyph muted`,children:H.unstressed}),` unstressed`]}),(0,u.jsx)(`span`,{className:`lay-scan-meter-name`,children:o})]}),(0,u.jsx)(`div`,{className:`lay-scan-lines`,children:a.map((e,t)=>{let n=new Set((e.feet||[]).filter(t=>t>0&&t<e.syllables.length)),r=e.rhyme?f.get(e.rhyme.trim().toLowerCase()):void 0;return(0,u.jsxs)(`div`,{className:`lay-scan-row`,children:[(0,u.jsx)(`ol`,{className:`lay-scan-line`,children:e.syllables.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-scan-syl`,"data-stress":e.stress===`stressed`?`on`:`off`,children:[n.has(t)&&(0,u.jsx)(`span`,{className:`lay-scan-bar`,"aria-hidden":`true`}),(0,u.jsx)(`span`,{className:`lay-scan-mark`,"aria-hidden":`true`,children:H[e.stress]??H.unstressed}),(0,u.jsx)(`span`,{className:`lay-scan-text`,children:e.text})]},t))}),e.rhyme&&(0,u.jsx)(`span`,{className:`lay-scan-rhyme`,style:r?{"--rh":r}:void 0,children:e.rhyme.trim().toLowerCase()})]},t)})}),s&&(0,u.jsx)(`div`,{className:`lay-scan-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var W=46,He=`The quick brown fox`;function Ue(e){return`${Number.isInteger(e)?e:Number(e.toFixed(1))} px`}function We({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,styles:a,pairing:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=a.reduce((e,t)=>Math.max(e,t.sizePx||0),1),p=f>W?W/f:1,m=e=>{let t=[];return e.family&&t.push(e.family),e.weight&&t.push(String(e.weight)),t.push(Ue(e.sizePx)),e.lineHeight&&t.push(`${e.lineHeight}×`),e.tracking&&t.push(e.tracking),t};return(0,u.jsxs)(`div`,{className:`card reveal lay-tspec`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-tspec-list`,children:a.map((e,t)=>{let n=e.color||`var(--presence)`,r=Math.max(11,Math.round((e.sizePx||16)*p));return(0,u.jsxs)(`li`,{className:`lay-tspec-row`,children:[(0,u.jsxs)(`div`,{className:`lay-tspec-meta`,children:[(0,u.jsx)(`span`,{className:`lay-tspec-name`,style:{color:n},children:e.name}),(0,u.jsx)(`div`,{className:`lay-tspec-chips`,children:m(e).map((e,t)=>(0,u.jsx)(`span`,{className:`lay-tspec-chip tab-num`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-tspec-sample`,style:{fontSize:r+`px`,fontWeight:e.weight??500,lineHeight:e.lineHeight??1.15,letterSpacing:e.tracking,fontFamily:e.family},children:e.sample||He})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`lay-tspec-pairing`,children:[(0,u.jsx)(`div`,{className:`lay-tspec-pair-tag`,children:`Pairing`}),(0,u.jsx)(`div`,{className:`lay-tspec-pair-head`,style:{fontFamily:o.heading},children:o.heading}),(0,u.jsxs)(`div`,{className:`lay-tspec-pair-body`,style:{fontFamily:o.body},children:[(0,u.jsxs)(`span`,{className:`lay-tspec-pair-faces tab-num`,children:[o.heading,` `,`·`,` `,o.body]}),` `,`pair a confident display face with a calm, readable body face — the heading carries the voice while the paragraph stays out of the way and lets the words breathe.`]})]}),s&&(0,u.jsx)(`div`,{className:`lay-tspec-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ge={WS:{subject:.5,label:`Wide`},MS:{subject:.78,label:`Medium`},CU:{subject:1.05,label:`Close`},ECU:{subject:1.5,label:`Extreme`},OTS:{subject:.92,label:`Over-shoulder`}},G=100,K=64;function Ke(e){let t=Ge[e],n=K*t.subject/4;return{headR:n,cx:e===`OTS`?G*.62:G/2,headCy:K-n*1.7,shoulderW:n*2.4,label:t.label}}function qe({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,shots:a,caption:o,footer:s,delay:c}){let l=r[t]||r.play;return(0,u.jsxs)(`div`,{className:`card reveal lay-shot`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-shot-list`,children:a.map((e,t)=>{let n=e.size||`MS`,i=Ke(n),a=[e.movement,e.lens,e.duration].filter(Boolean);return(0,u.jsxs)(`li`,{className:`lay-shot-row`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-thumb`,children:[(0,u.jsxs)(`svg`,{className:`lay-shot-frame`,viewBox:`0 0 ${G} ${K}`,role:`img`,"aria-label":`${n} shot framing`,preserveAspectRatio:`xMidYMid slice`,children:[n===`OTS`&&(0,u.jsx)(`path`,{d:`M 0 ${K} L 0 ${K*.28} Q ${G*.18} ${K*.2} ${G*.3} ${K} Z`,className:`lay-shot-fg`}),(0,u.jsx)(`circle`,{cx:i.cx,cy:i.headCy,r:i.headR,className:`lay-shot-subj`}),(0,u.jsx)(`path`,{d:`M ${i.cx-i.shoulderW} ${K} Q ${i.cx} ${i.headCy+i.headR*.4} ${i.cx+i.shoulderW} ${K} Z`,className:`lay-shot-subj`}),(0,u.jsx)(`line`,{x1:G/3,y1:0,x2:G/3,y2:K,className:`lay-shot-grid`}),(0,u.jsx)(`line`,{x1:G/3*2,y1:0,x2:G/3*2,y2:K,className:`lay-shot-grid`})]}),(0,u.jsx)(`span`,{className:`lay-shot-size`,children:n})]}),(0,u.jsxs)(`div`,{className:`lay-shot-body`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-top`,children:[(0,u.jsx)(`span`,{className:`lay-shot-n tab-num`,children:e.n}),(0,u.jsx)(`span`,{className:`lay-shot-frame-label`,children:i.label}),a.length>0&&(0,u.jsx)(`div`,{className:`lay-shot-meta`,children:a.map((e,t)=>(0,u.jsx)(`span`,{className:`lay-shot-tag`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-shot-action`,children:e.action}),e.dialogue&&(0,u.jsxs)(`div`,{className:`lay-shot-dialogue`,children:[(0,u.jsx)(r.chat,{className:`ic`}),(0,u.jsx)(`span`,{children:e.dialogue})]})]})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-shot-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var q=320,J=96,Y={l:8,r:8,t:12,b:10};function Je(e,t){if(!e)return null;let n=e.match(/-?\d+(\.\d+)?/);if(!n)return null;let r=parseFloat(n[0]);return Number.isFinite(r)?e.includes(`%`)||r<=100&&!/p/i.test(e)?Math.min(1,Math.max(0,r/100)):t>0?Math.min(1,Math.max(0,r/t)):null:null}function Ye({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,framework:o,beats:s,tension:c,caption:d,footer:f,delay:p}){let m=r[t]||r.edit,h=(0,l.useMemo)(()=>{let e=Math.max(1,s.length-1),t=s.map(e=>parseFloat((e.at||``).match(/\d+/)?.[0]||``)).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):0,r=s.map((t,r)=>Je(t.at,n)??r/e),i=a([0,1],[Y.l,q-Y.r]),o=``,l=[];if(c&&c.length>=2){let e=Math.min(...c),t=Math.max(...c),n=a([e,t===e?e+1:t],[J-Y.b,Y.t]);l=c.map((e,t)=>({x:i(t<r.length?r[t]:t/Math.max(1,c.length-1)),y:n(e)})),o=l.map((e,t)=>{if(t===0)return`M ${e.x} ${e.y}`;let n=l[t-1],r=(n.x+e.x)/2;return`C ${r} ${n.y} ${r} ${e.y} ${e.x} ${e.y}`}).join(` `)}return{fracs:r,sx:i,curve:o,dots:l,baseY:J-Y.b}},[s,c]);return(0,u.jsxs)(`div`,{className:`card reveal lay-beat`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-beat-framework`,children:[(0,u.jsx)(`span`,{className:`lay-beat-fw-tag`,children:`Structure`}),o]}),(0,u.jsx)(`ol`,{className:`lay-beat-list`,children:s.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-beat-row`,children:[(0,u.jsx)(`div`,{className:`lay-beat-rail`,children:(0,u.jsx)(`span`,{className:`lay-beat-dot`})}),(0,u.jsxs)(`div`,{className:`lay-beat-body`,children:[(0,u.jsxs)(`div`,{className:`lay-beat-head`,children:[(0,u.jsx)(`span`,{className:`lay-beat-name`,children:e.name}),e.at&&(0,u.jsx)(`span`,{className:`lay-beat-at tab-num`,children:e.at})]}),(0,u.jsx)(`div`,{className:`lay-beat-line`,children:e.line})]})]},t))}),h.curve&&(0,u.jsxs)(`figure`,{className:`lay-beat-curve`,children:[(0,u.jsx)(`figcaption`,{className:`lay-beat-curve-cap faint`,children:`Dramatic tension`}),(0,u.jsxs)(`svg`,{viewBox:`0 0 ${q} ${J}`,className:`lay-beat-svg`,role:`img`,"aria-label":`tension curve`,children:[(0,u.jsx)(`defs`,{children:(0,u.jsxs)(`linearGradient`,{id:`lay-beat-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,u.jsx)(`stop`,{offset:`0%`,stopColor:`var(--presence)`,stopOpacity:`0.22`}),(0,u.jsx)(`stop`,{offset:`100%`,stopColor:`var(--presence)`,stopOpacity:`0`})]})}),(0,u.jsx)(`path`,{d:`${h.curve} L ${h.dots[h.dots.length-1].x} ${h.baseY} L ${h.dots[0].x} ${h.baseY} Z`,fill:`url(#lay-beat-fill)`}),(0,u.jsx)(`path`,{d:h.curve,className:`lay-beat-stroke`,fill:`none`}),h.dots.map((e,t)=>(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:2.6,className:`lay-beat-pt`},t))]})]}),d&&(0,u.jsx)(`div`,{className:`lay-beat-caption faint`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function Xe({title:e=`A few things to sit with`,icon:t=`edit`,iconColor:n=`var(--presence)`,theme:a,prompts:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal lay-ps`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`lay-ps-theme`,children:[(0,u.jsx)(`span`,{className:`lay-ps-theme-dot`,"aria-hidden":`true`}),a]}),(0,u.jsx)(`ol`,{className:`lay-ps-list`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-ps-card`,children:[(0,u.jsx)(`span`,{className:`lay-ps-mark tab-num`,"aria-hidden":`true`,children:t+1}),(0,u.jsxs)(`div`,{className:`lay-ps-body`,children:[(0,u.jsx)(`p`,{className:`lay-ps-q`,children:e.question}),e.guidance&&(0,u.jsx)(`p`,{className:`lay-ps-guide`,children:e.guidance})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`lay-ps-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ze={HR:`Heart rate`,pace:`Pace`,RPE:`Perceived effort`},X=[`var(--insight)`,`#10b981`,`var(--presence)`,`var(--warning)`,`var(--danger)`];function Qe(e){let t=X.length-1,n=Math.max(0,Math.min(t,e*t)),r=Math.floor(n),i=Math.min(t,r+1),a=n-r;return a===0?X[r]:`color-mix(in oklab, ${X[i]} ${Math.round(a*100)}%, ${X[r]})`}function $e({title:e=`Training zones`,icon:t=`spark`,iconColor:n=`var(--presence)`,metric:a=`HR`,zones:o,current:s,caption:c,footer:l,delay:d}){let f=r[t]||r.spark,p=o??[],m=p.length,h=typeof s==`number`&&m>0?Math.max(0,Math.min(m-1,Math.round(s))):-1,g=Ze[a]??a,_=p.map((e,t)=>({z:e,i:t})).reverse();return(0,u.jsxs)(`div`,{className:`card reveal lay-zl`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,(0,u.jsx)(`span`,{className:`lay-zl-metric`,children:g})]}),(0,u.jsx)(`div`,{className:`lay-zl-ladder`,children:_.map(({z:e,i:t})=>{let n=Qe(m>1?t/(m-1):0),r=t===h;return(0,u.jsxs)(`div`,{className:`lay-zl-band`+(r?` here`:``),style:{"--zc":n},children:[(0,u.jsx)(`div`,{className:`lay-zl-rail`,"aria-hidden":`true`}),(0,u.jsxs)(`div`,{className:`lay-zl-band-body`,children:[(0,u.jsxs)(`div`,{className:`lay-zl-band-top`,children:[(0,u.jsx)(`span`,{className:`lay-zl-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lay-zl-range tab-num`,children:e.range}),r&&(0,u.jsxs)(`span`,{className:`lay-zl-here`,children:[(0,u.jsx)(`span`,{className:`lay-zl-here-dot`,"aria-hidden":`true`}),`You are here`]})]}),(0,u.jsx)(`div`,{className:`lay-zl-effort`,children:e.effort}),(0,u.jsx)(`div`,{className:`lay-zl-purpose`,children:e.purpose})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`lay-zl-caption faint`,children:c}),l&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(l)})]})}var et={first:{label:`First`,color:`var(--insight)`},then:{label:`Then`,color:`var(--presence)`},next:{label:`Next`,color:`var(--presence)`},last:{label:`Last`,color:`var(--insight)`}};function tt(e,t){return e===0?`first`:e===t-1?`last`:e%2==1?`then`:`next`}function nt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,panels:a,caption:o,footer:s,delay:c}){let d=r[t]||r.layers,f=a??[],p=f.length;return(0,u.jsxs)(`div`,{className:`card reveal lay-pseq`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-pseq-strip`,children:f.map((e,t)=>{let n=et[e.marker??tt(t,p)];return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(`li`,{className:`lay-pseq-panel`,style:{"--mc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-pseq-marker`,children:n.label}),(0,u.jsx)(`div`,{className:`lay-pseq-frame`,children:(0,u.jsxs)(`svg`,{className:`lay-pseq-art`,viewBox:`0 0 64 48`,role:`img`,"aria-label":e.label,preserveAspectRatio:`xMidYMid meet`,children:[(0,u.jsx)(`rect`,{x:`8`,y:`8`,width:`48`,height:`32`,rx:`4`,className:`lay-pseq-art-card`}),(0,u.jsx)(`line`,{x1:`16`,y1:`32`,x2:`48`,y2:`32`,className:`lay-pseq-art-base`}),(0,u.jsx)(`circle`,{cx:`32`,cy:`21`,r:`9`,className:`lay-pseq-art-badge`}),(0,u.jsx)(`text`,{x:`32`,y:`21`,className:`lay-pseq-art-num`,children:t+1})]})}),(0,u.jsx)(`div`,{className:`lay-pseq-label`,children:e.label}),e.caption&&(0,u.jsx)(`div`,{className:`lay-pseq-cap faint`,children:e.caption})]}),t<p-1&&(0,u.jsx)(`li`,{className:`lay-pseq-arrow`,"aria-hidden":`true`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-pseq-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Z(e){return e==null||!Number.isFinite(e)?null:Math.max(0,Math.min(100,Math.round(e)))}function Q({label:e,items:t,accent:n,mark:a}){let o=a===`check`?r.check:r.alert;return(0,u.jsxs)(`div`,{className:`tr-ev-col`,style:{"--te":n},children:[(0,u.jsxs)(`div`,{className:`tr-ev-head`,children:[(0,u.jsx)(o,{className:`ic`,style:{color:n,width:13,height:13}}),(0,u.jsx)(`span`,{children:e}),(0,u.jsx)(`span`,{className:`tr-ev-count tab-num`,children:t.length})]}),t.length===0?(0,u.jsx)(`p`,{className:`tr-ev-empty faint`,children:`None noted`}):(0,u.jsx)(`ul`,{className:`tr-ev-list`,children:t.map((e,t)=>(0,u.jsxs)(`li`,{className:`tr-ev-item m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,u.jsx)(o,{className:`ic tr-ev-mark`,style:{color:n}}),(0,u.jsx)(`span`,{className:`tr-ev-text`,dangerouslySetInnerHTML:i(e)})]},t))})]})}function rt({title:e=`Thought record`,icon:t=`spark`,iconColor:n=`var(--presence)`,situation:a,automaticThought:o,emotion:s,emotionIntensity:c,evidenceFor:l=[],evidenceAgainst:d=[],alternativeThought:f,outcomeEmotion:p,outcomeIntensity:m,footer:h,delay:g}){let _=r[t]||r.spark,v=Z(c),y=Z(m),b=l.length>0||d.length>0,x=!!f,S=!!p||y!=null,C=(g||0)+140;return(0,u.jsxs)(`div`,{className:`card reveal tr-card`,style:{"--delay":(g||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`tr-block tr-situation`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`The situation`}),(0,u.jsx)(`p`,{className:`tr-body`,dangerouslySetInnerHTML:i(a)})]}),(0,u.jsxs)(`div`,{className:`tr-block tr-thought`,children:[(0,u.jsxs)(`div`,{className:`tr-row-head`,children:[(0,u.jsx)(`span`,{className:`tr-tag`,children:`The automatic thought`}),(0,u.jsxs)(`span`,{className:`tr-emo-chip`,children:[s,v!=null&&(0,u.jsxs)(`span`,{className:`tr-emo-pct tab-num`,children:[v,`%`]})]})]}),o&&(0,u.jsxs)(`p`,{className:`tr-quote`,children:[(0,u.jsx)(r.quote,{className:`ic tr-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(o)})]}),v!=null&&(0,u.jsx)(`div`,{className:`tr-meter`,"aria-label":`felt ${v} of 100`,children:(0,u.jsx)(`span`,{className:`tr-meter-fill`,style:{width:v+`%`}})})]}),b&&(0,u.jsxs)(`div`,{className:`tr-block tr-evidence`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`Weighing the evidence`}),(0,u.jsxs)(`div`,{className:`tr-ev-grid`,children:[(0,u.jsx)(Q,{label:`Feeds the thought`,items:l,accent:`var(--warning)`,mark:`alert`}),(0,u.jsx)(`div`,{className:`tr-ev-divider`}),(0,u.jsx)(Q,{label:`Complicates it`,items:d,accent:`var(--insight)`,mark:`check`})]})]}),x&&(0,u.jsxs)(`div`,{className:`tr-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`tr-shift-line`}),(0,u.jsx)(r.spark,{className:`ic tr-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`tr-shift-line`})]}),f&&(0,u.jsxs)(`div`,{className:`tr-block tr-alt m-fade-rise`,style:{"--delay":C+`ms`},children:[(0,u.jsx)(`div`,{className:`tr-tag tr-tag--true`,children:`The balanced thought`}),(0,u.jsx)(`p`,{className:`tr-alt-text`,dangerouslySetInnerHTML:i(f)})]}),S&&(0,u.jsxs)(`div`,{className:`tr-outcome`,children:[(0,u.jsxs)(`div`,{className:`tr-outcome-chip`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Felt`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:s}),v!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[v,`%`]})]}),(0,u.jsx)(r.chevR,{className:`ic tr-outcome-arrow`,style:{width:14,height:14}}),(0,u.jsxs)(`div`,{className:`tr-outcome-chip tr-outcome-chip--after`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Now`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:p||s}),y!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[y,`%`]})]})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}var it=e({layoutRegistry:()=>$}),$={callout:s(le),verdictcard:s(fe),scenarioset:s(me),accordion:s(he),proscons:s(ge),takeaways:s(_e),faq:s(ve),tabs:s(ye),divider:s(M),pullquote:s(P),storystrip:s(be),casestudy:s(xe),deflist:s(Ce),worthit:s(we),companionnote:s(Te),positioncard:s(Ee),differential:s(Oe),reframecard:s(ke),breathpacer:s(Ae),copingmenu:s(Pe),subtextdecode:s(Ie),rehearsal:s(V),messagescriptset:s(Re),talktrack:s(ze),lifeline:s(Be),scansionmark:s(Ve),typespec:s(We),shotlist:s(qe),beatsheet:s(Ye),promptset:s(Xe),zoneladder:s($e),picturesequence:s(nt),storyarc:s(ee),devicemark:s(oe),thoughtrecord:s(rt)};export{it as n,$ as t};
|
|
1
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./richText-BkxJhl9N.js";import{i as a}from"./scale-Bcgfo6Hp.js";import{r as o}from"./lib-3J_9keOc.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{n as c}from"./sourceHost-BV3t2XDb.js";var l=t(),u=n(),d=480,f=200,p=20,m=d-p*2,h=f-p*2-24,g=[`Exposition`,`Rising Action`,`Climax`,`Falling Action`,`Dénouement`],_=[0,.2,.5,.8,1],v=[.08,.45,1,.5,.1],y=[{label:`Act I — Setup`,x0:0,x1:.25},{label:`Act II — Confrontation`,x0:.25,x1:.75},{label:`Act III — Resolution`,x0:.75,x1:1}],b=[{x:.25,label:`Plot Point I`},{x:.75,label:`Plot Point II`}],x=[`Ordinary World`,`Call`,`Refusal`,`Mentor`,`Crossing`,`Tests`,`Innermost Cave`,`Ordeal`,`Reward`,`Road Back`,`Resurrection`,`Return`],S=[{label:`Opening Image`,pct:1},{label:`Theme Stated`,pct:5},{label:`Set-up`,pct:10},{label:`Catalyst`,pct:12},{label:`Debate`,pct:20},{label:`Break into 2`,pct:25},{label:`B Story`,pct:30},{label:`Fun & Games`,pct:50},{label:`Midpoint`,pct:50},{label:`Bad Guys Close In`,pct:62.5},{label:`All Is Lost`,pct:75},{label:`Dark Night`,pct:80},{label:`Break into 3`,pct:87},{label:`Finale`,pct:95},{label:`Final Image`,pct:99}],C=e=>p+e*m,w=e=>p+(1-e)*h,T=22;function E(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function D(e,t){let n=e.trim().toLowerCase(),r=t.findIndex(e=>e.toLowerCase()===n);return r>=0?r:t.findIndex(e=>e.toLowerCase().includes(n)||n.includes(e.toLowerCase()))}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,framework:a,beats:o,caption:s,footer:c,delay:p}){let m=r[t]??r.layers,h=(0,l.useMemo)(()=>{let e=o??[];return a===`freytag`?te(e):a===`threeact`?ne(e):a===`herojourney`?re(e):a===`savethecat`?ie(e):null},[a,o]),g={freytag:`Freytag Pyramid`,threeact:`Three-Act Structure`,herojourney:`Hero's Journey`,savethecat:`Save the Cat`};return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`sa-framework-label`,children:g[a]??a}),(0,u.jsx)(`div`,{className:`sa-wrap`,children:(0,u.jsx)(`svg`,{className:`sa-svg`,viewBox:`0 0 ${d} ${f}`,role:`img`,"aria-label":`${g[a]??a} story structure`,preserveAspectRatio:`xMidYMid meet`,children:h})}),s&&(0,u.jsx)(`div`,{className:`block-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}function te(e){let t=_.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`).join(` `),n=[`${C(0).toFixed(1)},${w(0).toFixed(1)}`,..._.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`),`${C(1).toFixed(1)},${w(0).toFixed(1)}`].join(` `),r=e.map((e,t)=>{let n=D(e.stage,g);if(n<0)return null;let r=_[n],i=v[n],a=C(r),o=w(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:a,cy:o,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:a,y:o-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),i=f-6;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`polygon`,{points:n,className:`sa-fill`}),(0,u.jsx)(`polyline`,{points:t,fill:`none`,className:`sa-curve`}),(0,u.jsx)(`line`,{x1:C(0),y1:w(0),x2:C(1),y2:w(0),className:`sa-baseline`}),g.map((e,t)=>{let n=t===0?`start`:t===g.length-1?`end`:`middle`;return(0,u.jsx)(`text`,{x:C(_[t]),y:i,textAnchor:n,className:`sa-stage-lbl`,children:e},t)}),r]})}function ne(e){let t=[`color-mix(in oklab, var(--presence) 12%, transparent)`,`color-mix(in oklab, var(--warning) 12%, transparent)`,`color-mix(in oklab, var(--insight) 12%, transparent)`],n=f-6,r=e.map((e,t)=>{let n=D(e.stage,y.map(e=>e.label));if(n<0)return null;let r=y[n],i=C((r.x0+r.x1)/2),a=w(.5);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:i,cy:a,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:i,y:a-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[y.map((e,n)=>(0,u.jsx)(`rect`,{x:C(e.x0),y:p,width:m*(e.x1-e.x0),height:h,fill:t[n],className:`sa-act-rect`},n)),b.map((e,t)=>(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:C(e.x),y1:p,x2:C(e.x),y2:w(0),className:`sa-transition`}),(0,u.jsx)(`text`,{x:C(e.x),y:32,textAnchor:`middle`,className:`sa-transition-lbl`,children:e.label})]},t)),y.map((e,t)=>(0,u.jsx)(`text`,{x:C((e.x0+e.x1)/2),y:n,textAnchor:`middle`,className:`sa-stage-lbl`,children:e.label},t)),r]})}function re(e){let t=x.length,n=h*.42,r=d/2,i=x.map((e,i)=>{let a=2*Math.PI*i/t-Math.PI/2;return{x:r+n*Math.cos(a),y:110+n*Math.sin(a),lx:r+83.12*Math.cos(a),ly:110+83.12*Math.sin(a),angle:a}}),a=e.map((e,t)=>{let n=D(e.stage,x);if(n<0)return null;let r=i[n];return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:r.x,cy:r.y,r:5,className:`sa-beat-dot-hero`}),(0,u.jsxs)(`text`,{x:r.lx,y:r.ly,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),o=i.map((e,t)=>t===0?`M ${e.x.toFixed(1)},${e.y.toFixed(1)}`:`L ${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)+` Z`;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`circle`,{cx:r,cy:110,r:n,fill:`none`,className:`sa-circle-guide`}),(0,u.jsx)(`path`,{d:o,fill:`none`,className:`sa-circle-path`}),i.map((e,t)=>{let n=e.lx<r-10?`end`:e.lx>250?`start`:`middle`;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:3.5,className:`sa-stage-dot`}),(0,u.jsx)(`text`,{x:e.lx,y:e.ly+4,textAnchor:n,className:`sa-hj-lbl`,children:x[t]})]},t)}),a,(0,u.jsx)(`text`,{x:r-n-18,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(-90 ${r-n-18} 110)`,children:`DEPARTURE`}),(0,u.jsx)(`text`,{x:r,y:28,textAnchor:`middle`,className:`sa-arc-lbl`,children:`INITIATION`}),(0,u.jsx)(`text`,{x:315.12,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(90 315.12 110)`,children:`RETURN`})]})}function ie(e){let t=w(.5),n=e.map((e,n)=>{let r=D(e.stage,S.map(e=>e.label)),i=r>=0?S[r].pct/100:-1;if(i<0)return null;let a=C(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:a,y1:t-16,x2:a,y2:t+6,className:`sa-stc-pin`}),(0,u.jsxs)(`text`,{x:a,y:t-22,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},n)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`rect`,{x:p,y:t-4,width:m,height:8,rx:4,className:`sa-stc-bar`}),[25,75].map((e,n)=>(0,u.jsx)(`line`,{x1:C(e/100),y1:t-20,x2:C(e/100),y2:t+20,className:`sa-stc-break`},n)),S.map((e,n)=>{let r=C(e.pct/100),i=n%2==0;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:r,y1:t-4,x2:r,y2:i?t-10:t+10,className:`sa-stc-tick`}),(0,u.jsx)(`text`,{x:r,y:i?t-16:t+22,textAnchor:`middle`,className:`sa-stc-lbl`,children:e.label})]},n)}),[0,25,50,75,100].map(e=>(0,u.jsxs)(`text`,{x:C(e/100),y:f-4,textAnchor:`middle`,className:`sa-pct-lbl`,children:[e,`%`]},e)),n]})}var O={metaphor:`color-mix(in oklab, var(--presence) 25%, transparent)`,simile:`color-mix(in oklab, var(--insight) 25%, transparent)`,alliteration:`color-mix(in oklab, var(--warning) 22%, transparent)`,irony:`color-mix(in oklab, var(--danger) 20%, transparent)`,anaphora:`color-mix(in oklab, var(--presence) 35%, transparent)`,hyperbole:`color-mix(in oklab, var(--warning) 32%, transparent)`,personification:`color-mix(in oklab, var(--insight) 30%, transparent)`,allusion:`color-mix(in oklab, var(--presence) 18%, transparent)`,parallelism:`color-mix(in oklab, var(--insight) 22%, transparent)`,antithesis:`color-mix(in oklab, var(--danger) 25%, transparent)`,oxymoron:`color-mix(in oklab, var(--warning) 28%, transparent)`,repetition:`color-mix(in oklab, var(--presence) 20%, transparent)`,chiasmus:`color-mix(in oklab, var(--insight) 28%, transparent)`,assonance:`color-mix(in oklab, var(--warning) 18%, transparent)`,other:`color-mix(in oklab, var(--text-muted) 22%, transparent)`},k={metaphor:`var(--presence)`,simile:`var(--insight)`,alliteration:`var(--warning)`,irony:`var(--danger)`,anaphora:`var(--presence)`,hyperbole:`var(--warning)`,personification:`var(--insight)`,allusion:`var(--presence)`,parallelism:`var(--insight)`,antithesis:`var(--danger)`,oxymoron:`var(--warning)`,repetition:`var(--presence)`,chiasmus:`var(--insight)`,assonance:`var(--warning)`,other:`var(--text-muted)`};function ae(e,t){let n=[...t].sort((e,t)=>t.phrase.length-e.phrase.length),r=[];for(let t of n){let n=e.toLowerCase(),i=t.phrase.toLowerCase(),a=0;for(;a<n.length;){let o=n.indexOf(i,a);if(o<0)break;r.some(e=>o<e.end&&o+t.phrase.length>e.start)||r.push({start:o,end:o+t.phrase.length,device:t.device,phrase:e.slice(o,o+t.phrase.length),note:t.note}),a=o+1}}r.sort((e,t)=>e.start-t.start);let i=[],a=0;for(let t of r)t.start>a&&i.push({kind:`plain`,text:e.slice(a,t.start)}),i.push({kind:`marked`,text:t.phrase,device:t.device,note:t.note}),a=t.end;return a<e.length&&i.push({kind:`plain`,text:e.slice(a)}),i.length?i:[{kind:`plain`,text:e}]}function oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,text:a,marks:o,caption:s,footer:c,delay:d}){let f=r[t]??r.doc,p=(0,l.useMemo)(()=>o??[],[o]),m=(0,l.useMemo)(()=>ae(a,p),[a,p]),h=(0,l.useMemo)(()=>[...new Set(p.map(e=>e.device))],[p]);return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`p`,{className:`dm-passage`,children:m.map((e,t)=>e.kind===`plain`?e.text:(0,u.jsx)(`span`,{className:`dm-mark`,style:{"--dm-bg":O[e.device]??O.other,"--dm-border":k[e.device]??k.other},title:e.note?`${e.device}: ${e.note}`:e.device,"aria-label":`${e.text} [${e.device}${e.note?`: `+e.note:``}]`,children:e.text},t))}),h.length>0&&(0,u.jsx)(`div`,{className:`dm-legend`,children:h.map(e=>{let t=O[e]??O.other,n=k[e]??k.other,r=p.find(t=>t.device===e&&t.note);return(0,u.jsxs)(`span`,{className:`dm-legend-item`,children:[(0,u.jsx)(`span`,{className:`dm-legend-swatch`,style:{"--dm-bg":t,"--dm-border":n}}),(0,u.jsxs)(`span`,{className:`dm-legend-label`,children:[e[0].toUpperCase()+e.slice(1),r&&(0,u.jsxs)(`span`,{className:`dm-legend-note`,children:[` — `,r.note]})]})]},e)})}),s&&(0,u.jsx)(`div`,{className:`block-caption dm-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}var se={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`},ce={info:`spark`,success:`check`,warn:`alert`,danger:`shield`,neutral:`doc`};function le({title:e,icon:t,iconColor:n,tone:a=`info`,kicker:o,body:s,points:c,collapsed:d=!1,footer:f,delay:p}){let[m,h]=(0,l.useState)(!d),g=se[a],_=r[t??ce[a]]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal lay-callout`,style:{"--delay":(p||0)+`ms`,"--lc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n||g}}),` `,e]}),(0,u.jsxs)(`button`,{className:`lay-co-band`,type:`button`,onClick:()=>h(e=>!e),"aria-expanded":m,children:[(0,u.jsx)(`span`,{className:`lay-co-bar`}),(0,u.jsx)(_,{className:`ic lay-co-kic-ic`,style:{color:g}}),(0,u.jsx)(`span`,{className:`lay-co-kicker`,children:o||a}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:m?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-co-body ${m?`open`:``}`,children:(0,u.jsxs)(`div`,{className:`lay-co-inner`,children:[(0,u.jsx)(`div`,{className:`lay-co-text`,dangerouslySetInnerHTML:i(s)}),c&&c.length>0&&(0,u.jsx)(`ul`,{className:`lay-co-points`,children:c.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.chevR,{className:`ic lay-co-pt-ic`,style:{color:g}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]})}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var A={yes:{color:`var(--insight)`,label:`Yes`,icon:`check`},no:{color:`var(--danger)`,label:`No`,icon:`x`},maybe:{color:`var(--warning)`,label:`Maybe`,icon:`alert`},caution:{color:`var(--warning)`,label:`Be careful`,icon:`alert`}},ue={high:`High confidence`,medium:`Medium confidence`,low:`Low confidence`},de={high:3,medium:2,low:1};function fe({title:e,icon:t,iconColor:n,verdict:a,stance:o=`maybe`,label:s,reason:c,caveat:l,confidence:d,footer:f,delay:p}){let m=A[o]??A.maybe,h=r[t??m.icon]||r.spark,g=r[m.icon]||r.check;return(0,u.jsxs)(`div`,{className:`card reveal lay-verdict`,style:{"--delay":(p||0)+`ms`,"--vc":m.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n||m.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-vd-head`,children:[(0,u.jsxs)(`span`,{className:`lay-vd-badge`,children:[(0,u.jsx)(g,{className:`ic lay-vd-badge-ic`}),s||m.label]}),d&&(0,u.jsxs)(`span`,{className:`lay-vd-conf`,children:[(0,u.jsx)(`span`,{className:`lay-vd-dots`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,u.jsx)(`span`,{className:`lay-vd-dot ${e<de[d]?`on`:``}`},e))}),ue[d]]})]}),(0,u.jsx)(`div`,{className:`lay-vd-verdict`,dangerouslySetInnerHTML:i(a)}),c&&(0,u.jsxs)(`div`,{className:`lay-vd-reason`,children:[(0,u.jsx)(`span`,{className:`lay-vd-tag`,children:`Why`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(c)})]}),l&&(0,u.jsxs)(`div`,{className:`lay-vd-caveat`,children:[(0,u.jsx)(r.alert,{className:`ic lay-vd-caveat-ic`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(l)})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var pe={best:{color:`var(--insight)`,label:`Best case`},likely:{color:`var(--presence)`,label:`Likely`},worst:{color:`var(--danger)`,label:`Worst case`}};function me({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:a,scenarios:o,highlight:s,footer:c,delay:l}){let d=r[t]||r.chart,f=s??o.findIndex(e=>e.kind===`likely`);return(0,u.jsxs)(`div`,{className:`card reveal lay-scenarios`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-sc-metric faint`,children:a}),(0,u.jsx)(`div`,{className:`lay-sc-grid`,children:o.map((e,t)=>{let n=(e.kind?pe[e.kind]:void 0)??{color:`var(--text-muted)`,label:e.label||`Scenario`};return(0,u.jsxs)(`div`,{className:`lay-sc-panel ${t===f?`hi`:``}`,style:{"--sc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-sc-bar`}),(0,u.jsx)(`span`,{className:`lay-sc-label`,children:e.label||n.label}),(0,u.jsx)(`span`,{className:`lay-sc-value`,children:e.value}),e.detail&&(0,u.jsx)(`span`,{className:`lay-sc-detail faint`,dangerouslySetInnerHTML:i(e.detail)}),e.points&&e.points.length>0&&(0,u.jsx)(`ul`,{className:`lay-sc-points`,children:e.points.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`span`,{className:`lay-sc-pt-dot`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function he({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,sections:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-acc-list`,children:a.map((e,t)=>{let a=p.has(t),o=e.icon?r[e.icon]:null;return(0,u.jsxs)(`div`,{className:`lay-acc-item ${a?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-acc-head`,onClick:()=>h(t),"aria-expanded":a,children:[o&&(0,u.jsx)(o,{className:`ic lay-acc-lead`,style:{color:e.tagColor||n}}),(0,u.jsx)(`span`,{className:`lay-acc-label`,children:e.label}),e.tag&&(0,u.jsx)(`span`,{className:`lay-acc-tag`,style:e.tagColor?{color:e.tagColor,borderColor:`currentColor`}:void 0,children:e.tag}),e.meta&&(0,u.jsx)(`span`,{className:`lay-acc-meta`,children:e.meta}),(0,u.jsx)(r.arrowDown,{className:`ic lay-acc-chev`,style:{transform:a?`rotate(180deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-acc-body ${a?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-acc-body-inner`,dangerouslySetInnerHTML:i(e.body)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function j({side:e,label:t,items:n,accent:a,hover:o,setHover:s}){let c=e===`pro`?r.check:r.x;return(0,u.jsxs)(`div`,{className:`lay-pc-col`,style:{"--pc":a},children:[(0,u.jsxs)(`div`,{className:`lay-pc-head`,children:[(0,u.jsx)(c,{className:`ic`,style:{color:a}}),(0,u.jsx)(`span`,{children:t}),(0,u.jsx)(`span`,{className:`lay-pc-count tab-num`,children:n.length})]}),(0,u.jsx)(`ul`,{className:`lay-pc-list`,children:n.map((t,n)=>{let r=o?.side===e&&o.i===n,l=Math.max(1,Math.min(5,t.weight??3));return(0,u.jsxs)(`li`,{className:`lay-pc-item ${r?`on`:``}`,onMouseEnter:()=>s({side:e,i:n}),onMouseLeave:()=>s(null),children:[(0,u.jsx)(c,{className:`ic lay-pc-mark`,style:{color:a}}),(0,u.jsxs)(`div`,{className:`lay-pc-body`,children:[(0,u.jsx)(`span`,{className:`lay-pc-text`,dangerouslySetInnerHTML:i(t.text)}),(0,u.jsx)(`span`,{className:`lay-pc-pips`,"aria-label":`weight ${l} of 5`,children:[0,1,2,3,4].map(e=>(0,u.jsx)(`span`,{className:`lay-pc-pip ${e<l?`fill`:``}`,style:{background:e<l?a:void 0}},e))}),t.note&&r&&(0,u.jsx)(`span`,{className:`lay-pc-note faint`,dangerouslySetInnerHTML:i(t.note)})]})]},n)})})]})}function ge({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prosLabel:a=`Pros`,consLabel:o=`Cons`,pros:s,cons:c,verdict:d,footer:f,delay:p}){let m=r[t]||r.layers,[h,g]=(0,l.useState)(null),_=s.reduce((e,t)=>e+(t.weight??3),0),v=c.reduce((e,t)=>e+(t.weight??3),0),y=_/(_+v||1)*100;return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-pc-grid`,children:[(0,u.jsx)(j,{side:`pro`,label:a,items:s,accent:`var(--insight)`,hover:h,setHover:g}),(0,u.jsx)(`div`,{className:`lay-pc-divider`}),(0,u.jsx)(j,{side:`con`,label:o,items:c,accent:`var(--danger)`,hover:h,setHover:g})]}),(0,u.jsxs)(`div`,{className:`lay-pc-verdict`,children:[(0,u.jsxs)(`div`,{className:`lay-pc-vbar`,children:[(0,u.jsx)(`span`,{className:`lay-pc-vbar-l`,style:{width:y+`%`}}),(0,u.jsx)(`span`,{className:`lay-pc-vbar-r`,style:{width:100-y+`%`}})]}),(0,u.jsxs)(`div`,{className:`lay-pc-vrow`,children:[(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--insight)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:_}),` for`]}),d?(0,u.jsx)(`span`,{className:`lay-pc-vtext`,dangerouslySetInnerHTML:i(d)}):(0,u.jsx)(`span`,{className:`lay-pc-vtext faint`,children:y>=50?`Leans for`:`Leans against`}),(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--danger)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:v}),` against`]})]})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function _e({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,heading:a,items:o,footer:s,delay:c}){let d=r[t]||r.spark,[f,p]=(0,l.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),h=o.length?Math.round(f.size/o.length*100):0;return(0,u.jsxs)(`div`,{className:`card reveal lay-ta`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-ta-heading`,children:a}),(0,u.jsx)(`ol`,{className:`lay-ta-list`,children:o.map((e,t)=>{let n=e.color||`var(--presence)`,a=f.has(t);return(0,u.jsxs)(`li`,{className:`lay-ta-item ${a?`done`:``}`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-ta-num`,style:{"--tc":n},onClick:()=>m(t),"aria-pressed":a,children:a?(0,u.jsx)(r.check,{className:`ic`}):(0,u.jsx)(`span`,{className:`tab-num`,children:t+1})}),(0,u.jsxs)(`div`,{className:`lay-ta-body`,children:[(0,u.jsx)(`span`,{className:`lay-ta-text`,dangerouslySetInnerHTML:i(e.text)}),e.detail&&(0,u.jsx)(`span`,{className:`lay-ta-detail faint`,dangerouslySetInnerHTML:i(e.detail)})]})]},t)})}),(0,u.jsxs)(`div`,{className:`lay-ta-foot`,children:[(0,u.jsx)(`div`,{className:`lay-ta-track`,children:(0,u.jsx)(`span`,{className:`lay-ta-fill`,style:{width:h+`%`}})}),(0,u.jsxs)(`span`,{className:`lay-ta-pct tab-num faint`,children:[f.size,`/`,o.length]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function ve({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,items:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.chat,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-faq-list`,children:a.map((e,t)=>{let n=p.has(t);return(0,u.jsxs)(`div`,{className:`lay-faq-item ${n?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-faq-q`,onClick:()=>h(t),"aria-expanded":n,children:[(0,u.jsx)(r.plus,{className:`ic lay-faq-sign`,style:{transform:n?`rotate(45deg)`:`none`}}),(0,u.jsx)(`span`,{className:`lay-faq-q-text`,dangerouslySetInnerHTML:i(e.q)}),e.tag&&(0,u.jsx)(`span`,{className:`lay-faq-tag`,children:e.tag})]}),(0,u.jsx)(`div`,{className:`lay-faq-a ${n?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-faq-a-inner`,dangerouslySetInnerHTML:i(e.a)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ye({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tabs:a,defaultTab:o=0,accent:s=`var(--presence)`,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(Math.max(0,Math.min(o,a.length-1))),h=a[p],g=(0,l.useRef)([]),_=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%a.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+a.length)%a.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=a.length-1;else return;e.preventDefault(),m(n),g.current[n]?.focus()},v=Math.max(1,a.length);return(0,u.jsxs)(`div`,{className:`card reveal lay-tabs`,style:{"--delay":(d||0)+`ms`,"--tab-acc":s},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-tab-bar`,role:`tablist`,children:[a.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,u.jsxs)(`button`,{ref:e=>{g.current[t]=e},role:`tab`,type:`button`,className:`lay-tab ${t===p?`on`:``}`,"aria-selected":t===p,tabIndex:t===p?0:-1,onClick:()=>m(t),onKeyDown:e=>_(e,t),children:[n&&(0,u.jsx)(n,{className:`ic lay-tab-ic`}),(0,u.jsx)(`span`,{children:e.label}),e.badge!=null&&(0,u.jsx)(`span`,{className:`lay-tab-badge tab-num`,children:e.badge})]},t)}),(0,u.jsx)(`span`,{className:`lay-tab-underline`,style:{width:`${100/v}%`,transform:`translateX(${p*100}%)`}})]}),(0,u.jsx)(`div`,{className:`lay-tab-panel`,role:`tabpanel`,children:h&&(0,u.jsx)(`div`,{className:`lay-tab-body`,dangerouslySetInnerHTML:i(h.body)})},p),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,eyebrow:a,heading:o,sub:s,badge:c,badgeColor:d=`var(--presence)`,chips:f,footer:p,delay:m}){let h=r[t]||r.layers,[g,_]=(0,l.useState)(0);return(0,u.jsxs)(`div`,{className:`card reveal lay-div`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-div-main`,children:[(0,u.jsxs)(`div`,{className:`lay-div-head`,children:[a&&(0,u.jsx)(`div`,{className:`lay-div-eyebrow`,children:a}),(0,u.jsx)(`div`,{className:`lay-div-heading`,children:o})]}),c&&(0,u.jsx)(`span`,{className:`lay-div-badge tab-num`,style:{"--bc":d},children:c})]}),(0,u.jsxs)(`div`,{className:`lay-div-rule`,children:[(0,u.jsx)(`span`,{className:`lay-div-rule-line`}),(0,u.jsx)(`span`,{className:`lay-div-rule-dot`,style:{background:d}}),(0,u.jsx)(`span`,{className:`lay-div-rule-line`})]}),s&&(0,u.jsx)(`div`,{className:`lay-div-sub`,dangerouslySetInnerHTML:i(s)}),f&&f.length>0&&(0,u.jsx)(`div`,{className:`lay-div-chips`,children:f.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,u.jsx)(`button`,{type:`button`,className:`lay-div-chip ${t===g?`on`:``}`,style:{"--cc":n},onClick:()=>_(t),children:e.label},t)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}var N={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`};function P({title:e,icon:t=`quote`,iconColor:n,quote:a,author:o,role:s,tone:c=`info`,variants:d,footer:f,delay:p}){let m=r[t]||r.quote,h=N[c],g=[{quote:a,author:o,role:s},...d||[]],[_,v]=(0,l.useState)(0),y=g[_];return(0,u.jsxs)(`div`,{className:`card reveal lay-pq`,style:{"--delay":(p||0)+`ms`,"--pq":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`lay-pq-fig`,children:[(0,u.jsx)(`span`,{className:`lay-pq-bar`}),(0,u.jsx)(r.quote,{className:`ic lay-pq-mark`,style:{color:h}}),(0,u.jsx)(`blockquote`,{className:`lay-pq-quote`,dangerouslySetInnerHTML:i(y.quote)},_),(y.author||y.role)&&(0,u.jsxs)(`figcaption`,{className:`lay-pq-cap`,children:[y.author&&(0,u.jsx)(`span`,{className:`lay-pq-author`,children:y.author}),y.role&&(0,u.jsx)(`span`,{className:`lay-pq-role faint`,children:y.role})]})]}),g.length>1&&(0,u.jsxs)(`div`,{className:`lay-pq-nav`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e-1+g.length)%g.length),"aria-label":`previous quote`,children:(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}})}),(0,u.jsx)(`span`,{className:`lay-pq-dots`,children:g.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-dot ${t===_?`on`:``}`,onClick:()=>v(t),"aria-label":`quote ${t+1}`},t))}),(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e+1)%g.length),"aria-label":`next quote`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function be({title:e,icon:t=`slides`,iconColor:n=`var(--presence)`,panels:a,start:o=0,footer:s,delay:c}){let d=r[t]||r.slides,f=Math.max(0,a.length-1),[p,m]=(0,l.useState)(Math.max(0,Math.min(o,f))),h=a[p],g=h?.color||`var(--presence)`,_=h?.icon?r[h.icon]:r.spark,v=Math.max(1,a.length),y=e=>m(t=>Math.max(0,Math.min(f,t+e)));return(0,u.jsxs)(`div`,{className:`card reveal lay-story`,style:{"--delay":(c||0)+`ms`,"--sc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-story-stage`,children:(0,u.jsxs)(`div`,{className:`lay-story-panel`,children:[(0,u.jsx)(`div`,{className:`lay-story-badge`,style:{background:g},children:(0,u.jsx)(_,{className:`ic`})}),(0,u.jsxs)(`div`,{className:`lay-story-num tab-num`,children:[p+1,(0,u.jsxs)(`span`,{className:`lay-story-of`,children:[`/ `,v]})]}),(0,u.jsx)(`div`,{className:`lay-story-heading`,children:h?.heading}),h?.caption&&(0,u.jsx)(`div`,{className:`lay-story-caption faint`,children:h.caption}),(0,u.jsx)(`div`,{className:`lay-story-body`,dangerouslySetInnerHTML:i(h?.body||``)})]})},p),(0,u.jsx)(`div`,{className:`lay-story-track`,children:a.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-story-tick ${t===p?`on`:``} ${t<p?`past`:``}`,style:{"--tk":e.color||`var(--presence)`},onClick:()=>m(t),"aria-label":`panel ${t+1}`},t))}),(0,u.jsxs)(`div`,{className:`lay-story-nav`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn`,onClick:()=>y(-1),disabled:p===0,children:[(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}}),` Back`]}),(0,u.jsxs)(`span`,{className:`lay-story-pos faint tab-num`,children:[p+1,` of `,v]}),(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn accent`,onClick:()=>y(1),disabled:p===f,children:[`Next `,(0,u.jsx)(r.chevR,{className:`ic`})]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var F=[{key:`setup`,label:`Setup`,icon:`doc`,color:`var(--text-muted)`},{key:`action`,label:`Action`,icon:`play`,color:`var(--presence)`},{key:`result`,label:`Result`,icon:`chart`,color:`var(--insight)`},{key:`lesson`,label:`Lesson`,icon:`spark`,color:`var(--warning)`}];function xe({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,subject:a,setup:o,action:s,result:c,lesson:d,defaultStage:f=`result`,footer:p,delay:m}){let h=r[t]||r.proof,g={setup:o,action:s,result:c,lesson:d},[_,v]=(0,l.useState)(f);return(0,u.jsxs)(`div`,{className:`card reveal lay-cs`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-cs-subject`,children:a}),(0,u.jsx)(`div`,{className:`lay-cs-stages`,children:F.map((e,t)=>{let n=g[e.key],a=r[e.icon],o=_===e.key;return(0,u.jsxs)(`div`,{className:`lay-cs-stage ${o?`open`:``}`,style:{"--st":e.color},children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-cs-head`,onClick:()=>v(e.key),"aria-expanded":o,children:[(0,u.jsxs)(`span`,{className:`lay-cs-rail`,children:[(0,u.jsx)(`span`,{className:`lay-cs-node`,children:(0,u.jsx)(a,{className:`ic`})}),t<F.length-1&&(0,u.jsx)(`span`,{className:`lay-cs-line`})]}),(0,u.jsx)(`span`,{className:`lay-cs-label`,children:e.label}),n.metric&&(0,u.jsx)(`span`,{className:`lay-cs-metric tab-num`,children:n.metric}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:o?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-cs-body ${o?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-cs-body-inner`,dangerouslySetInnerHTML:i(n.body)})})]},e.key)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}function Se(e){return e.replace(/<[^>]*>/g,``)}function Ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,placeholder:a=`Filter terms…`,items:o,footer:s,delay:c}){let d=r[t]||r.doc,[f,p]=(0,l.useState)(``),m=(0,l.useMemo)(()=>{let e=f.trim().toLowerCase();return e?o.map((e,t)=>({it:e,i:t})).filter(({it:t})=>(t.term+` `+Se(t.def)+` `+(t.tag||``)).toLowerCase().includes(e)):o.map((e,t)=>({it:e,i:t}))},[f,o]);return(0,u.jsxs)(`div`,{className:`card reveal lay-dl`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`label`,{className:`lay-dl-search`,children:[(0,u.jsx)(r.eye,{className:`ic lay-dl-search-ic`}),(0,u.jsx)(`input`,{className:`lay-dl-input`,type:`text`,value:f,placeholder:a,onChange:e=>p(e.target.value)}),f&&(0,u.jsx)(`button`,{type:`button`,className:`lay-dl-clear`,onClick:()=>p(``),"aria-label":`clear`,children:(0,u.jsx)(r.x,{className:`ic`})}),(0,u.jsx)(`span`,{className:`lay-dl-count tab-num faint`,children:m.length})]}),(0,u.jsxs)(`dl`,{className:`lay-dl-list`,children:[m.map(({it:e,i:t})=>(0,u.jsxs)(`div`,{className:`lay-dl-item`,children:[(0,u.jsxs)(`dt`,{className:`lay-dl-term`,children:[(0,u.jsx)(`span`,{className:`lay-dl-dot`,style:{background:e.color||`var(--presence)`}}),(0,u.jsx)(`span`,{className:`lay-dl-term-text`,children:e.term}),e.tag&&(0,u.jsx)(`span`,{className:`lay-dl-tag`,children:e.tag})]}),(0,u.jsx)(`dd`,{className:`lay-dl-def`,dangerouslySetInnerHTML:i(e.def)})]},t)),m.length===0&&(0,u.jsxs)(`div`,{className:`lay-dl-empty faint`,children:[(0,u.jsx)(r.eyeOff,{className:`ic`}),` No terms match “`,f,`”.`]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var I={"worth-it":{color:`var(--insight)`,label:`Worth it`,icon:`check`},skip:{color:`var(--danger)`,label:`Skip it`,icon:`x`},depends:{color:`var(--warning)`,label:`Depends`,icon:`alert`}};function we({title:e,icon:t,iconColor:n,product:a,verdict:o,price:s,priceNote:c,worthItIf:l,skipIf:d,dealBreaker:f,forWho:p,bottomLine:m,footer:h,delay:g}){let _=I[o]??I.depends,v=r[t??`cart`]||r.cart,y=r[_.icon]||r.check,b=l??[],x=d??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--wi":_.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(v,{className:`ic`,style:{color:n||_.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`wi-head`,children:[(0,u.jsxs)(`div`,{className:`wi-head-l`,children:[a&&(0,u.jsx)(`div`,{className:`wi-product`,children:a}),s&&(0,u.jsxs)(`div`,{className:`wi-price`,children:[(0,u.jsx)(`span`,{className:`wi-price-val`,children:s}),c&&(0,u.jsx)(`span`,{className:`wi-price-note`,children:c})]})]}),(0,u.jsxs)(`span`,{className:`wi-badge`,children:[(0,u.jsx)(y,{className:`ic wi-badge-ic`}),` `,_.label]})]}),(b.length>0||x.length>0)&&(0,u.jsxs)(`div`,{className:`wi-split`,children:[b.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--yes`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Worth it if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:b.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.check,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]}),x.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--no`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Skip if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:x.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.x,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]})]}),f&&(0,u.jsxs)(`div`,{className:`wi-dealbreaker`,children:[(0,u.jsx)(r.alert,{className:`ic`}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`b`,{children:`Deal-breaker:`}),` `,f]})]}),(p||m)&&(0,u.jsxs)(`div`,{className:`wi-bottom`,children:[p&&(0,u.jsxs)(`div`,{className:`wi-forwho`,children:[(0,u.jsx)(`span`,{className:`wi-forwho-tag`,children:`For`}),` `,p]}),m&&(0,u.jsx)(`div`,{className:`wi-bottomline`,dangerouslySetInnerHTML:i(m)})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}function Te({reflection:e,follow:t,chip:n,delay:r}){return(0,u.jsxs)(`div`,{className:`card reveal cn-card`,style:{"--delay":(r||0)+`ms`},children:[(0,u.jsx)(`p`,{className:`cn-reflection`,children:e}),t&&(0,u.jsx)(`p`,{className:`cn-follow`,children:t}),n&&(0,u.jsx)(`span`,{className:`cn-chip`,children:n})]})}var L={good:`var(--insight)`,caution:`var(--warning)`,bad:`var(--danger)`};function Ee({title:e,icon:t=`alert`,iconColor:n,levels:a,atLevel:o,marker:s,reason:c,watchFor:l,caveat:d,footer:f,delay:p}){let m=r[t]||r.alert,h=a??[],g=typeof o==`number`?Math.max(0,Math.min(h.length-1,o)):-1,_=g>=0?h[g]:void 0,v=_?.tone?L[_.tone]:`var(--presence)`,y=l??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||v}}),` `,e]}),(0,u.jsx)(`div`,{className:`pc-track`,children:h.map((e,t)=>(0,u.jsx)(`div`,{className:`pc-seg`+(t===g?` on`:``),style:{"--pc":e.tone?L[e.tone]:`var(--text-muted)`}},t))}),(0,u.jsx)(`div`,{className:`pc-labels`,children:h.map((e,t)=>(0,u.jsx)(`span`,{className:`pc-label`+(t===g?` on`:``),children:e.label},t))}),_&&(0,u.jsxs)(`div`,{className:`pc-current`,style:{"--pc":v},children:[(0,u.jsx)(`span`,{className:`pc-marker`,children:s||`Where this falls`}),(0,u.jsx)(`div`,{className:`pc-cur-label`,children:_.label}),_.detail&&(0,u.jsx)(`div`,{className:`pc-cur-detail`,children:_.detail})]}),c&&(0,u.jsx)(`div`,{className:`pc-reason`,children:c}),y.length>0&&(0,u.jsxs)(`div`,{className:`pc-watch`,children:[(0,u.jsxs)(`div`,{className:`pc-watch-h`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` Get it checked if`]}),(0,u.jsx)(`ul`,{className:`pc-watch-list`,children:y.map((e,t)=>(0,u.jsx)(`li`,{children:e},t))})]}),d&&(0,u.jsx)(`div`,{className:`pc-caveat`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var De={common:{label:`Common`,color:`var(--insight)`},"less-common":{label:`Less common`,color:`var(--warning)`},rare:{label:`Rare`,color:`var(--text-muted)`}};function Oe({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,causes:a,prompt:o,caveat:s,footer:c,delay:l}){let d=r[t]||r.eye,f=a??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`df-list`,children:f.map((e,t)=>{let n=e.likelihood?De[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`df-cause`,children:[(0,u.jsxs)(`div`,{className:`df-head`,children:[(0,u.jsx)(`span`,{className:`df-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`df-name`,children:e.name}),n&&(0,u.jsx)(`span`,{className:`df-band`,style:{"--db":n.color},children:n.label}),e.serious&&(0,u.jsxs)(`span`,{className:`df-serious`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` serious`]})]}),e.tell&&(0,u.jsxs)(`div`,{className:`df-tell`,children:[(0,u.jsx)(`span`,{className:`df-tag df-tag--fit`,children:`Fits if`}),` `,e.tell]}),e.pointsAway&&(0,u.jsxs)(`div`,{className:`df-away`,children:[(0,u.jsx)(`span`,{className:`df-tag`,children:`Points away`}),` `,e.pointsAway]})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`df-prompt`,children:[(0,u.jsx)(r.check,{className:`ic`}),(0,u.jsx)(`span`,{children:o})]}),s&&(0,u.jsx)(`div`,{className:`df-caveat`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ke({title:e=`A gentler take`,icon:t=`spark`,iconColor:n=`var(--presence)`,thought:a,distortion:o,reframe:s,footer:c,delay:l}){let d=r[t]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal rf-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rf-thought`,children:[(0,u.jsx)(`div`,{className:`rf-tag`,children:`What you're telling yourself`}),(0,u.jsxs)(`p`,{className:`rf-quote`,children:[(0,u.jsx)(r.quote,{className:`ic rf-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(a)})]}),o&&(0,u.jsx)(`span`,{className:`rf-distortion`,children:o})]}),(0,u.jsxs)(`div`,{className:`rf-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`rf-shift-line`}),(0,u.jsx)(r.spark,{className:`ic rf-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rf-shift-line`})]}),(0,u.jsxs)(`div`,{className:`rf-reframe`,children:[(0,u.jsx)(`div`,{className:`rf-tag rf-tag--true`,children:`What's also true`}),(0,u.jsx)(`p`,{className:`rf-counter`,dangerouslySetInnerHTML:i(s)})]}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var R={478:{inhale:4,hold:7,exhale:8},box:{inhale:4,hold:4,exhale:4},calm:{inhale:4,hold:0,exhale:6}};function Ae({title:e=`Breathe with me`,icon:t=`wind`,iconColor:n=`var(--presence)`,pattern:i=`calm`,inhale:a,hold:o,exhale:s,note:c,delay:l}){let d=r[t]||r.wind,f=R[i]??R.calm,p=z(a??f.inhale,2,12),m=z(o??f.hold,0,12),h=z(s??f.exhale,2,14),g=p+m+h,_=m>0,v=p/g,y=(p+m)/g;return(0,u.jsxs)(`div`,{className:`card reveal bp-card`,style:{"--delay":(l||0)+`ms`,"--bp-cycle":g+`s`,"--bp-in-end":B(v),"--bp-hold-end":B(y),"--bp-accent":n},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`bp-stage`,role:`img`,"aria-label":`Breathing pacer: ${je(p,m,h)}`,children:[(0,u.jsx)(`div`,{className:`bp-ring`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`bp-orb`})}),(0,u.jsxs)(`div`,{className:`bp-caption`,"aria-hidden":`true`,children:[(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--in`,children:[`Breathe in`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[p,`s`]})]}),_&&(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--hold`,children:[`Hold`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[m,`s`]})]}),(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--out`,children:[`Breathe out`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[h,`s`]})]})]})]}),(0,u.jsx)(`p`,{className:`bp-still`,children:Me(p,m,h)}),c&&(0,u.jsx)(`div`,{className:`bp-note`,children:c})]})}function z(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function B(e){return(e*100).toFixed(2)+`%`}function je(e,t,n){return t>0?`in ${e} seconds, hold ${t}, out ${n}`:`in ${e} seconds, out ${n}`}function Me(e,t,n){return t>0?`In through your nose for ${e}, hold for ${t}, out slowly for ${n}. Repeat a few times at your own pace.`:`In through your nose for ${e}, then out slowly for ${n}. Repeat a few times at your own pace.`}var Ne={low:{label:`Easy`,color:`var(--insight)`},medium:{label:`Some effort`,color:`var(--presence)`},high:{label:`A reach`,color:`var(--warning)`}};function Pe({title:e=`Things you could try`,icon:t=`spark`,iconColor:n=`var(--presence)`,intro:a=`Pick whatever feels possible — you don't have to do all of them.`,options:o,footer:s,delay:c}){let l=r[t]||r.spark,d=o??[];return(0,u.jsxs)(`div`,{className:`card reveal cpm-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`cpm-intro`,children:a}),(0,u.jsx)(`ul`,{className:`cpm-list`,children:d.map((e,t)=>{let n=e.effort?Ne[e.effort]:void 0,i=e.icon?r[e.icon]:void 0;return(0,u.jsxs)(`li`,{className:`cpm-opt`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-mark`,"aria-hidden":`true`,children:i?(0,u.jsx)(i,{className:`ic cpm-opt-ic`,style:{width:15,height:15}}):(0,u.jsx)(`span`,{className:`cpm-dot`})}),(0,u.jsxs)(`div`,{className:`cpm-opt-body`,children:[(0,u.jsxs)(`div`,{className:`cpm-opt-head`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-label`,children:e.label}),e.time&&(0,u.jsxs)(`span`,{className:`cpm-tag cpm-tag--time`,children:[(0,u.jsx)(r.clock,{className:`ic cpm-tag-ic`,style:{width:11,height:11}}),e.time]}),n&&(0,u.jsx)(`span`,{className:`cpm-tag cpm-tag--effort`,style:{"--cm":n.color},children:n.label})]}),e.detail&&(0,u.jsx)(`p`,{className:`cpm-opt-detail`,children:e.detail})]})]},t)})}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var Fe={"most likely":{label:`Most likely`,color:`var(--insight)`},possible:{label:`Possible`,color:`var(--warning)`},"less likely":{label:`Less likely`,color:`var(--text-muted)`}};function Ie({title:e,icon:t,iconColor:n,flavor:a=`tone`,message:o,readings:s,cantKnow:c,reply:l,footer:d,delay:f}){let p=a===`caution`,m=r[t??(p?`shield`:`chat`)]||r.chat,h=n||(p?`var(--warning)`:`var(--presence)`),g=s??[];return(0,u.jsxs)(`div`,{className:`card reveal sbd-card`,style:{"--delay":(f||0)+`ms`,"--sd":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`sbd-msg`,children:[(0,u.jsx)(`span`,{className:`sbd-msg-bar`}),(0,u.jsx)(r.quote,{className:`ic sbd-msg-mark`,style:{width:22,height:22}}),(0,u.jsx)(`blockquote`,{className:`sbd-msg-text`,children:o})]}),g.length>0&&(0,u.jsx)(`ol`,{className:`sbd-readings`,children:g.map((e,t)=>{let n=e.likelihood?Fe[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`sbd-reading`,children:[(0,u.jsxs)(`div`,{className:`sbd-reading-head`,children:[(0,u.jsx)(`span`,{className:`sbd-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`sbd-interp`,children:e.interpretation}),n&&(0,u.jsx)(`span`,{className:`sbd-band`,style:{"--sb":n.color},children:n.label})]}),e.cue&&(0,u.jsxs)(`div`,{className:`sbd-cue`,children:[(0,u.jsx)(`span`,{className:`sbd-cue-tag`,children:p?`Red flag`:`Rests on`}),(0,u.jsx)(`span`,{children:e.cue})]})]},t)})}),c&&(0,u.jsxs)(`div`,{className:`sbd-cantknow`,children:[(0,u.jsx)(r.eye,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:c})]}),l&&(0,u.jsxs)(`div`,{className:`sbd-reply`,children:[(0,u.jsxs)(`div`,{className:`sbd-reply-tag`,children:[(0,u.jsx)(r.send,{className:`ic`,style:{width:13,height:13}}),p?`If you respond`:`You could ask`]}),(0,u.jsx)(`p`,{className:`sbd-reply-text`,children:l})]}),d&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(d)})]})}function V({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,opener:a,branches:o,exit:s,footer:c,delay:l}){let d=r[t]||r.chat,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal rh-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rh-opener`,children:[(0,u.jsx)(`span`,{className:`rh-open-tag`,children:`Open with`}),(0,u.jsx)(`p`,{className:`rh-open-line`,dangerouslySetInnerHTML:i(a)})]}),f.length>0&&(0,u.jsx)(`ol`,{className:`rh-branches`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`rh-branch`,children:[(0,u.jsxs)(`div`,{className:`rh-reaction`,children:[(0,u.jsx)(r.undo,{className:`ic rh-reaction-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rh-if`,children:`If they`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.reaction)})]}),(0,u.jsxs)(`div`,{className:`rh-say`,children:[(0,u.jsx)(`span`,{className:`rh-say-tag`,children:`Say`}),(0,u.jsx)(`span`,{className:`rh-say-line`,dangerouslySetInnerHTML:i(e.say)})]}),e.why&&(0,u.jsxs)(`div`,{className:`rh-why`,children:[(0,u.jsx)(r.spark,{className:`ic rh-why-ic`,style:{width:11,height:11}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.why)})]})]},t))}),s&&(0,u.jsxs)(`div`,{className:`rh-exit`,children:[(0,u.jsx)(r.check,{className:`ic rh-exit-ic`,style:{width:14,height:14}}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`span`,{className:`rh-exit-tag`,children:`If you need to wrap it up`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(s)})]})]}),(0,u.jsx)(`p`,{className:`rh-note`,children:`A rehearsal, not a prediction — say it your way.`}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Le={email:{label:`Email`,icon:`mail`},phone:{label:`Call`,icon:`speaker`},"in-app":{label:`In-app`,icon:`sliders`},chat:{label:`Chat`,icon:`chat`}};function Re({title:e,icon:t=`send`,iconColor:n=`var(--presence)`,intro:a,scripts:s,footer:c,delay:l}){let d=r[t]||r.send,f=s??[];return(0,u.jsxs)(`div`,{className:`card reveal mss-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`mss-intro`,children:a}),(0,u.jsx)(`ul`,{className:`mss-list`,children:f.map((e,t)=>{let n=e.channel?Le[e.channel]:void 0,i=n?r[n.icon]||r.send:void 0;return(0,u.jsxs)(`li`,{className:`mss-item`,children:[(0,u.jsxs)(`div`,{className:`mss-head`,children:[(0,u.jsx)(`span`,{className:`mss-target`,children:e.target}),n&&i&&(0,u.jsxs)(`span`,{className:`mss-chan`,children:[(0,u.jsx)(i,{className:`ic mss-chan-ic`}),` `,n.label]})]}),(0,u.jsxs)(`div`,{className:`mss-msg`,children:[(0,u.jsx)(`p`,{className:`mss-msg-text`,children:e.message}),(0,u.jsx)(o,{text:e.message,label:`Copy message`,className:`mss-copy`})]}),e.rebuttal&&(0,u.jsxs)(`div`,{className:`mss-rebuttal`,children:[(0,u.jsx)(`span`,{className:`mss-rebuttal-tag`,children:`If they push back`}),(0,u.jsx)(`span`,{children:e.rebuttal})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ze({title:e,icon:t=`mic`,iconColor:n=`var(--presence)`,lines:a,totalTime:o,footer:s,delay:c}){let l=r[t]||r.mic,d=a??[];return(0,u.jsxs)(`div`,{className:`card reveal tlk-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,o&&(0,u.jsxs)(`span`,{className:`tlk-total`,children:[(0,u.jsx)(r.clock,{className:`ic tlk-total-ic`}),` `,o]})]}),(0,u.jsx)(`ol`,{className:`tlk-list`,children:d.map((e,t)=>(0,u.jsxs)(`li`,{className:`tlk-line`,children:[(0,u.jsx)(`span`,{className:`tlk-rail`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`tlk-dot`})}),(0,u.jsxs)(`div`,{className:`tlk-body`,children:[(0,u.jsx)(`p`,{className:`tlk-say`,children:e.say}),(e.beat||e.note)&&(0,u.jsxs)(`div`,{className:`tlk-meta`,children:[e.beat&&(0,u.jsxs)(`span`,{className:`tlk-beat`,children:[(0,u.jsx)(r.play,{className:`ic tlk-beat-ic`}),` `,e.beat]}),e.note&&(0,u.jsx)(`span`,{className:`tlk-note`,children:e.note})]})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Be({title:e=`You deserve support right now`,message:t,safetyQuestion:n,resources:i,grounding:a,reassurance:o,delay:s}){let l=i??[];return(0,u.jsxs)(`div`,{className:`card reveal lfl-card`,style:{"--delay":(s||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(r.shield,{className:`ic`,style:{color:`var(--presence)`}}),` `,e]}),t&&(0,u.jsx)(`p`,{className:`lfl-message`,children:t}),n&&(0,u.jsx)(`p`,{className:`lfl-safety`,children:n}),(0,u.jsx)(`div`,{className:`lfl-resources`,children:l.map((e,t)=>{let n=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`lfl-res-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lfl-res-contact`,children:e.contact}),e.note&&(0,u.jsx)(`span`,{className:`lfl-res-note`,children:e.note})]}),r=e.href?c(e.href):null;return r?(0,u.jsx)(`a`,{className:`lfl-res lfl-res--link`,href:r,children:n},t):(0,u.jsx)(`div`,{className:`lfl-res`,children:n},t)})}),a&&(0,u.jsxs)(`div`,{className:`lfl-grounding`,children:[(0,u.jsx)(r.spark,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:a})]}),o&&(0,u.jsx)(`p`,{className:`lfl-reassurance`,children:o})]})}var H={stressed:`´`,unstressed:`˘`},U=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`];function Ve({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,lines:a,meter:o,caption:s,footer:c,delay:l}){let d=r[t]||r.proof,f=new Map;for(let e of a){let t=e.rhyme?.trim().toLowerCase();t&&!f.has(t)&&f.set(t,U[f.size%U.length])}return(0,u.jsxs)(`div`,{className:`card reveal lay-scan`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-scan-meter`,children:[(0,u.jsxs)(`span`,{className:`lay-scan-meter-key`,children:[(0,u.jsx)(`span`,{className:`lay-scan-glyph`,children:H.stressed}),` stressed`,(0,u.jsx)(`span`,{className:`lay-scan-glyph muted`,children:H.unstressed}),` unstressed`]}),(0,u.jsx)(`span`,{className:`lay-scan-meter-name`,children:o})]}),(0,u.jsx)(`div`,{className:`lay-scan-lines`,children:a.map((e,t)=>{let n=new Set((e.feet||[]).filter(t=>t>0&&t<e.syllables.length)),r=e.rhyme?f.get(e.rhyme.trim().toLowerCase()):void 0;return(0,u.jsxs)(`div`,{className:`lay-scan-row`,children:[(0,u.jsx)(`ol`,{className:`lay-scan-line`,children:e.syllables.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-scan-syl`,"data-stress":e.stress===`stressed`?`on`:`off`,children:[n.has(t)&&(0,u.jsx)(`span`,{className:`lay-scan-bar`,"aria-hidden":`true`}),(0,u.jsx)(`span`,{className:`lay-scan-mark`,"aria-hidden":`true`,children:H[e.stress]??H.unstressed}),(0,u.jsx)(`span`,{className:`lay-scan-text`,children:e.text})]},t))}),e.rhyme&&(0,u.jsx)(`span`,{className:`lay-scan-rhyme`,style:r?{"--rh":r}:void 0,children:e.rhyme.trim().toLowerCase()})]},t)})}),s&&(0,u.jsx)(`div`,{className:`lay-scan-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var W=46,He=`The quick brown fox`;function Ue(e){return`${Number.isInteger(e)?e:Number(e.toFixed(1))} px`}function We({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,styles:a,pairing:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=a.reduce((e,t)=>Math.max(e,t.sizePx||0),1),p=f>W?W/f:1,m=e=>{let t=[];return e.family&&t.push(e.family),e.weight&&t.push(String(e.weight)),t.push(Ue(e.sizePx)),e.lineHeight&&t.push(`${e.lineHeight}×`),e.tracking&&t.push(e.tracking),t};return(0,u.jsxs)(`div`,{className:`card reveal lay-tspec`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-tspec-list`,children:a.map((e,t)=>{let n=e.color||`var(--presence)`,r=Math.max(11,Math.round((e.sizePx||16)*p));return(0,u.jsxs)(`li`,{className:`lay-tspec-row`,children:[(0,u.jsxs)(`div`,{className:`lay-tspec-meta`,children:[(0,u.jsx)(`span`,{className:`lay-tspec-name`,style:{color:n},children:e.name}),(0,u.jsx)(`div`,{className:`lay-tspec-chips`,children:m(e).map((e,t)=>(0,u.jsx)(`span`,{className:`lay-tspec-chip tab-num`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-tspec-sample`,style:{fontSize:r+`px`,fontWeight:e.weight??500,lineHeight:e.lineHeight??1.15,letterSpacing:e.tracking,fontFamily:e.family},children:e.sample||He})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`lay-tspec-pairing`,children:[(0,u.jsx)(`div`,{className:`lay-tspec-pair-tag`,children:`Pairing`}),(0,u.jsx)(`div`,{className:`lay-tspec-pair-head`,style:{fontFamily:o.heading},children:o.heading}),(0,u.jsxs)(`div`,{className:`lay-tspec-pair-body`,style:{fontFamily:o.body},children:[(0,u.jsxs)(`span`,{className:`lay-tspec-pair-faces tab-num`,children:[o.heading,` `,`·`,` `,o.body]}),` `,`pair a confident display face with a calm, readable body face — the heading carries the voice while the paragraph stays out of the way and lets the words breathe.`]})]}),s&&(0,u.jsx)(`div`,{className:`lay-tspec-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ge={WS:{subject:.5,label:`Wide`},MS:{subject:.78,label:`Medium`},CU:{subject:1.05,label:`Close`},ECU:{subject:1.5,label:`Extreme`},OTS:{subject:.92,label:`Over-shoulder`}},G=100,K=64;function Ke(e){let t=Ge[e],n=K*t.subject/4;return{headR:n,cx:e===`OTS`?G*.62:G/2,headCy:K-n*1.7,shoulderW:n*2.4,label:t.label}}function qe({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,shots:a,caption:o,footer:s,delay:c}){let l=r[t]||r.play;return(0,u.jsxs)(`div`,{className:`card reveal lay-shot`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-shot-list`,children:a.map((e,t)=>{let n=e.size||`MS`,i=Ke(n),a=[e.movement,e.lens,e.duration].filter(Boolean);return(0,u.jsxs)(`li`,{className:`lay-shot-row`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-thumb`,children:[(0,u.jsxs)(`svg`,{className:`lay-shot-frame`,viewBox:`0 0 ${G} ${K}`,role:`img`,"aria-label":`${n} shot framing`,preserveAspectRatio:`xMidYMid slice`,children:[n===`OTS`&&(0,u.jsx)(`path`,{d:`M 0 ${K} L 0 ${K*.28} Q ${G*.18} ${K*.2} ${G*.3} ${K} Z`,className:`lay-shot-fg`}),(0,u.jsx)(`circle`,{cx:i.cx,cy:i.headCy,r:i.headR,className:`lay-shot-subj`}),(0,u.jsx)(`path`,{d:`M ${i.cx-i.shoulderW} ${K} Q ${i.cx} ${i.headCy+i.headR*.4} ${i.cx+i.shoulderW} ${K} Z`,className:`lay-shot-subj`}),(0,u.jsx)(`line`,{x1:G/3,y1:0,x2:G/3,y2:K,className:`lay-shot-grid`}),(0,u.jsx)(`line`,{x1:G/3*2,y1:0,x2:G/3*2,y2:K,className:`lay-shot-grid`})]}),(0,u.jsx)(`span`,{className:`lay-shot-size`,children:n})]}),(0,u.jsxs)(`div`,{className:`lay-shot-body`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-top`,children:[(0,u.jsx)(`span`,{className:`lay-shot-n tab-num`,children:e.n}),(0,u.jsx)(`span`,{className:`lay-shot-frame-label`,children:i.label}),a.length>0&&(0,u.jsx)(`div`,{className:`lay-shot-meta`,children:a.map((e,t)=>(0,u.jsx)(`span`,{className:`lay-shot-tag`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-shot-action`,children:e.action}),e.dialogue&&(0,u.jsxs)(`div`,{className:`lay-shot-dialogue`,children:[(0,u.jsx)(r.chat,{className:`ic`}),(0,u.jsx)(`span`,{children:e.dialogue})]})]})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-shot-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var q=320,J=96,Y={l:8,r:8,t:12,b:10};function Je(e,t){if(!e)return null;let n=e.match(/-?\d+(\.\d+)?/);if(!n)return null;let r=parseFloat(n[0]);return Number.isFinite(r)?e.includes(`%`)||r<=100&&!/p/i.test(e)?Math.min(1,Math.max(0,r/100)):t>0?Math.min(1,Math.max(0,r/t)):null:null}function Ye({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,framework:o,beats:s,tension:c,caption:d,footer:f,delay:p}){let m=r[t]||r.edit,h=(0,l.useMemo)(()=>{let e=Math.max(1,s.length-1),t=s.map(e=>parseFloat((e.at||``).match(/\d+/)?.[0]||``)).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):0,r=s.map((t,r)=>Je(t.at,n)??r/e),i=a([0,1],[Y.l,q-Y.r]),o=``,l=[];if(c&&c.length>=2){let e=Math.min(...c),t=Math.max(...c),n=a([e,t===e?e+1:t],[J-Y.b,Y.t]);l=c.map((e,t)=>({x:i(t<r.length?r[t]:t/Math.max(1,c.length-1)),y:n(e)})),o=l.map((e,t)=>{if(t===0)return`M ${e.x} ${e.y}`;let n=l[t-1],r=(n.x+e.x)/2;return`C ${r} ${n.y} ${r} ${e.y} ${e.x} ${e.y}`}).join(` `)}return{fracs:r,sx:i,curve:o,dots:l,baseY:J-Y.b}},[s,c]);return(0,u.jsxs)(`div`,{className:`card reveal lay-beat`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-beat-framework`,children:[(0,u.jsx)(`span`,{className:`lay-beat-fw-tag`,children:`Structure`}),o]}),(0,u.jsx)(`ol`,{className:`lay-beat-list`,children:s.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-beat-row`,children:[(0,u.jsx)(`div`,{className:`lay-beat-rail`,children:(0,u.jsx)(`span`,{className:`lay-beat-dot`})}),(0,u.jsxs)(`div`,{className:`lay-beat-body`,children:[(0,u.jsxs)(`div`,{className:`lay-beat-head`,children:[(0,u.jsx)(`span`,{className:`lay-beat-name`,children:e.name}),e.at&&(0,u.jsx)(`span`,{className:`lay-beat-at tab-num`,children:e.at})]}),(0,u.jsx)(`div`,{className:`lay-beat-line`,children:e.line})]})]},t))}),h.curve&&(0,u.jsxs)(`figure`,{className:`lay-beat-curve`,children:[(0,u.jsx)(`figcaption`,{className:`lay-beat-curve-cap faint`,children:`Dramatic tension`}),(0,u.jsxs)(`svg`,{viewBox:`0 0 ${q} ${J}`,className:`lay-beat-svg`,role:`img`,"aria-label":`tension curve`,children:[(0,u.jsx)(`defs`,{children:(0,u.jsxs)(`linearGradient`,{id:`lay-beat-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,u.jsx)(`stop`,{offset:`0%`,stopColor:`var(--presence)`,stopOpacity:`0.22`}),(0,u.jsx)(`stop`,{offset:`100%`,stopColor:`var(--presence)`,stopOpacity:`0`})]})}),(0,u.jsx)(`path`,{d:`${h.curve} L ${h.dots[h.dots.length-1].x} ${h.baseY} L ${h.dots[0].x} ${h.baseY} Z`,fill:`url(#lay-beat-fill)`}),(0,u.jsx)(`path`,{d:h.curve,className:`lay-beat-stroke`,fill:`none`}),h.dots.map((e,t)=>(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:2.6,className:`lay-beat-pt`},t))]})]}),d&&(0,u.jsx)(`div`,{className:`lay-beat-caption faint`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function Xe({title:e=`A few things to sit with`,icon:t=`edit`,iconColor:n=`var(--presence)`,theme:a,prompts:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal lay-ps`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`lay-ps-theme`,children:[(0,u.jsx)(`span`,{className:`lay-ps-theme-dot`,"aria-hidden":`true`}),a]}),(0,u.jsx)(`ol`,{className:`lay-ps-list`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-ps-card`,children:[(0,u.jsx)(`span`,{className:`lay-ps-mark tab-num`,"aria-hidden":`true`,children:t+1}),(0,u.jsxs)(`div`,{className:`lay-ps-body`,children:[(0,u.jsx)(`p`,{className:`lay-ps-q`,children:e.question}),e.guidance&&(0,u.jsx)(`p`,{className:`lay-ps-guide`,children:e.guidance})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`lay-ps-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ze={HR:`Heart rate`,pace:`Pace`,RPE:`Perceived effort`},X=[`var(--insight)`,`#10b981`,`var(--presence)`,`var(--warning)`,`var(--danger)`];function Qe(e){let t=X.length-1,n=Math.max(0,Math.min(t,e*t)),r=Math.floor(n),i=Math.min(t,r+1),a=n-r;return a===0?X[r]:`color-mix(in oklab, ${X[i]} ${Math.round(a*100)}%, ${X[r]})`}function $e({title:e=`Training zones`,icon:t=`spark`,iconColor:n=`var(--presence)`,metric:a=`HR`,zones:o,current:s,caption:c,footer:l,delay:d}){let f=r[t]||r.spark,p=o??[],m=p.length,h=typeof s==`number`&&m>0?Math.max(0,Math.min(m-1,Math.round(s))):-1,g=Ze[a]??a,_=p.map((e,t)=>({z:e,i:t})).reverse();return(0,u.jsxs)(`div`,{className:`card reveal lay-zl`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,(0,u.jsx)(`span`,{className:`lay-zl-metric`,children:g})]}),(0,u.jsx)(`div`,{className:`lay-zl-ladder`,children:_.map(({z:e,i:t})=>{let n=Qe(m>1?t/(m-1):0),r=t===h;return(0,u.jsxs)(`div`,{className:`lay-zl-band`+(r?` here`:``),style:{"--zc":n},children:[(0,u.jsx)(`div`,{className:`lay-zl-rail`,"aria-hidden":`true`}),(0,u.jsxs)(`div`,{className:`lay-zl-band-body`,children:[(0,u.jsxs)(`div`,{className:`lay-zl-band-top`,children:[(0,u.jsx)(`span`,{className:`lay-zl-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lay-zl-range tab-num`,children:e.range}),r&&(0,u.jsxs)(`span`,{className:`lay-zl-here`,children:[(0,u.jsx)(`span`,{className:`lay-zl-here-dot`,"aria-hidden":`true`}),`You are here`]})]}),(0,u.jsx)(`div`,{className:`lay-zl-effort`,children:e.effort}),(0,u.jsx)(`div`,{className:`lay-zl-purpose`,children:e.purpose})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`lay-zl-caption faint`,children:c}),l&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(l)})]})}var et={first:{label:`First`,color:`var(--insight)`},then:{label:`Then`,color:`var(--presence)`},next:{label:`Next`,color:`var(--presence)`},last:{label:`Last`,color:`var(--insight)`}};function tt(e,t){return e===0?`first`:e===t-1?`last`:e%2==1?`then`:`next`}function nt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,panels:a,caption:o,footer:s,delay:c}){let d=r[t]||r.layers,f=a??[],p=f.length;return(0,u.jsxs)(`div`,{className:`card reveal lay-pseq`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-pseq-strip`,children:f.map((e,t)=>{let n=et[e.marker??tt(t,p)];return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(`li`,{className:`lay-pseq-panel`,style:{"--mc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-pseq-marker`,children:n.label}),(0,u.jsx)(`div`,{className:`lay-pseq-frame`,children:(0,u.jsxs)(`svg`,{className:`lay-pseq-art`,viewBox:`0 0 64 48`,role:`img`,"aria-label":e.label,preserveAspectRatio:`xMidYMid meet`,children:[(0,u.jsx)(`rect`,{x:`8`,y:`8`,width:`48`,height:`32`,rx:`4`,className:`lay-pseq-art-card`}),(0,u.jsx)(`line`,{x1:`16`,y1:`32`,x2:`48`,y2:`32`,className:`lay-pseq-art-base`}),(0,u.jsx)(`circle`,{cx:`32`,cy:`21`,r:`9`,className:`lay-pseq-art-badge`}),(0,u.jsx)(`text`,{x:`32`,y:`21`,className:`lay-pseq-art-num`,children:t+1})]})}),(0,u.jsx)(`div`,{className:`lay-pseq-label`,children:e.label}),e.caption&&(0,u.jsx)(`div`,{className:`lay-pseq-cap faint`,children:e.caption})]}),t<p-1&&(0,u.jsx)(`li`,{className:`lay-pseq-arrow`,"aria-hidden":`true`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-pseq-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Z(e){return e==null||!Number.isFinite(e)?null:Math.max(0,Math.min(100,Math.round(e)))}function Q({label:e,items:t,accent:n,mark:a}){let o=a===`check`?r.check:r.alert;return(0,u.jsxs)(`div`,{className:`tr-ev-col`,style:{"--te":n},children:[(0,u.jsxs)(`div`,{className:`tr-ev-head`,children:[(0,u.jsx)(o,{className:`ic`,style:{color:n,width:13,height:13}}),(0,u.jsx)(`span`,{children:e}),(0,u.jsx)(`span`,{className:`tr-ev-count tab-num`,children:t.length})]}),t.length===0?(0,u.jsx)(`p`,{className:`tr-ev-empty faint`,children:`None noted`}):(0,u.jsx)(`ul`,{className:`tr-ev-list`,children:t.map((e,t)=>(0,u.jsxs)(`li`,{className:`tr-ev-item m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,u.jsx)(o,{className:`ic tr-ev-mark`,style:{color:n}}),(0,u.jsx)(`span`,{className:`tr-ev-text`,dangerouslySetInnerHTML:i(e)})]},t))})]})}function rt({title:e=`Thought record`,icon:t=`spark`,iconColor:n=`var(--presence)`,situation:a,automaticThought:o,emotion:s,emotionIntensity:c,evidenceFor:l=[],evidenceAgainst:d=[],alternativeThought:f,outcomeEmotion:p,outcomeIntensity:m,footer:h,delay:g}){let _=r[t]||r.spark,v=Z(c),y=Z(m),b=l.length>0||d.length>0,x=!!f,S=!!p||y!=null,C=(g||0)+140;return(0,u.jsxs)(`div`,{className:`card reveal tr-card`,style:{"--delay":(g||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`tr-block tr-situation`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`The situation`}),(0,u.jsx)(`p`,{className:`tr-body`,dangerouslySetInnerHTML:i(a)})]}),(0,u.jsxs)(`div`,{className:`tr-block tr-thought`,children:[(0,u.jsxs)(`div`,{className:`tr-row-head`,children:[(0,u.jsx)(`span`,{className:`tr-tag`,children:`The automatic thought`}),(0,u.jsxs)(`span`,{className:`tr-emo-chip`,children:[s,v!=null&&(0,u.jsxs)(`span`,{className:`tr-emo-pct tab-num`,children:[v,`%`]})]})]}),o&&(0,u.jsxs)(`p`,{className:`tr-quote`,children:[(0,u.jsx)(r.quote,{className:`ic tr-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(o)})]}),v!=null&&(0,u.jsx)(`div`,{className:`tr-meter`,"aria-label":`felt ${v} of 100`,children:(0,u.jsx)(`span`,{className:`tr-meter-fill`,style:{width:v+`%`}})})]}),b&&(0,u.jsxs)(`div`,{className:`tr-block tr-evidence`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`Weighing the evidence`}),(0,u.jsxs)(`div`,{className:`tr-ev-grid`,children:[(0,u.jsx)(Q,{label:`Feeds the thought`,items:l,accent:`var(--warning)`,mark:`alert`}),(0,u.jsx)(`div`,{className:`tr-ev-divider`}),(0,u.jsx)(Q,{label:`Complicates it`,items:d,accent:`var(--insight)`,mark:`check`})]})]}),x&&(0,u.jsxs)(`div`,{className:`tr-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`tr-shift-line`}),(0,u.jsx)(r.spark,{className:`ic tr-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`tr-shift-line`})]}),f&&(0,u.jsxs)(`div`,{className:`tr-block tr-alt m-fade-rise`,style:{"--delay":C+`ms`},children:[(0,u.jsx)(`div`,{className:`tr-tag tr-tag--true`,children:`The balanced thought`}),(0,u.jsx)(`p`,{className:`tr-alt-text`,dangerouslySetInnerHTML:i(f)})]}),S&&(0,u.jsxs)(`div`,{className:`tr-outcome`,children:[(0,u.jsxs)(`div`,{className:`tr-outcome-chip`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Felt`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:s}),v!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[v,`%`]})]}),(0,u.jsx)(r.chevR,{className:`ic tr-outcome-arrow`,style:{width:14,height:14}}),(0,u.jsxs)(`div`,{className:`tr-outcome-chip tr-outcome-chip--after`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Now`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:p||s}),y!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[y,`%`]})]})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}var it=e({layoutRegistry:()=>$}),$={callout:s(le),verdictcard:s(fe),scenarioset:s(me),accordion:s(he),proscons:s(ge),takeaways:s(_e),faq:s(ve),tabs:s(ye),divider:s(M),pullquote:s(P),storystrip:s(be),casestudy:s(xe),deflist:s(Ce),worthit:s(we),companionnote:s(Te),positioncard:s(Ee),differential:s(Oe),reframecard:s(ke),breathpacer:s(Ae),copingmenu:s(Pe),subtextdecode:s(Ie),rehearsal:s(V),messagescriptset:s(Re),talktrack:s(ze),lifeline:s(Be),scansionmark:s(Ve),typespec:s(We),shotlist:s(qe),beatsheet:s(Ye),promptset:s(Xe),zoneladder:s($e),picturesequence:s(nt),storyarc:s(ee),devicemark:s(oe),thoughtrecord:s(rt)};export{it as n,$ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-
|
|
1
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-BlCH2LG4.js";import{n as i}from"./icons-CHVz6kv_.js";import"./lib-3J_9keOc.js";import{n as a}from"./motion-BYK1NIl0.js";import{t as o}from"./registry-types-DMuK0vJ6.js";function s(e){switch(e){case`triggered`:return`var(--danger)`;case`clear`:return`var(--insight)`;case`watching`:return`var(--presence)`;default:return`var(--text-muted)`}}function c(e){switch(e){case`triggered`:return`TRIGGERED`;case`clear`:return`CLEAR`;case`watching`:return`WATCHING`;default:return`AWAITING`}}var l=n();function u({title:e=`Why you’re tracking this`,icon:t=`quote`,iconColor:n=`var(--presence)`,reasoning:r,asOf:a,reconsiderIf:o,tripwireState:u,footer:d,delay:f}){let p=i[t]||i.quote;return(0,l.jsxs)(`div`,{className:`card reveal dash-thesis`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`blockquote`,{className:`dash-thesis-quote`,style:{borderColor:n},children:[r,a&&(0,l.jsx)(`span`,{className:`dash-thesis-date`,children:a})]}),o&&(0,l.jsxs)(`div`,{className:`dash-thesis-tripwire`,children:[(0,l.jsx)(`span`,{className:`dash-thesis-recon`,children:`Reconsider if:`}),(0,l.jsx)(`span`,{className:`dash-chip`,style:{"--chip":s(u??`watching`)},children:o}),u&&(0,l.jsx)(`span`,{className:`dash-chip-state`,style:{"--chip":s(u)},children:c(u)})]}),d&&(0,l.jsx)(`div`,{className:`dash-foot`,children:d})]})}var d=r(),f=t(),p=46,m=60,h=60;function g(e){return{x:m+p*Math.cos(e),y:h+p*Math.sin(e)}}function _(e){if(e<=0)return null;let t=Math.min(e,.9998),n=-Math.PI/2,r=n+t*2*Math.PI,i=g(n),a=g(r),o=+(t>.5);return`M ${i.x.toFixed(2)} ${i.y.toFixed(2)} A ${p} ${p} 0 ${o} 1 ${a.x.toFixed(2)} ${a.y.toFixed(2)}`}function v(e){let t=(0,d.c)(5),{d:n,color:r,delay:i}=e,o=(0,f.useRef)(null),s;t[0]===i?s=t[1]:(s={delay:i},t[0]=i,t[1]=s),a(o,s);let c;return t[2]!==r||t[3]!==n?(c=(0,l.jsx)(`path`,{ref:o,d:n,fill:`none`,stroke:r,strokeWidth:`9`,strokeLinecap:`round`,className:`dash-gauge-arc`}),t[2]=r,t[3]=n,t[4]=c):c=t[4],c}function y({title:e=`Thesis alignment`,icon:t=`shield`,iconColor:n=`var(--insight)`,pct:r,band:a,note:o,color:s=`var(--insight)`,footer:c,delay:u}){let d=i[t]||i.shield,f=r!==null&&Number.isFinite(r),m=_(f?Math.max(0,Math.min(100,r))/100:0);return(0,l.jsxs)(`div`,{className:`card reveal dash-gauge`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dash-gauge-body`,children:[(0,l.jsxs)(`div`,{className:`dash-gauge-ring`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 120 120`,className:`dash-gauge-svg`,"aria-hidden":`true`,children:[(0,l.jsx)(`circle`,{cx:`60`,cy:`60`,r:p,fill:`none`,stroke:`var(--track)`,strokeWidth:`9`}),m&&(0,l.jsx)(v,{d:m,color:s,delay:u},m)]}),(0,l.jsx)(`div`,{className:`dash-gauge-center`,children:(0,l.jsx)(`div`,{className:`dash-gauge-pct tab-num`,style:{color:f?s:`var(--text-muted)`},children:f?`${Math.round(r)}%`:`—`})})]}),(0,l.jsx)(`div`,{className:`dash-gauge-side`,children:f?(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsx)(`div`,{className:`dash-gauge-band`,children:a}),o&&(0,l.jsx)(`div`,{className:`dash-gauge-note`,children:o})]}):(0,l.jsx)(`div`,{className:`dash-gauge-note faint`,children:`Awaiting your data`})})]}),c&&(0,l.jsx)(`div`,{className:`dash-foot`,children:c})]})}function b({title:e=`Standing alerts`,icon:t=`bell`,iconColor:n=`var(--warning)`,alerts:r,footer:a,delay:o}){let u=i[t]||i.bell;return(0,l.jsxs)(`div`,{className:`card reveal dash-alerts`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-alerts-empty faint`,children:`No standing alerts.`}):(0,l.jsx)(`div`,{className:`dash-alerts-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-alert-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`dash-alert-dot`,style:{background:s(e.state)}}),(0,l.jsx)(`span`,{className:`dash-alert-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-alert-state`,style:{color:s(e.state)},children:e.status??c(e.state)})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var x={origin:`var(--presence)`,added:`var(--insight)`,linked:`var(--warning)`},S={origin:`ORIGIN`,added:`ADDED`,linked:`LINKED`};function C({title:e=`Sources`,icon:t=`layers`,iconColor:n=`var(--text-muted)`,rows:r,footer:a,delay:o}){let s=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal dash-sources`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-sources-empty faint`,children:`No sources yet.`}):(0,l.jsx)(`div`,{className:`dash-sources-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-source-row`,children:[(0,l.jsx)(`span`,{className:`dash-source-rail`,style:{background:x[e.kind]}}),(0,l.jsxs)(`div`,{className:`dash-source-body`,children:[(0,l.jsxs)(`div`,{className:`dash-source-head`,children:[(0,l.jsx)(`span`,{className:`dash-source-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-source-kind`,style:{color:x[e.kind]},children:S[e.kind]})]}),e.contributed&&(0,l.jsx)(`div`,{className:`dash-source-contrib`,children:e.contributed})]})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var w=e({dashboardRegistry:()=>T}),T={thesis:o(u),alignmentgauge:o(y),standingalerts:o(b),sourceslineage:o(C)};export{w as n,T as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiHighlight-
|
|
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,q as i}from"./index-y8GL67bB.js";import{n as a}from"./icons-CHVz6kv_.js";import{t as o}from"./richText-BkxJhl9N.js";import{t as s}from"./safeImageUrl-CUkucDUu.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{n as l,r as u,t as d}from"./CodeOutput-Kh6ldxQz.js";import{t as f}from"./useTimeout-BRYvu2jQ.js";var p=t(),m=n(),h=[`sm`,`md`,`lg`],g={sm:40,md:56,lg:76},_={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`},v={online:`Online`,away:`Away`,busy:`Busy`,offline:`Offline`};function y(e,t){if(t)return t.slice(0,2).toUpperCase();if(!e)return``;let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||n[0]?.[1]||``)).toUpperCase()}function b({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,src:i,glyph:c=`eye`,initials:l,size:u=`md`,status:d,ring:f,color:b=`var(--presence)`,role:x,footer:S,delay:C}){let w=a[t]||a.eye,T=a[c]||a.eye,[E,D]=(0,p.useState)(u),[O,k]=(0,p.useState)(!0),A=g[E],j=y(r,l),M=s(i),N=!!M&&O;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(C||0)+`ms`,"--av-c":b},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(w,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`av-main`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`av-avatar ${f?`ring`:``}`,style:{width:A,height:A,fontSize:A*.36},onClick:()=>D(h[(h.indexOf(E)+1)%h.length]),title:`Click to resize`,"data-mark":`circle`,children:[N?(0,m.jsx)(`img`,{className:`av-img`,src:M,alt:r||``,onError:()=>k(!1)}):j?(0,m.jsx)(`span`,{className:`av-initials`,children:j}):(0,m.jsx)(T,{className:`av-glyph`}),d&&(0,m.jsx)(`span`,{className:`av-status`,style:{"--st-c":_[d]},title:v[d]})]}),(0,m.jsxs)(`div`,{className:`av-meta`,children:[r&&(0,m.jsx)(`div`,{className:`av-name`,children:r}),x&&(0,m.jsx)(`div`,{className:`av-role faint`,children:x}),(0,m.jsx)(`div`,{className:`av-sizes`,role:`radiogroup`,children:h.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":E===e,className:`av-size-btn ${E===e?`on`:``}`,onClick:()=>D(e),children:e.toUpperCase()},e))}),d&&(0,m.jsxs)(`div`,{className:`av-status-line`,children:[(0,m.jsx)(`span`,{className:`av-status-dot`,style:{"--st-c":_[d]}}),v[d]]})]})]}),S&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(S)})]})}var x={sm:30,md:38,lg:48},S=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--presence-soft)`],C={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`};function w(e,t){if(t)return t.slice(0,2).toUpperCase();let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||``)).toUpperCase()}function T({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,members:r,max:i=5,size:c=`md`,caption:l,footer:u,delay:d}){let f=a[t]||a.share,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),[y,b]=(0,p.useState)(()=>new Set),T=x[c],E=Math.round(T*.36),D=Math.max(1,Math.min(i,8)),O=r.slice(0,D),k=r.length-O.length,A=h==null?null:r[h];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`avg-stack ${_?`spread`:``}`,onMouseEnter:()=>v(!0),onMouseLeave:()=>{v(!1),g(null)},style:{"--av-px":T+`px`,"--av-ov":E+`px`},children:[O.map((e,t)=>{let n=e.color||S[t%S.length],r=s(e.src);return(0,m.jsxs)(`button`,{type:`button`,className:`avg-face ${h===t?`on`:``}`,style:{width:T,height:T,fontSize:T*.36,marginLeft:t===0?0:`calc(-1 * var(--av-ov))`,zIndex:h===t?50:t+1,"--face-c":n},onMouseEnter:()=>g(t),onFocus:()=>g(t),...t===0?{"data-mark":`circle`}:{},children:[r&&!y.has(t)?(0,m.jsx)(`img`,{className:`avg-img`,src:r,alt:e.name,onError:()=>b(e=>new Set(e).add(t))}):(0,m.jsx)(`span`,{children:w(e.name,e.initials)}),e.status&&(0,m.jsx)(`span`,{className:`avg-status`,style:{"--st-c":C[e.status]}})]},t)}),k>0&&(0,m.jsxs)(`span`,{className:`avg-face avg-more`,style:{width:T,height:T,fontSize:T*.3,marginLeft:`calc(-1 * var(--av-ov))`,zIndex:0},children:[`+`,k]})]}),(0,m.jsx)(`div`,{className:`avg-readout`,"data-on":A!=null,children:A?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`avg-readout-name`,children:A.name}),(0,m.jsx)(`span`,{className:`avg-readout-role faint`,children:A.role||`Collaborator`})]}):l&&(0,m.jsx)(`span`,{className:`avg-caption faint`,dangerouslySetInnerHTML:o(l)})}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(u)})]})}var E=[{key:`solid`,label:`Solid`},{key:`soft`,label:`Soft`},{key:`outline`,label:`Outline`},{key:`dot`,label:`Dot`}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,badges:r,countIcon:i=`bell`,count:s=3,countColor:c=`var(--danger)`,footer:l,delay:u}){let d=a[t]||a.spark,f=a[i]||a.bell,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(s);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`bs-switch`,role:`radiogroup`,children:[(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===null,className:`bs-switch-btn ${h===null?`on`:``}`,onClick:()=>g(null),children:`Mixed`}),E.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===e.key,className:`bs-switch-btn ${h===e.key?`on`:``}`,onClick:()=>g(e.key),children:e.label},e.key))]}),(0,m.jsx)(`div`,{className:`bs-row`,children:r.map((e,t)=>{let n=h||e.variant||`soft`,r=e.color||`var(--presence)`,i=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{className:`bs-badge v-${n}`,style:{"--bg-c":r},children:[n===`dot`&&(0,m.jsx)(`span`,{className:`bs-badge-dot`}),i&&(0,m.jsx)(i,{className:`bs-badge-ic`}),e.label]},t)})}),(0,m.jsxs)(`div`,{className:`bs-count-row`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`bs-count-target`,onClick:()=>v(e=>e>=9?0:e+1),title:`Click to bump the count`,children:[(0,m.jsx)(f,{className:`bs-count-ic`}),_>0&&(0,m.jsx)(`span`,{className:`bs-count-badge`,style:{"--cnt-c":c},"data-mark":`underline`,children:_>9?`9+`:_},_)]}),(0,m.jsx)(`span`,{className:`bs-count-label faint`,children:_===0?`No new alerts`:`${_} unread alert${_===1?``:`s`}`})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function O({title:e,icon:t=`plus`,iconColor:n=`var(--presence)`,chips:r,mode:i=`multi`,summary:s,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.plus,[f,h]=(0,p.useState)(()=>r.map(e=>({label:e.label,icon:e.icon,avatar:e.avatar,color:e.color||c,selected:!!e.selected,removable:e.removable!==!1}))),g=e=>h(t=>t.map((t,n)=>i===`single`?{...t,selected:n===e}:n===e?{...t,selected:!t.selected}:t)),_=(e,t)=>{t.stopPropagation(),h(t=>t.filter((t,n)=>n!==e))},v=f.filter(e=>e.selected).length,y=f.filter(e=>e.selected).map(e=>e.label),b=f.findIndex(e=>e.selected);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--chip-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cs-wrap`,children:[f.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{role:`button`,tabIndex:0,className:`cs-chip ${e.selected?`on`:``}`,style:{"--c-c":e.color},onClick:()=>g(t),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g(t)),...t===b&&b!==-1?{"data-mark":`circle`}:{},children:[e.avatar?(0,m.jsx)(`span`,{className:`cs-chip-avatar`,children:e.avatar.slice(0,2).toUpperCase()}):n?(0,m.jsx)(n,{className:`cs-chip-ic`}):null,(0,m.jsx)(`span`,{className:`cs-chip-label`,children:e.label}),e.removable&&(0,m.jsx)(`button`,{type:`button`,className:`cs-chip-x`,onClick:e=>_(t,e),"aria-label":`Remove ${e.label}`,children:(0,m.jsx)(a.x,{})})]},e.label+t)}),f.length===0&&(0,m.jsx)(`span`,{className:`cs-empty faint`,children:`All chips removed`})]}),(0,m.jsx)(`div`,{className:`cs-summary`,children:s?(0,m.jsx)(`span`,{className:`faint`,dangerouslySetInnerHTML:o(s)}):v===0?(0,m.jsx)(`span`,{className:`faint`,children:`Nothing selected`}):(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{style:{color:c},children:v}),` selected`,(0,m.jsxs)(`span`,{className:`faint`,children:[` · `,y.join(`, `)]})]})}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(l)})]})}function k({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,shortcuts:r,active:i=0,color:s=`var(--presence)`,footer:c,delay:l}){let u=a[t]||a.edit,[d,f]=(0,p.useState)(Math.max(0,Math.min(r.length-1,i))),h=r[d];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`,"--kbd-c":s},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),h&&(0,m.jsxs)(`div`,{className:`kbd-hero`,children:[(0,m.jsx)(`div`,{className:`kbd-hero-keys`,"data-mark":`underline`,children:h.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap big`,children:e},t))}),(0,m.jsx)(`div`,{className:`kbd-hero-label`,children:h.label})]}),(0,m.jsx)(`div`,{className:`kbd-list`,children:r.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`button`,{type:`button`,className:`kbd-row ${d===t?`on`:``}`,onMouseEnter:()=>f(t),onFocus:()=>f(t),onClick:()=>f(t),children:[(0,m.jsxs)(`span`,{className:`kbd-row-label`,children:[n&&(0,m.jsx)(n,{className:`kbd-row-ic`}),e.label]}),(0,m.jsx)(`span`,{className:`kbd-row-keys`,children:e.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap`,children:e},t))})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(c)})]})}r();var A=new Set([`ts`,`tsx`,`js`,`jsx`,`json`,`html`,`css`,`python`,`rust`,`go`,`java`,`c`,`cpp`,`csharp`,`ruby`,`php`,`swift`,`kotlin`,`sql`,`bash`,`shell`,`yaml`,`toml`,`markdown`,`diff`]),j={typescript:`ts`,javascript:`js`,py:`python`,rb:`ruby`,"c++":`cpp`,cs:`csharp`,sh:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`};function M(e){let t=(e||``).toLowerCase().trim(),n=j[t]??t;return A.has(n)?n:`txt`}function N(e){return e.map(e=>e.text).join(``)}function P({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lang:r=`tsx`,filename:s,code:c,lines:h,lineNumbers:g=!0,highlight:_=[],runnable:v=!1,footer:y,delay:b}){let x=a[t]||a.doc,[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(null),[E,D]=(0,p.useState)(null),O=new Set(_);f(()=>C(!1),S?1600:null);let k=typeof c==`string`&&c.length>0,A=M(r);return(0,p.useEffect)(()=>{if(!k){D(null);return}let e=!1;return D(null),(async()=>{try{let{highlightCode:t}=await i(async()=>{let{highlightCode:e}=await import(`./shikiHighlight-DUCYbsJ2.js`);return{highlightCode:e}},__vite__mapDeps([0,1,2,3,4,5,6])),n=await t(c,A);e||D(n)}catch{e||D(null)}})(),()=>{e=!0}},[k,c,A]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(b||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(x,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cb-frame`,children:[(0,m.jsxs)(`div`,{className:`cb-chrome`,children:[(0,m.jsxs)(`span`,{className:`cb-dots`,"aria-hidden":!0,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),s&&(0,m.jsx)(`span`,{className:`cb-file mono`,children:s}),(0,m.jsx)(`span`,{className:`cb-lang`,children:r}),(0,m.jsxs)(`button`,{type:`button`,className:`cb-copy ${S?`done`:``}`,onClick:()=>{let e=k?c:(h??[]).map(N).join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiHighlight-ZFDUBGQi.js","assets/chunk-BVpWp9h4.js","assets/index-BlCH2LG4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css"])))=>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,q as i}from"./index-BlCH2LG4.js";import{n as a}from"./icons-CHVz6kv_.js";import{t as o}from"./richText-BkxJhl9N.js";import{t as s}from"./safeImageUrl-CUkucDUu.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{n as l,r as u,t as d}from"./CodeOutput-B9_a0vjD.js";import{t as f}from"./useTimeout-BRYvu2jQ.js";var p=t(),m=n(),h=[`sm`,`md`,`lg`],g={sm:40,md:56,lg:76},_={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`},v={online:`Online`,away:`Away`,busy:`Busy`,offline:`Offline`};function y(e,t){if(t)return t.slice(0,2).toUpperCase();if(!e)return``;let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||n[0]?.[1]||``)).toUpperCase()}function b({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,src:i,glyph:c=`eye`,initials:l,size:u=`md`,status:d,ring:f,color:b=`var(--presence)`,role:x,footer:S,delay:C}){let w=a[t]||a.eye,T=a[c]||a.eye,[E,D]=(0,p.useState)(u),[O,k]=(0,p.useState)(!0),A=g[E],j=y(r,l),M=s(i),N=!!M&&O;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(C||0)+`ms`,"--av-c":b},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(w,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`av-main`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`av-avatar ${f?`ring`:``}`,style:{width:A,height:A,fontSize:A*.36},onClick:()=>D(h[(h.indexOf(E)+1)%h.length]),title:`Click to resize`,"data-mark":`circle`,children:[N?(0,m.jsx)(`img`,{className:`av-img`,src:M,alt:r||``,onError:()=>k(!1)}):j?(0,m.jsx)(`span`,{className:`av-initials`,children:j}):(0,m.jsx)(T,{className:`av-glyph`}),d&&(0,m.jsx)(`span`,{className:`av-status`,style:{"--st-c":_[d]},title:v[d]})]}),(0,m.jsxs)(`div`,{className:`av-meta`,children:[r&&(0,m.jsx)(`div`,{className:`av-name`,children:r}),x&&(0,m.jsx)(`div`,{className:`av-role faint`,children:x}),(0,m.jsx)(`div`,{className:`av-sizes`,role:`radiogroup`,children:h.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":E===e,className:`av-size-btn ${E===e?`on`:``}`,onClick:()=>D(e),children:e.toUpperCase()},e))}),d&&(0,m.jsxs)(`div`,{className:`av-status-line`,children:[(0,m.jsx)(`span`,{className:`av-status-dot`,style:{"--st-c":_[d]}}),v[d]]})]})]}),S&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(S)})]})}var x={sm:30,md:38,lg:48},S=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--presence-soft)`],C={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`};function w(e,t){if(t)return t.slice(0,2).toUpperCase();let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||``)).toUpperCase()}function T({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,members:r,max:i=5,size:c=`md`,caption:l,footer:u,delay:d}){let f=a[t]||a.share,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),[y,b]=(0,p.useState)(()=>new Set),T=x[c],E=Math.round(T*.36),D=Math.max(1,Math.min(i,8)),O=r.slice(0,D),k=r.length-O.length,A=h==null?null:r[h];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`avg-stack ${_?`spread`:``}`,onMouseEnter:()=>v(!0),onMouseLeave:()=>{v(!1),g(null)},style:{"--av-px":T+`px`,"--av-ov":E+`px`},children:[O.map((e,t)=>{let n=e.color||S[t%S.length],r=s(e.src);return(0,m.jsxs)(`button`,{type:`button`,className:`avg-face ${h===t?`on`:``}`,style:{width:T,height:T,fontSize:T*.36,marginLeft:t===0?0:`calc(-1 * var(--av-ov))`,zIndex:h===t?50:t+1,"--face-c":n},onMouseEnter:()=>g(t),onFocus:()=>g(t),...t===0?{"data-mark":`circle`}:{},children:[r&&!y.has(t)?(0,m.jsx)(`img`,{className:`avg-img`,src:r,alt:e.name,onError:()=>b(e=>new Set(e).add(t))}):(0,m.jsx)(`span`,{children:w(e.name,e.initials)}),e.status&&(0,m.jsx)(`span`,{className:`avg-status`,style:{"--st-c":C[e.status]}})]},t)}),k>0&&(0,m.jsxs)(`span`,{className:`avg-face avg-more`,style:{width:T,height:T,fontSize:T*.3,marginLeft:`calc(-1 * var(--av-ov))`,zIndex:0},children:[`+`,k]})]}),(0,m.jsx)(`div`,{className:`avg-readout`,"data-on":A!=null,children:A?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`avg-readout-name`,children:A.name}),(0,m.jsx)(`span`,{className:`avg-readout-role faint`,children:A.role||`Collaborator`})]}):l&&(0,m.jsx)(`span`,{className:`avg-caption faint`,dangerouslySetInnerHTML:o(l)})}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(u)})]})}var E=[{key:`solid`,label:`Solid`},{key:`soft`,label:`Soft`},{key:`outline`,label:`Outline`},{key:`dot`,label:`Dot`}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,badges:r,countIcon:i=`bell`,count:s=3,countColor:c=`var(--danger)`,footer:l,delay:u}){let d=a[t]||a.spark,f=a[i]||a.bell,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(s);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`bs-switch`,role:`radiogroup`,children:[(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===null,className:`bs-switch-btn ${h===null?`on`:``}`,onClick:()=>g(null),children:`Mixed`}),E.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===e.key,className:`bs-switch-btn ${h===e.key?`on`:``}`,onClick:()=>g(e.key),children:e.label},e.key))]}),(0,m.jsx)(`div`,{className:`bs-row`,children:r.map((e,t)=>{let n=h||e.variant||`soft`,r=e.color||`var(--presence)`,i=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{className:`bs-badge v-${n}`,style:{"--bg-c":r},children:[n===`dot`&&(0,m.jsx)(`span`,{className:`bs-badge-dot`}),i&&(0,m.jsx)(i,{className:`bs-badge-ic`}),e.label]},t)})}),(0,m.jsxs)(`div`,{className:`bs-count-row`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`bs-count-target`,onClick:()=>v(e=>e>=9?0:e+1),title:`Click to bump the count`,children:[(0,m.jsx)(f,{className:`bs-count-ic`}),_>0&&(0,m.jsx)(`span`,{className:`bs-count-badge`,style:{"--cnt-c":c},"data-mark":`underline`,children:_>9?`9+`:_},_)]}),(0,m.jsx)(`span`,{className:`bs-count-label faint`,children:_===0?`No new alerts`:`${_} unread alert${_===1?``:`s`}`})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function O({title:e,icon:t=`plus`,iconColor:n=`var(--presence)`,chips:r,mode:i=`multi`,summary:s,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.plus,[f,h]=(0,p.useState)(()=>r.map(e=>({label:e.label,icon:e.icon,avatar:e.avatar,color:e.color||c,selected:!!e.selected,removable:e.removable!==!1}))),g=e=>h(t=>t.map((t,n)=>i===`single`?{...t,selected:n===e}:n===e?{...t,selected:!t.selected}:t)),_=(e,t)=>{t.stopPropagation(),h(t=>t.filter((t,n)=>n!==e))},v=f.filter(e=>e.selected).length,y=f.filter(e=>e.selected).map(e=>e.label),b=f.findIndex(e=>e.selected);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--chip-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cs-wrap`,children:[f.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{role:`button`,tabIndex:0,className:`cs-chip ${e.selected?`on`:``}`,style:{"--c-c":e.color},onClick:()=>g(t),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g(t)),...t===b&&b!==-1?{"data-mark":`circle`}:{},children:[e.avatar?(0,m.jsx)(`span`,{className:`cs-chip-avatar`,children:e.avatar.slice(0,2).toUpperCase()}):n?(0,m.jsx)(n,{className:`cs-chip-ic`}):null,(0,m.jsx)(`span`,{className:`cs-chip-label`,children:e.label}),e.removable&&(0,m.jsx)(`button`,{type:`button`,className:`cs-chip-x`,onClick:e=>_(t,e),"aria-label":`Remove ${e.label}`,children:(0,m.jsx)(a.x,{})})]},e.label+t)}),f.length===0&&(0,m.jsx)(`span`,{className:`cs-empty faint`,children:`All chips removed`})]}),(0,m.jsx)(`div`,{className:`cs-summary`,children:s?(0,m.jsx)(`span`,{className:`faint`,dangerouslySetInnerHTML:o(s)}):v===0?(0,m.jsx)(`span`,{className:`faint`,children:`Nothing selected`}):(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{style:{color:c},children:v}),` selected`,(0,m.jsxs)(`span`,{className:`faint`,children:[` · `,y.join(`, `)]})]})}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(l)})]})}function k({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,shortcuts:r,active:i=0,color:s=`var(--presence)`,footer:c,delay:l}){let u=a[t]||a.edit,[d,f]=(0,p.useState)(Math.max(0,Math.min(r.length-1,i))),h=r[d];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`,"--kbd-c":s},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),h&&(0,m.jsxs)(`div`,{className:`kbd-hero`,children:[(0,m.jsx)(`div`,{className:`kbd-hero-keys`,"data-mark":`underline`,children:h.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap big`,children:e},t))}),(0,m.jsx)(`div`,{className:`kbd-hero-label`,children:h.label})]}),(0,m.jsx)(`div`,{className:`kbd-list`,children:r.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`button`,{type:`button`,className:`kbd-row ${d===t?`on`:``}`,onMouseEnter:()=>f(t),onFocus:()=>f(t),onClick:()=>f(t),children:[(0,m.jsxs)(`span`,{className:`kbd-row-label`,children:[n&&(0,m.jsx)(n,{className:`kbd-row-ic`}),e.label]}),(0,m.jsx)(`span`,{className:`kbd-row-keys`,children:e.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap`,children:e},t))})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(c)})]})}r();var A=new Set([`ts`,`tsx`,`js`,`jsx`,`json`,`html`,`css`,`python`,`rust`,`go`,`java`,`c`,`cpp`,`csharp`,`ruby`,`php`,`swift`,`kotlin`,`sql`,`bash`,`shell`,`yaml`,`toml`,`markdown`,`diff`]),j={typescript:`ts`,javascript:`js`,py:`python`,rb:`ruby`,"c++":`cpp`,cs:`csharp`,sh:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`};function M(e){let t=(e||``).toLowerCase().trim(),n=j[t]??t;return A.has(n)?n:`txt`}function N(e){return e.map(e=>e.text).join(``)}function P({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lang:r=`tsx`,filename:s,code:c,lines:h,lineNumbers:g=!0,highlight:_=[],runnable:v=!1,footer:y,delay:b}){let x=a[t]||a.doc,[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(null),[E,D]=(0,p.useState)(null),O=new Set(_);f(()=>C(!1),S?1600:null);let k=typeof c==`string`&&c.length>0,A=M(r);return(0,p.useEffect)(()=>{if(!k){D(null);return}let e=!1;return D(null),(async()=>{try{let{highlightCode:t}=await i(async()=>{let{highlightCode:e}=await import(`./shikiHighlight-ZFDUBGQi.js`);return{highlightCode:e}},__vite__mapDeps([0,1,2,3,4,5,6])),n=await t(c,A);e||D(n)}catch{e||D(null)}})(),()=>{e=!0}},[k,c,A]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(b||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(x,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cb-frame`,children:[(0,m.jsxs)(`div`,{className:`cb-chrome`,children:[(0,m.jsxs)(`span`,{className:`cb-dots`,"aria-hidden":!0,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),s&&(0,m.jsx)(`span`,{className:`cb-file mono`,children:s}),(0,m.jsx)(`span`,{className:`cb-lang`,children:r}),(0,m.jsxs)(`button`,{type:`button`,className:`cb-copy ${S?`done`:``}`,onClick:()=>{let e=k?c:(h??[]).map(N).join(`
|
|
3
3
|
`);try{navigator.clipboard?.writeText(e)}catch{}C(!0)},children:[S?(0,m.jsx)(a.check,{}):(0,m.jsx)(a.proof,{}),S?`Copied!`:`Copy`]})]}),k?E?(0,m.jsx)(`div`,{className:`cb-shiki ${g?`cb-nums`:``}`,dangerouslySetInnerHTML:{__html:E}}):(0,m.jsx)(`pre`,{className:`cb-pre mono cb-plain`,children:(0,m.jsx)(`code`,{children:c})}):(0,m.jsx)(`pre`,{className:`cb-pre mono`,children:(0,m.jsx)(`code`,{children:(h??[]).map((e,t)=>(0,m.jsxs)(`span`,{className:`cb-line ${O.has(t+1)?`hl`:``}`,children:[g&&(0,m.jsx)(`span`,{className:`cb-ln`,children:t+1}),(0,m.jsx)(`span`,{className:`cb-code`,children:e.length===0?` `:e.map((e,t)=>(0,m.jsx)(`span`,{className:`tok tok-${e.kind||`punct`}`,children:e.text},t))})]},t))})})]}),v&&u(A)&&(0,m.jsx)(l,{code:k?c:(h??[]).map(N).join(`
|
|
4
4
|
`),lang:A,onResult:T}),w&&(0,m.jsx)(d,{result:w,onDismiss:()=>T(null)}),y&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(y)})]})}var F={info:{c:`var(--presence)`,icon:`bell`},success:{c:`var(--insight)`,icon:`check`},warning:{c:`var(--warning)`,icon:`alert`},promo:{c:`var(--presence-soft)`,icon:`spark`}};function I({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,tone:r=`info`,bannerIcon:i,message:s,detail:c,action:l,dismissible:u=!0,footer:d,delay:f}){let h=a[t]||a.bell,g=F[r],_=a[i||g.icon]||a[g.icon],[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(!1);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),v?(0,m.jsxs)(`div`,{className:`bn-dismissed`,children:[(0,m.jsx)(`span`,{className:`faint`,children:`Banner dismissed.`}),(0,m.jsxs)(`button`,{type:`button`,className:`bn-restore`,onClick:()=>y(!1),children:[(0,m.jsx)(a.undo,{}),` Restore`]})]}):(0,m.jsxs)(`div`,{className:`bn-banner tone-${r}`,style:{"--bn-c":g.c},role:`status`,children:[(0,m.jsx)(`span`,{className:`bn-icon`,children:(0,m.jsx)(_,{})}),(0,m.jsxs)(`span`,{className:`bn-body`,children:[(0,m.jsx)(`span`,{className:`bn-message`,"data-mark":`underline`,dangerouslySetInnerHTML:o(s)}),c&&(0,m.jsx)(`span`,{className:`bn-detail`,dangerouslySetInnerHTML:o(c)})]}),l&&(0,m.jsx)(`button`,{type:`button`,className:`bn-action ${b?`done`:``}`,onClick:()=>x(!0),children:b?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.check,{}),` Done`]}):l}),u&&(0,m.jsx)(`button`,{type:`button`,className:`bn-dismiss`,onClick:()=>y(!0),"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})})]}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(d)})]})}var L={success:{c:`var(--insight)`,icon:`check`},error:{c:`var(--danger)`,icon:`alert`},info:{c:`var(--presence)`,icon:`bell`},warning:{c:`var(--warning)`,icon:`alert`}},R=[{kind:`success`,title:`Saved`,desc:`Your changes are live.`},{kind:`info`,title:`Sync started`,desc:`Pulling the latest data…`},{kind:`warning`,title:`Storage at 84%`,desc:`Consider archiving old runs.`},{kind:`error`,title:`Upload failed`,desc:`Connection dropped — retry?`}];function z({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,toasts:r,pool:i,duration:s=4200,pushLabel:c=`Push toast`,footer:l,delay:u,maxToasts:d=4}){let f=a[t]||a.bell,h=Math.max(1,Math.min(d,8)),g=Number.isFinite(s)?Math.max(0,Math.min(s,6e4)):4200,_=(0,p.useRef)(r.length),v=(0,p.useRef)(i&&i.length?i:r.length?r:R),y=(0,p.useRef)(0),[b,x]=(0,p.useState)(()=>r.slice(0,h).map((e,t)=>({...e,id:t}))),S=Math.max(0,r.length-h),C=e=>x(t=>t.filter(t=>t.id!==e));return(0,p.useEffect)(()=>{if(!g||b.length===0)return;let e=b[b.length-1],t=window.setTimeout(()=>C(e.id),g);return()=>window.clearTimeout(t)},[b,g]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`ts-stage`,children:[b.length===0&&(0,m.jsx)(`div`,{className:`ts-empty faint`,children:`No notifications — push one below.`}),b.map((e,t)=>{let n=L[e.kind||`info`],r=a[e.icon||n.icon]||a[n.icon];return(0,m.jsxs)(`div`,{className:`ts-toast`,style:{"--ts-c":n.c},children:[(0,m.jsx)(`span`,{className:`ts-icon`,...t===0?{"data-mark":`circle`}:{},children:(0,m.jsx)(r,{})}),(0,m.jsxs)(`span`,{className:`ts-body`,children:[(0,m.jsx)(`span`,{className:`ts-title`,children:e.title}),e.desc&&(0,m.jsx)(`span`,{className:`ts-desc`,dangerouslySetInnerHTML:o(e.desc)})]}),(0,m.jsx)(`button`,{type:`button`,className:`ts-x`,onClick:()=>C(e.id),"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})}),!!g&&(0,m.jsx)(`span`,{className:`ts-progress`,style:{animationDuration:g+`ms`}})]},e.id)})]}),S>0&&(0,m.jsxs)(`div`,{className:`faint`,style:{fontSize:12,marginTop:-6,marginBottom:12},children:[`+`,S,` more queued — dismiss one to surface the next`]}),(0,m.jsxs)(`button`,{type:`button`,className:`ts-push`,onClick:()=>{let e=v.current[y.current%v.current.length];y.current+=1,x(t=>[{...e,id:_.current++},...t].slice(0,h))},children:[(0,m.jsx)(a.plus,{}),` `,c]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function B({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,caption:r,buttonLabel:i=`Save changes`,loadingLabel:s=`Saving…`,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.clock,[f,h]=(0,p.useState)(!1),[g,_]=(0,p.useState)(!1),v=(0,p.useRef)(void 0);return(0,p.useEffect)(()=>()=>window.clearTimeout(v.current),[]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--sp-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`sp-showcase`,children:[(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-ring sp-sm`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Small`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-ring sp-md`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Ring`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsxs)(`span`,{className:`sp-dots`,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Dots`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-pulse`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Pulse`})]})]}),(0,m.jsxs)(`div`,{className:`sp-bar-wrap`,children:[(0,m.jsx)(`span`,{className:`sp-bar-label faint`,children:`Indeterminate`}),(0,m.jsx)(`span`,{className:`sp-bar`,children:(0,m.jsx)(`span`,{className:`sp-bar-fill`})})]}),(0,m.jsx)(`button`,{type:`button`,className:`sp-btn ${f?`busy`:``} ${g?`done`:``}`,onClick:()=>{f||(h(!0),_(!1),v.current=window.setTimeout(()=>{h(!1),_(!0)},1900))},disabled:f,children:f?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`sp-btn-spin`}),` `,s]}):g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.check,{}),` Done`]}):i}),r&&(0,m.jsx)(`div`,{className:`sp-caption faint`,dangerouslySetInnerHTML:o(r)}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function V({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,items:r,markAllLabel:i=`Mark all read`,footer:s,delay:c}){let l=a[t]||a.bell,[u,d]=(0,p.useState)(()=>r.map(e=>({avatar:e.avatar,icon:e.icon,color:e.color||`var(--presence)`,title:e.title,time:e.time,unread:e.unread!==!1,removed:!1}))),f=u.filter(e=>!e.removed),h=f.filter(e=>e.unread).length,g=u.findIndex(e=>!e.removed&&e.unread),_=e=>d(t=>t.map((t,n)=>n===e?{...t,unread:!t.unread}:t)),v=e=>d(t=>t.map((t,n)=>n===e?{...t,removed:!0}:t));return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,h>0&&(0,m.jsx)(`span`,{className:`nf-badge`,children:h}),(0,m.jsxs)(`button`,{type:`button`,className:`nf-markall`,onClick:()=>d(e=>e.map(e=>({...e,unread:!1}))),disabled:h===0,children:[(0,m.jsx)(a.check,{}),` `,i]})]}),(0,m.jsxs)(`div`,{className:`nf-list`,children:[f.length===0&&(0,m.jsx)(`div`,{className:`nf-empty faint`,children:`You're all caught up.`}),u.map((e,t)=>e.removed?null:(0,m.jsxs)(`div`,{className:`nf-row ${e.unread?`unread`:``}`,style:{"--nf-c":e.color},children:[(0,m.jsx)(`span`,{className:`nf-unread-dot`,...t===g?{"data-mark":`point`,style:{"--nf-c":e.color,boxShadow:`0 0 0 3px color-mix(in oklab, ${e.color} 22%, transparent), 0 0 8px ${e.color}`}}:{}}),(0,m.jsx)(`span`,{className:`nf-avatar`,children:e.avatar?(0,m.jsx)(`span`,{className:`nf-avatar-ini`,children:e.avatar.slice(0,2).toUpperCase()}):(0,m.jsx)(a[e.icon||`bell`]||a.bell,{className:`nf-avatar-ic`})}),(0,m.jsxs)(`span`,{className:`nf-body`,children:[(0,m.jsx)(`span`,{className:`nf-title`,dangerouslySetInnerHTML:o(e.title)}),e.time&&(0,m.jsx)(`span`,{className:`nf-time faint`,children:e.time})]}),(0,m.jsxs)(`span`,{className:`nf-actions`,children:[(0,m.jsx)(`button`,{type:`button`,className:`nf-act`,onClick:()=>_(t),title:e.unread?`Mark read`:`Mark unread`,"aria-label":e.unread?`Mark read`:`Mark unread`,children:e.unread?(0,m.jsx)(a.check,{}):(0,m.jsx)(a.undo,{})}),(0,m.jsx)(`button`,{type:`button`,className:`nf-act`,onClick:()=>v(t),title:`Dismiss`,"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})})]})]},t))]}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(s)})]})}var H=e({displayRegistry:()=>U}),U={avatar:c(b),avatargroup:c(T),badgeset:c(D),chipset:c(O),kbd:c(k),codeblock:c(P),banner:c(I),toaststack:c(z),spinner:c(B),notification:c(V)};export{H as n,U as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./useDashboardLoop-
|
|
1
|
+
import{c as e}from"./useDashboardLoop-8emjL6b-.js";function t(e){return e.toLowerCase().replace(/[^a-z0-9 ]/g,` `).replace(/\s+/g,` `).trim()}function n(n,r){if(r.topic){let e=t(r.topic),i=n.find(n=>n.topic&&t(n.topic)===e);if(i)return i}let i=e(r.text);if(i.size===0)return null;let a=null,o=0;for(let t of n){let n=e([t.title,t.thesis.text,...t.metrics.map(e=>e.label)].join(` `)),r=0;for(let e of i)n.has(e)&&r++;r>o&&(o=r,a=t)}return o>=2?a:null}export{n as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./providers-wzm7E8Pa.js";import{n as t}from"./streamParse-DRgMHWye.js";import{t as n}from"./search-
|
|
1
|
+
import{t as e}from"./providers-wzm7E8Pa.js";import{n as t}from"./streamParse-DRgMHWye.js";import{t as n}from"./search-Be63DJkp.js";import{t as r}from"./citation-BcvmjKS8.js";import{t as i}from"./extractNumbers-CuhagRkd.js";var a=.15;function o(e){return`${+e.toFixed(+(Math.abs(e)<10&&!Number.isInteger(e)))}`}function s(e,t,n,r){if(!r)return{status:`not-due`};if(!n)return{status:`incomparable`};if(e==null||t==null||!Number.isFinite(e)||!Number.isFinite(t))return{status:`unknown`};let i=Math.abs(e)>1e-9?Math.abs(e):1;if(Math.abs(t-e)/i<=a)return{status:`hit`,delta:`on target`};let s=Math.min(Math.abs(e),Math.abs(t)),c=s>1e-9?Math.max(Math.abs(e),Math.abs(t))/s:void 0;return{status:`missed`,delta:c&&c>=1.5?`${+c.toFixed(+(c<10))}× off`:`${t>e?`+`:`−`}${o(Math.abs(t-e))}`,...c?{factor:c}:{}}}function c(e,t){let r=n(e);return r.needsKey&&!t?n(`wikipedia`):r}function l(e){return e.quote.replace(/\s+/g,` `).trim().slice(0,200)}function u(e){let t=i([{id:`x`,page:0,quote:e}]);return t.length>0?{value:t[0].value,unit:t[0].unit}:null}function d(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function f(e){return typeof e==`string`?e.trim():``}var p=`You compare a document's past PREDICTION against what actually happened, judging ONLY from the search snippets given to you, and return strict JSON. You never invent a source, URL, number, or outcome, and you default to an empty/unknown outcome when the sources do not clearly say.`;function m(e,t){return`For each PREDICTION below (made in a document in the past), report what ACTUALLY happened, using
|
|
2
2
|
ONLY the search snippets listed for it.
|
|
3
3
|
|
|
4
4
|
Return ONLY JSON (no prose, no fences):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return!e||!Number.isFinite(e)?5:Math.min(20,Math.max(1,Math.floor(e)))}var t=`https://en.wikipedia.org/w/api.php`,n=6e3;function r(e,n=5){return`${t}?${new URLSearchParams({action:`query`,list:`search`,srsearch:e,srlimit:String(n),srprop:`snippet`,format:`json`,origin:`*`}).toString()}`}function i(e){return e.replace(/<[^>]*>/g,``).replace(/ /g,` `).replace(/"/g,`"`).replace(/&/g,`&`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`).replace(/\s+/g,` `).trim()}function a(e){let t=e?.query,n=Array.isArray(t?.search)?t.search:[],r=[];for(let e of n){let t=typeof e.title==`string`?e.title:``;t&&r.push({title:t,url:`https://en.wikipedia.org/wiki/${encodeURIComponent(t.replace(/ /g,`_`))}`,snippet:typeof e.snippet==`string`?i(e.snippet):``})}return r}var o={id:`wikipedia`,needsKey:!1,async search(t,i={}){let o=t.trim();if(!o)return[];let{signal:s}=i,c=new AbortController,l=setTimeout(()=>c.abort(),n),u=()=>c.abort();s?.addEventListener(`abort`,u,{once:!0});try{let t=await fetch(r(o,e(i.limit)),{signal:c.signal});return t.ok?a(await t.json()):[]}catch{return[]}finally{clearTimeout(l),s?.removeEventListener(`abort`,u)}}};async function s(e,t,n,r){let i=new AbortController,a=setTimeout(()=>i.abort(),n),o=()=>i.abort();r?.addEventListener(`abort`,o,{once:!0});try{return await fetch(e,{...t,signal:i.signal})}catch{return null}finally{clearTimeout(a),r?.removeEventListener(`abort`,o)}}var c=`/search/brave`,l=`/res/v1/web/search`,u=6e3;function d(e,t=5){return`${c}${l}?${new URLSearchParams({q:e,count:String(t)}).toString()}`}function f(e){let t=e?.web,n=Array.isArray(t?.results)?t.results:[],r=[];for(let e of n){let t=typeof e.url==`string`?e.url:``,n=typeof e.title==`string`?e.title:``;!t||!n||r.push({title:i(n),url:t,snippet:i(String(e.description??``))})}return r}var p={id:`brave`,needsKey:!0,async search(t,n={}){let r=t.trim();if(!r||!n.apiKey)return[];let i=await s(d(r,e(n.limit)),{method:`GET`,headers:{Accept:`application/json`,"X-Subscription-Token":n.apiKey}},u,n.signal);if(!i?.ok)return[];try{return f(await i.json())}catch{return[]}}},m=`/search/tavily`,h=`/search`,g=8e3;function _(e){let t=Array.isArray(e?.results)?e.results:[],n=[];for(let e of t){let t=typeof e.url==`string`?e.url:``,r=typeof e.title==`string`?e.title:``;!t||!r||n.push({title:i(r),url:t,snippet:i(String(e.content??``))})}return n}var v={wikipedia:o,brave:p,tavily:{id:`tavily`,needsKey:!0,async search(t,n={}){let r=t.trim();if(!r||!n.apiKey)return[];let i=await s(`${m}${h}`,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${n.apiKey}`},body:JSON.stringify({query:r,max_results:e(n.limit),search_depth:`basic`})},g,n.signal);if(!i?.ok)return[];try{return _(await i.json())}catch{return[]}}}};function y(e){return e&&v[e]||o}var b=/\b(latest|current|currently|today|tonight|tomorrow|now|recent|recently|this (week|weekend|month|year)|upcoming|next (?:week(?:end)?|month|game|match|season)|fixtures?|schedule[ds]?|line[- ]?ups?|kick[- ]?off|who(?:'s| is| are)? (?:playing|plays)|202\d|news|update|price|cost|stock|scores?|weather|forecast|release[ds]?|version|who(?:'s| is| are| was)|what(?:'s| is| are| was)|when (is|was|did)|where (is|was)|how (much|many)|population|capital|ceo|founded|net worth|statistics?|stats)\b/i,x=`(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:t(?:ember)?)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\\.?\\s+\\d{1,2}(?:st|nd|rd|th)?\\b`,S=RegExp(`\\b(?:trip|visit(?:ing)?|travel(?:l?ing)?|vacation|itinerary|going to|flying to|heading to)\\b[\\s\\S]{0,40}${x}`,`i`),C=`(?:this |next )?(?:mon|tue(?:s)?|wed(?:nes)?|thu(?:rs)?|fri|sat(?:ur)?|sun)(?:day)?`,w=`(?:games?|match(?:es)?|fixtures?|kick[- ]?off|final|semi[- ]?finals?|playoffs?|tournament|concert|gig|screening|premiere|festival|match[- ]?up)`,T=`(?:${x}|\\b${C}\\b|\\bthe \\d{1,2}(?:st|nd|rd|th)\\b)`,E=RegExp(`\\b${w}\\b[\\s\\S]{0,40}${T}|${T}[\\s\\S]{0,40}\\b${w}\\b`,`i`);function D(e){let t=e.trim();return t.length<3?!1:b.test(t)||S.test(t)||E.test(t)}var O=new RegExp([`live score|final score|half[- ]?time|who'?s winning`,`who won (?:the )?(?:game|match|race|fight|bout|series|final)`,`(?<!\\b(?:wrote|writes|writing|composed|film|music|movie|metacritic|review|test|exam)\\s)\\bscores?\\b(?=.*\\b(?:today|tonight|last night|now|live|games?|match(?:es)?)\\b)`,`\\b(?:the|today'?s|tonight'?s|current)\\s+(?:\\w+\\s+){0,2}?(?<!\\b(?:video|board|card)\\s)(?:games?|match(?:es)?)\\b[^.?!]{0,30}\\bscores?\\b`,`\\bstandings?\\b|league table`,`\\b(?:games?|matches|match|fixtures?|schedule|kick[- ]?off|line[- ]?ups?|who plays)\\b(?=.*\\b(?:this weekend|tonight|today|tomorrow|this week|upcoming|right now)\\b)`,`\\b(?:stock|share|crypto|bitcoin|ethereum|btc|eth)\\b.{0,15}\\b(?:price|value|worth|quote|trading|rate)\\b`,`stock market|market cap|exchange rate|gas prices?`,`\\bweather\\b|\\bforecast\\b|temperature (?:right now|today|outside)`,`breaking news|latest (?:news|headlines?)|today'?s (?:news|headlines?)|news (?:right now|today)`,`right now|at the moment|as we speak`].join(`|`),`i`),k=/\b(?:1\d{3}|20[0-2]\d|in \d{4}|back in|years? ago|all[-\s]?time)\b/i;function A(e){let t=e.trim();return t.length<3||k.test(t)?!1:O.test(t)||E.test(t)}var j=/^(?:what(?:'s| is| are| was| were)?|who(?:'s| is| are| was| were)?|when (?:is|was|did|will)|where (?:is|are|was)|how (?:much|many|do|does|did|has|have)|tell me about|give me|show me|can you (?:tell me|show me)?|could you|please|i want to know|do you know)\s+/i,M=/[,;]?\s*(?:and how (?:has|have|did|does) .+|right now|at the moment|currently|today|recently|these days|this (?:week|month|year)|so far)\s*$/i;function N(e){let t=e.trim().replace(/[?!.]+$/,``).replace(j,``).replace(M,``).replace(/\s+/g,` `).trim(),n=t.length>=3?t:e.trim();return n.length>96?n.slice(0,96).trim():n}var P=/\b(\d{1,3})\s+(?:results?|sources?|articles?|links?|headlines?|items?|examples?|options?|ideas?|entries?|citations?|references?)\b/i,F=/\btop\s+(\d{1,3})\b/i;function I(e){let t=e.match(P)??e.match(F);if(!t)return;let n=Number(t[1]);return Number.isFinite(n)&&n>=1?n:void 0}export{N as a,I as i,D as n,e as o,A as r,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{n as t}from"./http-CJCtjYpA.js";import{t as n}from"./providers-wzm7E8Pa.js";import{n as r,t as i}from"./contentVault-DzTYWcbD.js";var a=null,o=!1,s=!1,c=0,l=new Map;function u(){if(!(a||s)){if(typeof Worker>`u`){s=!0;return}try{a=new Worker(new URL(`/assets/worker-BbLKfGzm.js`,``+import.meta.url),{type:`module`}),a.onmessage=e=>{let t=e.data;if(t.type===`ready`)o=!0;else if(t.type===`error`)s=!0,d();else if(t.type===`result`){let e=l.get(t.id);l.delete(t.id),e?.kind===`fit`&&e.resolve(t.fits)}else if(t.type===`embedded`){let e=l.get(t.id);l.delete(t.id),e?.kind===`embed`&&e.resolve(t.vec.length?t.vec:null)}},a.onerror=()=>{s=!0,d()},a.postMessage({type:`init`,base:h,modelId:m})}catch{s=!0}}}function d(){for(let e of l.values())e.resolve(null);l.clear();try{a?.terminate()}catch{}a=null,o=!1}function f(e,t=80){if(u(),!o||!a)return Promise.resolve(null);let n=++c;return new Promise(r=>{let i=setTimeout(()=>{l.delete(n),r(null)},t);l.set(n,{kind:`fit`,resolve:e=>{clearTimeout(i),r(e?new Map(e):null)}}),a.postMessage({type:`fit`,id:n,query:e})})}function p(e,t=80){if(u(),!o||!a)return Promise.resolve(null);let n=++c;return new Promise(r=>{let i=setTimeout(()=>{l.delete(n),r(null)},t);l.set(n,{kind:`embed`,resolve:e=>{clearTimeout(i),r(e)}}),a.postMessage({type:`embed`,id:n,text:e})})}var m=`minishlab/potion-base-8M`,h=`/semantic/`,ee=new Set(`the.a.an.and.or.but.of.to.in.on.for.is.are.was.were.be.been.am.as.at.by.it.its.this.that.these.those.with.your.you.my.mine.me.we.us.our.they.them.their.he.she.his.her.do.does.did.has.have.had.will.would.can.could.should.about.from.into.if.then.so.than.too.very.just.also.what.when.where.who.why.how.which.not.no.yes.up.out.over`.split(`.`));function te(e){return(e.toLowerCase().match(/[a-z0-9]+/g)??[]).filter(e=>e.length>=2&&!ee.has(e))}function g(e){return new Set(te(e))}function ne(e,t){if(!e.size||!t.size)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function re(e,t){if(!e.size)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/e.size}var _=`mavea-live-memory-v3`,v=`mavea-live-memory-v2`,y=`mavea-live-memory-v1`,b=`mavea-live-memory`,x=50,S=20,ie=400,C=200,w=/^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/,ae=.5,T={"model-inferred":0,"web-grounded":1,"ink-correction":2,"user-stated":3,"user-edit":3},oe=new Set([`user-stated`,`user-edit`,`ink-correction`,`web-grounded`]);function se(e){return oe.has(e??`model-inferred`)}function ce(e,t){return T[t]>T[e]?t:e}var E={nodes:[],updatedAt:0},D=null,O=0;function k(){try{let e=globalThis.crypto;if(e?.randomUUID)return e.randomUUID()}catch{}return O+=1,`mn-${O.toString(36)}-${Math.floor(Math.random()*1e9).toString(36)}`}function A(e){return e.replace(/\s+/g,` `).trim().slice(0,ie)}function j(e){return e.toLowerCase().trim().replace(/\s+/g,`.`)}var M=new Set(Object.keys(T));function N(e){return typeof e==`string`&&M.has(e)}function P(e){if(!Array.isArray(e))return;let t=e.filter(e=>typeof e==`string`&&e.length>0).slice(0,12);return t.length?t:void 0}function le(e){return e===`tight`||e===`standard`||e===`deep`}function F(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):void 0}function I(e){if(!e||typeof e!=`object`)return null;let t=e,n=typeof t.concept==`string`?j(t.concept):``;if(!n||!w.test(n))return null;let r=typeof t.body==`string`?A(t.body):``;return r?{id:typeof t.id==`string`&&t.id?t.id:k(),concept:n,body:r,updatedAt:typeof t.updatedAt==`number`&&Number.isFinite(t.updatedAt)?t.updatedAt:0,kind:t.kind===`procedural`?`procedural`:`semantic`,source:N(t.source)?t.source:`model-inferred`,state:t.state===`archived`?`archived`:`active`,prevBody:typeof t.prevBody==`string`?A(t.prevBody):void 0,turnId:typeof t.turnId==`string`?t.turnId:void 0,quote:typeof t.quote==`string`?t.quote.replace(/\s+/g,` `).trim().slice(0,C):void 0,uses:F(t.uses)??0,prefer:P(t.prefer),avoid:P(t.avoid),depth:le(t.depth)?t.depth:void 0,verify:typeof t.verify==`boolean`?t.verify:void 0,wins:F(t.wins),losses:F(t.losses)}:null}function ue(){try{if(typeof localStorage>`u`)return null;let e=localStorage.getItem(y);if(!e)return null;let t=JSON.parse(e),n=Array.isArray(t.facts)?t.facts.map(e=>{if(e&&typeof e==`object`){let t=e;return typeof t.text==`string`?t.text.trim():``}return``}).filter(e=>e.length>0):[];if(!n.length)return null;let r=I({concept:`profile`,body:n.join(`. `),source:`model-inferred`});return r?{nodes:[r],updatedAt:0}:null}catch{return null}}function de(){try{if(typeof localStorage>`u`)return null;let e=localStorage.getItem(v);if(!e)return null;let t=JSON.parse(e),n=Array.isArray(t.nodes)?t.nodes.map(I).filter(e=>e!==null):[];return n.length?{nodes:n.slice(-50),updatedAt:typeof t.updatedAt==`number`?t.updatedAt:0}:null}catch{return null}}var L=!1,R=0;function z(e){let t=e??{};return{nodes:(Array.isArray(t.nodes)?t.nodes.map(I).filter(e=>e!==null):[]).slice(-50),updatedAt:typeof t.updatedAt==`number`?t.updatedAt:0}}async function B(e){let t=++R;try{if(typeof localStorage>`u`)return;let n=await r(e);if(t!==R)return;localStorage.setItem(_,n)}catch{}}function V(){try{if(typeof localStorage>`u`)return{...E};let e=localStorage.getItem(_);if(!e)return de()??ue()??{...E};let t=z(JSON.parse(e));return t.nodes.length&&B(t),t}catch{return{...E}}}async function H(){try{if(typeof localStorage>`u`)return;let e=localStorage.getItem(_);if(!e)return;try{JSON.parse(e);return}catch{}let t=z(await i(e));if(L)return;D=t,L=!0,typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(b,{detail:{nodes:t.nodes,changed:[]}}))}catch{}}H();function U(){return D||(D=V(),D)}function W(e,t){D=e,L=!0,B(e);try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(b,{detail:{nodes:e.nodes,changed:t}}))}catch{}}function G(e){if(e.length<=x)return e;let t=(e,t)=>t.updatedAt-e.updatedAt,n=e.filter(e=>e.kind===`procedural`).sort(t),r=e.filter(e=>e.kind!==`procedural`).sort(t),i=n.slice(0,S),a=r.slice(0,x-i.length),o=Math.max(0,x-i.length-a.length),s=n.slice(S,S+o);return[...i,...s,...a]}function fe(){return[...U().nodes].sort((e,t)=>t.updatedAt-e.updatedAt)}function pe(e){let t=e.map(I).filter(e=>e!==null);if(!t.length)return 0;let n=new Map(U().nodes.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.updatedAt>=t.updatedAt)&&n.set(e.id,e)}return W({nodes:G([...n.values()]),updatedAt:Date.now()},t),t.length}function me(e,t={}){let n=U(),r=t.now??Date.now(),i=[],a=!1,o=[...n.nodes];for(let t of e){let e=j(t.concept);if(!e||!w.test(e))continue;let n=A(t.body),s=N(t.source)?t.source:`model-inferred`,c=t.kind===`procedural`?`procedural`:`semantic`,l=t.quote?t.quote.replace(/\s+/g,` `).trim().slice(0,C):void 0,u=o.findIndex(t=>t.concept===e&&t.state!==`archived`);if(u<0){if(!n)continue;let u={id:k(),concept:e,body:n,updatedAt:r,kind:c,source:s,state:`active`,turnId:t.turnId,quote:l,uses:0,prefer:t.prefer,avoid:t.avoid,depth:t.depth,verify:t.verify,wins:t.outcome===`win`?1:void 0,losses:t.outcome===`loss`?1:void 0};o.push(u),i.push(u),a=!0;continue}let d=o[u],f={...d},p=!1,m=!1;c===`procedural`&&f.kind!==`procedural`&&(f.kind=`procedural`,m=!0),t.prefer&&(f.prefer=Array.from(new Set([...d.prefer??[],...t.prefer])).slice(0,12),m=!0),t.avoid&&(f.avoid=Array.from(new Set([...d.avoid??[],...t.avoid])).slice(0,12),m=!0),t.depth&&t.depth!==d.depth&&(f.depth=t.depth,m=!0),typeof t.verify==`boolean`&&t.verify!==d.verify&&(f.verify=t.verify,m=!0),t.outcome===`win`?(f.wins=(d.wins??0)+1,m=!0):t.outcome===`loss`&&(f.losses=(d.losses??0)+1,m=!0),n&&n!==d.body&&(ne(g(d.body),g(n))>=ae?f.uses=(d.uses??0)+1:(f.prevBody=d.body,f.uses=0),f.body=n,l&&(f.quote=l),t.turnId&&(f.turnId=t.turnId),p=!0,m=!0);let h=ce(d.source??`model-inferred`,s);h!==(d.source??`model-inferred`)&&(f.source=h,m=!0),m&&(f.updatedAt=r,o[u]=f,a=!0,p&&i.push(f))}return a?(o=G(o),W({nodes:o,updatedAt:r},i),i):[]}function he(e,t){let n=U(),r=A(t);if(!r)return;let i=!1,a=n.nodes.map(t=>t.id===e?(i=!0,{...t,prevBody:t.body===r?t.prevBody:t.body,body:r,source:`user-edit`,updatedAt:Date.now()}):t);i&&W({nodes:a,updatedAt:Date.now()},[])}function ge(e){let t=U(),n=t.nodes.filter(t=>t.id!==e);n.length!==t.nodes.length&&W({nodes:n,updatedAt:Date.now()},[])}function _e(){W({nodes:[],updatedAt:Date.now()},[])}var ve=/\b(poems?|haikus?|limericks?|sonnets?|ballads?|rhymes?|riddles?|puns?|jokes?|knock[- ]?knock|tongue[- ]?twisters?|lullab(?:y|ies)|raps?)\b/i,ye=/\b(write|compose|make(?:\s+me|\s+up)?|tell(?:\s+me)?\s+(?:a|an)|sing|invent|create|generate|come up with)\b[^.?!]{0,40}\b(story|stories|song|lyrics?|tale|fable|fiction|script|screenplay|verse|jingle)\b/i;function be(e){let t=e.toLowerCase();return ve.test(t)||ye.test(t)}var xe=e=>!be(e),Se=/\b(just (?:tell me|give me|the answer)|in one line|one[- ]liner|in a (?:sentence|word|line)|in a few words|brief(?:ly)?|tl;?dr|short (?:version|answer)|keep it (?:short|brief)|quick (?:answer|version|recap|rundown|summary)|in short|the short version|bottom line|in a nutshell|the gist)\b/,Ce=/\b(tell me about|explain|overview|how (?:do|does|to|can|is|are|did|would|should)|why|guide|walk\s?(?:me\s)?through|break\s?down|breakdown|deep\s?dive|everything|compare|comparison|versus|vs\.?|pros and cons|plan|itinerary|roadmap|review|analy[sz]e|dashboard|trends?|history of|all about|summary of)\b/,K=/\b(teach (?:me|us)|help me (?:understand|learn|grasp|wrap my head around)|walk me through|crash course|get (?:me |us )?up to speed|bring me up to speed|from scratch|(?:the )?(?:basics|fundamentals|essentials|core concepts|key concepts) of|study (?:for|guide|plan)|prep(?:are)? (?:me |us )?for (?:my |an? |the |our )?(?:\w+ )?(?:interview|exam|test|quiz|midterm|final|cert\w*)|(?:interview|exam) prep|tutorial|lesson on|learn (?:about |how )?[a-z]+)\b/,we=[/^[\s\d().,+\-*/^%×÷=]+\??$/,/\bwhat(?:'s| is| are| was)?\s*[\d().,\s+\-*/^%×÷]+\s*\??$/,/\b(calculate|compute|solve)\b/,/\b\d+(?:\.\d+)?\s*%\s*of\s+\d/,/\bconvert\b/,/\bhow many\s+\w+\s+(?:in|are in|per)\b/,/\b\d+\s*[a-z]+\s+(?:in|to)\s+[a-z]+\b/,/\b(define|definition of)\b/,/\bwhat does\s+.+\s+mean\b/,/\bcapital of\b/];function Te(e){let t=e.toLowerCase().trim();if(!t)return`rich`;let n=Se.test(t);return K.test(t)||Ce.test(t)?n?`brief`:`rich`:we.some(e=>e.test(t))?`lean`:n?`brief`:`rich`}function Ee(e){return K.test(e.toLowerCase())}var De=/\b(deriv\w*|prove|proof|theorem|integral|derivative|equation|algebra|calculus|optimi[sz]e|trade-?offs?|step[-\s]?by[-\s]?step|reason\w* through|figure out|work out|why (?:does|is|are|do)|analy[sz]e|compare\b.*\bvs\b|root cause|debug|diagnose|strategy|plan\b.*\b(?:budget|trip|itinerary|migration))\b/;function q(e){return De.test(e.toLowerCase())}function Oe(e,t){return e===`lean`?`minimal`:t?`low`:`minimal`}var J=[`minimal`,`low`,`medium`,`high`];function ke(e,t){let n=J.indexOf(e);return J[Math.min(J.length-1,Math.max(0,n+t))]}function Ae(e,t,n=`fast`){let r=q(t);return e===`lean`&&!r?`minimal`:ke(Oe(e,r),n===`thorough`?2:+(n===`balanced`))}var je=.1,Me=.3,Ne=.75;function Pe(e,t,n){return t.creative?Ne:e===`lean`||q(n)||t.troubleshoot?je:Me}var Y=140,X=320;function Fe(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),r=[...n.matchAll(/[.!?](?=\s|$)/g)].at(-1);if(r&&r.index!==void 0&&r.index>t*.3)return n.slice(0,r.index+1);let i=n.lastIndexOf(` `);return(i>t*.6?n.slice(0,i):n).trimEnd()+`…`}function Ie(e,t){let n=t===`lean`||t===`brief`?Y:X;return Fe(e.trim(),n)}function Z(e){return e===`lean`||e===`brief`?Y:X}var Le=`OUTPUT ORDER — emit the "narration" field FIRST in the JSON, before "title", "sub", and "blocks", and write it as complete sentences. It is spoken aloud the moment it streams, so it must lead.`;function Re(e){return e===`lean`||e===`brief`?`SPOKEN LINE ("narration") — keep it to ONE short sentence (≈${Z(e)} characters). Right to the point.`:`SPOKEN LINE ("narration") — at most two or three short sentences (≈${Z(`rich`)} characters), like a person talking. The visuals carry the detail; never narrate the whole canvas.`}var ze=e({checkLiveReady:()=>Q}),Be=2500;async function Q(e,r={}){let i=n(e.provider).probe(e).catch(()=>({ok:!1,model:!1})),a=r.tts===!1?Promise.resolve(!1):(async()=>{try{return(await t(`/tts/health`,{method:`GET`},Be)).ok}catch{return!1}})(),[{ok:o,model:s,statusCode:c},l]=await Promise.all([i,a]);return{llm:o,tts:l,model:s,statusCode:c}}var Ve=[{key:`decision`,test:/\b(should i|should we|worth it|is it worth|which (?:one|should|is better)|do i (?:need|have to)|ought i|better to|or should i)\b/},{key:`comparison`,test:/\b(vs\.?|versus|compare\w*|comparison|pros and cons|trade-?offs?|better than|which is better)\b/},{key:`risk`,test:/\b(risk\w*|danger\w*|downside|what could go wrong|threat\w*|is it safe|safe to|consequenc\w*|backfire|red flags?|pitfalls?)\b/},{key:`planning`,test:/\b(roadmap|schedule|timeline|milestone\w*|strateg\w*|prepare for|get ready|launch|plan (?:to|for|a|my|out)|over the next \d+|in \d+ (?:weeks?|months?|days?))\b/},{key:`troubleshoot`,test:/\b(troubleshoot|debug|not working|isn'?t working|won'?t \w+|broken|\berror\b|\bbug\b|fix\b|stopped working|fail(?:s|ing|ed)?|why (?:is|does|won'?t|isn'?t|can'?t))\b/},{key:`learning`,test:/\b(explain|how does|how do .* work|what is|what are|teach me|help me understand|learn\b|tell me about|why does|the difference between|concept of|crash course|walk me through|for (?:my|an?|the|our) (?:\w+ )?(?:interview|exam|test|midterm|final)|study for)\b/},{key:`creative`,test:/\b(brainstorm|ideas? for|come up with|imagine|invent|design a|creative|name (?:my|a|some|ideas)|suggest (?:some )?\w+ (?:names|ideas))\b/},{key:`whatIf`,test:/\b(what (?:if|happens if|would happen)|if i (?:do|don'?t|take|stay|leave|wait)|either way|both (?:paths|options|ways)|play(?:ed)? out|scenario\w*|down the road|in (?:each|both) cases?|stay or (?:go|leave|take)|futures?\b)\b/},{key:`reflection`,test:/\b(my (?:friend|partner|relationship|boyfriend|girlfriend|marriage|spouse|boss|family|mom|dad|kid)|feel(?:ing)?\b|emotionally|am i (?:wrong|right|overreacting|the problem)|should i feel|drain(?:s|ing|ed)?|toxic|healthy (?:relationship|friendship)|cope\b|burn(?:t|ed)?\s?out|overwhelm\w*|anxious|lonely)\b/},{key:`highStakes`,test:/\b(quit (?:my|the|this) (?:job|career)|get married|getting married|divorce|buy a (?:house|home)|mortgage|life savings|career change|drop out|move (?:abroad|across|countr|to another)|surgery|diagnos\w*|lawsuit|\bsue\b|custody|life-?changing)\b/},{key:`serious`,test:/\b(grief|grieving|death|dying|depress\w*|suicid\w*|self-?harm|abuse|trauma|addiction|crisis|terminal|miscarriage)\b/}],He=[{domain:`health`,test:/\b(health\w*|symptom\w*|doctor|medic\w*|diagnos\w*|disease|surgery|mental health|therap\w*|depress\w*|anxiety)\b/},{domain:`legal`,test:/\b(legal|lawyer|attorney|lawsuit|\bsue\b|court|custody|rights\b|contract\b)\b/},{domain:`money`,test:/\b(money|budget|invest\w*|savings|\bdebt\b|loan|mortgage|finance\w*|retire\w*|taxe?s?\b|salary)\b/},{domain:`career`,test:/\b(job\b|career|\bwork\b|boss|promotion|freelanc\w*|resume|interview|fired|laid off|quit)\b/},{domain:`relationship`,test:/\b(relationship|friend\w*|partner|boyfriend|girlfriend|marriage|spouse|dating|breakup|family)\b/},{domain:`travel`,test:/\b(travel|trip|vacation|flight|hotel|itinerary|destination|visit\b)\b/},{domain:`tech`,test:/\b(code|coding|software|\bapp\b|\bapi\b|database|server|deploy|programming|website|algorithm)\b/},{domain:`learning`,test:/\b(study|course|exam|tutorial|homework|\bclass\b|lesson|curriculum)\b/}];function Ue(e){if(!e)return``;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`)return e[t].content;return``}function We(e,t){let n=e.toLowerCase(),r=Ue(t).toLowerCase(),i=r?`${n} ${r}`:n,a={decision:!1,comparison:!1,risk:!1,planning:!1,troubleshoot:!1,learning:!1,creative:!1,whatIf:!1,reflection:!1,highStakes:!1,serious:!1};for(let e of Ve)e.test.test(i)&&(a[e.key]=!0);(a.highStakes||a.reflection)&&(a.serious=!0);for(let e of He)if(e.test.test(i)){a.domain=e.domain;break}return a}function Ge(e){let t=new Set;return e.decision&&t.add(`decide`),e.comparison&&(t.add(`compare`),t.add(`decide`)),e.risk&&t.add(`decide`),e.planning&&(t.add(`plan`),t.add(`howto`)),e.troubleshoot&&(t.add(`howto`),t.add(`explain`)),e.learning&&(t.add(`explain`),t.add(`reference`)),e.creative&&t.add(`draft`),e.whatIf&&t.add(`decide`),e.reflection&&(t.add(`reflect`),t.add(`comfort`)),[...t]}var Ke=[{shape:`composition`,weight:1,test:/\b(budget|allocat\w*|split|breakdown|where\s+(?:\w+\s+)?(?:my\s+|the\s+)?(?:money|time|spend\w*|budget)|(?:money|time|spend\w*)\s+goes?|portion|share|mix|composition|makeup|made up of|percent\w*|proportion|divid\w*)\b/},{shape:`series`,weight:1,test:/\b(trend\w*|over time|growth|history|historical|month\w*|week\w*|dai\w*|quarter\w*|year\w*|forecast|projection|trajectory|since|past \d+)\b/},{shape:`comparison`,weight:1,test:/\b(vs\.?|versus|compare\w*|comparison|better|which (?:one|should|is)|either|or should|pros and cons|trade-?offs?|options?|best|top \d+|worth it|should i (?:buy|get|pick|choose|use)|recommend\w*)\b/},{shape:`ranking`,weight:1,test:/\b(rank\w*|leaderboard|top \d+|best|worst|most|least|highest|lowest|fastest|biggest|smallest|standings)\b/},{shape:`status`,weight:1,test:/\b(progress|on track|readiness|ready|status|health\w*|complete\w*|how (?:far|close)|goal|target|score|rating|grade)\b/},{shape:`sequence`,weight:1,test:/\b(steps?|how (?:do|to)|process|guide|walk\s?through|plan|schedule|roadmap|sequence|order|first.*then|itinerary|timeline)\b/},{shape:`flow`,weight:.8,test:/\b(funnel|pipeline|workflow|conversion|stages?|flow|drop-?off|state\s?machine|feedback\s?loops?|decision\s?tree|control\s?flow)\b/},{shape:`geo`,weight:1,test:/\b(map|where is|near\w*|location|route|directions?|cities|country|countries|region|travel|trip|drive)\b/},{shape:`list`,weight:.8,test:/\b(list|tips?|checklist|things to|ways to|ideas|reasons|items|bullet\w*)\b/},{shape:`distribution`,weight:1,test:/\b(distribution|spread|histogram|range|variance|outliers?|percentile|frequency|how (?:often|spread))\b/},{shape:`relationship`,weight:1,test:/\b(correlat\w*|relationship between|scatter|vs.*axis|impact of|affect\w*|driver\w*)\b/},{shape:`structure`,weight:1,test:/\b(molecul\w*|chemical structure|molecular structure|skeletal (?:formula|structure)|lewis structure|smiles|functional group|benzene)\b/},{shape:`tabular`,weight:.9,test:/\b(table|rows?|columns?|spreadsheet|records|dataset|grid of|matrix)\b/},{shape:`media`,weight:1,test:/\b(image\w*|photos?|gallery|pictures?|visual\w*|video|watch|before and after|screenshot)\b/},{shape:`text`,weight:.8,test:/\b(quote\w*|testimonial\w*|said|opinions?|reviews?|feedback|explain|defin\w*|definition|what is|tell me about|meaning of|translate\w*|vocabulary)\b/},{shape:`code`,weight:1.1,test:/\b(code|coding|programming|software|function|algorithm\w*|recursi\w*|data structures?|linked lists?|binary (?:tree|search)|hash\s?(?:map|table)|big-?o|time complexity|syntax|compil\w*|debug\w*|refactor\w*|regex|sql|snippet|pseudo\s?code|api)\b/},{shape:`scalar`,weight:.7,test:/\b(how (?:many|much)|number of|total|count|metric|stat\w*|kpi|figure)\b/},{shape:`keyvalue`,weight:.7,test:/\b(stats|metrics|numbers|key figures|at a glance|summary of|overview)\b/},{shape:`selection`,weight:.9,test:/\b(choose|pick|select|decide|configure|settings|sign\s?up|form|filter|adjust|set up)\b/},{shape:`hierarchy`,weight:.9,test:/\b(hierarch\w*|tree|nested|org\s?chart|structure of|breakdown of .* into|parent|sub-?categor\w*)\b/}],$=[{test:/\b(pdf|white\s?paper|the paper|the document|the report|the contract|the article|the spec|the manual|the filing|the brief|full text|read (?:it|the\b))\b/,types:[`pdfreader`,`docview`]},{test:/\b(images?|photos?|pictures?|gallery|pics?|snapshots?)\b/,types:[`gallery`]},{test:/\b(maps?|where is|located|directions?|on a map|near (?:the|downtown|campus)|walking distance|walkable|nearby|neighborhood|what'?s around|close to (?:downtown|the))\b/,types:[`geomap`]},{test:/\b(code|snippet|implementation|source code|pseudo\s?code)\b/,types:[`codeblock`]},{test:/\b(dialogue\w*|a scene\b|conversation between|exchange between|speakers?|write a (?:script|scene|transcript))\b/,types:[`dialogue`]},{test:/\b(defin\w*|etymology\b|what does .{1,30} mean|look up\b|vocabulary\b|word for\b)\b/,types:[`dictionary`]},{test:/\b(variant\w*|alternativ\w*|\d+ (?:version\w*|option\w*|draft\w*)|rewrit\w*|different (?:tone\w*|style\w*|version\w*))\b/,types:[`variants`]},{test:/\b(translat\w+|in (?:french|spanish|japanese|german|chinese|portuguese|italian|korean|arabic|russian|hindi|dutch|swedish|polish|turkish|vietnamese|thai|hebrew|greek|latin)|from (?:english|spanish|french|japanese|german|chinese) (?:to|into))\b/,types:[`translation`]},{test:/\b(rank (?:the )?top \d+|top \d+ (?:ranked|ranking)|leaderboard\b|ranked list\b|best \d+ .{1,30} rank\w*)\b/,types:[`bracketbar`]},{test:/\b(?:as|in|into) (?:a |an )?(?:data )?table\b|\b(?:make|build|draw|create|show|give|put|render|format)\b(?:[\w\s]{0,12})?\btable\b|\btabular\b|\bspreadsheet\b/,types:[`datatable`]},{test:/\b(?:draw|make|show|give|create|build)\b(?:[\w\s]{0,12})?\b(?:flow\s?chart|flow\s?diagram|diagram)\b|\bdiagram (?:this|it|of|the)\b|\bflow\s?chart\b|\bas an? [\w\s]{0,20}?diagram\b|\bstate\s?machine\b/,types:[`diagramflow`]},{test:/\b(?:as|make|draw|show|give|build|on)\b(?:[\w\s]{0,12})?\btime\s?line\b|\btime\s?line of\b/,types:[`timeline`]},{test:/\bcheck\s?list\b/,types:[`checklist`]},{test:/\bstep[-\s]?by[-\s]?step\b|\b(?:numbered|ordered) steps\b|\bwalk me through (?:the )?steps\b/,types:[`howtosteps`,`checklist`]},{test:/\bcompare\b|\bcomparison\b|\b\w+ (?:vs\.?|versus) \w+\b|\bdifference between\b|\bside[-\s]?by[-\s]?side\b/,types:[`compare`]},{test:/\bquiz\b|\btest me on\b|\bpractice questions\b/,types:[`quiz`]},{test:/\bflash\s?cards?\b/,types:[`flashcard`]},{test:/\b(recipe\b|how to (?:make|cook|bake) |step\w*-?by\w*-?step .{0,20}(?:recipe|cook)|(?:dinner|lunch|breakfast|dessert|cookie|pasta|chicken|beef|vegan|gluten.free) recipe\b)\b/,types:[`recipecard`]},{test:/\b(workout plan|training plan|exercise plan|gym (?:program|plan|routine)|fitness (?:plan|program|routine)|sets? and reps?|push.?pull.?legs?|strength (?:program|plan)|build muscle (?:plan|program)|weekly (?:workout|training|gym) (?:plan|program|schedule))\b/,types:[`workoutplan`]},{test:/\b(macro(?:nutrient)?s?\b|(?:calorie|nutrition(?:al)?) (?:breakdown|facts?|info|content)|grams? of (?:protein|carbs?|fat)|protein.*carb\w*.*fat|caloric breakdown)\b/,types:[`macrobreakdown`]},{test:/\b(medication (?:schedule|reminder|timing)|dosing schedule|pill (?:schedule|reminder)|when (?:to|should i|do i) take .{0,30}(?:pill\w*|drug|medication|meds?|tablet\w*|dose\w*)|what time .{0,20}(?:take|dose) .{0,20}(?:pill\w*|medication|meds?)|drug dosage (?:schedule|timing))\b/,types:[`medicationschedule`]},{test:/\b(chord diagram|guitar chord\b|(?:how to (?:play|finger)|fingering for) .{0,20}chord|barre chord|power chord|open chord|chord shape\w*)\b/,types:[`chorddiagram`]},{test:/\b((?:baby|child|toddler|infant) (?:milestone\w*|developmental? milestone\w*)|developmental? milestone\w*|\d+[- ]month[- ]old milestone\w*|\d+[- ]year[- ]old milestone\w*|when (?:should|do) (?:babies|kids|toddlers|infants)\b)\b/,types:[`developmentmilestone`]},{test:/\b(argument map\b|arguments? (?:for and against\b|supporting and opposing)|philosophical argument\b|claim(?:s?) (?:and|with) (?:evidence|support\w*|objection\w*)|debate the (?:claim|motion|topic)\b|case for and against\b)\b/,types:[`argumentmap`]},{test:/\b((?:soccer|football|basketball|baseball|tennis) (?:formation\b|lineup\b|position\w*|play diagram|tactic\w*)|4-3-3\b|4-4-2\b|3-5-2\b|4-2-3-1\b|3-4-3\b|defensive (?:shift\b|formation\b)|starting (?:eleven\b|xi\b|lineup\b))\b/,types:[`sportspitch`]},{test:/\b(floor\s?plan\b|room layout\b|apartment layout\b|(?:house|home|office) (?:layout\b|floor plan)|room arrangement\b|furniture layout\b)\b/,types:[`floorplan`]},{test:/\b(medical (?:history|timeline|chronolog\w*)|clinical (?:history|course|timeline)|patient (?:history|chronolog\w*)|diagnosis timeline\b|treatment (?:history|timeline)|symptom (?:progression|history|chronolog\w*))\b/,types:[`clinicaltimeline`]},{test:/\b(research (?:finding\w*|result\w*|summary|paper summary)|what (?:does|did) (?:the research|studies|the study|the science) (?:say|show|find|reveal)\b|scientific (?:consensus|evidence|finding\w*)|meta-?analysis\b|randomized (?:controlled )?trial\b|clinical (?:evidence|finding\w*|trial\w*))\b/,types:[`researchsummary`]},{test:/\b(hourly itinerary|hour.?by.?hour|itinerary (?:for|of)\b|trip itinerary|travel itinerary|daily itinerary|day.?by.?day (?:plan|schedule|itinerary)|morning (?:to|through) (?:evening|night)|full day (?:plan|schedule|itinerary)|schedule (?:for|of) (?:my |a |the )?(?:trip|day|visit))\b/,types:[`agenda`]}];function qe(e){let t=e.toLowerCase(),n=[];for(let e of $)e.test.test(t)&&n.push(...e.types);return[...new Set(n)]}var Je={datatable:`a data table`,diagramflow:`a flow diagram`,timeline:`a timeline`,codeblock:`a code block`,geomap:`a map`,gallery:`an image gallery`,pdfreader:`the document`,docview:`the document`,checklist:`a checklist`,howtosteps:`a step-by-step`,compare:`a side-by-side comparison`,quiz:`a quiz`,flashcard:`flashcards`,dictionary:`a definition`,recipecard:`a recipe`,dialogue:`a scripted dialogue`,variants:`variations`,translation:`a translation`,bracketbar:`a ranking`};function Ye(e){return Je[e]??`a ${e}`}function Xe(e){return e.length?`FORMAT REQUEST — the user explicitly asked for their answer in a specific FORM: ${[...new Set(e.map(Ye))].join(`, `)}. Make that the LEAD block (position 0 or 1), built fully and completely; the rest of the canvas supports it. Never answer in a different shape than the one they named.`:``}function Ze(e){if(!e)return``;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`)return e[t].content;return``}function Qe(e,t){let n=e.toLowerCase(),r=Ze(t).toLowerCase(),i={};for(let e of Ke){let t=0;e.test.test(n)&&(t+=e.weight),r&&e.test.test(r)&&(t+=e.weight*.4),t>0&&(i[e.shape]=(i[e.shape]??0)+t)}return i}export{se as C,p as D,g as E,f as O,pe as S,re as T,b as _,Ge as a,_e as b,Le as c,Re as d,Pe as f,xe as g,Ee as h,We as i,u as k,Ie as l,Te as m,Qe as n,Q as o,Ae as p,Xe as r,ze as s,qe as t,Z as u,ge as v,me as w,fe as x,he as y};
|