@mavea/mavea 1.0.8 → 1.0.10
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/dist/.vite/manifest.json +668 -662
- package/dist/assets/{AppCommandPalette-DUMSp3rd.js → AppCommandPalette-BrvbfsdK.js} +1 -1
- package/dist/assets/{AtlasView-Dl2fssaG.js → AtlasView-B8b67dk0.js} +1 -1
- package/dist/assets/{BlockEmpty-CLtVQf6c.js → BlockEmpty-L6Ii29YE.js} +1 -1
- package/dist/assets/{BriefingPlayer-DO205Qkh.js → BriefingPlayer-CtB3h9TJ.js} +1 -1
- package/dist/assets/{CanvasSkeleton-BZZPCuRZ.js → CanvasSkeleton-CqvzF0Ix.js} +2 -2
- package/dist/assets/{CheckLogRail-wUfby67Z.js → CheckLogRail-Dr0S3LeI.js} +1 -1
- package/dist/assets/{CodeOutput-Kh6ldxQz.js → CodeOutput-BGCRjlET.js} +1 -1
- package/dist/assets/{CommandPalette-Kl00mMZm.js → CommandPalette-D2kV4Mdl.js} +1 -1
- package/dist/assets/{CourseLessonReader-MBHoknUz.js → CourseLessonReader-ItmH7ccs.js} +2 -2
- package/dist/assets/{CourseRail-q6x5cCpW.js → CourseRail-B8Ot8hW9.js} +1 -1
- package/dist/assets/{CoursesApp-v89OVJvg.js → CoursesApp-DSu2zswg.js} +2 -2
- package/dist/assets/{CrossExamPanel-DH04p6VS.js → CrossExamPanel-xOgmL2kl.js} +1 -1
- package/dist/assets/{DashPresent-BYXbPuGj.js → DashPresent-C8Yk9AOu.js} +1 -1
- package/dist/assets/{DashboardDetail-B50ZkeVK.js → DashboardDetail-BK3ozdBm.js} +2 -2
- package/dist/assets/DashboardLoopRuntime-elAVdpQj.js +1 -0
- package/dist/assets/{DashboardOverview-C-FdGWM5.js → DashboardOverview-Bhiwt3py.js} +1 -1
- package/dist/assets/{DashboardSettings-Dmw6JTbI.js → DashboardSettings-ConUIT2l.js} +1 -1
- package/dist/assets/{DashboardsApp-JSY_bVfi.js → DashboardsApp-CAxFYHsK.js} +2 -2
- package/dist/assets/{DeepZoomApp-BFNwli7l.js → DeepZoomApp-B1uh9Yyg.js} +1 -1
- package/dist/assets/{DelegatePanel-BK7rEhIc.js → DelegatePanel-CDOU8DfD.js} +1 -1
- package/dist/assets/{DemoGallery-BPtVG7_y.js → DemoGallery-D1YRuz0S.js} +1 -1
- package/dist/assets/{DropSelect-DUhdQSta.js → DropSelect-DZGCKxxw.js} +1 -1
- package/dist/assets/{ExportModal-D65cGyj_.js → ExportModal-DhM80yeB.js} +2 -2
- package/dist/assets/{ExtractionPreview-Iwfg2Ogl.js → ExtractionPreview-CEVvwL6Z.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-CYkF5LO_.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-BDJfasI-.js → FlagshipCommandPalette-gbdvHS2L.js} +1 -1
- package/dist/assets/{FlagshipShowcase-DJ8Gxk_G.js → FlagshipShowcase-BB4BJP3V.js} +1 -1
- package/dist/assets/{FlashcardsApp-CLNo4WX7.js → FlashcardsApp-kGal2QE_.js} +1 -1
- package/dist/assets/{ForecastPanel-PBO2-dgS.js → ForecastPanel-gs5apRKg.js} +1 -1
- package/dist/assets/{GalleryApp-DM03CMRy.js → GalleryApp-DPdu4q7k.js} +1 -1
- package/dist/assets/{HonestByDesign-Dqyth6nW.js → HonestByDesign-CKnSiPcq.js} +1 -1
- package/dist/assets/{HowItWorks-C0zosIvq.js → HowItWorks-DWp-ASxN.js} +1 -1
- package/dist/assets/{LegalApp-DZBdExTy.js → LegalApp-D17oe1-B.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-CSZhRG5r.js → LegalMarkdownDocument-B-0LA_X_.js} +1 -1
- package/dist/assets/{LegalPageShell-DTeXqWyc.js → LegalPageShell-CY2O507f.js} +1 -1
- package/dist/assets/{LeverPanel-aZfhtVJX.js → LeverPanel-CiRg_mFN.js} +1 -1
- package/dist/assets/{Library-D2XGNXz7.js → Library-DhMHA6Q_.js} +1 -1
- package/dist/assets/{LibraryOverlay-B2WQSgwr.js → LibraryOverlay-C3ECZIkZ.js} +1 -1
- package/dist/assets/LiveApp-CPPQzp34.js +61 -0
- package/dist/assets/{LiveApp-BVZGpJ1S.css → LiveApp-D2QFBykD.css} +1 -1
- package/dist/assets/LiveSettings-Bk-_UwJ6.js +6 -0
- package/dist/assets/{MindMapViewerDrawer-YYyZqmAd.js → MindMapViewerDrawer-C25mTggg.js} +1 -1
- package/dist/assets/{MindShape-mTlN5mPZ.js → MindShape-BxkLfo53.js} +1 -1
- package/dist/assets/{PinToDashboard-_kIOHs0k.js → PinToDashboard-D7IJhkHd.js} +1 -1
- package/dist/assets/{PlanReview-33V8GTNB.js → PlanReview-Cr5XQnuN.js} +1 -1
- package/dist/assets/{Presence-CzLJIeSD.js → Presence-DKuWuuqK.js} +1 -1
- package/dist/assets/{PresentationDeck-BDoGecxr.js → PresentationDeck-Cd0r3n1O.js} +1 -1
- package/dist/assets/{PrismApp-PfBTFhMF.js → PrismApp-DcKFHKlU.js} +2 -2
- package/dist/assets/{PrismAskController-DbQDrlU9.js → PrismAskController-PncuR6Km.js} +1 -1
- package/dist/assets/{PrismBriefingPlayer-1fvlfLR8.js → PrismBriefingPlayer-DPVF0uAk.js} +2 -2
- package/dist/assets/{PrismOverlay-B7lEspdu.js → PrismOverlay-COemfAxM.js} +4 -4
- package/dist/assets/{PrivacyApp-CR4lRs0L.js → PrivacyApp-C8D6D4ug.js} +1 -1
- package/dist/assets/{Recap-H5fhj5Tc.js → Recap-BiNtOx5h.js} +1 -1
- package/dist/assets/{ReelJelly-3jSVsJsy.js → ReelJelly-DlUpsGvm.js} +1 -1
- package/dist/assets/{RehearsalPanel-BVgjrOPg.js → RehearsalPanel-BzjZl2d1.js} +1 -1
- package/dist/assets/ReplayCard-EEL3-N3E.js +2 -0
- package/dist/assets/{ReplayOverlay-DXmVdeIr.js → ReplayOverlay-D30116VF.js} +1 -1
- package/dist/assets/{RewindOverlay-BusfWeFq.js → RewindOverlay-C4W4TlTA.js} +1 -1
- package/dist/assets/{RippleApp-9KrJPYgN.js → RippleApp-Bp3koJmT.js} +2 -2
- package/dist/assets/{RippleAskController-CO9wE7hU.js → RippleAskController-fvq109Pn.js} +1 -1
- package/dist/assets/{RippleOverlay-DMHLbfh8.js → RippleOverlay-BDc4eEW2.js} +2 -2
- package/dist/assets/{SeeDontRead-C389viue.js → SeeDontRead-D-Cpq9BU.js} +1 -1
- package/dist/assets/ShareModal-jNmCfrjC.js +32 -0
- package/dist/assets/{ShipCascade-BUtwvQoW.js → ShipCascade-Dy1JkWLT.js} +1 -1
- package/dist/assets/{ShipCourse-B7lG6DYW.js → ShipCourse-wmdSNt0D.js} +1 -1
- package/dist/assets/{ShipHotspots-Bj2CovtT.js → ShipHotspots-BJESX960.js} +1 -1
- package/dist/assets/{ShipIncident-DcmindmE.js → ShipIncident-DZ7YVj3U.js} +1 -1
- package/dist/assets/{ShipMigration-s0hVjDQl.js → ShipMigration-Cw2fI6TU.js} +1 -1
- package/dist/assets/{ShipOnboarding-ekbHL7OH.js → ShipOnboarding-v3pjB9Dd.js} +1 -1
- package/dist/assets/{ShipRead-BVNgQT6L.js → ShipRead-D8nzUWiX.js} +1 -1
- package/dist/assets/{ShipRollout-BdUQzMyP.js → ShipRollout-CEIWoYzI.js} +1 -1
- package/dist/assets/{ShipSuggestions-B6fKYh8L.js → ShipSuggestions-DcKMr0By.js} +1 -1
- package/dist/assets/{ShipWorkspace-3D3Rrs1p.js → ShipWorkspace-Ck-C4iW9.js} +1 -1
- package/dist/assets/{SignatureLoop-C60r8Wm5.js → SignatureLoop-bo7wU13q.js} +1 -1
- package/dist/assets/{SynthesisApp-vJ2Jq0Qe.js → SynthesisApp-2uQFqWDb.js} +2 -2
- package/dist/assets/{SynthesisOverlay-CkERphvG.js → SynthesisOverlay-_lC1TNb0.js} +1 -1
- package/dist/assets/{TermsApp-C70tW6m6.js → TermsApp-BVBZzP88.js} +1 -1
- package/dist/assets/{TopicCanvas-CT0eSj2M.js → TopicCanvas-B1WcxoEs.js} +2 -2
- package/dist/assets/{TourPrism-BvucSkcs.js → TourPrism-BfJXC1SR.js} +1 -1
- package/dist/assets/{TrackerTile-CasZNmt4.js → TrackerTile-Bp2KIlOe.js} +2 -2
- package/dist/assets/{TwoSurfaces-C90X7Aj5.js → TwoSurfaces-BH7wc_Ep.js} +1 -1
- package/dist/assets/{UnderstoodPanel-CHPD2Ttj.js → UnderstoodPanel-BNsNgsry.js} +1 -1
- package/dist/assets/{WhyMachineOverlay-CB0_n6Sy.js → WhyMachineOverlay-DtuKQK6a.js} +1 -1
- package/dist/assets/{WowFeatures-Ci_H5QYX.js → WowFeatures-AtKR62OJ.js} +1 -1
- package/dist/assets/{ZoomDeck-BQHO79ZU.js → ZoomDeck-Cjxd13Gj.js} +1 -1
- package/dist/assets/{alternateFinishes-DZ-rkpkX.js → alternateFinishes-0zAldUWA.js} +1 -1
- package/dist/assets/{annotationAuto-B0nihA4F.js → annotationAuto-LzJWWed8.js} +1 -1
- package/dist/assets/{annotationReel-BcU9Q0Sw.js → annotationReel-_G28azfX.js} +1 -1
- package/dist/assets/backup-BEABatjO.js +1 -0
- package/dist/assets/canvas-zLlyd97t.js +1 -0
- package/dist/assets/{catalog-Dqaq2YFd.js → catalog-DPzc-MaH.js} +1 -1
- package/dist/assets/chapters-Cbe53c3W.js +1 -0
- package/dist/assets/{dashboardEvents-DR9d_c74.js → dashboardEvents-CCCsM3Bq.js} +2 -2
- package/dist/assets/{dist-BFx3nZg4.js → dist-PCzrhF4p.js} +1 -1
- package/dist/assets/{fit-0HxU-rtB.js → fit-B4AIV3jM.js} +1 -1
- package/dist/assets/{generateLive-D4B30fnF.js → generateLive-B4vyL_X9.js} +18 -18
- package/dist/assets/homeTarget-BcZYH3DY.js +1 -0
- package/dist/assets/{index-y8GL67bB.js → index-DiPGFGsJ.js} +3 -3
- package/dist/assets/{jspdf.es.min-C-Pf79px.js → jspdf.es.min-CuE7vq_-.js} +1 -1
- package/dist/assets/kokoro-BAiRCDY0.js +1 -0
- package/dist/assets/{lib-VFqp6Y3w.js → lib-CQDCalVC.js} +1 -1
- package/dist/assets/{liveSchema-CJ49PX5R.js → liveSchema-Df33WFbg.js} +3 -2
- package/dist/assets/{mastery-BPjxP0fN.js → mastery-D7xYf5D7.js} +1 -1
- package/dist/assets/{motion-S0NRruNj.js → motion-S_ZJkP9s.js} +1 -1
- package/dist/assets/{neighborhoods-C-1Tjr1r.js → neighborhoods-DFqKm9Xi.js} +1 -1
- package/dist/assets/{notes-lROPCorS.js → notes-CRP7J2eu.js} +1 -1
- package/dist/assets/{pdf-Df7PCH7q.js → pdf-C80f-ORI.js} +1 -1
- package/dist/assets/{perfProbe-COAp9PAa.js → perfProbe-CBJQvhlT.js} +1 -1
- package/dist/assets/{pin-CXSuPJYL.js → pin-Le0tONqk.js} +1 -1
- package/dist/assets/{portal-DMw7C32j.js → portal-4ZN6jo0N.js} +1 -1
- package/dist/assets/{pptxgen.es-CvTILmV9.js → pptxgen.es-DCKUqU8v.js} +1 -1
- package/dist/assets/{prewarm--whjQhWJ.js → prewarm-CTFQ2mCg.js} +1 -1
- package/dist/assets/{quietHours-BvcsBKKK.js → quietHours-CzNHI0JD.js} +1 -1
- package/dist/assets/{registry-DujBAgn_.js → registry-2H41hRIB.js} +1 -1
- package/dist/assets/{registry-Buq5uuCv.js → registry-B2ntaO2N.js} +1 -1
- package/dist/assets/{registry-QcULZpdE.js → registry-BXafX9C8.js} +2 -2
- package/dist/assets/{registry-B940W2j5.js → registry-BeStN3Pr.js} +1 -1
- package/dist/assets/{registry-DUvXX_d0.js → registry-BftXZ9vp.js} +1 -1
- package/dist/assets/{registry-DCI_BeFJ.js → registry-Bl7cQtEK.js} +1 -1
- package/dist/assets/{registry-aazwkBJp.js → registry-BqcHHCvG.js} +1 -1
- package/dist/assets/{registry-B8DStMJk.js → registry-BsYURZ0N.js} +1 -1
- package/dist/assets/{registry-CKjKq6ct.js → registry-CGZNwEdk.js} +1 -1
- package/dist/assets/{registry-DDLSYDVA.js → registry-CQzRD746.js} +1 -1
- package/dist/assets/{registry-1GuPBfQK.js → registry-CS2QCeW9.js} +1 -1
- package/dist/assets/{registry-CEVrY72Z.js → registry-CgrywLei.js} +1 -1
- package/dist/assets/{registry-Cg7qUZPS.js → registry-Cm59DqEh.js} +1 -1
- package/dist/assets/{registry-CAusoyBh.js → registry-CmrE7O4v.js} +1 -1
- package/dist/assets/{registry-2v0jlh5Q.js → registry-D6rlO36K.js} +2 -2
- package/dist/assets/{registry-DI1wSG1Y.js → registry-DOWgQUqz.js} +1 -1
- package/dist/assets/{registry-BPvIPLke.js → registry-DOt6RM72.js} +1 -1
- package/dist/assets/{registry-BgGeRiDA.js → registry-DYzIwDFU.js} +1 -1
- package/dist/assets/{registry-Cix-yqch.js → registry-Dmrednfo.js} +1 -1
- package/dist/assets/{registry-Dpb8EXHn.js → registry-DygrqpKl.js} +1 -1
- package/dist/assets/{registry-D_URPoL4.js → registry-HN-JpqFb.js} +1 -1
- package/dist/assets/{registry-DJinB5ye.js → registry-ejl3mwuM.js} +1 -1
- package/dist/assets/{registry-zRPjWNl5.js → registry-jZYQkNJ2.js} +1 -1
- package/dist/assets/{relate-A9ZeaaAI.js → relate-C5sGCY-w.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-CifX0fpk.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-CkMgrSDP.js +1 -0
- package/dist/assets/{useDashboardLoop-B6ByHWoE.js → useDashboardLoop-Bj1otKTo.js} +3 -3
- package/dist/assets/useLiveConfig-CbMkeKrN.js +1 -0
- package/dist/assets/{useSpatialCanvas-DogK9457.js → useSpatialCanvas-CgmEY3Ri.js} +1 -1
- package/dist/assets/{useSpotlightWalk-rMbmNBKK.js → useSpotlightWalk-aimD20cU.js} +1 -1
- package/dist/assets/{useSrsCards-CagZefwX.js → useSrsCards-DItrX8z6.js} +1 -1
- package/dist/assets/{useStudy-Bflreq2a.js → useStudy-DyBiirxE.js} +1 -1
- package/dist/assets/{useZoomGesture-CYc3tf2z.js → useZoomGesture-iiPgDTx_.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -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{ht as r}from"./index-y8GL67bB.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-VFqp6Y3w.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
|
|
1
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-DiPGFGsJ.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-CQDCalVC.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-
|
|
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-DiPGFGsJ.js";import{n as i}from"./icons-CHVz6kv_.js";import"./lib-CQDCalVC.js";import{n as a}from"./motion-S_ZJkP9s.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 +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-y8GL67bB.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-VFqp6Y3w.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{t as l}from"./safeCssColor-di93BXgG.js";var u=t(),d=n(),f=480,p=16,m=90,h=240,g=390,_=120,v=38,y=14;function b(e){let t=e.toLowerCase();return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var x=18,S=22;function C(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function w({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let{vbH:s,wordY:c,wordCY:l,rootBoxes:w,descBoxes:T}=(0,u.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-y+p*2+12,s=Math.max(o,120),c=s/2,l=c-v/2,u=c-(i*52-(i>0?y:0))/2,d=e.map((e,t)=>({r:e,x:m-_/2,y:u+t*52,cy:u+t*52+v/2,color:b(e.lang)})),f=c-(a*52-(a>0?y:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:g-_/2,y:f+t*52,cy:f+t*52+v/2,color:b(e.lang??``)}))}},[t,n]),E=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,d.jsx)(`div`,{className:`et-wrap`,children:(0,d.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${f} ${s}`,role:`img`,"aria-label":`Etymology of "${e}"`,preserveAspectRatio:`xMidYMid meet`,children:[w.map((e,t)=>(0,d.jsx)(`path`,{d:E(150,e.cy,h-_/2,l),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),T.map((e,t)=>(0,d.jsx)(`path`,{d:E(300,l,g-_/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),w.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang+(e.gloss?` · ${e.gloss}`:``);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:m,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:m,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`r${a}`)}),(0,d.jsx)(`rect`,{x:h-_/2,y:c,width:_,height:v,rx:8,className:`et-word-box`}),(0,d.jsx)(`text`,{x:h,y:l+5,textAnchor:`middle`,className:`et-word`,children:e}),T.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang?`${e.lang}${e.gloss?` · ${e.gloss}`:``}`:e.gloss??``;return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`d${a}`)}),(0,d.jsx)(`text`,{x:m,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),T.length>0&&(0,d.jsx)(`text`,{x:g,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,d.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function T({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,d.jsx)(`div`,{className:`fs-tagline`,children:o}),p.length>0&&(0,d.jsx)(`div`,{className:`fs-facts`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`fs-row`,children:[(0,d.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,d.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,d.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,d.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var E=r(),D={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},ee=`12,1.6 22.4,12 12,22.4 1.6,12`,te={flammable:()=>(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,d.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,d.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,d.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,d.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,d.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,d.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,d.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,d.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,d.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,d.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,d.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,d.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,d.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,d.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,d.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,d.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,d.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,d.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,d.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,d.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,d.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,d.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,d.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function O(e){let t=(0,E.c)(7),{kind:n,className:r}=e,i=te[n],a=D[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(`polygon`,{className:`ghs-diamond`,points:ee}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,d.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function k({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:f}){let p=i[t]??i.alert,m=o===`Warning`,h=m?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in D),_=c??[],v=l??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,d.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,d.jsx)(`span`,{className:`hc-signal-icon`,children:(0,d.jsx)(i.alert,{})}),(0,d.jsx)(`span`,{className:`hc-signal-word`,children:m?`Warning`:`Danger`})]}),g.length>0&&(0,d.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(O,{kind:e,className:`hc-pic-glyph`}),(0,d.jsx)(`span`,{className:`hc-pic-label`,children:D[e]})]},t))}),_.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function A({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,f=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,d.jsx)(`span`,{className:`nd-topic`,children:r}),(0,d.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,d.jsx)(`div`,{className:`nd-items`,children:f.map((e,t)=>(0,d.jsxs)(`div`,{className:`nd-item`,children:[(0,d.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,d.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,d.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,d.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,d.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,d.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:f,delay:p}){let m=i[t]??i.globe,h=u??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`tl-langs`,children:[(0,d.jsx)(`span`,{className:`tl-from`,children:r}),(0,d.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,d.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,d.jsxs)(`div`,{className:`tl-pair`,children:[(0,d.jsx)(`div`,{className:`tl-source`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,d.jsx)(`div`,{className:`tl-result`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,d.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,d.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,d.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`tl-bp`,children:[(0,d.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,d.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,d.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let f=i[t]??i.doc,p=c??[],m=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),m.length>0&&(0,d.jsx)(`div`,{className:`pr-syllables`,children:m.map((e,t)=>(0,d.jsxs)(`span`,{children:[t>0&&(0,d.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,d.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),p.length>0&&(0,d.jsx)(`div`,{className:`pr-tips`,children:p.map((e,t)=>(0,d.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),p.length>0&&(0,d.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`dc-sense`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,d.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,d.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,d.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,d.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,d.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,d.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,d.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,d.jsxs)(`div`,{className:`dc-etymology`,children:[(0,d.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ae({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,f=(0,u.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`gl-domain`,children:r}),(0,d.jsx)(`div`,{className:`gl-entries`,children:f.map((e,t)=>{let n=e.term.charAt(0).toUpperCase();return(0,d.jsxs)(`div`,{children:[n!==(t===0?null:f[t-1].term.charAt(0).toUpperCase())&&(0,d.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,d.jsxs)(`div`,{className:`gl-entry`,children:[(0,d.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,d.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,d.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,d.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,f=s??[],p=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},m=f.reduce((e,t)=>{let n=p(t);return n!==null&&n>e?n:e},0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,d.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,d.jsx)(`span`,{className:`scf-unit`,children:o})]}),f.length>0&&(0,d.jsx)(`div`,{className:`scf-rows`,children:f.map((e,t)=>{let n=p(e),r=n!==null&&m>0?Math.max(n/m*100,4):0;return(0,d.jsxs)(`div`,{className:`scf-row`,children:[(0,d.jsxs)(`div`,{className:`scf-line`,children:[(0,d.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,d.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,d.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,d.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,d.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var j=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,se={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ce(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=se[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ce(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,l=r??[],[f,p]=(0,u.useState)(null),m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useCallback)(()=>{if(h.current!==null&&(clearTimeout(h.current),h.current=null),m.current){let e=m.current;m.current=null,e.close().catch(()=>{})}j&&window.speechSynthesis.cancel()},[]);(0,u.useEffect)(()=>g,[g]);let _=(0,u.useCallback)((e,t)=>{if(!j)return;let n=new window.SpeechSynthesisUtterance(e);n.rate=.92;let r=()=>p(e=>e===t?null:e);n.onend=r,n.onerror=r,window.speechSynthesis.speak(n),p(t)},[]),v=(0,u.useCallback)((e,t)=>{if(!M)return;let n=new M;m.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),p(t),a.onended=()=>{p(e=>e===t?null:e),m.current===n&&(m.current=null,n.close().catch(()=>{}))},h.current=setTimeout(()=>{m.current===n&&(m.current=null,n.close().catch(()=>{}),p(e=>e===t?null:e))},.75*1e3)},[]),y=(0,u.useCallback)((e,t)=>{if(g(),e.kind===`word`){_(String(e.value),t);return}let n=N(e.value);n===null||n<=0||v(n,t)},[g,_,v]),b=e=>e.kind===`word`?j:!!M&&N(e.value)!==null;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`ul`,{className:`hri-rows`,children:l.map((e,t)=>{let n=b(e),r=f===t,a=i[P[e.kind]]??i.speaker,o=e.kind===`word`?`Speech synthesis is unavailable in this browser`:`Audio playback is unavailable in this browser`;return(0,d.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,d.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>y(e,t),disabled:!n,title:n?`Play ${e.label}`:o,"aria-label":n?`Play ${e.label}`:`${e.label} — ${o}`,children:r?(0,d.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,d.jsxs)(`div`,{className:`hri-body`,children:[(0,d.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,d.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,d.jsxs)(`span`,{className:`hri-kind`,children:[(0,d.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let f=i[t]??i.globe,p=s??[],m=new Set((o??[]).map(B)),h=e=>m.has(B(e));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,d.jsx)(W,{isHot:h}):(0,d.jsx)(H,{isHot:h}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),p.length>0&&(0,d.jsx)(`ul`,{className:`ipa-examples`,children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,d.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,d.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,E.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,f,p,m,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,d.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),f=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,d.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),p=(0,d.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),m=(0,d.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,d.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,d.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,d.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,d.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],p=t[10],m=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==p||t[25]!==m||t[26]!==h?(g=(0,d.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,f,p,m,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=f,t[24]=p,t[25]=m,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,d.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function W(e){let t=(0,E.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,d.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,d.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(G)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,d.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,d.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,d.jsx)(i,{s:n[0]}),(0,d.jsx)(i,{s:n[1]})]}):(0,d.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,d.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,d.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,d.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function G(e){return(0,d.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function le(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function ue({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:f,delay:p}){let m=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ss-stage`,children:[(0,d.jsx)(`div`,{className:`ss-square`,children:(0,d.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,d.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,d.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,d.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,d.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,d.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,d.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?le(e.path):null;return n?(0,d.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,d.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,d.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,d.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,d.jsxs)(`div`,{className:`ss-meta`,children:[(0,d.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,d.jsxs)(`div`,{className:`ss-romanization`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,d.jsxs)(`div`,{className:`ss-meaning`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,d.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,d.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,d.jsxs)(`li`,{className:`ss-step`,children:[(0,d.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,d.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:u}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var K=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,de=`silent`;function fe({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:l,delay:f}){let p=i[t]??i.captions,m=(o??[]).filter(e=>e&&e.text),h=(s??[]).filter(Boolean),[g,_]=(0,u.useState)(null);(0,u.useEffect)(()=>()=>{K&&window.speechSynthesis.cancel()},[]);let v=(0,u.useCallback)((e,t,n)=>{if(!K)return;window.speechSynthesis.cancel();let r=new window.SpeechSynthesisUtterance(e);r.rate=n;let i=()=>_(e=>e===t?null:e);r.onend=i,r.onerror=i,window.speechSynthesis.speak(r),_(t)},[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:m.map((e,t)=>{let n=e.kind??`grapheme`,r=n===de;return(0,d.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":g===t||void 0,disabled:r||!K,onClick:()=>v(e.text,t,.62),title:r?`"${e.text}" is silent`:K?`Hear "${e.text}"`:`"${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,d.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,d.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,d.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":g===-1||void 0,disabled:!K,onClick:()=>v(r,-1,.92),title:K?`Hear "${r}"`:r,"aria-label":K?`Hear the whole word, ${r}`:r,children:[K?g===-1?(0,d.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}):null,(0,d.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),h.length>0&&(0,d.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,d.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,d.jsx)(`ul`,{className:`pw-rhyme-list`,children:h.map((e,t)=>(0,d.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var pe=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],q={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},me=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(q,e),he=/^[¿¡([{«‹“‘]+$/;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let f=i[t]??i.captions,{groups:p,legend:m,notes:h}=(0,u.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:me(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!he.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:pe.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,u.useState)(null),v=g&&m.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,d.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0?(0,d.jsx)(`div`,{className:`psb-flow`,children:p.map((e,t)=>(0,d.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,d.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,d.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,d.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,d.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:q[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,d.jsx)(`p`,{className:`psb-plain`,children:o}):(0,d.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,d.jsx)(`div`,{className:`psb-translation`,children:s}),m.length>0&&(0,d.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:m.map(({pos:e,count:t})=>(0,d.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,d.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,d.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,d.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,d.jsxs)(`li`,{className:`psb-note`,children:[(0,d.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,d.jsxs)(`span`,{className:`psb-note-text`,children:[(0,d.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function _e({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:u,lookalikes:f,status:p,caption:m,footer:h,delay:g}){let _=i[t]??i.globe,v=l(c?.from,`var(--presence-deep)`),y=l(c?.to,`var(--presence-soft)`),b=o(c?.src),x=u??[],S=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,d.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),p&&(0,d.jsx)(`span`,{className:`sp-status`,children:p})]}),(0,d.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,d.jsx)(`div`,{className:`sp-scientific`,children:s}),m&&(0,d.jsx)(`div`,{className:`sp-caption`,children:m}),x.length>0&&(0,d.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,d.jsxs)(`div`,{className:`sp-mark`,children:[(0,d.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,d.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,d.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,d.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,d.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,d.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:f,langs:p}=(0,u.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),m=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0?(0,d.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):p.length===0?(0,d.jsx)(`ul`,{className:`tb-flat`,children:f.map(({term:e},t)=>(0,d.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,d.jsx)(`div`,{className:`tb-wrap`,children:(0,d.jsxs)(`table`,{className:`tb-table`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{scope:`col`,children:`Term`}),p.map(e=>(0,d.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,d.jsx)(`tbody`,{children:f.map(({term:e,cells:t},n)=>(0,d.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,d.jsx)(`td`,{className:`tb-term-col`,children:e.term}),p.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=m(n?.status);return(0,d.jsx)(`td`,{className:`tb-cell`,children:r?(0,d.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,d.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,d.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function ye(e){return typeof e==`string`&&e in J}function be(e){let t=(0,E.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=J[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,d.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,d.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,d.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,d.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,d.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,d.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,d.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,d.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},xe)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,d.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let f;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(f=(0,d.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=f):f=t[20],f}function xe(e,t){return Array.from({length:3},(e,n)=>(0,d.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Se=190,Y=16;function Ce(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function we({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],f=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),p=f>0?Se/f:0,m=u.map(e=>{let t=ye(e.shape)?e.shape:`generic`,n=J[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&p>0?Math.max(e.length*p,Y):Y;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...m.map(e=>e.height),Y);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),m.length===0?(0,d.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,d.jsx)(`div`,{className:`szc-scroll`,children:(0,d.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:m.map(({subject:e,shape:t,width:i,height:a},o)=>(0,d.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,d.jsx)(`div`,{className:`szc-shape-box`,children:(0,d.jsx)(be,{shape:t,style:{width:i,height:a}})}),(0,d.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,d.jsx)(`div`,{className:`szc-item-value`,children:Ce(e.length,r)})]},o))})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Te(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ee({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],f=typeof r==`string`||typeof r==`number`?String(r):``;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f&&(0,d.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:f}),u.length>0?(0,d.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,d.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,d.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,d.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,d.jsx)(`div`,{className:`bcv-digits`,children:Te(n).map((e,t)=>(0,d.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,d.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,d.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function De(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Oe(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function ke({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:f,legacy:p,footer:m,delay:h}){let g=i[t]??i.doc,_=u??[],v=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`hp-head`,children:[(0,d.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:De(r)}),(0,d.jsxs)(`div`,{className:`hp-headline`,children:[(0,d.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,d.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,d.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,d.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,d.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hp-beat-year`,children:Oe(e.year)}),(0,d.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,d.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),p&&(0,d.jsx)(`div`,{className:`hp-legacy`,children:p}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function X(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Z({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let f=i[t]??i.clock,p=o??[],m=s??[],h=c??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`otd-date`,children:r}),p.length>0?(0,d.jsx)(`div`,{className:`otd-events`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`otd-year-chip`,children:X(e.year)}),(0,d.jsxs)(`div`,{className:`otd-event-body`,children:[(0,d.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,d.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,d.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(m.length>0||h.length>0)&&(0,d.jsxs)(`div`,{className:`otd-people`,children:[m.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:f,facts:p,footer:m,delay:h}){let g=i[t]??i.globe,_=Array.isArray(p)?p:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:f}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`cc-banner`,children:(0,d.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,d.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,d.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-mark`,children:[(0,d.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,d.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,d.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,d.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function je({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,d.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,d.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,d.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Q=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Me=new Set(Q);function Ne(e,t){return typeof e.color==`string`&&Me.has(e.color)?e.color:Q[t%Q.length]}function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:f}){let p=i[t]??i.shield,m=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`wc-dates`,children:r}),m.length>0&&(0,d.jsx)(`div`,{className:`wc-sides`,children:m.map((e,t)=>{let n=Ne(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,d.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,d.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,d.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,d.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,d.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`wc-battle`,children:[(0,d.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,d.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,d.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,d.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,d.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,d.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Fe=e({referenceRegistry:()=>$}),$={factsheet:c(T),newsdigest:c(A),dictionary:c(ie),translation:c(ne),pronunciation:c(re),gloss:c(ae),scalefelt:c(oe),hearit:c(F),ipachart:c(V),scriptstroke:c(ue),phonicsword:c(fe),speciescard:c(_e),etymtree:c(w),hazardcard:c(k),termbase:c(ve),sizecompare:c(we),baseconversion:c(Ee),historicalperson:c(ke),onthisday:c(Z),countrycard:c(Ae),worldgrid:c(je),warconflict:c(Pe),posbreakdown:c(ge)};export{Fe as n,$ as t};
|
|
1
|
+
import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-DiPGFGsJ.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-CQDCalVC.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{t as l}from"./safeCssColor-di93BXgG.js";var u=t(),d=n(),f=480,p=16,m=90,h=240,g=390,_=120,v=38,y=14;function b(e){let t=e.toLowerCase();return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var x=18,S=22;function C(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function w({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let{vbH:s,wordY:c,wordCY:l,rootBoxes:w,descBoxes:T}=(0,u.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-y+p*2+12,s=Math.max(o,120),c=s/2,l=c-v/2,u=c-(i*52-(i>0?y:0))/2,d=e.map((e,t)=>({r:e,x:m-_/2,y:u+t*52,cy:u+t*52+v/2,color:b(e.lang)})),f=c-(a*52-(a>0?y:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:g-_/2,y:f+t*52,cy:f+t*52+v/2,color:b(e.lang??``)}))}},[t,n]),E=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,d.jsx)(`div`,{className:`et-wrap`,children:(0,d.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${f} ${s}`,role:`img`,"aria-label":`Etymology of "${e}"`,preserveAspectRatio:`xMidYMid meet`,children:[w.map((e,t)=>(0,d.jsx)(`path`,{d:E(150,e.cy,h-_/2,l),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),T.map((e,t)=>(0,d.jsx)(`path`,{d:E(300,l,g-_/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),w.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang+(e.gloss?` · ${e.gloss}`:``);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:m,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:m,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`r${a}`)}),(0,d.jsx)(`rect`,{x:h-_/2,y:c,width:_,height:v,rx:8,className:`et-word-box`}),(0,d.jsx)(`text`,{x:h,y:l+5,textAnchor:`middle`,className:`et-word`,children:e}),T.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang?`${e.lang}${e.gloss?` · ${e.gloss}`:``}`:e.gloss??``;return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`d${a}`)}),(0,d.jsx)(`text`,{x:m,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),T.length>0&&(0,d.jsx)(`text`,{x:g,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,d.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function T({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,d.jsx)(`div`,{className:`fs-tagline`,children:o}),p.length>0&&(0,d.jsx)(`div`,{className:`fs-facts`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`fs-row`,children:[(0,d.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,d.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,d.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,d.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var E=r(),D={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},ee=`12,1.6 22.4,12 12,22.4 1.6,12`,te={flammable:()=>(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,d.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,d.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,d.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,d.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,d.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,d.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,d.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,d.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,d.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,d.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,d.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,d.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,d.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,d.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,d.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,d.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,d.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,d.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,d.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,d.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,d.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,d.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,d.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function O(e){let t=(0,E.c)(7),{kind:n,className:r}=e,i=te[n],a=D[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(`polygon`,{className:`ghs-diamond`,points:ee}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,d.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function k({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:f}){let p=i[t]??i.alert,m=o===`Warning`,h=m?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in D),_=c??[],v=l??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,d.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,d.jsx)(`span`,{className:`hc-signal-icon`,children:(0,d.jsx)(i.alert,{})}),(0,d.jsx)(`span`,{className:`hc-signal-word`,children:m?`Warning`:`Danger`})]}),g.length>0&&(0,d.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(O,{kind:e,className:`hc-pic-glyph`}),(0,d.jsx)(`span`,{className:`hc-pic-label`,children:D[e]})]},t))}),_.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function A({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,f=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,d.jsx)(`span`,{className:`nd-topic`,children:r}),(0,d.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,d.jsx)(`div`,{className:`nd-items`,children:f.map((e,t)=>(0,d.jsxs)(`div`,{className:`nd-item`,children:[(0,d.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,d.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,d.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,d.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,d.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,d.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:f,delay:p}){let m=i[t]??i.globe,h=u??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`tl-langs`,children:[(0,d.jsx)(`span`,{className:`tl-from`,children:r}),(0,d.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,d.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,d.jsxs)(`div`,{className:`tl-pair`,children:[(0,d.jsx)(`div`,{className:`tl-source`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,d.jsx)(`div`,{className:`tl-result`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,d.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,d.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,d.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`tl-bp`,children:[(0,d.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,d.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,d.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let f=i[t]??i.doc,p=c??[],m=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),m.length>0&&(0,d.jsx)(`div`,{className:`pr-syllables`,children:m.map((e,t)=>(0,d.jsxs)(`span`,{children:[t>0&&(0,d.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,d.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),p.length>0&&(0,d.jsx)(`div`,{className:`pr-tips`,children:p.map((e,t)=>(0,d.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),p.length>0&&(0,d.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`dc-sense`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,d.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,d.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,d.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,d.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,d.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,d.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,d.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,d.jsxs)(`div`,{className:`dc-etymology`,children:[(0,d.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ae({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,f=(0,u.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`gl-domain`,children:r}),(0,d.jsx)(`div`,{className:`gl-entries`,children:f.map((e,t)=>{let n=e.term.charAt(0).toUpperCase();return(0,d.jsxs)(`div`,{children:[n!==(t===0?null:f[t-1].term.charAt(0).toUpperCase())&&(0,d.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,d.jsxs)(`div`,{className:`gl-entry`,children:[(0,d.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,d.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,d.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,d.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,f=s??[],p=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},m=f.reduce((e,t)=>{let n=p(t);return n!==null&&n>e?n:e},0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,d.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,d.jsx)(`span`,{className:`scf-unit`,children:o})]}),f.length>0&&(0,d.jsx)(`div`,{className:`scf-rows`,children:f.map((e,t)=>{let n=p(e),r=n!==null&&m>0?Math.max(n/m*100,4):0;return(0,d.jsxs)(`div`,{className:`scf-row`,children:[(0,d.jsxs)(`div`,{className:`scf-line`,children:[(0,d.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,d.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,d.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,d.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,d.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var j=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,se={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ce(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=se[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ce(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,l=r??[],[f,p]=(0,u.useState)(null),m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useCallback)(()=>{if(h.current!==null&&(clearTimeout(h.current),h.current=null),m.current){let e=m.current;m.current=null,e.close().catch(()=>{})}j&&window.speechSynthesis.cancel()},[]);(0,u.useEffect)(()=>g,[g]);let _=(0,u.useCallback)((e,t)=>{if(!j)return;let n=new window.SpeechSynthesisUtterance(e);n.rate=.92;let r=()=>p(e=>e===t?null:e);n.onend=r,n.onerror=r,window.speechSynthesis.speak(n),p(t)},[]),v=(0,u.useCallback)((e,t)=>{if(!M)return;let n=new M;m.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),p(t),a.onended=()=>{p(e=>e===t?null:e),m.current===n&&(m.current=null,n.close().catch(()=>{}))},h.current=setTimeout(()=>{m.current===n&&(m.current=null,n.close().catch(()=>{}),p(e=>e===t?null:e))},.75*1e3)},[]),y=(0,u.useCallback)((e,t)=>{if(g(),e.kind===`word`){_(String(e.value),t);return}let n=N(e.value);n===null||n<=0||v(n,t)},[g,_,v]),b=e=>e.kind===`word`?j:!!M&&N(e.value)!==null;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`ul`,{className:`hri-rows`,children:l.map((e,t)=>{let n=b(e),r=f===t,a=i[P[e.kind]]??i.speaker,o=e.kind===`word`?`Speech synthesis is unavailable in this browser`:`Audio playback is unavailable in this browser`;return(0,d.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,d.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>y(e,t),disabled:!n,title:n?`Play ${e.label}`:o,"aria-label":n?`Play ${e.label}`:`${e.label} — ${o}`,children:r?(0,d.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,d.jsxs)(`div`,{className:`hri-body`,children:[(0,d.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,d.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,d.jsxs)(`span`,{className:`hri-kind`,children:[(0,d.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let f=i[t]??i.globe,p=s??[],m=new Set((o??[]).map(B)),h=e=>m.has(B(e));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,d.jsx)(W,{isHot:h}):(0,d.jsx)(H,{isHot:h}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),p.length>0&&(0,d.jsx)(`ul`,{className:`ipa-examples`,children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,d.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,d.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,E.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,f,p,m,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,d.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),f=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,d.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),p=(0,d.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),m=(0,d.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,d.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,d.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,d.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,d.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],p=t[10],m=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==p||t[25]!==m||t[26]!==h?(g=(0,d.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,f,p,m,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=f,t[24]=p,t[25]=m,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,d.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function W(e){let t=(0,E.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,d.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,d.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(G)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,d.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,d.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,d.jsx)(i,{s:n[0]}),(0,d.jsx)(i,{s:n[1]})]}):(0,d.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,d.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,d.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,d.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function G(e){return(0,d.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function le(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function ue({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:f,delay:p}){let m=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ss-stage`,children:[(0,d.jsx)(`div`,{className:`ss-square`,children:(0,d.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,d.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,d.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,d.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,d.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,d.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,d.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?le(e.path):null;return n?(0,d.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,d.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,d.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,d.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,d.jsxs)(`div`,{className:`ss-meta`,children:[(0,d.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,d.jsxs)(`div`,{className:`ss-romanization`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,d.jsxs)(`div`,{className:`ss-meaning`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,d.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,d.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,d.jsxs)(`li`,{className:`ss-step`,children:[(0,d.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,d.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:u}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var K=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,de=`silent`;function fe({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:l,delay:f}){let p=i[t]??i.captions,m=(o??[]).filter(e=>e&&e.text),h=(s??[]).filter(Boolean),[g,_]=(0,u.useState)(null);(0,u.useEffect)(()=>()=>{K&&window.speechSynthesis.cancel()},[]);let v=(0,u.useCallback)((e,t,n)=>{if(!K)return;window.speechSynthesis.cancel();let r=new window.SpeechSynthesisUtterance(e);r.rate=n;let i=()=>_(e=>e===t?null:e);r.onend=i,r.onerror=i,window.speechSynthesis.speak(r),_(t)},[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:m.map((e,t)=>{let n=e.kind??`grapheme`,r=n===de;return(0,d.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":g===t||void 0,disabled:r||!K,onClick:()=>v(e.text,t,.62),title:r?`"${e.text}" is silent`:K?`Hear "${e.text}"`:`"${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,d.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,d.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,d.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":g===-1||void 0,disabled:!K,onClick:()=>v(r,-1,.92),title:K?`Hear "${r}"`:r,"aria-label":K?`Hear the whole word, ${r}`:r,children:[K?g===-1?(0,d.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}):null,(0,d.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),h.length>0&&(0,d.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,d.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,d.jsx)(`ul`,{className:`pw-rhyme-list`,children:h.map((e,t)=>(0,d.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var pe=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],q={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},me=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(q,e),he=/^[¿¡([{«‹“‘]+$/;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let f=i[t]??i.captions,{groups:p,legend:m,notes:h}=(0,u.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:me(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!he.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:pe.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,u.useState)(null),v=g&&m.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,d.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0?(0,d.jsx)(`div`,{className:`psb-flow`,children:p.map((e,t)=>(0,d.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,d.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,d.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,d.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,d.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:q[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,d.jsx)(`p`,{className:`psb-plain`,children:o}):(0,d.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,d.jsx)(`div`,{className:`psb-translation`,children:s}),m.length>0&&(0,d.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:m.map(({pos:e,count:t})=>(0,d.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,d.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,d.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,d.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,d.jsxs)(`li`,{className:`psb-note`,children:[(0,d.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,d.jsxs)(`span`,{className:`psb-note-text`,children:[(0,d.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function _e({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:u,lookalikes:f,status:p,caption:m,footer:h,delay:g}){let _=i[t]??i.globe,v=l(c?.from,`var(--presence-deep)`),y=l(c?.to,`var(--presence-soft)`),b=o(c?.src),x=u??[],S=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,d.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),p&&(0,d.jsx)(`span`,{className:`sp-status`,children:p})]}),(0,d.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,d.jsx)(`div`,{className:`sp-scientific`,children:s}),m&&(0,d.jsx)(`div`,{className:`sp-caption`,children:m}),x.length>0&&(0,d.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,d.jsxs)(`div`,{className:`sp-mark`,children:[(0,d.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,d.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,d.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,d.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,d.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,d.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:f,langs:p}=(0,u.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),m=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0?(0,d.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):p.length===0?(0,d.jsx)(`ul`,{className:`tb-flat`,children:f.map(({term:e},t)=>(0,d.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,d.jsx)(`div`,{className:`tb-wrap`,children:(0,d.jsxs)(`table`,{className:`tb-table`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{scope:`col`,children:`Term`}),p.map(e=>(0,d.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,d.jsx)(`tbody`,{children:f.map(({term:e,cells:t},n)=>(0,d.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,d.jsx)(`td`,{className:`tb-term-col`,children:e.term}),p.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=m(n?.status);return(0,d.jsx)(`td`,{className:`tb-cell`,children:r?(0,d.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,d.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,d.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function ye(e){return typeof e==`string`&&e in J}function be(e){let t=(0,E.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=J[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,d.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,d.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,d.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,d.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,d.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,d.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,d.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,d.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},xe)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,d.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let f;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(f=(0,d.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=f):f=t[20],f}function xe(e,t){return Array.from({length:3},(e,n)=>(0,d.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Se=190,Y=16;function Ce(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function we({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],f=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),p=f>0?Se/f:0,m=u.map(e=>{let t=ye(e.shape)?e.shape:`generic`,n=J[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&p>0?Math.max(e.length*p,Y):Y;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...m.map(e=>e.height),Y);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),m.length===0?(0,d.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,d.jsx)(`div`,{className:`szc-scroll`,children:(0,d.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:m.map(({subject:e,shape:t,width:i,height:a},o)=>(0,d.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,d.jsx)(`div`,{className:`szc-shape-box`,children:(0,d.jsx)(be,{shape:t,style:{width:i,height:a}})}),(0,d.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,d.jsx)(`div`,{className:`szc-item-value`,children:Ce(e.length,r)})]},o))})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Te(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ee({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],f=typeof r==`string`||typeof r==`number`?String(r):``;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f&&(0,d.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:f}),u.length>0?(0,d.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,d.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,d.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,d.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,d.jsx)(`div`,{className:`bcv-digits`,children:Te(n).map((e,t)=>(0,d.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,d.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,d.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function De(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Oe(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function ke({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:f,legacy:p,footer:m,delay:h}){let g=i[t]??i.doc,_=u??[],v=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`hp-head`,children:[(0,d.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:De(r)}),(0,d.jsxs)(`div`,{className:`hp-headline`,children:[(0,d.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,d.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,d.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,d.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,d.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hp-beat-year`,children:Oe(e.year)}),(0,d.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,d.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),p&&(0,d.jsx)(`div`,{className:`hp-legacy`,children:p}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function X(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Z({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let f=i[t]??i.clock,p=o??[],m=s??[],h=c??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`otd-date`,children:r}),p.length>0?(0,d.jsx)(`div`,{className:`otd-events`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`otd-year-chip`,children:X(e.year)}),(0,d.jsxs)(`div`,{className:`otd-event-body`,children:[(0,d.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,d.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,d.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(m.length>0||h.length>0)&&(0,d.jsxs)(`div`,{className:`otd-people`,children:[m.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:f,facts:p,footer:m,delay:h}){let g=i[t]??i.globe,_=Array.isArray(p)?p:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:f}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`cc-banner`,children:(0,d.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,d.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,d.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-mark`,children:[(0,d.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,d.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,d.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,d.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function je({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,d.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,d.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,d.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Q=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Me=new Set(Q);function Ne(e,t){return typeof e.color==`string`&&Me.has(e.color)?e.color:Q[t%Q.length]}function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:f}){let p=i[t]??i.shield,m=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`wc-dates`,children:r}),m.length>0&&(0,d.jsx)(`div`,{className:`wc-sides`,children:m.map((e,t)=>{let n=Ne(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,d.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,d.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,d.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,d.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,d.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`wc-battle`,children:[(0,d.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,d.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,d.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,d.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,d.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,d.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Fe=e({referenceRegistry:()=>$}),$={factsheet:c(T),newsdigest:c(A),dictionary:c(ie),translation:c(ne),pronunciation:c(re),gloss:c(ae),scalefelt:c(oe),hearit:c(F),ipachart:c(V),scriptstroke:c(ue),phonicsword:c(fe),speciescard:c(_e),etymtree:c(w),hazardcard:c(k),termbase:c(ve),sizecompare:c(we),baseconversion:c(Ee),historicalperson:c(ke),onthisday:c(Z),countrycard:c(Ae),worldgrid:c(je),warconflict:c(Pe),posbreakdown:c(ge)};export{Fe as n,$ as t};
|